* LaTeX exporter
@ 2014-10-06 7:28 Fabrice Popineau
2014-10-06 19:38 ` Nicolas Goaziou
0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Popineau @ 2014-10-06 7:28 UTC (permalink / raw
To: emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 356 bytes --]
Hi,
The org-latex-classes variable handles a couple of parameters like
DEFAULT-PACKAGES, PACKAGES and EXTRA.
I thing that this variable could also benefit from an EXTRA_OPTIONS
parameter.
This could allow to have a default set of options for the curent class, but
to locally
add a couple of options you may not always want.
What do you think ?
Fabrice
[-- Attachment #2: Type: text/html, Size: 496 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: LaTeX exporter
2014-10-06 7:28 LaTeX exporter Fabrice Popineau
@ 2014-10-06 19:38 ` Nicolas Goaziou
2014-10-06 19:49 ` Fabrice Popineau
0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Goaziou @ 2014-10-06 19:38 UTC (permalink / raw
To: Fabrice Popineau; +Cc: emacs-orgmode@gnu.org
Hello,
Fabrice Popineau <fabrice.popineau@gmail.com> writes:
> The org-latex-classes variable handles a couple of parameters like
> DEFAULT-PACKAGES, PACKAGES and EXTRA.
>
> I thing that this variable could also benefit from an EXTRA_OPTIONS
> parameter.
> This could allow to have a default set of options for the curent class, but
> to locally
> add a couple of options you may not always want.
>
> What do you think ?
The OPTIONS keyword hasn't much to do with latex classes. It is handled
at a very different level (i.e., "ox.el"). IMO, it would be confusing to
mix them.
I think you want a couple of dedicated SETUPFILE keywords.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: LaTeX exporter
2014-10-06 19:38 ` Nicolas Goaziou
@ 2014-10-06 19:49 ` Fabrice Popineau
2014-10-06 20:36 ` Rasmus
0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Popineau @ 2014-10-06 19:49 UTC (permalink / raw
To: Fabrice Popineau, emacs-orgmode@gnu.org
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]
Hi,
Maybe I wasn't clear enough.
I was thinking about an option specific of the latex exporter to expand the
document class options :
\documentclass[default_option_1, default_option_2, EXTRA_OPTIONS]{myclass}
default_option_i being taken from the org-latex-classes entry for the
current class.
Actually, LATEX_CLASS_OPTIONS overrides the whole set of options, so maybe
my suggestion is superfluous.
Regards,
2014-10-06 21:38 GMT+02:00 Nicolas Goaziou <mail@nicolasgoaziou.fr>:
> Hello,
>
> Fabrice Popineau <fabrice.popineau@gmail.com> writes:
>
> > The org-latex-classes variable handles a couple of parameters like
> > DEFAULT-PACKAGES, PACKAGES and EXTRA.
> >
> > I thing that this variable could also benefit from an EXTRA_OPTIONS
> > parameter.
> > This could allow to have a default set of options for the curent class,
> but
> > to locally
> > add a couple of options you may not always want.
> >
> > What do you think ?
>
> The OPTIONS keyword hasn't much to do with latex classes. It is handled
> at a very different level (i.e., "ox.el"). IMO, it would be confusing to
> mix them.
>
> I think you want a couple of dedicated SETUPFILE keywords.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>
[-- Attachment #2: Type: text/html, Size: 1903 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: LaTeX exporter
2014-10-06 19:49 ` Fabrice Popineau
@ 2014-10-06 20:36 ` Rasmus
0 siblings, 0 replies; 4+ messages in thread
From: Rasmus @ 2014-10-06 20:36 UTC (permalink / raw
To: emacs-orgmode
Fabrice Popineau <fabrice.popineau@gmail.com> writes:
> Maybe I wasn't clear enough.
> I was thinking about an option specific of the latex exporter to expand the
> document class options :
>
> \documentclass[default_option_1, default_option_2, EXTRA_OPTIONS]{myclass}
>
> default_option_i being taken from the org-latex-classes entry for the
> current class.
The "correct way" is probably a derived class. But probably it's too
much hassle.
> Actually, LATEX_CLASS_OPTIONS overrides the whole set of options, so maybe
> my suggestion is superfluous.
You could get this behavior using `org-export-before-parsing-hook':
Look for document LaTeX class then you know default options.
Replace MY_EXTRA_DOCUMENT_CLASS_OPTIONS with LATEX_CLASS_OPTIONS
with defaults and the buffer options as the value.
Or maybe with org-export-before-parsing-hook and
org-export-filter-options-functions.
Save MY_EXTRA_DOCUMENT_CLASS_OPTIONS as a local variable and extend
LATEX_CLASS_OPTIONS as needed.
Probably the former is easier.
Hope it helps,
Rasmus
--
When in doubt, do it!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-10-06 20:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-06 7:28 LaTeX exporter Fabrice Popineau
2014-10-06 19:38 ` Nicolas Goaziou
2014-10-06 19:49 ` Fabrice Popineau
2014-10-06 20:36 ` Rasmus
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.