public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* header-includes metadata for LaTeX
@ 2018-08-20 13:11 Michael M. Tung
       [not found] ` <7cd0ca25-0c81-4692-b2f4-537901888a3a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Michael M. Tung @ 2018-08-20 13:11 UTC (permalink / raw)
  To: pandoc-discuss


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

Hi!

I am trying to use

header-includes: \usepackage[inline]{showlabels}

in the yaml header of my markdown document for output
in PDF via LaTeX. Fiddled with other formats as well, e.g.

header-includes: 
    ```{=latex}
    \usepackage[inline]{showlabels}
    ```
All to no effect (by simply ignoring it; no errors).

For easy handling, I want to make changes directly in the
yaml header (loading LaTeX preambles works flawlessly).

Any suggestions?
Many thanks, Mike

-- 
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/7cd0ca25-0c81-4692-b2f4-537901888a3a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 1542 bytes --]

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

* Re: header-includes metadata for LaTeX
       [not found] ` <7cd0ca25-0c81-4692-b2f4-537901888a3a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2018-08-20 19:45   ` John MacFarlane
       [not found]     ` <yh480kefes3jpy.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: John MacFarlane @ 2018-08-20 19:45 UTC (permalink / raw)
  To: Michael M. Tung, pandoc-discuss


This works fine for me:

```
% cat test.md
---
header-includes: \usepackage[inline]{showlabels}
...
% pandoc -t latex -s test.md
.
. omitted content
.
% set default figure placement to htbp
\makeatletter
\def\fps@figure{htbp}
\makeatother

\usepackage[inline]{showlabels}

\date{}

\begin{document}

\end{document}
```

Do you get different output?  What pandoc version?
Are you by chance using a custom latex template?
(Also check ~/.pandoc/templates).


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

* Re: header-includes metadata for LaTeX
       [not found]     ` <yh480kefes3jpy.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2018-08-21 10:35       ` Michael M. Tung
  0 siblings, 0 replies; 3+ messages in thread
From: Michael M. Tung @ 2018-08-21 10:35 UTC (permalink / raw)
  To: pandoc-discuss; +Cc: John MacFarlane

Hi John,

Many thanks for your reply and testing.

I am using pandoc 2.2.3.2 on arch linux with the standard LaTeX
template.

My suspicion is that my preample.tex somehow interfers with the
yaml header. I am also using other yaml settings which might
override the showlabels include. At least I know that your default
version works well... Will do some debugging by stripping down
the document to the default version and observe changes...

Best,
      Mike

John MacFarlane [jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org] wrote:
> 
> This works fine for me:
> 
> ```
> % cat test.md
> ---
> header-includes: \usepackage[inline]{showlabels}
> ...
> % pandoc -t latex -s test.md
> .
> . omitted content
> .
> % set default figure placement to htbp
> \makeatletter
> \def\fps@figure{htbp}
> \makeatother
> 
> \usepackage[inline]{showlabels}
> 
> \date{}
> 
> \begin{document}
> 
> \end{document}
> ```
> 
> Do you get different output?  What pandoc version?
> Are you by chance using a custom latex template?
> (Also check ~/.pandoc/templates).


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

end of thread, other threads:[~2018-08-21 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-20 13:11 header-includes metadata for LaTeX Michael M. Tung
     [not found] ` <7cd0ca25-0c81-4692-b2f4-537901888a3a-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2018-08-20 19:45   ` John MacFarlane
     [not found]     ` <yh480kefes3jpy.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2018-08-21 10:35       ` Michael M. Tung

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