From 4b11f001033c31cf22cda6f3d77dc2b5f013cd5b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Thu, 23 Nov 2023 03:01:03 +0000 Subject: CTAN sync 202311230301 --- macros/latex/contrib/hvextern/Changes | 1 + macros/latex/contrib/hvextern/README | 4 +-- macros/latex/contrib/hvextern/doc/hvextern.pdf | Bin 1498330 -> 1483008 bytes macros/latex/contrib/hvextern/doc/hvextern.tex | 27 ++++++++++++--------- macros/latex/contrib/hvextern/latex/hvextern.sty | 17 ++++++------- .../contrib/hvextern/script/hvextern-checkfile.lua | 0 6 files changed, 26 insertions(+), 23 deletions(-) mode change 100644 => 100755 macros/latex/contrib/hvextern/script/hvextern-checkfile.lua (limited to 'macros/latex/contrib/hvextern') diff --git a/macros/latex/contrib/hvextern/Changes b/macros/latex/contrib/hvextern/Changes index ac24c74145..a68cd3d68f 100644 --- a/macros/latex/contrib/hvextern/Changes +++ b/macros/latex/contrib/hvextern/Changes @@ -1,5 +1,6 @@ hvextern.sty ---------------- +v 0.37b 2023-11-22 - fix typo in documentation v 0.37a 2023-11-20 - fix bug in documentation v 0.37 2023-08-29 - do not write files without --shell-escape v 0.36 2023-08-24 - added option "vshift" for inline objects diff --git a/macros/latex/contrib/hvextern/README b/macros/latex/contrib/hvextern/README index c79f2266ee..adbd87ba71 100644 --- a/macros/latex/contrib/hvextern/README +++ b/macros/latex/contrib/hvextern/README @@ -6,11 +6,11 @@ The main LaTeX document must be run with the option --shell-escape %% It may be distributed and/or modified under the -%% conditions of the LaTeX Project Public License, either version 1.3 +%% conditions of the LaTeX Project Public License, either version 1.3c %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX +%% and version 1.3c or later is part of all distributions of LaTeX %% version 2005/12/01 or later. diff --git a/macros/latex/contrib/hvextern/doc/hvextern.pdf b/macros/latex/contrib/hvextern/doc/hvextern.pdf index a6755a2935..43c19c90f5 100644 Binary files a/macros/latex/contrib/hvextern/doc/hvextern.pdf and b/macros/latex/contrib/hvextern/doc/hvextern.pdf differ diff --git a/macros/latex/contrib/hvextern/doc/hvextern.tex b/macros/latex/contrib/hvextern/doc/hvextern.tex index 619ca1254a..6dcdf79d54 100644 --- a/macros/latex/contrib/hvextern/doc/hvextern.tex +++ b/macros/latex/contrib/hvextern/doc/hvextern.tex @@ -1,7 +1,6 @@ -%% $Id: hvextern.tex 819 2023-11-20 20:37:38Z herbert $ -%\RequirePackage{pdfmanagement-testphase} -\DocumentMetadata{} -\documentclass[english,a4paper,twoside]{article} +%% $Id: hvextern.tex 822 2023-11-22 12:16:48Z herbert $ +\DocumentMetadata{}% for lualatex and pstricks +\documentclass[english,paper=a4,twoside,usegeometry]{scrartcl} \usepackage{babel} \usepackage{libertinus} \setmonofont[Scale=MatchLowercase,FakeStretch=0.88]{AnonymousPro} @@ -9,10 +8,13 @@ FakeStretch=0.90,Ligatures=ResetAll%,RawFeature=-tlig ]{Noto Sans Mono} \newfontfamily\CodeTwo{CODE2000}[Scale=MatchLowercase] + +\usepackage[includeheadfoot,bmargin=1cm,tmargin=5mm,textwidth=16cm]{geometry} + \usepackage{iftex} -\usepackage{fancyhdr} -\pagestyle{fancy} +\usepackage[automark]{scrlayer-scrpage} +\pagestyle{scrheadings} \usepackage{hvlogos} \usepackage%[checkCode] {hvextern} @@ -34,7 +36,7 @@ \begin{document} \title{Writing, running and including the output of external documents from within a main\newline \LaTeX\ document~--v. \hvexternFileversion} -\author{Herbert Voß \url{hvoss@tug.org}\thanks{Thanks to Karl Berry; +\author{Herbert Voß \url{hvoss@tug.org}\thanks{Thanks to Karl Berry; Denis Bitouzé; Werner Lemberg; Rolf Niepraschk}} \maketitle \tableofcontents @@ -45,7 +47,7 @@ Werner Lemberg; Rolf Niepraschk}} showFilename,verbose} -\clearpage +%\clearpage \section{Loading the package} @@ -65,7 +67,7 @@ external code changed. This doesn't depends on the setting of the option \Lkeywo \begin{sloppypar} 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 +source code, which will then be run via \texttt{shell escape} to create a PDF or text output to include it into the main \LaTeX\ document. \end{sloppypar} @@ -124,11 +126,12 @@ with \XeLaTeX\ and the output is insert as pdf image: 美好的一天. \end{document} \end{externalDocument} +% The current filename of the above example is \hvExternFilename\ and for the source see page \pageref{inline-exa}. - -Let's show another example which needs a \pdfLaTeX\ run. The \Index{source} code itself is also not +Let's show another example which needs a \pdfLaTeX\ run. The \Index{source} code +itself is also not shown by the environment \Lenv{externalDocument}. @@ -1561,7 +1564,7 @@ other examples, you can set \Lkeyword{showoutput} to false. \end{externalDocument} -\clearpage%%%%%%%%%%%%%% +%\clearpage%%%%%%%%%%%%%% \section{Defining new marker} Suppose you do not want for a \LaTeX\ document the complete body part between \Lcs{begin} diff --git a/macros/latex/contrib/hvextern/latex/hvextern.sty b/macros/latex/contrib/hvextern/latex/hvextern.sty index b7e422958e..0883697e79 100644 --- a/macros/latex/contrib/hvextern/latex/hvextern.sty +++ b/macros/latex/contrib/hvextern/latex/hvextern.sty @@ -1,4 +1,4 @@ -%% $Id: hvextern.sty 819 2023-11-20 20:37:38Z herbert $ +%% $Id: hvextern.sty 824 2023-11-22 12:26:34Z herbert $ %% This is file `hvextern.sty', %% %% Copyright (C) 2016-23 @@ -9,11 +9,11 @@ %% of this license or (at your option) any later version. %% The latest version of this license is in %% http://www.latex-project.org/lppl.txt -%% and version 1.3 or later is part of all distributions of LaTeX +%% and version 1.3c or later is part of all distributions of LaTeX %% version 2005/12/01 or later. -\def\hvexternFileversion{0.37a} -\ProvidesFile{hvextern}[2023/11/20 v\hvexternFileversion: package for running external documents (HV)] +\def\hvexternFileversion{0.37b} +\ProvidesFile{hvextern}[2023/11/22 v\hvexternFileversion: package for running external documents (HV)] \newif\ifhv@extern@checkCode \hv@extern@checkCodefalse @@ -143,8 +143,7 @@ } \define@boolkey{hv}[hv@extern@]{shellesc}[true]{} \define@key{hv}{aboveskip}[\medskipamount]{\setlength\hv@extern@aboveskip{#1}} -\define@key{hv}{belowpreambleskip}[2pt%\smallskipamount -]{\setlength\hv@extern@belowpreambleskip{#1}} +\define@key{hv}{belowpreambleskip}[2pt]{\setlength\hv@extern@belowpreambleskip{#1}} \define@key{hv}{belowbodyskip}[\smallskipamount]{\setlength\hv@extern@belowbodyskip{#1}} \define@key{hv}{belowskip}[\medskipamount]{\setlength\hv@extern@belowskip{#1}} @@ -201,8 +200,8 @@ cropmargin=2,% 2pb margin eps=false,% create an eps output? aboveskip=\medskipamount,% space above everything - belowpreambleskip=2pt,%\smallskipamount,% space below preamble - belowbodyskip=2pt,%\smallskipamount,% space below body + belowpreambleskip=2pt, %\smallskipamount,% space below preamble + belowbodyskip=2pt, %\smallskipamount,% space below body belowskip=\medskipamount,% space below everything }% } @@ -446,7 +445,7 @@ %% \newenvironment{externalDocument}[2][] {% - \the\hv@extern@belowbodyskip\par + %\the\hv@extern@belowbodyskip\par% only for debug \ifhv@extern@shellesc\gdef\hv@run@options{ --shell-escape }\else\gdef\hv@run@options{}\fi% \xdef\hvExternFilename{#2-\arabic{hv@example@counter}}% \gdef\hv@extern@savePara{#1}% diff --git a/macros/latex/contrib/hvextern/script/hvextern-checkfile.lua b/macros/latex/contrib/hvextern/script/hvextern-checkfile.lua old mode 100644 new mode 100755 -- cgit v1.2.3