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

Dr A K Hannaby keith_hannaby at mathshelp.com
Thu Jan 15 19:35:09 CET 2015


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/20150115/3bfd7b4a/attachment.html>


More information about the texhax mailing list