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?<br clear="all"><br><div class="gmail_quote">On Sun, Dec 13, 2009 at 11:51, Florian Grammel <span dir="ltr"><<a href="mailto:grammel@gmx.net">grammel@gmx.net</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear list-members<br>
<br>
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*.<br>
Until now I've tried something like:<br>
<br>
\section[]{%<br>
left text%<br>
\hfill %<br>
right text%<br>
\\\vspace{-1.5\baselineskip}<br>
\begin{center}center text\end{center}%<br>
}<br>
<br>
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.<br>


<br>
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?<br>
<br>
<br>
Thanks in advance and best regards<br>
Florian.<br>
<br>
<br>
<br>
____________________________________________<br>
<br>
Florian Grammel<br>
<br>
Gentofte, Denmark<br>
<br>
<br>
<br>
<br>
<br>----------- Please Consult the Following Before Posting -----------<br>
TeX FAQ: <a href="http://www.tex.ac.uk/faq" target="_blank">http://www.tex.ac.uk/faq</a><br>
List Reminders and Etiquette: <a href="http://email.esm.psu.edu/mac-tex/" target="_blank">http://email.esm.psu.edu/mac-tex/</a><br>
List Archive: <a href="http://tug.org/pipermail/macostex-archives/" target="_blank">http://tug.org/pipermail/macostex-archives/</a><br>
TeX on Mac OS X Website: <a href="http://mactex-wiki.tug.org/" target="_blank">http://mactex-wiki.tug.org/</a><br>
List Info: <a href="http://email.esm.psu.edu/mailman/listinfo/macosx-tex" target="_blank">http://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br>
<br>
<br></blockquote></div><br>