corporal
2014-08-14 01:14:52 UTC
recently I provided an answer to a question on tex stackexchange:
http://tex.stackexchange.com/questions/195836/how-to-introduce-a-dynamic-counter-for-enumerate-environment/195944#195944
(maybe a broken link, I'm not using an optimal interface)
My answer was
\documentclass{article}
\newcommand\finalitem{\item[(\theenumi+1.)]}
\begin{document}
\begin{enumerate}
\item
\item
\finalitem
\end{enumerate}
\end{document}
This produces the expected output:
1.
2.
(2+1.)
replacing "article" by either "minimal" or "standalone" produces odd results.
Using "minimal" only (2+1.) appears in the pdf or dvi.
Using "standalone" produces no output, but an error message.
! LaTeX Error: Something's wrong--perhaps a missing \item.
As far as I know my TeX distribution is up to date; the first line in the log file is:
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9 64-bit) (preloaded format=latex 2014.4.17) 14 AUG 2014 11:05
What is going wrong? Should I put in a bug report?
regards from corporal
http://tex.stackexchange.com/questions/195836/how-to-introduce-a-dynamic-counter-for-enumerate-environment/195944#195944
(maybe a broken link, I'm not using an optimal interface)
My answer was
\documentclass{article}
\newcommand\finalitem{\item[(\theenumi+1.)]}
\begin{document}
\begin{enumerate}
\item
\item
\finalitem
\end{enumerate}
\end{document}
This produces the expected output:
1.
2.
(2+1.)
replacing "article" by either "minimal" or "standalone" produces odd results.
Using "minimal" only (2+1.) appears in the pdf or dvi.
Using "standalone" produces no output, but an error message.
! LaTeX Error: Something's wrong--perhaps a missing \item.
As far as I know my TeX distribution is up to date; the first line in the log file is:
This is pdfTeX, Version 3.1415926-2.5-1.40.14 (MiKTeX 2.9 64-bit) (preloaded format=latex 2014.4.17) 14 AUG 2014 11:05
What is going wrong? Should I put in a bug report?
regards from corporal