[OS X TeX] writing twice to the same line

Diego Gruber diego.gruber at gmail.com
Sun Dec 13 07:11:07 EST 2009


Just a wild guess but, maybe you could use the minipage environment within
the section title to divide it in three sections with independent
alignments?

On Sun, Dec 13, 2009 at 11:51, Florian Grammel <grammel at gmx.net> wrote:

> Dear list-members
>
> I need to do quite a peculiar setup for section-headers, where a part of
> the heading has to be aligned to both sides and another part centered *in
> the same line*.
> Until now I've tried something like:
>
> \section[]{%
> left text%
> \hfill %
> right text%
> \\\vspace{-1.5\baselineskip}
> \begin{center}center text\end{center}%
> }
>
> That gives me more or less the layout I want, but the negative vspace can't
> really account for the \\ because the amout of the lineskip varies by
> context and by page. And as I need this type of section-heading a lot of
> times, I'd hate to fiddle with this by hand for every occurence.
>
> Is there any (context-insensitive) way to make LaTeX put text in the same
> line two times independently? Or should I try a completely different
> approach?
>
>
> Thanks in advance and best regards
> Florian.
>
>
>
> ____________________________________________
>
> Florian Grammel
>
> Gentofte, Denmark
>
>
>
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20091213/61d8f762/attachment.html>


More information about the MacOSX-TeX mailing list