[latex3-commits] [git/LaTeX3-latex3-latex3] master: Fix setting of linewidth in coffins (0712383ce)

Joseph Wright joseph.wright at morningstar2.co.uk
Fri Dec 4 11:44:30 CET 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/0712383ce8116d197874bb210ad1d9757df8a0ac

>---------------------------------------------------------------

commit 0712383ce8116d197874bb210ad1d9757df8a0ac
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Fri Dec 4 10:44:30 2020 +0000

    Fix setting of linewidth in coffins
    
    Seehttps://tex.stackexchange.com/q/573514


>---------------------------------------------------------------

0712383ce8116d197874bb210ad1d9757df8a0ac
 l3kernel/CHANGELOG.md  |  3 +++
 l3kernel/l3coffins.dtx | 11 +++++++----
 2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/l3kernel/CHANGELOG.md b/l3kernel/CHANGELOG.md
index 5e967d360..ab35c49c7 100644
--- a/l3kernel/CHANGELOG.md
+++ b/l3kernel/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Fixed
+- Setting of line width in vertical coffins in LaTeX
+
 ## [2020-12-03]
 
 ### Added
diff --git a/l3kernel/l3coffins.dtx b/l3kernel/l3coffins.dtx
index f4d6810d9..f731a02b4 100644
--- a/l3kernel/l3coffins.dtx
+++ b/l3kernel/l3coffins.dtx
@@ -715,10 +715,13 @@
   }
 \cs_new_protected:Npx \@@_set_vertical_aux:
   {
-    \cs_if_exist:NT \linewidth
-      { \dim_set_eq:NN \linewidth \tex_hsize:D }
-    \cs_if_exist:NT \columnwidth
-      { \dim_set_eq:NN \columnwidth \tex_hsize:D }
+    \bool_lazy_and:nnT
+      { \cs_if_exist_p:N \fmtname }
+      { \str_if_eq_p:Vn \fmtname { LaTeX2e } }
+      {
+        \dim_set_eq:NN \exp_not:N \linewidth \tex_hsize:D
+        \dim_set_eq:NN \exp_not:N \columnwidth \tex_hsize:D
+      }
   }
 %    \end{macrocode}
 % \end{macro}





More information about the latex3-commits mailing list.