I have two different projects, which are the LaTeX code for English and Greek for the same book.
Does LaTeX support preprocessing code (without using any external tools) that would allow two different compilations on a single project giving two different outputs?
In my old Pascal, I could use something like:
{$IFC ENG}
file1eng.p
file2eng.p
{$ELSEC}
file1gr.p
file2gr.p
{$ENDC}
If I had set now:
{$ENG=1}
in my preprocessing file, then the compiled project would parse the english file and produce the output of the english project and vice versa.
Is there a similar facility in LaTeX, that would allow me to control the project flow this way? The number and names of the files on both projects are identical.
makefile (or something similar). – Johannes_B Dec 25 '14 at 11:38