auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] Subfiles package and reftex


From: edgar
Subject: [AUCTeX] Subfiles package and reftex
Date: Mon, 26 Dec 2016 04:14:10 +0000
User-agent: Roundcube Webmail/1.0.1

Hi there,

I would like to know if there is a way to
(1) set a master file (Master.tex) which includes other files (\input, \subfiles, \include or any other) with relative paths (2) those other files (header.tex, File1.tex, File2.tex...) have labels (as in \label{fig:NicePicture}) (3) set a cross-reference between those labels (File1.tex has \label{fig:NicePicture} somewhere, and File2.tex has \cref{fig:NicePicture}) (4) set a bunch of styles (\usepackage, \newcommand, etc.) in one of the external files (header.tex, for instance)
(5) use RefTeX to create those cross-references.

Say, something like this:
|-Master.tex
|-preamble.tex
|-File1.tex
|-File2.tex

But sometimes, I want to see how File2.tex looks like as a PDF before compiling the whole thing. So, I set \usepackage{subfiles} in preamble.tex and load it at the top of Master.tex with \input{preamble.tex}. This loads all my \newcommand, styles and package options when I run pdflatex. However, I am unable to use RefTeX between File1.tex and File2.tex. I have set the %%% TeX-master: "Methods" at the bottom of File1.tex and File2.tex. In case that someone is willing to help me out, I am adding the relevant sections of my .emacs. Thank you very much!

-------------------------------------------------

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  

Attachment: .emacs
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]