diff options
Diffstat (limited to 'macros/latex/contrib/runcode/runcode.tex')
-rw-r--r-- | macros/latex/contrib/runcode/runcode.tex | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/macros/latex/contrib/runcode/runcode.tex b/macros/latex/contrib/runcode/runcode.tex index 23f833bdf5..fb1fd2530e 100644 --- a/macros/latex/contrib/runcode/runcode.tex +++ b/macros/latex/contrib/runcode/runcode.tex @@ -1,4 +1,4 @@ -% LaTeX Package: runcode 2023/09/08 v2.2 +% LaTeX Package: runcode 2024/01/12 v2.3 % % Copyright (C) 2020-2023 by Haim Bar and HaiYing Wang % @@ -49,7 +49,7 @@ package’s github repository, at \url{https://github.com/Ossifragus/runcode}. \end{abstract} \section{Installation} -\label{sec:org6031edc} +\label{sec:orgbc0a4bf} You can simply put the runcode.sty file in the \LaTeX{} project folder. The server mode requires the @@ -65,9 +65,9 @@ compiling a \LaTeX{} document. \section{Usage} -\label{sec:org46d9194} +\label{sec:org6167b11} \subsection{Load the package:} -\label{sec:orgdf4d2a5} +\label{sec:orgc46beda} \begin{minted}[]{latex} \usepackage[options]{runcode} \end{minted} @@ -139,7 +139,7 @@ be customized with \texttt{\textbackslash{}tcbset}, \end{minted} \subsection{Basic commands:} -\label{sec:org1eb4192} +\label{sec:org9029154} \begin{itemize} \item \texttt{\textbackslash{}runExtCode\{Arg1\}\{Arg2\}\{Arg3\}[Arg4]} runs an external code. @@ -223,7 +223,7 @@ default \texttt{label==} and \texttt{===end}. \subsection{Extended commands:} -\label{sec:org2e715a7} +\label{sec:orgf48d3c2} \begin{itemize} \item \texttt{\textbackslash{}runCodeIncOut\{Arg1\}\{Arg2\}[Arg3][Arg4][Arg5]} runs an external code and embeds the output. This is a combination of \texttt{\textbackslash{}runExtCode} and \texttt{\textbackslash{}includeOutput}. @@ -240,7 +240,7 @@ functionality is the same as that of \texttt{Arg3} of \texttt{\textbackslash{}in \end{itemize} \subsection{Language specific shortcuts:} -\label{sec:org04ff6f1} +\label{sec:org506ce7a} Replace \texttt{LANG} with \texttt{Julia}, \texttt{MatLab}, \texttt{Python}, or \texttt{R}, for the \href{https://julialang.org/}{Julia}, \href{https://www.mathworks.com/products/matlab.html}{MatLab}, \href{https://www.python.org/}{Python}, \href{https://www.r-project.org/}{R} language, respectively, for the following commands. @@ -305,8 +305,11 @@ installed via \texttt{pip3 install dill}. \section{Revisions} -\label{sec:orgae938b1} +\label{sec:orgb2671cf} \begin{itemize} +\item v2.3, January 12, 2024: two bug fixes (1. removed an extra space after +\texttt{\textbackslash{}inlnX}; 2. when an underscore appeared inside R code, the tex file would +compile with an error). \item v2.2, September 8, 2023: add \texttt{\textbackslash{}showChunk} basic command and \texttt{\textbackslash{}runLANGChunk} commands for multiple languages. \item v2.1, June 30, 2023: detokenize code which is passed to \texttt{\textbackslash{}inln}. This is @@ -341,7 +344,7 @@ code files, zero bytes in output files.) \end{itemize} \section{Contributing} -\label{sec:org9eb0902} +\label{sec:org3c84ea7} We welcome your contributions to this package by opening issues on GitHub and/or making a pull request. We also appreciate more example documents written using \texttt{runcode}. |