Skip to content

Commit

Permalink
Merge pull request #139 from dohyunkim/master
Browse files Browse the repository at this point in the history
fix matrix conversion to pdf
  • Loading branch information
dohyunkim authored Jun 13, 2024
2 parents 267b7a2 + ae8963d commit 1860030
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
History of the luamplib package

2024/06/14 2.32.2
* fix matrix conversion between MP and PDF

2024/06/13 2.32.1
* for the sake of convenience, width and height values of tiling patterns
will be written down into the log file.
Expand Down
16 changes: 8 additions & 8 deletions luamplib.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ See source file '\inFileName' for licencing and contact information.
%<*driver>
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{luamplib.drv}%
[2024/06/13 v2.32.1 Interface for using the mplib library]%
[2024/06/14 v2.32.2 Interface for using the mplib library]%
\documentclass{ltxdoc}
\usepackage{metalogo,multicol,mdwlist,fancyvrb,xspace}
\usepackage[x11names]{xcolor}
Expand Down Expand Up @@ -153,7 +153,7 @@ See source file '\inFileName' for licencing and contact information.
% \author{Hans Hagen, Taco Hoekwater, Elie Roux, Philipp Gesang and Kim Dohyun\\
% Maintainer: LuaLaTeX Maintainers ---
% Support: \email{[email protected]}}
% \date{2024/06/13 v2.32.1}
% \date{2024/06/14 v2.32.2}
%
% \maketitle
%
Expand Down Expand Up @@ -576,7 +576,7 @@ See source file '\inFileName' for licencing and contact information.
% |ystep| &\textit{number} & vertical spacing between pattern cells\\
% |xshift| &\textit{number} & horizontal shifting of pattern cells\\
% |yshift| &\textit{number} & vertical shifting of pattern cells\\
% |matrix| &\textit{table} or \textit{string} & |xx|, |xy|, |yx|, |yy| values\kern1pt* or MP transformation code\\
% |matrix| &\textit{table} or \textit{string} & |xx|, |yx|, |xy|, |yy| values\kern1pt* or MP transformation code\\
% |bbox| &\textit{table} or \textit{string} & |llx|, |lly|, |urx|, |ury| values\kern1pt*\\
% |resources|&\textit{string} & PDF resources if needed\\
% |colored| &\textit{boolean}& |false| for uncolored pattern. default: |true|\\\hline
Expand Down Expand Up @@ -662,8 +662,8 @@ See source file '\inFileName' for licencing and contact information.

luatexbase.provides_module {
name = "luamplib",
version = "2.32.1",
date = "2024/06/13",
version = "2.32.2",
date = "2024/06/14",
description = "Lua package to typeset Metapost with LuaTeX's MPLib.",
}

Expand Down Expand Up @@ -2317,11 +2317,11 @@ primarydef t withpattern p =
enddef;
vardef mplibtransformmatrix (text e) =
save t; transform t;
t = inverse (identity e);
t = identity e;
runscript("luamplib.transformmatrix = {"
& decimal xxpart t & ","
& decimal xypart t & ","
& decimal yxpart t & ","
& decimal xypart t & ","
& decimal yypart t & ","
& decimal xpart t & ","
& decimal ypart t & ","
Expand Down Expand Up @@ -3450,7 +3450,7 @@ end
\else
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{luamplib}
[2024/06/13 v2.32.1 mplib package for LuaTeX]
[2024/06/14 v2.32.2 mplib package for LuaTeX]
\ifx\newluafunction\@undefined
\input ltluatex
\fi
Expand Down
2 changes: 1 addition & 1 deletion test-luamplib-latex.tex
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@
\begin{mppattern}{pattuncolored}
[
colored = false,
matrix = "rotated 30",
matrix = "slanted .3 rotated 30",
]
\tiny\TeX
\end{mppattern}\relax
Expand Down
2 changes: 1 addition & 1 deletion test-luamplib-plain.tex
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
\mppattern{pattuncolored}
[
colored = false,
matrix = "rotated 30",
matrix = "slanted .3 rotated 30",
]
\fiverm\TeX
\endmppattern
Expand Down

0 comments on commit 1860030

Please sign in to comment.