2

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 ?

  • 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
4

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}

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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