From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/30238 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: loading files from data-dir paths Date: Wed, 16 Feb 2022 15:22:10 -0800 (PST) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2792_1867702742.1645053730887" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9513"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDX2TPNZVQNBBJUOW2IAMGQEK4F2X2A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Feb 17 00:22:18 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f57.google.com ([209.85.210.57]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nKTcn-0002IQ-IU for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 17 Feb 2022 00:22:17 +0100 Original-Received: by mail-ot1-f57.google.com with SMTP id n99-20020a9d206c000000b00590dde2cca8sf2135634ota.9 for ; Wed, 16 Feb 2022 15:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=UkiiMTuh+BTgLujqneF0oUsBnhU4ZsQKnuMbpzZGPUk=; b=qGL+F4yD8trY0Y1S6olajMYOe+/xfL1T5YAkCQDeAkPeNpca9pNc3qpNcEvOa0F3ao EhQSkzsZkMmww+Blw5Lrg3qmQfi9AJhkeN11WorRuMjUN0OkL5nUUc8U1KXDj2PWa/MZ iihenpSFNbKnfcK7H+Ydllx5OaVg5d+clk5EXZv8DLC5uYwJP8ivW5eEnAQM964KO9TW FQ6ZtoUHa7oaxnK/yOsDJqqMwgGfmU5bBton9mbgNCjaIO3MzwIFgU6hKsupOYa78gSv 6qzKbv/TBn6ebk7ULrWpcaf7DEHAepEU8tQXQcPHsvP8G6MnDFGb+HPCSb8yImmEiY1I p7kA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=UkiiMTuh+BTgLujqneF0oUsBnhU4ZsQKnuMbpzZGPUk=; b=oMYmb/1+BW+Bjc6xulSaMT2istL1gHl9HPnpZGCvD/6sckhTnreG91MI8nn6VlrVIH W4ByWwlHvGgxhPK/tu4LwR3oKZFokc6jlom33+y7Rlp3Uc/03idbjW/FJ38Y81UXMkTX C0H0NBlbYTZdwvBcZG5WTnd4fjeSWHkR3IdZ9zWd/GL4lib6jJGQIiQqcvwygrrS3WcR fviOSfx2oFVxUI6bL1zNYL/5v5GAQ36EXXisy1U1/JNu6EIzcmLh3cOmkSLgtGS1TMFf hVtiL+7ZEeivhN5RnEwUeooNvop6ksrfqWtI6bwli1ABcIhAUEDnCT/0tu/bWyDmyU2U 6r/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=sender:x-gm-message-state:date:from:to:message-id: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=UkiiMTuh+BTgLujqneF0oUsBnhU4ZsQKnuMbpzZGPUk=; b=IE421ERqNdhUhYFvqTffVP/dd8T1gZcX5HeQtXdypUzGtXlWPen2uUPe03kJhXuHCA z+bf5zNa5p6OeV8DBzQlXORXeCKvjZyEONu1M5cHMhpI87U+DzoNxc9Zg2fgdJZJZvDj LxY6aiA1KAcyg1jimRltOSTM3PIPk40H8myyo4dyD60DXRUL3lNLvT8DwTbTTKtq/jSd 4EVajJ/doBGbuhXuUMZ+is/qP7i8z+etK6EXisig2a0HP5oSR4EGRvy5FYr+LHQw4vyv kNkSynCxCiolWpsQCZv7Xvl3kaLY6kuEbOQ7RBqNP2q37TATb8Dl1zK/gmVqS72qrBn+ g+tw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533WY7tSKuuDL5uOrBWsfDquEZHRyGyNtss/qiupcXC7g1of6rty GnHiX7cvAXoTMwQXtytrLYg= X-Google-Smtp-Source: ABdhPJzZBJR/4tfUyvk4osHbSIPNWYNtKEcy/ZivFM99D9ncMB9OXqfrrCZv23lrHOAJiTZdV/RprA== X-Received: by 2002:a05:6870:80d:b0:d3:5176:20cf with SMTP id fw13-20020a056870080d00b000d3517620cfmr79287oab.53.1645053736466; Wed, 16 Feb 2022 15:22:16 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a05:6808:e84:b0:2ce:9f99:fd08 with SMTP id k4-20020a0568080e8400b002ce9f99fd08ls362702oil.9.gmail; Wed, 16 Feb 2022 15:22:13 -0800 (PST) X-Received: by 2002:a05:6808:1826:b0:2d4:6241:4b56 with SMTP id bh38-20020a056808182600b002d462414b56mr51580oib.228.1645053733102; Wed, 16 Feb 2022 15:22:13 -0800 (PST) X-Original-Sender: jlrn77-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.io gmane.text.pandoc:30238 Archived-At: ------=_Part_2792_1867702742.1645053730887 Content-Type: multipart/alternative; boundary="----=_Part_2793_1767413698.1645053730887" ------=_Part_2793_1767413698.1645053730887 Content-Type: text/plain; charset="UTF-8" Hello! I was trying to avoid setting the same metadata on different files, and I read in the manual that yaml metadata are interpreted as markdown if loaded with `--metadata-file`, so that would not fly. So I tried to put them my customizations in different files for each backend (roughly, TeX and ms, to generate PDFs) and load them on the command line as follows $ pandoc -B 2c.ms -H wideltr.ms -H es.ms --eol=lf -st ms filename.docx | groff -e -t -ms -Dutf8 | awk '{print > "filename.ps"}' This works if *.ms are in the same working directory, but not if I put them in the data-dir built-in into pandoc's executable. Where should I put them so that I don't have to multiply copies in every working directory? I tried the base directory, and the templates subdirectory, of pandoc's data-dir, where I have my default.ms template. I'm working on Win10, both personal and professional. Cheers! -- 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/fa6728c9-d218-486d-bb1b-6fa64aa58befn%40googlegroups.com. ------=_Part_2793_1767413698.1645053730887 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello!

I was trying to avoid setting the same= metadata on different files, and I read in the manual that yaml metadata a= re interpreted as markdown if loaded with `--metadata-file`, so that would = not fly. So I tried to put them my customizations in different files for ea= ch backend (roughly, TeX and ms, to generate PDFs) and load them on the com= mand line as follows

$ pandoc -B 2c.ms -H wide= ltr.ms -H es.ms --eol=3Dlf -st ms filename.docx | groff -e -t -ms -Dutf8 | = awk '{print > "filename.ps"}'

This works if *.m= s are in the same working directory, but not if I put them in the data-dir = built-in into pandoc's executable. Where should I put them so that I don't = have to multiply copies in every working directory? I tried the base direct= ory, and the templates subdirectory, of pandoc's data-dir, where I have my = default.ms template. I'm working on Win10, both personal and professional.<= br>

Cheers!


--
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 view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/fa6728c9-d218-486d-bb1b-6fa64aa58befn%40googlegroups.= com.
------=_Part_2793_1767413698.1645053730887-- ------=_Part_2792_1867702742.1645053730887--