Page Layoutfloating a quotation in the header of one page...

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
quickq
Posts: 17
Joined: Wed Oct 13, 2010 8:14 pm

floating a quotation in the header of one page...

Post by quickq »

Hi,
There might be an easier way to do this, if so sorry, I tried searching the forums. I am trying to typeset my own pair of "flavor" quotations (I tried a package for this but didn't like its output), and would like to do it at the top of a page like a float.

This is what I have:

Code: Select all

\usepackage{float}
\newfloat{quotations}{t}{} %top of the page...

[...]

\begin{quotations}
\begin{flushright}
\emph{
``Eat your waffles''\\
Grandma\\
``You eat too many waffles''\\
Grandpa
}
\end{flushright}
\end{quotations}
(The actual quotations being used are longer.) My question is: how do I get this higher than just floating where another paragraph would normally be? I would like it higher, like in the header, unless you think it would be really ugly.

Sorry, I am just a beginner, I can't figure out by myself. Thank you for your help.

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

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

floating a quotation in the header of one page...

Post by gmedina »

Hi,

you can use the textpos package to place material at absolute positions of a page. Of course, now you don't wnat your text to float, so there's no need to define a new floating object; your quotations should be treated as normal text.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply