Module Expr Str Import alias Import alias Import alias Import alias Import alias ImportFrom alias alias alias ImportFrom alias Assign NameStore ListLoad Str FunctionDef arguments args NameParam defaults body Assign NameStore Str FunctionDef arguments args NameParam NameParam defaults body TryExcept body Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad name TupleStore NameStore NameStore body Print BinOpMod NameLoad Dict Str Str NameLoad NameLoad decorator_list Assign NameStore ListLoad NameLoad While NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore AttributeLoad NameLoad attr Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index Num orelse If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Delete SubscriptDel NameLoad Index Num orelse Assign NameStore BinOpAdd ListComp Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad comprehension NameStore NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body Expr Str Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore ListLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr For NameStore Call NameLoad Num NameLoad body Assign TupleStore NameStore NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad Str Str Str Str NameLoad NameLoad keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad TryFinally body Assign NameStore Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd SubscriptLoad Call AttributeLoad NameLoad attr Str Num Index Num Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call NameLoad NameLoad Str TryFinally body Assign NameStore Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Expr Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Lambda arguments args NameParam defaults NameLoad Dict body Return Call NameLoad Call NameLoad NameLoad keyword NameLoad keyword NameLoad decorator_list If CompareEq NameLoad Str body Import alias Import alias Import alias If CompareEq SubscriptLoad AttributeLoad NameLoad attr Slice Num Num ListLoad Str body Assign TupleStore NameStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr If NameLoad body Print BinOpAdd Str Call AttributeLoad Str attr NameLoad Print BinOpAdd Str Call AttributeLoad Str attr NameLoad orelse Print NameLoad orelse If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Str TryFinally body Assign TupleStore NameStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr finalbody Expr Call AttributeLoad NameLoad attr If NameLoad body Print BinOpAdd Str Call AttributeLoad Str attr NameLoad Print BinOpAdd Str Call AttributeLoad Str attr NameLoad orelse Print NameLoad orelse Expr Call AttributeLoad NameLoad attr
N/A N/A 
Created by Massimo Di Pierro
Licese BSD
 N/A subprocess N/A os N/A os.path N/A re N/A sys tempfile mkstemp mkdtemp NamedTemporaryFile markmin2latex markmin2latex N/A __all__ N/A markmin2pdf removeall N/A N/A path N/A N/A N/A ERROR_STR Error removing %(path)s, %(error)s  rmgeneric N/A N/A path __func__ N/A N/A N/A N/A N/A N/A __func__ path N/A N/A N/A OSError N/A N/A errno strerror N/A N/A N/A ERROR_STR N/A path error path strerror N/A N/A files N/A path N/A files N/A N/A file N/A files N/A 0 N/A N/A N/A N/A os path isfile file N/A N/A f N/A os remove N/A N/A rmgeneric file N/A os remove N/A N/A files N/A 0 N/A N/A N/A N/A N/A os path isdir file N/A N/A nested N/A N/A os listdir file N/A N/A nested N/A N/A N/A rmgeneric file N/A os rmdir N/A N/A files N/A 0 N/A N/A files N/A N/A N/A N/A N/A os path join file x N/A x nested files N/A latex2pdf N/A N/A latex pdflatex passes N/A pdflatex 3 N/A N/A 
    calls pdflatex in a tempfolder

    Arguments:

    - pdflatex: path to the pdflatex command. Default is just 'pdflatex'.
    - passes:   defines how often pdflates should be run in the texfile.
     N/A pdflatex pdflatex N/A passes passes N/A warnings N/A N/A tmpdir N/A mkdtemp N/A texfile N/A open N/A tmpdir /test.tex wb N/A N/A N/A texfile write latex N/A N/A N/A texfile seek 0 N/A N/A N/A texfile close N/A texfile N/A N/A N/A os path abspath N/A texfile name N/A i N/A range 0 passes N/A N/A N/A logfd logname N/A mkstemp N/A outfile N/A N/A os fdopen logfd N/A N/A N/A ret N/A N/A subprocess call N/A pdflatex -interaction=nonstopmode -output-format pdf -output-directory tmpdir texfile cwd N/A N/A N/A os path dirname texfile stdout outfile stderr N/A subprocess PIPE N/A N/A N/A N/A outfile close N/A re_errors N/A N/A re compile ^\!(.*)$ N/A re M N/A re_warnings N/A N/A re compile ^LaTeX Warning\:(.*)$ N/A re M N/A flog N/A open logname N/A N/A N/A loglines N/A N/A flog read N/A N/A N/A N/A flog close N/A errors N/A N/A re_errors findall loglines N/A warnings N/A N/A re_warnings findall loglines N/A N/A N/A os unlink logname N/A pdffile N/A N/A N/A N/A texfile rsplit . 1 N/A 0 .pdf N/A N/A N/A N/A os path isfile pdffile N/A N/A fpdf N/A open pdffile rb N/A N/A N/A data N/A N/A fpdf read N/A N/A N/A N/A fpdf close N/A N/A data None N/A N/A removeall tmpdir N/A N/A data warnings errors N/A markmin2pdf N/A N/A text image_mapper extra N/A N/A N/A N/A x N/A None N/A N/A N/A N/A latex2pdf N/A markmin2latex text image_mapper image_mapper extra extra N/A N/A N/A __name__ __main__ N/A N/A sys N/A doctest N/A markmin2html N/A N/A N/A N/A sys argv N/A 1 2 N/A -h N/A N/A N/A data warnings errors N/A markmin2pdf N/A markmin2html __doc__ N/A errors N/A N/A N/A ERRORS: N/A N/A join errors N/A N/A WARNGINS: N/A N/A join warnings N/A N/A data N/A N/A N/A N/A len N/A sys argv 1 N/A N/A fargv N/A open N/A N/A sys argv N/A 1 rb N/A N/A N/A N/A data warnings errors N/A markmin2pdf N/A N/A fargv read N/A N/A N/A N/A fargv close N/A errors N/A N/A N/A ERRORS: N/A N/A join errors N/A N/A WARNGINS: N/A N/A join warnings N/A N/A data N/A N/A N/A N/A doctest testmod