Page Layout ⇒ Page Borders with logo only on first page
Page Borders with logo only on first page
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 973 times
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Page Borders with logo only on first page
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
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Page Borders with logo only on first page
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
Re: Page Borders with logo only on first page
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
- Stefan Kottwitz
- Site Admin
- Posts: 10397
- Joined: Mon Mar 10, 2008 9:44 pm
Page Borders with logo only on first page
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
Re: Page Borders with logo only on first page
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
Page Borders with logo only on first page
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 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.
Thanks,
Arif
- Attachments
-
- Worked_Example.pdf
- (24.59 KiB) Downloaded 963 times