TransWikia.com

Pass the final/draft option to the document from the command line

TeX - LaTeX Asked on June 9, 2021

I have a document that starts with

documentclass[aps, pra, draft]{revtex4}

Once in while I want to change draft for final but without modifying the file.

How can I effectively change draft to final during compilation?
Is there a way to do it from the command line, (e.g. pdflatex)?

Of course I could do it with sed find and replace but that will create new auxiliary files, I am wondering if there is a more idiomatic way.

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP