;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\207" [require tex latex] 2) #@32 Path to pygmentize executable. (defvar LaTeX-pythontex-pygmentize-program (executable-find "pygmentize") (#$ . 150)) #@58 List containing languages provided by pymentize program. (defvar LaTeX-pythontex-language-list nil (#$ . 273)) #@145 Return a list of languages provided by pymentize program. Update the variable `LaTeX-pythontex-language-list' if still nil. (fn &rest IGNORED) (defalias 'LaTeX-pythontex-language-list #[128 "\206M \205M\302\303\304\"r\211q\210\305\306\"\216\307 \310Pp\"\210eb\210\311\312\313\311\304#\203E\314\315\316!\317\304#\211\203A\211@\211B\262A\266\202\202/\210\202 \211\211\262*\262\207" [LaTeX-pythontex-language-list LaTeX-pythontex-pygmentize-program generate-new-buffer " *temp*" t make-closure #[0 "\301\300!\205 \302\300!\207" [V0 buffer-name kill-buffer] 2] shell-command " -L lexers" nil re-search-forward "^\\*[[:space:]]\\([^:]+\\):" split-string match-string 1 "[[:space:],]"] 7 (#$ . 391)]) #@44 Package options for the pythontex package. (defvar LaTeX-pythontex-package-options-list (byte-code "\300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317\320\321\322\323\324\325 D\326BBBBBBBBBBBBBBBBBBBBB\207" [("usefamily" ("py" "sympy" "pylab" "rb" "ruby" "jl" "julia" "octave")) ("gobble" ("none" "auto")) ("beta" ("true" "false")) ("runall" ("true" "false")) ("rerun" ("never" "modified" "errors" "warnings" "always")) ("hashdependencies" ("true" "false")) ("autoprint" ("true" "false")) ("autostdout" ("true" "false")) ("debug") ("makestderr" ("true" "false")) ("stderrfilename" ("full" "session" "genericfile" "genericscript")) ("pyfuture" ("none" "all" "default")) ("pyconfuture" ("none" "all" "default")) ("upquote" ("true" "false")) ("fixlr" ("true" "false")) ("keeptemps" ("all" "code" "none")) ("prettyprinter" ("pygments" "fancyvrb")) ("prettyprintinline" ("true" "false")) ("pygments" ("true" "false")) ("pyginline" ("true" "false")) "pyglexer" LaTeX-pythontex-language-list (("pygopt" ("style" "texcomments" "mathescape")) ("fvextfile") ("pyconbanner" ("none" "standard" "default" "pyversion")) ("pyconfilename" ("stdin" "console")) ("depythontex" ("true" "false")))] 22) (#$ . 1108)) #@55 Prompt for package options for the pythontex package. (defalias 'LaTeX-pythontex-package-options #[0 "\301\302\"\207" [LaTeX-pythontex-package-options-list TeX-read-key-val t] 3 (#$ . 2324)]) #@58 List of language families provided by pythontex package. (defvar LaTeX-pythontex-family-list '("py" "sympy" "pylab" "rb" "ruby" "jl" "julia" "octave") (#$ . 2523)) #@69 Insert ENVIRONMENT provided by pythontex package. (fn ENVIRONMENT) (defalias 'LaTeX-env-pythontex #[257 "\303\304\305\306\307#!\310\305\"\311\205\312\230?\205 \nQ\2054\312\230\2054\2054\312\230?\2054 \nP\205C\312\230?\205C \nQQ\"\207" [LaTeX-fancyvrb-key-val-options-local LaTeX-optop LaTeX-optcl TeX-read-string TeX-argument-prompt t nil "Session" TeX-read-key-val LaTeX-insert-environment ""] 10 (#$ . 2693)]) #@99 Information about pythontex-savecontents in the current buffer. Generated by `TeX-auto-add-type'. (defvar LaTeX-auto-pythontex-savecontent nil (#$ . 3134)) #@99 Information about pythontex-savecontents in the current buffer. Generated by `TeX-auto-add-type'. (defvar LaTeX-pythontex-savecontent-list nil (#$ . 3296)) (make-variable-buffer-local 'LaTeX-pythontex-savecontent-list) #@99 Information about pythontex-savecontents in the current buffer. Generated by `TeX-auto-add-type'. (defvar LaTeX-pythontex-savecontent-changed nil (#$ . 3521)) (make-variable-buffer-local 'LaTeX-pythontex-savecontent-changed) #@138 Add information about PYTHONTEX-SAVECONTENTS to the current buffer. Generated by `TeX-auto-add-type'. (fn &rest PYTHONTEX-SAVECONTENTS) (defalias 'LaTeX-add-pythontex-savecontents #[128 "\300\301\"\207" [TeX-auto-add-information "pythontex-savecontent"] 4 (#$ . 3753)]) #@96 List of pythontex-savecontents active in the current buffer. Generated by `TeX-auto-add-type'. (defalias 'LaTeX-pythontex-savecontent-list #[0 "\300\301!\207" [TeX-auto-list-information "pythontex-savecontent"] 2 (#$ . 4031)]) (byte-code "\300\301\302\303#\210\304\305\306\"\207" [add-to-list TeX-auto-parser ("pythontex-savecontent" LaTeX-auto-pythontex-savecontent LaTeX-add-pythontex-savecontents LaTeX-pythontex-savecontent-list LaTeX-pythontex-savecontent-changed) t add-hook TeX-remove-style-hook #[0 "\301\211\207" [LaTeX-pythontex-savecontent-list nil] 2]] 4) #@69 Matches the argument of \save(print|stdout|stderr)pythontex macros. (defvar LaTeX-pythontex-savecontent-regexp (cons "\\\\\\(?:save\\(?:\\(?:print\\|std\\(?:err\\|out\\)\\)pythontex\\)\\){\\([^}]+\\)}" '(1 LaTeX-auto-pythontex-savecontent)) (#$ . 4606)) #@110 Information about pythontex-setpythontexlistingenvs in the current buffer. Generated by `TeX-auto-add-type'. (defvar LaTeX-auto-pythontex-setpythontexlistingenv nil (#$ . 4867)) #@110 Information about pythontex-setpythontexlistingenvs in the current buffer. Generated by `TeX-auto-add-type'. (defvar LaTeX-pythontex-setpythontexlistingenv-list nil (#$ . 5052)) (make-variable-buffer-local 'LaTeX-pythontex-setpythontexlistingenv-list) #@110 Information about pythontex-setpythontexlistingenvs in the current buffer. Generated by `TeX-auto-add-type'. (defvar LaTeX-pythontex-setpythontexlistingenv-changed nil (#$ . 5311)) (make-variable-buffer-local 'LaTeX-pythontex-setpythontexlistingenv-changed) #@160 Add information about PYTHONTEX-SETPYTHONTEXLISTINGENVS to the current buffer. Generated by `TeX-auto-add-type'. (fn &rest PYTHONTEX-SETPYTHONTEXLISTINGENVS) (defalias 'LaTeX-add-pythontex-setpythontexlistingenvs #[128 "\300\301\"\207" [TeX-auto-add-information "pythontex-setpythontexlistingenv"] 4 (#$ . 5576)]) #@107 List of pythontex-setpythontexlistingenvs active in the current buffer. Generated by `TeX-auto-add-type'. (defalias 'LaTeX-pythontex-setpythontexlistingenv-list #[0 "\300\301!\207" [TeX-auto-list-information "pythontex-setpythontexlistingenv"] 2 (#$ . 5899)]) (byte-code "\300\301\302\303#\210\304\305\306\"\207" [add-to-list TeX-auto-parser ("pythontex-setpythontexlistingenv" LaTeX-auto-pythontex-setpythontexlistingenv LaTeX-add-pythontex-setpythontexlistingenvs LaTeX-pythontex-setpythontexlistingenv-list LaTeX-pythontex-setpythontexlistingenv-changed) t add-hook TeX-remove-style-hook #[0 "\301\211\207" [LaTeX-pythontex-setpythontexlistingenv-list nil] 2]] 4) #@56 Matches the argument of \setpythontexlistingenv macro. (defvar LaTeX-pythontex-setpythontexlistingenv-regexp '("\\\\setpythontexlistingenv{\\([^}]+\\)}" 1 LaTeX-auto-pythontex-setpythontexlistingenv) (#$ . 6573)) #@56 Clear various `LaTeX-auto-pythontex-*' before parsing. (defalias 'LaTeX-pythontex-auto-prepare #[0 "\302\211\211\207" [LaTeX-auto-pythontex-savecontent LaTeX-auto-pythontex-setpythontexlistingenv nil] 3 (#$ . 6792)]) #@64 Process the parsing results for \setpythontexlistingenv macro. (defalias 'LaTeX-pythontex-auto-cleanup #[0 "\300\301\302 \"\211\203\211@\303\304B!\210A\266\202\202\210\305 \207" [mapcar car LaTeX-pythontex-setpythontexlistingenv-list LaTeX-add-newfloat-DeclareFloatingEnvironments ("verbatim") LaTeX-newfloat-auto-cleanup] 5 (#$ . 7017)]) (byte-code "\300\301\302\303#\210\300\304\305\303#\210\300\306\307\303#\207" [add-hook TeX-auto-prepare-hook LaTeX-pythontex-auto-prepare t TeX-auto-cleanup-hook LaTeX-pythontex-auto-cleanup TeX-update-style-hook TeX-auto-parse] 4) #@234 Add MACRO from pythontex.sty to `font-latex-syntactic-keywords-extra'. TYPE is one of the symbols `brace' or `delim' indicating how verbatim text is enclosed after the macro. MACRO is a string or a list of strings. (fn TYPE MACRO) (defalias 'LaTeX-pythontex-add-syntactic-keywords-extra #[514 "\302=\203\n\303\202 \304\305<\203\306\307\"\262\310!\311\302=\203'\312\202-\313\310!\314QRC\262\315\"\211 \235\203= \207\211 B\211\207" [TeX-esc font-latex-syntactic-keywords-extra brace ((1 "|") (2 "|")) ((1 "\"") (2 ".") (3 "\"")) nil regexp-opt "\\(?:" regexp-quote "\\(?:{[^}]+}\\)" "\\({\\)\\(?:[^}{]*\\(?:{[^}{]*\\(?:{[^}{]*\\(?:{[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^}{]*\\)*\\)\\(}\\)" "\\([^a-z@*\n\f{]\\).*?\\(" "*\\)\\(\\1\\)" append] 10 (#$ . 7601)]) (TeX-add-style-hook "pythontex" #[0 "\304\305\306\"\210\307!\210\307 !\210\310\311!\210\312\313\314\315\"\316\317\320\321\"\"\210\316\322\320\323\"\"\210\211\203@\211@\324\325\"\210\324\326\"\210A\266\202\202)\210\211\203W\211@\324\311\327B\330#\210A\266\202\202B\210\331\332!\203\232\331\333!\203\232\334\303!\203\232\n\335=\203\232\332\320\336\"\337\"\210\340\341Q\342B\211 \235\204\210\211 B\210\343\344Q\345B\211 \235\204\231\211 B\210\333 \266\317\346\347\350\351\352\353\354\355\356\357\360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377\201@\201A\201B&\210\201C\201D\201E \"\204\333\201F\201G!\210\317\201H!\210\322\201I\201J\"\210\324\311\201K\330#\210\324\311\201L\330#\210\324\201M\201N\"\210\324\201M\201O\"\210\331\332!\205@\n\335=\205@\332\201P\201Q\"\210\332\201R\337\"\210\201S\201T\201U\"\210\201S\201V\201U\"\210\333 \207" [LaTeX-pythontex-savecontent-regexp LaTeX-pythontex-setpythontexlistingenv-regexp TeX-install-font-lock font-latex-syntactic-keywords-extra TeX-run-style-hooks "fvextra" "newfloat" TeX-auto-add-regexp make-local-variable LaTeX-indent-environment-list ("py" "pyc" "pys" "pyv" "pyb" "pycon" "pyconc" "pyconv" "pylab" "pylabc" "pylabs" "pylabv" "pylabb" "pylabcon" "pylabconc" "pylabconv" "sympy" "sympyc" "sympys" "sympyv" "sympyb" "sympycon" "sympyconc" "sympyconv") ("pycode" "pysub" "pyverbatim" "pyblock" "pyconsole" "pyconcode" "pyconverbatim" "pylabcode" "pylabsub" "pylabverbatim" "pylabblock" "pylabconsole" "pylabconcode" "pylabconverbatim" "sympycode" "sympysub" "sympyverbatim" "sympyblock" "sympyconsole" "sympyconcode" "sympyconverbatim") regexp-opt "\\(?:" apply TeX-add-symbols mapcar #[257 "\211\300\301E\207" [["Session"] TeX-arg-verb-delim-or-brace] 4 "\n\n(fn MAC)"] LaTeX-add-environments #[257 "\211\300D\207" [LaTeX-env-pythontex] 3 "\n\n(fn ENV)"] add-to-list LaTeX-verbatim-macros-with-delims-local LaTeX-verbatim-macros-with-braces-local (current-indentation) t fboundp font-latex-add-keywords font-latex-set-syntactic-keywords boundp font-latex-setup #[257 "\211\300D\207" ["["] 3 "\n\n(fn MAC)"] textual "^[ ]*\\\\begin *{\\(?:" "\\)}[ ]*\\(?:%.*\n[ ]*\\)?\\(?:\\[[^][]*\\(?:\\[[^][]*\\][^][]*\\)*\\]\\)\\{0,2\\}\\(\n\\|.\\)" ((1 "|" t)) "\\(\\\\\\)end *{\\(?:" "\\)}" ((1 "|" t)) ("pythontexcustomc" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Position") '("begin" "end")] (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Family") LaTeX-pythontex-family-list) t) ("setpythontexfv" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Family") LaTeX-pythontex-family-list] (TeX-arg-key-val LaTeX-fancyvrb-key-val-options-local)) ("setpythontexprettyprinter" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Family") (cons "auto" LaTeX-pythontex-family-list)] (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Printer") '("text" "bw" "fancyvrb" "pygments"))) ("setpythontexpyglexer" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Family") LaTeX-pythontex-family-list] (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Pygments lexer") (LaTeX-pythontex-language-list))) ("setpythontexpygopt" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Family") LaTeX-pythontex-family-list] (TeX-arg-key-val (("style") ("texcomments") ("mathescape")))) ("printpythontex" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Mode") '("raw" "verb" "verbatim")] [TeX-arg-key-val LaTeX-fancyvrb-key-val-options-local]) ("stdoutpythontex" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Mode") '("raw" "verb" "verbatim")] [TeX-arg-key-val LaTeX-fancyvrb-key-val-options-local]) ("saveprintpythontex" (TeX-arg-eval (lambda nil (let ((name (TeX-read-string (TeX-argument-prompt nil nil "Name")))) (LaTeX-add-pythontex-savecontents name) (format "%s" name))))) ("savestdoutpythontex" (TeX-arg-eval (lambda nil (let ((name (TeX-read-string (TeX-argument-prompt nil nil "Name")))) (LaTeX-add-pythontex-savecontents name) (format "%s" name))))) ("useprintpythontex" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Mode") '("raw" "verb" "verbatim")] [TeX-arg-key-val LaTeX-fancyvrb-key-val-options-local] (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Name") (LaTeX-pythontex-savecontent-list))) ("usestdoutpythontex" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Mode") '("raw" "verb" "verbatim")] [TeX-arg-key-val LaTeX-fancyvrb-key-val-options-local] (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Name") (LaTeX-pythontex-savecontent-list))) ("stderrpythontex" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Mode") '("raw" "verb" "verbatim")] [TeX-arg-key-val LaTeX-fancyvrb-key-val-options-local]) ("savestderrpythontex" (TeX-arg-eval (lambda nil (let ((name (TeX-read-string (TeX-argument-prompt nil nil "Name")))) (LaTeX-add-pythontex-savecontents name) (format "%s" name))))) ("usestderrpythontex" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Mode") '("raw" "verb" "verbatim")] [TeX-arg-key-val LaTeX-fancyvrb-key-val-options-local] (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Name") (LaTeX-pythontex-savecontent-list))) ("setpythontexautoprint" (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Boolean value") '("true" "false"))) ("setpythontexautostdout" (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Boolean value") '("true" "false"))) ("pygment" (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Lexer") (LaTeX-pythontex-language-list)) TeX-arg-verb-delim-or-brace) ("inputpygments" [TeX-arg-eval LaTeX-fancyvrb-key-val-options-local] (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Lexer") (LaTeX-pythontex-language-list)) TeX-arg-file-name) ("setpygmentsfv" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Lexer") (LaTeX-pythontex-language-list)] (TeX-arg-eval LaTeX-fancyvrb-key-val-options-local)) ("setpygmentspygopt" [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Lexer") (LaTeX-pythontex-language-list)] (TeX-arg-key-val (("style") ("texcomments") ("mathescape")))) ("setpygmentsprettyprinter" (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Printer") '("text" "bw" "fancyvrb" "pygments"))) ("setpythontexcontext" t) ("restartpythontexsession" t) ("setpythontexoutputdir" t) ("setpythontexworkingdir" t) ("setpythontexcontext" t) ("restartpythontexsession" TeX-arg-counter) ("setpythontexoutputdir" t) ("setpythontexworkingdir" t) assoc-string "listing" LaTeX-environment-list LaTeX-add-newfloat-DeclareFloatingEnvironments ("listing" "verbatim") ("setpythontexlistingenv" (TeX-arg-eval (lambda nil (let ((name (TeX-read-string (TeX-argument-prompt nil nil "Listing environment name")))) (LaTeX-add-newfloat-DeclareFloatingEnvironments `(,name "verbatim")) (LaTeX-newfloat-auto-cleanup) (format "%s" name))))) ("pythontexcustomcode" LaTeX-env-args [TeX-arg-eval completing-read (TeX-argument-prompt t nil "Position") '("begin" "end")] (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Family") LaTeX-pythontex-family-list)) ("pygments" LaTeX-env-args [TeX-arg-eval LaTeX-fancyvrb-key-val-options-local] (TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Lexer") (LaTeX-pythontex-language-list))) ("pythontexcustomcode" current-indentation) ("pygments" current-indentation) LaTeX-verbatim-environments-local "pythontexcustomcode" "pygments" (("pythontexcustomc" "[{{") ("setpythontexfv" "[{") ("setpythontexprettyprinter" "[{") ("setpythontexpyglexer" "[{") ("setpythontexpygopt" "[{") ("printpythontex" "[[") ("stdoutpythontex" "[[") ("saveprintpythontex" "{") ("savestdoutpythontex" "{") ("useprintpythontex" "[[{") ("usestdoutpythontex" "[[{") ("stderrpythontex" "[[") ("savestderrpythontex" "{") ("usestderrpythontex" "[[{") ("setpythontexautoprint" "{") ("setpythontexautostdout" "{") ("inputpygments" "[{{") ("setpygmentsfv" "[{") ("setpygmentspygopt" "[{") ("setpygmentsprettyprinter" "{") ("setpythontexcontext" "{") ("restartpythontexsession" "{") ("setpythontexoutputdir" "{") ("setpythontexworkingdir" "{") ("setpythontexlistingenv" "{") ("setpythontexcontext" "{") ("restartpythontexsession" "{") ("setpythontexoutputdir" "{") ("setpythontexworkingdir" "{")) function (("pygment" "{")) LaTeX-pythontex-add-syntactic-keywords-extra brace "pygment" delim] 30] TeX-dialect)