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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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