[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
main 0813d511: Update style/microtype.el to package v3.2
From: |
Arash Esbati |
Subject: |
main 0813d511: Update style/microtype.el to package v3.2 |
Date: |
Mon, 16 Dec 2024 16:28:21 -0500 (EST) |
branch: main
commit 0813d511398f6d8866e4280b6486a9e854f7933b
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>
Update style/microtype.el to package v3.2
* style/microtype.el (LaTeX-microtype-key-val-options): Add
"verbatim" value to "patch" and "nopatch" key.
("microtype"): Support "features" key=val in \SetTracking.
Support \DeclareMicrotypeFilePrefix macro.
---
style/microtype.el | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
diff --git a/style/microtype.el b/style/microtype.el
index 4141ceab..b61c1a75 100644
--- a/style/microtype.el
+++ b/style/microtype.el
@@ -24,7 +24,7 @@
;;; Commentary:
-;; This file adds support for `microtype.sty' v3.0e from 2022-06-20.
+;; This file adds support for `microtype.sty' v3.2 from 2024-12-12.
;;; Code:
@@ -66,8 +66,8 @@
"smallcaps" "footnotesize" "scriptsize" "normalfont"))
;; 3.2 Character protrusion
("factor")
- ("patch" ("all" "none" "item" "toc" "footnote" "eqnum"))
- ("nopatch" ("all" "none" "item" "toc" "footnote" "eqnum"))
+ ("patch" ("all" "none" "item" "toc" "footnote" "verbatim" "eqnum"))
+ ("nopatch" ("all" "none" "item" "toc" "footnote" "verbatim" "eqnum"))
("unit")
;; 3.3 Font expansion
("auto" ("true" "false"))
@@ -138,9 +138,15 @@
;; 5.3 Tracking
'("SetTracking"
- [TeX-arg-key-val (("name") ("unit") ("context") ("spacing")
- ("outer spacing") ("outer kerning") ("no ligatures"))]
-
+ [TeX-arg-key-val
+ (lambda ()
+ (append
+ (when (member "fontspec" (TeX-style-list))
+ `(("features" ,(cadr (assoc "Ligatures"
+ LaTeX-fontspec-font-features)))))
+ '(("name") ("unit") ("context") ("spacing")
+ ("outer spacing") ("outer kerning")
+ ("no ligatures" ("all" "none")))))]
2)
;; 5.4 Additional kerning
@@ -165,6 +171,7 @@
'("DeclareMicrotypeVariants*" t)
'("DeclareMicrotypeAlias" "Font name" "Alias name")
'("LoadMicrotypeFile" "Font name")
+ '("DeclareMicrotypeFilePrefix" "Prefix")
;; 6 Context-sensitive setup
'("microtypecontext"
@@ -216,6 +223,7 @@
("DeclareMicrotypeVariants" "*{")
("DeclareMicrotypeAlias" "{{")
("LoadMicrotypeFile" "{")
+ ("DeclareMicrotypeFilePrefix" "{")
("microtypecontext" "{")
("DeclareMicrotypeBabelHook" "{{")
("DisableLigatures" "[{"))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- main 0813d511: Update style/microtype.el to package v3.2,
Arash Esbati <=