Skip to content

Commit

Permalink
document \runLANGChunk; update dates and version #
Browse files Browse the repository at this point in the history
  • Loading branch information
Ossifragus committed Sep 8, 2023
1 parent 0ac7d86 commit 6bfe4e7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,15 @@ language, respectively, for the following commands.
disk and then be called.
- =Arg3= and =Arg4= have the same effects as those of the basic command =\inln=.

- =\runLANGChunk[Arg1]{Arg2}{Arg3}[Arg4][Arg5][Arg6]= runs a selected chunk from
an external =LANG= code file and embeds the output.
- =Arg1= (optional ) uses [[https://pypi.org/project/talk2stat/][talk2stat]]'s =LANG= server by default.
- =Arg2= is the source file name.
- =Arg3= is is the chunk identifier.
- =Arg4= (optional) controls whether to run the code.
- =Arg5= (optional) is the output file name.
- =Arg6= (optional) controls the type of output with a default value =vbox=.

For example,
#+begin_src latex :exports code
\runR{code/MontyHall_1.R}{montyhall-R1}
Expand All @@ -254,6 +263,8 @@ Specifically for [[https://www.python.org/][Python]],


** Revisions
- v2.2, September 8, 2023: add ~\showChunk~ basic command and ~\runLANGChunk~
commands for multiple languages.
- v2.1, June 30, 2023: detokenize code which is passed to =\inln=. This is
necessary when the code contains special latex characters like backslash.
These characters are escaped by latex when they are passed to macros as arguments,
Expand Down
2 changes: 1 addition & 1 deletion runcode.sty
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%
% This package is based on an ongoing work by Haim Bar and HaiYing Wang, and comments and questions are welcome!

\ProvidesPackage{runcode}[2023/06/30 runcode v2.1]
\ProvidesPackage{runcode}[2023/09/08 runcode v2.2]

\def \langs {}

Expand Down

0 comments on commit 6bfe4e7

Please sign in to comment.