I am using Lyx on Windows. How do I get the formatting of the whole document to look like:
\subsubsection{\textmd{Blah blah blah}}
without manually setting it for each line?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityIf you want to only change the text:
\let\OriginalSubsubsection\subsubsection%
\renewcommand{\subsubsection}[1]{\OriginalSubsubsection{\textmd{#1}}}%
As per Stefan's suggestion if you also want to also adjust the numbering:
\let\OriginalTheSubsubsection\thesubsubsection
\renewcommand{\thesubsubsection}{\textmd{\OriginalTheSubsubsection}}
\mdseries
(via \textmd{...}
), but the numbering will still remain and be typeset using \bfseries
. That is, in bold. Is this what you want?
\let\OriginalTheSubsubsection\thesubsubsection
\renewcommand{\thesubsubsection}{\textmd{\OriginalTheSubsubsection}}
, this would also adjust the number. Of course for the complete text, but this might be desirable.
You can use the titlesec
package to format any sectional command. For example, obtaining a medium formatting for \subsubsection
use
\usepackage{titlesec}% http://ctan.org/pkg/titlesec
...
\titleformat{\subsubsection}{\mdseries}{\thesubsubsection}{1em}{}%
In a more general setting, the respective arguments of \titleformat
is
\titleformat{<command>}[<shape>]{<format>}{<label>}{<sep>}{<before-code>}[<after-code>]
Note that optional arguments are specified using [...]
, while mandatory arguments use {...}
. Consequently, in the above redefinition of \subsubsection
, <format>=\mdseries
for medium font, <label>=\thesubsubsection
to print the number of the sub-subsection, <sep>=1em
to provide a space of 1
embetween the
sub-subsection title, and
` is also empty. Play around with these settings to see what fits you, or leave a comment.
Finally, read the package documentation for more information on the details of each component.
titlesec
further customizations would be easy.