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}
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
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}
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