Skip to main content

Questions tagged [ligatures]

{ligatures} occur where two or more graphemes are joined as a single glyph.

Filter by
Sorted by
Tagged with
20 votes
1 answer
4k views

Ligatures in figures and pdftex

In the following example, the 'ff' ligature in the figure labels (in 'differential') disappears when pdflatex is used, but the fault does not occur if latex-dvips-ps2pdf is used instead. Both lualatex ...
Ian Thompson's user avatar
20 votes
1 answer
2k views

babel shorthand "| doesn't work in macros

The package babel with the ngerman option (and most other languages as well, but not english) provides the shorthand "|, which prevents a ligature at the given position (see p. 81 of the babel ...
doncherry's user avatar
  • 55k
33 votes
4 answers
7k views

How can I completely suppress ligatures?

The microtype package allows to completely suppress ligatures. However, this feature requires pdfTeX 1.30 or newer. That's unfortunate if I'm using LaTeX or XeLaTeX while having to avoid ligatures. ...
Stefan Kottwitz's user avatar
  • 233k
14 votes
5 answers
6k views

How do I prevent LaTeX from creating en-dash and em-dash?

All over the internet, there's this question on how to make LaTeX do the en-dash and em-dash. I have the opposite problem. I have some text from which I am generating HTML and LaTeX outputs. The ...
Shahbaz's user avatar
  • 381
44 votes
1 answer
5k views

Make ligatures in Linux Libertine copyable (and searchable)

I'm currently working on an essay written in LaTeX form. I'm facing problems with ligatures - in my pdf output (rendered using pdftex) opened in Adobe Reader I get X's and V's when copy-pasting words ...
Doggie52's user avatar
  • 924
64 votes
1 answer
6k views

Small-caps, old-style numbers, and some ligatures produce odd symbols in PDF copy text?

This is a problem I've had consistently with XeLaTeX. Here's a small example: \documentclass{article} \usepackage{fontspec} \setmainfont[Ligatures=TeX,Numbers={OldStyle,Proportional}]{Minion Pro} \...
Chel's user avatar
  • 6,120
15 votes
4 answers
3k views

Which ligatures do the fonts used in my document offer?

This is a follow-up question to: How do I know which ligatures are used in my document? In order to know which ligatures I might consider disabling (I have in mind microtype's \DisableLigatures ...
Lover of Structure's user avatar
51 votes
3 answers
3k views

Can one (more or less) automatically suppress ligatures for certain words?

This question led to a new package: selnolig One of the major attractions -- for me at least -- of typesetting my papers in (La)TeX is its automated and fully transparent use of typographic ...
Mico's user avatar
  • 513k
58 votes
4 answers
27k views

Why can't "fi" be separated when being copied from a compiled pdf?

I notice that in a pdf file compiled from Latex, "fi" such as in "field" cannot be separated as "f" and "i" when copying text out of the pdf file. I wonder why and if this can be changed? Thanks and ...
Tim's user avatar
  • 5,773
28 votes
2 answers
1k views

Porting the luatex/ConTeXt module "translate" to lualatex

In this question, which I posted a few weeks ago to TeX Stack Exchange, I asked how one should go about disabling specific ligatures (such as ff, fi, fl, and ffl) automatically for a list of pre-...
Mico's user avatar
  • 513k
23 votes
3 answers
7k views

How to enable ligatures for emdash/endash in LuaTeX ?

I cannot switch on ligatures for emdash (---) and endash (--) in LuaLaTeX. Here is my test file: % !Mode:: "TeX:UTF-8" \documentclass{article} \usepackage{fontspec} \defaultfontfeatures{Ligatures=...
Igor Kotelnikov's user avatar
23 votes
5 answers
15k views

How do I disable ligatures? [duplicate]

I am writing my dissertation in LaTeX I am faced with this odd situation that if 'f' character has another character (f, i or l) next to it, it sticks the two together as can be noted below. This ...
Anna's user avatar
  • 341
20 votes
2 answers
2k views

Suppression of a ligature in XeLaTeX

I'm trying to reproduce an old book with XeLaTeX, and it has the ct ligature but not the st ligature. The Ligatures=Rare option seems to turn either both on or off. Is there a way to select which ...
Ella's user avatar
  • 359
9 votes
2 answers
5k views

Removing ligatures when using fontspec

This is a follow-up question to Currency symbol: French franc. Consider the following code: \documentclass{article} \usepackage{fontspec} \usepackage{siunitx} \DeclareRobustCommand*{\myfranc}{% \...
Svend Tveskæg's user avatar
5 votes
2 answers
1k views

Finding/Removing ligature from Tex

Is there anyway to find and remove ligatures from tex file? Sometimes when I copy/paste a text to Winedt, it shows perfect, but when I compile it to Pdf, some issues appear, e.g. finding becomes nding....
NESHOM's user avatar
  • 697
34 votes
1 answer
2k views

In lualatex, hyphenation doesn't seem to work for words that contain certain ligatures

It would seem that hyphenation does not work properly under LuaLaTeX if the hyphenation points occur at places where TeX inserts ligatures. Consider the following MWE, which (i) provides hyphenation ...
Mico's user avatar
  • 513k
21 votes
4 answers
2k views

How to suppress the operation of a luatex-defined macro on a string if the string is part of macro or a label

I'm working towards creating a lualatex-based package that lets users automatically suppress the use of ligatures (for now, ff, fi, fl, ffi, ffl, and ft) for selected words. (For background see this ...
Mico's user avatar
  • 513k
13 votes
2 answers
2k views

LuaTeX and em dashes

LuaLaTeX is not inserting em dashes unless there is space around the triple dash. It works fine when using a unicode em dash, or explicitly using the \textemdash macro. Here is a MWE: \documentclass{...
Andy N's user avatar
  • 303
12 votes
1 answer
2k views

How add my own ligature

I would like to add one char from otf font in xelatex as ligature. 'łł' = 'some char number in font' How make it? How tell for xelatex this char is a ligature of two letter 'ł' and 'ł'
bardzo's user avatar
  • 315
10 votes
2 answers
1k views

Searchable and copyable small caps, ligatures and umlaut in PDF created by XeLaTex

I have several issues with searching and/or copy-pasting text from my PDF created with XeLaTex. Consider the following MWE, the PDF search gives me no results for certain words. \documentclass[% ...
Lysanne's user avatar
  • 403
32 votes
4 answers
924 views

Any suggestions/requests for features for a new package that allows disabling ligatures for (pre)selected words?

I'm starting to put together a LaTeX package, which I hope to distribute broadly, that provides lualatex code to disable ligation of character pairs and triplets for selected words (globally within ...
Mico's user avatar
  • 513k
24 votes
2 answers
8k views

Cannot copy text from the simplest PDF file?

Consider the following code: \documentclass{article} \begin{document} We define multiplication by $$v_1x = 0,\quad v_2x = v_1,\quad v_1y = -v_1,\quad v_2y = v_1$$ \end{document} which looks ...
Phil-ZXX's user avatar
  • 1,757
24 votes
2 answers
2k views

Difference between {} and \/ for breaking ligatures

The Guide to LaTeX (4th ed.) states that \/ is used to break up ligatures (p. 30 and p. 469), which I thought was standardly done with {}. As \/ is normally known to insert an italic correction (see "...
Lover of Structure's user avatar
24 votes
2 answers
7k views

Use Fira Code font with ligatures in code listings

I would like to use the Fira Code OTF font for code listings and verbatim blocks, which has beautiful ligatures. The font loads correctly using the following line: \setmonofont{FiraCode-Regular} But ...
Federico B.'s user avatar
18 votes
1 answer
7k views

Ligatures disabling

I want to disable ligatures when I am typing letters, however, I need '--' to be joined to a long dash. Is it possible to make this? Now I am avoiding it like this \usepackage{microtype} \...
Pavasaris's user avatar
  • 2,971
18 votes
1 answer
1k views

Can't generate ligatures with LuaLaTeX under MacTeX2014 and MacTeX2015 when using certain fonts

(Remark: This question was posted originally when the big news, TeX-wise, was the impending transition from TeXLive2013 to TeXLive2014. Since the issue identified in this posting persists in ...
Mico's user avatar
  • 513k
9 votes
1 answer
3k views

A Big fancy "Q"

One time I remember seeing a Q ligature in \setmainfont{EB Garamond} (fontspec, EB Garamond, etc.) that involved a wonderful long swash. Now I don't know how to get it. Contrary to most other ...
Simon Kuang's user avatar
  • 1,861
8 votes
2 answers
5k views

\pdfglyphtounicode with XeTeX

One well known problem with using the font Linux Libertine (presumably other fonts too), is that its many ligatures are not recognized in the resulting pdf-file, so that it's not possible to search ...
Sverre's user avatar
  • 20.8k
8 votes
2 answers
4k views

Ligatures for fi, fl, ffl do not work for Times New Roman (XeLaTeX)

When I compile the code below with XeLaTeX (using TeXworks), ligatures for Times New Roman do not show. Instead, I just get singular characters. \documentclass{article} \usepackage{fontspec} \...
P. de Rijke's user avatar
8 votes
3 answers
6k views

How to make the rmligs script available globally on Windows?

Hopefully on-topic as about "(La)TeX related software and tools" I just learned about the rmligs script. Since it isn't available through MiKTeX (and neither through TeX Live), I downloaded the ...
doncherry's user avatar
  • 55k
7 votes
1 answer
147 views

LuaTeX does not respect brace groups used for disabling ligatures

I noticed the following strange behavior of LuaTeX. I am not sure if it is intentional or not. The minimal example is, fi f{}i f{i} {f}i f\/i \bye (This is the complete document, plain TeX, thus no ...
Yan Zhou's user avatar
  • 9,052
48 votes
3 answers
3k views

How to suppress a "Rare" ligature that pre-empts a "Common" ligature for the same character pair?

In several documents I'm creating with LuaLaTeX (using MacTeX2012 on a Mac that's running MacOS X 10.7.5), I primarily use the Adobe-issued font Garamond Premier Pro as the main text font. I use this ...
Mico's user avatar
  • 513k
32 votes
2 answers
2k views

Suppress certain ligatures generally

Whether or not certain ligatures should be used (if available in a font) is a least in theory depending on the language used. For example traditional German texts would not have an "ffl" ligature but ...
Frank Mittelbach's user avatar
19 votes
1 answer
1k views

Placing the un-ligatured text in the OCR layer

I was reading Why can't "fi" be separated when being copied from a compiled pdf? and had a thought: I know that v1.4 and up PDF documents have an OCR layer. Would it be possible to have ...
Canageek's user avatar
  • 18k
18 votes
1 answer
3k views

Can we make ligatures copy-and-pastable? [duplicate]

Is there a straightforward way to make ligatures more copy-and-pastable? I know that by using \usepackage[t1]{fontenc} that many glyphs like accented and umlauted characters become copy-and-pastable ...
alex.jordan's user avatar
  • 2,179
9 votes
2 answers
3k views

Historic font and missing ligatures

I am trying to compose a sort of old-style book. I would like to use a specific historical font for the entire text. This font includes ligature glyphs for: ff, fi, fl, ffl, and st (see Figure 1 for ...
Granduca Plinio's user avatar
9 votes
4 answers
1k views

Burmese and LuaLaTeX

I am working with a project which requires LuaLaTeX (TeX Live) and the Noto Serif Myanmar font. I need a few words of Burmese only. The MWE works well with XeLaTeX. But LuaLaTeX has a problem with the ...
CampanIgnis's user avatar
  • 4,624
7 votes
1 answer
676 views

How do I know which ligatures are used in my document?

In order to know which ligatures I might consider disabling, I would like to know which ones are actually used in my document. (Which ligatures are provided by a font is a more general question; I ...
Lover of Structure's user avatar
2 votes
2 answers
163 views

losing ligatures when switching font series or color in the middle of a word

For pedagogical purposes, I would like to highlight some characters in a word, through bold or red color or whatever will work. Because I use handwriting fonts (German Schulschriften wedn and French ...
benjamin's user avatar
  • 583
1 vote
0 answers
282 views

LuaTeX: UTF-8 character extraction, is one way more accurate and/or preferable than another

While experimenting ways to extract UTF-8 character strings from TeX boxes, I found a post from user micahl-h21 here: UTF-8 text extraction. After looking at the way glyph data is stored in the ...
codepoet's user avatar
  • 1,316
31 votes
2 answers
2k views

Ligature suppression with proper hyphenation and comprehensive word list?

[Update: It's been pointed out that my question(s) here weren't clear (or were too hidden). So I inserted red stars at the points where the questions appear.] In The TeX Book, D.E.K. gives "shelfful" ...
Todd Lehman's user avatar
29 votes
1 answer
1k views

How can I highlight ligatures?

I'd like to highlight all the ligatures used in a document similar to the image below as an attempt to show off some of TeX's tender loving care for the font being used. Is there a way to do this ...
Sean Allred's user avatar
  • 27.5k
25 votes
1 answer
596 views

Differences regarding kerning and ligaturing when using the MacTex2013 and MacTeX2014 versions of LuaLaTeX with .ttc fonts

This posting is a follow-up to the postings Can't generate ligatures with LuaLaTeX under MacTeX2014 and MacTeX2015 when using certain fonts and LuaLaTeX, fontspec, .ttc fonts and kerning (Optima on ...
Mico's user avatar
  • 513k
17 votes
1 answer
493 views

Properly breaking up ligatures using selnolig / LuaLaTeX

Currently I use the selnolig package together with LuaLaTeX to automatically break up ligatures. This works quite well regarding the fact that ligatures get broken up at the right places. Note however,...
FredFisch's user avatar
  • 883
16 votes
2 answers
1k views

Easily assign undefined ligatures with pdfLaTeX?

Ulrike Fischer showed how Linux Libertine's special ligatures are accessible. Even though she also pointed me at a chapter of the LaTeX Graphics Companion, I'm not really sure how to get these ...
doncherry's user avatar
  • 55k
16 votes
1 answer
1k views

Can PDF search find words with ligatures in XeLaTeX-documents?

Is there some way allow PDF search to find words with ligatures? I use XeLaTeX. \documentclass{book} \begin{document} Prefix. \end{document} In the resulting pdf file, searching for the word "...
srking's user avatar
  • 1,125
16 votes
5 answers
12k views

LaTeX font for 18th century English

I am busy typesetting a book for guntenberg.org and I would like to keep as far as possible close to the original style. The book was written in 1787. Here is an extract. Is there a similar font for ...
yannisl's user avatar
  • 118k
15 votes
1 answer
633 views

Ligatures and hyphenations: the effect of empty brace groups {}

For the following example, \hsize =2in shelf{}ful shelf{}ful shelf{}ful rot{}ten rot{}ten shelf{}ful shelf{}ful shelf{}ful shelf{}ful shelf{}ful rot{}ten rot{}ten shelf{}ful shelf{}ful \bye The ...
Z.H.'s user avatar
  • 3,356
13 votes
2 answers
465 views

How can I add extra kerning around -- (en-dash) in XeTeX

Is there a way to define some extra kerning around the en-dash – (Unicode) or -- (TeX ligature), when it is surrounded by digits in XeTeX? For – I can use \XeTeXinterchartoks, but this doesn’t work ...
Tobi's user avatar
  • 56.7k
12 votes
3 answers
3k views

Ligatures in Hoefler with XeTeX?

Using XeLaTeX on OS X 10.6 (texlive installed with MacPorts) I'm not getting any ligatures with Hoefler. Example code: \documentclass[10pt]{article} \usepackage{fontspec,xltxtra} \setromanfont[...
Mark Dayel's user avatar