diff options
Diffstat (limited to 'Master')
-rw-r--r-- | Master/texmf-dist/doc/latex/iitem/README | 51 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/iitem/iitem.pdf | bin | 0 -> 374059 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/iitem/iitem.dtx | 328 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/iitem/iitem.ins | 35 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/iitem/iitem.sty | 93 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/iitem.tlpsrc | 0 |
8 files changed, 509 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/iitem/README b/Master/texmf-dist/doc/latex/iitem/README new file mode 100644 index 00000000000..8c4ba9f560a --- /dev/null +++ b/Master/texmf-dist/doc/latex/iitem/README @@ -0,0 +1,51 @@ + +The 'iitem' package: +-------------------- + +This package offers the new commands \iitem, \iiitem and \ivtem. + +Instead of writing long lists: +\begin{enumerate}% +\item 1 +\begin{enumerate}% +\item 2 +\begin{enumerate}% +\item 3 +\begin{enumerate}% +\item 4 +\end{enumerate} +\end{enumerate} +\item 2.1 +\end{enumerate} +\end{enumerate} + +you can just write +\begin{enumerate}% +\item 1 +\iitem 2 +\iiitem 3 +\ivtem 4 +\iitem 2.1 +\end{enumerate} + +It also works with itemize, description, compactitem, etc. + +But they don't work in footnotes, marginpars and other commands. + +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +This file contains: + * README + * tikzsymbols.pdf + * tikzsymbols.dtx + * tikzsymbols.ins + +- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +License: + +This material is subject to the LaTeX Project Public License. See + + http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html + +for the details of that license. + diff --git a/Master/texmf-dist/doc/latex/iitem/iitem.pdf b/Master/texmf-dist/doc/latex/iitem/iitem.pdf Binary files differnew file mode 100644 index 00000000000..e2c3f158a94 --- /dev/null +++ b/Master/texmf-dist/doc/latex/iitem/iitem.pdf diff --git a/Master/texmf-dist/source/latex/iitem/iitem.dtx b/Master/texmf-dist/source/latex/iitem/iitem.dtx new file mode 100644 index 00000000000..9e33984ab15 --- /dev/null +++ b/Master/texmf-dist/source/latex/iitem/iitem.dtx @@ -0,0 +1,328 @@ +% \iffalse meta-comment +% +% Copyright (C) 2013 by Ben Vitecek +% +% This file may be distributed and/or modified under the +% conditions of the LaTeX Project Public License, either +% version 1.3 of this license or (at your option) any later +% version. The latest version of this license is in: +% +% http://www.latex-project.org/lppl.txt +% +% and version 1.3 or later is part of all distributions of +% LaTeX version 2008-05-04 or later. +% +% \fi +% +% \iffalse +%<*driver> +\documentclass{ltxdoc} +\usepackage{iitem} +\usepackage[ngerman,english]{babel} +\usepackage[T1]{fontenc} +\usepackage[applemac]{inputenc} +\usepackage{paralist, xcolor, listings,ragged2e} +\usepackage{lmodern} +\usepackage{microtype} +\usepackage[colorlinks=true, linkcolor=blue!70!black]{hyperref} + +\lstset{% +basicstyle=\small\sffamily, +language=[LaTeX]TeX, +breaklines=true, +frame=single, +%framexleftmargin=8mm, +framexrightmargin=0mm, +%xleftmargin=0mm, +prebreak = \raisebox{0ex}[0ex][0ex]{\ensuremath{\hookleftarrow}}, +backgroundcolor=\color{green!5}, +texcsstyle=*\color{blue}, +rulecolor=\color{red}, +morekeywords={\iitem, \iiitem, \ivtem}, +keywordstyle=\color[rgb]{0,0,1}, % keywords +commentstyle=\color[rgb]{1,0,0}, % comments +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{black}{]}}1 +{\ }{\textcolor{blue}{\ }}1 +}% + +\EnableCrossrefs +\CodelineIndex +\RecordChanges + +\makeatletter +\g@addto@macro\@marginparreset{\Huge\RaggedLeft\vspace{-0.5ex}} \makeatother + + +\begin{document} +\DocInput{iitem.dtx} +\end{document} +%</driver> +% \fi +% +% +% \CharacterTable +% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z +% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z +% Digits \0\1\2\3\4\5\6\7\8\9 +% Exclamation \! Double quote \" Hash (number) \# +% Dollar \$ Percent \% Ampersand \& +% Acute accent \' Left paren \( Right paren \) +% Asterisk \* Plus \+ Comma \, +% Minus \- Point \. Solidus \/ +% Colon \: Semicolon \; Less than \< +% Equals \= Greater than \> Question mark \? +% Commercial at \@ Left bracket \[ Backslash \\ +% Right bracket \] Circumflex \^ Underscore \_ +% Grave accent \` Left brace \{ Vertical bar \| +% Right brace \} Tilde \~} +% +% +% +%\changes {v1.0} {2013/01/19} {Initial version} +% +% +% +% \GetFileInfo{iitem.sty} +% +%\DoNotIndex {\begin{tikzpicture},\end{tikzpicture}} +%\DoNotIndex {\verb, \DeclareRobustCommandx} +%\DoNotIndex {=\verb} +%\DoNotIndex {\verb||} +%\DoNotIndex {\draw,\fill,\DeclareRobustCommand, \colorlet,\shade} +%\DoNotIndex {\xspace,\begin,\end} +% +% +% +% +%\title{Package \textsf{iitem}\thanks{This document corresponds to \textsf{iitem}~\fileversion, dated~\filedate.}} +%\author{Ben Vitecek \\ \texttt{b.vitecek@gmx.at}} +%\maketitle +% +% +% \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!} +% \end{abstract} +% +% \tableofcontents +% +% \section{Interesting Part} +% \lstset{deletekeywords={iitem}} +% First of all, include this package via: +%\begin{lstlisting} +%\usepackage{iitem}\end{lstlisting} +% +% \lstset{morekeywords={iitem}} +% +% This package offers three new commands: \lstinline|\iitem|, \lstinline|\iiitem| and \lstinline|\ivtem|. \bigskip +% +%\noindent Instead of writing ~ +%\begin{minipage}{0.24\textwidth} +% \begin{lstlisting} +%\begin{itemize} +% \item 1 +% \begin{itemize} +% \item 2 +% \end{itemize} +%\end{itemize}\end{lstlisting} +%\end{minipage}\quad +%you can just write ~ +%\begin{minipage}{0.22\textwidth} +% \begin{lstlisting} +%\begin{itemize} +%\item 1 +%\iitem 2 +%\end{itemize}\end{lstlisting} +%\end{minipage} +% +% But there \emph{has to be} an \verb|\item| at the beginning of the list (it's the default behavior of lists). And they \emph{don't} work in \verb|\footnote{}| etc. +%\bigskip +% +%Of course it also works with \verb|enumerate|, \verb|description|, and several others (e.g. compactitem, \dots{} from \verb|paralist|). \bigskip +% +%\begin{minipage}{0.49\textwidth} +%\begin{lstlisting} +%\begin{enumerate} +% \item First +% \iitem Second +% \iitem Second two +% \iiitem Third +% \iiitem Third two +% \iitem Second three +% \iiitem Third +% \ivtem Fourth +% \ivtem Fourth four +%\iitem Two four +% \ivtem Four +% \end{enumerate}\end{lstlisting} + +%\end{minipage}\hfill% +%\begin{minipage}{0.49\textwidth} +% \begin{itemize} +% \item First +% \iitem Second +% \iitem Second two +% \iiitem Third +% \iiitem Third two +% \iitem Second three +% \iiitem Third +% \ivtem Fourth +% \ivtem Fourth two +%\iitem Two four +% \ivtem Four +% \end{itemize} +% +%\end{minipage}\bigskip +% +% There should be no difference between the ``real'' lists and the ``iitem'' lists. + +% +% \section{Any ideas?} +% Like I said before you cannot use them in \verb|\footnote{}| etc. +% If anyone has the knowledge of how this behavior can be changed, he or she might write an email to me (I don't have the knowledge to do it). +% + + +% \section{Code (in german)} +% In der ersten Zeile steht immer dasselbe: Was brauche ich, wie hei§t das Paket. +% \begin{macrocode} +\NeedsTeXFormat{LaTeX2e}[2011/06/27] +\ProvidesPackage{iitem} +[2013/03/31 v1.0 Go a step deeper in lists +using the new commands ``iitem'', ``iiitem'' and ``ivtem''.] +% \end{macrocode} + +%\begin{macro}{\Pseudo@item} +% Unsere Befehle werden dadurch definiert, dass Umgebungen um ein \verb|\item| in der Mitte gebaut werden. +% Nun muss aber in jeder Liste ein \verb|\item| vorhanden sein. +% Um dieses Problem zu lsen, definiere ich dieses \verb|\Pseudo@item|. +% Es ist eigentlich nichts anderes, als ein unsichtbares \verb|\item|. +% \begin{macrocode} +\def\Pseudo@item{{{% + \@inmatherr\item + \@ifnextchar [\@item{\@item[]} + }}} +% \end{macrocode} +%\end{macro} + +%\begin{macro}{iitemcounter} +%\begin{macro}{iiitemcounter} +%\begin{macro}{ivtemcounter} +% Damit die Nummerierung bei \verb|enumerate| richtig funktioniert, brauchen wir diese drei Zhler. +% \begin{macrocode} +\newcounter{iitemcounter} +\newcounter{iiitemcounter} +\newcounter{ivtemcounter} +% \end{macrocode} +%\end{macro} +%\end{macro} +%\end{macro} + +%\begin{macro}{\item} +% Ich hoffe, ich mach keinen Bldsinn \dots{} +% Zuerst sage ich ihm, dass \verb|\AltesItem| \verb|\item| ist. +% Dann definiere ich \verb|\item| um: Wir brauchen diese Konstruktion, damit die Nummerierung funktioniert. +% Die Zhler werden auf Null gesetzt, wenn ein \verb|\item| auf der obersten Ebene geschrieben wird. +% \begin{macrocode} +\let\AltesItem\item +\renewcommand{\item}{% +\if@nmbrlist% + \ifnum% + \@enumdepth=1% + \setcounter{iitemcounter}{0}% + \setcounter{iiitemcounter}{0}% + \setcounter{ivtemcounter}{0}% + \fi% +\fi% +\AltesItem} +% \end{macrocode} +%\end{macro} + + +% \begin{macro}{\iitem@line@command} +% Eigentlich habe ich ja keine Ahnung von \LaTeX{} Code und dem Programmieren damit. +%Aber zum Glck fand ich folgenden Code auf dieser Internetseite: \href{http://tex.stackexchange.com/questions/10426/def-taking-rest-of-the-line-as-argument}{http://tex.stackexchange.com/questions/10426/def-taking-rest-of-the-line-as-argument}. +% Ich habe den Code genommen, den Namen gendert und hier ist er: +% \begin{macrocode} +\newcommand*{\iitem@line@command}[2]{% + \newcommand*{#1}{% + \begingroup% + \escapechar=`\\% + \catcode\endlinechar=\active% + \csname\string#1\endcsname% + }% + \begingroup% + \escapechar=`\\% + \lccode`\~=\endlinechar% + \lowercase{% + \expandafter\endgroup + \expandafter\def\csname\string#1\endcsname##1~% + }{\endgroup#2\space}% +} +% \end{macrocode} +%\end{macro} + +% \begin{macro}{\iitem} +% Wir definieren \verb|\iitem|. +% Als erstes setzen wir \verb|\partopsep0pt| damit die Abstnde nicht zu gro§ sind. +% Danach kommt die Umgebung: ich benutze das Makro \verb|\@currenvir|, dieses hat die Umgebung, die gerade aktiv, ist gespeichert (z.B.~itemize, enumerate, description, etc.). +% Wenn ich einfach \verb|\begin{\@currenvir}| hinschreiben wrde, wrde \LaTeX{} zuerst \verb|\begin{| ausfhren, dann auf \verb|\@currenvir| sto§en und versuchen, dieses als Umgebung zu aktivieren. +% Da dies aber nicht funktioniert, brauchen wir \verb|\exapndafter|: Mit dem Ersten, springen wir zum Zweiten, und mit diesem, sagen wir, dass \LaTeX{} \verb|\@currenvir| aktivieren soll, sprich \verb|\@currenvir| wird zu der gerade aktiven Umgebung. +% Dann kommt \verb|\begin{|. \LaTeX{} liest also z.B.~\verb|\begin{itemize}| statt \verb|\begin{\@currenvir}| +% +% Noch da? Als nchstes prfen wir, ob es eine Nummernliste ist, wenn ja, sagen wir das der merkwrdige \verb|\@listctr| Befehl auf \verb|\theiitemcounter| gesetzt wird, damit kommt die richtige Nummerierung zustande (hoffentlich). +% Danach schreiben wir \verb|\item| hin, schlie§en die Umgebung und erhhen \verb|iitemcounter| um eins, und setzen \verb|iiitemcounter| auf 0. +% \begin{macrocode} +\iitem@line@command{\iitem}{\partopsep0pt% + \expandafter\begin\expandafter{\@currenvir}% + \if@nmbrlist\setcounter{\@listctr}{\theiitemcounter}\fi% + \item #1% + \expandafter\end\expandafter{\@currenvir}% +\stepcounter{iitemcounter}% +\setcounter{iiitemcounter}{0}\setcounter{ivtemcounter}{0}} +% \end{macrocode} +%\end{macro} + + +% \begin{macro}{\iiitem} +% Eigentlich dasselbe wie vorher. +% Nur kommt hier \verb|\Pseudo@item| ins Spiel. +% Wenn wir diesen Befehl nicht einfgen, meldet \LaTeX{} einen Fehler, da ein \verb|\item| fehlt (missing item). Der Rest ist mehr oder weniger derselbe. +% \begin{macrocode} +\iitem@line@command{\iiitem}{\partopsep0pt% + \expandafter\begin\expandafter{\@currenvir}\Pseudo@item% + \expandafter\begin\expandafter{\@currenvir}% + \if@nmbrlist\setcounter{\@listctr}{\theiiitemcounter}\fi% + \item #1 + \expandafter\end\expandafter{\@currenvir}% + \expandafter\end\expandafter{\@currenvir}% +\stepcounter{iiitemcounter}\setcounter{ivtemcounter}{0}} +% \end{macrocode} +%\end{macro} + +% \begin{macro}{\ivtem} +% Selbe wie vorher. +% \begin{macrocode} +\iitem@line@command{\ivtem}{\partopsep0pt% + \expandafter\begin\expandafter{\@currenvir}\Pseudo@item% + \expandafter\begin\expandafter{\@currenvir}\Pseudo@item% + \expandafter\begin\expandafter{\@currenvir}% + \if@nmbrlist \setcounter{\@listctr}{\theivtemcounter}\fi% + \item #1% + \expandafter\end\expandafter{\@currenvir}% + \expandafter\end\expandafter{\@currenvir}% + \expandafter\end\expandafter{\@currenvir}% +\stepcounter{ivtemcounter}} +% \end{macrocode} +%\end{macro} + +% Well that's it. Happy \TeX ing. + + + + +%\PrintChanges \PrintIndex
\ No newline at end of file diff --git a/Master/texmf-dist/source/latex/iitem/iitem.ins b/Master/texmf-dist/source/latex/iitem/iitem.ins new file mode 100644 index 00000000000..a367996c606 --- /dev/null +++ b/Master/texmf-dist/source/latex/iitem/iitem.ins @@ -0,0 +1,35 @@ +%% +%% Copyright (C) 2013 by Ben Vitecek +%% +%% This file may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3 of this license or (at your option) any later +%% version. The latest version of this license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2008-05-04 or later. +%% + +\input docstrip.tex + +\keepsilent + +\usedir{tex/latex/tikzsymbols} + +\preamble +This is a generated file. + +Copyright (C) 2013 by Ben Vitecek + +This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.2 of this license or (at your option) any later version. The latest version of this license is in: + + http://www.latex-project.org/lppl.txt + +and version 1.2 or later is part of all distributions of LaTeX version 1999/12/01 or later. +\endpreamble + +\generate{\file{iitem.sty}{\from{iitem.dtx}{package}}} + +\endbatchfile
\ No newline at end of file diff --git a/Master/texmf-dist/tex/latex/iitem/iitem.sty b/Master/texmf-dist/tex/latex/iitem/iitem.sty new file mode 100644 index 00000000000..93728965d51 --- /dev/null +++ b/Master/texmf-dist/tex/latex/iitem/iitem.sty @@ -0,0 +1,93 @@ +%% +%% This is file `iitem.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% iitem.dtx (with options: `package') +%% This is a generated file. +%% +%% Copyright (C) 2013 by Ben Vitecek +%% +%% This file may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.2 of this license or (at your option) any later version. The latest version of this license is in: +%% +%% http://www.latex-project.org/lppl.txt +%% +%% and version 1.2 or later is part of all distributions of LaTeX version 1999/12/01 or later. + + + +\NeedsTeXFormat{LaTeX2e}[2011/06/27] +\ProvidesPackage{iitem} +[2013/03/31 v1.0 Go a step deeper in lists +using the new commands ``iitem'', ``iiitem'' and ``ivtem''.] + +\def\Pseudo@item{{{% + \@inmatherr\item + \@ifnextchar [\@item{\@item[]} + }}} + +\newcounter{iitemcounter} +\newcounter{iiitemcounter} +\newcounter{ivtemcounter} + +\let\AltesItem\item +\renewcommand{\item}{% +\if@nmbrlist% + \ifnum% + \@enumdepth=1% + \setcounter{iitemcounter}{0}% + \setcounter{iiitemcounter}{0}% + \setcounter{ivtemcounter}{0}% + \fi% +\fi% +\AltesItem} + +\newcommand*{\iitem@line@command}[2]{% + \newcommand*{#1}{% + \begingroup% + \escapechar=`\\% + \catcode\endlinechar=\active% + \csname\string#1\endcsname% + }% + \begingroup% + \escapechar=`\\% + \lccode`\~=\endlinechar% + \lowercase{% + \expandafter\endgroup + \expandafter\def\csname\string#1\endcsname##1~% + }{\endgroup#2\space}% +} + +\iitem@line@command{\iitem}{\partopsep0pt% + \expandafter\begin\expandafter{\@currenvir}% + \if@nmbrlist\setcounter{\@listctr}{\theiitemcounter}\fi% + \item #1% + \expandafter\end\expandafter{\@currenvir}% +\stepcounter{iitemcounter}% +\setcounter{iiitemcounter}{0}\setcounter{ivtemcounter}{0}} + +\iitem@line@command{\iiitem}{\partopsep0pt% + \expandafter\begin\expandafter{\@currenvir}\Pseudo@item% + \expandafter\begin\expandafter{\@currenvir}% + \if@nmbrlist\setcounter{\@listctr}{\theiiitemcounter}\fi% + \item #1 + \expandafter\end\expandafter{\@currenvir}% + \expandafter\end\expandafter{\@currenvir}% +\stepcounter{iiitemcounter}\setcounter{ivtemcounter}{0}} + +\iitem@line@command{\ivtem}{\partopsep0pt% + \expandafter\begin\expandafter{\@currenvir}\Pseudo@item% + \expandafter\begin\expandafter{\@currenvir}\Pseudo@item% + \expandafter\begin\expandafter{\@currenvir}% + \if@nmbrlist \setcounter{\@listctr}{\theivtemcounter}\fi% + \item #1% + \expandafter\end\expandafter{\@currenvir}% + \expandafter\end\expandafter{\@currenvir}% + \expandafter\end\expandafter{\@currenvir}% +\stepcounter{ivtemcounter}} + + +\endinput +%% +%% End of file `iitem.sty'. diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index 91269aa64cc..72557eae172 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -213,7 +213,7 @@ my @TLP_working = qw( ibygrk icsv idxlayout ieeepes ifetex ifmslide ifmtarg ifnextok ifoddpage ifplatform ifsym iftex ifthenx ifxetex - ijmart ijqc + iitem ijmart ijqc imac image-gallery imakeidx impatient impatient-fr impnattypo import imsproc imtekda incgraph inconsolata index initials inlinebib inlinedef diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index c8effb937fd..68c997a8f70 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -373,6 +373,7 @@ depend ifnextok depend ifoddpage depend ifplatform depend ifthenx +depend iitem depend image-gallery depend imakeidx depend import diff --git a/Master/tlpkg/tlpsrc/iitem.tlpsrc b/Master/tlpkg/tlpsrc/iitem.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/iitem.tlpsrc |