From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/22753 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: ivo welch Newsgroups: gmane.text.pandoc Subject: Re: including '\usepackage{abc}` via command line option Date: Sat, 18 May 2019 16:13:37 -0700 (PDT) Message-ID: <12e388cf-ccd2-4823-825e-a12cc4a57c58@googlegroups.com> References: <674a937f-d17b-4c83-b293-e2163e089146@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_1333_1578975778.1558221218058" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="208611"; mail-complaints-to="usenet@blaine.gmane.org" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDAYZXVP5MLBBI5DQLTQKGQEH7VSIOQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sun May 19 01:13:42 2019 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-ot1-f61.google.com ([209.85.210.61]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1hS8WL-000sBD-KK for gtp-pandoc-discuss@m.gmane.org; Sun, 19 May 2019 01:13:41 +0200 Original-Received: by mail-ot1-f61.google.com with SMTP id t17sf5554183otp.19 for ; Sat, 18 May 2019 16:13:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=8lxSe4TCeIfjMpkeF9B6Tl5nqsN6EgOkRA9f+q7vqYk=; b=rg1Qnr2I5fD160RaZe4Cg80r9yTwYbdeyCcrSf39gb5mQ4WL31NDk7D8NYpqkxjDBw ZzwJ9TeGDFGdLxXGDySbJRZU1kVBX+/LCpjy+WZIMWbcrSko9AoTngXTTqkeg2yiMOwj /3dn4grZ2sJr93PKpRUrw8+Y7xXDdXdD2tE4RePPwo1IhFzzmXKiPmhaIh8HuQ6F+321 MT70XLkF3FVS5ki8do8yyUFs3ZpM2d3cpwg0m0ymOkAx23zVcZU5/2/Zhxvx7YysBjH7 uMj+oYMdi/CDmsUm0DGtO58oHQZLZIZbqNzHcHho9qY5wvSKbQZ4LW4ujVaTyPodHyE2 UHgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=8lxSe4TCeIfjMpkeF9B6Tl5nqsN6EgOkRA9f+q7vqYk=; b=WrditTBOHCVc6+1ZwOZyWk5t5beVlK2EhlVN1iZTBL9c6oVexTwsn0WX/tSh0SECch NOcoICPXilV3U1u1hq171gYEFSH3Pxyq9tlLzhKG/qyxx1Pj+QDtESRDsB18Zy9fQNH0 LJUlbyVIIj6o7YwHR4S+dt6M3VdH8pA0Tv5LLhSseLmk3re+xbC/FBGGEmvurD4wT61o rHSIWtZveTVTfcP4XL2cIsAePAFbctY2tD6TzXPP/FKIQ65D9GBocGCVJ4TTgA/9LSwy weFVqRRjB0HW1t9cD9SqhkhPOxSQzmS0WOBGCLrXWPpbiEc7QlcMAidZHdh64ppBaT7F /zeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=8lxSe4TCeIfjMpkeF9B6Tl5nqsN6EgOkRA9f+q7vqYk=; b=Tr08v0mizlR7omQPYfgHHCxMu10K+h1nk/EhlQYs0joqEn4FGWZQ35BPaNZQx5SlRP FsiMEZCQ8Rg7h8JcAh4soyIuSyWv0qF3AQkOAfr8yh0o+xyizRK3y30wmZmtM0Wr8BfO LLXoP5ZasxvgcQzApozrejI0w7/3yyeOrvU5AlM4JYbWTZLZO8CNX64voZmHcF2TZDuR asqyjPxem5PfAyOHjgW0ZOY2SbCFLLiW9MRtggE8btHBAwO5aPpFoAq5IsTVuyVEBfUw iv/eNFjEoAJp26Q53C9JM0qtbHXoazsZYHPJka3d4ODSbJMSTzYZuHEYzdKVMYiXCf97 JRZA== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: APjAAAVp9hNoExVRHMC5a5y0ZFqWpU6tqepUMA2qwNQDNJtje6ncgsdj 3RYFzV5EJT37YunT2SXB0ic= X-Google-Smtp-Source: APXvYqw/zfhmvBwyt0OqbPZuRGmBpJHW8rV/WbjTk4bSGxCI+IFfZIjKMtxq8xlh9jdwzyIPd5WBUQ== X-Received: by 2002:aca:ba56:: with SMTP id k83mr4101292oif.7.1558221219836; Sat, 18 May 2019 16:13:39 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:6142:: with SMTP id c2ls916467otk.5.gmail; Sat, 18 May 2019 16:13:39 -0700 (PDT) X-Received: by 2002:a9d:6f97:: with SMTP id h23mr9898429otq.60.1558221218775; Sat, 18 May 2019 16:13:38 -0700 (PDT) In-Reply-To: X-Original-Sender: ivowel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.org gmane.text.pandoc:22753 Archived-At: ------=_Part_1333_1578975778.1558221218058 Content-Type: multipart/alternative; boundary="----=_Part_1334_1401172184.1558221218059" ------=_Part_1334_1401172184.1558221218059 Content-Type: text/plain; charset="UTF-8" thanks. works great now. much less painful. can I make a small suggestion? Use \IfFileExists{ ~/.pandoc/templates/add2preamble.latex}{\input{ ~/.pandoc/templates/add2preamble.latex}}{} or something like it to optionally include 'add2preamble.latex' (and equivalent 'add2preamble.ext' in other default files). This way, users can remain hedged against future changes to your default files if they just want to add some fragments. PS: curious---what else is supposed to go into ~/.pandoc, so that these should go into ~/.pandoc/templates ? On Friday, May 17, 2019 at 3:55:13 PM UTC-7, John MacFarlane wrote: > > > ivo welch > writes: > > > does pandoc understand ${HOME}/.pandoc/ for default.* files? On macos, > > Put them in a 'templates' subdirectory under > that directory. > > > -- 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/12e388cf-ccd2-4823-825e-a12cc4a57c58%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_1334_1401172184.1558221218059 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

thanks.=C2=A0 works great now.=C2=A0 much l= ess painful.

can I make a small suggestion?=C2=A0 Use=C2= =A0\I= fFileExists{~/.pandoc/templates/add2preamble.latex}{\input{~/.pandoc/templates/add2preamble.latex}}{}=C2=A0or somethi= ng like it to optionally include 'add2preamble.latex' (and equivale= nt 'add2preamble.ext' in other default files).=C2=A0 This way, user= s can remain hedged against future changes to your default files if they ju= st want to add some fragments.

PS:=C2=A0 curi= ous---what else is supposed to go into ~/.pandoc, so that these should go i= nto ~/.pandoc/templates ?


On Friday, May 17, 2019 at 3:55:13 PM= UTC-7, John MacFarlane wrote:

ivo welch <ivo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> does pandoc understand ${HOME}/.pandoc/ for default.* files? =C2= =A0On macos,=20

Put them in a 'templates' subdirectory under
that directory.


--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/12e388cf-ccd2-4823-825e-a12cc4a57c58%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_1334_1401172184.1558221218059-- ------=_Part_1333_1578975778.1558221218058--