## LaTeX forum ⇒ Text Formatting ⇒ lowering a character in a section heading. Topic is solved

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
AliceWonder
Posts: 28
Joined: Wed Oct 31, 2012 12:04 am

### lowering a character in a section heading.

TeXLive 2013 as distributed from TUG running in Fedora 18 x86_64.

\newcommand{\nix}{\textsc{Un\raisebox{-0.3\height}{*}x}}

works in paragraph mode, it puts the * at the correct height relative to the small caps N and X (at least with the font I am using).

However if I then use the \nix{} command in a \section{} command it fails. What is the proper way to accomplish what I want to accomplish so it is not restricted to paragraphs?

Tags:

cgnieder
Site Moderator
Posts: 1988
Joined: Sat Apr 16, 2011 7:27 pm
Most of all your macro throws an error when used in a \section:

\documentclass{article}\usepackage[T1]{fontenc}\newcommand{\nix}{\textsc{Un\raisebox{-0.3\height}{*}x}}\begin{document} \nix \section{\nix} \end{document}

gives

! Argument of \@sect has an extra }.<inserted text>                  \par l.8 \section{\nix} Runaway argument?{\normalfont \Large \bfseries }{\@rsbox {-0.3\height }}\def \reserved@b \ETC.! Paragraph ended before \@sect was complete.<to be read again>                     \par l.8 \section{\nix}

Here is an alternative solution:


Regards
Clemens
------------------------------
chemmacros · chemformula · leadsheets · xsim

AliceWonder
Posts: 28
Joined: Wed Oct 31, 2012 12:04 am
Thank you! That works very well.