Guest User

Untitled

a guest
Jul 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. usepackage{fontspec}
  4.  
  5. setmainfont[Mapping=tex-text,Ligatures=TeX,Scale=1.05]{Times New Roman}
  6.  
  7. begin{document}
  8.  
  9. Ligatures: fi fl ffl
  10.  
  11. end{document}
  12.  
  13. ; TECkit mapping for TeX input conventions <-> Unicode characters
  14.  
  15. LHSName "TeX-text"
  16. RHSName "UNICODE"
  17.  
  18. pass(Unicode)
  19.  
  20. ; ligatures from Knuth's original CMR fonts
  21. U+002D U+002D <> U+2013 ; -- -> en dash
  22. U+002D U+002D U+002D <> U+2014 ; --- -> em dash
  23.  
  24. U+0027 <> U+2019 ; ' -> right single quote
  25. U+0027 U+0027 <> U+201D ; '' -> right double quote
  26. U+0022 > U+201D ; " -> right double quote
  27.  
  28. U+0060 <> U+2018 ; ` -> left single quote
  29. U+0060 U+0060 <> U+201C ; `` -> left double quote
  30.  
  31. U+0021 U+0060 <> U+00A1 ; !` -> inverted exclam
  32. U+003F U+0060 <> U+00BF ; ?` -> inverted question
  33.  
  34. ; additions supported in T1 encoding
  35. U+002C U+002C <> U+201E ; ,, -> DOUBLE LOW-9 QUOTATION MARK
  36. U+003C U+003C <> U+00AB ; << -> LEFT POINTING GUILLEMET
  37. U+003E U+003E <> U+00BB ; >> -> RIGHT POINTING GUILLEMET
  38.  
  39. ; additions for f ligatures
  40. ;U+0066 U+0066 U+0069 <> U+FB03 ; LATIN SMALL LIGATURE FFI
  41. ;U+0066 U+0066 U+006C <> U+FB04 ; LATIN SMALL LIGATURE FFL
  42. ;U+0066 U+0066 <> U+FB00 ; LATIN SMALL LIGATURE FF
  43. U+0066 U+0069 <> U+FB01 ; LATIN SMALL LIGATURE FI
  44. U+0066 U+006C <> U+FB02 ; LATIN SMALL LIGATURE FL
  45.  
  46. teckit_compile rijke.map
  47.  
  48. documentclass{article}
  49.  
  50. usepackage{fontspec}
  51.  
  52. setmainfont[Mapping=rijke,Scale=1.05]{Times New Roman}
  53.  
  54. begin{document}
  55.  
  56. Ligatures: ff ffi ffl fi fl
  57.  
  58. end{document}
  59.  
  60. documentclass{article}
  61. usepackage{fontspec}
  62. setmainfont{Times New Roman}
  63. begin{document}
  64. verb|Default: |
  65. fi fj fl ff ffi ffj ffl Th
  66.  
  67. verb|Ligatures=Discretionary: |
  68. {fontspec{Times New Roman}[Ligatures=Discretionary] % or `Ligatures=Rare`
  69. fi fj fl ff ffi ffj ffl Th}
  70. end{document}
Add Comment
Please, Sign In to add comment