From cb2f01ad5ab738ed5d11d0fe31939b454c46ad33 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 2 Apr 2013 22:33:47 +0000 Subject: iitem (2apr13) git-svn-id: svn://tug.org/texlive/trunk@29613 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/iitem/iitem.dtx | 47 ++++++++++++++++++++------ 1 file changed, 37 insertions(+), 10 deletions(-) (limited to 'Master/texmf-dist/source/latex/iitem') diff --git a/Master/texmf-dist/source/latex/iitem/iitem.dtx b/Master/texmf-dist/source/latex/iitem/iitem.dtx index 9e33984ab15..2e1b4e5b5ec 100644 --- a/Master/texmf-dist/source/latex/iitem/iitem.dtx +++ b/Master/texmf-dist/source/latex/iitem/iitem.dtx @@ -45,11 +45,12 @@ stringstyle=\color[rgb]{0.627,0.926,0.941}, % strings columns=fullflexible , literate={\{ }{\textcolor{green!70!black}{\{}}1 {\}}{\textcolor{green!70!black}{\}}}1 -{\%}{\textcolor{green!5}{[}}1 +{\%}{\textcolor{green!5}{}}1 {]}{\textcolor{black}{]}}1 {\ }{\textcolor{blue}{\ }}1 }% + \EnableCrossrefs \CodelineIndex \RecordChanges @@ -105,7 +106,7 @@ literate={\{ }{\textcolor{green!70!black}{\{}}1 % % % \begin{abstract} -% It was always a bit annoying to write \lstinline|\begin{itemize}| inside \lstinline|\begin{itemize}| to go a step deeper. Using this package you can just write \lstinline|\iitem|, \lstinline|\iiitem| and \lstinline|\ivtem|. Of course you can also use \verb|description|, \verb|enumerate|, etc. {\color{red}But\marginpar{!!!} they are not usable in \verb|\footnote{}|, \verb|\marginpar{}| and several other commands!} +% It was always a bit annoying to write \lstinline|\begin{itemize}| inside \lstinline|\begin{itemize}| to go a step deeper. Using this package you can just write \lstinline|\iitem|, \lstinline|\iiitem| and \lstinline|\ivtem|. Of course you can also use \verb|description|, \verb|enumerate|, etc. {\color{red}But\marginpar{!!!} they are not usable in \verb|\footnote{}|, \verb|\marginpar{}| (I think they are named ``fragile'') etc. commands!} % \end{abstract} % % \tableofcontents @@ -156,13 +157,13 @@ literate={\{ }{\textcolor{green!70!black}{\{}}1 % \iiitem Third % \ivtem Fourth % \ivtem Fourth four -%\iitem Two four -% \ivtem Four +% \iitem Second four +% \ivtem Fourth % \end{enumerate}\end{lstlisting} %\end{minipage}\hfill% %\begin{minipage}{0.49\textwidth} -% \begin{itemize} +% \begin{enumerate} % \item First % \iitem Second % \iitem Second two @@ -172,13 +173,39 @@ literate={\{ }{\textcolor{green!70!black}{\{}}1 % \iiitem Third % \ivtem Fourth % \ivtem Fourth two -%\iitem Two four -% \ivtem Four -% \end{itemize} +%\iitem Second four +% \ivtem Fourth +% \end{enumerate} +%\end{minipage}\bigskip\bigskip % -%\end{minipage}\bigskip % -% There should be no difference between the ``real'' lists and the ``iitem'' lists. + +% +% \section{What doesn't work} +% I am bad at explaining so here is an example: +% +%\begin{minipage}{0.49\textwidth} +%\begin{lstlisting} +%\begin{enumerate} +% \item Using the ``normal'' item, +% you can make paragraphs and the text +%is still caught by the item. +% \iitem Using the new commands, this doesn't work anymore. +%If you make a paragraph, the text isn't caught anymore. +%\iiitem So it's the best, if you write a long sentence after an iitem, iiitem and ivtem that you write the sentence in a long line. +% \end{enumerate}\end{lstlisting} + +%\end{minipage}\hfill% +%\begin{minipage}{0.49\textwidth} +%\begin{enumerate} +% \item Using the ``normal'' item, +% you can make paragraphs and the text +%is still caught by the item. +% \iitem Using the new commands, this doesn't work anymore. +%If you make a paragraph, the text isn't caught anymore. +%\iiitem So it's the best, if you write a long sentence after an iitem, iiitem and ivtem that you write the sentence in a long line. +%\end{enumerate} +%\end{minipage}\bigskip % % \section{Any ideas?} -- cgit v1.2.3