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/doc/latex/iitem/README | 2 +- Master/texmf-dist/doc/latex/iitem/iitem.pdf | Bin 374059 -> 379194 bytes Master/texmf-dist/source/latex/iitem/iitem.dtx | 47 +++++++++++++++++++------ Master/texmf-dist/tex/latex/iitem/iitem.sty | 2 ++ 4 files changed, 40 insertions(+), 11 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/doc/latex/iitem/README b/Master/texmf-dist/doc/latex/iitem/README index 8c4ba9f560a..93a7f2c42d6 100644 --- a/Master/texmf-dist/doc/latex/iitem/README +++ b/Master/texmf-dist/doc/latex/iitem/README @@ -30,7 +30,7 @@ you can just write It also works with itemize, description, compactitem, etc. -But they don't work in footnotes, marginpars and other commands. +But they don't work in footnotes, marginpars ("fragile") commands. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Master/texmf-dist/doc/latex/iitem/iitem.pdf b/Master/texmf-dist/doc/latex/iitem/iitem.pdf index e2c3f158a94..e72b878294a 100644 Binary files a/Master/texmf-dist/doc/latex/iitem/iitem.pdf and b/Master/texmf-dist/doc/latex/iitem/iitem.pdf differ 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?} diff --git a/Master/texmf-dist/tex/latex/iitem/iitem.sty b/Master/texmf-dist/tex/latex/iitem/iitem.sty index 93728965d51..800ab2c1228 100644 --- a/Master/texmf-dist/tex/latex/iitem/iitem.sty +++ b/Master/texmf-dist/tex/latex/iitem/iitem.sty @@ -17,6 +17,8 @@ + + \NeedsTeXFormat{LaTeX2e}[2011/06/27] \ProvidesPackage{iitem} [2013/03/31 v1.0 Go a step deeper in lists -- cgit v1.2.3