From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo)
To: help-gnu-emacs@gnu.org
Subject: Re: How to use a common file containing all required package details?
Date: Tue, 05 May 2015 14:07:08 -0400 [thread overview]
Message-ID: <874mnq99v7.fsf@yale.edu> (raw)
In-Reply-To: 87k2wmc3xm.fsf@skimble.plus.com
Sharon Kimble writes:
> I'm trying to have one common file containing all my preamble
> for a latex document up to \begin{document}, which will appear
> as -
>
> --8<---------------cut
> here---------------start------------->8---
> \documentclass[a4paper,12pt]{report} %% works
> \input{/home/boudiccas/research/masterlatex}
> \include{ob2014-title} \begin{document} --8<---------------cut
> here---------------end--------------->8---
>
> Doing this will mean that I only have one file to keep current
> of all package changes but will be able to be used for all my
> latex projects.
>
> It works and loads it, 'it' being "masterlatex.tex", but when it
> reaches the end of "masterlatex" it stops at \documentclass just
> before "masterlatex" being loaded and goes no further. How can I
> get it to continue please, and load the rest of the project main
> file, and ultimately build a pdf?
What are you using? Plain emacs? For LaTeX you certainly want to
install AUCTeX: M-x package-install<ENTER>auctex<ENTER>
This gives you, among many other things, the ability to define in
each document which file is the master file.
That said, the way you describe it, makes me think that you have a
call to documentclass twice, which would be a mistake. What you
call masterlatex.tex is not really the master file, but the file
with your options, and should not have any call to documentclass
or begin{document}, just your LaTeX preamble.
> Or is there a existing package that will allow me to list all
> the packages I want to use, along with the required options?
AUCTeX, check the variable LaTeX-default-options.
Best,
--
Jorge.
prev parent reply other threads:[~2015-05-05 18:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-05 17:47 How to use a common file containing all required package details? Sharon Kimble
2015-05-05 18:07 ` Jorge A. Alfaro-Murillo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874mnq99v7.fsf@yale.edu \
--to=jorge.alfaro-murillo@yale.edu \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).