public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* ${HOME} in defaults files
@ 2022-05-21 18:45 BPJ
       [not found] ` <CADAJKhDe97TrD6dqvZ1Dt0GgSruGT66v+mW08ucY0zYBaTf9Ag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: BPJ @ 2022-05-21 18:45 UTC (permalink / raw)
  To: pandoc-discuss

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

In a defaults file in the current directory I have the lines:

``````yaml
defaults:
  - ${HOME}/style/ling-html2pdf.yaml
``````

I'm sure that file exists but pandoc complains and says it doesn't. Might
Pandoc's idea of what `${HOME}` expands to differ from the shell's idea of
what `$HOME` expands to?

-- 
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/CADAJKhDe97TrD6dqvZ1Dt0GgSruGT66v%2BmW08ucY0zYBaTf9Ag%40mail.gmail.com.

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

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

* Re: ${HOME} in defaults files
       [not found] ` <CADAJKhDe97TrD6dqvZ1Dt0GgSruGT66v+mW08ucY0zYBaTf9Ag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2022-05-22  9:29   ` BPJ
       [not found]     ` <CADAJKhC5X+sNjQEFX9mHPryV93TRYBenqVZreU+3BdVb7-5V7w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: BPJ @ 2022-05-22  9:29 UTC (permalink / raw)
  To: pandoc-discuss

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

I forgot to mention the vital points that `${HOME}...` works with `css: []`
in the same file and that everything works if I use an absolute path in the
`defaults: []` entry.

Den lör 21 maj 2022 20:45BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:

> In a defaults file in the current directory I have the lines:
>
> ``````yaml
> defaults:
>   - ${HOME}/style/ling-html2pdf.yaml
> ``````
>
> I'm sure that file exists but pandoc complains and says it doesn't. Might
> Pandoc's idea of what `${HOME}` expands to differ from the shell's idea of
> what `$HOME` expands to?
>
>
>

-- 
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/CADAJKhC5X%2BsNjQEFX9mHPryV93TRYBenqVZreU%2B3BdVb7-5V7w%40mail.gmail.com.

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

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

* Re: ${HOME} in defaults files
       [not found]     ` <CADAJKhC5X+sNjQEFX9mHPryV93TRYBenqVZreU+3BdVb7-5V7w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2022-05-22 16:28       ` John MacFarlane
       [not found]         ` <m2k0adilak.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: John MacFarlane @ 2022-05-22 16:28 UTC (permalink / raw)
  To: BPJ, pandoc-discuss


I'm pretty sure that the expansion doesn't work for 'defaults:',
but I can't now recall whether there was a reason for that.
Maybe submit a bug report?

BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:

> I forgot to mention the vital points that `${HOME}...` works with `css: []`
> in the same file and that everything works if I use an absolute path in the
> `defaults: []` entry.
>
> Den lör 21 maj 2022 20:45BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>
>> In a defaults file in the current directory I have the lines:
>>
>> ``````yaml
>> defaults:
>>   - ${HOME}/style/ling-html2pdf.yaml
>> ``````
>>
>> I'm sure that file exists but pandoc complains and says it doesn't. Might
>> Pandoc's idea of what `${HOME}` expands to differ from the shell's idea of
>> what `$HOME` expands to?
>>
>>
>>
>
> -- 
> 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/CADAJKhC5X%2BsNjQEFX9mHPryV93TRYBenqVZreU%2B3BdVb7-5V7w%40mail.gmail.com.

-- 
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/m2k0adilak.fsf%40MacBook-Pro-2.hsd1.ca.comcast.net.


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

* Re: ${HOME} in defaults files
       [not found]         ` <m2k0adilak.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
@ 2022-05-22 20:15           ` BPJ
       [not found]             ` <CADAJKhBFO7b=WppbBnS020NJ3CTXh8J+hjR+Dp5U9hA7=dGKuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: BPJ @ 2022-05-22 20:15 UTC (permalink / raw)
  To: John MacFarlane; +Cc: pandoc-discuss

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

Den sön 22 maj 2022 18:28John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:

>
> I'm pretty sure that the expansion doesn't work for 'defaults:',
> but I can't now recall whether there was a reason for that.
> Maybe submit a bug report?
>

I will, because this breaks my workflow where I use the same top level
defaults file on different machines.




> BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>
> > I forgot to mention the vital points that `${HOME}...` works with `css:
> []`
> > in the same file and that everything works if I use an absolute path in
> the
> > `defaults: []` entry.
> >
> > Den lör 21 maj 2022 20:45BPJ <melroch-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
> >
> >> In a defaults file in the current directory I have the lines:
> >>
> >> ``````yaml
> >> defaults:
> >>   - ${HOME}/style/ling-html2pdf.yaml
> >> ``````
> >>
> >> I'm sure that file exists but pandoc complains and says it doesn't.
> Might
> >> Pandoc's idea of what `${HOME}` expands to differ from the shell's idea
> of
> >> what `$HOME` expands to?
> >>
> >>
> >>
> >
> > --
> > 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/CADAJKhC5X%2BsNjQEFX9mHPryV93TRYBenqVZreU%2B3BdVb7-5V7w%40mail.gmail.com
> .
>

-- 
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/CADAJKhBFO7b%3DWppbBnS020NJ3CTXh8J%2BhjR%2BDp5U9hA7%3DdGKuQ%40mail.gmail.com.

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

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

* Re: ${HOME} in defaults files
       [not found]             ` <CADAJKhBFO7b=WppbBnS020NJ3CTXh8J+hjR+Dp5U9hA7=dGKuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2022-05-23 10:09               ` Russ
  0 siblings, 0 replies; 5+ messages in thread
From: Russ @ 2022-05-23 10:09 UTC (permalink / raw)
  To: pandoc-discuss


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

I am not sure if this would help, but we use `${USERDATA}` e.g.

```yaml
css:
- "${USERDATA}/epub-css.css"

epub-fonts: 
- "${USERDATA}/fonts/fontname-*.ttf"
```
This is the root of your folder with the `defaults` folder/ `defaults.yaml` 
file in it.

We then call Pandoc with `--data-dir` argument if it is not the default 
location and of course your desired defaults file with `--defaults=xxxx`
On Sunday, 22 May 2022 at 21:15:46 UTC+1 BP wrote:

>
>
> Den sön 22 maj 2022 18:28John MacFarlane <j...-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> skrev:
>
>>
>> I'm pretty sure that the expansion doesn't work for 'defaults:',
>> but I can't now recall whether there was a reason for that.
>> Maybe submit a bug report?
>>
>
> I will, because this breaks my workflow where I use the same top level 
> defaults file on different machines.
>
>
>
>
>> BPJ <mel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> writes:
>>
>> > I forgot to mention the vital points that `${HOME}...` works with `css: 
>> []`
>> > in the same file and that everything works if I use an absolute path in 
>> the
>> > `defaults: []` entry.
>> >
>> > Den lör 21 maj 2022 20:45BPJ <mel...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> skrev:
>> >
>> >> In a defaults file in the current directory I have the lines:
>> >>
>> >> ``````yaml
>> >> defaults:
>> >>   - ${HOME}/style/ling-html2pdf.yaml
>> >> ``````
>> >>
>> >> I'm sure that file exists but pandoc complains and says it doesn't. 
>> Might
>> >> Pandoc's idea of what `${HOME}` expands to differ from the shell's 
>> idea of
>> >> what `$HOME` expands to?
>> >>
>> >>
>> >>
>> >
>> > -- 
>> > 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-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
>> > To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/pandoc-discuss/CADAJKhC5X%2BsNjQEFX9mHPryV93TRYBenqVZreU%2B3BdVb7-5V7w%40mail.gmail.com
>> .
>>
>

-- 
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/6766afed-d65b-4853-a07c-d4400063f2c9n%40googlegroups.com.

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

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

end of thread, other threads:[~2022-05-23 10:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-21 18:45 ${HOME} in defaults files BPJ
     [not found] ` <CADAJKhDe97TrD6dqvZ1Dt0GgSruGT66v+mW08ucY0zYBaTf9Ag-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-05-22  9:29   ` BPJ
     [not found]     ` <CADAJKhC5X+sNjQEFX9mHPryV93TRYBenqVZreU+3BdVb7-5V7w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-05-22 16:28       ` John MacFarlane
     [not found]         ` <m2k0adilak.fsf-jF64zX8BO0+FqBokazbCQ6OPv3vYUT2dxr7GGTnW70NeoWH0uzbU5w@public.gmane.org>
2022-05-22 20:15           ` BPJ
     [not found]             ` <CADAJKhBFO7b=WppbBnS020NJ3CTXh8J+hjR+Dp5U9hA7=dGKuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2022-05-23 10:09               ` Russ

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