[OS X TeX] writing twice to the same line

Florian Grammel grammel at gmx.net
Sun Dec 13 11:51:38 CET 2009


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







More information about the macostex-archives mailing list