emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* #+LATEX_PREAMBLE
@ 2008-10-02  4:09 Austin Frank
  2008-10-02  4:51 ` #+LATEX_PREAMBLE Russell Adams
  2008-10-03  7:32 ` #+LATEX_PREAMBLE Carsten Dominik
  0 siblings, 2 replies; 3+ messages in thread
From: Austin Frank @ 2008-10-02  4:09 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1342 bytes --]

Carsten and org-ers--

I have a feature request related to \LaTeX export.  I know that we can
set up custom \documentclass declarations in org-export-latex-classes,
and that each of these can contain arbitrary preamble information along
with the \documentclass{} declaration.  I also know that the preamble
can be further customized using file local variables to set
org-export-latex-append-header.  These two solutions can seem relatively
heavyweight when one just wants to add a new \usepackage{} declaration
to the preamble of a specific file.

Any chance we could have a mechanism to add single line declarations to
the preamble of the exported tex file using the #+FOO syntax?  I would
really love to be able to do something like

#+LATEX_PREAMBLE:  \usepackage{pstricks}
#+LATEX_PREAMBLE:  \usepackage{Sweave}

at the top of a file and have each of those lines inserted before the
\begin{document} line of the exported tex file.  I think for readability
and flexibility the possibility of having multiple declarations would be
really nice, but I could certainly live with

#+LATEX_PREABMLE:  "\\usepackage{pstricks}\n\\usepackage{Sweave}"

if that were easier to implement.

Thanks for considering it,
/au

-- 
Austin Frank
http://aufrank.net
GPG Public Key (D7398C2F): http://aufrank.net/personal.asc

[-- Attachment #1.2: Type: application/pgp-signature, Size: 193 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: #+LATEX_PREAMBLE
  2008-10-02  4:09 #+LATEX_PREAMBLE Austin Frank
@ 2008-10-02  4:51 ` Russell Adams
  2008-10-03  7:32 ` #+LATEX_PREAMBLE Carsten Dominik
  1 sibling, 0 replies; 3+ messages in thread
From: Russell Adams @ 2008-10-02  4:51 UTC (permalink / raw)
  To: emacs-orgmode

I think I asked about this once before and called it
#+LATEX_HEADER. ;]

I may just start using includes, but I've been generally successful so far.

On Thu, Oct 02, 2008 at 12:09:22AM -0400, Austin Frank wrote:
> Carsten and org-ers--
> 
> I have a feature request related to \LaTeX export.  I know that we can
> set up custom \documentclass declarations in org-export-latex-classes,
> and that each of these can contain arbitrary preamble information along
> with the \documentclass{} declaration.  I also know that the preamble
> can be further customized using file local variables to set
> org-export-latex-append-header.  These two solutions can seem relatively
> heavyweight when one just wants to add a new \usepackage{} declaration
> to the preamble of a specific file.
> 
> Any chance we could have a mechanism to add single line declarations to
> the preamble of the exported tex file using the #+FOO syntax?  I would
> really love to be able to do something like
> 
> #+LATEX_PREAMBLE:  \usepackage{pstricks}
> #+LATEX_PREAMBLE:  \usepackage{Sweave}
> 
> at the top of a file and have each of those lines inserted before the
> \begin{document} line of the exported tex file.  I think for readability
> and flexibility the possibility of having multiple declarations would be
> really nice, but I could certainly live with
> 
> #+LATEX_PREABMLE:  "\\usepackage{pstricks}\n\\usepackage{Sweave}"
> 
> if that were easier to implement.
> 
> Thanks for considering it,
> /au
> 
> -- 
> Austin Frank
> http://aufrank.net
> GPG Public Key (D7398C2F): http://aufrank.net/personal.asc



> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode



------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

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

* Re: #+LATEX_PREAMBLE
  2008-10-02  4:09 #+LATEX_PREAMBLE Austin Frank
  2008-10-02  4:51 ` #+LATEX_PREAMBLE Russell Adams
@ 2008-10-03  7:32 ` Carsten Dominik
  1 sibling, 0 replies; 3+ messages in thread
From: Carsten Dominik @ 2008-10-03  7:32 UTC (permalink / raw)
  To: Austin Frank; +Cc: emacs-orgmode


On Oct 2, 2008, at 6:09 AM, Austin Frank wrote:

> Carsten and org-ers--
>
> I have a feature request related to \LaTeX export.  I know that we can
> set up custom \documentclass declarations in org-export-latex-classes,
> and that each of these can contain arbitrary preamble information  
> along
> with the \documentclass{} declaration.  I also know that the preamble
> can be further customized using file local variables to set
> org-export-latex-append-header.  These two solutions can seem  
> relatively
> heavyweight when one just wants to add a new \usepackage{} declaration
> to the preamble of a specific file.
>
> Any chance we could have a mechanism to add single line declarations  
> to
> the preamble of the exported tex file using the #+FOO syntax?  I would
> really love to be able to do something like
>
> #+LATEX_PREAMBLE:  \usepackage{pstricks}
> #+LATEX_PREAMBLE:  \usepackage{Sweave}

Hi Austin,

I have implemented this proposal, with the slightly shorter

#+LATEX_HEADER:

Multiple lines can be used.

It already works, documentation is still missing.

- Carsten

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

end of thread, other threads:[~2008-10-03  7:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-02  4:09 #+LATEX_PREAMBLE Austin Frank
2008-10-02  4:51 ` #+LATEX_PREAMBLE Russell Adams
2008-10-03  7:32 ` #+LATEX_PREAMBLE Carsten Dominik

Code repositories for project(s) associated with this public inbox

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

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).