\detokenize works for our environment. Thanks for the immediate response, all!phi wrote:Code: Select all
\ifthenelse{\equal{\detokenize{test}}{\jobname}}{
Search found 4 matches
- Fri Nov 21, 2008 4:21 pm
- Forum: General
- Topic: Conditional formatting based upon filename (\jobname)
- Replies: 7
- Views: 9837
Conditional formatting based upon filename (\jobname)
- Thu Nov 20, 2008 11:40 pm
- Forum: General
- Topic: Conditional formatting based upon filename (\jobname)
- Replies: 7
- Views: 9837
Conditional formatting based upon filename (\jobname)
Create a file test.tex with the following contents:
------------------------
\documentclass{article}
\usepackage{ifthen}
\begin{document}
\huge
\ifthenelse{\equal{test}{\jobname}}{
good
}{
bad: ``\jobname"
}
\end{document}
------------------------
Run it through pdflatex and notice that the ...
------------------------
\documentclass{article}
\usepackage{ifthen}
\begin{document}
\huge
\ifthenelse{\equal{test}{\jobname}}{
good
}{
bad: ``\jobname"
}
\end{document}
------------------------
Run it through pdflatex and notice that the ...
- Fri Nov 07, 2008 9:32 pm
- Forum: Document Classes
- Topic: insert file name in the document (header, footer)
- Replies: 17
- Views: 14139
Re: insert file name in the document (header, footer)
Thanks! \jobname works great. I couldn't find this anywhere else.
- Fri Oct 31, 2008 3:35 pm
- Forum: General
- Topic: Fancy header in the frontmatter problem
- Replies: 2
- Views: 2771
Re: Fancy header in the frontmatter problem
I had this same issue and this worked for me. Thanks Stephan!