public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
From: Bastien DUMONT <bastien.dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: pdf preparecolorset error (from "linkcolor" YAML option?)
Date: Mon,  7 Jun 2021 21:57:11 +0000	[thread overview]
Message-ID: <YL6WN4N2GwNaFkK6@localhost> (raw)
In-Reply-To: <CAGk0Nk9XvnBycy7z63jGNebeHnm0D-4m=c=qPGLj0rx33ViPow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

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

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 <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@posteo.net>
>     > 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.

[-- Attachment #2: link-color-minimal.tex --]
[-- Type: application/x-tex, Size: 640 bytes --]

  parent reply	other threads:[~2021-06-07 21:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-07 18:01 Steve Petersen
     [not found] ` <06f458e4-88ef-4f4f-a9fa-097288944ebbn-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2021-06-07 20:03   ` Bastien DUMONT
2021-06-07 20:14     ` Steve Petersen
     [not found]       ` <CAGk0Nk9TF8fZes_iF==dVj-xQfF5KFntCNysH45D8TXxRow=9g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-07 20:52         ` Bastien DUMONT
2021-06-07 21:02         ` Bastien DUMONT
2021-06-07 21:17           ` Steve Petersen
     [not found]             ` <CAGk0Nk9XvnBycy7z63jGNebeHnm0D-4m=c=qPGLj0rx33ViPow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-07 21:57               ` Bastien DUMONT [this message]
2021-06-07 22:28                 ` Steve Petersen
     [not found]                   ` <CAGk0Nk9-850ZqJzHrxW6T2m_1th7pBkUJMJhK=xYqXianeXEcA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-06-07 22:48                     ` Bastien DUMONT
2021-06-08  2:10                       ` Steve Petersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YL6WN4N2GwNaFkK6@localhost \
    --to=bastien.dumont-vwifzpto/vqstnjn9+bgxg@public.gmane.org \
    --cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).