* How to inject latex code from a header file at the beginning of the preamble?
@ 2015-11-09 8:32 news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA
[not found] ` <47512cd6-6ba9-4554-9f87-827f4d5b4aae-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA @ 2015-11-09 8:32 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 932 bytes --]
Hi there
Via --include-in-header I can inject latex code into the standard template *at
the end* of the document preamble. I use this a lot to customise the
standard template without completely replacing it (which is great for
compatibility reasons!).
But how can I inject latex code at the *at the beginning* of the document
preamble?
Many thanks,
Leo
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/47512cd6-6ba9-4554-9f87-827f4d5b4aae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 1436 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to inject latex code from a header file at the beginning of the preamble?
[not found] ` <47512cd6-6ba9-4554-9f87-827f4d5b4aae-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-11-09 22:09 ` John MACFARLANE
[not found] ` <20151109220938.GC14389-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: John MACFARLANE @ 2015-11-09 22:09 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
+++ news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org [Nov 09 15 00:32 ]:
> Hi there
> Via --include-in-header I can inject latex code into the standard
> template at the end of the document preamble. I use this a lot to
> customise the standard template without completely replacing it (which
> is great for compatibility reasons!).
> But how can I inject latex code at the at the beginning of the document
> preamble?
Your best bet is to use a custom template and put a variable
there.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to inject latex code from a header file at the beginning of the preamble?
[not found] ` <20151109220938.GC14389-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
@ 2015-11-10 0:25 ` news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA
[not found] ` <fde4e631-a87c-4715-818d-504ce0502b59-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA @ 2015-11-10 0:25 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 1722 bytes --]
Thanks John, but that's what I want to avoid: I rather inject stuff into
the default tempalte which might change with versions than change it...
My particular use case are options to BibLaTex: Most options (like doi=false
or url=true) I can add in the included header file (via
\ExecuteBibliographyOptions), but the style= option I need to give *before*
the \usepackage{biblatex} command (via \ProvidePackageOptions). For this I
would need an header which gets injected at the beginning of the preamble...
On Tuesday, November 10, 2015 at 9:09:54 AM UTC+11, John MacFarlane wrote:
>
> +++ ne...-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org <javascript:> [Nov 09 15 00:32 ]:
> > Hi there
> > Via --include-in-header I can inject latex code into the standard
> > template at the end of the document preamble. I use this a lot to
> > customise the standard template without completely replacing it (which
> > is great for compatibility reasons!).
> > But how can I inject latex code at the at the beginning of the
> document
> > preamble?
>
> Your best bet is to use a custom template and put a variable
> there.
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/fde4e631-a87c-4715-818d-504ce0502b59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 2842 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to inject latex code from a header file at the beginning of the preamble?
[not found] ` <fde4e631-a87c-4715-818d-504ce0502b59-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-11-10 4:57 ` John MacFarlane
[not found] ` <20151110045747.GB52824-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2015-11-10 4:57 UTC (permalink / raw)
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw
What you want is essentially
https://github.com/jgm/pandoc-templates/pull/59
But I've never been sold on this, because it seems like the thin
edge of a never-ending stream of requests. We made
templates customizable for just such uses.
+++ news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org [Nov 09 15 16:25 ]:
> Thanks John, but that's what I want to avoid: I rather inject stuff
> into the default tempalte which might change with versions than change
> it...
> My particular use case are options to BibLaTex: Most options (like
> doi=false or url=true) I can add in the included header file (via
> \ExecuteBibliographyOptions), but the style= option I need to give
> before the \usepackage{biblatex} command (via \ProvidePackageOptions).
> For this I would need an header which gets injected at the beginning of
> the preamble...
> On Tuesday, November 10, 2015 at 9:09:54 AM UTC+11, John MacFarlane
> wrote:
>
> +++ [1]ne...-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org [Nov 09 15 00:32 ]:
> > Hi there
> > Via --include-in-header I can inject latex code into the
> standard
> > template at the end of the document preamble. I use this a lot
> to
> > customise the standard template without completely replacing it
> (which
> > is great for compatibility reasons!).
> > But how can I inject latex code at the at the beginning of the
> document
> > preamble?
> Your best bet is to use a custom template and put a variable
> there.
>
> --
> You received this message because you are subscribed to the Google
> Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [2]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
> [3]pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> [4]https://groups.google.com/d/msgid/pandoc-discuss/fde4e631-a87c-4715-
> 818d-504ce0502b59%40googlegroups.com.
> For more options, visit [5]https://groups.google.com/d/optout.
>
>References
>
> 1. javascript:/
> 2. mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 3. mailto:pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> 4. https://groups.google.com/d/msgid/pandoc-discuss/fde4e631-a87c-4715-818d-504ce0502b59-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org?utm_medium=email&utm_source=footer
> 5. https://groups.google.com/d/optout
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to inject latex code from a header file at the beginning of the preamble?
[not found] ` <20151110045747.GB52824-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
@ 2015-11-13 1:09 ` news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA
0 siblings, 0 replies; 5+ messages in thread
From: news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA @ 2015-11-13 1:09 UTC (permalink / raw)
To: pandoc-discuss
[-- Attachment #1.1: Type: text/plain, Size: 3227 bytes --]
That's exactly the feature I'm having in mind!
I think "early include" would have a lot of uses with the LaTeX writer in
particular. I think there is a big value in not modifying the standard
templates but rather augmenting them with local customisations.
On Tuesday, November 10, 2015 at 3:58:07 PM UTC+11, John MacFarlane wrote:
>
> What you want is essentially
> https://github.com/jgm/pandoc-templates/pull/59
> But I've never been sold on this, because it seems like the thin
> edge of a never-ending stream of requests. We made
> templates customizable for just such uses.
>
> +++ ne...-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org <javascript:> [Nov 09 15 16:25 ]:
> > Thanks John, but that's what I want to avoid: I rather inject stuff
> > into the default tempalte which might change with versions than change
> > it...
> > My particular use case are options to BibLaTex: Most options (like
> > doi=false or url=true) I can add in the included header file (via
> > \ExecuteBibliographyOptions), but the style= option I need to give
> > before the \usepackage{biblatex} command (via \ProvidePackageOptions).
> > For this I would need an header which gets injected at the beginning
> of
> > the preamble...
> > On Tuesday, November 10, 2015 at 9:09:54 AM UTC+11, John MacFarlane
> > wrote:
> >
> > +++ [1]ne...-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org [Nov 09 15 00:32 ]:
> > > Hi there
> > > Via --include-in-header I can inject latex code into the
> > standard
> > > template at the end of the document preamble. I use this a lot
> > to
> > > customise the standard template without completely replacing it
> > (which
> > > is great for compatibility reasons!).
> > > But how can I inject latex code at the at the beginning of the
> > document
> > > preamble?
> > Your best bet is to use a custom template and put a variable
> > there.
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "pandoc-discuss" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> > an email to [2]pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.
> > To post to this group, send email to
> > [3]pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>.
> > To view this discussion on the web visit
> > [4]
> https://groups.google.com/d/msgid/pandoc-discuss/fde4e631-a87c-4715-
> > 818d-504ce0502b59%40googlegroups.com.
> > For more options, visit [5]https://groups.google.com/d/optout.
>
--
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/3280abba-f2c2-4429-8051-ec93494729ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[-- Attachment #1.2: Type: text/html, Size: 6159 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-11-13 1:09 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09 8:32 How to inject latex code from a header file at the beginning of the preamble? news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA
[not found] ` <47512cd6-6ba9-4554-9f87-827f4d5b4aae-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-11-09 22:09 ` John MACFARLANE
[not found] ` <20151109220938.GC14389-nFAEphtLEs/fysO+viCLMa55KtNWUUjk@public.gmane.org>
2015-11-10 0:25 ` news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA
[not found] ` <fde4e631-a87c-4715-818d-504ce0502b59-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-11-10 4:57 ` John MacFarlane
[not found] ` <20151110045747.GB52824-jF64zX8BO091tJRe0FUodcM6rOWSkUom@public.gmane.org>
2015-11-13 1:09 ` news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA
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 NNTP newsgroup(s).