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 am new to latex and am trying to get my first document working. In my document I have an itemized list and in some of the items I have the word file. When I compile it to a pdf document using pdflatex version 2.9.2 from MiKTeX 2.9.2 updated to latest packages last night,, the "fi" from the word file or profile does not show up when I view the pdf

A sample document with this problem:

\documentclass{article}
\begin{document}
\title{Just a test document}
\author{DRTechie}
\maketitle
\begin{itemize}
\item Use a file containing 100 lines of text.
\item Read the file and compute the md5 checksum.
\item This is my profile.
\end{itemize}
\end{document}

Any suggestions would be appreciated.

share|improve this question
    
"does not show up" on paper or using a PDF viewer? –  Thruston Jun 28 at 20:45
5  
Welcome to TeX.SX! You probably have the same problem as in LaTeX does not print words correctly: inputenc/fontenc problem –  egreg Jun 28 at 20:46
2  
The code compiles as normally here. I can't reproduce your issue. :-( –  1010011010 Jun 28 at 20:46
2  
To expand a little on @egreg's comment, fi is converted to a ligature in many fonts. Sounds like something's wrong with the font that would contain that ligature. –  Tom Zych Jun 28 at 22:45
    
I tried the workarounds specified in the link given by @egreg, but they didn't help. –  user56278 Jun 29 at 0:59

1 Answer 1

up vote 1 down vote accepted

Your example probably doesn't say the truth about your document. I guess (as egreg in his comment) that in your document you don't have the two chars f + i but the fi glyph and this would disappear as you are using the default font encoding OT1, and this encoding doesn't have glyphs on every position.

Copy this here in an utf8-encoded file and compile:

\documentclass{article}
%\usepackage[T1]{fontenc}     %step 1
%\usepackage[utf8]{inputenc}  %step 2
%\usepackage{newunicodechar}  %step 4
%\newunicodechar{fi}{fi}       %step 4

\begin{document}
\symbol{65}=A

\symbol{66}=B

\symbol{228}=ä

% fi=fi                         %step 3 
\end{document}

the 228-Symbol and the ä will not be there:

enter image description here

step 1: Now uncomment the fontenc-line: the symbol will apppear, but the ä won't be printed correctly.

enter image description here

step 2: Uncomment the inputenc line and now the ä will be okay.

step 3: Uncomment the fi line: You will get an error, as latex doesn't know this input glyph.

step 4: Uncomment the last two line in the preamble: now the fi works too.

enter image description here

share|improve this answer
    
Great this worked fine. I actually just had to uncomment the first line to get my file to compile properly, but I left the other lines in place to have for documentation purposes. –  user56278 Jun 29 at 20:14

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.