This is a follow-up question to Currency symbol: French franc.
Consider the following code:
\documentclass{article}
\usepackage{fontspec}
\usepackage{siunitx}
\DeclareRobustCommand*{\myfranc}{%
\begingroup
\fontspec{FreeSerif.otf}%
^^^^20a3%
\endgroup
}
\DeclareSIUnit{\franc}{\myfranc}
\begin{document}
Horse fififif \SI{123.45}{\franc}.
\end{document}
How do I remove the fi ligature to get a seperate f and i instead?
Update
A setup that works for me is the following:
\documentclass{article}
\usepackage{siunitx}
\DeclareRobustCommand*{\myfranc}{%
\begingroup
\fontspec{FreeSerif.otf}%
^^^^20a3%
\endgroup
}
\DeclareSIUnit{\franc}{\myfranc}
\usepackage{fontspec}
\defaultfontfeatures{
Ligatures={
NoCommon,
NoRequired,
NoContextual,
NoHistoric,
NoDiscretionary,
TeX
}
}
\setmainfont[
BoldFont=lmroman10-bold.otf,
ItalicFont=lmroman10-italic.otf,
BoldItalicFont=lmroman10-bolditalic.otf,
SlantedFont=lmromanslant10-regular.otf,
BoldSlantedFont=lmromanslant10-bold.otf,
SmallCapsFont=lmromancaps10-regular.otf
]{lmroman10-regular.otf}
\begin{document}
\section{Horse}
off fit fly office baffle -- \SI{123.456}{\franc}
\end{document}


filigature, (ii) all f-ligatures, or (iii) all typographic ligatures entirely? To suppress all so-called "Common" ligatures (generally f-ligatures), you could issue the command\defaultfontfeatures{Ligatures=NoCommon}after loadingfontspec. – Mico Mar 19 at 12:54f\/i. – Andrew Swann Mar 19 at 12:56Discretionaryligatures? For Latin Modern fonts, it of course doesn't matter since this font family provides onlyCommonligatures... – Mico Mar 19 at 14:28--ligature (so I didn't want all ligatures removed, anyway). What is the way to get the--and---ligatures and no one else? – Svend Tveskæg Mar 19 at 14:35