Thanks again Bastien. I tried a minimal latex file that works fine with the "xcolor" package and pdflatex, so xcolor seems to be working as expected. But when I follow your suggestion, the pdflatex command on the file from pandoc results in an error that says

~~~
! Undefined control sequence.
l.32 \preparecolorset
                     {rgb}{}{}{%
~~~

I see that the pandoc-generated file wants to pass options for a package loaded elsewhere, and then has a "\usepackage{xcolor}" line later, but I'm not sure how that should work. I'll attach the tex file.

Thanks again,
Steve


On Mon, Jun 7, 2021 at 5:02 PM Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org> wrote:
Please try pandoc -o test.tex link-color-test.text && pdflatex test.tex and look
at the output, it may give you some hints.

Le Monday 07 June 2021 à 04:14:22PM, Steve Petersen a écrit :
> Thanks for trying it Bastien! How odd. I just used `pandoc -o
> link-color-test.pdf link-color-test.text` to get the error. That command works
> fine when I remove the linkcolor line from the file, but does not work on my
> Mac or linux machines when I have the linkcolor line in. Maybe I'm using old
> latex or something? It's "kpathsea version 6.2.3" on linux and "kpathsea
> version 6.3.2" on the Mac.
>
> Steve
>
> On Mon, Jun 7, 2021 at 4:04 PM Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
> wrote:
>
>     I compiled your MWE successfully with 2.14. What is command do you use
>     exactly?
>
>     Le Monday 07 June 2021 à 11:01:11AM, Steve Petersen a écrit :
>     > Hello again marvelous pandoc people,
>     >
>     > I recently upgraded to 2.14.0.1, and it seems like my 'linkcolor=blue'
>     option
>     > in YAML no longer works for pdfs from markdown. I get this error:
>     >
>     > ~~~
>     > Error producing PDF.
>     > ! Undefined control sequence.
>     > l.32 \preparecolorset
>     > ~~~
>     >
>     > I've reproduced this on Mac and linux (both 2.14.0.1). I'm afraid I'm
>     ignorant
>     > enough of the details to have no idea how to fix this - any ideas? MWE
>     > attached.
>     >
>     > thanks,
>     > Steve
>     >
>     > --
>     > 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@googlegroups.com.
>     > To view this discussion on the web visit https://groups.google.com/d/
>     msgid/
>     > pandoc-discuss/06f458e4-88ef-4f4f-a9fa-097288944ebbn%40googlegroups.com.
>
>     > ---
>     > title: Link colors
>     > author: Steve Petersen
>     > date: 'Last revised: <2021-06-07 13:59:27>'
>     > linkcolor: blue
>     > ---
>     >
>     > Check out [my website](https://stevepetersen.net) for more.
>
>     --
>     You received this message because you are subscribed to a topic in the
>     Google Groups "pandoc-discuss" group.
>     To unsubscribe from this topic, visit https://groups.google.com/d/topic/
>     pandoc-discuss/ow2MJRMJCKA/unsubscribe.
>     To unsubscribe from this group and all its topics, send an email to
>     pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>     To view this discussion on the web visit https://groups.google.com/d/msgid/
>     pandoc-discuss/YL57m4FGHkmg236a%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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
> To view this discussion on the web visit https://groups.google.com/d/msgid/
> pandoc-discuss/
> CAGk0Nk9TF8fZes_iF%3D%3DdVj-xQfF5KFntCNysH45D8TXxRow%3D9g%40mail.gmail.com.

--
You received this message because you are subscribed to a topic in the Google Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/ow2MJRMJCKA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/YL6JShMRy5FjxstX%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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CAGk0Nk9XvnBycy7z63jGNebeHnm0D-4m%3Dc%3DqPGLj0rx33ViPow%40mail.gmail.com.