texlive[63412] Master/texmf-dist: hvextern (27may22)
commits+karl at tug.org
commits+karl at tug.org
Fri May 27 22:41:15 CEST 2022
Revision: 63412
http://tug.org/svn/texlive?view=revision&revision=63412
Author: karl
Date: 2022-05-27 22:41:15 +0200 (Fri, 27 May 2022)
Log Message:
-----------
hvextern (27may22)
Modified Paths:
--------------
trunk/Master/texmf-dist/doc/latex/hvextern/Changes
trunk/Master/texmf-dist/doc/latex/hvextern/README
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-05-27 11:09:21 UTC (rev 63411)
+++ trunk/Master/texmf-dist/doc/latex/hvextern/Changes 2022-05-27 20:41:15 UTC (rev 63412)
@@ -1,5 +1,9 @@
hvextern.sty ----------------
+v 0.27 2022-05-27 - suppress overfull warnings for filename output
+ - fix for tcolorbox with minipage and breakable
+ - write filename in tt
+ - added verbose message for force=false
v 0.26 2022-05-23 - set filenames for twocolumn mode outer/inner
- added keywords outerFN and shiftFN
v 0.25 2022-05-19 - added framesep keyword
Modified: trunk/Master/texmf-dist/doc/latex/hvextern/README
===================================================================
--- trunk/Master/texmf-dist/doc/latex/hvextern/README 2022-05-27 11:09:21 UTC (rev 63411)
+++ trunk/Master/texmf-dist/doc/latex/hvextern/README 2022-05-27 20:41:15 UTC (rev 63412)
@@ -1,6 +1,6 @@
-This package allows to write code in tex, latex, Perl, Lua, Python,
-and MetaPost into external files, run that code and insert the
-output as pdf/png image or text. Parts of the external code
+This package allows to write code in TeX, LaTeX, ConTeXt, Java, Perl,
+Lua, Python, Shell, and MetaPost into external files, run that code and
+insert the output as pdf/png image or text. Parts of the external code
can be listed in the document.
The main LaTeX document must be run with the option --shell-escape
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-05-27 11:09:21 UTC (rev 63411)
+++ trunk/Master/texmf-dist/doc/latex/hvextern/hvextern.tex 2022-05-27 20:41:15 UTC (rev 63412)
@@ -1,11 +1,14 @@
+%% $Id: hvextern.tex 559 2022-05-27 06:59:29Z herbert $
\RequirePackage{pdfmanagement-testphase}
\DeclareDocumentMetadata{}
-\documentclass[ngerman,a4paper]{article}
+\documentclass[ngerman,a4paper,twoside]{article}
\usepackage{babel}
\usepackage{libertinus}
\setmonofont[Scale=MatchLowercase,FakeStretch=0.88]{AnonymousPro}
\usepackage{iftex}
+\usepackage{fancyhdr}
+\pagestyle{fancy}
\usepackage{hvlogos}
\usepackage{hvextern}
\usepackage{hvindex}
@@ -41,7 +44,8 @@
\begin{sloppypar}
-This package allows to write external \MP, \TeX, \ConTeXt, \LaTeX, \LuaTeX, \LuaLaTeX, \XeTeX, \XeLaTeX, Lua, Perl, Java and/or Python
+This package allows to write external \MP, \TeX, \ConTeXt, \LaTeX, \LuaTeX, \LuaLaTeX, \XeTeX, \XeLaTeX,
+\Index{Lua}, \Index{Perl}, \Index{Java} and/or \Index{Python}
source code, which will then be run via \texttt{shell escape} to create a PDF oder text output to include
it into the main \LaTeX\ document.
\end{sloppypar}
@@ -56,7 +60,9 @@
...
\end{externalDocument}
-\runExtCmd[<options>]{<command with arguments>}{<external filename without extension>}
+\runExtCmd[<options>]
+ {<command with arguments>}
+ {<external filename without extension>}
\end{verbatim}
The main document \emph{must} be run with the \Loption{-shell-escape} option, otherwise it won't work, e.g.:
@@ -85,10 +91,21 @@
\subsection{Without showing the code}
This document was run with \LuaLaTeX. Suppose you want to insert the output of a document
-which needs for several reasons a \pdfLaTeX\ run. Instead of created and running a document
+which needs for several reasons a \XeLaTeX\ run. Instead of created and running a document
outside of the main document and then to insert the output
we can do this from within this \LuaLaTeX\ document itself. The external document is compiled
-with \pdfLaTeX\ and the output is insert as pdf image. The \Index{source} code itself is not
+with \XeLaTeX\ and the output is insert as pdf image:
+\begin{externalDocument}[%
+ compiler=xelatex, inline, force, runs=2, grfOptions={height=8pt},%
+ crop, cropmargin=0, cleanup, docType=latex]{voss}
+\documentclass{ctexart}
+\pagestyle{empty}
+\begin{document}
+美好的一天.
+\end{document}
+\end{externalDocument}
+
+Another example which needs a \pdfLaTeX\ run. The \Index{source} code itself is also not
shown by the environment \Lenv{externalDocument}.
@@ -119,7 +136,7 @@
\end{minipage}
\begin{minipage}{.39\linewidth}
\begin{externalDocument}[
- compiler=pdflatex,force=false,cleanup={log,aux},verbose]{voss}
+ compiler=pdflatex,force=false,cleanup={log,aux},showFilename=false]{voss}
\documentclass{standalone}
%StartVisiblePreamble
\usepackage{fontenc}
@@ -1583,10 +1600,11 @@
\begin{externalDocument}[
- grfOptions={width=0.3\linewidth},
- pages={1,2,3},
+ grfOptions={width=0.31\linewidth},
+ pages={1,2,3,4,5,6},
pagesep=2pt,
frame,
+ framesep=0pt,
verbose=false,
compiler=context,
showFilename,
@@ -1616,16 +1634,20 @@
\chapter{Introduction}
\input knuth \input knuth
\chapter[rensselaer]{The Rensselaer family}
+\input knuth
\section{The first born}
\input knuth
\section{The early years}
... in those days Hasselt was ...
+\input knuth
\section{Living and workin in America}
\input knuth
\chapter[lansing]{The Lansing family}
... the Lansing family was also ...
+\input knuth
\chapter[cuyler]{The Cuyler family}
... much later Tydeman Cuyler ...
+\input knuth
\myhead[headlines]{And the end}
foo
\stoptext
@@ -1665,6 +1687,7 @@
\item[\Lkeyword{framesep}] Value for \Lcs{fbox} if keyword \texttt{frame} is used.
\item[\Lkeyword{mpsep}] Distance between code and output (default 1\,em).
\item[\Lkeyword{pagesep}] Distance between pages for multipage output (default 1\,em).
+\item[\Lkeyword{verbose}] Print control messages into the terminal and logfile.
\item[\Lkeyword{eps}] create an eps from the pdf (historical).
\end{description}
Modified: trunk/Master/texmf-dist/tex/latex/hvextern/hvextern.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/hvextern/hvextern.sty 2022-05-27 11:09:21 UTC (rev 63411)
+++ trunk/Master/texmf-dist/tex/latex/hvextern/hvextern.sty 2022-05-27 20:41:15 UTC (rev 63412)
@@ -1,3 +1,4 @@
+%% $Id: hvextern.sty 559 2022-05-27 06:59:29Z herbert $
%% This is file `hvextern.sty',
%%
%% Copyright (C) 2016-22
@@ -11,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.26}
-\ProvidesFile{hvextern}[2022/05/23 v\hvexternFileversion: package for running external documents (HV)]
+\def\hvexternFileversion{0.27}
+\ProvidesFile{hvextern}[2022/05/27 v\hvexternFileversion: package for running external documents (HV)]
\RequirePackage{shellesc,xkeyval,graphicx}
\RequirePackage{fancyvrb,tikz,listings,ifplatform}
@@ -30,6 +31,7 @@
\newcounter{hv at extern@runs}
\newcounter{@@@runs}
+\newcounter{hv at extern@pageCNT}
\newsavebox\hv at extern@box
\newlength\hv at LineWidth
\newlength\hv at TextWidth
@@ -42,7 +44,7 @@
\newlength\hv at extern@belowskip
\newlength\hv at extern@shiftFN
-\AtBeginDocument{\setlength\hv at LineWidth{\dimexpr\linewidth-2\fboxsep-2\fboxrule}}
+\AtBeginDocument{\setlength\hv at LineWidth{\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}}
@@ -57,7 +59,7 @@
\define at key{hv}{BObody}[black!8]{\def\hv at extern@BObody{#1}}
\define at key{hv}{docType}[latex]{\def\hv at extern@docType{#1}}
%\define at choicekey*+{hv}{docType}[\val\nr]{latex,mp,tex,py,pl,lua,java,context,sh}[latex]{%
-% \hv at typeout{>>>> ´doc type \nr}%
+% \hv at typeout{doc type \nr}%
% \def\hv at extern@docType{\val}%
%}{\PackageWarning{hvextern}{erroneous input (#1) for docType ignored. Using latex.}%
% \def\hv at extern@docType{latex}%
@@ -101,10 +103,11 @@
}
\define at boolkey{hv}[hv at extern@]{eps}[true]{}
\define at boolkey{hv}[hv at extern@]{verbose}[true]{}
-\def\hv at typeout#1{\ifhv at extern@verbose\typeout{#1}\fi}
+\def\hv at ex@typeout#1{\ifhv at extern@verbose\typeout{>>(hvextern) #1}\fi}
+
\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 typeout{>>>> Compiler type \nr}%
+ \hv at ex@typeout{Compiler type \nr}%
\def\hv at extern@compiler{\val}%
\edef\hv at extern@compilerNo{\nr}%
}{\PackageWarning{hvextern}{erroneous input (#1) for compiler ignored. Using pdflatex.}%
@@ -194,7 +197,7 @@
{
\clist_map_inline:nn {#1}{%
\ShellEscape{\hv at extern@progpath##1\space\hvExternDateiname}
- %\hv at typeout{>>>> sequencerun: ##1}
+ %\hv at ex@typeout{sequencerun: ##1}
}
}
\ExplSyntaxOff
@@ -203,10 +206,10 @@
\tcbset{breakable,left=2pt,right=2pt,top=2pt,bottom=2pt,boxsep=0pt}
\def\hv at marginpar#1{%
- \leavevmode\checkoddpage
- \sbox\hv at extern@box{\rotatebox[origin=C]{90}{\rule{2\hv at extern@shiftFN}{0pt}#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@
\noindent
+ \checkoddpage
\ifoddpage% we have a right page
\if at twocolumn
\ifhv at extern@outerFN
@@ -239,23 +242,23 @@
}
\newcommand\PreambleVerbatim[2][]{%
- \hv at typeout{Running PreambleVerbatim with #1, #2}%
+ \hv at ex@typeout{Running PreambleVerbatim with #1, #2}%
\ifhv at extern@tcbox
\begin{tcolorbox}[before skip=0pt,after skip=0pt]\VerbatimInput[#1]{#2}\end{tcolorbox}%
\else
- \VerbatimInput[#1]{#2}
+ \VerbatimInput[#1]{#2}%
\fi}
\newcommand\BodyVerbatim[2][]{%
- \hv at typeout{Running BodyVerbatim with #1, #2}%
+ \hv at ex@typeout{Running BodyVerbatim with #1, #2}%
\ifhv at extern@tcbox
\begin{tcolorbox}[before skip=0pt,after skip=0pt]\VerbatimInput[#1]{#2}\end{tcolorbox}%
\else
- \VerbatimInput[#1]{#2}
+ \VerbatimInput[#1]{#2}%
\fi}
\newcommand\PreambleListing[2][]{%
- \hv at typeout{Running PreambleListing with #1, #2}%
+ \hv at ex@typeout{Running PreambleListing with #1, #2}%
\ifhv at extern@tcbox
\begin{tcolorbox}[before skip=0pt,after skip=0pt%,top=-2pt
]\expandafter\lstinputlisting\expandafter[#1,aboveskip=0pt,belowskip=0pt]{#2}\end{tcolorbox}%
@@ -264,7 +267,7 @@
\fi}
\newcommand\BodyListing[2][]{%
- \hv at typeout{Running BodyListing with #1, #2}%
+ \hv at ex@typeout{Running BodyListing with #1, #2}%
\ifhv at extern@tcbox
\begin{tcolorbox}[before skip=0pt,after skip=0pt,%top=-2pt
]\expandafter\lstinputlisting\expandafter[#1,aboveskip=0pt,belowskip=0pt]{#2}\end{tcolorbox}%
@@ -291,13 +294,13 @@
{\perCent StopVisiblePreamble}
\def\hv at extern@runMP#1#2#3#4{% path compiler file extension
- \hv at typeout{>>>> running #1#2 #3#4}%
+ \hv at ex@typeout{running #1#2 #3#4}%
\ShellEscape{#1#2\space -tex=tex\space #3#4}%
- \hv at typeout{>>>> running #1tex #3}%
+ \hv at ex@typeout{running #1tex #3}%
\ShellEscape{#1tex\space "\string\input\space epsf\string\relax\string\nopagenumbers\string\epsfbox{#3.1}\string\bye"}%
- \hv at typeout{>>>> running #1dvips #3}%
+ \hv at ex@typeout{running #1dvips #3}%
\ShellEscape{#1dvips\space -j\space -E\space -o\space #3.eps\space epsf.dvi}%
- \hv at typeout{>>>> running #1epstopdf #3}%
+ \hv at ex@typeout{running #1epstopdf #3}%
\ShellEscape{#1epstopdf\space #3.eps}%
}
@@ -310,11 +313,11 @@
{\perCent StopVisiblePreamble}
\def\hv at extern@runTEX#1#2#3#4{% path compiler file extension
- \hv at typeout{>>>> running #1#2 #3#4}%
+ \hv at ex@typeout{running #1#2 #3#4}%
\ShellEscape{#1tex\space #3#4}%
- \hv at typeout{>>>> running #1dvips #3}%
+ \hv at ex@typeout{running #1dvips #3}%
\ShellEscape{#1dvips\space #3.dvi}%
- \hv at typeout{>>>> running ps2pdf #3.ps}%
+ \hv at ex@typeout{running ps2pdf #3.ps}%
\ShellEscape{#1ps2pdf\space -dAutoRotatePages=/None\space -dALLOWPSTRANSPARENCY\space #3.ps}%
}
@@ -328,11 +331,11 @@
% only for the sequence latex->dvips->ps2pdf
\def\hv at extern@runLATEX#1#2#3#4{% path-compiler-file-extension
- \hv at typeout{>>>> running #1#2 #3#4}%
+ \hv at ex@typeout{running #1#2 #3#4}%
\ShellEscape{#1#2\space #3#4}%
- \hv at typeout{>>>> running #1dvips #3}%
+ \hv at ex@typeout{running #1dvips #3}%
\ShellEscape{#1dvips\space #3.dvi}%
- \hv at typeout{>>>> running ps2pdf #3.ps}%
+ \hv at ex@typeout{running ps2pdf #3.ps}%
\ShellEscape{#1ps2pdf\space -dAutoRotatePages=/None\space -dALLOWPSTRANSPARENCY\space #3.ps}%
}
@@ -398,17 +401,17 @@
\xdef\hvExternDateiname{#2-\arabic{hv at example@counter}}%
\gdef\hv at extern@savePara{#1}%
\setkeys{hv}{#1}% \begin
- \hv at typeout{External filename: \hvExternDateiname}%
+ \hv at ex@typeout{External filename: \hvExternDateiname}%
\expandafter\IfFileExists\expandafter{\hv at extern@ExamplesDir\hvExternDateiname.pdf}{}{%
\expandafter\IfFileExists\expandafter{\hv at extern@ExamplesDir\hvExternDateiname.png}{}{%
\expandafter\IfFileExists\expandafter{\hv at extern@ExamplesDir\hvExternDateiname.txt}{}{%
\global\hv at extern@forcetrue}}}% set force, if no pdf or png exists
\begingroup
- \hv at typeout{>>> writing file \hvExternDateiname\hv at extern@ext ...}%
+ \hv at ex@typeout{writing file \hvExternDateiname\hv at extern@ext ...}%
\filecontents[force,noheader]{\hvExternDateiname\hv at extern@ext}%
}
{\endfilecontents% \end%
- \hv at typeout{>>> ... done}%
+ \hv at ex@typeout{... done}%
\global\stepcounter{hv at example@counter}%
\endgroup
\expandafter\hvExternSetKeys\expandafter{\hv at extern@savePara}%
@@ -415,30 +418,30 @@
\xdef\hv at extern@fullPath{\hv at extern@ExamplesDir\hvExternDateiname}%
\ifhv at extern@force
\ifx\hv at extern@runsequence\@empty
- \hv at typeout{>>>> force=true: running \hv at extern@progpath\hv at extern@compiler~ \hvExternDateiname\hv at extern@ext ...}%
+ \hv at ex@typeout{force=true: running \hv at extern@progpath\hv at extern@compiler~ \hvExternDateiname\hv at extern@ext ...}%
\setcounter{@@@runs}{\value{hv at extern@runs}}%
\loop\ifnum\the@@@runs > 0\relax
\ifcase\hv at extern@compilerNo \relax % we have metapost
- \hv at typeout{>>>> running mpost \hvExternDateiname\hv at extern@ext}%
+ \hv at ex@typeout{running mpost \hvExternDateiname\hv at extern@ext}%
\hv at extern@runMP{\hv at extern@progpath}{\hv at extern@compiler}{\hvExternDateiname}{\hv at extern@ext}%
\or %1
- \hv at typeout{>>>> running tex \hvExternDateiname\hv at extern@ext}%
+ \hv at ex@typeout{running tex \hvExternDateiname\hv at extern@ext}%
\hv at extern@runTEX{\hv at extern@progpath}{\hv at extern@compiler}{\hvExternDateiname}{\hv at extern@ext}%
\or %2
- \hv at typeout{>>>> running \hv at extern@compiler~ \hvExternDateiname\hv at extern@ext}%
+ \hv at ex@typeout{running \hv at extern@compiler~ \hvExternDateiname\hv at extern@ext}%
\hv at extern@runLATEX{\hv at extern@progpath}{\hv at extern@compiler}{\hvExternDateiname}{\hv at extern@ext}%
\else
\ifhv at extern@redirect
- \hv at typeout{>>>> running \hv at extern@compiler~ \hvExternDateiname\hv at extern@ext > \hvExternDateiname.txt}%
+ \hv at ex@typeout{running \hv at extern@compiler~ \hvExternDateiname\hv at extern@ext > \hvExternDateiname.txt}%
\ShellEscape{\hv at extern@progpath\hv at extern@compiler\space\hvExternDateiname\hv at extern@ext\space > \hvExternDateiname.txt}%
\else
- \hv at typeout{>>>> running \hv at extern@compiler~ \hvExternDateiname\hv at extern@ext}%
+ \hv at ex@typeout{running \hv at extern@compiler~ \hvExternDateiname\hv at extern@ext}%
\ShellEscape{\hv at extern@progpath\hv at extern@compiler\space\hvExternDateiname\hv at extern@ext}%
\fi
\fi
\addtocounter{@@@runs}{-1}%
\repeat
- \hv at typeout{>>> ... done}%
+ \hv at ex@typeout{... done}%
\ifhv at extern@biber
\ShellEscape{biber \hvExternDateiname}% NAch biber nochmal latex
\ShellEscape{\hv at extern@progpath\hv at extern@compiler\space\hvExternDateiname}%
@@ -457,9 +460,11 @@
\ifhv at extern@eps
\ShellEscape{pdftops -eps -f 1 -l 1 \hvExternDateiname.pdf}%
\fi
+ \else
+ \hv at ex@typeout{force=false: NOT running \hvExternDateiname\hv at extern@ext ...}%
\fi% end force
\ifhv at extern@code%-------------- Code Part
- \hv at typeout{>>>>Starting Code part with preamble ...}%
+ \hv at ex@typeout{Starting Code part with preamble ...}%
\begingroup
\if at twocolumn
\ifhv at extern@outerFN
@@ -472,6 +477,7 @@
\fi
\ifdim\hv at extern@mpwidth>\z@
\noindent
+ \tcbset{breakable=false}%
\minipage[\hv at extern@mpvalign]{\hv at extern@mpwidth}
\vspace{0pt}%
\else
@@ -499,12 +505,12 @@
\fi
\fi
\ifhv at extern@showFilename
- \hv at typeout{>>>> Set filename in the margin!}%
+ \hv at ex@typeout{Set filename in the margin!}%
\noindent
\hv at marginpar{\hvExternDateiname\hv at extern@ext}%
\fi
%
- \hv at typeout{>>>>Starting Code body ...}%}
+ \hv at ex@typeout{Starting Code body ...}%}
\ifhv at extern@usefancyvrb
\@nameuse{\hv at extern@docType @initTextFancy}%
\expandafter\fvset\expandafter{\hv at extern@lstOptions}%
@@ -521,7 +527,7 @@
\fi % end code part
\ifhv at extern@code\else % only if no code
\ifhv at extern@showFilename
- \hv at typeout{>>>> Set filename in the margin!}%
+ \hv at ex@typeout{Set filename in the margin!}%
\noindent
\hv at marginpar{\hvExternDateiname\hv at extern@ext}%
\fi
@@ -528,8 +534,8 @@
\fi
\ifhv at extern@moveToExampleDir
% \ShellEscape{mkdir\space\hv at extern@ExamplesDir/}%
- \hv at typeout{>>>> Move file into example dir}%
- \hv at typeout{>>>>>>\hvExternDateiname ----> \hv at extern@ExamplesDir}%
+ \hv at ex@typeout{Move file into example dir}%
+ \hv at ex@typeout{\hvExternDateiname ----> \hv at extern@ExamplesDir}%
\ShellEscape{\hv at move \hvExternDateiname.*\space \hv at extern@ExamplesDir}%
\fi
\ifhv at extern@includegraphic
@@ -537,10 +543,10 @@
\expandafter\includegraphics\expandafter[\hv at extern@grfOptions]{\hv at extern@fullPath}%
\else
\ifhv at extern@float
- \hv at typeout{>>>> Floating environment}%
+ \hv at ex@typeout{Floating environment}%
\expandafter\figure\expandafter[\hv at extern@floatsetting]
\else
- \hv at typeout{>>>> No floating environment}%
+ \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}%
@@ -550,12 +556,11 @@
\fi
\fi
\hv at extern@align
- \hv at typeout{>>>> Input image \hv at extern@fullPath}%
+ \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{%
- \hv at typeout{>>>> Image loop: next=\next\space \hv at extern@fullPath}%
\fbox{\expandafter\includegraphics\expandafter[\hv at extern@grfOptions,page=\next]%
{\hv at extern@fullPath}}\hspace{\hv at extern@pagesep}}%
\hspace*{-\hv at extern@pagesep}%
@@ -562,17 +567,17 @@
\endgroup
\else
\expandafter\@for\expandafter\next\expandafter:\expandafter=\hv at extern@pages\do{%
- \hv at typeout{>>>> Image loop: next=\next\space \hv at extern@fullPath}%
\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\unskip\strut\par\endgroup\fi
+ \ifdim\hv at extern@mpwidth>\z@ \endminipage\else\endgroup\fi
\fi
\fi
\else% no graphic, only text
@@ -585,7 +590,7 @@
\fi
\endminipage
\else
- \vspace{\hv at extern@belowbodyskip}
+ \vspace{\hv at extern@belowbodyskip}%
\noindent
\ifhv at extern@usefancyvrb
\expandafter\VerbatimInput\expandafter[\hv at extern@textOptions]{\hv at extern@fullPath.txt}%
@@ -603,7 +608,7 @@
\setkeys{hv}{code=false,includegraphic=false,#1}%
\xdef\hvExternDateiname{#3-\arabic{hv at example@counter}}%
\xdef\hv at extern@fullPath{\hv at extern@ExamplesDir\hvExternDateiname}%
- \hv at typeout{>>>> running #2}%
+ \hv at ex@typeout{running #2}%
\ifhv at extern@redirect
\ShellEscape{\hv at extern@progpath#2 > \hv at extern@ExamplesDir\hvExternDateiname.txt}%
\else
@@ -616,14 +621,14 @@
\expandafter\includegraphics\expandafter[\hv at extern@grfOptions]{\hv at extern@ExamplesDir\hvExternDateiname}%
\else
\ifhv at extern@float
- \hv at typeout{>>>> Floating environment}%
+ \hv at ex@typeout{Floating environment}%
\expandafter\figure\expandafter[\hv at extern@floatsetting]
\else
- \hv at typeout{>>>> No floating environment}%
+ \hv at ex@typeout{No floating environment}%
\par\noindent\begingroup
\fi
\hv at extern@align
- \hv at typeout{>>>> Input image \hv at extern@ExamplesDir\hvExternDateiname}%
+ \hv at ex@typeout{Input image \hv at extern@ExamplesDir\hvExternDateiname}%
\ifhv at extern@frame
\begingroup
\fboxsep=\hv at extern@framesep
@@ -646,7 +651,7 @@
\fi
\else% no graphic, only text
\ifhv at extern@float
- \hv at typeout{>>>> Floating environment}%
+ \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}
More information about the tex-live-commits
mailing list.