From 127f33983d84beb2d636c2b5cfe5cb650fa1e95e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 30 Mar 2018 21:18:19 +0000 Subject: mwe (30mar18) git-svn-id: svn://tug.org/texlive/trunk@47194 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/source/latex/mwe/mwe.dtx | 122 +++++++++++++++++++++++++++-- 1 file changed, 117 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/source/latex/mwe') diff --git a/Master/texmf-dist/source/latex/mwe/mwe.dtx b/Master/texmf-dist/source/latex/mwe/mwe.dtx index ae2be88cb90..1398cc35a8e 100644 --- a/Master/texmf-dist/source/latex/mwe/mwe.dtx +++ b/Master/texmf-dist/source/latex/mwe/mwe.dtx @@ -1,6 +1,6 @@ % \iffalse meta-comment %<=*COPYRIGHT> -%% Copyright (C) 2012 by Martin Scharrer +%% Copyright (C) 2012-2018 by Martin Scharrer %% ----------------------------------------------------------------------- %% This work may be distributed and/or modified under the %% conditions of the LaTeX Project Public License, either version 1.3 @@ -25,10 +25,10 @@ %<*driver> \ProvidesFile{mwe.dtx}[% %<=*DATE> - 2017/12/10 + 2018/03/30 %<=/DATE> %<=*VERSION> - v0.4 + v0.5 %<=/VERSION> DTX file for mwe] \documentclass{ydoc} @@ -72,6 +72,7 @@ % \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.} +% \changes{v0.5}{2018/03/30}{Added example movie MP4 file. Added plain and empty example images. Added reference to example BibTeX file.} % % \DoNotIndex{\newcommand,\newenvironment} % @@ -176,7 +177,7 @@ % to PNG and JPG. Compile again with |latex| and |dvips| to create the EPS files % (rename the PS to EPS). % -% \begin{center} +% \begin{center}\small % \begin{tabular}{>{\ttfamily}l>{\ttfamily}l} % \toprule % \normalfont Files & \normalfont\hskip-3em TEXMF Installation folder \\ @@ -190,6 +191,8 @@ % example-grid-*.{tex,pdf} & tex/latex/mwe/ \\ % example-image-a?*.pdf example-image-letter*.pdf & tex/latex/mwe/ \\ % example-image-a?*.tex example-image-letter*.tex & source/latex/mwe/ \\ +% example-movie.mp4 & tex/latex/mwe/ \\ +% example-movie.tex & source/latex/mwe/ \\ % \bottomrule % \end{tabular} % \end{center} @@ -231,6 +234,17 @@ % \mweimage{example-image-golden-upright} % % \mweimage{example-image-1x1} +% \clearpage +% \subsection{Plain and empty images} +% The following plain (no text) and empty (background only) images where added on request for example documents where material is +% added on top of an image. Then any text would only cause visual distraction. +% +% \def\mweimage#1{\adjustimage{max size={\textwidth}{.33\textheight},center, +% caption={Image `\texttt{#1}' (PDF, also available as JPG, PNG and EPS).},nofloat=figure}{#1.pdf}} +% +% \mweimage{example-image-plain} +% +% \mweimage{example-image-empty} % % \clearpage % \subsection{Page-size images} @@ -280,12 +294,74 @@ % results in nice integer PDF sizes. The difference is not meaningful for normal MWEs but can be significant if these files % are used to demonstrate scaling features. % -% \def\mweimage#1{\begin{figure}[!tbp]\adjincludegraphics[max size={\textwidth}{.8\textheight},center]{#1.pdf}\caption{Image `\texttt{#1}' (PDF, also available as JPG, PNG, EPS).}\end{figure}} +% \def\mweimage#1{\adjustimage{max size={\textwidth}{.8\textheight},center,captionbelow={Image `\texttt{#1}' (PDF, also available as JPG, PNG, EPS).},nofloat=figure}{#1.pdf}} % % \mweimage{example-grid-100x100bp} % % \mweimage{example-grid-100x100pt} % +% \subsection{Example movie} +% On request an example movie file \texttt{example-movie.mp4} has been added for examples regarding packages like +% \pkg{media9} or \pkg{movie15}. As not all PDF viewers can display PDFs with embedded movies correctly this manual does +% not include an example use. +% +% +% \clearpage +% \section[Example BibTeX Entries]{Example Bib\TeX\space Entries} +% The \pkg{mwe} package does not provide an example Bib\TeX{} file itself. However, if example Bib\TeX{} entries are needed the +% example file \texttt{xampl.bib} provided by the Bib\TeX{} base files can be used. +% +% As of time of writing this manual the example file included the following entries. +% +% \begin{center}\small +% \begin{tabular}{ll} +% \toprule +% \bfseries Entry Type & \bfseries Key \\ +% \midrule +% article & article-minimal \\ +% article & article-full \\ +% article & article-crossref \\ +% article & whole-journal \\ +% inbook & inbook-minimal \\ +% inbook & inbook-full \\ +% inbook & inbook-crossref \\ +% book & book-minimal \\ +% book & book-full \\ +% book & book-crossref \\ +% book & whole-set \\ +% booklet & booklet-minimal \\ +% booklet & booklet-full \\ +% incollection & incollection-minimal \\ +% incollection & incollection-full \\ +% incollection & incollection-crossref \\ +% book & whole-collection \\ +% manual & manual-minimal \\ +% manual & manual-full \\ +% mastersthesis & mastersthesis-minimal \\ +% mastersthesis & mastersthesis-full \\ +% misc & misc-minimal \\ +% misc & misc-full \\ +% string & stoc-key \\ +% string & acm \\ +% string & stoc \\ +% inproceedings & inproceedings-minimal \\ +% inproceedings & inproceedings-full \\ +% inproceedings & inproceedings-crossref \\ +% proceedings & proceedings-minimal \\ +% proceedings & proceedings-full \\ +% proceedings & whole-proceedings \\ +% phdthesis & phdthesis-minimal \\ +% phdthesis & phdthesis-full \\ +% techreport & techreport-minimal \\ +% techreport & techreport-full \\ +% unpublished & unpublished-minimal \\ +% unpublished & unpublished-full \\ +% misc & random-note-crossref \\ +% \bottomrule +% \end{tabular} +% \end{center} +% +% \clearpage % % \StopEventually{} % \clearpage @@ -1271,6 +1347,42 @@ % % \fi % +% \iffalse +%<*example-movie.tex> +% \fi +% \begin{macrocode} +% +%<*example-movie.tex&standalone> +\documentclass[border=0,tikz]{standalone} +\usepackage[T1]{fontenc} +\usepackage{lmodern} + +\usepackage{tikz} +\usetikzlibrary{calc} +\begin{document}% +% +%<*example-movie.tex> +\foreach \n in {0,...,60} {% +\begin{tikzpicture}[x=32bp,y=18bp]% 16x9 + \clip (0,0) rectangle (10,10); + \path [fill=black!25] (0,0) rectangle (10,10); + \path [draw,ultra thick] (0,0) rectangle (10,10); + \node at (5,7) {\sffamily\Huge Example Movie}; + \node at (5,4) {\sffamily\Large \ifnum\n=60 01:00\else00:\ifnum\n<10 0\fi\n\fi}; + \fill [black!45] (2,2) rectangle (8,2.5); + \fill [black!65] (2,2) rectangle (2+\n/10,2.5); +\end{tikzpicture}% +}% +% +%<*example-movie.tex&standalone> +\end{document}% +% +%<*example-movie.tex> +% \end{macrocode} +% \iffalse +% +% \fi +% % % \Finale % \endinput -- cgit v1.2.3