diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pythontex/pythontex.sty | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/pythontex/pythontex.sty b/Master/texmf-dist/tex/latex/pythontex/pythontex.sty index 8331043359b..1300db470fc 100644 --- a/Master/texmf-dist/tex/latex/pythontex/pythontex.sty +++ b/Master/texmf-dist/tex/latex/pythontex/pythontex.sty @@ -20,10 +20,11 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{pythontex} - [2016/07/21 v0.15 execute and typeset Python code and other languages] + [2017/07/20 v0.16 execute and typeset Python code and other languages] + \newcommand{\pytx@packagename}{PythonTeX} -\newcommand{\pytx@packageversion}{0.15} +\newcommand{\pytx@packageversion}{0.16} \RequirePackage{fvextra} \RequirePackage{etoolbox} \RequirePackage{xstring} @@ -1317,6 +1318,24 @@ \ifstrequal{#1}{ruby}{\makepythontexfamily[pyglexer=ruby]{ruby}}{}% \ifstrequal{#1}{rb}{\makepythontexfamily[pyglexer=ruby]{rb}}{}% \ifstrequal{#1}{julia}{\makepythontexfamily[pyglexer=julia]{julia}}{}% + \ifstrequal{#1}{juliacon}{\pgfkeys{/PYTX/family, name=juliacon, default, pyglexer=jlcon}% + \expandafter\xdef\csname pytx@macroformatter@juliacon\endcsname{\pytx@tmp@pprinter}% + \expandafter\gdef\csname pytx@fvsettings@juliacon\endcsname{}% + \expandafter\xdef\csname pytx@pyglexer@juliacon\endcsname{\pytx@tmp@pyglexer}% + \expandafter\xdef\csname pytx@pygopt@juliacon\endcsname{\pytx@tmp@pygopt}% + \expandafter\xdef\csname pytx@console@juliacon\endcsname{\pytx@tmp@console}% + \AtEndDocument{\immediate\write\pytx@codefile{pygfamily=juliacon|% + \csname pytx@pyglexer@juliacon\endcsname|% + \csname pytx@pygopt@juliacon\endcsname}% + }% + \pytx@MakeCodeFV{juliacon}% + \newenvironment{juliaconsole}% + {\VerbatimEnvironment + \def\pytx@type{juliacon}% + \pytx@ConfigPygments + \begin{juliaconcode}}% + {\end{juliaconcode}% + \ifbool{pytx@opt@autoprint}{}{\printpythontex{}}}}{}% \ifstrequal{#1}{jl}{\makepythontexfamily[pyglexer=julia]{jl}}{}% \ifstrequal{#1}{matlab}{\makepythontexfamily[pyglexer=matlab]{matlab}}{}% \ifstrequal{#1}{octave}{\makepythontexfamily[pyglexer=octave]{octave}}{}% |