From dfc967cd868ad32efe600295b7279bd8a89d0c6b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 16 Apr 2008 00:35:32 +0000 Subject: new latex package varsfromjobname git-svn-id: svn://tug.org/texlive/trunk@7434 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/latex/varsfromjobname/README | 33 +++++++++++++++++++++ .../doc/latex/varsfromjobname/varsfromjobname.pdf | Bin 0 -> 29271 bytes .../doc/latex/varsfromjobname/varsfromjobname.tex | 32 ++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 Master/texmf-dist/doc/latex/varsfromjobname/README create mode 100644 Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.pdf create mode 100644 Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.tex (limited to 'Master/texmf-dist/doc/latex') diff --git a/Master/texmf-dist/doc/latex/varsfromjobname/README b/Master/texmf-dist/doc/latex/varsfromjobname/README new file mode 100644 index 00000000000..2077fd693f1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/varsfromjobname/README @@ -0,0 +1,33 @@ +README +--------- + +varsfromjobname.sty extracts variables from the name of the LaTeX file. + +If the name of the file consists of tokens separated by hyphen, the +package offers the following commands: + +\getonefromjobname +\gettwofromjobname +\getthreefromjobname +\getfourfromjobname +\getfivefromjobname +\getsixfromjobname +\getsevenfromjobname +\geteightfromjobname +\getninefromjobname + +Usage: + +a) Save your LaTeX-file under a name such as 2008-04-14-ziegenhagen.tex + +b) Load the package by putting \usepackage{varsfromjobname} in the preamble of + your document + +c) Use the commands given above to address the specific parts of the filename. + +d) Adressing a token which is not available gives an error, so make sure to request + only those tokens which are actually available. + +If you find this package useful, please give me feedback: + +Uwe Ziegenhagen, 2008-04-14 \ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.pdf b/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.pdf new file mode 100644 index 00000000000..3c6e4297795 Binary files /dev/null and b/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.pdf differ diff --git a/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.tex b/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.tex new file mode 100644 index 00000000000..e6031ad7ee5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.tex @@ -0,0 +1,32 @@ +\documentclass{article} + +\nofiles + +\usepackage{varsfromjobname} + +\date{April 14th 2008} +\author{Uwe Ziegenhagen} +\title{Jobdate Description} + +\begin{document} +\maketitle + +\noindent Using \texttt{varsfromjobname.sty} one can easily extract information from the filename, if it follows a certain form. The LaTeX command \verb|\|jobname returns the name of the LaTeX file. If the filename consists of tokens separated by hyphen we can easily extract certain tokens that can be used inside the document. The package expects the filename to be of the form + +\noindent\texttt{one-two-three-four-five-six-seven-eight-nine.tex} + +\noindent and offers the following commands: + +\begin{itemize} + \item \verb|\|getonefromjobname + \item \verb|\|gettwofromjobname + \item \verb|\|getthreefromjobname + \item \verb|\|getfourfromjobname + \item \verb|\|getfivefromjobname + \item \verb|\|getsixfromjobname + \item \verb|\|getsevenfromjobname + \item \verb|\|geteightfromjobname + \item \verb|\|getninefromjobname +\end{itemize} + +\end{document} -- cgit v1.2.3