LaTeX Starting Writing 4.5in from Top of Page

  • Thread starter Thread starter Maxwell
  • Start date Start date
  • Tags Tags
    Writing
AI Thread Summary
The discussion revolves around a user's struggle to start writing 4.5 inches from the top of a page in LaTeX. The initial attempts using the \vspace command were unsuccessful, leading to frustration. Various alternatives, such as \hspace and \vskip, were also tried without success. A solution was found by moving the \vspace command outside the center environment and adding a space before it, which allowed the command to function correctly. Additionally, the user discovered that using \vspace* with a different measurement could achieve the desired spacing, although it was not precisely 4.5 inches due to document header effects. The user ultimately expressed satisfaction with overcoming the LaTeX challenge, acknowledging its complexity but also its value.
Maxwell
Messages
511
Reaction score
0
Hey guys,

I have been searching for an answer to this question for quite some time and I have found nothing. This should be pretty simple, yet for some frustrating reason, I can not get it to work.

I want to start some writing 4.5 inches from the top of the page. I am doing:

Code:
\begin{center}
\singlespacing
\vspace{4.5in}
Accepted in partial fulfillment of the requirements for\\
the degree of Master of Science in Mechanical Engineering\\
in the Graduate School of\\
Stony Brook University\\
State University of New York\\
2009\\

\vskip .5 in

September 7, 2009\\

\vskip 1 in

a, Department of Mechanical Engineering, Stony Brook University\\
\vskip 0.15 in

b, Department of Mechanical Engineering, Stony Brook University\\
\vskip 0.15 in 

c, Department of Mechanical Engineering, Stony Brook University\\
\vskip 0.15 in 

\normalsize

\end{center}

However, the first \vspace{4.5in} command gets completely ignored. I have tried the following:

Code:
%\hspace{4.5in}
%\vskip 4.5 in
%\topskip 4.5 in

And none of those commands work. I've even tried adding \bigskips in order to trick it into adding blank lines. Didn't work.

I do not use LaTeX very much, but I do need to get this page set up.

Does anyone have an idea as to why this is not working?

I am beyond frustrated!

Thanks in advance.
 
Physics news on Phys.org
Here's a hack that seems to make it work:
Code:
\documentclass[12pt,letterpaper]{article}
\usepackage[margin=1in]{geometry}
\usepackage{setspace}
\begin{document}
[B]\ \vspace{4.5in}[/B]
\begin{center}
\singlespacing
Accepted in partial fulfillment of the requirements for\\
the degree of Master of Science in Mechanical Engineering\\
in the Graduate School of\\
Stony Brook University\\
State University of New York\\
2009\\

\vskip .5 in

September 7, 2009\\

\vskip 1 in

a, Department of Mechanical Engineering, Stony Brook University\\
\vskip 0.15 in

b, Department of Mechanical Engineering, Stony Brook University\\
\vskip 0.15 in 

c, Department of Mechanical Engineering, Stony Brook University\\
\vskip 0.15 in 

\normalsize

\end{center}
\end{document}
I moved the "\vspace{4.5in}" command out of the "center" environment, and I prefixed it with a "\ " to create a paragraph containing a single space, so that there is something to vspace from.
 
And here's a much less hackish way (unless you only wanted on the first page?):

Code:
\documentclass[]{article}
\usepackage[left=1.25in,top=1.125in,bottom=1.125in,right=1.25in,nohead]{geometry}
 
Yeah, I need it on only one page.

I used the command \vspace*{3.1in}, which semi-works.

4.5 inches is more like 6 inches, but 3.1 inches works out to 4.5 inches. I believe this might be because of the header for the document type I'm using, but I don't really feel like figuring it out right now!

Thanks for the replies, guys.
 
Edit - Solved it. LaTeX is a pain to get used to, but once you do, it's worth it!
 
Last edited:

Similar threads

Replies
4
Views
3K
Replies
2
Views
3K
Replies
2
Views
2K
Replies
3
Views
2K
Replies
2
Views
3K
Replies
2
Views
3K
Replies
1
Views
3K
Back
Top