Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Chemical formula in LaTeX section{}

146 views
Skip to first unread message

Michael Alton Everest

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to
When putting a chemical formula, such as $\rm NH_3$, in the title of a
section in LaTeX it is not "emboldened" like the rest of the section
heading. Forcing it to be bold with $\bf NH_3$ works, but this isn't a
very portable solution. (I.e. will still be bold in toc, page headers,
etc.) Would there be a way to typeset a chemical formula such that it
will take on the text style of it's surrounding environment?

-Mike

mikus @ leland.stanford.edu

Daniel Duque Campayo

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to
Michael Alton Everest wrote:
>
> When putting a chemical formula, such as $\rm NH_3$, in the title of a
> section in LaTeX it is not "emboldened" like the rest of the section
> heading. Forcing it to be bold with $\bf NH_3$ works, but this isn't a
> very portable solution.

Why don't you just type NH$_3$?


That's the way I type formulae:

--CH$_2$--CH$_2$--N$^+$(CH$_3$)$_3$


The "3" won't be in bold face type, I know but maybe that's ok.

Bye

Daniel

Donald Arseneau

unread,
Apr 1, 1999, 3:00:00 AM4/1/99
to
In article <3703BC78...@fluid3.fmc.uam.es>, Daniel Duque Campayo <dan...@fluid3.fmc.uam.es> writes...

>Michael Alton Everest wrote:
>> When putting a chemical formula, such as $\rm NH_3$, in the title of a
>> section in LaTeX it is not "emboldened" like the rest of the section

I haven't got the original question yet, but for chemical literature,
and for most mathematical literature I'd argue, the section titles
should use \boldmath in addition to \bf.

\newcommand{\section}{\@startsection {section}{1}{\z@}%
{-3ex \@plus -1ex \@minus -.2ex}%
{2ex \@plus.2ex}%
{\normalfont\Large\sffamily\bfseries\boldmath\raggedright}}

Donald Arseneau as...@triumf.ca

0 new messages