Fonts & Character SetsLaTeX generating "Form Feed" character in place of "fi"

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
wildgunman
Posts: 2
Joined: Wed Nov 24, 2010 3:26 am

LaTeX generating "Form Feed" character in place of "fi"

Post by wildgunman »

Whenever I compile a document on my Mac, it exhibits the following very odd behavior that I am having a tough time tracking down.

The document renders, views, and copies fine on my Mac. Whenever I send the document to a Windows PC, it renders perfectly fine under Acrobat reader (or Foxit or whatever), but when I copy the text and try to paste it, every instance of "fi" is replaced by what I have figured out is ASCII character 14 or "Form Feed." For the life of me, I can't seem to track down what is causing this behavior.

Can anyone help?

I'm using Tex-Live 2008 and this is all that I head my document with:

Code: Select all

\documentclass[11pt]{article}
\usepackage[]{natbib}
\usepackage{setspace}
\usepackage{amsmath,amsthm}
I don't know if this is a character set issue or a TexShop issue, or some kind of bizarre file transfer issue, but any insight would be much appreciated.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

LaTeX generating "Form Feed" character in place of "fi"

Post by frabjous »

LaTeX of course uses typographical ligatures for fi, ff, fl, ffi and ffl (if the font supports them).

You could try adding:

Code: Select all

\usepackage[T1]{fontenc}
to your preamble for Type1 encoding, but if that doesn't work, the problem is really with the PDF software and not with LaTeX. Some are smart enough to deal with ligatures correctly; others aren't.
wildgunman
Posts: 2
Joined: Wed Nov 24, 2010 3:26 am

Re: LaTeX generating "Form Feed" character in place of "fi"

Post by wildgunman »

Worked! (Though Foxit Reader still copies it as a "?" character for some reason. Acrobat Reader copies it just fine.)

Thanks so much for your help!
Post Reply