* loading files from data-dir paths @ 2022-02-16 23:22 jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [not found] ` <fa6728c9-d218-486d-bb1b-6fa64aa58befn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org @ 2022-02-16 23:22 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1320 bytes --] 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. [-- Attachment #1.2: Type: text/html, Size: 1742 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <fa6728c9-d218-486d-bb1b-6fa64aa58befn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: loading files from data-dir paths [not found] ` <fa6728c9-d218-486d-bb1b-6fa64aa58befn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2022-04-30 0:48 ` jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [not found] ` <0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org @ 2022-04-30 0:48 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1.1: Type: text/plain, Size: 1763 bytes --] Hello! Excuse me for my insistence, but even in version 1.18 I cannot figure out how to make a custom repository of configuration files for groff ms or lua filters instead of copying and/or moving them around each working directory. Any solution? Thanks in advance, Il giorno mercoledì 16 febbraio 2022 alle 17:22:11 UTC-6 jlr...@gmail.com ha scritto: > 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/0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn%40googlegroups.com. [-- Attachment #1.2: Type: text/html, Size: 3546 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>]
* Re: loading files from data-dir paths [not found] ` <0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> @ 2022-04-30 7:47 ` Bastien DUMONT 2022-04-30 7:49 ` Bastien DUMONT 1 sibling, 0 replies; 5+ messages in thread From: Bastien DUMONT @ 2022-04-30 7:47 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw You can use your local data directory for that: you will find some explanations in the manual under --data-dir. You can create subdirectories in it (e.g. "filters", "templates"). Le Friday 29 April 2022 à 05:48:47PM, jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org a écrit : > Hello! > > Excuse me for my insistence, but even in version 1.18 I cannot figure out how > to make a custom repository of configuration files for groff ms or lua filters > instead of copying and/or moving them around each working directory. Any > solution? > > Thanks in advance, > > > > Il giorno mercoledì 16 febbraio 2022 alle 17:22:11 UTC-6 jlr...@gmail.com ha > scritto: > > 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 [1]2c.ms -H [2]wideltr.ms -H [3]es.ms --eol=lf -st ms > filename.docx | groff -e -t -ms -Dutf8 | awk '{print > "[4]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 [5]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 [6]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [7]https://groups.google.com/d/msgid/ > pandoc-discuss/0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn%40googlegroups.com. > > References: > > [1] http://2c.ms/ > [2] http://wideltr.ms/ > [3] http://es.ms/ > [4] http://filename.ps/ > [5] http://default.ms/ > [6] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [7] https://groups.google.com/d/msgid/pandoc-discuss/0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn%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/YmzppIFzlF/dgCfg%40localhost. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: loading files from data-dir paths [not found] ` <0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-04-30 7:47 ` Bastien DUMONT @ 2022-04-30 7:49 ` Bastien DUMONT 2022-04-30 13:15 ` BPJ 1 sibling, 1 reply; 5+ messages in thread From: Bastien DUMONT @ 2022-04-30 7:49 UTC (permalink / raw) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw Did you try to look at the output `pandoc --version` to know where your data directory is? Le Friday 29 April 2022 à 05:48:47PM, jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org a écrit : > Hello! > > Excuse me for my insistence, but even in version 1.18 I cannot figure out how > to make a custom repository of configuration files for groff ms or lua filters > instead of copying and/or moving them around each working directory. Any > solution? > > Thanks in advance, > > > > Il giorno mercoledì 16 febbraio 2022 alle 17:22:11 UTC-6 jlr...@gmail.com ha > scritto: > > 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 [1]2c.ms -H [2]wideltr.ms -H [3]es.ms --eol=lf -st ms > filename.docx | groff -e -t -ms -Dutf8 | awk '{print > "[4]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 [5]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 [6]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit [7]https://groups.google.com/d/msgid/ > pandoc-discuss/0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn%40googlegroups.com. > > References: > > [1] http://2c.ms/ > [2] http://wideltr.ms/ > [3] http://es.ms/ > [4] http://filename.ps/ > [5] http://default.ms/ > [6] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [7] https://groups.google.com/d/msgid/pandoc-discuss/0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn%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/YmzqI5Gu2PRMt6xF%40localhost. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: loading files from data-dir paths 2022-04-30 7:49 ` Bastien DUMONT @ 2022-04-30 13:15 ` BPJ 0 siblings, 0 replies; 5+ messages in thread From: BPJ @ 2022-04-30 13:15 UTC (permalink / raw) To: pandoc-discuss [-- Attachment #1: Type: text/plain, Size: 3640 bytes --] Den lör 30 apr. 2022 09:50Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> skrev: > Did you try to look at the output `pandoc --version` to know where your > data directory is? > Which you will need to create unless it exists already. > Le Friday 29 April 2022 à 05:48:47PM, jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org a écrit : > > Hello! > > > > Excuse me for my insistence, but even in version 1.18 I cannot figure > out how > > to make a custom repository of configuration files for groff ms or lua > filters > > instead of copying and/or moving them around each working directory. Any > > solution? > > > > Thanks in advance, > > > > > > > > Il giorno mercoledì 16 febbraio 2022 alle 17:22:11 UTC-6 > jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org ha > > scritto: > > > > 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 [1]2c.ms -H [2]wideltr.ms -H [3]es.ms --eol=lf -st ms > > filename.docx | groff -e -t -ms -Dutf8 | awk '{print > "[4] > 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 [5]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 [6]pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To view this discussion on the web visit [7] > https://groups.google.com/d/msgid/ > > pandoc-discuss/0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn%40googlegroups.com. > > > > References: > > > > [1] http://2c.ms/ > > [2] http://wideltr.ms/ > > [3] http://es.ms/ > > [4] http://filename.ps/ > > [5] http://default.ms/ > > [6] mailto:pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > > [7] > https://groups.google.com/d/msgid/pandoc-discuss/0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn%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/YmzqI5Gu2PRMt6xF%40localhost > . > -- 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/CADAJKhA43AqX5HaEH1ocv54gV9HUWd96D%2BqLF7d3yvxvK6OmyA%40mail.gmail.com. [-- Attachment #2: Type: text/html, Size: 6502 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-30 13:15 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-02-16 23:22 loading files from data-dir paths jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [not found] ` <fa6728c9-d218-486d-bb1b-6fa64aa58befn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-04-30 0:48 ` jlr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org [not found] ` <0c7cd331-4b3a-4569-9dc8-d0da10da0cbcn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 2022-04-30 7:47 ` Bastien DUMONT 2022-04-30 7:49 ` Bastien DUMONT 2022-04-30 13:15 ` BPJ
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).