Your BasicTex installation should include tlmgr, which you can run from the terminal to install a package (see <https://www.tug.org/texlive/doc/tlmgr.html#install-option...-pkg>): 
tlmgr install titlesec 
should do it. However, if you can spare 2gigabytes, it's worth downloading the whole MacTex distribution (<http://www.tug.org/mactex/>)

On Saturday, 15 May 2021 at 19:06:32 UTC+3 russur...@verizon.net wrote:
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 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’s about the titlesec package not being available. (What’s your installed TeX-Distribution ?)

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

Otherwise you’d get an error like

Undefined control sequence \definecolor

or similar...

Best,

Denis

 

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.com>
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 (<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 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 <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 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-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-6f0fcb2b6369n%40googlegroups.com.

--
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-/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.