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!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
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 4244 times