GeneralSOLVED Multiple versions of a document from one source file

LaTeX specific issues not fitting into one of the other forums of this category.
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

SOLVED Multiple versions of a document from one source file

Post by T3. »

nieproszenieja wrote:I don't know why, but it doesn't work for me (in \jobname and \Defaultsetup is the same string, I checked this)
In fact, it doesn't work at all. Sorry for the confusion. I always forget that \ifx is not a string comparison (although, sometimes can be used as such) but a token comparison. One could define fully expanded macros for comparison but then there's another complication that \jobname expands with catcodes 12 and comparison with character tokens (catcode 11) will fail. The whole exercise becomes quickly rather complicated, so it's probably the best to forget about it.

Anyway, the most important thing is that you've found a solution that satisfies you.

Cheers,

Tomek

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

nieproszenieja
Posts: 9
Joined: Tue Jul 08, 2008 10:25 pm

SOLVED Multiple versions of a document from one source file

Post by nieproszenieja »

T3. wrote: Anyway, the most important thing is that you've found a solution that satisfies you.
Yes, exactly, so thanks again.
Best regards,
nieproszenieja
rvelseg
Posts: 1
Joined: Mon Mar 24, 2014 7:26 pm

SOLVED Multiple versions of a document from one source file

Post by rvelseg »

I did something in the Makefile/sed approach

https://github.com/rvelseg/MuDoVLaGM
Post Reply