diff options
author | Karl Berry <karl@freefriends.org> | 2017-12-11 22:24:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-12-11 22:24:36 +0000 |
commit | 918bc7fc37eb2f4bd0900ec334625ed8f1b1752b (patch) | |
tree | e52283e6344beec938c9eba40c41de1550a3c2c4 /Master/texmf-dist/source | |
parent | 93a1787f2be1f8dae5927c7b9ea40308a3062bb0 (diff) |
mwe (10dec17)
git-svn-id: svn://tug.org/texlive/trunk@46043 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r-- | Master/texmf-dist/source/latex/mwe/mwe.dtx | 154 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/mwe/mwe.ins | 2 |
2 files changed, 154 insertions, 2 deletions
diff --git a/Master/texmf-dist/source/latex/mwe/mwe.dtx b/Master/texmf-dist/source/latex/mwe/mwe.dtx index 45fb034268b..ae2be88cb90 100644 --- a/Master/texmf-dist/source/latex/mwe/mwe.dtx +++ b/Master/texmf-dist/source/latex/mwe/mwe.dtx @@ -25,10 +25,10 @@ %<*driver> \ProvidesFile{mwe.dtx}[% %<=*DATE> - 2012/05/15 + 2017/12/10 %<=/DATE> %<=*VERSION> - v0.3 + v0.4 %<=/VERSION> DTX file for mwe] \documentclass{ydoc} @@ -36,6 +36,7 @@ \usepackage{mwe}[\filedate] \usepackage[export]{adjustbox} \usepackage{flafter} +\usepackage{pdfpages} \EnableCrossrefs \CodelineIndex \RecordChanges @@ -70,6 +71,7 @@ % \changes{v0.1}{2012/05/03}{Initial version.} % \changes{v0.2}{2012/05/08}{Added ``example-'' prefix to image files.} % \changes{v0.3}{2012/05/15}{Added graphicspath for ``example-'' and moved PDF to the begin of the file extensions.} +% \changes{v0.4}{2017/12/10}{Added numbered multi-page documents.} % % \DoNotIndex{\newcommand,\newenvironment} % @@ -256,6 +258,20 @@ % \mweimage{example-image-letter-landscape} % % \clearpage +% \begingroup +% \let\newpage\relax +% \subsection{Numbered pages} +% Colored 12-pages A4 size document. Can be used with the |pages| key of\ \cs{includegraphics}: \texttt{example-image-a4-numbered} (pages scaled down) +% \includepdf[pages=-,nup=3x4,offset=0 -30,delta=10 10,scale=.6]{example-image-a4-numbered.pdf} +% \endgroup +% \clearpage +% \begingroup +% \let\newpage\relax +% Colored 12-pages letter size document: \texttt{example-image-letter-numbered} (pages scaled down)\par +% \includepdf[pages=-,nup=3x4,delta=10 10,scale=.6]{example-image-letter-numbered.pdf} +% \endgroup +% \clearpage +% % \subsection{Test images} % The following images are intended for demonstrations of some image manipulation features. % Their grid nature will make cropping effects very visible. @@ -756,6 +772,73 @@ % \fi % % \iffalse +%<*example-image-a4-numbered.tex> +% \fi +% \begin{macrocode} +%</example-image-a4-numbered.tex> +%<*example-image-a4-numbered.tex&standalone> +\documentclass[a4paper,12pt]{article} +\usepackage{geometry} + +\usepackage{tikz} + +\pagestyle{empty} + +\colorlet{color1}{red} +\colorlet{color2}{green} +\colorlet{color3}{blue} +\colorlet{color4}{yellow} +\colorlet{color5}{orange} +\colorlet{color6}{olive} +\colorlet{color7}{pink} +\colorlet{color8}{lime} +\colorlet{color9}{purple} +\colorlet{color10}{teal} +\colorlet{color11}{cyan} +\colorlet{color12}{violet} + + +\def\dopage{% + \null + \begin{tikzpicture}[remember picture,overlay] + \path [fill=color\thepage] (current page.south west) rectangle (current page.north east); + \node[font=\sffamily\huge,scale=12] at (current page) {\thepage}; + + \end{tikzpicture}% + \clearpage +} + +\def\doit{\tikzstuff\afterpage{\doit}} + +\begin{document} +%</example-image-a4-numbered.tex&standalone> +%<*example-image-a4-numbered.tex> + +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage + +%</example-image-a4-numbered.tex> +%<*example-image-a4-numbered.tex&standalone> +\end{document} +% +%</example-image-a4-numbered.tex&standalone> +%<*example-image-a4-numbered.tex> +% \end{macrocode} +% \iffalse +%</example-image-a4-numbered.tex> +% \fi +% +% \iffalse %<*example-image-a5-landscape.tex> % \fi % \begin{macrocode} @@ -1083,6 +1166,73 @@ % \fi % % \iffalse +%<*example-image-letter-numbered.tex> +% \fi +% \begin{macrocode} +%</example-image-letter-numbered.tex> +%<*example-image-letter-numbered.tex&standalone> +\documentclass[letterpaper,12pt]{article} +\usepackage{geometry} + +\usepackage{tikz} + +\pagestyle{empty} + +\colorlet{color1}{red} +\colorlet{color2}{green} +\colorlet{color3}{blue} +\colorlet{color4}{yellow} +\colorlet{color5}{orange} +\colorlet{color6}{olive} +\colorlet{color7}{pink} +\colorlet{color8}{lime} +\colorlet{color9}{purple} +\colorlet{color10}{teal} +\colorlet{color11}{cyan} +\colorlet{color12}{violet} + + +\def\dopage{% + \null + \begin{tikzpicture}[remember picture,overlay] + \path [fill=color\thepage] (current page.south west) rectangle (current page.north east); + \node[font=\sffamily\huge,scale=12] at (current page) {\thepage}; + + \end{tikzpicture}% + \clearpage +} + +\def\doit{\tikzstuff\afterpage{\doit}} + +\begin{document} +%</example-image-letter-numbered.tex&standalone> +%<*example-image-letter-numbered.tex> + +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage +\dopage + +%</example-image-letter-numbered.tex> +%<*example-image-letter-numbered.tex&standalone> +\end{document} +% +%</example-image-letter-numbered.tex&standalone> +%<*example-image-letter-numbered.tex> +% \end{macrocode} +% \iffalse +%</example-image-letter-numbered.tex> +% \fi +% +% \iffalse %<*example-image.tex> % \fi % \begin{macrocode} diff --git a/Master/texmf-dist/source/latex/mwe/mwe.ins b/Master/texmf-dist/source/latex/mwe/mwe.ins index a1d3a8d64a9..bdd43ed2155 100644 --- a/Master/texmf-dist/source/latex/mwe/mwe.ins +++ b/Master/texmf-dist/source/latex/mwe/mwe.ins @@ -17,6 +17,7 @@ \file{example-image-a3.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-a3.tex,nostandalone}}% \file{example-image-a4-landscape.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-a4-landscape.tex,nostandalone}}% \file{example-image-a4.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-a4.tex,nostandalone}}% + \file{example-image-a4-numbered.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-a4-numbered.tex,nostandalone}}% \file{example-image-a5-landscape.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-a5-landscape.tex,nostandalone}}% \file{example-image-a5.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-a5.tex,nostandalone}}% \file{example-image-a.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-a.tex,nostandalone}}% @@ -26,6 +27,7 @@ \file{example-image-golden-upright.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-golden-upright.tex,nostandalone}}% \file{example-image-letter-landscape.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-letter-landscape.tex,nostandalone}}% \file{example-image-letter.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-letter.tex,nostandalone}}% + \file{example-image-letter-numbered.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image-letter-numbered.tex,nostandalone}}% \file{example-image.tex}{\nopreamble\nopostamble\from{mwe.dtx}{example-image.tex,nostandalone}}% } \endbatchfile |