Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to use the light weight of the Open Sans package as my default font for a paper. It works perfectly fine using the following:

\begin{document}
    {\fontseries{l}\selectfont
        \input{...}
}
\end{document}

(of course there's more, but you get what I mean)

Although this works fine, I'm not really satisfied as this looks quite messy. I tried using renewcommand but could not figure out how to make \fontseries{l} \selectfont my default sans font.

Also, I'd like to do something similar for bold writing: I'd like to use \fontseries{sb} there. As I said before, this code (and thus the font weights) work like a charm when I use the mentioned commands within my document.

share|improve this question
    
semantically same question as in "How can one change an entire document to use bold font?" The first one should be generalized, rephrased and both should be merged. –  Stefan K. Apr 14 '13 at 18:06
add comment

1 Answer 1

up vote 5 down vote accepted

The default font can be set by changing \encodingdefault, \familydefault, \seriesdefault, and \shapedefault. In your example, I would go for

\renewcommand{\seriesdefault}{l}
\renewcommand{\familydefault}{\sfdefault}

to set the light sans font as the main font.

share|improve this answer
    
works great! Just in case anybody is looking for this: \renewcommand{\bfseries}{\fontseries{sb}\selectfont} makes the bold font semi-bold for me. –  Daniel Apr 6 '13 at 11:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.