From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jorge.alfaro-murillo@yale.edu (Jorge A. Alfaro-Murillo) Newsgroups: gmane.emacs.help Subject: Re: How to use a common file containing all required package details? Date: Tue, 05 May 2015 14:07:08 -0400 Message-ID: <874mnq99v7.fsf@yale.edu> References: <87k2wmc3xm.fsf@skimble.plus.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: ger.gmane.org 1430849271 3350 80.91.229.3 (5 May 2015 18:07:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 May 2015 18:07:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 05 20:07:44 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YphFu-00089f-Fg for geh-help-gnu-emacs@m.gmane.org; Tue, 05 May 2015 20:07:42 +0200 Original-Received: from localhost ([::1]:41096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YphFt-0000oL-T0 for geh-help-gnu-emacs@m.gmane.org; Tue, 05 May 2015 14:07:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YphFd-0000ns-7i for help-gnu-emacs@gnu.org; Tue, 05 May 2015 14:07:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YphFZ-000209-Fd for help-gnu-emacs@gnu.org; Tue, 05 May 2015 14:07:25 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:58492) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YphFZ-0001zr-8u for help-gnu-emacs@gnu.org; Tue, 05 May 2015 14:07:21 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YphFY-0007tP-2X for help-gnu-emacs@gnu.org; Tue, 05 May 2015 20:07:20 +0200 Original-Received: from nat-130-132-173-151.central.yale.edu ([130.132.173.151]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 May 2015 20:07:20 +0200 Original-Received: from jorge.alfaro-murillo by nat-130-132-173-151.central.yale.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 May 2015 20:07:20 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nat-130-132-173-151.central.yale.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:9F4jmd2XjzddAKUJvdR+ObrQYsg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104223 Archived-At: 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-installauctex 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.