Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 4

09 Avr '20, 17:14

fred02840's gravatar image

fred02840
4.2k31165189

LuaLaTeX et ligatures

Je viens de lire le [tutoriel de Daniel Flipo][1], *De pdfLaTeX à LuaLaTeX*, tout frais sorti hier. J'ai enfin pu utiliser la fonte Garamond (branque que je suis…). Cependant, je ne parviens pas à ce que les options permettant d'avoir des ligatures soient suivies d'effets probants, sauf sur quelques suites de lettres (ff, par exemple), mais pas ct ou st. Je travaille avec TeXStudio. Mais j'ai de très beaux chiffres elzéviriens, les petites capitales. % !TeX program = lualatex %!TEX encoding = UTF-8 Unicode \documentclass[a4paper,12pt,french]{scrartcl} \usepackage{fontspec} % appel des fontes \usepackage{unicode-math} % appel des fontes OpenType mathématiques \linespread{1.1}% spread lines out a little \frenchspacing % remove extra space after punctuation \usepackage{ebgaramond} \usepackage{unicode-math} \setmathfont{Garamond-Math} \addfontfeatures{RawFeature=+dlig,Style=Swash} % options ligatures : options à utiliser sont RawFeature=+dlig pour les ligatures ct et st et Style=Swash pour le Q-long \begin{document} Essais : effet, est, florin \textsc{Nom propre} \oldstylenums{0123456789} \end{document} Le log me renvoie différentes choses, dont : Package fontspec Warning: OpenType feature 'Style=Swash' (swsh) not available LaTeX Font Warning: Some font shapes were not available, defaults substituted. Mais aucune ligature, même en enlevant l'option `Style=Swash`… `Style=Swash`… Et je me demande si j'ai bien la fonte edgaramond ; pourtant, elle est bien présente : `fc-list | sort` renvoie /usr/share/fonts/opentype/ebgaramond/EBGaramond08-Italic.otf: EB Garamond,EB Garamond 08:style=Italique,08 Italic,Cursiva,kurzíva,kursiv,Πλάγια,Italic,Kursivoitu,Dőlt,Corsivo,Cursief,Kursywa,Itálico,Курсив,İtalik,Poševno,Etzana /usr/share/fonts/opentype/ebgaramond/EBGaramond08-Regular.otf: EB Garamond,EB Garamond 08:style=08 Regular,Normal,obyčejné,Standard,Κανονικά,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta /usr/share/fonts/opentype/ebgaramond/EBGaramond12-AllSC.otf: EB Garamond 12 All SC:style=AllSC /usr/share/fonts/opentype/ebgaramond/EBGaramond12-Italic.otf: EB Garamond,EB Garamond 12:style=12 Italic,Italic /usr/share/fonts/opentype/ebgaramond/EBGaramond12-Regular.otf: EB Garamond,EB Garamond 12:style=12 Regular,Regular /usr/share/fonts/opentype/ebgaramond/EBGaramond-InitialsF1.otf: EB Garamond Initials Fill1:style=Regular /usr/share/fonts/opentype/ebgaramond/EBGaramond-InitialsF2.otf: EB Garamond Initials Fill2:style=Regular /usr/share/fonts/opentype/ebgaramond/EBGaramond-Initials.otf: EB Garamond Initials:style=Regular /usr/share/fonts/opentype/ebgaramond/EBGaramondSC08-Regular.otf: EB Garamond SC,EB Garamond SC 08:style=08 Regular,Normal,obyčejné,Standard,Κανονικά,Regular,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta /usr/share/fonts/opentype/ebgaramond/EBGaramondSC12-Regular.otf: EB Garamond SC,EB Garamond SC 12:style=12 Regular,Regular [1]: http://daniel.flipo.free.fr/doc/luatex/.
cliquez ici pour masquer/afficher la révision 3

09 Avr '20, 17:11

fred02840's gravatar image

fred02840
4.2k31165189

LuaLaTeX et ligatures

Je viens de lire le [tutoriel de Daniel Flipo][1], *De pdfLaTeX à LuaLaTeX*, tout frais sorti hier. J'ai enfin pu utiliser la fonte Garamond (branque que je suis…). Cependant, je ne parviens pas à ce que les options permettant d'avoir des ligatures soient suivies d'effets probants, sauf sur quelques suites de lettres (ff, par exemple), mais pas ct ou st. Je travaille avec TeXStudio. Mais j'ai de très beaux chiffres elzéviriens, les petites capitales. % !TeX program = lualatex %!TEX encoding = UTF-8 Unicode \documentclass[a4paper,12pt,french]{scrartcl} \usepackage{fontspec} % appel des fontes \usepackage{unicode-math} % appel des fontes OpenType mathématiques \linespread{1.1}% spread lines out a little \frenchspacing % remove extra space after punctuation \usepackage{ebgaramond} \usepackage{unicode-math} \setmathfont{Garamond-Math} \addfontfeatures{RawFeature=+dlig,Style=Swash} % options ligatures : options à utiliser sont RawFeature=+dlig pour les ligatures ct et st et Style=Swash pour le Q-long \begin{document} Essais : effet, est, florin \textsc{Nom propre} \oldstylenums{0123456789} \end{document} Le log me renvoie différentes choses, dont : Package fontspec Warning: OpenType feature 'Style=Swash' (swsh) not available LaTeX Font Warning: Some font shapes were not available, defaults substituted. Mais aucune ligature, même en enlevant l'option `Style=Swash`… [1]: http://daniel.flipo.free.fr/doc/luatex/.
cliquez ici pour masquer/afficher la révision 2

09 Avr '20, 17:10

fred02840's gravatar image

fred02840
4.2k31165189

cliquez ici pour masquer/afficher la révision 1

09 Avr '20, 17:01

fred02840's gravatar image

fred02840
4.2k31165189

C'est votre première visite ici ? Consultez la FAQ !

×