I want to move the title of my document up in order to save space. I can't figure out how to do this.
This is what I have in LyX
And this is how it shows up in PDF. I'd like to move it up.
lyxmarginstitles
I want to move the title of my document up in order to save space. I can't figure out how to do this.
This is what I have in LyX
And this is how it shows up in PDF. I'd like to move it up.
Best Answer
Within the default
Article (Standard Class)
(see you Document > Settings... > Document Class tab), the Title (Author and Date) is set using a macro called\@maketitle
(insidearticle.cls
. This is what that macro looks like:You'll note that it inserts a
\newpage
, then sets\null
(consider it just something to "start the page") and inserts av
erticalskip
of2em
, before starting to set the actual title (inside acenter
ed environment).You can get rid of this vertical skip by adding the following to your Document > Settings... > LaTeX Preamble:
The above patch uses
etoolbox
to remove the\newpage \null \vskip 2em
construction from\@maketitle
, thereby making the title start immediately where it's called. A similar thing can be added to remove thev
erticalskip
at the end of the environment (given by\vskip 1.5em
), if needed:With only the first patch, your document should now resemble:
In the above output I've also added the
showframe
package to highlight the position of the text box just as an indication that there's no white space set before the actual title.With both patches active there's a little less space (not much) below the title:
Of course, instead of removing it, one can insert a negative space.