Page LayoutPage Borders with logo only on first page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

Page Borders with logo only on first page

Post by metric »

Hi,
First, thanks to all the community members for helping in any LaTeX related problems.

Please see the attached word file, I want to create a similar worksheet for my school in LaTeX. I understand I should be able to write down the content in LaTeX.

I really need help in understanding how to go about making borders, the top of the first page, and give page number in the footer the way it's there in the file.

Any help from the community is really appreciated.

Regards,
Arif
Attachments
Sample_wis.pdf
(76.12 KiB) Downloaded 916 times
Last edited by metric on Sun Oct 21, 2012 5:31 pm, edited 2 times in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Page Borders with logo only on first page

Post by localghost »

Show what you have tried so far in form of a concrete and self-contained example.

For the formatting of the worksheet itself with the header on the first page you could use the exam class. The frame around the text body could be done by fancybox.


Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Page Borders with logo only on first page

Post by Stefan Kottwitz »

Hi Arif,

for drawing the borders I would use TikZ and the current page node. Have a look at this example: TikZ Exam sheet. In a few lines it shows this way of drawing. The header could be made with tabular and fancyhdr, but I would choose TikZ as well if it's already used.

Stefan
LaTeX.org admin
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

Re: Page Borders with logo only on first page

Post by metric »

Thanks for your valuable time.

I tried the geometry package it helped me with the margins on each side. I read list examples on how to do listing with enumitem package.

However am failing on understanding as how to get started with the title page. We've the logo in corel draw so it can be exported in desired format to import in LaTeX.

Would be of great help if I can know how to go about writing information (like name of teacher ...) on the top of the first page and give page border as in the sample, also the footer part with page number.

The font is Arial narrow for content and Arial Bold for top text of title page. However we can manage with the default LaTeX font.

I saw the TikZ example, I've never used the package and hence found example very difficult to understand. Hopefully if we can do it without using TikZ that would make my work much easier.

Thank you once again for you valuable time.

Regards,
Arif
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Page Borders with logo only on first page

Post by Stefan Kottwitz »

I seems that you would like to do graphic design, so perhaps use a graphic layout program. LaTeX is a good choice for structured typesetting, but your page design looks more like a drawing. No problem to "program" it with TikZ, but obviously you don't like that approach.

Well, there's kind of a workaround. You could create the border design and the header (or part of it) with any graphics software, export it to PDF, include it with atbegshi, eso-pic, evershi or textpos, for example, as a background, and write with LaTeX over it.

Most ways are a bit complicated, but that's because you would like to use LaTeX in an unusual way. It can do it though, but it requires a bit learning of TikZ or PSTricks for example, which provide great graphical capabilities for LaTeX.

Stefan
LaTeX.org admin
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

Re: Page Borders with logo only on first page

Post by metric »

Thank you for much required help. I'll try out the solutions mentioned and am sure they will work.

Also if school agrees I'll see if the layout can be tweaked without much changing the original format to get the one that's easy to develop in LaTeX.

Stefan and localghost , thank you for your time, I really appreciate the efforts you put in to help others.

Regards,
Arif
metric
Posts: 61
Joined: Mon Mar 24, 2008 8:34 am

Page Borders with logo only on first page

Post by metric »

Hi,
With the help of the replies I got on this forum, I was able to design the page as needed with borders, Please see the attachment. Below is the code of the file

Code: Select all

\documentclass{article}

\usepackage[a4paper]{geometry}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{decorations.pathmorphing}

\usepackage{lipsum}% dummy text
\begin{document}


\begin{tikzpicture} [overlay,remember picture]
       \draw [line width=0.5mm ] 
        ($ (current page.north west) + (1cm, -1cm) $)
        rectangle
        ($ (current page.south east) + (-1cm,1cm) $);

\end{tikzpicture}

\lipsum 

\end{document}
To make my document look like my original attachment I need
  • To have page border on all pages that have my contents
    Firs page should have name, roll number and a logo similar to my earlier attachment.
I tried however am unable to make any progress to get above two things, any help is greatly appreciated.

Thanks,
Arif
Attachments
Worked_Example.pdf
(24.59 KiB) Downloaded 920 times
Last edited by cgnieder on Tue Nov 13, 2012 1:08 pm, edited 1 time in total.
Post Reply