summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/leading
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2007-05-09 13:15:05 +0000
committerKarl Berry <karl@freefriends.org>2007-05-09 13:15:05 +0000
commit5a221313b82fe5e9fc9db7db3e17ba4985f470f4 (patch)
tree9f6ba3c1ad6de63dfee9dfd98e107ae18ad1df2b /Master/texmf-dist/doc/latex/leading
parent8f0b3a4f2a7707d2fe6401235979e0fb092c8a53 (diff)
new package leading (6may07)
git-svn-id: svn://tug.org/texlive/trunk@4267 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/leading')
-rw-r--r--Master/texmf-dist/doc/latex/leading/README12
-rw-r--r--Master/texmf-dist/doc/latex/leading/README.txt12
-rw-r--r--Master/texmf-dist/doc/latex/leading/dtx-style.sty113
-rw-r--r--Master/texmf-dist/doc/latex/leading/leading.pdfbin0 -> 88903 bytes
4 files changed, 137 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/leading/README b/Master/texmf-dist/doc/latex/leading/README
new file mode 100644
index 00000000000..7b5609063ba
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/leading/README
@@ -0,0 +1,12 @@
+___________________
+The LEADING package
+v0.2
+
+Defines the \leading{<length>} command to set the
+leading of the document to the length specified. In
+contrast with \linespread{<ratio>}, which is less
+useful in most cases.
+
+______________
+Will Robertson
+2007
diff --git a/Master/texmf-dist/doc/latex/leading/README.txt b/Master/texmf-dist/doc/latex/leading/README.txt
new file mode 100644
index 00000000000..7b5609063ba
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/leading/README.txt
@@ -0,0 +1,12 @@
+___________________
+The LEADING package
+v0.2
+
+Defines the \leading{<length>} command to set the
+leading of the document to the length specified. In
+contrast with \linespread{<ratio>}, which is less
+useful in most cases.
+
+______________
+Will Robertson
+2007
diff --git a/Master/texmf-dist/doc/latex/leading/dtx-style.sty b/Master/texmf-dist/doc/latex/leading/dtx-style.sty
new file mode 100644
index 00000000000..ca82efdc80b
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/leading/dtx-style.sty
@@ -0,0 +1,113 @@
+\ProvidesPackage{dtx-style}
+
+\errorcontextlines=999
+
+\def\@dotsep{1000}
+\setcounter{tocdepth}{2}
+\setlength\columnseprule{0.4pt}
+\renewcommand\tableofcontents{\relax
+ \begin{multicols}{2}[\section*{\contentsname}]\relax
+ \@starttoc{toc}\relax
+ \end{multicols}}
+
+\setcounter{IndexColumns}{2}
+\renewenvironment{theglossary}
+ {\small\list{}{}
+ \item\relax
+ \glossary@prologue\GlossaryParms
+ \let\item\@idxitem \ignorespaces
+ \def\pfill{\hspace*{\fill}}}
+ {\endlist}
+
+\usepackage[svgnames]{xcolor}
+\usepackage{calc,enumitem,fancyvrb,graphicx,\jobname}
+
+\usepackage[osf,sc]{mathpazo}
+\linespread{1.069} % A bit more space between lines
+\frenchspacing % Remove ugly extra space after punctuation
+
+\definecolor{niceblue}{rgb}{0.2,0.4,0.8}
+\newenvironment{example}[1]
+ {\VerbatimEnvironment
+ \def\Options{#1}%
+ \begin{VerbatimOut}[gobble=4]{\examplefilename}}
+ {\end{VerbatimOut}\relax
+ \typesetexample}
+
+\def\theCodelineNo{\textcolor{niceblue}{\sffamily\tiny\arabic{CodelineNo}}}
+
+\let\examplesize\normalsize
+\let\auxwidth\relax
+
+\newlength\examplewidth\newlength\verbatimwidth
+\newlength\exoutdent \newlength\exverbgap
+\setlength\exverbgap{1em}
+\setlength\exoutdent{-0.15\textwidth}
+\newsavebox\verbatimbox
+\edef\examplefilename{\jobname.example}
+
+\newcommand\typesetexample{\relax
+ \smallskip
+ \noindent
+ \begin{minipage}{\linewidth}
+ \color{niceblue}
+ \hrulefill\par
+ \edef\@tempa{[gobble=0,fontsize=\noexpand\scriptsize,\Options]}%
+ \begin{lrbox}{\verbatimbox}\relax
+ \expandafter\BVerbatimInput\@tempa{\examplefilename}%
+ \end{lrbox}
+ \begin{list}{}{\setlength\itemindent{0pt}
+ \setlength\leftmargin\exoutdent
+ \setlength\rightmargin{0pt}}\item
+ \ifx\auxwidth\relax
+ \setlength\verbatimwidth{\wd\verbatimbox}%
+ \else
+ \setlength\verbatimwidth{\auxwidth}%
+ \fi
+ \begin{minipage}[c]{\textwidth-\exoutdent-\verbatimwidth-\exverbgap}
+ \catcode`\%=14\centering\input\examplefilename\relax
+ \end{minipage}\hfill
+ \begin{minipage}[c]{\verbatimwidth}
+ \usebox\verbatimbox
+ \end{minipage}
+ \end{list}
+ \par\noindent\hrulefill
+ \end{minipage}
+ \smallskip}
+
+\newcommand*\setverbwidth[1]{\def\auxwidth{#1}}
+
+\newcommand*\name[1]{{#1}}
+\newcommand*\pkg[1]{\textsf{#1}}
+\newcommand*\feat[1]{\texttt{#1}}
+\newcommand*\opt[1]{\texttt{#1}}
+
+\newcommand*\note[1]{\unskip\footnote{#1}}
+
+\let\latin\textit
+\def\eg{\latin{e.g.}}
+\def\Eg{\latin{E.g.}}
+\def\ie{\latin{i.e.}}
+\def\etc{\@ifnextchar.{\latin{etc}}{\latin{etc.}\@}}
+
+\def\STIX{\textsc{stix}}
+\def\MacOSX{Mac~OS~X}
+\def\ascii{\textsc{ascii}}
+\def\OMEGA{Omega}
+
+\makeatletter
+\newcounter{argument}
+\g@addto@macro\endmacro{\setcounter{argument}{0}}
+\newcommand*\darg[1]{%
+ \stepcounter{argument}%
+ {\ttfamily\char`\#\theargument~:~}#1\par\noindent\ignorespaces}
+\newcommand*\doarg[1]{%
+ \stepcounter{argument}%
+ {\ttfamily\makebox[0pt][r]{[}\char`\#\theargument]:~}#1\par\noindent\ignorespaces}
+\makeatother
+\newcommand\codeline[1]{\par\noindent\hspace{2\parindent}#1\par\noindent\ignorespaces}
+
+\newcommand\unichar[2]{\textsc{\MakeLowercase{u+#1: #2}}}
+
+\setlength\parindent{2em}
+
diff --git a/Master/texmf-dist/doc/latex/leading/leading.pdf b/Master/texmf-dist/doc/latex/leading/leading.pdf
new file mode 100644
index 00000000000..0a9618658d2
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/leading/leading.pdf
Binary files differ