From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28349 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'russurquhart1' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Markdown to PDF via TeX: Tyring to change section title color Date: Sat, 15 May 2021 09:06:31 -0700 (PDT) Message-ID: <37ef69ff-8fd6-4092-9291-bd7a2515b679n@googlegroups.com> References: <8d49ee0f-a978-4cac-9df0-6f0fcb2b6369n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_14682_831197428.1621094791814" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22132"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCRKH45OXUEBBCHD76CAMGQEBPVKOEA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat May 15 18:06:36 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f56.google.com ([209.85.161.56]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lhwoF-0005VQ-Ef for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 15 May 2021 18:06:35 +0200 Original-Received: by mail-oo1-f56.google.com with SMTP id v9-20020a4a97490000b02901f9df48b0cfsf1918890ooi.0 for ; Sat, 15 May 2021 09:06:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.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=HWbHdjOUQnV76C0VJUyxwj9aiUrD0vtSPM0fhj7nJnQ=; b=tYse7ZKZuCkfalMUoRVjJQDcQUI3BP696VZZzqbUgKE4BHqurDheJE7KMkh/bSpQBf 5rzNx4zJPCBcTaLXT9chY8uJKNGdh8Xd7AIbQEoB3fwiUEBnHAkbNpQfCfSmQygLOfGI EoMrTbr8KxwCyqAeKO1TW0S4QqMcGnvY2drkV9KIl8JyMlZ26ypBSz8cJdU7NidOfQsa Xhy4yxJv+oWwYai2s1uaSQamn/9kQxiDwZ0VNj8rMmc1W3oO8WvS8j5wtV9ppMMii5wr YYN5AQf/jpX1GWhysQhhyvaIZLYm3tl+adVdc4RCuce6LVEr1Q5FCgz//7Q+8Cy0KjRN V3KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=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=HWbHdjOUQnV76C0VJUyxwj9aiUrD0vtSPM0fhj7nJnQ=; b=H5uMtvSSgSAj3Bf/32ruB16bw/19+tLBxNfHmbDVC8/rgePgPrkluVQaQEvR9LYWZg QSqny+Jr4uoCi1rq3PGdKNXsroJD+fJWuerrzYCU2nzKKxjceKXICK3FOg2wkFGriq+F AaDjmEuOpm5QixciJvNG/z5xQFeVETQLb4gYhjLb/tC5VoQPcYUG7bSak9+qH0gKhJB2 iiK5PhGa0JYSeH35lUm8f5IWm3QCrPdF0DkyUFwOGjthhZxoYdb+XrE05Qk5SJM+K9ZF 2z1rSHQZ3nAFxystNKjo3apqzNtMRKPkIj2EsvM1RbA7tSuCp8RlXJfVp6zv6yMrQQQI YEpw== X-Gm-Message-State: AOAM5312Qokt4PIw1Mi+61EgcFeBVnJxO58ybyYqeg1CbuXQoud33f8H 0j5FGfMVMJRKRZyh6x7RuyQ= X-Google-Smtp-Source: ABdhPJwtT5095xBuNpIvJTBncfu+ucgx1q+68vr0lleO2diuwkWNs3Nv7Tg8fVVizEkUO87BbAcuuQ== X-Received: by 2002:a05:6830:30bc:: with SMTP id g28mr43790517ots.43.1621094794487; Sat, 15 May 2021 09:06:34 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:d487:: with SMTP id l129ls3184644oig.11.gmail; Sat, 15 May 2021 09:06:32 -0700 (PDT) X-Received: by 2002:aca:2319:: with SMTP id e25mr9776050oie.38.1621094792541; Sat, 15 May 2021 09:06:32 -0700 (PDT) In-Reply-To: X-Original-Sender: russurquhart1-H+0wwilmMs3R7s880joybQ@public.gmane.org X-Original-From: russurquhart1 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:28349 Archived-At: ------=_Part_14682_831197428.1621094791814 Content-Type: multipart/alternative; boundary="----=_Part_14683_859316875.1621094791814" ------=_Part_14683_859316875.1621094791814 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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. (Wh= at=E2=80=99s your=20 > 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 you= r=20 > 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 Groups= =20 > "pandoc-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an= =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/37ef69ff-8fd6-4092-9291-bd7a2515b679n%40googlegroups.com. ------=_Part_14683_859316875.1621094791814 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable i installed 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 thi= s? Or do i need to install another Tex version?

Thanks,<= /div>

Russ

On Saturday, May 15, 2021 at 2:35:02 AM U= TC-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-...@googlegroups.c= om> Im Auftrag von gnpan
Gesendet: Samstag, 15. Mai 2021 09:31
An: pandoc-discuss <pa= ndoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
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...-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.org= m.
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/37ef69ff-8fd6-4092-9291-bd7a2515b679n%40googlegroups.= com.
------=_Part_14683_859316875.1621094791814-- ------=_Part_14682_831197428.1621094791814--