Math & Science ⇒ Italic Math Expressions in Reference Title
Italic Math Expressions in Reference Title
is there a way to print a formula completely in italics?
With the bibliography style I use, titles of references are printed in italics - however, when there is some inline math $...$ inside the title, numbers and symbols (<, >, \geq, ...) are put upright. Is there any way to change this behavior locally, similar to the \boldmath command (however for italics)?
Alex
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
-
kaiserkarl13
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Italic Math Expressions in Reference Title
Code: Select all
\documentclass{article}
\begin{document}
\emph{This is 1 in italics.}
\emph{This is $1$ in italics and math mode.}
This is $1$ in normal text and math mode.
This is 1 in normal text.
\end{document}
A mathematical expression in a title is strange anyway, but mathematical expressions are intentionally set in upright type to distinguish them from guillemets.
Re: Italic Math Expressions in Reference Title
However, the titles contain chemical formulas such as Mg$_x$Zn$_{1-x}$O and intervals such as $0 ≤ x ≤ 0.22$. It looks a bit strange if the numbers and symbols are upright... Is there an efficient way to get them in italics, without rewriting all math environments?
The question is: how is \boldmath defined - couldn't one define a similar command for italics?
Alex
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Italic Math Expressions in Reference Title
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage[version=3]{mhchem}
\begin{document}
$0\leq x\leq0.22$ \emph{$\text{0}\leq x\leq\text{0.22}$}
\ce{Mg_xZn_{1-x}O} \emph{\ce{Mg_xZn_{1-x}O}}
\end{document}Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10