public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: "'Marek Stepanek' via pandoc-discuss" <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: Embed command line options in the Markdown source
Date: Fri, 14 Apr 2023 17:10:42 +0200	[thread overview]
Message-ID: <5D6FAD4A-3DBF-4D24-8B7D-72C7918D1089@googlemail.com> (raw)
In-Reply-To: <ec59d4a1f494447c987ef64d1c957617-NSENcxR/0n0@public.gmane.org>

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.


      parent reply	other threads:[~2023-04-14 15:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-12 11:41 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5D6FAD4A-3DBF-4D24-8B7D-72C7918D1089@googlemail.com \
    --to=pandoc-discuss-/jypxa39uh5tlh3mbocffw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).