summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Master/texmf-dist/doc/latex/verbdef/verbdef.pdfbin0 -> 63232 bytes
-rw-r--r--Master/texmf-dist/doc/latex/verbdef/verbdef.tex53
-rw-r--r--Master/texmf-dist/tex/latex/verbdef/verbdef.sty (renamed from Master/texmf-dist/tex/latex/ltxmisc/verbdef.sty)0
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check2
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/verbdef.tlpsrc0
6 files changed, 55 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/verbdef/verbdef.pdf b/Master/texmf-dist/doc/latex/verbdef/verbdef.pdf
new file mode 100644
index 00000000000..ecfa763a5f8
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/verbdef/verbdef.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/verbdef/verbdef.tex b/Master/texmf-dist/doc/latex/verbdef/verbdef.tex
new file mode 100644
index 00000000000..e07315059af
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/verbdef/verbdef.tex
@@ -0,0 +1,53 @@
+\documentclass[a4paper]{article}
+\usepackage[dvips,a4paper]{geometry}
+\usepackage{verbdef}
+\verbdef\verbdefcmd|\verbdef|
+\providecommand\cs[1]{\texttt{\char`\\#1}}
+\begin{document}
+\title{The \textsf{verbdef} package\thanks{This documents version 0.2, of
+ 2000-10-06}}
+\author{Robin Fairbairns}
+\maketitle
+
+\section{What is it for?}
+
+Verbatim text is notoriously difficult in \TeX{}; in \LaTeX{} it adds
+confusion by being ``more fragile than fragile''.
+
+This package provides one way out of the impasse: the command
+\verbdefcmd, which defines a robust command that expands to verbatim
+text.
+
+\section{Using \verbdefcmd}
+
+The \verbdefcmd{} command can take an its verbatim string between
+matching characters, as \cs{verb} does:
+\begin{quote}
+\verbdefcmd\cs{demo}\texttt{|demonstration text|}
+\end{quote}
+or you may give it a more normal-looking argument:
+\begin{quote}
+ \verbdefcmd\cs{demo}\texttt{\char`\{demonstration text\char`\}}
+\end{quote}
+
+The command also respects ``\texttt{*}'', as it's used in \cs{verb}
+and the \texttt{verbatim} environment:
+\begin{quote}
+ \verbdefcmd\texttt{*}\cs{stardemo}\texttt{\char`\{with visible spaces\char`\}}
+\end{quote}
+%
+% another self-reference...
+\verbdef*\stardemo{with visible spaces}%
+which will define a verbatim text \stardemo{} (just like that).
+
+\section{Caveat}
+
+If the command you're defining with \verbdefcmd{} is to be used in a
+\cs{section}-type command, or a \cs{caption}, it's going to appear in
+the table of contents (or list of whatever else). In this case you
+\emph{must} define the command before the \cs{tableofcontents} command
+(or whatever). I recommend defining such commands in the preamble of
+the document\footnote{In fact, the source of the present document is
+ so structured, since \verbdefcmd{} is used to define a command for
+ \verbdefcmd\dots}.
+\end{document}
diff --git a/Master/texmf-dist/tex/latex/ltxmisc/verbdef.sty b/Master/texmf-dist/tex/latex/verbdef/verbdef.sty
index 68421134766..68421134766 100644
--- a/Master/texmf-dist/tex/latex/ltxmisc/verbdef.sty
+++ b/Master/texmf-dist/tex/latex/verbdef/verbdef.sty
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index f8db344845c..5d8f93ee80c 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -297,7 +297,7 @@ my @TLP_working = qw(
upmethodology upquote url urlbst ushort ut-thesis uwthesis
vancouver variations varindex varisize
varsfromjobname varwidth vaucanson-g
- vector velthuis venn venturisadf verbatimbox verbatimcopy
+ vector velthuis venn venturisadf verbatimbox verbatimcopy verbdef
verse version versions vertbars
vhistory visualfaq vmargin vntex volumes vpe vwcol vxu
wadalab wallpaper warning warpcol widetable williams wordlike
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index 1ad4d38b005..d9e3a6330da 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -635,6 +635,7 @@ depend varwidth
depend vector
depend verbatimbox
depend verbatimcopy
+depend verbdef
depend version
depend versions
depend vertbars
diff --git a/Master/tlpkg/tlpsrc/verbdef.tlpsrc b/Master/tlpkg/tlpsrc/verbdef.tlpsrc
new file mode 100644
index 00000000000..e69de29bb2d
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/verbdef.tlpsrc