Page Layoutmove upper margin on the first page in article

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
alien
Posts: 3
Joined: Fri Aug 07, 2015 10:23 pm

move upper margin on the first page in article

Post by alien »

Hello dear community

I a newbie in LaTeX

I am creating a simple document with such settings

Code: Select all

\documentclass[a4paper,12pt]{article} 
\usepackage[utf8x]{inputenc}
\usepackage[L7x]{fontenc}
\usepackage[lithuanian]{babel}
\usepackage[pdftex,unicode]
The document in attachment (it's just a scrap, I'll correct it)

How I can move upper margin? (in oder that the Header of the work would be higher

There are such commands like \textheight and \topmargin , I tried use them, but unsuccessfully. Where I should use them?

thanks in advance
Attachments
LaTeX3.pdf
Document *.pdf , 2 pages
(128.87 KiB) Downloaded 381 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

move upper margin on the first page in article

Post by Johannes_B »

Many people dislike the standard title set by LaTeX, but everybody uses it. Why?

Don't use it at all:

Code: Select all

\documentclass{article}
\usepackage{blindtext}
\usepackage{showframe}
\begin{document}
\begin{center}
	\vspace*{-3cm}
	{\Large Shift the title up\par}
	\vspace{4ex}
	{\large alien, the nice guy\par
		\vspace{1\baselineskip}
		\today\par\vspace{2\baselineskip}
	}
\end{center}
\blindtext
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
alien
Posts: 3
Joined: Fri Aug 07, 2015 10:23 pm

move upper margin on the first page in article

Post by alien »

Johannes_B, Thank You a lot!!!!!!

I've made this

the result is here https://yadi.sk/i/1TDxIJY0iLjaQ

But how can I make the pages bigger? (on A4 it looks not very good)

There is command \enlargethispage{1cm} but I would like to move upper and bottom margins more and do not lose page's enumeration.

I am very grateful to You for Your help
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

move upper margin on the first page in article

Post by Johannes_B »

Load package geometry and then say \geometry{top=2cm,bottom=4cm}. The documentation files give you more hooks to handle.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
alien
Posts: 3
Joined: Fri Aug 07, 2015 10:23 pm

Re: move upper margin on the first page in article

Post by alien »

Johannes_B, Thank You very much!

It works!

best regards, Mike
Post Reply