<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>
<!--
@font-face
{font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline}
span.EmailStyle17
{font-family:"Calibri","sans-serif";
color:windowtext}
.MsoChpDefault
{font-size:10.0pt;
font-family:"Calibri","sans-serif"}
@page WordSection1
{margin:72.0pt 72.0pt 72.0pt 72.0pt}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" lang="EN-GB" link="blue" vlink="purple">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Do you mind posting a full minimal example? Such that we have something we can copy and paste without having to add anything.<br>
<br>
BTW: Nowadays most people get their LaTeX help at<br>
<br>
tex.stackexchange,com<br>
<br>
It is usually very fast.<br>
<br>
(BTW: TS is really adamant on the full minimal example thing, with it you are much much more likely to get help)<br>
<div><br>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px"><br>
/Lars Madsen<br>
Institut for Matematik / Department of Mathematics<br>
Aarhus Universitet / Aarhus University<br>
Mere info: <a href="http://au.dk/daleif@imf" tabindex="0">http://au.dk/daleif@imf</a> / More information:
<a href="http://au.dk/en/daleif@imf" target="_blank">http://au.dk/en/daleif@imf</a><br>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF655830"><font face="Tahoma" color="#000000" size="2"><b>From:</b> texhax [texhax-bounces@tug.org] on behalf of Dr A K Hannaby [keith_hannaby@mathshelp.com]<br>
<b>Sent:</b> 15 January 2015 19:35<br>
<b>To:</b> texhax@tug.org<br>
<b>Subject:</b> [texhax] Changing the outcome for "frame" in titletoc<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:12.0pt">Dear Tug</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">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.</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">In the preamble,</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">\titleformat{\section}[hang]</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> {\color{DarkBlue}\bfseries\itshape\fontsize{11.6}{12}\selectfont}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> {\filright\enspace SECTION \thesection\enspace}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> {8pt}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> {}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Then, calling the section,</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span>
</p>
<p class="MsoNormal"><span style="font-size:12.0pt">\begin{document}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">\fcolorbox{blue}{blue!5}{\section{The Arabic and Roman counting systems}}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">\end{document}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> </span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">What I need is to modify the standard</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">\titleformat{\section}[frame]</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> {\color{DarkBlue}\bfseries\itshape\fontsize{11.6}{12}\selectfont}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> {\filright\enspace SECTION \thesection\enspace}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> {8pt}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt"> {}</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">But I cannot find out how to do it.</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Regards</span></p>
<p class="MsoNormal"><span style="font-size:12.0pt">Keith</span></p>
</div>
</div>
</div>
</div>
</body>
</html>