## LaTeX forum ⇒ Text Formatting ⇒ Text positioning question

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
John_FTex
Posts: 10
Joined: Wed Dec 21, 2022 2:32 am

### Text positioning question

I have created a title and a subtitle that were lined up nicely until I put the Author line in. When I put that line or even just the two \newline statements in, the subtitle (the line after the title) moves to the left a couple characters. I don't understand why the presence of the 3rd line (newline or text) affects the position of the start of the 2nd line? This is SOOO annoying. I just get everything looking good with the title and subtitle and then it gets messed up just by adding another line which might even just be an empty one.

Also, why can't I use \subtitle and \author in the title page area. They don't work for some reason.

And another thing, why can't I use an extended \title {} block with all kinds of lines in it as long as I
continue with \\.

I'm mainly interested in answering the first question, why does the presence of a line downwind in the document affect the lines above it? I now have trouble aligning the lines above it. Big trouble.

And even more importantly, it gets MUCH worse if I put in a \vspace{1.5cm} command in. It's a major hassle to me.

Using the vspace macro should not in any way affect the start of the line above it.

\begin{document}
\font\myfont=cmr12 at 42pt
\begin{titlepage}
\begin{center}
\myfont Title
\textbf{The Story of xxxxxxxxxxx, xxxxxxxxx, and xxxxxxxx}
\newline
\newline
\textbf{Author}
\end{center}
\end{titlepage

LaTeXguide.org • LaTeX-Cookbook.net

Bartman
Posts: 320
Joined: Fri Jan 03, 2020 2:39 pm

### Text positioning question

Please create a minimal working example and mark it with code tags so that it can be tested directly.

A line break is already missing between the title and the subtitle. In the instructions for creating a title page, a blank line is added using the \par command for this purpose.

I'd like to suggest you to adapt the code snippet as follows:

\documentclass{article}
\font\myfont=cmr12 at 42pt

\begin{document}
\begin{titlepage}
\centering% substitute for the center environment
\myfont Title\par
\textbf{The Story of xxxxxxxxxxx, xxxxxxxxx, and xxxxxxxx}

\vspace{\baselineskip}% replacement for the second \newline command
\textbf{Author}
\end{titlepage}
\end{document}

John_FTex
Posts: 10
Joined: Wed Dec 21, 2022 2:32 am

### Text positioning question

Bartman wrote:Please create a minimal working example and mark it with code tags so that it can be tested directly.

A line break is already missing between the title and the subtitle. In the instructions for creating a title page, a blank line is added using the \par command for this purpose.

I'd like to suggest you to adapt the code snippet as follows:

\documentclass{article}
\font\myfont=cmr12 at 42pt

\begin{document}
\begin{titlepage}
\centering% substitute for the center environment
\myfont Title\par
\textbf{The Story of xxxxxxxxxxx, xxxxxxxxx, and xxxxxxxx}

\vspace{\baselineskip}% replacement for the second \newline command
\textbf{Author}
\end{titlepage}
\end{document}

I took your advice and used the vspace, baselineskip and paragraph command after the subtitle which I had forgotten to show you and it behaves perfectly well now - no more 3rd lines or images pushing the characters - not sure why it had done that so thanks, it works now. I just need to move the graphics down to match another version of the document that I have created in another word processor. Thank you, it looks nice now, sorry I was fatigued and mis-copied my latex code.

Because I wanted more room until the graphics for later additions, I changed the \vspace{baselineskip} to \vspace{6\baselineskip}. I now realize I can also use \\[2in] too as a way of adding space vertically but I like the baselineskip.

I have removed the author as it is an autobiography - I don't really need to include the author, I guess it seems redundant since my name is mentioned in the subtitle?