From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28347 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.text.pandoc Subject: AW: Markdown to PDF via TeX: Tyring to change section title color Date: Sat, 15 May 2021 07:34:55 +0000 Message-ID: References: <8d49ee0f-a978-4cac-9df0-6f0fcb2b6369n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_d32560495cc7456bbb78e302aaff271fubunibech_" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11618"; mail-complaints-to="usenet@ciao.gmane.io" To: Original-X-From: pandoc-discuss+bncBCLLXQUC2IARBI7T7WCAMGQE5EKJFYI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat May 15 09:35:02 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-lj1-f191.google.com ([209.85.208.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lhopB-0002oo-I1 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 15 May 2021 09:35:01 +0200 Original-Received: by mail-lj1-f191.google.com with SMTP id j2-20020a2e6e020000b02900f2f75a122asf575744ljc.19 for ; Sat, 15 May 2021 00:35:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1621064101; cv=pass; d=google.com; s=arc-20160816; b=Jj5PQQwqfTrWJsq7ksniYfXtw49iAUoeaFRQRCvzXH0ibkUiCLaobnoA5d07+ibfAu yTVbRLiPUX1JJaoQEnQ1RE5VOppnUxI45ku0s3OmoXaDxMC1BkLbujIo61GDWzQ90JYK hYujI40s/+UN96vtNC5wtolSaAK/6lAjN2No2uuH8X20PLNo3QEJB+/0tcsRBtKKSSNh NoENTNW/AEg8esMVnLTc34U3HxDB8whBQy2DICVm3aPY4Ly4A0BDz9i06RqLlJZLQ8Qs HzvzfODaSx0OeyS+w9f6f16DTt7O5E2suhyRimjMz4rJCfwlG+veDylmrl2p1YRi1p+H zQwQ== 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:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:to:from:sender :dkim-signature; bh=tmoej/Otd/qV/S2QjWBkA9OaOZGytwe7AZPvYyMdVnA=; b=JaPFOcS7dIz9cQuW+NBrm+0Y0GP0+WxHBXJLQdjyCgEk4lRi6c2iqH8S8kNfRhp3js g/X78+zAUUWJ/EsuvT3TxtmjyVdSSO9S1LId6WpYEy0pZj0pysqAj7ahcU2NPaOIB9V7 Llusv31r6gDpqwSgv028nF24efVYJj1bOcuoDelxIwYmNwrCmmhmjzZwMxBX+6d24k4N Y8lVqetClRkvymnrZ7vOnAFmTBlENaODZXmRfPmqlqiy9sByI2WVatsUjnoQN71Qw0rw dp55Unw9UNnCY76sPVek3eT+e6IkOjPrwF4Kn3mVKOe0xOYcCa/fvH7HLpoEa0D/XIQ5 IXHw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:from:to:subject:thread-topic:thread-index:date:message-id :references:in-reply-to:accept-language:content-language :mime-version: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=tmoej/Otd/qV/S2QjWBkA9OaOZGytwe7AZPvYyMdVnA=; b=nloCLZpRk5hYQKd65mRdVYJFaZxjz2opRrWLQVovQnJIhckRGwFR1tBc25EgoZOqbm OZbHrCOjwmIvDbDBVQv/xyllyroNlwZ83A30X1L5qxlRIomkAYnMPl69iELSOAbN5tn4 9C7k8Qwqu2B2gsopyZ92HL7LNa++72WwSgzUpXbQ+AXJrlvr30GBSgK1koyCZKntzyS8 2sZ/KT5eDTwUU+E/38dPODOaniNPznh9V1odx8ZjX+0pW/XXcvAsaBVMoPdREl9SbMyo rOLfaKyR9edEMPCqmRVp2MkIpFjLuIyK78ZD0lrvR6TqwnFAzallCLqMF8/9HUSNhqhf lfqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:from:to:subject:thread-topic:thread-index :date:message-id:references:in-reply-to:accept-language :content-language:mime-version: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=tmoej/Otd/qV/S2QjWBkA9OaOZGytwe7AZPvYyMdVnA=; b=fzIglKhAu4p5A8fl+IyLWxeQkhGK76b0H9JcrqI7nEdUUpAuP2SbPVRz/pdtnRZslN E/p7qD2dryDPQG7iaTPk2xf3yfK4Klwe7Uqn23pmM86r5czKpSFNYCfPI+Z36tmlW+CM 3JM5WvplwNZknQ0VuQywEwJ58Kk3VjnVu4+0CKEF1NakmLx29vIFNPWOxHTFohn2Ii28 n3YJUnbV6HTv5JhgC0whzJzdX3KbNo143C1NarClS10Juxksp56snv2KizYfrMeixzS2 eY/sgvIAxPbx0tbyJhCVXRDrsTK5G0V Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM5300r36OFXmnfWvoxfL6F345SBSMONXWBNI67StanYRdB2cex/w1 SkeX8m3q6CDeG8SjD5xbGLE= X-Google-Smtp-Source: ABdhPJyt0G5NFLlnFoYuowT4V2FzdZ/j360Mra5JPOMiLbVbGk9JPZqHsdy66xscDc0TLzmYkGAfHQ== X-Received: by 2002:a05:6512:11c5:: with SMTP id h5mr33568294lfr.401.1621064101007; Sat, 15 May 2021 00:35:01 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a2e:7008:: with SMTP id l8ls2064894ljc.4.gmail; Sat, 15 May 2021 00:34:58 -0700 (PDT) X-Received: by 2002:a2e:97ca:: with SMTP id m10mr40923983ljj.205.1621064098259; Sat, 15 May 2021 00:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621064098; cv=none; d=google.com; s=arc-20160816; b=dKzCGJdLnpq8mP5Sjyc8CbyA7tpgLq2DT8V+m+BSabw3annyEF9SUwRi/1N6CMaSzr J9RQoOz/BDGR73RfGBedNiXGWHzfaJXvSviQIZZfA9VKA0SuMvtvFA6R/MAsMb5+7+88 O1ZR84TOsm+djEPeyJdCBe8UNEg1C8frIXPs1jJlxAFC7y9dBRbGju9gMTLFG8Onj8Ku nyOmVeFijLycx1ZKCGu+ERj4BAO1hHYqey960XKXO+gl3NhpYbLU3PQO/X/QKpF7NZbJ BhBA4Q+cEbQgPYmSDcswLynfno8Hi185PVM8lNTluCVyuJsTXQor+sGCYmA72csEQe4A vRfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from; bh=MT9fL9K9OJ9sTbNKxiHURawOJo/rCp1n9XyTMjegLtU=; b=0N4/2zGKrzK5Gv79QWdcnrDJLUklSMJFJycNNwA5ZbG3ABI36jh1WpcjzdWSBAGhWR MyYdAomyTolGtI5ML6VrJzVPTaGkRVuTYl5wgDW3G6VfS/jpVoaOzC9/93TKIaXdb3W0 TgB9n8irsDqjbSZxG+Gb+AgzeFR+r0TcrqpzewhvK4kQeGmeLOh8hR0Dvkg6fHF/giE8 qpHa3GziSwvTYTL/TRG7zVBhLc9a193MK98ur3tU05t3gGEMMsEWJLOOATuG7KQOwtHo BtEgMLji4ZE7kh3xZUgv6aIIcXtrMblbS77fPQq24YYu+y+uE2MIYQqZvRotlmMVpClQ /RPQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch Original-Received: from mailhub-lb1.unibe.ch (mailhub-lb1.unibe.ch. [130.92.0.82]) by gmr-mx.google.com with ESMTPS id z8si346247lji.4.2021.05.15.00.34.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 May 2021 00:34:57 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org designates 130.92.0.82 as permitted sender) client-ip=130.92.0.82; X-Virus-Scanned: By University of Bern - MGW Original-Received: from mail.campus.unibe.ch (aai-edge-03.campus.unibe.ch [130.92.13.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mailhub-lb1.unibe.ch (Postfix) with ESMTPS id 6B413500085 for ; Sat, 15 May 2021 09:34:56 +0200 (CEST) Thread-Topic: Markdown to PDF via TeX: Tyring to change section title color Thread-Index: AQHXSQcwDnbVHcAVt0CyTplqbe+TqKrkBQMAgAAhy3A= In-Reply-To: <8d49ee0f-a978-4cac-9df0-6f0fcb2b6369n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Accept-Language: de-CH, en-US Content-Language: de-DE x-originating-ip: [130.92.13.161] X-Original-Sender: denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org designates 130.92.0.82 as permitted sender) smtp.mailfrom=denis.maier-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=unibe.ch 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:28347 Archived-At: --_000_d32560495cc7456bbb78e302aaff271fubunibech_ Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Exactly, it=E2=80=99s about the titlesec package not being available. (What= =E2=80=99s your installed TeX-Distribution ?) \definecolor just happens to be on the next line, but the error is not abou= t adding colors. Otherwise you=E2=80=99d get an error like Undefined control sequence \definecolor or similar... Best, Denis Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Im A= uftrag von gnpan Gesendet: Samstag, 15. Mai 2021 09:31 An: pandoc-discuss Betreff: Re: Markdown to PDF via TeX: Tyring to change section title color It should work OK. Maybe the titlesec package is not installed, check your = TeX installation (). On Saturday, 15 May 2021 at 00:22:02 UTC+3 rurq...-Zl5T1cyB3pc@public.gmane.org wrote: Hi all, I found several items on the web about customizing my pdf output from Pando= c. I am calling pandoc with the following parameters: pandoc *.md -H seccolor.tex -o test_doc.pdf --table-of-contents --numb= er-sections --indented-code-classes=3Djavascript --highlight-style=3Dmonoch= rome -V mainfont=3D"Palatino" -V documentclass=3Dreport -V papersize=3DA5 -= V geometry:margin=3D1in -V monofont=3D"Courier" --pdf-engine=3Dxelatex The seccolor.tex file is: \usepackage{titlesec} \definecolor{DPurple}{rgb}{.75,.52,.153} \titleformat*{\section}{\color{DPurple}} % \sectionfont{\color{DPurple}} When i run the command i get: Error producing PDF. ! LaTeX Error: File `titlesec.sty' not found. Type X to quit or to proceed, or enter new name. (Default extension: sty) Enter file name: ! Emergency stop. l.98 \definecolor Should i be using another style? I WAS able to generate a standard PDF, but= just wanted to add a splash of color. From what I read, this snippet of Te= X should work. Can anyone suggest how I can fix this? Thanks, Russ -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/8d49ee0f-a978-4cac-9df0-6f0fcb2b6369n%40googlegroups.com. --=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/d32560495cc7456bbb78e302aaff271f%40ub.unibe.ch. --_000_d32560495cc7456bbb78e302aaff271fubunibech_ Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Exactly, it=E2=80=99s about the titlesec package not being available.= (What=E2=80=99s your installed TeX-Distribution ?)<= /p>

\definecolor just happens to be on the next line, but the error is no= t about adding colors.

Otherwise= you=E2=80=99d get an error like

Undefined control sequence \definecolor

or similar...

Best,

Denis

 

Von: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> Im Auftrag von gnpan
Gesendet: Samstag, 15. Mai 2021 09:31
An: pandoc-discuss <pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
Betreff: Re: Markdown to PDF via TeX: Tyring to change section title= color

 

It should work OK. Ma= ybe the titlesec package is not installed, check your TeX installation (<= ;https://www.tug.org/texlive/&= gt;).

On Saturday, 15 May 2021 at 00:22:02 UTC+3 rurq...-Zl5T1cyB3pc@public.gmane.org wrote:

Hi all,

 

I found several items on the web about customizing m= y pdf output from Pandoc.

 

I am calling pandoc with the following parameters:

 

     pandoc *.md -H seccolor.tex -o t= est_doc.pdf --table-of-contents --number-sections --indented-code-classes= =3Djavascript --highlight-style=3Dmonochrome -V mainfont=3D"Palatino&q= uot; -V documentclass=3Dreport -V papersize=3DA5 -V geometry:margin=3D1in -V monofont=3D"Courier" --pdf-engine=3Dxelatex

The seccolor.tex file is:

    \usepackage{titlesec}

\definecolor{DPurple}{rgb}{.75,.52,.153}<= /p>

\titleformat*{\section}{\color{DPurple}}<= /p>

% \sectionfont{\color= {DPurple}}

When i run the command i get:

Error producing PDF.

! LaTeX Error: File `titlesec.sty' not found.

 

Type X to quit or <RETURN> to proceed,

or enter new name. (Default extension: sty)

 

Enter file name: 

! Emergency stop.

<read *> 

         

l.98 \definecolor

Should i be using another style? I WAS able to generate a standard PDF, but= just wanted to add a splash of color. From what I read, this snippet of Te= X should work.

Can anyone suggest how I can fix this?

Thanks,

 

Russ

--
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 pandoc-d= iscuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/8d49ee0f-a978-4cac-9df0-6f= 0fcb2b6369n%40googlegroups.com.

--
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://groups.google.com/d/msgid/pan= doc-discuss/d32560495cc7456bbb78e302aaff271f%40ub.unibe.ch.
--_000_d32560495cc7456bbb78e302aaff271fubunibech_--