LyXHow do I force a document to re-read a .tex file with variab

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
alphabravo
Posts: 1
Joined: Tue Dec 29, 2015 9:00 pm

How do I force a document to re-read a .tex file with variab

Post by alphabravo »

Hi guys,

I have a .tex file that uses \newcommand to define several variables for use in the parent document and in the included child documents. Usually, if I make changes to the definitions, I can save the .tex file and then the document will recognize the updated definitions when I view the master document.

However, many times when I compile the master document (PDF) it is clear that the variable changes have not taken effect. I usually try saving everything, exiting, and restarting, in that order, but there doesn't seem to be a sure way to force the variables to take effect. I have also tried re-applying the preamble under Document>Settings with mixed results.

Is there a menu option or some other way to force the parent document to re-read the variable file?

TIA

Recommended reading 2024:

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

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

Post Reply