Page LayoutSpecial indentation

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
jonallard
Posts: 5
Joined: Sat Jan 23, 2010 7:12 pm

Special indentation

Post by jonallard »

How would I go with the following setup?
  • The grey vertical line is at a x distance from the left margin
  • Line 3 and Centered text are on the same line
  • Centered text is centered in the second "column"
I looked at the parallel package, but the paragraphs have to be synchronized. Is there a simpler way to do this?

Edit: I used to use the twocolumns environment/thingy but my second column couldn't span across multiple pages until it was over... What I mean is when the page ends, the second column needs to start at the same horizontal position.
Attachments
SddQO.jpg
SddQO.jpg (163.24 KiB) Viewed 2185 times

Recommended reading 2024:

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

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Special indentation

Post by gmedina »

Hi,

you could use two \parbox commands, as the following example suggests:

Code: Select all

\documentclass{book}
\usepackage{lipsum}

\begin{document}

\noindent\parbox[t]{4cm}{%
  Line1\\
  Line2\\
  Line3\\
  Line4\\
  Line5\\
  Line6
}
\parbox[t]{7cm}{%
  \phantom{a}\par \phantom{a}\par
  {\centering
  Centered Text\\
  (center)\par}
  \vspace*{1cm}
  \lipsum[1-2]
}
\lipsum[1]

\end{document}
Of course, change the width of the boxes according to your needs. Remark: since \parbox commands are involved, this solution won't allow page breaks.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
jonallard
Posts: 5
Joined: Sat Jan 23, 2010 7:12 pm

Re: Special indentation

Post by jonallard »

Thank you for your answer. However, I really need it to be able to span across multiple pages. How would I solve this?
Post Reply