Text Formatting ⇒ Theorem numbering - roman vs. alpha
Theorem numbering - roman vs. alpha
\newshadetheorem{question}{Question}
\newshadetheorem{Qpart}{Scenario}[question]
and the out put is close to what I want:
Question 2 text text text....
Scenario 2.1 text text text...
Scenario 2.2 text text text...
What I would like is this:
Question 2 text text text....
Scenario 2.a text text text...
Scenario 2.b text text text...
I have tried a couple different things, but either no effect on the out put or there is a compile issue. The two things I have tried are:
\renewcommand{\labelQpart}{(\alph{Qpart})}
(compile error)
and
\renewcommand\theQpart{
\ifnum\value{question}>0 \thequestion\fi \alph{\value{Qpart}}}
(compiles fine, but there is no change in the output).
Thanks for the help!
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
Theorem numbering - roman vs. alpha
Code: Select all
\renewcommand{\theshadeQpart}{\ifnum\value{shadequestion}>0 \thequestion\ \fi\alph{shadeQpart}}
Re: Theorem numbering - roman vs. alpha
The code in the preamble is:
\newshadetheorem{question}{Question}
\newshadetheorem{Qpart}{Scenario}[question]
\renewcommand{\theshadeQpart}{\thequestion.\alph{shadeQpart}}
then we have in the document itself, the abbreviated text is:
\begin{question}
For each of the following scenarios ....
\end{question}
\begin{Qpart} %2.a
An experiment is designed to compare the effects of four......
\end{Qpart}
The best name to give this design....
\begin{Qpart} %2.b
A Forest Science department is designing
\end{Qpart}
A screen shot of the result is attached.
- Attachments
-
- theoremnumber.jpg (37.65 KiB) Viewed 4388 times