From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28346 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 00:31:20 -0700 (PDT) Message-ID: <8d49ee0f-a978-4cac-9df0-6f0fcb2b6369n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_11324_132428509.1621063880707" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36911"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCMK7GUUXYBRBSPR7WCAMGQEIPY3JVQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Sat May 15 09:31:25 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lholg-0009R0-O6 for gtp-pandoc-discuss@m.gmane-mx.org; Sat, 15 May 2021 09:31:24 +0200 Original-Received: by mail-ot1-f58.google.com with SMTP id k7-20020a9d4b870000b02902a5bfbbbd3bsf996823otf.18 for ; Sat, 15 May 2021 00:31:24 -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=eH3n0p/speO/rNM8Y+km5MtRI7Mc6N3mht+7Ly1IQlM=; b=Gf4EKzSNTUtgvsOSjah8Fhr2ulso+OQvofeqcotUNIli5IBUNqSQ49YLJ+4iEWeXyR xNq+tKZUMWy9nr/xZG9lMmyR0ARzdgPkCXklYcEN7PQKDY6KCZjgZ5Wx046xj0YYEHax /udRfSYTbvOlD8SshTMBQs4rk++FIGL2vIpGYw3yCpJbsx26kBKG533QtHE2QS+hR/S3 w7631lC7jdKo5BAR/3uBm2xQDvFfiERR9Fr7jJldZHiDFc26hU3/HOS46MqQBnv/miGp 4Y7uzoyuANrVmUb9HdDO7B0kzGaJP8GBAAQ7QnMu95LNpMiG2SZ88g6w9iWB/5OvxIcr lx3g== 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=eH3n0p/speO/rNM8Y+km5MtRI7Mc6N3mht+7Ly1IQlM=; b=KZNk0W2tADeP5sSR8ij+WqLRYx6DFIAj2SPJwhSMEGDG4M6vPgARLRlxyRprEe6mv+ 7gOdI8yQbOFKDeFHYjnQ+Up89c+uOgFU+v34JbV2C9msnW31IMPuFL0i9mGhOHnrfSrN pStRMKQJDGzZdi4CWzswGU2h8d8ooPFNcQmVo3cS48wW6YVzyUDQBy9Uen4vVo4cda0O hQgAqG+js/yJDcu+tUsGkcB+/gOW4mgq7OosEQfETqvnmaOVe8byYAhNY4BxCH+z9nKq 4/GB9WIXko5d08KShnyLQTT2tAJLuKVqyk4L/yipgwhZ496d0XVBLTWJ4kjSgfGGd1j0 o6Gw== 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=eH3n0p/speO/rNM8Y+km5MtRI7Mc6N3mht+7Ly1IQlM=; b=CUhbnm1FH6aCalUhaTqmdhp87oa6FE9gCx+6I+D0x8iGyUFnZYfzQmpcA6O7cD/kF8 2pTZ5cmEzbjsvqKdeXyktiZBr2s0O5ajZy/E0LsRNaldMUttLFuaZ4zmXMJXRpXgZkgA +wIemY/Z3X1KBGdZ2fPmdTQj6zU3lxqj4BBjkIAp6a4JfzVJu8o7sNxDBF1HkWAPam05 hkW/taUJCTSZtDLLBAc+CdF8OLLM+q1E0R25pxl8kH+Ngo/aXayeu1BmQ9buSgHbCjCK cZNN0sBI7+UohGFJ+2SgiRALcLjVst1GeT7+qkwKNeRJTn1koYLrhYJB3mx66iYC2T4a zi3g== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM531Hk22dnp4T4+894L2RndfnTa8nlvpY0uxTdpoC6ydKjrB+NHqC CCcaGVWZ7xpOFUiqLrsh3vo= X-Google-Smtp-Source: ABdhPJw51/yrqzVCZkcJWd6ws4YIguFiOEwLvIsHPDY6OvqIprUbPQvbzJ8iKhqAHXJjQz/xvFwTWw== X-Received: by 2002:a9d:798c:: with SMTP id h12mr41734882otm.253.1621063883187; Sat, 15 May 2021 00:31:23 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:7b46:: with SMTP id f6ls3191703oto.2.gmail; Sat, 15 May 2021 00:31:21 -0700 (PDT) X-Received: by 2002:a9d:6d88:: with SMTP id x8mr26923025otp.35.1621063881419; Sat, 15 May 2021 00:31:21 -0700 (PDT) In-Reply-To: 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:28346 Archived-At: ------=_Part_11324_132428509.1621063880707 Content-Type: multipart/alternative; boundary="----=_Part_11325_346682039.1621063880707" ------=_Part_11325_346682039.1621063880707 Content-Type: text/plain; charset="UTF-8" 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 > Pandoc. > > I am calling pandoc with the following parameters: > > pandoc *.md -H seccolor.tex -o test_doc.pdf --table-of-contents > --number-sections --indented-code-classes=javascript > --highlight-style=monochrome -V mainfont="Palatino" -V documentclass=report > -V papersize=A5 -V geometry:margin=1in -V monofont="Courier" > --pdf-engine=xelatex > > 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 > TeX 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 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/8d49ee0f-a978-4cac-9df0-6f0fcb2b6369n%40googlegroups.com. ------=_Part_11325_346682039.1621063880707 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable It should work OK. Maybe 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,

I found sever= al items on the web about customizing my pdf output from Pandoc.
=
I am calling pandoc with the following parameters:

=C2=A0 =C2=A0 =C2=A0pandoc *.md -H seccolor.tex -o test_doc= .pdf --table-of-contents --number-sections --indented-code-classes=3Djavasc= ript --highlight-style=3Dmonochrome -V mainfont=3D"Palatino" -V d= ocumentclass=3Dreport -V papersize=3DA5 -V geometry:margin=3D1in -V monofon= t=3D"Courier" --pdf-engine=3Dxelatex

The seccolor.tex file= is:

=C2=A0 =C2=A0 \usepackage{titlesec}
\definecolor{DPur= ple}{rgb}{.75,.52,.153}
\titleformat*{\section}{\color{DPurple}}<= /div>
% \sectionfont{\color{DPurple}}

When i run the command i g= et:

Error producing PDF.
! LaTeX Error: File `titlese= c.sty' not found.

Type X to quit or <RETURN= > to proceed,
or enter new name. (Default extension: sty)

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 abl= e to generate a standard PDF, but just wanted to add a splash of color. Fro= m what I read, this snippet of TeX should work.

Can anyone suggest h= ow 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 pand= oc-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.
------=_Part_11325_346682039.1621063880707-- ------=_Part_11324_132428509.1621063880707--