Hi folks,
I was wondering if there is a way to customize which part of my tex files should be compiled. Something anologe to C++:
#ifdef FOO
compile this
#else
then compile this
#endif
Thx in advance for any hint or help!
cherio Woltan
General ⇒ Customize Compiler
NEW: TikZ book now 40% off at Amazon.com for a short time.

-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Re: Customize Compiler
Please check out the ifthen package. This may help you do what you wish to do.
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm
Re: Customize Compiler
Heyas,
first of all, thx for the suggestions. I think especially the comment package should fit my needs. However, I was hoping that there are some Enviroment Varibles that the compiler can access in order to compile different versions of the document. With the comment package I would always have to set the comment sections by hand each time I compile a version of the document.
Maybe there still is a way to kick the compiler in order to get different versions of the document.
cherio and thx again for the hints!
Woltan
first of all, thx for the suggestions. I think especially the comment package should fit my needs. However, I was hoping that there are some Enviroment Varibles that the compiler can access in order to compile different versions of the document. With the comment package I would always have to set the comment sections by hand each time I compile a version of the document.
Maybe there still is a way to kick the compiler in order to get different versions of the document.
cherio and thx again for the hints!
Woltan
Customize Compiler
You can hand over anything to the document by calling the compiler with a command sequence instead of an input file name:
Code: Select all
pdflatex '\newcommand*{\mysetting}{myvalue}\input{file.tex}'