For Programmers: Free Programming Magazines  


Home > Archive > Tex > September 2006 > Re: Two LaTeX questions (boldmath section header and math symbol









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Two LaTeX questions (boldmath section header and math symbol
Ralf Stubner

2006-09-27, 7:07 pm

"MyMichelle" <mymichelle_07@yahoo.com> writes:

> (1) I have this problem with using mathematical symbols in my section
> titles, because they don't come out bold in the section header. If I
> use boldmath, then they come out bold in the table of contents, which I
> don't want for subsections. Is there a way around this that doesn't
> involve editing the .toc file?


It is easy to achieve this with a KOMA Script class:

\documentclass[chapterprefix]{scrbook}
\addtokomafont{sectioning}{\rmfamily\bol
dmath}
\begin{document}
\tableofcontents
\chapter{Abc $y=x$}
def
\section{ghi $y=x$}
jkl
\subsection{ghi $y=x$}
jkl
\end{document}


Note that 'chapterprefix' and '\rmfamily' are only used to make scrbook
look similar to the default book.cls (at least at first sight).

Please also note that bold symbols in section headings are always a bit
dangerous since in mathematics bold symbols often have a different
meaning.

cheerio
ralf
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com