I defined an example "placeholder" using
\newtheorem
:
Code: Select all
\newtheorem{example}{Example}
Code: Select all
\begin{example}[spheresmusic]
Consider s is a sphere so that ... .
\end{example}
Thanks
\newtheorem
:
Code: Select all
\newtheorem{example}{Example}
Code: Select all
\begin{example}[spheresmusic]
Consider s is a sphere so that ... .
\end{example}
NEW: TikZ book now 40% off at Amazon.com for a short time.
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\newtheorem{example}{Example}
\newcommand*\variable[1]{\textup{#1}}
\begin{document}
% emphasized:
\begin{example}[spheresmusic]
Consider \emph{s} is a sphere so that ... .
\end{example}
% upright:
\begin{example}[spheresmusic]
Consider \textup{s} is a sphere so that ... .
\end{example}
% semantically marked:
\begin{example}[spheresmusic]
Consider \variable{s} is a sphere so that ... .
\end{example}
\end{document}
NEW: TikZ book now 40% off at Amazon.com for a short time.