texlive[63475] Master/texmf-dist: hvextern (2jun22)
commits+karl at tug.org
commits+karl at tug.org
Thu Jun 2 21:59:29 CEST 2022
Revision: 63475
http://tug.org/svn/texlive?view=revision&revision=63475
Author: karl
Date: 2022-06-02 21:59:29 +0200 (Thu, 02 Jun 2022)
Log Message:
-----------
hvextern (2jun22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/hvextern/Changes
trunk/Master/texmf-dist/doc/latex/hvextern/hvdoctools.sty
trunk/Master/texmf-dist/doc/latex/hvextern/hvextern.pdf
trunk/Master/texmf-dist/doc/latex/hvextern/hvextern.tex
trunk/Master/texmf-dist/tex/latex/hvextern/hvextern.sty
Modified: trunk/Master/texmf-dist/doc/latex/hvextern/Changes
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hvextern/Changes 2022-06-02 19:59:02 UTC (rev 63474)
+++ trunk/Master/texmf-dist/doc/latex/hvextern/Changes 2022-06-02 19:59:29 UTC (rev 63475)
@@ -1,5 +1,8 @@
hvextern.sty ----------------
+v 0.28 2022-06-01 - added option output
+ - added macro \defMarkerType for own marker setting
+ (is only a link to the internal macro \hv at extern@ExampleType)
v 0.27 2022-05-27 - suppress overfull warnings for filename output
- fix for tcolorbox with minipage and breakable
- write filename in tt
Modified: trunk/Master/texmf-dist/doc/latex/hvextern/hvdoctools.sty
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hvextern/hvdoctools.sty 2022-06-02 19:59:02 UTC (rev 63474)
+++ trunk/Master/texmf-dist/doc/latex/hvextern/hvdoctools.sty 2022-06-02 19:59:29 UTC (rev 63475)
@@ -1,4 +1,4 @@
-%% $Id: hvdoctools.sty 1127 2019-12-29 21:42:29Z herbert $
+%% $Id: hvdoctools.sty 559 2022-05-27 06:59:29Z herbert $
%%
%% This file is distributed under the terms of the LaTeX Project Public
%% License from CTAN archives in directory macros/latex/base/lppl.txt.
Modified: trunk/Master/texmf-dist/doc/latex/hvextern/hvextern.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/hvextern/hvextern.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hvextern/hvextern.tex 2022-06-02 19:59:02 UTC (rev 63474)
+++ trunk/Master/texmf-dist/doc/latex/hvextern/hvextern.tex 2022-06-02 19:59:29 UTC (rev 63475)
@@ -1,4 +1,4 @@
-%% $Id: hvextern.tex 559 2022-05-27 06:59:29Z herbert $
+%% $Id: hvextern.tex 562 2022-06-01 15:37:46Z herbert $
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
\documentclass[ngerman,a4paper,twoside]{article}
@@ -1285,7 +1285,7 @@
\begin{externalDocument}[
grfOptions={width=0.30\linewidth},
- pages={1,3,5},
+ pages={1,2,3,4,5,6},
pagesep=2pt,
frame,
runsequence={lualatex,biber,xindex -l de -c AU,lualatex,lualatex},
@@ -1303,7 +1303,6 @@
%StopVisiblePreamble
\usepackage{blindtext}
\begin{document}
-Sort with xindex \verb|-l DE --config AU|
\blindtext
\Index{Österreich} \Index{Öresund}
\Index{Ostern} \Index{Ober} \Index{Oberin}
@@ -1386,13 +1385,13 @@
\begin{externalDocument}[
- grfOptions={width=0.45\linewidth},
- pages={1,3},
+ grfOptions={width=0.23\linewidth},
+ pages={1,2,3,4},pagesep=1pt,
frame,compiler=pdflatex,
showFilename,
% crop,
force=false,runs=2,code,docType=latex,
- frame,usefancyvrb]{voss}
+ frame,framesep=0pt,usefancyvrb]{voss}
%StartVisiblePreamble
\documentclass[chapterprefix=on,parskip=half-,DIV=12,fontsize=12pt]{scrbook}
\DeclareNewSectionCommand[
@@ -1445,10 +1444,14 @@
\subsection{Vertical space}
\begin{verbatim}
-\define at key{hv}{aboveskip}[\medskipamount]{\setlength\hv at extern@aboveskip{#1}}
-\define at key{hv}{belowpreambleskip}[\smallskipamount]{\setlength\hv at extern@belowpreambleskip{#1}}
-\define at key{hv}{belowbodyskip}[\smallskipamount]{\setlength\hv at extern@belowbodyskip{#1}}
-\define at key{hv}{belowskip}[\medskipamount]{\setlength\hv at extern@belowskip{#1}}
+\define at key{hv}{aboveskip}[\medskipamount]{%
+ \setlength\hv at extern@aboveskip{#1}}
+\define at key{hv}{belowpreambleskip}[\smallskipamount]{%
+ \setlength\hv at extern@belowpreambleskip{#1}}
+\define at key{hv}{belowbodyskip}[\smallskipamount]{%
+ \setlength\hv at extern@belowbodyskip{#1}}
+\define at key{hv}{belowskip}[\medskipamount]{%
+ \setlength\hv at extern@belowskip{#1}}
\end{verbatim}
\begin{description}
@@ -1460,9 +1463,149 @@
the command \Lcs{runExtCmd} (default \Lcs{medskipamount})
\end{description}
+
+\subsection{No output}
+By default there is an image or text as output of the external run. In a case, where
+you are only interested in the code, which should be formatted in the same style as
+other examples, you can set \Lkeyword{output} to false.
+
+
+\begin{externalDocument}[
+ output=false,
+ frame,compiler=pdflatex,
+ crop,
+ force,runs=2,code,docType=latex,
+ frame,usefancyvrb]{voss}
+%StartVisiblePreamble
+\documentclass[chapterprefix=on,parskip=half-,DIV=12,fontsize=12pt]{scrbook}
+\DeclareNewSectionCommand[
+ style=section,
+ level=4,
+ beforeskip=-3.25ex plus -1ex minus -.2ex,
+ afterskip=1.5ex plus .2ex,
+ font=\normalsize,
+ indent=0pt,
+ counterwithin=subsubsection
+]{subsubsubsection}
+%StopVisiblePreamble
+\RedeclareSectionCommand[
+ level=5,
+ toclevel=5,
+ tocindent=13em,
+ tocnumwidth=5.9em,
+ counterwithin=subsubsubsection
+]{paragraph}
+\RedeclareSectionCommand[
+ level=6,
+ toclevel=6,
+ tocindent=15em,
+ tocnumwidth=6.8em
+]{subparagraph}
+\setcounter{secnumdepth}{\subsubsubsectionnumdepth}
+\setcounter{tocdepth}{\subsubsubsectiontocdepth}
+\usepackage[ngerman]{babel}
+\usepackage{libertinus}
+\usepackage{blindtext}
+\begin{document}
+\tableofcontents
+\chapter{Einführung}
+\section{Ein Abschnitt}
+\subsection{Ein Unterabschnitt}
+\subsubsection{Ein Unter-Unterabschnitt}
+\subsubsubsection{Ein Unter-Unter-Unterabschnitt}
+\blindtext
+\end{document}
+\end{externalDocument}
+
+
+\clearpage%%%%%%%%%%%%%%
+
+\section{Defining new marker}
+Suppose you do not want for a \LaTeX\ document the complete body part between \Lcs{begin}
+and \Lcs{end} printed. In this case you can define own markers, e.g.:
+
+\begin{Verbatim}[fontsize=\small,label={New marker definition},fontfamily=tt]
+\defMarkerType{ltx}
+ {\perCent StartVisibleBody}
+ {\perCent StopVisibleBody}
+ {\perCent StartVisiblePreamble}
+ {\perCent StopVisiblePreamble}
+\end{Verbatim}
+
+Whith this definition and the setting \Lkeyset{docType=ltx} the last example looks like:
+
+
+\defMarkerType{ltx}
+ {\perCent StartVisibleBody}
+ {\perCent StopVisibleBody}
+ {\perCent StartVisiblePreamble}
+ {\perCent StopVisiblePreamble}
+
+
+\begin{externalDocument}[
+ grfOptions={width=\dimexpr\linewidth-2\fboxsep-2\fboxrule\relax},
+% pages={1},
+ crop,
+% mpwidth=0.6\linewidth,
+ frame,
+ compiler=pdflatex,
+ showFilename,
+ force=true,
+ runs=2,code,docType=ltx,
+ usefancyvrb]{voss}
+\documentclass[chapterprefix=on,parskip=half-,DIV=12,fontsize=12pt]{scrreprt}
+%StartVisiblePreamble
+\DeclareNewSectionCommand[
+ style=section,
+ level=4,
+ beforeskip=-3.25ex plus -1ex minus -.2ex,
+ afterskip=1.5ex plus .2ex,
+ font=\normalsize,
+ indent=0pt,
+ counterwithin=subsubsection
+]{subsubsubsection}
+%StopVisiblePreamble
+\RedeclareSectionCommand[
+ level=5,
+ toclevel=5,
+ tocindent=13em,
+ tocnumwidth=5.9em,
+ counterwithin=subsubsubsection
+]{paragraph}
+\RedeclareSectionCommand[
+ level=6,
+ toclevel=6,
+ tocindent=15em,
+ tocnumwidth=6.8em
+]{subparagraph}
+\setcounter{secnumdepth}{\subsubsubsectionnumdepth}
+\setcounter{tocdepth}{\subsubsubsectiontocdepth}
+\usepackage[ngerman]{babel}
+\usepackage{libertinus}
+\usepackage{blindtext}
+\makeatletter\let\ps at plain\ps at empty\makeatother
+\begin{document}
+\tableofcontents
+\chapter{Einführung}
+\section{Ein Abschnitt}
+\subsection{Ein Unterabschnitt}
+\subsubsection{Ein Unter-Unterabschnitt}
+%StartVisibleBody
+\subsubsubsection{Ein Unter-Unter-Unterabschnitt}
+%StopVisibleBody
+\blindtext
+\end{document}
+\end{externalDocument}
+
+
+
+
\section{Supported engines}
\subsection{\MP\ example}
+Needs the run sequence setting to get a \texttt{pdf} from the created \texttt{dvi} output.
+It is already internally defined.
+
\begin{externalDocument}[
% grfOptions={width=0.45\linewidth},
% pages={1,3},
@@ -1495,6 +1638,10 @@
\subsection{plain\TeX\ example}
+Needs the run sequence setting to get a \texttt{pdf} from the created \texttt{dvi} output.
+It is already internally defined.
+
+
\begin{externalDocument}[
grfOptions={width=0.5\linewidth},
% pages={1,3},
@@ -1557,7 +1704,9 @@
-\subsection{\LaTeX\ example}
+\subsection{\LuaLaTeX\ example}
+With Lua\LaTeX\ and and using PostScript code the intermediate GhostScript run is
+not needed. The \texttt{pdf} is directly created.
\begin{externalDocument}[
grfOptions={width=0.5\linewidth},
Modified: trunk/Master/texmf-dist/tex/latex/hvextern/hvextern.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hvextern/hvextern.sty 2022-06-02 19:59:02 UTC (rev 63474)
+++ trunk/Master/texmf-dist/tex/latex/hvextern/hvextern.sty 2022-06-02 19:59:29 UTC (rev 63475)
@@ -1,4 +1,4 @@
-%% $Id: hvextern.sty 559 2022-05-27 06:59:29Z herbert $
+%% $Id: hvextern.sty 562 2022-06-01 15:37:46Z herbert $
%% This is file `hvextern.sty',
%%
%% Copyright (C) 2016-22
@@ -12,8 +12,8 @@
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
-\def\hvexternFileversion{0.27}
-\ProvidesFile{hvextern}[2022/05/27 v\hvexternFileversion: package for running external documents (HV)]
+\def\hvexternFileversion{0.28}
+\ProvidesFile{hvextern}[2022/06/01 v\hvexternFileversion: package for running external documents (HV)]
\RequirePackage{shellesc,xkeyval,graphicx}
\RequirePackage{fancyvrb,tikz,listings,ifplatform}
@@ -33,7 +33,6 @@
\newcounter{@@@runs}
\newcounter{hv at extern@pageCNT}
\newsavebox\hv at extern@box
-\newlength\hv at LineWidth
\newlength\hv at TextWidth
\newlength\hv at extern@pagesep
\newlength\hv at extern@mpsep
@@ -44,7 +43,9 @@
\newlength\hv at extern@belowskip
\newlength\hv at extern@shiftFN
-\AtBeginDocument{\setlength\hv at LineWidth{\the\dimexpr\linewidth-2\fboxsep-2\fboxrule\relax}}
+\newlength\hvExternLineWidth
+\AtBeginDocument{\hvExternLineWidth=\the\dimexpr\linewidth-2\fboxsep-2\fboxrule\relax}
+
\newlength\hv at extern@mpwidth \setlength\hv at extern@mpwidth{\z@}
\define at key{hv}{progpath}{\def\hv at extern@progpath{#1}}
@@ -86,6 +87,7 @@
\define at boolkey{hv}[hv at extern@]{xindex}[true]{}
\define at key{hv}{xindexOptions}[]{\def\hv at extern@xindexOptions{#1}}
\define at boolkey{hv}[hv at extern@]{includegraphic}[true]{}
+\define at boolkey{hv}[hv at extern@]{output}[true]{}
\define at boolkey{hv}[hv at extern@]{inline}[true]{\hv at extern@codefalse\hv at extern@showFilenamefalse}
\define at boolkey{hv}[hv at extern@]{frame}[true]{}
\define at key{hv}{framesep}[\the\fboxsep]{\setlength\hv at extern@framesep{#1}}
@@ -107,12 +109,12 @@
\define at choicekey*+{hv}{compiler}[\val\nr]{mpost,tex,latex,luatex,python3,perl,lua,java,%
xetex,pdflatex,lualatex,xelatex,context,sh,texlua}[pdflatex]{%
- \hv at ex@typeout{Compiler type \nr}%
+ \hv at ex@typeout{Compiler type (\nr) \val}%
\def\hv at extern@compiler{\val}%
\edef\hv at extern@compilerNo{\nr}%
-}{\PackageWarning{hvextern}{erroneous input (#1) for compiler ignored. Using pdflatex.}%
- \def\hv at extern@compiler{pdflatex}%
- \def\hv at extern@compilerNo{9}%
+}{\PackageWarning{hvextern}{unknown compiler type (#1). Maybe you should define a run sequence???}%
+ \def\hv at extern@compiler{#1}%
+ \def\hv at extern@compilerNo{-1}%
}
\define at key{hv}{aboveskip}[\medskipamount]{\setlength\hv at extern@aboveskip{#1}}
\define at key{hv}{belowpreambleskip}[\smallskipamount]{\setlength\hv at extern@belowpreambleskip{#1}}
@@ -139,6 +141,7 @@
BGbody=black!8,% Backgroundcolor for body
BOpreamble=black!12,% Bodercolor for preamble
BObody=black!8,% Bodercolor for body
+ output=true,% with false only code is shown
includegraphic=true,% Grafik einbinden oder User überlassen
inline=false,% Grafik nicht in derselben Zeile
runs=1,% Anzahl Compiler-Durchläufe
@@ -196,8 +199,8 @@
\NewDocumentCommand\run at hv@extern at sequenceList{ m }
{
\clist_map_inline:nn {#1}{%
- \ShellEscape{\hv at extern@progpath##1\space\hvExternDateiname}
- %\hv at ex@typeout{sequencerun: ##1}
+ \hv at ex@typeout{sequencerun: ##1}%
+ \ShellEscape{\hv at extern@progpath##1\space\hvExternDateiname}%
}
}
\ExplSyntaxOff
@@ -205,6 +208,7 @@
\lstset{belowskip=0pt,aboveskip=0pt}% global
\tcbset{breakable,left=2pt,right=2pt,top=2pt,bottom=2pt,boxsep=0pt}
+
\def\hv at marginpar#1{%
\sbox\hv at extern@box{\rotatebox[origin=C]{90}{\rule{2\hv at extern@shiftFN}{0pt}\texttt{#1}}}%
\ht\hv at extern@box=\z@ \wd\hv at extern@box=\z@ \dp\hv at extern@box=\z@
@@ -284,8 +288,11 @@
\@namedef{#1 at initPreamble}{linerange={#4}-{#5},includerangemarker=false}% code
}% {} ^^to prevent problems with lua comments
+% for the user interface
+\let\defMarkerType\hv at extern@ExampleType
+
%%------------------ the config part --------------------
-%\input{hvextern-mp.cfg}
+
%---- MP
\hv at extern@ExampleType{mp}
{beginfig(1)}
@@ -303,7 +310,6 @@
\hv at ex@typeout{running #1epstopdf #3}%
\ShellEscape{#1epstopdf\space #3.eps}%
}
-
%---- TeX
%\input{hvextern-tex.cfg}
\hv at extern@ExampleType{tex}
@@ -463,6 +469,7 @@
\else
\hv at ex@typeout{force=false: NOT running \hvExternDateiname\hv at extern@ext ...}%
\fi% end force
+ \hfuzz=\maxdimen
\ifhv at extern@code%-------------- Code Part
\hv at ex@typeout{Starting Code part with preamble ...}%
\begingroup
@@ -538,67 +545,69 @@
\hv at ex@typeout{\hvExternDateiname ----> \hv at extern@ExamplesDir}%
\ShellEscape{\hv at move \hvExternDateiname.*\space \hv at extern@ExamplesDir}%
\fi
- \ifhv at extern@includegraphic
- \ifhv at extern@inline
- \expandafter\includegraphics\expandafter[\hv at extern@grfOptions]{\hv at extern@fullPath}%
- \else
- \ifhv at extern@float
- \hv at ex@typeout{Floating environment}%
- \expandafter\figure\expandafter[\hv at extern@floatsetting]
+ \ifhv at extern@output
+ \ifhv at extern@includegraphic
+ \ifhv at extern@inline
+ \expandafter\includegraphics\expandafter[\hv at extern@grfOptions]{\hv at extern@fullPath}%
\else
- \hv at ex@typeout{No floating environment}%
- \vspace{\hv at extern@belowbodyskip}
- \ifdim\hv at extern@mpwidth>\z@
- \hfill\minipage[\hv at extern@mpvalign]{\dimexpr\linewidth-\hv at extern@mpwidth-1em\relax}\vspace{0pt}%
+ \ifhv at extern@float
+ \hv at ex@typeout{Floating environment}%
+ \expandafter\figure\expandafter[\hv at extern@floatsetting]
\else
- \vspace{\hv at extern@belowbodyskip}\noindent
+ \hv at ex@typeout{No floating environment}%
+ \vspace{\hv at extern@belowbodyskip}
+ \ifdim\hv at extern@mpwidth>\z@
+ \hfill\minipage[\hv at extern@mpvalign]{\dimexpr\linewidth-\hv at extern@mpwidth-1em\relax}\vspace{0pt}%
+ \else
+ \vspace{\hv at extern@belowbodyskip}\noindent
+ \begingroup
+ \fi
+ \fi
+ \hv at extern@align
+ \hv at ex@typeout{Input image \hv at extern@fullPath}%
+ \ifhv at extern@frame
\begingroup
+ \fboxsep=\hv at extern@framesep
+ \expandafter\@for\expandafter\next\expandafter:\expandafter=\hv at extern@pages\do{%
+ \fbox{\expandafter\includegraphics\expandafter[\hv at extern@grfOptions,page=\next]%
+ {\hv at extern@fullPath}}\hspace{\hv at extern@pagesep}}%
+ \hspace*{-\hv at extern@pagesep}%
+ \endgroup
+ \else
+ \expandafter\@for\expandafter\next\expandafter:\expandafter=\hv at extern@pages\do{%
+ \expandafter\includegraphics\expandafter[\hv at extern@grfOptions,page=\next]%
+ {\hv at extern@fullPath}\hspace{\hv at extern@pagesep}}%
+ \hspace*{-\hv at extern@pagesep}%
\fi
+ \par% for \hv at extern@align
+ \ifx\hv at extern@caption\@empty\else\caption{\hv at extern@caption}\fi
+ \ifx\hv at extern@label\@empty\else\label{\hv at extern@label}\fi
+ \ifhv at extern@float
+ \endfigure
+ \else
+ \ifdim\hv at extern@mpwidth>\z@ \endminipage\else\endgroup\fi
+ \fi
\fi
- \hv at extern@align
- \hv at ex@typeout{Input image \hv at extern@fullPath}%
- \ifhv at extern@frame
- \begingroup
- \fboxsep=\hv at extern@framesep
- \expandafter\@for\expandafter\next\expandafter:\expandafter=\hv at extern@pages\do{%
- \fbox{\expandafter\includegraphics\expandafter[\hv at extern@grfOptions,page=\next]%
- {\hv at extern@fullPath}}\hspace{\hv at extern@pagesep}}%
- \hspace*{-\hv at extern@pagesep}%
- \endgroup
+ \else% no graphic, only text
+ \ifdim\hv at extern@mpwidth>\z@
+ \hfill\minipage[t]{\dimexpr\linewidth-\hv at extern@mpwidth-\hv at extern@mpsep\relax}\vspace{0pt}
+ \ifhv at extern@usefancyvrb
+ \expandafter\VerbatimInput\expandafter[\hv at extern@textOptions]{\hv at extern@fullPath.txt}%
+ \else
+ \expandafter\lstinputlisting\expandafter[\hv at extern@textOptions]{\hv at extern@fullPath.txt}%
+ \fi
+ \endminipage
\else
- \expandafter\@for\expandafter\next\expandafter:\expandafter=\hv at extern@pages\do{%
- \expandafter\includegraphics\expandafter[\hv at extern@grfOptions,page=\next]%
- {\hv at extern@fullPath}\hspace{\hv at extern@pagesep}}%
- \hspace*{-\hv at extern@pagesep}%
+ \vspace{\hv at extern@belowbodyskip}%
+ \noindent
+ \ifhv at extern@usefancyvrb
+ \expandafter\VerbatimInput\expandafter[\hv at extern@textOptions]{\hv at extern@fullPath.txt}%
+ \else
+ \expandafter\lstinputlisting\expandafter[\hv at extern@textOptions]{\hv at extern@fullPath.txt}%
+ \fi
\fi
- \par% for \hv at extern@align
- \ifx\hv at extern@caption\@empty\else\caption{\hv at extern@caption}\fi
- \ifx\hv at extern@label\@empty\else\label{\hv at extern@label}\fi
- \ifhv at extern@float
- \endfigure
- \else
- \ifdim\hv at extern@mpwidth>\z@ \endminipage\else\endgroup\fi
- \fi
\fi
- \else% no graphic, only text
- \ifdim\hv at extern@mpwidth>\z@
- \hfill\minipage[t]{\dimexpr\linewidth-\hv at extern@mpwidth-\hv at extern@mpsep\relax}\vspace{0pt}
- \ifhv at extern@usefancyvrb
- \expandafter\VerbatimInput\expandafter[\hv at extern@textOptions]{\hv at extern@fullPath.txt}%
- \else
- \expandafter\lstinputlisting\expandafter[\hv at extern@textOptions]{\hv at extern@fullPath.txt}%
- \fi
- \endminipage
- \else
- \vspace{\hv at extern@belowbodyskip}%
- \noindent
- \ifhv at extern@usefancyvrb
- \expandafter\VerbatimInput\expandafter[\hv at extern@textOptions]{\hv at extern@fullPath.txt}%
- \else
- \expandafter\lstinputlisting\expandafter[\hv at extern@textOptions]{\hv at extern@fullPath.txt}%
- \fi
- \fi
- \fi
+ \fi% end of \ifoutput
\ifhv at extern@force\expandafter\run at hv@extern at cleanup\expandafter{\hv at extern@cleanup}\fi% cleanup
\vspace{\hv at extern@belowskip}%
}
@@ -616,61 +625,63 @@
\fi
\global\stepcounter{hv at example@counter}%
%------------------------------------- output -----------------------------------
- \ifhv at extern@includegraphic
- \ifhv at extern@inline
- \expandafter\includegraphics\expandafter[\hv at extern@grfOptions]{\hv at extern@ExamplesDir\hvExternDateiname}%
- \else
- \ifhv at extern@float
- \hv at ex@typeout{Floating environment}%
- \expandafter\figure\expandafter[\hv at extern@floatsetting]
- \else
- \hv at ex@typeout{No floating environment}%
- \par\noindent\begingroup
- \fi
- \hv at extern@align
- \hv at ex@typeout{Input image \hv at extern@ExamplesDir\hvExternDateiname}%
- \ifhv at extern@frame
- \begingroup
- \fboxsep=\hv at extern@framesep
- \expandafter\@for\expandafter\next\expandafter:\expandafter=\hv at extern@pages\do{%
- \fbox{\expandafter\includegraphics\expandafter[\hv at extern@grfOptions,page=\next]{\hv at extern@fullPath}}%
+ \ifhv at extern@output
+ \ifhv at extern@includegraphic
+ \ifhv at extern@inline
+ \expandafter\includegraphics\expandafter[\hv at extern@grfOptions]{\hv at extern@ExamplesDir\hvExternDateiname}%
+ \else
+ \ifhv at extern@float
+ \hv at ex@typeout{Floating environment}%
+ \expandafter\figure\expandafter[\hv at extern@floatsetting]
+ \else
+ \hv at ex@typeout{No floating environment}%
+ \par\noindent\begingroup
+ \fi
+ \hv at extern@align
+ \hv at ex@typeout{Input image \hv at extern@ExamplesDir\hvExternDateiname}%
+ \ifhv at extern@frame
+ \begingroup
+ \fboxsep=\hv at extern@framesep
+ \expandafter\@for\expandafter\next\expandafter:\expandafter=\hv at extern@pages\do{%
+ \fbox{\expandafter\includegraphics\expandafter[\hv at extern@grfOptions,page=\next]{\hv at extern@fullPath}}%
\hspace{5pt}}\hspace*{-5pt}%
- \endgroup
- \else
- \expandafter\@for\expandafter\next\expandafter:\expandafter=\hv at extern@pages\do{%
- \expandafter\includegraphics\expandafter[\hv at extern@grfOptions,page=\next]{\hv at extern@fullPath}%
- \hspace{5pt}}\hspace*{-5pt}%
- \fi
- \ifx\hv at extern@caption\@empty\else\caption{\hv at extern@caption}\fi
- \ifx\hv at extern@label\@empty\else\label{\hv at extern@label}\fi
- \ifhv at extern@float
- \endfigure
- \else
- \ifdim\hv at extern@mpwidth>\z@ \endminipage\else\par\endgroup\fi
- \fi
- \fi
- \else% no graphic, only text
- \ifhv at extern@float
- \hv at ex@typeout{Floating environment}%
- \expandafter\figure\expandafter[!htb]
- \ifhv at extern@usefancyvrb
- \expandafter\BodyVerbatim\expandafter[\hv at extern@lstOptions]{\hv at extern@fullPath.txt}
- \else
- \expandafter\BodyListing\expandafter[\hv at extern@lstOptions]{\hv at extern@fullPath.txt}
- \fi
- \ifx\hv at extern@caption\@empty\else\caption{\hv at extern@caption}\fi
- \ifx\hv at extern@label\@empty\else\label{\hv at extern@label}\fi
- \endfigure
- \else
- \noindent
- \ifhv at extern@usefancyvrb
- \expandafter\BodyVerbatim\expandafter[\hv at extern@lstOptions]{\hv at extern@fullPath.txt}
- \else
- \expandafter\BodyListing\expandafter[\hv at extern@lstOptions]{\hv at extern@fullPath.txt}
- \fi
- \fi
- \fi
- \ifhv at extern@force\expandafter\run at hv@extern at cleanup\expandafter{\hv at extern@cleanup}\fi% cleanup
+ \endgroup
+ \else
+ \expandafter\@for\expandafter\next\expandafter:\expandafter=\hv at extern@pages\do{%
+ \expandafter\includegraphics\expandafter[\hv at extern@grfOptions,page=\next]{\hv at extern@fullPath}%
+ \hspace{5pt}}\hspace*{-5pt}%
+ \fi
+ \ifx\hv at extern@caption\@empty\else\caption{\hv at extern@caption}\fi
+ \ifx\hv at extern@label\@empty\else\label{\hv at extern@label}\fi
+ \ifhv at extern@float
+ \endfigure
+ \else
+ \ifdim\hv at extern@mpwidth>\z@ \endminipage\else\par\endgroup\fi
+ \fi
+ \fi
+ \else% no graphic, only text
+ \ifhv at extern@float
+ \hv at ex@typeout{Floating environment}%
+ \expandafter\figure\expandafter[!htb]
+ \ifhv at extern@usefancyvrb
+ \expandafter\BodyVerbatim\expandafter[\hv at extern@lstOptions]{\hv at extern@fullPath.txt}
+ \else
+ \expandafter\BodyListing\expandafter[\hv at extern@lstOptions]{\hv at extern@fullPath.txt}
+ \fi
+ \ifx\hv at extern@caption\@empty\else\caption{\hv at extern@caption}\fi
+ \ifx\hv at extern@label\@empty\else\label{\hv at extern@label}\fi
+ \endfigure
+ \else
+ \noindent
+ \ifhv at extern@usefancyvrb
+ \expandafter\BodyVerbatim\expandafter[\hv at extern@lstOptions]{\hv at extern@fullPath.txt}
+ \else
+ \expandafter\BodyListing\expandafter[\hv at extern@lstOptions]{\hv at extern@fullPath.txt}
+ \fi
+ \fi
+ \fi
+ \fi% end \ifoutput
+ \ifhv at extern@force\expandafter\run at hv@extern at cleanup\expandafter{\hv at extern@cleanup}\fi% cleanup
\endgroup
}
More information about the tex-live-commits
mailing list.