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