Debian Codegraph @

texmf-dist/source/latex/sitem/sitem.dtx

raw
1 % \iffalse meta-comment
2 %
3 % sitem.dtx
4 % Copyright 2011 Piotr Majkrzak <[email protected]>
5 %
6 % This work may be distributed and/or modified under the
7 % conditions of the LaTeX Project Public License, either version 1.3
8 % of this license or (at your option) any later version.
9 % The latest version of this license is in
10 % http://www.latex-project.org/lppl.txt
11 % and version 1.3 or later is part of all distributions of LaTeX
12 % version 2005/12/01 or later.
13 %
14 % This work has the LPPL maintenance status `maintained'.
15 %
16 % The Current Maintainer of this work is Piotr Majkrzak.
17 %
18 % This work consists of the files sitem.dtx and sitem.ins
19 % and the derived file sitem.sty.
20 %
21 % \fi
22 %%
23 %\iffalse
24 %<*driver>
25 \documentclass[a4paper]{ltxdoc}
26 \EnableCrossrefs
27 \CodelineIndex
28 \RecordChanges
29 \usepackage{sitem}
30 \usepackage[utf8x]{inputenc}
31 \usepackage{url}
32 \usepackage{hyperref}
33 \hypersetup%
34 {%
35 unicode,
36 pdftitle=sitem LaTeX package documentation,
37 pdfauthor=Piotr Majkrzak,
38 pdfborder={0 0 0},
39 pdfhighlight={/N}
40 }
41 \title{sitem \fileversion\\{\large\fileinfo}}
42 \author{Piotr Majkrzak\\\href{mailto:[email protected]}{\texttt{<[email protected]>}}}
43 \date{\filedate}
44 \begin{document}
45 \DocInput{sitem.dtx}
46 \end{document}
47 %</driver>
48 %\fi
49 % \GetFileInfo{sitem.sty}
50 % \maketitle
51 % \begin{macro}{\sitem[]}
52 % is the only macro provided by the |sitem| package.
53 % It is a save equivalent of standard |\item[]| command, where normally |\texttt|,|\lstinline| and other similar commands wont work.
54 % Implementation isn't long, and you can see it bellow:
55 % \begin{macrocode}
56 \NeedsTeXFormat{LaTeX2e}[1999/12/01]
57 \ProvidesPackage{sitem}
58 [2011/04/18 v1.0 save item environment]
59 \makeatletter
60 \newsavebox{\@sitem}
61 \def\sitem[#1]{\sbox{\@sitem}{#1}\item[\usebox{\@sitem}]}
62 \makeatother
63 % \end{macrocode}
64 % \end{macro}
65 \endinput