diff --git a/README.md b/README.md index 916e186..c755fb2 100644 --- a/README.md +++ b/README.md @@ -41,3 +41,9 @@ sudo apt install texlive-latex-base sudo apt install texlive-extra-utils sudo apt install pdf2svg ``` + +* For OSx + +``` +brew install pdf2svg +``` diff --git a/files/ZAZLaTex2SVG_v0.1.0.oxt b/files/ZAZLaTex2SVG_v0.1.0.oxt index a1cdec1..bfda184 100644 Binary files a/files/ZAZLaTex2SVG_v0.1.0.oxt and b/files/ZAZLaTex2SVG_v0.1.0.oxt differ diff --git a/source/ZAZLaTex2SVG.py b/source/ZAZLaTex2SVG.py index d8bcd89..5a49d49 100644 --- a/source/ZAZLaTex2SVG.py +++ b/source/ZAZLaTex2SVG.py @@ -34,8 +34,14 @@ TEMPLATE = """\documentclass{{article}} # ~ \\begin{{document}} # ~ \\begin{{tikzpicture}} +# ~ \\node at (0, 0) {{ + # ~ \\begin{{equation*}} + # ~ \[ {} \] + # ~ \end{{equation*}} +# ~ }}; + # ~ \end{{tikzpicture}} # ~ \end{{document}} # ~ """ @@ -214,6 +220,7 @@ class ZAZLaTex2SVG(unohelper.Base, XJobExecutor): app.run(cmd) cmd = f'pdfcrop "{path_pdf}" "{path_pdf}"' app.run(cmd) + # ~ app.paths.copy(path_pdf, '/home/mau') cmd = f'pdf2svg "{path_pdf}" "{path_svg}"' app.run(cmd)