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