Re: odd behavior when converting to pdf

Ulrike Fischer <[email protected]>
Newsgroups gmane.comp.tex.miktex
Message-ID <[email protected]>
Am Sat, 28 Jun 2014 22:08:37 -0700 (PDT) schrieb Don Raikes:

> According to the folks over on tex.stackexchange.com, the problem
> is that that the "fi" is being converted into a ligature in
> whatever encoding I am using.

> I am not specifying any special encoding, but am letting latex
> pick up whatever is the default.

> The stackexchange link is:
>http://tex.stackexchange.com/questions/187114/characters-getting-swallowed

Here a copy of my example on tex.sx:

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][1]

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

![enter image description here][2]

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][3]

  [1]: http://i.stack.imgur.com/DXC1B.png
  [2]: http://i.stack.imgur.com/HSwRm.png
  [3]: http://i.stack.imgur.com/GBC3P.png


-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
MiKTeX-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/miktex-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.