From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28345 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "rurq...-Zl5T1cyB3pc@public.gmane.org" Newsgroups: gmane.text.pandoc Subject: Markdown to PDF via TeX: Tyring to change section title color Date: Fri, 14 May 2021 14:22:02 -0700 (PDT) Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_678_659519603.1621027322279" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30220"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBD2NJ7OMTMJBB66T7OCAMGQESSXGSIA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri May 14 23:22:05 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f183.google.com ([209.85.167.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lhfG1-0007bu-Dp for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 14 May 2021 23:22:05 +0200 Original-Received: by mail-oi1-f183.google.com with SMTP id y10-20020a056808130ab02901ee2ab30dabsf374925oiv.3 for ; Fri, 14 May 2021 14:22:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=GxuJvi0otDW6GI+TdaKpf6lpUH+hR3JBS142Jj8ox8U=; b=Vmn6n4MHVTbH65Fx4ewVEt5dPnNvGhIR3JTfaWmcdD9qhznscasEH2/DQuGG+jrYK1 vl/lW67evZKD9ULK94XWINNddSx+SH3K1qw6gMVyCQ64vnmJSAvmjRUvrZz/sm0QMuAL KWRp73Cc0cq7V0T8xQqoS0J2djGGKRN32PL+1PawqCO8N7Xd8bfnX3ZPGp7VkMnmMHdV dBGf71zFodZ+Rq6pgrg3/kD6zWWysJSWl3/92lpyZ/75eDKP8bp3YE2nKfnNoIZEIhBl oXmD/tbcXjlPEgQsGf2hcouEKSfX1BFcMAwkLmE6MJaaRTw2F59VtDKzXua/+uOYukB2 8D1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=d2iq.com; s=google; h=date:from:to:message-id:subject:mime-version:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:list-subscribe:list-unsubscribe; bh=GxuJvi0otDW6GI+TdaKpf6lpUH+hR3JBS142Jj8ox8U=; b=dWNmvlg6c6zIkuCWfeRsBr3RSFOTH2PQneaHhRJlKypnk173iaEt86EMwCNFn3VPRh iNSFWCxhEYujf24Vyj35vxKUzTHOurcOfesOEsDK+0Ub8qbWEkL94JC7Mr1VnL5xEU14 tLjyRU8uv2gfGFR6ASyUuSdkUitXDADHvUbpc= 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: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=GxuJvi0otDW6GI+TdaKpf6lpUH+hR3JBS142Jj8ox8U=; b=GWAgBk9XptbBxuwkVWZ9GA0pOmyE1hLFuLCcSpqowsl66mDL2e9gRHxYdOLHCIM8w6 l4buNLrwSd79RiyUlviftZY7YAAJtUFbTYFspd1VacGZTxv6YFIz99wESK47wSqlnO7K XZljDphx+TmYDzh4AVwWMwqfWlKl84LGMq3EWmtSY7A3iJHBdU8d81vjic6AEv0AWuYo NlPk5Rk7rGj426ug6/PhyAh7VdOi8KvJq21ZAdlt4QyYppO7wMWbFz3M54Ikk4QL976h 8Fyg+4l4yUPNBGqxP/92ryI1hvmXPMda+XBLvRirmgPuqU0T6x7TZLCnzUWm9fmwSywV FjzQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM533fTd4QMGA8zLH1f+kIKZUtS7Xra4zlOHv58lY5DMUZhlg52DDh Oc1vHUrK8i6JUDX+XlzB+jo= X-Google-Smtp-Source: ABdhPJypOGsxmU1EQyit08NAeCANwZZgwhslATakzcToCVi3fK2nqkkE2/EsaqK+J3YTsM28tuU4iQ== X-Received: by 2002:a9d:6145:: with SMTP id c5mr41163277otk.58.1621027324456; Fri, 14 May 2021 14:22:04 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a9d:6c87:: with SMTP id c7ls2906049otr.3.gmail; Fri, 14 May 2021 14:22:03 -0700 (PDT) X-Received: by 2002:a9d:7410:: with SMTP id n16mr40440146otk.262.1621027322961; Fri, 14 May 2021 14:22:02 -0700 (PDT) X-Original-Sender: rurquhart-Zl5T1cyB3pc@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:28345 Archived-At: ------=_Part_678_659519603.1621027322279 Content-Type: multipart/alternative; boundary="----=_Part_679_96771326.1621027322279" ------=_Part_679_96771326.1621027322279 Content-Type: text/plain; charset="UTF-8" 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/c487e498-4249-4800-ab99-0e3dc9fca664n%40googlegroups.com. ------=_Part_679_96771326.1621027322279 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all,

I found several items on the web about customizi= ng 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-s= ections --indented-code-classes=3Djavascript --highlight-style=3Dmonochrome= -V mainfont=3D"Palatino" -V documentclass=3Dreport -V papersize=3DA5 -V ge= ometry:margin=3D1in -V monofont=3D"Courier" --pdf-engine=3Dxelatex

T= he seccolor.tex file is:

    \usepackage{titlesec}
\definecolor{DPurple}{rgb}{.75,.52,.153}
\titleformat*{\sectio= n}{\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 qu= it or <RETURN> to proceed,
or enter new name. (Default exte= nsion: sty)

Enter file name: 
! Eme= rgency 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 spla= sh 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 &= 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/c487e498-4249-4800-ab99-0e3dc9fca664n%40googlegroups.= com.
------=_Part_679_96771326.1621027322279-- ------=_Part_678_659519603.1621027322279--