From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28557 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Steve Petersen Newsgroups: gmane.text.pandoc Subject: Re: pdf preparecolorset error (from "linkcolor" YAML option?) Date: Mon, 7 Jun 2021 18:28:22 -0400 Message-ID: References: <06f458e4-88ef-4f4f-a9fa-097288944ebbn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000d4a77505c4348fd6" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10130"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDGZJRFKWIARBEV37KCQMGQEDFGXP7A-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Tue Jun 08 00:28:37 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f183.google.com ([209.85.219.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lqNjZ-0002QF-Fd for gtp-pandoc-discuss@m.gmane-mx.org; Tue, 08 Jun 2021 00:28:37 +0200 Original-Received: by mail-yb1-f183.google.com with SMTP id v28-20020a25fc1c0000b0290547fac9371fsf1838739ybd.14 for ; Mon, 07 Jun 2021 15:28:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623104916; cv=pass; d=google.com; s=arc-20160816; b=jCQx5X0UwC+LY76e3lEStYWKWhaPBwBiKLts0JwkVhXJJ0/XWmxnnpLO8VD91I5r/X WZnD1ZpcBWpGkkDBXszQeJLGdE4x2tghdM4/qDS6Xs0rI9HynIZ2Yw+hTm6QQqF/eI5n 7kmCYeWW+4z1bY74kI4Gph+t+BzTE6L6VeCHjwBndd3bDiB2Wl2yJFKFWwLve4FAwVeY C/WtvnKj1JsVkSWGWLSxFLtNxrG0RHZK2NfX/St1qoLw3IKS5ijm9UyC9GDeeyR/ykWd EudAdn1Nixkd6KA5hyTJQmVd6+4ENCnjkA8XubI0CB645hnYApBUXT7jKh5dRsYpQ4EK KiAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=C/yisEs1jtgVd7y8k0YLqoCJq5eOiQBfzp3v8YGpIy0=; b=spDVl/fq+k0CIuqUmQz8IfzpCffieC/waGYj1FyfnHMI/jrPKCf98wthhbybmdSoqG fNWNh8L7qkivvvMowD/q9YOR/9D3SUeGXHHB7BkIjWLhXG96oYKFJ4CDAhCjObctVTUr BrBa9nSjvBrnrlBe5bEUk+834ANKb+vccKPJbbo3zASNXHSvBTwX3xXARzZfpmuT61f6 bDWlFLOeieyVpsiMdAkMOSIeKrV5Axi2lPMzGAuRFVPIb96Aq91eG3HERwDvK/lDLQ0T bhhEh+4MVuWG5bSX15TQ85xf+vb3UTDtLOp+mi9nuo9/a+tBCbew/yjGNt/UYBnr5Cma 1YKA== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UH3mTWCk; spf=pass (google.com: domain of spetey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b33 as permitted sender) smtp.mailfrom=spetey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=C/yisEs1jtgVd7y8k0YLqoCJq5eOiQBfzp3v8YGpIy0=; b=IVTo2scvLAHAtUdNOlO+oMOekd8OSnPAcZiggzdnDImXoRe08lYuI4ggF3RIIr5qZV 3P2PZniMYmKKzFJhT+NLS/bETR0hE+UxrYIEWiHwH+Xgs4dGA50CrIf7Sh2jDGu3zuJe Hjvna7nmME5ZCIXiEj3MYwN4fDBsjTeGTc9FzsuSrSitkJD9DaoKu0jWN+Mf1H02qoqt COUcbxpjMHMH3ZZ+urX3z2F6hD5i/HFGq4r1QZHj0mLgHrxgu+nAlOEmB4xmKcZbpFQc dAifKnszwPWNZGBLzYqNpyq3gfZIOd3Z/WGlUuZk0p0EURgFieyvcmKA+f0/tQJaD5kL HdSA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=C/yisEs1jtgVd7y8k0YLqoCJq5eOiQBfzp3v8YGpIy0=; b=XlwDF7oiYv5XzDaR1298K8cfNAYtUzbLMg7DBU0XRhpT0/gOQdNAabL3usvN9Ll/Ks 4Gm5aP02UO8aq6rCjN2eL6XgeCnToNwmtGL4tRA7HIaXG+gwXJXhNZv6BLgvtkCg2bzp bmZi3uL++YhjCJWXkc9pUG4vKFIpwMXEn1+zPnIbKiDiYw374MWDLjzTcxwJBpG2aDoL pTxqmsa3ougFpcgV2Af0XtQXTzfJAWG7x8gJVn9ZfHwEyjfPff9gN76zBqA887r6yV8S Or6cvI4bqFkYritg9PYOjJKyTJXJNqOE/b+wQaUdU+kHAE3eZdkPxyK6I2n0aW5sjryU QFHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=C/yisEs1jtgVd7y8k0YLqoCJq5eOiQBfzp3v8YGpIy0=; b=rHO0ThRL389JNDuGcZbjx+PhuVxIGv/oIlV3L/n/w10rJZYOd9FWHlBTQeFvQY282d U1OesjhpTtvzIk097yw7K38yo3F8PWkUTQ15RtOeSbQp3jWGZboPX8IMCmGLpYMnjH4p vvmY/cNdxzW+04VwFT5mEH3a0FwZNy1FTPJX2x3fn/j9IKVrz5PCVp8D1MZVc8WN4czG qbWQZG+LoX3I3PNWH3+msfMKyxdFDFFHXZEEbN5eQWwywB7hN4DIaIlpEA/7yDAq7+88 2Yvbga+wFhn/MMOHl0Qu5pdbP5wvjcYg2SPy8IcRaLS1RS1qjcFOxDQ2aCffx5SrOID1 Buvg== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533syXMJQRswNaTF80GfqitdbqV13R599RvQ97lIFqcgacKMz2zz sLFqH6PrSg+wB31tz1QpWss= X-Google-Smtp-Source: ABdhPJwg/oYwc7YUnGHBpQ0D5cFHChiou4fjsRtIt9ODR3f2esI00nnYBJdsGbSH3uidLUvjNWUq2Q== X-Received: by 2002:a25:b854:: with SMTP id b20mr26025740ybm.442.1623104916578; Mon, 07 Jun 2021 15:28:36 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:be92:: with SMTP id i18ls1172018ybk.7.gmail; Mon, 07 Jun 2021 15:28:34 -0700 (PDT) X-Received: by 2002:a5b:3c3:: with SMTP id t3mr28756928ybp.295.1623104914612; Mon, 07 Jun 2021 15:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623104914; cv=none; d=google.com; s=arc-20160816; b=s/7gy2C2b+Zawqh6ipE6TRcisnhBVyr3TD2vT6ESUFjN3UV4vsCIJvxY48F4NGOiLT ef/09WpBVGCXZjhqWY9dfyW0Bc8UqD0ogOaH021nddLGRGCZbmbjTJPM9/YT7je+hpyh EDqpos+XV9sV2tOAvhqgE4Fd9zqfQThsSFO5/D1hAaYuoxAyXBrdscJsJfruxM8hqum/ gNYpZPXY4O9ESRy+BMrKfNa8RDn6onRtvDT1glHl3Gu4TBO4FcFH1NaOoBfeSVpp+++L oiYlhiV695ka2CfbVl6YRDKp/U/omGPmqYH9lWvHoqCTUw5wfQx6sACLB4h0n5Optyyy wgLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=+nGyHEaOy0CvbfjLdCh7blBs5BAPK3+OBt22pBIrh6Y=; b=XMl4oXaMC93Y2kYXn32gWwOP9DWbUxM8PelRDL5pOrsVZ1qPI4H2Hy7dw0h+c6kH37 m6NjIL8RsDXT8qev6wkfZgcet6vBP2fimbyl1g+lhz6PxeelyzvVZTReJfHwY1fQiu/w 1bCKzgcmXXUJblYGkzVBjCeAf9J06kOyJ2E3USmn3ALE8RzlYh49m3YinlpPx73/m9qa +jWhTW55Vnuuaiq7/h58tot1nrZc5s1QwlPZ8rZKS4E2RUtc+JbELv2Vt4UnrRAOGhQz UuqXoNO38PBYB2VAC9RvdEdmNtObx2pdKKULFy8BQKPB+xVUw/3Kxj2GcwK36vHcFdq4 BMOQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UH3mTWCk; spf=pass (google.com: domain of spetey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b33 as permitted sender) smtp.mailfrom=spetey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com. [2607:f8b0:4864:20::b33]) by gmr-mx.google.com with ESMTPS id c8si1162670ybl.3.2021.06.07.15.28.34 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Jun 2021 15:28:34 -0700 (PDT) Received-SPF: pass (google.com: domain of spetey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b33 as permitted sender) client-ip=2607:f8b0:4864:20::b33; Original-Received: by mail-yb1-xb33.google.com with SMTP id p184so27269509yba.11 for ; Mon, 07 Jun 2021 15:28:34 -0700 (PDT) X-Received: by 2002:a25:bbcb:: with SMTP id c11mr26460734ybk.325.1623104913956; Mon, 07 Jun 2021 15:28:33 -0700 (PDT) In-Reply-To: X-Original-Sender: spetey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UH3mTWCk; spf=pass (google.com: domain of spetey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b33 as permitted sender) smtp.mailfrom=spetey-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28557 Archived-At: --000000000000d4a77505c4348fd6 Content-Type: multipart/alternative; boundary="000000000000d4a77305c4348fd4" --000000000000d4a77305c4348fd4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable No, that minimal file gives me the same error. If I rem-out the `\PassOptionsToPackage` line *and* the `\hypersetup`, then it seems to compile (though the link shows as boxed, not colored). Again, weirdly, a simple xcolor test I ran worked just fine (attached). What on earth? Thanks, Steve On Mon, Jun 7, 2021 at 5:57 PM Bastien DUMONT wrote: > Sorry, I can't understand where this preparecolorset comes from. It is no= t > 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 =C3=A0 05:17:25PM, Steve Petersen a =C3=A9crit : > > 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 packag= e > 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 =C3=A0 04:14:22PM, Steve Petersen a =C3=A9cr= it : > > > 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 d= o > you > > use > > > exactly? > > > > > > Le Monday 07 June 2021 =C3=A0 11:01:11AM, Steve Petersen a = =C3=A9crit : > > > > Hello again marvelous pandoc people, > > > > > > > > I recently upgraded to 2.14.0.1, and it seems like my > 'linkcolor=3D > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 Googl= e > 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 Grou= ps > > "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.co= m > . > > > % 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=3DMatchLowercase} > > \defaultfontfeatures[\rmfamily]{Ligatures=3DTeX,Scale=3D1} > > \fi > > % Use upquote if available, for straight quotes in verbatim environment= s > > \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=3Dhalf}} > > \makeatother > > \usepackage{xcolor} > > \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if > available > > \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref= }} > > \hypersetup{ > > pdftitle=3D{Link colors}, > > pdfauthor=3D{Steve Petersen}, > > colorlinks=3Dtrue, > > linkcolor=3D{blue}, > > filecolor=3D{Maroon}, > > citecolor=3D{Blue}, > > urlcolor=3D{Blue}, > > pdfcreator=3D{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 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/YL6WN4N2GwNaFkK6%40local= host > . > --=20 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 e= mail 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/CAGk0Nk9-850ZqJzHrxW6T2m_1th7pBkUJMJhK%3DxYqXianeXEcA%40mail= .gmail.com. --000000000000d4a77305c4348fd4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
No, that minimal file gives me the same error. If I rem-ou= t the `\PassOptionsToPackage` line *and* the `\hypersetup`, then it seems t= o compile (though the link shows as boxed, not colored). Again, weirdly, a = simple xcolor test I ran worked just fine (attached). What on earth?
Thanks,
Steve

On Mon, Jun 7, 2021 at 5:57 PM Ba= stien DUMONT <bastien.dumon= t@posteo.net> wrote:
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 aux= iliary
file produced by pdflatex...

Does the attached MWE throw the same error?

Le Monday 07 June 2021 =C3=A0 05:17:25PM, Steve Petersen a =C3=A9crit :
> Thanks again Bastien. I tried a minimal latex file that works fine wit= h 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 p= andoc
> results in an error that says
>
> ~~~
> ! Undefined control sequence.
> l.32 \preparecolorset
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0{rgb}{}{}{%
> ~~~
>
> I see that the pandoc-generated file wants to pass options for a packa= ge 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:
>
>=C2=A0 =C2=A0 =C2=A0Please try pandoc -o test.tex link-color-test.text = && pdflatex test.tex and
>=C2=A0 =C2=A0 =C2=A0look
>=C2=A0 =C2=A0 =C2=A0at the output, it may give you some hints.
>
>=C2=A0 =C2=A0 =C2=A0Le Monday 07 June 2021 =C3=A0 04:14:22PM, Steve Pet= ersen a =C3=A9crit :
>=C2=A0 =C2=A0 =C2=A0> Thanks for trying it Bastien! How odd. I just = used `pandoc -o
>=C2=A0 =C2=A0 =C2=A0> link-color-test.pdf link-color-test.text` to g= et the error. That command
>=C2=A0 =C2=A0 =C2=A0works
>=C2=A0 =C2=A0 =C2=A0> fine when I remove the linkcolor line from the= file, but does not work on
>=C2=A0 =C2=A0 =C2=A0my
>=C2=A0 =C2=A0 =C2=A0> Mac or linux machines when I have the linkcolo= r line in. Maybe I'm using
>=C2=A0 =C2=A0 =C2=A0old
>=C2=A0 =C2=A0 =C2=A0> latex or something? It's "kpathsea ve= rsion 6.2.3" on linux and "kpathsea
>=C2=A0 =C2=A0 =C2=A0> version 6.3.2" on the Mac.
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> Steve
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> On Mon, Jun 7, 2021 at 4:04 PM Bastien DUMONT = <bastien.= dumont-VwIFZPTo/vqsTnJN9+BGXg@public.gmane.org>
>=C2=A0 =C2=A0 =C2=A0> wrote:
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0I compiled your MWE success= fully with 2.14. What is command do you
>=C2=A0 =C2=A0 =C2=A0use
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0exactly?
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0Le Monday 07 June 2021 =C3= =A0 11:01:11AM, Steve Petersen a =C3=A9crit :
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> Hello again marvelous = pandoc people,
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> I recently upgraded to= 2.14.0.1, and it seems like my 'linkcolor=3D
>=C2=A0 =C2=A0 =C2=A0blue'
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0option
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> in YAML no longer work= s for pdfs from markdown. I get this error:
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> ~~~
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> Error producing PDF. >=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> ! Undefined control se= quence.
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> l.32 \preparecolorset<= br> >=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> ~~~
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> I've reproduced th= is on Mac and linux (both 2.14.0.1). I'm afraid
>=C2=A0 =C2=A0 =C2=A0I'm
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0ignorant
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> enough of the details = to have no idea how to fix this - any ideas?
>=C2=A0 =C2=A0 =C2=A0MWE
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> attached.
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> thanks,
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> Steve
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> --
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> You received this mess= age because you are subscribed to the Google
>=C2=A0 =C2=A0 =C2=A0Groups
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> "pandoc-discuss&q= uot; group.
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> To unsubscribe from th= is group and stop receiving emails from it,
>=C2=A0 =C2=A0 =C2=A0send an
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0email
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> to pandoc-disc= uss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> To view this discussio= n on the web visit https://groups.google.com/
>=C2=A0 =C2=A0 =C2=A0d/
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0msgid/
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> pandoc-discuss/06f458e= 4-88ef-4f4f-a9fa-097288944ebbn%
>=C2=A0 =C2=A0 =C2=A040googlegroups.com.
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> ---
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> title: Link colors
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> author: Steve Petersen=
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> date: 'Last revise= d: <2021-06-07 13:59:27>'
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> linkcolor: blue
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> ---
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0> Check out [my website]= (https://stevepetersen.net) for more.
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0You received this message b= ecause you are subscribed to a topic in
>=C2=A0 =C2=A0 =C2=A0the
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0Google Groups "pandoc-= discuss" group.
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0To unsubscribe from this to= pic, visit https://groups.google.com/d/
>=C2=A0 =C2=A0 =C2=A0topic/
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0pandoc-discuss/ow2MJRMJCKA/= unsubscribe.
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0To unsubscribe from this gr= oup and all its topics, send an email to
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0pandoc-discuss+unsu= bscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0To view this discussion on = the web visit https://groups.google.com/d/
>=C2=A0 =C2=A0 =C2=A0msgid/
>=C2=A0 =C2=A0 =C2=A0>=C2=A0 =C2=A0 =C2=A0pandoc-discuss/YL57m4FGHkmg= 236a%40localhost.
>=C2=A0 =C2=A0 =C2=A0>
>=C2=A0 =C2=A0 =C2=A0> --
>=C2=A0 =C2=A0 =C2=A0> You received this message because you are subs= cribed to the Google Groups
>=C2=A0 =C2=A0 =C2=A0> "pandoc-discuss" group.
>=C2=A0 =C2=A0 =C2=A0> To unsubscribe from this group and stop receiv= ing emails from it, send an
>=C2=A0 =C2=A0 =C2=A0email
>=C2=A0 =C2=A0 =C2=A0> to pandoc-discuss+unsubscribe@googlegr= oups.com.
>=C2=A0 =C2=A0 =C2=A0> To view this discussion on the web visit ht= tps://groups.google.com/d/
>=C2=A0 =C2=A0 =C2=A0msgid/
>=C2=A0 =C2=A0 =C2=A0> pandoc-discuss/
>=C2=A0 =C2=A0 =C2=A0> CAGk0Nk9TF8fZes_iF%3D%3DdVj-xQfF5KFntCNysH45D8= TXxRow%3D9g%
>=C2=A0 =C2=A0 =C2=A040mail.gmail.com.
>
>=C2=A0 =C2=A0 =C2=A0--
>=C2=A0 =C2=A0 =C2=A0You received this message because you are subscribe= d to a topic in the
>=C2=A0 =C2=A0 =C2=A0Google Groups "pandoc-discuss" group.
>=C2=A0 =C2=A0 =C2=A0To unsubscribe from this topic, visit http= s://groups.google.com/d/topic/
>=C2=A0 =C2=A0 =C2=A0pandoc-discuss/ow2MJRMJCKA/unsubscribe.
>=C2=A0 =C2=A0 =C2=A0To unsubscribe from this group and all its topics, = send an email to
>=C2=A0 =C2=A0 =C2=A0pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org= .
>=C2=A0 =C2=A0 =C2=A0To view this discussion on the web visit h= ttps://groups.google.com/d/msgid/
>=C2=A0 =C2=A0 =C2=A0pandoc-discuss/YL6JShMRy5FjxstX%40localhost.
>
> --
> You received this message because you are subscribed to the Google Gro= ups
> "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.googl= e.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
>=C2=A0 =C2=A0\usepackage[T1]{fontenc}
>=C2=A0 =C2=A0\usepackage[utf8]{inputenc}
>=C2=A0 =C2=A0\usepackage{textcomp} % provide euro and other symbols
> \else % if luatex or xetex
>=C2=A0 =C2=A0\usepackage{unicode-math}
>=C2=A0 =C2=A0\defaultfontfeatures{Scale=3DMatchLowercase}
>=C2=A0 =C2=A0\defaultfontfeatures[\rmfamily]{Ligatures=3DTeX,Scale=3D1}=
> \fi
> % Use upquote if available, for straight quotes in verbatim environmen= ts
> \IfFileExists{upquote.sty}{\usepackage{upquote}}{}
> \IfFileExists{microtype.sty}{% use microtype if available
>=C2=A0 =C2=A0\usepackage[]{microtype}
>=C2=A0 =C2=A0\UseMicrotypeSet[protrusion]{basicmath} % disable protrusi= on for tt fonts
> }{}
> \makeatletter
> \@ifundefined{KOMAClassName}{% if non-KOMA class
>=C2=A0 =C2=A0\IfFileExists{parskip.sty}{%
>=C2=A0 =C2=A0 =C2=A0\usepackage{parskip}
>=C2=A0 =C2=A0}{% else
>=C2=A0 =C2=A0 =C2=A0\setlength{\parindent}{0pt}
>=C2=A0 =C2=A0 =C2=A0\setlength{\parskip}{6pt plus 2pt minus 1pt}}
> }{% if KOMA class
>=C2=A0 =C2=A0\KOMAoptions{parskip=3Dhalf}}
> \makeatother
> \usepackage{xcolor}
> \IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if = available
> \IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperre= f}}
> \hypersetup{
>=C2=A0 =C2=A0pdftitle=3D{Link colors},
>=C2=A0 =C2=A0pdfauthor=3D{Steve Petersen},
>=C2=A0 =C2=A0colorlinks=3Dtrue,
>=C2=A0 =C2=A0linkcolor=3D{blue},
>=C2=A0 =C2=A0filecolor=3D{Maroon},
>=C2=A0 =C2=A0citecolor=3D{Blue},
>=C2=A0 =C2=A0urlcolor=3D{Blue},
>=C2=A0 =C2=A0pdfcreator=3D{LaTeX via pandoc}}
> \urlstyle{same} % disable monospaced font for URLs
> \setlength{\emergencystretch}{3em} % prevent overfull lines
> \providecommand{\tightlist}{%
>=C2=A0 =C2=A0\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
> \setcounter{secnumdepth}{-\maxdimen} % remove section numbering
> \ifLuaTeX
>=C2=A0 =C2=A0\usepackage{selnolig}=C2=A0 % 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 a topic in the Goog= le Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/ow2MJRMJCKA/un= subscribe.
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/YL6WN4N2= GwNaFkK6%40localhost.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://group= s.google.com/d/msgid/pandoc-discuss/CAGk0Nk9-850ZqJzHrxW6T2m_1th7pBkUJMJhK%= 3DxYqXianeXEcA%40mail.gmail.com.
--000000000000d4a77305c4348fd4-- --000000000000d4a77505c4348fd6 Content-Type: text/x-tex; charset="US-ASCII"; name="link-color.tex" Content-Disposition: attachment; filename="link-color.tex" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kpn6qmil0 XGRvY3VtZW50Y2xhc3N7YXJ0aWNsZX0KXHVzZXBhY2thZ2V7dHhmb250c30KXHVzZXBhY2thZ2V7 eGNvbG9yfQpcYmVnaW57ZG9jdW1lbnR9CgpcdGl0bGV7TGluayBjb2xvcnN9CgpcYXV0aG9ye1N0 ZXZlIFBldGVyc2VufSAKClxtYWtldGl0bGUKClx0ZXh0Y29sb3J7Ymx1ZX17TGlrZSBkb2VzIHRo aXMgd29yaz99CgpcdGV4dGNvbG9ye3JlZH17SXMgdGhpcyBhIGRpZmZlcmVudCBjb2xvcj99Cgpc ZW5ke2RvY3VtZW50fQoK --000000000000d4a77505c4348fd6--