A question for the LaTeX gurus…

Does anyone out there know of a way to have conditional blocks in LaTeX that are controllable by external parameters?

The sort of thing I want to do is something like:

\configurablesection{someparameter_1}
some stuff here (this is block1)

\configurablesection{someparameter_2}
some different stuff here (this is block2)

Then, from the command line, set a parameter to include the text in block 1 AND/OR in block2, and produce different output as a consequence.

Any pointers welcomed!

RSS feed | Trackback URI

2 Comments »

Comment by xavier
2008-03-01 10:05:14

If no latex guru shows up you can consider preprocessing the files with python (and setting the output files to read-only, so you don’t forget and end up editing a generated file)

Comment by jrbriggs
2008-03-01 22:31:12

I’ve considered that, but was trying to avoid using something other than latex.

I have actually found a way to do conditional blocks now, but it doesn’t appear to work all the time… annoyingly.

 
 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

Trackback responses to this post