Hi,
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?)
General ⇒ All Heading Levels in Sans Serif Font
All Heading Levels in Sans Serif Font
Last edited by Noraft on Wed Dec 10, 2008 8:27 am, edited 1 time in total.
All Heading Levels in Sans Serif Font
That's strange that "helvet" doesn't give the expected result, since it contains the following line:
You may try something like this (most parameters come from my own style file, it is just too give a taste of how it works).
I hope it helps. Feel free to ask any question if it isn't clear enough when comparing with titlesec documentation.
Regards,
B.A.
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
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.
Regards
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
You cannot use small caps with Helvetica, because there is no small caps version of Helvetica.
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.