public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Embed command line options in the Markdown source
@ 2023-04-12 11:41 Oliver Baumann
       [not found] ` <844066b9-163f-4890-b981-74545070ee6dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Baumann @ 2023-04-12 11:41 UTC (permalink / raw)
  To: pandoc-discuss


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

I use pandoc to generate LaTeX PDFs from Markdown sources.

Often I have quite long command lines with

pandoc myarticle.md --standalone --include-in-header ...

Now I would like to provide these options in the YAML of theMarkdown 
source. In the past I used panzer for this, but is this now 
with pandoc 3 maybe built into pandoc itself?

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/844066b9-163f-4890-b981-74545070ee6dn%40googlegroups.com.

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

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

* AW: Embed command line options in the Markdown source
       [not found] ` <844066b9-163f-4890-b981-74545070ee6dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2023-04-12 12:48   ` denis.maier-NSENcxR/0n0
       [not found]     ` <a6f97768d4e3419780f4df6456356cf0-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2023-04-12 12:48 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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

Could you use defaults files for this ?
That would reduce the amount of needed command line options to 1.
pandoc myarticle.md -D mylayout

Best,
Denis

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von Oliver Baumann
Gesendet: Mittwoch, 12. April 2023 13:42
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Embed command line options in the Markdown source

I use pandoc to generate LaTeX PDFs from Markdown sources.

Often I have quite long command lines with

pandoc myarticle.md --standalone --include-in-header ...

Now I would like to provide these options in the YAML of theMarkdown source. In the past I used panzer for this, but is this now
with pandoc 3 maybe built into pandoc itself?
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/844066b9-163f-4890-b981-74545070ee6dn%40googlegroups.com<https://groups.google.com/d/msgid/pandoc-discuss/844066b9-163f-4890-b981-74545070ee6dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a6f97768d4e3419780f4df6456356cf0%40unibe.ch.

[-- Attachment #2: Type: text/html, Size: 5445 bytes --]

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

* Re: Embed command line options in the Markdown source
       [not found]     ` <a6f97768d4e3419780f4df6456356cf0-NSENcxR/0n0@public.gmane.org>
@ 2023-04-14  0:56       ` news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA
       [not found]         ` <CBF27702-32AA-4A20-B546-15B0A8C5B05D-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA @ 2023-04-14  0:56 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

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

On 12 Apr 2023, at 22:48, denis.maier-NSENcxR/0n0@public.gmane.org wrote:

> Could you use defaults files for this ?
> That would reduce the amount of needed command line options to 1.
>
> pandoc myarticle.md -D mylayout

Thanks Denis. Maybe I miss something but isn’t -D just for *orinting* 
the default templates? (Or has this changed in pandoc 3?)

In pandoc 2 the `--template` option does this, but it feels cumbersome 
to create full custom template when I only want to increase the font 
size to 12pt…

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CBF27702-32AA-4A20-B546-15B0A8C5B05D%40halloleo.hailmail.net.

[-- Attachment #2: Type: text/html, Size: 1900 bytes --]

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

* AW: Embed command line options in the Markdown source
       [not found]         ` <CBF27702-32AA-4A20-B546-15B0A8C5B05D-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
@ 2023-04-14  5:31           ` denis.maier-NSENcxR/0n0
       [not found]             ` <ec59d4a1f494447c987ef64d1c957617-NSENcxR/0n0@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: denis.maier-NSENcxR/0n0 @ 2023-04-14  5:31 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Sorry, I meant -d
(Lowercase d)
Or --defaults=


________________________________________
Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> im Auftrag von news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org <news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
Gesendet: Freitag, 14. April 2023 02:56:17
An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Betreff: Re: Embed command line options in the Markdown source

On 12 Apr 2023, at 22:48, denis.maier-NSENcxR/0n0@public.gmane.org<mailto:denis.maier-NSENcxR/0n0@public.gmane.org> wrote:

Could you use defaults files for this ?
That would reduce the amount of needed command line options to 1.

pandoc myarticle.md -D mylayout

Thanks Denis. Maybe I miss something but isn’t -D just for orinting the default templates? (Or has this changed in pandoc 3?)

In pandoc 2 the --template option does this, but it feels cumbersome to create full custom template when I only want to increase the font size to 12pt…

--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CBF27702-32AA-4A20-B546-15B0A8C5B05D%40halloleo.hailmail.net<https://groups.google.com/d/msgid/pandoc-discuss/CBF27702-32AA-4A20-B546-15B0A8C5B05D%40halloleo.hailmail.net?utm_medium=email&utm_source=footer>.

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ec59d4a1f494447c987ef64d1c957617%40unibe.ch.


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

* Re: Embed command line options in the Markdown source
       [not found]             ` <ec59d4a1f494447c987ef64d1c957617-NSENcxR/0n0@public.gmane.org>
@ 2023-04-14 15:10               ` 'Marek Stepanek' via pandoc-discuss
  0 siblings, 0 replies; 5+ messages in thread
From: 'Marek Stepanek' via pandoc-discuss @ 2023-04-14 15:10 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

I suggest to invoke (in Vim only ":! make") a Makefile with all options in it. For example:

***

all: save typeset open

.PHONY: all

save:
	w

typeset:
	pandoc                          	     				 \
	  --from         markdown       	     				 \
	  --to           latex	          	     				 \
	  --out			 anna_kareninaI_12-17.pdf				 \
	  --pdf-engine 	 xelatex								 \
	  --verbose												 \
	  --citeproc							 				 \
	  --csl 		 csl/din-1505-2-numeric-alphabetical.csl \
	  anna_kareninaI_12-17.md

open:
	open anna_kareninaI_12-17.pdf

The save is for Vim-Editor ... 


greetings


marek



> On 14. Apr 2023, at 07:31, denis.maier-NSENcxR/0n0@public.gmane.org wrote:
> 
> Sorry, I meant -d
> (Lowercase d)
> Or --defaults=
> 
> 
> ________________________________________
> Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> im Auftrag von news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org <news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
> Gesendet: Freitag, 14. April 2023 02:56:17
> An: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> Betreff: Re: Embed command line options in the Markdown source
> 
> On 12 Apr 2023, at 22:48, denis.maier-NSENcxR/0n0@public.gmane.org<mailto:denis.maier@unibe.ch> wrote:
> 
> Could you use defaults files for this ?
> That would reduce the amount of needed command line options to 1.
> 
> pandoc myarticle.md -D mylayout
> 
> Thanks Denis. Maybe I miss something but isn’t -D just for orinting the default templates? (Or has this changed in pandoc 3?)
> 
> In pandoc 2 the --template option does this, but it feels cumbersome to create full custom template when I only want to increase the font size to 12pt…
> 
> --
> 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CBF27702-32AA-4A20-B546-15B0A8C5B05D%40halloleo.hailmail.net<https://groups.google.com/d/msgid/pandoc-discuss/CBF27702-32AA-4A20-B546-15B0A8C5B05D%40halloleo.hailmail.net?utm_medium=email&utm_source=footer>.
> 
> -- 
> 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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/ec59d4a1f494447c987ef64d1c957617%40unibe.ch.

-- 
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 view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/5D6FAD4A-3DBF-4D24-8B7D-72C7918D1089%40googlemail.com.


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

end of thread, other threads:[~2023-04-14 15:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-12 11:41 Embed command line options in the Markdown source Oliver Baumann
     [not found] ` <844066b9-163f-4890-b981-74545070ee6dn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2023-04-12 12:48   ` AW: " denis.maier-NSENcxR/0n0
     [not found]     ` <a6f97768d4e3419780f4df6456356cf0-NSENcxR/0n0@public.gmane.org>
2023-04-14  0:56       ` news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA
     [not found]         ` <CBF27702-32AA-4A20-B546-15B0A8C5B05D-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
2023-04-14  5:31           ` AW: " denis.maier-NSENcxR/0n0
     [not found]             ` <ec59d4a1f494447c987ef64d1c957617-NSENcxR/0n0@public.gmane.org>
2023-04-14 15:10               ` 'Marek Stepanek' via pandoc-discuss

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