MakeIndex, Nomenclature, Glossaries and AcronymsHow to set heading in sans serif?

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Post Reply
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

How to set heading in sans serif?

Post by Montag »

Hello,
I have a question: How can I set the heading in sans serif?
I thought the following code would work, but it does not.
quote '+'
headings_flag 1
heading_prefix "{\\bf\\huge\\sf "
heading_suffix "}\\nopagebreak%\n \\indexspace\\nopagebreak"
symhead_positive "Zahlen"
delim_0 "\\dotfill"
delim_1 "\\dotfill"
delim_2 "\\dotfill"
delim_r "~--~"
suffix_2p "`\\,f."
suffix_3p "`\\,ff."
item_0 "\n \\item\\normalsize "
item_01 "\n \\subitem\\small "
item_x1 "\n \\subitem\\small "
That is the file stil.ist I call it via

Code: Select all

-g -s stil.ist "%bm"
in my TXC. Is there any issue I am not seeing why the command

Code: Select all

heading_prefix "{\\bf\\huge\\sf "
does not yield a heading set in sans? Because all the headings (A, B, C, ..., Z) are set in the serif style. :(
Last edited by Montag on Wed Aug 18, 2010 7:51 pm, edited 1 time in total.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

How to set heading in sans serif?

Post by gmedina »

Hi,

use \\bfseries and \\sffamily instead of the obsolete \\bf and \\sf commands (the obsolete commands internally issue \normalfont making the combination useless).

Regarding the specific problem, perhaps you are using a font that doesn't allow the combination boldfaced+sans-serif?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

How to set heading in sans serif?

Post by Montag »

gmedina wrote:Hi,

use \\bfseries and \\sffamily instead of the obsolete \\bf and \\sf commands (the obsolete commands internally issue \normalfont making the combination useless).
Hey, that helped, thank you. :)
Regarding the specific problem, perhaps you are using a font that doesn't allow the combination boldfaced+sans-serif?
No, that's not the case, but thanks anyway. :)
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply