As of TexLive2015 (as opposed to TexLive2013) fontspec predefines Ligatures=TeX
. This results in double quotes being replaced by curly quotes. How can I disable this behavior?
\documentclass{article}
\usepackage{fontspec}
\setmainfont{Linux Libertine O}
\begin{document}
force "x y Fx Fy"
\end{document}
In comment to the question handling of `--` in minted egreg mentioned using \defaultfontfeatures{}
before defining the font, but in the case above it has no effect.
There is the selnolig package (Any suggestions/requests for features for a new package that allows disabling ligatures for (pre)selected words?), but I haven't found a command to disable TeX-"ligatures".
The work-around I've found was to edit the file '/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec.cfg', deleting the line {Ligatures=TeX}
. I'd prefer a solution that avoids touching the installation.
Is there any \defaultfontfeatures{Ligatures=NoTeX}
?
.cfg
file, you ought not change that one. You ought not modify stuff in the main TEXMF tree because, other considerations aside, it will simply be liable to erasure when you update the installation. – cfr Nov 27 '15 at 0:08--
(en-dash) and---
(em-dash) "ligatures". (It would seem overkill, though, to use the package for this purpose.) However, AFAICT the package can not be used to keep TeX from converting "straight" (single and double) quote characters to equivalent "smart" quote characters. – Mico Dec 9 '15 at 23:38