From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28350 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: gnpan Newsgroups: gmane.text.pandoc Subject: Re: Markdown to PDF via TeX: Tyring to change section title color Date: Sat, 15 May 2021 09:38:49 -0700 (PDT) Message-ID: <37e25787-5f00-460f-8860-7ea48aa224c6n@googlegroups.com> References: <8d49ee0f-a978-4cac-9df0-6f0fcb2b6369n@googlegroups.com> <37ef69ff-8fd6-4092-9291-bd7a2515b679n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_9621_897693904.1621096729425" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11556"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCMK7GUUXYBRBG7S76CAMGQEKEUU6KQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat May 15 18:38:53 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f56.google.com ([209.85.210.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lhxJV-0002k6-91 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 15 May 2021 18:38:53 +0200 Original-Received: by mail-ot1-f56.google.com with SMTP id u12-20020a9d4d8c0000b02902dcb6679ca2sf1730941otk.20 for ; Sat, 15 May 2021 09:38:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=iQIk5gCvMIeckswHufCWfJ7IReMiuX3D5cDWAQadGTs=; b=E7hgtsR/gRr2T8gM+bjU5kaElKM7VA3jO0tbsmPBKRqUQUu3olxxLrL4g0ZIz5/+br 3uEohE9Fx/rLhT2zTtQn1/tMpVQVPW4yGVIK2rg4JkrFhg/EJco/wxZbUQRYj22ZZkZ5 i3PYrtdi3dJhqSvuJXzy8ObB6sqAQPLN1NvOxpTKT5MhUrRUtWl4aMLy/050F5V394xf fgCEz/l4OZnDT71YGl62fPqF4FB2ND1JhIA0IjJS/sbgGEr52sJFSKaOWzncvwZbSjXo 58uaswcbUw8JgHcQa4HvIVlHNrCAksJNKCuwvUXCTAbY3NpjTUi+OlRyO1d8awKh8pTp C4gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=iQIk5gCvMIeckswHufCWfJ7IReMiuX3D5cDWAQadGTs=; b=RIMwtjUWFTZuKPWTgACkk8EbHwUmTRKj0LNcG3EKScwgKkpFSutGdid/n6QD6Fz/ym BE8sMlwSlTxBdBYJAHW0BmG1EyzsXTUHOxBemlI57PXaGvdqpv+TMjbbp2sNCj9KWff6 gTTxkNVYbagDbsPJOyqWo8ddiE9cDYBcokDwpyKyVUC/Zz1fUmPnsB9P81rxO11sTyTI ZImNTkey45lMBzBz3inNBsNJUYgelePawHNLHLf7sV7Jk5ZJsuX5rRD9m+d1TTfd0kOg C0pYrwGl/8kcGELPy+NA6RjVQHt2tmZ4lWW2hCJVzCzwk5VSUYFbaHqkrCdpufThxEVw kzsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=iQIk5gCvMIeckswHufCWfJ7IReMiuX3D5cDWAQadGTs=; b=J5Sr0SWcpq4qDoqBdn9M0jdmERZeSjlss1O4Ii5vHpOpLRhw9Mv+xc78tcpuZ7tvQJ HqhXRh+WIumZ3oVyQxHdpPOKIW3yGNTXSvjAMjqQ9Xst79wQFZ5ePx59doZ5U4BtISlx yjWS0eKC9yqn1NaKs4L86+egNvzQUXS9PAvKFG98WD/jHO4Gh+SJpKMZMlQAYwIc1Imb GbN6rKAeMNtvkO1fZggEs1mBIRDE3A9NNL6lvm4xyI/uSmkLb0TR8+vEZIwi8NlUcNdA tanoWAyT//LzxbSejWK5M8SXGvF4K7/MC7/17ev5mOH/oS4Er1wWwmx4LsbIfLT1OQn/ fM3A== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM530Q1Mil1aA0rLu/Hi0UJshNfmzBsc+qbo9Fh2fEtM8jnPa4GQ4a ye+qzxfV2mWbPw6EsUEbD1E= X-Google-Smtp-Source: ABdhPJxV7jxUISPcqS3wIbcx45MGwmsyoC8sjMVTB6LV20kYOmSlFM3LJxtuCMuv+b+WAd/C1nPdKg== X-Received: by 2002:aca:b107:: with SMTP id a7mr10082620oif.170.1621096732264; Sat, 15 May 2021 09:38:52 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:5c5:: with SMTP id 188ls3206874oif.6.gmail; Sat, 15 May 2021 09:38:50 -0700 (PDT) X-Received: by 2002:a05:6808:3dc:: with SMTP id o28mr10061759oie.64.1621096730506; Sat, 15 May 2021 09:38:50 -0700 (PDT) In-Reply-To: <37ef69ff-8fd6-4092-9291-bd7a2515b679n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> X-Original-Sender: g.panayotou-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:28350 Archived-At: ------=_Part_9621_897693904.1621096729425 Content-Type: multipart/alternative; boundary="----=_Part_9622_2077347389.1621096729425" ------=_Part_9622_2077347389.1621096729425 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Your BasicTex installation should include tlmgr, which you can run from the= =20 terminal to install a package (see=20 ):=20 tlmgr install titlesec=20 should do it. However, if you can spare 2gigabytes, it's worth downloading= =20 the whole MacTex distribution () On Saturday, 15 May 2021 at 19:06:32 UTC+3 russur...-H+0wwilmMs3R7s880joybQ@public.gmane.org wrote: > i installed BasicTex as the website i read said this should be sufficient= ,=20 > but I guess for certain things its not. Can i add the titlesec style ti= =20 > this? Or do i need to install another Tex version? > > Thanks, > > Russ > > On Saturday, May 15, 2021 at 2:35:02 AM UTC-5 denis...-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org wrote: > >> Exactly, it=E2=80=99s about the titlesec package not being available. (W= hat=E2=80=99s=20 >> your installed TeX-Distribution ?) >> >> \definecolor just happens to be on the next line, but the error is not= =20 >> about adding colors.=20 >> >> Otherwise you=E2=80=99d get an error like >> >> Undefined control sequence \definecolor >> >> or similar... >> >> Best, >> >> Denis >> >> =20 >> >> *Von:* pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org *Im=20 >> Auftrag von *gnpan >> *Gesendet:* Samstag, 15. Mai 2021 09:31 >> *An:* pandoc-discuss >> *Betreff:* Re: Markdown to PDF via TeX: Tyring to change section title= =20 >> color >> >> =20 >> >> It should work OK. Maybe the titlesec package is not installed, check=20 >> your TeX installation (). >> >> On Saturday, 15 May 2021 at 00:22:02 UTC+3 rurq...-Zl5T1cyB3pc@public.gmane.org wrote: >> >> Hi all, >> >> =20 >> >> I found several items on the web about customizing my pdf output from=20 >> Pandoc. >> >> =20 >> >> I am calling pandoc with the following parameters: >> >> =20 >> >> pandoc *.md -H seccolor.tex -o test_doc.pdf --table-of-contents=20 >> --number-sections --indented-code-classes=3Djavascript=20 >> --highlight-style=3Dmonochrome -V mainfont=3D"Palatino" -V documentclass= =3Dreport=20 >> -V papersize=3DA5 -V geometry:margin=3D1in -V monofont=3D"Courier"=20 >> --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. >> >> =20 >> >> Type X to quit or to proceed, >> >> or enter new name. (Default extension: sty) >> >> =20 >> >> Enter file name:=20 >> >> ! Emergency stop. >> >> =20 >> >> =20 >> >> l.98 \definecolor >> >> Should i be using another style? I WAS able to generate a standard PDF,= =20 >> but just wanted to add a splash of color. From what I read, this snippet= of=20 >> TeX should work. >> >> Can anyone suggest how I can fix this? >> >> Thanks, >> >> =20 >> >> Russ >> >> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/8d49ee0f-a978-4cac-9df0= -6f0fcb2b6369n%40googlegroups.com=20 >> >> . >> > --=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/37e25787-5f00-460f-8860-7ea48aa224c6n%40googlegroups.com. ------=_Part_9622_2077347389.1621096729425 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Your BasicTex installation should include tlmgr, which you can run from the= terminal to install a package (see <https://www.tug.org/texlive/doc/tlm= gr.html#install-option...-pkg>): 
tlmgr install titlesec <= /div>
should do it. However, if you can spare 2gigabytes, it's worth do= wnloading the whole MacTex distribution (<http://www.tug.org/mactex/>= )

On Saturday, 15 May 2021 at 19:06:32 UTC+3 russur...@verizon.n= et wrote:
i i= nstalled BasicTex as the website i read said this should be sufficient, but= I guess for certain things its not. Can i add the titlesec style ti this? = Or do i need to install another Tex version?

Thanks,

Russ

On Saturday, May 15, 2021 at 2:35:02 AM UTC-= 5 denis...-FfwAq0itz3ofv37vnLkPlQ@public.gmane.org wrote= :

Exactly, it=E2=80=99s about the= titlesec package not being available. (What=E2=80=99s your installed TeX-D= istribution=C2=A0?)

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

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

Undefined control sequence \def= inecolor

or similar...

Best,

Denis

=C2=A0

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

=C2=A0

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

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

Hi all,

=C2=A0

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

=C2=A0

I am calling pandoc with the following parameters:

=C2=A0

=C2=A0 =C2=A0 =C2=A0pandoc *.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:

=C2=A0 =C2=A0 \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.=

=C2=A0

Type X to quit or <RETURN> to proceed,<= u>

or enter new name. (Default extension: sty)

=C2=A0

Enter file name:=C2=A0

! Emergency stop.

<read *>=C2=A0

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0

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,

=C2=A0

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-discus...-/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/pandoc-discuss/37e25787-5f00-460f-8860-7ea48aa224c6n%40googlegroups.= com.
------=_Part_9622_2077347389.1621096729425-- ------=_Part_9621_897693904.1621096729425--