Sorry, I can't understand where this preparecolorset comes from. It is not in the tex file you provided (that compiles fine on my laptop), nor in any auxiliary file produced by pdflatex... Does the attached MWE throw the same error? Le Monday 07 June 2021 à 05:17:25PM, Steve Petersen a écrit : > 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 > 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 > > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. > >     > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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. > % Options for packages loaded elsewhere > \PassOptionsToPackage{unicode}{hyperref} > \PassOptionsToPackage{hyphens}{url} > \PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} > % > \documentclass[ > ]{article} > \title{Link colors} > \author{Steve Petersen} > \date{Last revised: \textless2021-06-07 13:59:27\textgreater{}} > > \usepackage{amsmath,amssymb} > \usepackage{lmodern} > \usepackage{iftex} > \ifPDFTeX > \usepackage[T1]{fontenc} > \usepackage[utf8]{inputenc} > \usepackage{textcomp} % provide euro and other symbols > \else % if luatex or xetex > \usepackage{unicode-math} > \defaultfontfeatures{Scale=MatchLowercase} > \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} > \fi > % Use upquote if available, for straight quotes in verbatim environments > \IfFileExists{upquote.sty}{\usepackage{upquote}}{} > \IfFileExists{microtype.sty}{% use microtype if available > \usepackage[]{microtype} > \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts > }{} > \makeatletter > \@ifundefined{KOMAClassName}{% if non-KOMA class > \IfFileExists{parskip.sty}{% > \usepackage{parskip} > }{% else > \setlength{\parindent}{0pt} > \setlength{\parskip}{6pt plus 2pt minus 1pt}} > }{% if KOMA class > \KOMAoptions{parskip=half}} > \makeatother > \usepackage{xcolor} > \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available > \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}} > \hypersetup{ > pdftitle={Link colors}, > pdfauthor={Steve Petersen}, > colorlinks=true, > linkcolor={blue}, > filecolor={Maroon}, > citecolor={Blue}, > urlcolor={Blue}, > pdfcreator={LaTeX via pandoc}} > \urlstyle{same} % disable monospaced font for URLs > \setlength{\emergencystretch}{3em} % prevent overfull lines > \providecommand{\tightlist}{% > \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} > \setcounter{secnumdepth}{-\maxdimen} % remove section numbering > \ifLuaTeX > \usepackage{selnolig} % disable illegal ligatures > \fi > > \begin{document} > \maketitle > > Check out \href{https://stevepetersen.net}{my website} for more. > > \end{document} -- 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/YL6WN4N2GwNaFkK6%40localhost.