texlive[54522] Master/texmf-dist: graphics-def (24mar20)

commits+karl at tug.org commits+karl at tug.org
Tue Mar 24 21:52:52 CET 2020


Revision: 54522
          http://tug.org/svn/texlive?view=revision&revision=54522
Author:   karl
Date:     2020-03-24 21:52:52 +0100 (Tue, 24 Mar 2020)
Log Message:
-----------
graphics-def (24mar20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/graphics-def/README.md
    trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def
    trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def
    trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def

Added Paths:
-----------
    trunk/Master/texmf-dist/doc/latex/graphics-def/CONTRIBUTING.md

Added: trunk/Master/texmf-dist/doc/latex/graphics-def/CONTRIBUTING.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/graphics-def/CONTRIBUTING.md	                        (rev 0)
+++ trunk/Master/texmf-dist/doc/latex/graphics-def/CONTRIBUTING.md	2020-03-24 20:52:52 UTC (rev 54522)
@@ -0,0 +1,96 @@
+Thanks for considering contributing to LaTeX2e: feedback, fixes and
+ideas are all useful. Here, we ([The LaTeX3
+Project](https://www.latex-project.org)) have collected together a few
+pointers to help things along.
+
+## Bugs
+
+There are thousands of packages and tools and the LaTeX Project Team
+only supports a few dozen core packages beside the kernel code. We
+also don't maintain any tools or the TeX-engines themselves! So if a
+bug is due to code from a contributed third-party package then the LaTeX
+Project Team is not able to help or fix the code as that is maintained
+by others. As such, we ask you follow the procedure below as it will
+help to weed cases where we cannot help.
+
+To report a bug it is important to provide a short test file that
+exhibits the issue. The [`latexbug`](https://github.com/latex3/latexbug)
+package should be loaded at the very top of any such test file used to
+report a bug in LaTeX as follows:
+
+```latex
+\RequirePackage{latexbug}    % <- first line
+\documentclass{article}      % or some other class
+...                          % code showing the problem
+```
+
+If the `latexbug` package is not part of your distribution you can
+download it
+[GitHub](https://raw.githubusercontent.com/latex3/latexbug/master/latexbug.sty).
+In that case simply place it in the directory next to your test file (or
+place it into your local `texmf` tree so that it will be always found –
+how to do that depends on the installation you use).
+
+If `latexbug` complains about third-party packages you should first
+remove those from your test file. If that is not possible, then the
+bug is most likely in one of these packages and you should report the
+problem to the maintainers of the package instead of opening an issue
+here.  However, if you think the bug is in core LaTeX (as maintained
+by the LaTeX Team) even though you need the third-party packages to
+demonstrate the problem, then please continue and send the bug report
+to us but explain this explicitly in your description of the bug.
+
+
+## Font related issues
+
+Problems that are clearly due to using a specific font setup or a
+specific font are normally out of scope as we do not maintain fonts
+for LaTeX and can't help with problems in that area. Especially with
+XeTeX and LuaTeX people may experience issues due to font usage that
+are either due to the font itself or to different versions or
+treatment on different platforms. So please use Computer Modern or
+Latin Modern fonts in the test files.
+
+
+
+## Layout and interface deficiencies
+
+Upfront we should probably stress that 'deficiencies' in the design of
+of the standard document classes (`article`, `report` and `book`) as
+well a questionable but long established interface behavior of commands
+is something that we will normally not change, even if we can all agree
+that a different behavior or a different layout would have been a better
+choice. You are, of course, welcome to report issues in these areas,
+using the procedure explained below, but in all likelihood such reports
+will be marked as 'won't fix'.
+
+The reason is is that the kernel interfaces and the document classes
+have been used for many years in essentially all documents (even
+documents using different classes often build them upon the standard
+classes in the background) and thus such changes would break or as a
+minimum noticeably change nearly all existing documents. See also the
+file [LaTeX2e News Issue
+07](https://www.latex-project.org/news/latex2e-news/ltnews07.pdf) with
+regard to this policy.
+
+## Code contributions
+
+If you want to discuss a possible contribution before (or instead of)
+making a pull request, drop a line to
+[the team](mailto:latex-team at latex-project.org).
+
+The stability of LaTeX is very important and this means that change in
+the kernel is necessarily very conservative. It also means that a lot of
+discussion happens before any changes are made. If you do decide to post
+a pull request, please bear this in mind: we do appreciate ideas, but
+cannot always integrate them into the kernel.
+
+If you are submitting a pull request, notice that
+
+- The first line of commit messages should be a short summary (up to about
+  50 chars); leave a blank line then give more detail if required
+- We use Travis-CI for (light) testing so add `[ci skip]` to documentation-only
+  commit messages
+- We favour a single linear history so will rebase accepted pull requests
+- Where a commit fixes or closes an issue, please include this information
+  in the first line of the commit message [`(fixes #X)` or similar]


Property changes on: trunk/Master/texmf-dist/doc/latex/graphics-def/CONTRIBUTING.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Modified: trunk/Master/texmf-dist/doc/latex/graphics-def/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/graphics-def/README.md	2020-03-24 20:52:40 UTC (rev 54521)
+++ trunk/Master/texmf-dist/doc/latex/graphics-def/README.md	2020-03-24 20:52:52 UTC (rev 54522)
@@ -1,7 +1,7 @@
 LaTeX support for color and graphics
 ====================================
 
-Release 2018-01-08
+Release 2020-03-24
 
 This bundle contains the 'engine-dependent' part of support for
 color and graphics in LaTeX2e (the code here will also function

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def	2020-03-24 20:52:40 UTC (rev 54521)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/dvisvgm.def	2020-03-24 20:52:52 UTC (rev 54522)
@@ -1,5 +1,5 @@
 % Copyright 2015 by Till Tantau
-% Copyright 2016 by Till Tantau and LaTeX3 Project
+% Copyright 2016 2018 by Till Tantau and LaTeX3 Project
 %
 %% This work may be distributed and/or modified under the
 %% conditions of the LaTeX Project Public License, either version 1.3c
@@ -15,9 +15,9 @@
 %%
 %% https://github.com/latex3/graphics-def/issues
 %
-\ProvidesFile{dvisvgm.def}[2017/06/20 v1.0b dvisvgm graphics driver for latex]
+\ProvidesFile{dvisvgm.def}[2020/03/22 v1.2 dvisvgm graphics driver for latex]
+% The following is copied from dvips.def:
 \def\GPT at space{ }
-% The following is copied from dvips.def:
 \def\c at lor@arg#1{%
   \dimen@#1\p@
   \ifdim\dimen@<\z@\dimen@\maxdimen\fi
@@ -72,11 +72,85 @@
 \def\reset at color{\special{color pop}}
 \def\set at page@color{\special{bgcolor \current at color}}
 \def\define at color@named#1#2{\expandafter\let\csname col@#1\endcsname\@nnil}
-\def\Grot at start{\special{dvisvgm:raw <g transform="translate({?x},{?y})scale(1,-1)rotate(\Grot at angle)scale(-1,1)translate({?x},{?y})scale(-1)">}}
-\def\Grot at end{\special{dvisvgm:raw </g>}}
-\def\Gscale at start{\special{dvisvgm:raw <g transform="translate({?x},{?y})scale(\Gscale at x,\Gscale at y)scale(-1)translate({?x},{?y})scale(-1)">}}
-\def\Gscale at end{\special{dvisvgm:raw </g>}}
-\def\Gin at extensions{.png,.jpg,.jpeg,.svg}
+\def\Grot at start{%
+  \special{ps: gsave currentpoint currentpoint translate \Grot at angle\GPT at space neg rotate neg exch neg exch translate}%
+  \special{dvisvgm:bbox \strip at pt\wd\z@ pt \strip at pt\ht\z@ pt \strip at pt\dp\z@ pt transform}%
+  \special{ps: grestore}%
+  \special{dvisvgm:raw <g transform="translate({?x},{?y})scale(1,-1)rotate(\Grot at angle)scale(-1,1)translate({?x},{?y})scale(-1)">}%
+  \special{dvisvgm:bbox lock}%
+}
+\def\Grot at end{\special{dvisvgm:bbox unlock}\special{dvisvgm:raw </g>}}
+\def\Gscale at start{%
+  \special{ps: gsave currentpoint currentpoint translate \Gscale at x\GPT at space \Gscale at y\GPT at space scale neg exch neg exch translate}%
+  \special{dvisvgm:bbox \strip at pt\wd\z@ pt \strip at pt\ht\z@ pt \strip at pt\dp\z@ pt transform}%
+  \special{ps: grestore}%
+  \special{dvisvgm:raw <g transform="translate({?x},{?y})scale(\Gscale at x,\Gscale at y)scale(-1)translate({?x},{?y})scale(-1)">}%
+  \special{dvisvgm:bbox lock}%
+}
+\let\Gscale at end\Grot at end
+\def\Gin at extensions{.svg,.eps,.png,.jpg,.jpeg}
+\def\Ginclude at pdf#1{\Ginclude at psorpdf{#1}{pdffile}}
+\def\Ginclude at eps#1{\let\Gin at page\@empty\Ginclude at psorpdf{#1}{PSfile}}
+\def\Ginclude at psorpdf#1#2{%
+  \message{<#1>}%
+  \bgroup
+  \def\@tempa{!}%
+  \dimen@\Gin at req@width
+  \dimen at ii.1bp%
+  \divide\dimen@\dimen at ii
+  \@tempdima\Gin at req@height
+  \divide\@tempdima\dimen at ii
+    \special{#2="#1"\GPT at space
+      \ifx\Gin at page\@empty\else page=\Gin at page\GPT at space\fi
+      llx=\Gin at llx\GPT at space
+      lly=\Gin at lly\GPT at space
+      urx=\Gin at urx\GPT at space
+      ury=\Gin at ury\GPT at space
+      \ifx\Gin at scalex\@tempa\else rwi=\number\dimen@\GPT at space\fi
+      \ifx\Gin at scaley\@tempa\else rhi=\number\@tempdima\GPT at space\fi
+      \ifGin at clip clip\fi
+    }%
+  \egroup}
+\@namedef{Gin at rule@.ps}#1{{eps}{.ps}{#1}}
+\@namedef{Gin at rule@.eps}#1{{eps}{.eps}{#1}}
+\@namedef{Gin at rule@.mps}#1{{eps}{.mps}{#1}}
+\@namedef{Gin at rule@.pdf}#1{{pdf}{.xbb}{#1}}
+% BoundingBox determination (from dvipdfmx.def)
+\def\Gread at pdf#1{%
+  \Gread at generic{#1}\Gread at extractbb@aux%
+}%
+\def\Gread at extractbb@aux#1{%
+  \ifeof\@inputcheck%
+    \immediate\openin\@inputcheck=%
+      "|extractbb %
+      \ifx\Gin at page\@empty\else -p \Gin at page\GPT at space\fi
+      \ifx\Gin at pagebox\@empty\else -B \Gin at pagebox\GPT at space\fi
+      -O \Gin at base\Gin at ext"%
+  \fi%
+  \Gread at true%
+  \let\@tempb\Gread at false%
+  \ifeof\@inputcheck%
+    \@latex at error%
+      {Cannot run pipe command. Try --shell-escape\MessageBreak%
+       (--enable-pipes in MikTeX) option}%
+      {Alternatively, execute\MessageBreak\space\space
+         extractbb
+         \ifx\Gin at page\@empty\else -p \Gin at page\GPT at space\fi
+         \ifx\Gin at pagebox\@empty\else -B \Gin at pagebox\GPT at space\fi
+         \Gin at base\Gin at ext\MessageBreak in a terminal.}%
+  \else%
+    \loop%
+      \read\@inputcheck to\@tempa%
+      \ifeof\@inputcheck%
+        \Gread at false%
+      \else%
+        \expandafter\Gread at find@bb\@tempa:.\\%
+      \fi%
+      \ifGread@%
+      \repeat%
+    \immediate\closein\@inputcheck%
+  \fi%
+}
 \def\Ginclude at bitmap#1{%
   \dimen@\Gin at urx pt%
   \advance\dimen@ by-\Gin at llx pt%
@@ -87,17 +161,17 @@
   \dimen@\Gin at svg@real at height@bp pt%
   \advance\dimen@ by-\Gin at ury pt%
   \edef\Gin at svg@view at base{\strip at pt\dimen@}%
-%  \kern-\Gin at llx bp%
-  \raise\Gin at req@height\hbox{%
+  \Gin at req@width0.99626\Gin at req@width%
+  \Gin at req@height0.99626\Gin at req@height%
+  \raise\strip at pt\Gin at req@height bp\hbox{%
     \special{dvisvgm: raw
       <g transform="translate({?x},{?y})">
         <svg overflow="\ifGin at clip hidden\else visible\fi" width="\strip at pt\Gin at req@width" height="\strip at pt\Gin at req@height"
              viewBox="\Gin at llx\GPT at space\Gin at svg@view at base\GPT at space\Gin at svg@view at width\GPT at space\Gin at svg@view at height">
-          <image width="\Gin at svg@real at width@bp" height="\Gin at svg@real at height@bp" 
+          <image width="\Gin at svg@real at width@bp" height="\Gin at svg@real at height@bp"
                  xlink:href="#1"/>
         </svg>
       </g>}%
-%    \special{dvisvgm: img \strip at pt\Gin at req@width\GPT at space \strip at pt\Gin at req@height\GPT at space #1}
   }%
 }
 
@@ -139,32 +213,33 @@
   \fi
   \edef\Gin at setter{\def\noexpand\Gin at urx{\Gin at urx}\def\noexpand\Gin at ury{\Gin at ury}}%
   \expandafter\endgroup\Gin at setter%
-  \def\Gin at llx{0}% 
+  \def\Gin at llx{0}%
   \def\Gin at lly{0}%
   \edef\Gin at svg@real at width@bp{\Gin at urx}%
-  \edef\Gin at svg@real at height@bp{\Gin at ury}%  
+  \edef\Gin at svg@real at height@bp{\Gin at ury}%
 }
 \def\Gin at partext{\par}
 \def\Gread at svg@height#1height={\@ifnextchar\relax{}{\@ifnextchar'\Gread at svg@height at apo\Gread at svg@height at double}}
-\def\Gread at svg@height at apo'#1'#2\relax{\afterassignment\Gin at gobble@till at relax\dimen@#1pt\relax\dimen at 0.99626\dimen@\edef\Gin at ury{\strip at pt\dimen@}}
-\def\Gread at svg@height at double"#1"#2\relax{\afterassignment\Gin at gobble@till at relax\dimen@#1pt\relax\dimen at 0.99626\dimen@\edef\Gin at ury{\strip at pt\dimen@}}
+\def\Gread at svg@height at apo'#1'#2\relax{\afterassignment\Gin at gobble@till at relax\dimen@#1pt\relax\edef\Gin at ury{\strip at pt\dimen@}}
+\def\Gread at svg@height at double"#1"#2\relax{\afterassignment\Gin at gobble@till at relax\dimen@#1pt\relax\edef\Gin at ury{\strip at pt\dimen@}}
 \def\Gread at svg@width#1width={\@ifnextchar\relax{}{\@ifnextchar'\Gread at svg@width at apo\Gread at svg@width at double}}
-\def\Gread at svg@width at apo'#1'#2\relax{\afterassignment\Gin at gobble@till at relax\dimen@#1pt\relax\dimen at 0.99626\dimen@\edef\Gin at urx{\strip at pt\dimen@}}
-\def\Gread at svg@width at double"#1"#2\relax{\afterassignment\Gin at gobble@till at relax\dimen@#1pt\relax\dimen at 0.99626\dimen@\edef\Gin at urx{\strip at pt\dimen@}}
+\def\Gread at svg@width at apo'#1'#2\relax{\afterassignment\Gin at gobble@till at relax\dimen@#1pt\relax\edef\Gin at urx{\strip at pt\dimen@}}
+\def\Gread at svg@width at double"#1"#2\relax{\afterassignment\Gin at gobble@till at relax\dimen@#1pt\relax\edef\Gin at urx{\strip at pt\dimen@}}
 \def\Gin at gobble@till at relax#1\relax{}
+\edef\Gin at hash@tag{\string#}
 
 \@namedef{Gin at rule@.jpg}#1{{bitmap}{.xbb}{#1}}
 \@namedef{Gin at rule@.jpeg}#1{{bitmap}{.xbb}{#1}}
 \@namedef{Gin at rule@.png}#1{{bitmap}{.xbb}{#1}}
 
-% Replace 
+% Replace
 \def\Gread at bitmap#1{%
-  \Gread at eps{#1}%
-  \dimen@\Gin at urx bp%
-  \advance\dimen@ by-\Gin at llx bp%
+  \Gread at generic{#1}\Gread at extractbb@aux%
+  \dimen@\Gin at urx pt%
+  \advance\dimen@ by-\Gin at llx pt%
   \edef\Gin at svg@real at width@bp{\strip at pt\dimen@}%
-  \dimen@\Gin at ury bp%
-  \advance\dimen@ by-\Gin at lly bp%
+  \dimen@\Gin at ury pt%
+  \advance\dimen@ by-\Gin at lly pt%
   \edef\Gin at svg@real at height@bp{\strip at pt\dimen@}%
 }
 

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def	2020-03-24 20:52:40 UTC (rev 54521)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/luatex.def	2020-03-24 20:52:52 UTC (rev 54522)
@@ -128,8 +128,9 @@
 \AtBeginDocument{%
   \def\KV at Gin@bbllx{%
     \PackageError{luatex.def}{%
-      Options `bblly', `bblly', `bburx' and `bbury'\MessageBreak
-      are not supported by luatex driver:\MessageBreak
+      Options `bblly', `bblly', `bburx', `bbury',\MessageBreak
+      `natheight' and `natwidth' are not\MessageBreak
+      supported by luatex driver:\MessageBreak
       use `viewport' instead%
     }\@ehc
   }%
@@ -136,6 +137,8 @@
   \let\KV at Gin@bblly\KV at Gin@bbllx
   \let\KV at Gin@bburx\KV at Gin@bbllx
   \let\KV at Gin@bbury\KV at Gin@bbllx
+  \let\KV at Gin@natwidth\KV at Gin@bbllx
+  \let\KV at Gin@natheight\KV at Gin@bbllx
   \def\KV at Gin@bb{%
     \PackageInfo{luatex.def}%
       {Option `bb' equivalent to `viewport' for luatex driver}%
@@ -575,18 +578,18 @@
 % b) and shell escape is enabled (possibly restricted),
 % c) and \DoNotLoadEpstopdf either does not exist or is not \relax,
 % d) and neither pst-pdf nor pdftricks is loaded (by \begin{document}).
-% 
+%
 % In other words, by default .eps files will be automatically
 % converted to .pdf files when outputting pdf.  This can be wrong!
 % If the .pdf is the source, rather than the .eps, you should put
 %  \newcommand{\DoNotLoadEpstopdf}{}
 % before even the \documentclass line of your document.
-% 
+%
 % More information about the epstopdf run will be in the .log file;
 % see http://ctan.org/pkg/epstopdf-pkg for more info about the
 % epstopdf package itself.  In turn, it calls the epstopdf script
 % (http://ctan.org/pkg/epstopdf).
-% 
+%
 % For the first discussion and background on this, see the thread on latex-l:
 % http://thread.gmane.org/gmane.comp.tex.latex.latex3/1465
 %

Modified: trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def
===================================================================
--- trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def	2020-03-24 20:52:40 UTC (rev 54521)
+++ trunk/Master/texmf-dist/tex/latex/graphics-def/pdftex.def	2020-03-24 20:52:52 UTC (rev 54522)
@@ -142,8 +142,9 @@
 \AtBeginDocument{%
   \def\KV at Gin@bbllx{%
     \PackageError{pdftex.def}{%
-      Options `bblly', `bblly', `bburx' and `bbury'\MessageBreak
-      are not supported by pdftex driver:\MessageBreak
+      Options `bblly', `bblly', `bburx', `bbury',\MessageBreak
+      `natheight' and `natwidth' are not\MessageBreak
+      supported by pdftex driver:\MessageBreak
       use `viewport' instead%
     }\@ehc
   }%
@@ -150,6 +151,8 @@
   \let\KV at Gin@bblly\KV at Gin@bbllx
   \let\KV at Gin@bburx\KV at Gin@bbllx
   \let\KV at Gin@bbury\KV at Gin@bbllx
+  \let\KV at Gin@natwidth\KV at Gin@bbllx
+  \let\KV at Gin@natheight\KV at Gin@bbllx
   \def\KV at Gin@bb{%
     \PackageInfo{pdftex.def}%
       {Option `bb' equivalent to `viewport' with pdftex driver}%
@@ -585,18 +588,18 @@
 % b) and shell escape (\write18) is enabled (possibly restricted),
 % c) and \DoNotLoadEpstopdf either does not exist or is not \relax,
 % d) and neither pst-pdf nor pdftricks is loaded (by \begin{document}).
-% 
+%
 % In other words, by default .eps files will be automatically
 % converted to .pdf files when outputting pdf.  This can be wrong!
 % If the .pdf is the source, rather than the .eps, you should put
 %  \newcommand{\DoNotLoadEpstopdf}{}
 % before even the \documentclass line of your document.
-% 
+%
 % More information about the epstopdf run will be in the .log file;
 % see http://ctan.org/pkg/epstopdf-pkg for more info about the
 % epstopdf package itself.  In turn, it calls the epstopdf script
 % (http://ctan.org/pkg/epstopdf).
-% 
+%
 % For the first discussion and background on this, see the thread on latex-l:
 % http://thread.gmane.org/gmane.comp.tex.latex.latex3/1465
 %



More information about the tex-live-commits mailing list.