texlive[54029] Master/texmf-dist: graphics-pln (3mar20)
commits+karl at tug.org
commits+karl at tug.org
Tue Mar 3 23:03:11 CET 2020
Revision: 54029
http://tug.org/svn/texlive?view=revision&revision=54029
Author: karl
Date: 2020-03-03 23:03:11 +0100 (Tue, 03 Mar 2020)
Log Message:
-----------
graphics-pln (3mar20)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/plain/graphics-pln/exmplgrf.tex
trunk/Master/texmf-dist/doc/plain/graphics-pln/exmplpfg.tex
trunk/Master/texmf-dist/tex/plain/graphics-pln/color.tex
trunk/Master/texmf-dist/tex/plain/graphics-pln/graphicx.tex
trunk/Master/texmf-dist/tex/plain/graphics-pln/miniltx.tex
Added Paths:
-----------
trunk/Master/texmf-dist/doc/plain/graphics-pln/README.md
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/plain/graphics-pln/README.txt
Added: trunk/Master/texmf-dist/doc/plain/graphics-pln/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/plain/graphics-pln/README.md (rev 0)
+++ trunk/Master/texmf-dist/doc/plain/graphics-pln/README.md 2020-03-03 22:03:11 UTC (rev 54029)
@@ -0,0 +1,112 @@
+# graphics-pln
+
+## Graphics code for non-LaTeX users.
+
+This directory provides a small wrapper file such that users of
+formats based on plain TeX may make use of some of the parts of the
+standard LaTeX distribution.
+
+These files are *NOT* supported by the LaTeX3 project, and any
+problems with them should *NOT* be reported to the LaTeX bugs system.
+
+Problems should be reported as issues at
+https://github.com/davidcarlisle/graphics-pln/issues
+
+
+David Carlisle
+1995/01/29
+1996/11/13
+2016/08/17
+2017/06/01
+2018/01/16
+2020/03/02
+
+Copyright 1995 1996 2016 2017 2018 2020 David Carlisle
+
+ All the files in this directory may be redistributed and/or modified
+ under the terms of the LaTeX Project Public License distributed from
+ CTAN archives in directory macros/latex/base/lppl.txt; either
+ version 1 of the License, or (at your option) any later version.
+
+
+
+This directory contains
+
+- README.md
+ This file.
+
+- exmplpic.tex
+ A plain TeX document using LaTeX' `picture mode': a portable
+ means of producing simple diagrams.
+
+- exmplgrf.tex
+ A plain TeX document using the LaTeX graphicx package, for
+ rotating and scaling text, and include PostScript and other
+ graphics formats. (This will include the file a.ps available
+ in the LaTeX graphics distribution.)
+
+- exmplcol.tex
+ A plain TeX document using the LaTeX color package, for
+ producing colour.
+
+- exmplpfg.tex
+ A plain TeX document using the contributed LaTeX psfrag package,
+ for including PostScript documents, while replacing certain text
+ strings with TeX typeset replacements. This uses the example.eps
+ figure from the psfrag 3.0 distribution.
+
+- miniltx.tex
+ A small `miniLaTeX' that defines fakes or otherwise hacks
+ sufficient bits of LaTeX internals so that the packages can load.
+
+- picture.tex
+ The user interface to the picture environment.
+ `\input picture`
+ Normally a plain-style syntax is used, viz
+ ```
+ \picture(100,100)
+ ....
+ \endpicture
+ ```
+
+ However if the command `\LaTeXbegin` is issued, then a LaTeX
+ syntax of
+ \begin{picture}(100,100)
+ ....
+ \end{picture}
+ May be used. this may be prefered if the picture is being copied
+ from a LaTeX document, or if it is produced automatically from
+ a drawing tool such as xfig or texcad.
+
+- autopict.sty
+ This is a frozen copy of a file that used to be distributed with
+ LaTeX but is no longer needed in that context, it is basically
+ the source of LaTeX Picture mode from LaTeX in 2014. The
+ original use for this package was to build a latex format in
+ which some environments such as picture and tabbing were not
+ defined by default, to save space if working with TeX on a
+ machine with 640K memory.
+
+
+- graphicx.tex
+ The user interface to the graphicx package.
+ `\input graphicx`
+ See the documentation in grfguide.ps in the LaTeX graphics
+ distribution.
+ This file sets the driver to be dvips, pdftex or luatex.
+ If you use another driver, define `\Gin at driver` before inputting the file.
+
+- color.tex
+ The user interface to the color package.
+ `\input color`
+ See the documentation in grfguide.ps in the LaTeX graphics
+ distribution.
+ This file sets the driver to be dvips, pdftex or luatex.
+ If you use another driver, define `\Gin at driver` before inputting the file.
+
+
+- psfrag.tex
+ The user interface to the psfrag package.
+ `\input psfrag`
+ See the documentation in pfgguide.tex in the psfrag distribution,
+ and the example document pfgexmpl.tex included here.
Property changes on: trunk/Master/texmf-dist/doc/plain/graphics-pln/README.md
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Deleted: trunk/Master/texmf-dist/doc/plain/graphics-pln/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/plain/graphics-pln/README.txt 2020-03-03 22:02:56 UTC (rev 54028)
+++ trunk/Master/texmf-dist/doc/plain/graphics-pln/README.txt 2020-03-03 22:03:11 UTC (rev 54029)
@@ -1,107 +0,0 @@
-
-Graphics code for non-LaTeX users.
-==================================
-
-This directory provides a small wrapper file such that users of
-formats based on plain TeX may make use of some of the parts of the
-standard LaTeX distribution.
-
-These files are *NOT* supported by the LaTeX3 project, and any
-problems with them should *NOT* be reported to the LaTeX bugs system.
-
-Problems should be reported as issues at
-https://github.com/davidcarlisle/dpctex/tree/master/graphics-pln
-
-
-David Carlisle 1995/01/29
- 1996/11/13
- 2016/08/17
- 2017/06/01
- 2018/01/16
-
-Copyright 1995 1996 2016 2017 2018 David Carlisle
-
- All the files in this directory may be redistributed and/or modified
- under the terms of the LaTeX Project Public License distributed from
- CTAN archives in directory macros/latex/base/lppl.txt; either
- version 1 of the License, or (at your option) any later version.
-
-
-
-This directory contains
-
-README.txt This file.
-
-exmplpic.tex
- A plain TeX document using LaTeX' `picture mode': a portable
- means of producing simple diagrams.
-
-exmplgrf.tex
- A plain TeX document using the LaTeX graphicx package, for
- rotating and scaling text, and include PostScript and other
- graphics formats. (This will include the file a.ps available
- in the LaTeX graphics distribution.)
-
-exmplcol.tex
- A plain TeX document using the LaTeX color package, for
- producing colour.
-
-exmplpfg.tex
- A plain TeX document using the contributed LaTeX psfrag package,
- for including PostScript documents, while replacing certain text
- strings with TeX typeset replacements. This uses the example.eps
- figure from the psfrag 3.0 distribution.
-
-miniltx.tex
- A small `miniLaTeX' that defines fakes or otherwise hacks
- sufficient bits of LaTeX internals so that the packages can load.
-
-picture.tex
- The user interface to the picture environment.
- \input picture.
- Normally a plain-style syntax is used, viz
- \picture(100,100)
- ....
- \endpicture
-
- However if the command \LaTeXbegin is issued, then a LaTeX
- syntax of
- \begin{picture}(100,100)
- ....
- \end{picture}
- May be used. this may be prefered if the picture is being copied
- from a LaTeX document, or if it is produced automatically from
- a drawing tool such as xfig or texcad.
-
-autopict.sty
- This is a frozen copy of a file that used to be distributed with
- LaTeX but is no longer needed in that context, it is basocally
- the source of LaTeX Picture mode from LaTeX in 2014. The
- original use for this package was to build a latex format in
- which some environments such as picture and tabbing were not
- defined by default, to save space if working with TeX on a
- machine with 640K memory.
-
-
-graphicx.tex
- The user interface to the graphicx package.
- \input graphicx
- See the documentation in grfguide.ps in the LaTeX graphics
- distribution.
- This file sets the driver to be dvips. If you
- use another driver, edit accordingly.
-
-color.tex
- The user interface to the color package.
- \input color
- See the documentation in grfguide.ps in the LaTeX graphics
- distribution.
- This file sets the driver to be dvips. If you
- use another driver, edit accordingly.
-
-
-psfrag.tex
- The user interface to the psfrag package.
- \input psfrag
- See the documentation in pfgguide.tex in the psfrag distribution,
- and the example document pfgexmpl.tex included here.
Modified: trunk/Master/texmf-dist/doc/plain/graphics-pln/exmplgrf.tex
===================================================================
--- trunk/Master/texmf-dist/doc/plain/graphics-pln/exmplgrf.tex 2020-03-03 22:02:56 UTC (rev 54028)
+++ trunk/Master/texmf-dist/doc/plain/graphics-pln/exmplgrf.tex 2020-03-03 22:03:11 UTC (rev 54029)
@@ -1,9 +1,9 @@
\input graphicx
-\includegraphics{a}
+\includegraphics{example-image}
-\includegraphics[scale=2]{a}
+\includegraphics[scale=2]{example-image}
hello\rotatebox[origin=c]{180}{hello}hello
Modified: trunk/Master/texmf-dist/doc/plain/graphics-pln/exmplpfg.tex
===================================================================
--- trunk/Master/texmf-dist/doc/plain/graphics-pln/exmplpfg.tex 2020-03-03 22:02:56 UTC (rev 54028)
+++ trunk/Master/texmf-dist/doc/plain/graphics-pln/exmplpfg.tex 2020-03-03 22:03:11 UTC (rev 54029)
@@ -1,4 +1,7 @@
+% using psfrag example eps
+% /usr/local/texlive/2019/texmf-dist/doc/latex/psfrag/example.eps
+
\input psfrag
First without psfrag:
Modified: trunk/Master/texmf-dist/tex/plain/graphics-pln/color.tex
===================================================================
--- trunk/Master/texmf-dist/tex/plain/graphics-pln/color.tex 2020-03-03 22:02:56 UTC (rev 54028)
+++ trunk/Master/texmf-dist/tex/plain/graphics-pln/color.tex 2020-03-03 22:03:11 UTC (rev 54029)
@@ -3,7 +3,30 @@
\input miniltx
-\def\Gin at driver{dvips.def}
+
+
+\ifx\Gin at driver\@undefined
+ \ifx\directlua\@undefined
+ \ifx\pdfoutput\@undefined
+ \def\Gin at driver{dvips.def}
+ \else
+ \ifnum\pdfoutput=1
+ \def\Gin at driver{pdftex.def}
+ \else
+ \def\Gin at driver{dvips.def}
+ \fi
+ \fi
+ \else
+ \def\Gin at driver{luatex.def}
+ \fi
+\fi
+
+
+
+\let\@color at protected\protected
+\expandafter\@gobble\csname protected\endcsname
+
\input color.sty
+\let\protected\@color at protected
\resetatcatcode
Modified: trunk/Master/texmf-dist/tex/plain/graphics-pln/graphicx.tex
===================================================================
--- trunk/Master/texmf-dist/tex/plain/graphics-pln/graphicx.tex 2020-03-03 22:02:56 UTC (rev 54028)
+++ trunk/Master/texmf-dist/tex/plain/graphics-pln/graphicx.tex 2020-03-03 22:03:11 UTC (rev 54029)
@@ -9,10 +9,29 @@
\let\ttfamily\tt
\fi
-\def\Gin at driver{dvips.def}
+\ifx\Gin at driver\@undefined
+ \ifx\directlua\@undefined
+ \ifx\pdfoutput\@undefined
+ \def\Gin at driver{dvips.def}
+ \else
+ \ifnum\pdfoutput=1
+ \def\Gin at driver{pdftex.def}
+ \else
+ \def\Gin at driver{dvips.def}
+ \fi
+ \fi
+ \else
+ \def\Gin at driver{luatex.def}
+ \fi
+\fi
+
+\let\GRAPHICS at detokenize\detokenize
+\ifx\detokenize\@undefined
+ \def\detokenize#1{#1}
+\fi
\input graphicx.sty
+\let\detokenize\GRAPHICS at detokenize
-
\resetatcatcode
Modified: trunk/Master/texmf-dist/tex/plain/graphics-pln/miniltx.tex
===================================================================
--- trunk/Master/texmf-dist/tex/plain/graphics-pln/miniltx.tex 2020-03-03 22:02:56 UTC (rev 54028)
+++ trunk/Master/texmf-dist/tex/plain/graphics-pln/miniltx.tex 2020-03-03 22:03:11 UTC (rev 54029)
@@ -2,7 +2,7 @@
%%%
%%% Parts of LaTeX: Slightly changed/simplified in places.
%%% Changes
-%%% Copyright 1996-2017 David Carlisle LaTeX3 Project
+%%% Copyright 1996-2020 David Carlisle LaTeX3 Project
%%% Original Code
%%% Copyright 1993-1996 LaTeX3 Project and original authors
%%%
@@ -10,7 +10,7 @@
%%% or any other LaTeX related support address.
%%%
%%% Problems should be reported as issues at
-%%% https://github.com/davidcarlisle/dpctex/tree/master/graphics-pln
+%%% https://github.com/davidcarlisle/graphics-pln/issues
%%%
%%%
%%% This file may be distributed under the terms of the LPPL, see
@@ -25,6 +25,8 @@
% 2010/02/03 accept *-form of \ProcessOptions [KB/DL]
% 2016/08/17 fix catcode @ handling (again), document github address [DC]
% 2017/06/01 assorted updates to cover updated latex drivers
+% 2019/07/20 more updates for latex drivers
+% 2020/03/02 move to own git repository and add newcommand fix from issue #2
\edef\resetatcatcode{\catcode`\noexpand\@\the\catcode`\@\relax}
@@ -115,6 +117,8 @@
\ifx#2\@empty\else\expandafter\zap at space\fi
#2}
+\def\strip at prefix#1>{}
+
\let\@empty\empty
\def\@pkgextension{sty}
@@ -243,6 +247,17 @@
{\def\reserved at a{\renew at command\reserved at a}}%
\reserved at a}%
+% Missing \x at protect definition added 2020/03/02
+\def\x at protect#1{%
+ \ifx\protect\@typeset at protect\else
+ \@x at protect#1%
+ \fi
+}
+\def\@x at protect#1\fi#2#3{%
+ \fi\protect#1%
+}
+\let\@typeset at protect\relax
+
\def\@ifundefined#1{%
\expandafter\ifx\csname#1\endcsname\relax
\expandafter\@firstoftwo
@@ -509,3 +524,13 @@
% 1996/11/21
\def\@warning{\immediate\write16}
+
+% 2019/07/20
+\def\quote at name#1{"\quote@@name#1\@gobble""}
+\def\quote@@name#1"{#1\quote@@name}
+\def\unquote at name#1{\quote@@name#1\@gobble"}
+
+\ifx\set at curr@file\@undefined
+ \def\set at curr@file#1{\xdef\@curr at file{#1}}
+\fi
+
More information about the tex-live-commits
mailing list.