[texhax] Changing the outcome for "frame" in titletoc

Lars Madsen daleif at math.au.dk
Fri Jan 16 16:19:52 CET 2015


Do you mind posting a full minimal example? Such that we have something we can copy and paste without having to add anything.

BTW: Nowadays most people get their LaTeX help at

tex.stackexchange,com

It is usually very fast.

(BTW: TS is really adamant on the full minimal example thing, with it you are much much more likely to get help)


/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@imf / More information: http://au.dk/en/daleif@imf

________________________________
From: texhax [texhax-bounces at tug.org] on behalf of Dr A K Hannaby [keith_hannaby at mathshelp.com]
Sent: 15 January 2015 19:35
To: texhax at tug.org
Subject: [texhax] Changing the outcome for "frame" in titletoc

Dear Tug

I realise the following code is quite wrong, but it almost creates what I want, which is: the section as if “hang”, but completely enclosed in one light-coloured box.

In the preamble,

\titleformat{\section}[hang]
                        {\color{DarkBlue}\bfseries\itshape\fontsize{11.6}{12}\selectfont}
                        {\filright\enspace SECTION \thesection\enspace}
                        {8pt}
                        {}

Then, calling the section,

\begin{document}
\fcolorbox{blue}{blue!5}{\section{The Arabic and Roman counting systems}}
\end{document}

What I need is to modify the standard
\titleformat{\section}[frame]
                        {\color{DarkBlue}\bfseries\itshape\fontsize{11.6}{12}\selectfont}
                        {\filright\enspace SECTION \thesection\enspace}
                        {8pt}
                        {}
But I cannot find out how to do it.
Regards
Keith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20150116/94c2724c/attachment-0001.html>


More information about the texhax mailing list