Skip to main content

I'm not sure whether it is a good idea to do this, maybe you should use a different environment for that. The following patches \item inside every itemize environment to add a semicolon after the first, and the \enditemize macro is changed to add a dot. You can no longer nest itemize environments with this simple approach. All in all I think this creates more problems than it solves...

\documentclass[]{article} \usepackage{etoolbox} \AtBeginEnvironment{itemize} {% \def\itemizepunctionation\def\itemizepunctuation{\def\itemizepunctionation\def\itemizepunctuation{\ifhmode\unskip\fi;}}% \pretocmd\item{\itemizepunctionation\itemizepunctuation}{}{}% \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}% } \newenvironment{punctitemize} {% \itemize \def\itemizepunctionation\def\itemizepunctuation{\def\itemizepunctionation\def\itemizepunctuation{\ifhmode\unskip\fi;}}% \pretocmd\item{\itemizepunctionation\itemizepunctuation}{}{}% \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}% } {% \enditemize } \begin{document} \begin{itemize} \item One \item Two \item Three \end{itemize} \begin{punctitemize} \item One \item Two \item Three \end{punctitemize} \end{document} 

enter image description here

EDIT: added the environment approach, nesting is still not supported.

I'm not sure whether it is a good idea to do this, maybe you should use a different environment for that. The following patches \item inside every itemize environment to add a semicolon after the first, and the \enditemize macro is changed to add a dot. You can no longer nest itemize environments with this simple approach. All in all I think this creates more problems than it solves...

\documentclass[]{article} \usepackage{etoolbox} \AtBeginEnvironment{itemize} {% \def\itemizepunctionation{\def\itemizepunctionation{\ifhmode\unskip\fi;}}% \pretocmd\item{\itemizepunctionation}{}{}% \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}% } \newenvironment{punctitemize} {% \itemize \def\itemizepunctionation{\def\itemizepunctionation{\ifhmode\unskip\fi;}}% \pretocmd\item{\itemizepunctionation}{}{}% \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}% } {% \enditemize } \begin{document} \begin{itemize} \item One \item Two \item Three \end{itemize} \begin{punctitemize} \item One \item Two \item Three \end{punctitemize} \end{document} 

enter image description here

EDIT: added the environment approach, nesting is still not supported.

I'm not sure whether it is a good idea to do this, maybe you should use a different environment for that. The following patches \item inside every itemize environment to add a semicolon after the first, and the \enditemize macro is changed to add a dot. You can no longer nest itemize environments with this simple approach. All in all I think this creates more problems than it solves...

\documentclass[]{article} \usepackage{etoolbox} \AtBeginEnvironment{itemize} {% \def\itemizepunctuation{\def\itemizepunctuation{\ifhmode\unskip\fi;}}% \pretocmd\item{\itemizepunctuation}{}{}% \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}% } \newenvironment{punctitemize} {% \itemize \def\itemizepunctuation{\def\itemizepunctuation{\ifhmode\unskip\fi;}}% \pretocmd\item{\itemizepunctuation}{}{}% \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}% } {% \enditemize } \begin{document} \begin{itemize} \item One \item Two \item Three \end{itemize} \begin{punctitemize} \item One \item Two \item Three \end{punctitemize} \end{document} 

enter image description here

EDIT: added the environment approach, nesting is still not supported.

added 432 characters in body
Source Link
Skillmon
  • 77.5k
  • 1
  • 87
  • 150

I'm not sure whether it is a good idea to do this, maybe you should use a different environment for that. The following patches \item inside every itemize environment to add a semicolon after the first, and the \enditemize macro is changed to add a dot. You can no longer nest itemize environments with this simple approach. All in all I think this creates more problems than it solves...

\documentclass[]{article} \usepackage{etoolbox} \AtBeginEnvironment{itemize} {% \def\itemizepunctuation\def\itemizepunctionation{\def\itemizepunctuation\def\itemizepunctionation{\ifhmode\unskip\fi;}}% \pretocmd\item{\itemizepunctuation\itemizepunctionation}{}{}% \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}% } \newenvironment{punctitemize} {% \itemize \def\itemizepunctionation{\def\itemizepunctionation{\ifhmode\unskip\fi;}}%   \pretocmd\item{\itemizepunctionation}{}{}%  \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}%  } {% \enditemize } \begin{document} \begin{itemize} \item One \item Two \item Three \end{itemize} \begin{punctitemize} \item One  \item Two \item Three \end{punctitemize} \end{document} 

enter image description here

EDIT: added the environment approach, nesting is still not supported.

I'm not sure whether it is a good idea to do this, maybe you should use a different environment for that. The following patches \item inside every itemize environment to add a semicolon after the first, and the \enditemize macro is changed to add a dot. You can no longer nest itemize environments with this simple approach. All in all I think this creates more problems than it solves...

\documentclass[]{article} \usepackage{etoolbox} \AtBeginEnvironment{itemize} {% \def\itemizepunctuation{\def\itemizepunctuation{\ifhmode\unskip\fi;}}% \pretocmd\item{\itemizepunctuation}{}{}% \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}% } \begin{document} \begin{itemize} \item One \item Two \item Three \end{itemize} \end{document} 

enter image description here

I'm not sure whether it is a good idea to do this, maybe you should use a different environment for that. The following patches \item inside every itemize environment to add a semicolon after the first, and the \enditemize macro is changed to add a dot. You can no longer nest itemize environments with this simple approach. All in all I think this creates more problems than it solves...

\documentclass[]{article} \usepackage{etoolbox} \AtBeginEnvironment{itemize} {% \def\itemizepunctionation{\def\itemizepunctionation{\ifhmode\unskip\fi;}}% \pretocmd\item{\itemizepunctionation}{}{}% \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}% } \newenvironment{punctitemize} {% \itemize \def\itemizepunctionation{\def\itemizepunctionation{\ifhmode\unskip\fi;}}%   \pretocmd\item{\itemizepunctionation}{}{}%  \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}%  } {% \enditemize } \begin{document} \begin{itemize} \item One \item Two \item Three \end{itemize} \begin{punctitemize} \item One  \item Two \item Three \end{punctitemize} \end{document} 

enter image description here

EDIT: added the environment approach, nesting is still not supported.

Source Link
Skillmon
  • 77.5k
  • 1
  • 87
  • 150

I'm not sure whether it is a good idea to do this, maybe you should use a different environment for that. The following patches \item inside every itemize environment to add a semicolon after the first, and the \enditemize macro is changed to add a dot. You can no longer nest itemize environments with this simple approach. All in all I think this creates more problems than it solves...

\documentclass[]{article} \usepackage{etoolbox} \AtBeginEnvironment{itemize} {% \def\itemizepunctuation{\def\itemizepunctuation{\ifhmode\unskip\fi;}}% \pretocmd\item{\itemizepunctuation}{}{}% \pretocmd\enditemize{\ifhmode\unskip\fi.}{}{}% } \begin{document} \begin{itemize} \item One \item Two \item Three \end{itemize} \end{document} 

enter image description here