Fonts & Character SetsFranklin Gothic (with Linux)?

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
sombrancelha
Posts: 22
Joined: Fri May 18, 2007 6:48 pm

Franklin Gothic (with Linux)?

Post by sombrancelha »

Hello all,

How can I use the fonts Franklin Gothic Book and Franklin Gothic Heavy? I use Linux.

Thanks
Last edited by sombrancelha on Wed Jun 10, 2009 11:54 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Franklin Gothic (with Linux)?

Post by localghost »

If you have Franklin Gothic installed as system font, you should use the XeTeX typesetting system in combination with the fontspec package. It allows direct access to Truetype (TTF) and Opentype (OTF) fonts.


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
sombrancelha
Posts: 22
Joined: Fri May 18, 2007 6:48 pm

Franklin Gothic (with Linux)?

Post by sombrancelha »

Thanks for the quick reply.

However, I'm having problems using charachters such as ã,é and ú.

I googled for support for unicode, and it says all you have to do is use utf-8, but for some reason it does not work. Building through the terminal (xelatex teste.tex) gives

Code: Select all

! Package inputenc Error: Unicode char \u8:á\enddocument not set up for use with LaTeX.
This is the file I'm trying to build:

Code: Select all

\documentclass[12pt]{revtex4}

\usepackage[brazil]{babel}
\usepackage[utf8]{inputenc}
\usepackage{ae}
\usepackage{color,graphicx}
\usepackage{indentfirst}
\usepackage{fontspec}

\font\textfont="Franklin Gothic Demi"

\begin{document}

\textfont aaá

\end{document}
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Franklin Gothic (with Linux)?

Post by localghost »

Replace inputenc by xunicode and abandon the ae package. Take also a look at xltxtra and study the manuals of all the involved packages thoroughly.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
sombrancelha
Posts: 22
Joined: Fri May 18, 2007 6:48 pm

Franklin Gothic (with Linux)?

Post by sombrancelha »

Thank you for your help, localghost. It's working.
Post Reply