Show More
@@ -39,24 +39,24 b' class LaTeXTool(SingletonConfigurable):' | |||||
39 | # for display style, the default ["matplotlib", "dvipng"] can |
|
39 | # for display style, the default ["matplotlib", "dvipng"] can | |
40 | # be used. To NOT use dvipng so that other repr such as |
|
40 | # be used. To NOT use dvipng so that other repr such as | |
41 | # unicode pretty printing is used, you can use ["matplotlib"]. |
|
41 | # unicode pretty printing is used, you can use ["matplotlib"]. | |
42 | config=True) |
|
42 | ).tag(config=True) | |
43 |
|
43 | |||
44 | use_breqn = Bool( |
|
44 | use_breqn = Bool( | |
45 | True, |
|
45 | True, | |
46 | help="Use breqn.sty to automatically break long equations. " |
|
46 | help="Use breqn.sty to automatically break long equations. " | |
47 | "This configuration takes effect only for dvipng backend.", |
|
47 | "This configuration takes effect only for dvipng backend.", | |
48 | config=True) |
|
48 | ).tag(config=True) | |
49 |
|
49 | |||
50 | packages = List( |
|
50 | packages = List( | |
51 | ['amsmath', 'amsthm', 'amssymb', 'bm'], |
|
51 | ['amsmath', 'amsthm', 'amssymb', 'bm'], | |
52 | help="A list of packages to use for dvipng backend. " |
|
52 | help="A list of packages to use for dvipng backend. " | |
53 | "'breqn' will be automatically appended when use_breqn=True.", |
|
53 | "'breqn' will be automatically appended when use_breqn=True.", | |
54 | config=True) |
|
54 | ).tag(config=True) | |
55 |
|
55 | |||
56 | preamble = Unicode( |
|
56 | preamble = Unicode( | |
57 | help="Additional preamble to use when generating LaTeX source " |
|
57 | help="Additional preamble to use when generating LaTeX source " | |
58 | "for dvipng backend.", |
|
58 | "for dvipng backend.", | |
59 | config=True) |
|
59 | ).tag(config=True) | |
60 |
|
60 | |||
61 |
|
61 | |||
62 | def latex_to_png(s, encode=False, backend=None, wrap=False): |
|
62 | def latex_to_png(s, encode=False, backend=None, wrap=False): |
General Comments 0
You need to be logged in to leave comments.
Login now