Saturday, 25 May 2013

Indent paragraph to horizontally align with enumerate environment

Indent paragraph to horizontally align with enumerate environment

I have an enumerated list with points, intersected with comments to each point. I would like to align my comments vertically with the itemized points in the enumerated list. Below a MWE with its output.
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{enumerate}[align=left, label=\large{\textbf{\arabic*}}]
    \item Here is my first point.
\end{enumerate}
\textbf{C:} Here is my comment to the first point.
\begin{enumerate}[resume, align=left, label=\large{\textbf{\arabic*}}]
    \item Here is my second point.
\end{enumerate}
\textbf{C:} Here is my comment to the second point.
\end{document}

My desired output would be something like this (ignore the curly braces):
1 { } Here is my first point.
C { } Here is my comment to the first point.
2 { } Here is my second point.
C { } Here is my comment to the second point.



Edit: As David & Werner suggest:
\documentclass{article}
\usepackage{enumitem}
\newcommand{\citem}{\item[\textbf{C:}]}
\begin{document}
\begin{enumerate}[align=left, label=\large{\textbf{\arabic*}}]
    \item Here is my first point.
    \citem Here is my comment to the first point.
    \item Here is my second point.
    \citem Here is my comment to the second point.
\end{enumerate}
\end{document}

No comments:

Post a Comment