Package common :: Module latex
[hide private]
[frames] | no frames]

Module latex

source code

Functions [hide private]
 
check_blacklist(str_) source code
 
get_tmpfile_name() source code
 
write_latex(filename, str_) source code
 
popen_nt_friendly(command) source code
 
check_for_latex_support()
Check if latex is available and if it can create a picture
source code
 
try_run(argv) source code
 
latex_to_image(str_) source code
Variables [hide private]
  log = logging.getLogger('gajim.c.latex')
  blacklist = ['\\def', '\\let', '\\futurelet', '\\newcommand', ...

Imports: os, random, gettempdir, Popen, PIPE, logging, gajim, LatexError, helpers


Function Details [hide private]

check_blacklist(str_)

source code 

get_tmpfile_name()

source code 

write_latex(filename, str_)

source code 

popen_nt_friendly(command)

source code 

check_for_latex_support()

source code 
Check if latex is available and if it can create a picture

try_run(argv)

source code 

latex_to_image(str_)

source code 

Variables Details [hide private]

log

Value:
logging.getLogger('gajim.c.latex')

blacklist

Value:
['\\def', '\\let', '\\futurelet', '\\newcommand', '\\renewcomment', '\\
\else', '\\fi', '\\write', '\\input', '\\include', '\\chardef', '\\cat\
code', '\\makeatletter', '\\noexpand', '\\toksdef', '\\every', '\\errh\
elp', '\\errorstopmode', '\\scrollmode', '\\nonstopmode', '\\batchmode\
', '\\read', '\\csname', '\\newhelp', '\\relax', '\\afterground', '\\a\
fterassignment', '\\expandafter', '\\noexpand', '\\special', '\\comman\
d', '\\loop', '\\repeat', '\\toks', '\\output', '\\line', '\\mathcode'\
, '\\name', '\\item', '\\section', '\\mbox', '\\DeclareRobustCommand',\
...