[latex3-commits] [git/LaTeX3-latex3-l3build] master: New "ps2pdfopts" variable (b27c8c2)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Mar 11 22:51:15 CET 2020


Repository : https://github.com/latex3/l3build
On branch  : master
Link       : https://github.com/latex3/l3build/commit/b27c8c2d4f8e8f858289c92995b2bafb9b16d226

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

commit b27c8c2d4f8e8f858289c92995b2bafb9b16d226
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Wed Mar 11 21:51:15 2020 +0000

    New "ps2pdfopts" variable


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

b27c8c2d4f8e8f858289c92995b2bafb9b16d226
 CHANGELOG.md            | 3 +++
 l3build-typesetting.lua | 2 +-
 l3build-variables.lua   | 1 +
 l3build.dtx             | 1 +
 4 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 932fda0..647cf38 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,9 @@ this project uses date-based 'snapshot' version identifiers.
 
 ## [Unreleased]
 
+### Added
+- Option `ps2pdfopt`
+
 ### Fixed
 - Enable `cleandir()` recursively
 
diff --git a/l3build-typesetting.lua b/l3build-typesetting.lua
index b76edd9..d0bec11 100644
--- a/l3build-typesetting.lua
+++ b/l3build-typesetting.lua
@@ -50,7 +50,7 @@ function dvitopdf(name, dir, engine, hide)
      "dvips " .. name .. dviext
        .. (hide and (" > " .. os_null) or "")
        .. os_concat ..
-     "ps2pdf " .. name .. psext
+     "ps2pdf " .. ps2pdfopt .. name .. psext
         .. (hide and (" > " .. os_null) or "")
     )
   end
diff --git a/l3build-variables.lua b/l3build-variables.lua
index e69eb5a..dcb2521 100644
--- a/l3build-variables.lua
+++ b/l3build-variables.lua
@@ -184,6 +184,7 @@ if flattentds == nil then
 end
 maxprintline = maxprintline or 79
 packtdszip   = packtdszip   or false
+ps2pdfopt    = ps2pdfopt    or ""
 typesetcmds  = typesetcmds  or ""
 typesetruns  = typesetruns  or 3
 recordstatus = recordstatus or false
diff --git a/l3build.dtx b/l3build.dtx
index 56bcbb9..9bd4895 100644
--- a/l3build.dtx
+++ b/l3build.dtx
@@ -152,6 +152,7 @@
 \luavarset{flattentds}  {true}        {Switch to flatten any source structure when creating a TDS structure}
 \luavarset{maxprintline}{79}          {Length of line to use in log files}
 \luavarset{packtdszip}  {false}       {Switch to build a TDS-style zip file for CTAN}
+\luavarset{ps2pdfopts}  {""}          {Options for \texttt{ps2pdf}}
 \luavarset{typesetcmds} {""}          {Instructions to be passed to \TeX{} when doing typesetting}
 \luavarset{typesetruns}{3}            {Number of cycles of typesetting to carry out}
 \luavarset{recordstatus}{false}       {Switch to include error level from test runs in \texttt{.tlg} files}





More information about the latex3-commits mailing list.