kr.motd.maven.sphinx.dist.pygments.formatters.latex$py.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
???? 1? f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ ?
pygments.formatters.latex
~~~~~~~~~~~~~~~~~~~~~~~~~
Formatter for LaTeX fancyvrb output.
:copyright: Copyright 2006-2017 by the Pygments team, see AUTHORS.
:license: BSD, see LICENSE for details.
org/python/core/PyString fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline (I)V
__future__ java/lang/String division org/python/core/imp
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject;
! setlocal #
$ pygments.formatter & Formatter ( pygments.lexer * Lexer , pygments.token . Token 0 STANDARD_TYPES 2
pygments.util 4 get_bool_opt 6 get_int_opt 8 StringIO : xrange < iteritems > org/python/core/PyList @ org/python/core/PyObject B LatexFormatter D ([Lorg/python/core/PyObject;)V F G
A H __all__ J org/python/core/Py L EmptyObjects [Lorg/python/core/PyObject; N O M P org/python/core/PyFunction R f_globals Lorg/python/core/PyObject; T U V escape_tex$1 getlocal (I)Lorg/python/core/PyObject; Y Z
[ replace ] __getattr__ .(Ljava/lang/String;)Lorg/python/core/PyObject; _ `
C a \ c ?? e __call__ m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; g h
C i { k m } o q \%sZbs{} s _mod 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; u v
C w \%sZob{} y \%sZcb{} { ^ } \%sZca{} _ ? \%sZus{} ? & ? \%sZam{} ? < ? \%sZlt{} ? > ? \%sZgt{} ? # ? \%sZsh{} ? % ? \%sZpc{} ? $ ? \%sZdl{} ? - ? \%sZhy{} ? ' ? \%sZsq{} ? " ? \%sZdq{} ? ~ ? \%sZti{} ? f_lasti I ? ? ? pygments/formatters/latex$py ? Lorg/python/core/PyCode; X ? ? ? j(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;)V F ?
S ?
escape_tex ? ?
\documentclass{%(docclass)s}
\usepackage{fancyvrb}
\usepackage{color}
\usepackage[%(encoding)s]{inputenc}
%(preamble)s
%(styledefs)s
\begin{document}
\section*{%(title)s}
%(code)s
\end{document}
? DOC_TEMPLATE ??
\makeatletter
\def\%(cp)s@reset{\let\%(cp)s@it=\relax \let\%(cp)s@bf=\relax%%
\let\%(cp)s@ul=\relax \let\%(cp)s@tc=\relax%%
\let\%(cp)s@bc=\relax \let\%(cp)s@ff=\relax}
\def\%(cp)s@tok#1{\csname %(cp)s@tok@#1\endcsname}
\def\%(cp)s@toks#1+{\ifx\relax#1\empty\else%%
\%(cp)s@tok{#1}\expandafter\%(cp)s@toks\fi}
\def\%(cp)s@do#1{\%(cp)s@bc{\%(cp)s@tc{\%(cp)s@ul{%%
\%(cp)s@it{\%(cp)s@bf{\%(cp)s@ff{#1}}}}}}}
\def\%(cp)s#1#2{\%(cp)s@reset\%(cp)s@toks#1+\relax+\%(cp)s@do{#2}}
%(styles)s
\def\%(cp)sZbs{\char`\\}
\def\%(cp)sZus{\char`\_}
\def\%(cp)sZob{\char`\{}
\def\%(cp)sZcb{\char`\}}
\def\%(cp)sZca{\char`\^}
\def\%(cp)sZam{\char`\&}
\def\%(cp)sZlt{\char`\<}
\def\%(cp)sZgt{\char`\>}
\def\%(cp)sZsh{\char`\#}
\def\%(cp)sZpc{\char`\%%}
\def\%(cp)sZdl{\char`\$}
\def\%(cp)sZhy{\char`\-}
\def\%(cp)sZsq{\char`\'}
\def\%(cp)sZdq{\char`\"}
\def\%(cp)sZti{\char`\~}
%% for compatibility with earlier versions
\def\%(cp)sZat{@}
\def\%(cp)sZlb{[}
\def\%(cp)sZrb{]}
\makeatother
? STYLE_TEMPLATE ? _get_ttype_name$2 getglobal ? `
? get ? S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; g ?
C ? (ILorg/python/core/PyObject;)V # ?
? __nonzero__ ()Z ? ?
C ? ?
newInteger (I)Lorg/python/core/PyInteger; ? ?
M ? __getitem__ ? v
C ? _add ? v
C ? parent ? None ? _is ? v
C ? ? ? ? ? _get_ttype_name ? getname ? `
? LatexFormatter$3
__module__ ? __name__ ??
Format tokens as LaTeX code. This needs the `fancyvrb` and `color`
standard packages.
Without the `full` option, code is formatted as one ``Verbatim``
environment, like this:
.. sourcecode:: latex
\begin{Verbatim}[commandchars=\\\{\}]
\PY{k}{def }\PY{n+nf}{foo}(\PY{n}{bar}):
\PY{k}{pass}
\end{Verbatim}
The special command used here (``\PY``) and all the other macros it needs
are output by the `get_style_defs` method.
With the `full` option, a complete LaTeX document is output, including
the command definitions in the preamble.
The `get_style_defs()` method of a `LatexFormatter` returns a string
containing ``\def`` commands defining the macros needed inside the
``Verbatim`` environments.
Additional options accepted:
`style`
The style to use, can be a string or a Style subclass (default:
``'default'``).
`full`
Tells the formatter to output a "full" document, i.e. a complete
self-contained document (default: ``False``).
`title`
If `full` is true, the title that should be used to caption the
document (default: ``''``).
`docclass`
If the `full` option is enabled, this is the document class to use
(default: ``'article'``).
`preamble`
If the `full` option is enabled, this can be further preamble commands,
e.g. ``\usepackage`` (default: ``''``).
`linenos`
If set to ``True``, output line numbers (default: ``False``).
`linenostart`
The line number for the first line (default: ``1``).
`linenostep`
If set to a number n > 1, only every nth line number is printed.
`verboptions`
Additional options given to the Verbatim environment (see the *fancyvrb*
docs for possible values) (default: ``''``).
`commandprefix`
The LaTeX commands used to produce colored output are constructed
using this prefix and some letters (default: ``'PY'``).
.. versionadded:: 0.7
.. versionchanged:: 0.10
The default is now ``'PY'`` instead of ``'C'``.
`texcomments`
If set to ``True``, enables LaTeX comment lines. That is, LaTex markup
in comment tokens is not escaped so that LaTeX can render it (default:
``False``).
.. versionadded:: 1.2
`mathescape`
If set to ``True``, enables LaTeX math mode escape in comments. That
is, ``'$...$'`` inside a comment will trigger math mode (default:
``False``).
.. versionadded:: 1.2
`escapeinside`
If set to a string of length 2, enables escaping to LaTeX. Text
delimited by these 2 characters is read as LaTeX code and
typeset accordingly. It has no effect in string literals. It has
no effect in comments if `texcomments` or `mathescape` is
set. (default: ``''``).
.. versionadded:: 2.0
`envname`
Allows you to pick an alternative environment name replacing Verbatim.
The alternate environment still has to support Verbatim's option syntax.
(default: ``'Verbatim'``).
.. versionadded:: 2.0
? LaTeX ? name ? latex ? tex ? aliases ? *.tex ? filenames
__init__$4 __init__
_callextra ~([Lorg/python/core/PyObject;[Ljava/lang/String;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;
C docclass article __setattr__
C preamble linenos False ?(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; g
C abs linenostart
linenostep verboptions nobackground!
commandprefix# PY% texcomments'
mathescape) escapeinside+ len- _eq/ v
C0 left2 right4 envname6 Verbatim8 org/python/core/PyUnicode: /(Ljava/lang/String;)Lorg/python/core/PyUnicode; <
;= _create_stylesheet? 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; gA
CB ? U MD ? ?F _create_stylesheet$5 org/python/core/PyDictionaryI
J H
ttype2nameL cmd2defN
rgbcolor$6 ,Q joinS ()V FU
AV appendX org/python/core/PyTupleZ
[ H __iter__ ()Lorg/python/core/PyObject;]^
C_ %.2fa intc@o? newFloat (D)Lorg/python/core/PyFloat;gh
Mi _truedivk v
Cl __iternext__n^
Co dellocalq
r 1,1,1tP ? ?v stylex unpackSequence 8(Lorg/python/core/PyObject;I)[Lorg/python/core/PyObject;z{
M| bold~ \let\$$@bf=\textbf? _iadd? v
C? italic? \let\$$@it=\textit? underline? \let\$$@ul=\underline? roman? \let\$$@ff=\textrm? sans? \let\$$@ff=\textsf? mono? color? '\def\$$@tc##1{\textcolor[rgb]{%s}{##1}}? border? K\def\$$@bc##1{\setlength{\fboxsep}{0pt}\fcolorbox[rgb]{%s}{%s}{\strut ##1}}? bgcolor? F\def\$$@bc##1{\setlength{\fboxsep}{0pt}\colorbox[rgb]{%s}{\strut ##1}}? $$? __setitem__ 7(Lorg/python/core/PyObject;Lorg/python/core/PyObject;)V??
C?H ? ?? get_style_defs$7 ?
Return the command sequences needed to define the commands
used to format text in the verbatim environment. ``arg`` is ignored.
? /\expandafter\def\csname %s@tok@%s\endcsname{%s}? cp? styles?
?? ? ?? get_style_defs? format_unencoded$8 full? write? \begin{? }[commandchars=\\\{\}?
,numbers=left? ,firstnumber=%d? ,stepnumber=%d? 0,codes={\catcode`\$=3\catcode`\^=7\catcode`\_=8}? ]
? Comment? _in? v
C? __getslice__ j(Lorg/python/core/PyObject;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject;??
C? _ne? v
C? split? enumerate? __not__?^
C? partition? Escape? _notin? v
C? setException M(Ljava/lang/Throwable;Lorg/python/core/PyFrame;)Lorg/python/core/PyException;??
M? KeyError? org/python/core/PyException? match (Lorg/python/core/PyObject;)Z??
?? java/lang/Throwable? _isnot? v
C? +? reversed? \%s{%s}{%s}? \end{? }
encoding utf8 utf_8 latin_1 latin1
iso_8859_1 dict title getvalue styledefs code g(Lorg/python/core/ThreadState;[Lorg/python/core/PyObject;[Ljava/lang/String;)Lorg/python/core/PyObject; g
C? ? ? format_unencoded getf_locals^
? ? ?" makeClass a(Ljava/lang/String;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;)Lorg/python/core/PyObject;$%
M& java/util/Arrays( fill (([Ljava/lang/Object;Ljava/lang/Object;)V*+
), LatexEmbeddedLexer. LatexEmbeddedLexer$9?
This lexer takes one lexer as argument, the lexer for the language
being formatted, and the left and right delimiters for escaped text.
First everything is scanned using the language lexer to obtain
strings and comments. All other consecutive tokens are merged and
the resulting text is scanned for escaped segments, which are given
the Token.Escape type. Finally text that is not escaped is scanned
again with the language lexer.
1 __init__$10 lang43 ? ?6 get_tokens_unprocessed$11 get_tokens_unprocessed9 String; get_tokens_aux= java/lang/Object?
f_savedlocals [Ljava/lang/Object;AB C getGeneratorInput ()Ljava/lang/Object;EF
G8 ? ?I get_tokens_aux$12 ErrorLK ? ?N0 ? ?P (Ljava/lang/String;)V org/python/core/PyFunctionTableS
TV self Lpygments/formatters/latex$py;VW ?X Z newCode ?(I[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZZLorg/python/core/PyFunctionTable;I[Ljava/lang/String;[Ljava/lang/String;II)Lorg/python/core/PyCode;\]
M^ ? ?` textb ttyped fnamef anamehV optionsk t2nm c2do rgbcolorq ndefs cmndefu colw _[280_33]y i{ arg}
definition tokensource? outfile? realoutfile? start? step? value? parts? in_math? part? a? sep1? b? sep2? styleval? spl? line? buf? idx? t? v? x? index? getMain ()Lorg/python/core/PyCode; main ([Ljava/lang/String;)V ? FR
????
?? org/python/core/CodeLoader? createSimpleBootstrap 9(Lorg/python/core/PyCode;)Lorg/python/core/CodeBootstrap;??
?? runMain 5(Lorg/python/core/CodeBootstrap;[Ljava/lang/String;)V??
M? getCodeBootstrap !()Lorg/python/core/CodeBootstrap; #org/python/core/PyRunnableBootstrap? )getFilenameConstructorReflectionBootstrap 2(Ljava/lang/Class;)Lorg/python/core/CodeBootstrap;??
??
call_function S(ILorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;
?? X
?? ?
?? ?
??
??H
??P
???
???
??0
??3
??8
??K
?? org/python/core/PyRunnable? Lorg/python/compiler/APIVersion; % Lorg/python/compiler/MTime; `9?? Lorg/python/compiler/Filename; c/home/trustin/Workspaces/sphinx-maven-plugin/target/update-sphinx/dist/pygments/formatters/latex.py org/python/core/ThreadState? [Ljava/lang/String;? OB Code LineNumberTable StackMap
SourceFile RuntimeVisibleAnnotations ! ?T ? VW ? X ? ? ? ? ? ? H ? P ? ? ? ? ? 0 ? 3 ? 8 ? K ? ? ? R+? ? +
? ? W+? ? N-S-+? "N-2:+? %:+? '? N-)S-+? "N-2:+)? %:+? +? N--S-+? "N-2:+-? %:+? /? N-1S-3S-+? "N-2:+1? %:-2:+3? %:+? 5? N-7S-9S-;S-=S-?S-+? "N-2:+7? %:-2:+9? %:-2:+;? %:-2:+=? %:-2:+?? %:+? ? AY? CYE? S? IN+K-? %N+? ? QN? SY+? W-? ?? ?N+?-? %N+-? ?? N+?-? %N+d? ?? N+?-? %N+ ?? ? QN? SY+? W-? ?? ?N+?-? %N+ ?? ? CN+)? ?-__SE-?#?':+E? %:-?-+?? ? CN+-? ?-__S/-?Q?':+/? %:-?-+? ??E? ? 6
- d ? ? ? X ? ? ?+? +? \^? b,d? f? ? j^? b,l? n? ? j^? b,p? r? ? j^? b,f? t? +? \? x? j^? b,n? z? +? \? x? j^? b,r? |? +? \? x? j^? b,~? ?? +? \? x? j^? b,?? ?? +? \? x? j^? b,?? ?? +? \? x? j^? b,?? ?? +? \? x? j^? b,?? ?? +? \? x? j^? b,?? ?? +? \? x? j^? b,?? ?? +? \? x? j^? b,?? ?? +? \? x? j^? b,?? ?? +? \? x? j^? b,?? ?? +? \? x? j^? b,?? ?? +? \? x? j^? b,?? ?? +? \? x? jN+? ?-? ? ? ? ? + ?? +3? ?ȶ b,+? \? ?N+-? ?N+ ?? +? \? ҙ + ?? +? \N+? ?-?+ ?? Ը :+? ?:? n+ ?? +? \? ض ?+? \? ?:+? ?:+ ?? +? \? b:+? ?:+ ?? +3? ?ȶ b,+? \? ?:+? ?:+ ?? +? \:+? ?_? ?:? Қ?u+ ?? +? \+? \? ?N+? ?-? ? &