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 Cabin fonts (which are available on CTAN). It seems possible to use these fonts with LuaLaTeX, since there are type1 fonts available, and on CTAN it says:

LuaLaTeX and xeLaTeX users who might prefer type1 fonts or who wish to avoid fontspec may use the type1 option.

However, I'm using fontspec, so now I'm confused.

How can I get these fonts to work with LuaLaTex + fontespec ?

share|improve this question
3  
cabin.sty has code to make the switch automatically, so just do \usepackage{fontspec}\usepackage[sfdefault]{cabin} (or remove [sfdefault] if you don't want cabin to be your main document font). –  jon Oct 1 '13 at 17:35
    
@jon and how do I set it for just a small footer? (My main font is actually georgia set by \setmainfont{georgia} –  Mario S. E. Oct 1 '13 at 19:47

1 Answer 1

up vote 4 down vote accepted

For a special footer font, I suppose you'd want to use fontspec directly. I'm not sure what your actual document looks like, but you could use fancyhdr in this case:

\documentclass[12pt]{article}
\usepackage{fontspec}
\setmainfont{georgia}
\newfontfamily\footerfont{Cabin}% default: Cabin-Regular

\usepackage{fancyhdr}
\fancyfoot{}
\fancyfoot[CO,CE]{\footerfont just a small footer}
\fancyfoot[RO,RE]{this is not in Cabin}
\pagestyle{fancy}

\begin{document}

This is not the footer and it's not in Cabin.

\end{document}
share|improve this answer

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.