From 26f8c60d721bcd3fe6a0183b9f5ea076f9018293 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Fri, 21 Jul 2017 22:00:53 +0000 Subject: pythontex (21jul17) git-svn-id: svn://tug.org/texlive/trunk@44860 c570f23f-e606-0410-a88d-b1316a301751 --- .../texmf-dist/tex/latex/pythontex/pythontex.sty | 23 ++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/pythontex') 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}}{}% -- cgit v1.2.3