all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to use a common file containing all required package details?
@ 2015-05-05 17:47 Sharon Kimble
  2015-05-05 18:07 ` Jorge A. Alfaro-Murillo
  0 siblings, 1 reply; 2+ messages in thread
From: Sharon Kimble @ 2015-05-05 17:47 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1128 bytes --]


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?

Or is there a existing package that will allow me to list all the
packages I want to use, along with the required options?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.1

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to use a common file containing all required package details?
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Jorge A. Alfaro-Murillo @ 2015-05-05 18:07 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-05-05 18:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.