diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/hvextern')
-rw-r--r-- | Master/texmf-dist/doc/latex/hvextern/Changes | 2 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/hvextern/hvextern.pdf | bin | 1492062 -> 1499392 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/hvextern/hvextern.tex | 40 |
3 files changed, 37 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/latex/hvextern/Changes b/Master/texmf-dist/doc/latex/hvextern/Changes index 430476f2632..a491647acf4 100644 --- a/Master/texmf-dist/doc/latex/hvextern/Changes +++ b/Master/texmf-dist/doc/latex/hvextern/Changes @@ -1,5 +1,7 @@ hvextern.sty ---------------- +v 0.41 2024-03-27 - added compiler option=Rscript + - fix for Windows and R runs v 0.40 2024-03-22 - added option mposttex for metapost program which can be tex (default) | latex v 0.39 2024-01-30 - fixed bug with check for force option diff --git a/Master/texmf-dist/doc/latex/hvextern/hvextern.pdf b/Master/texmf-dist/doc/latex/hvextern/hvextern.pdf Binary files differindex cc8d1727844..b98bc2283ba 100644 --- a/Master/texmf-dist/doc/latex/hvextern/hvextern.pdf +++ b/Master/texmf-dist/doc/latex/hvextern/hvextern.pdf diff --git a/Master/texmf-dist/doc/latex/hvextern/hvextern.tex b/Master/texmf-dist/doc/latex/hvextern/hvextern.tex index 77181285d0d..92a8362866b 100644 --- a/Master/texmf-dist/doc/latex/hvextern/hvextern.tex +++ b/Master/texmf-dist/doc/latex/hvextern/hvextern.tex @@ -1,4 +1,4 @@ -%% $Id: hvextern.tex 883 2024-03-22 19:29:21Z herbert $ +%% $Id: hvextern.tex 884 2024-03-27 19:50:43Z herbert $ \DocumentMetadata{}% for lualatex and pstricks \documentclass[english,paper=a4,twoside,usegeometry]{scrartcl} \usepackage{babel} @@ -41,7 +41,7 @@ Werner Lemberg; Rolf Niepraschk}} %\newpage -\setkeys{hv}{moveToExampleDir,ExampleDir=Exa,showFilename,verbose,force=false} +\setkeys{hv}{moveToExampleDir,ExampleDir=Exa,showFilename,verbose,force=true} %\clearpage @@ -63,9 +63,12 @@ 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} +\Index{Lua}, \Index{Perl}, \Index{Java}, \Index{Python}, and /or \Index{R} 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. +it into the main \LaTeX\ document. The values for the +optional argument \Lkeyword{compiler} must be the real prgram name on the the local system, e.g. for Windows: +mpost, tex, context.exe, latex.exe, luatex.exe, lualatex.exe, xetex.exe, xelatex.exe, +lua.exe, perl.exe, java.exe, pathon.exe, and /or Rscript.exe. \end{sloppypar} @@ -418,6 +421,33 @@ must be end with a slash, e.g. \Lkeyval{./bin/} \define@key{hv}{runs}[1]{\setcounter{hv@extern@runs}{#1}} \end{verbatim} +For Windows the \Lkeyword{progpath} should always be written with slashes and not +backslashes. e.g. + +\begin{verbatim} + compiler=Rscript.exe, + progpath=C:/Program Files/R/R-4.3.3/bin/x64/, +\end{verbatim} + +For macOS it is something like this: + +\begin{externalDocument}[ + compiler=Rscript, + progpath=/opt/homebrew/bin/, + grfOptions={width=0.5\linewidth}, + code=true, + usefancyvrb, + ext=R, + docType=R]{voss} +#StartVisibleMain +head(pressure) # Die ersten Werte der internen Datenliste +pdf() # erzeugt die PDF "Rplots.pdf" +plot(pressure) +#StopVisibleMain +\end{externalDocument} + + + Instead of the optional arguments \Lkeyword{compiler}, \Lkeyword{biber}, and \Lkeyword{xindex} one can define an individual command sequence by using the optional argument @@ -539,7 +569,7 @@ public class Main { %$ - +\clearpage \subsection{Grafik options} \begin{verbatim} |