Text FormattingPreprint using ifdefined

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
jhapk
Posts: 81
Joined: Tue Apr 20, 2010 9:33 pm

Preprint using ifdefined

Post by jhapk »

Hi,

I have a latex template for a journal paper. The preamble starts like this

Code: Select all

%preprint
\ifdefined\manuscript
  \documentclass[letterpaper,12pt]{article}

%final
\else
  \documentclass[final]{tCTM2e}
\fi                                                                       
when I type

Code: Select all

pdflatex filename.tex
it simply uses the documentclass tCTM2e. How do I make it use the manuscript mode from command line?

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
rf
Posts: 21
Joined: Mon Jul 20, 2009 5:27 pm

Preprint using ifdefined

Post by rf »

alternatives include a file that simply sets the name and
then links to the paper, or

Code: Select all

pdflatex "\def\manuscript{}\input{paper}"
(assuming you're using a un*x shell command line.
Post Reply