General ⇒ All Heading Levels in Sans Serif Font
All Heading Levels in Sans Serif Font
As a veteran of some other forums, I know it is annoying when noobs ask the same questions some other noob asked just two months ago, so please know that before posting here, I went read lots of documentation, went through tutorials, searched this site and G00gle, and still don't have the answers I need.
I'm basically just trying to typeset a book in Palatino but with all my headings levels in Helvetica. I've installed the titlesec package, which I understand is supposed to be able to do this, but the documentation isn't direct/explicit enough for me to understand.
Can anyone help?
Thanks in advance.
UPDATE:
Well, I figured out that if I use the "helvet" package that will make Helvetica the default sans serif font, so then if I define the \titleformat for each heading command as \sffamily, I get Helvetica in all my headings, so that works. I wish I could get Helvetica in small caps. I found that adding \sc to the shape throws it back into a serif font. Ah well, I guess I can't have everything. (Can I?)
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
All Heading Levels in Sans Serif Font
Code: Select all
\renewcommand{\sfdefault}{phv}
Code: Select all
\titleformat{name=\chapter}[display]%
{\thispagestyle{empty}\linespread{1.25}\huge\sffamily\bfseries\boldmath\itshape\filcenter}%
{\osffalse\upshape\thechapter}{3\baselineskip}{}
Regards,
B.A.
All Heading Levels in Sans Serif Font
Code: Select all
\usepackage{palatino}
Code: Select all
\allsectionsfont{\sffamily}
Regards
OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
All Heading Levels in Sans Serif Font
I'm using "palatino" for the text body, and "helvetica" for the headings.mas wrote:Since you say you want to use palatino, why not use "palatino"?If you use sectsty, changing the fonts of the headings will be as simple as this.Code: Select all
\usepackage{palatino}
Code: Select all
\allsectionsfont{\sffamily}
That's a good tip, thanks.
Re: All Heading Levels in Sans Serif Font
All Heading Levels in Sans Serif Font
That's too bad, because Helvetica is such a perfect sans serif font. Anyone know any s-sf fonts that have small caps?phi wrote:You cannot use small caps with Helvetica, because there is no small caps version of Helvetica.