General ⇒ italic roman inside an equation
italic roman inside an equation
im trying to put a nice looking lande g-factor into an equation. what i need is a roman g that is italicised when in the equation environment. i just can't figure out how to do this!
so far ive tried...
\rm{g}, this gives a roman g but it is not in italics
\emph{\rm{g}}, this gives a roman g but it is not in italics
\rm{\emph{g}}, this gives an italic g, but not the roman font!
any help would be very appreciated.
cheers.
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
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
italic roman inside an equation
welcome to the board!
Don't use the old macros like \rm, \it, \bf. Instead of \rm use \rmfamily or \textrm{text} or in math mode \mathrx{text}.
If there's no italic shape of the font typeface you like, you could try slanted: \textsl{text} or \slshape. Try this small example:
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[ \text{g} , \text{\textit{g}} , \textsl{\textrm{g}} \]
\end{document}
Re: italic roman inside an equation
\textsl{\textrm{g}} worked a treat.