summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/varsfromjobname/varsfromjobname.tex
blob: e6031ad7ee53de81aedb318ab91dacc2cf3cca11 (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
\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}