diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
commit | cca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch) | |
tree | 146f39ded1c938019e1ed42d30923c2ac9e86789 /share/extensions/pdflatex.inx | |
parent | Initial commit. (diff) | |
download | inkscape-upstream/1.2.2.tar.xz inkscape-upstream/1.2.2.zip |
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | share/extensions/pdflatex.inx | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/share/extensions/pdflatex.inx b/share/extensions/pdflatex.inx new file mode 100644 index 0000000..67425c4 --- /dev/null +++ b/share/extensions/pdflatex.inx @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension"> + <name>Formula (pdflatex)</name> + <id>org.inkscape.generate.pdf_latex</id> + <dependency type="executable" location="path">pdflatex</dependency> + <param name="page" type="notebook"> + + <page name="basic" gui-text="Basic settings"> + <param name="formule" type="string" gui-text="LaTeX input:">\(\displaystyle\frac{\pi^2}{6}=\lim_{n \to \infty}\sum_{k=1}^n \frac{1}{k^2}\)</param> + <param name="font_size" type="int" gui-text="Font size (pt)" max="100" min="3">10</param> + </page> + <page name="advanced" gui-text="Advanced settings"> + <param name="standalone" type="bool" gui-text="Use standalone document class" + gui-description="Without the standalone document class, font sizes other than 10pt are achieved by +scaling the resulting PDF output (internally, the document class 'minimal' is used). +More correct spacing for all font sizes can be achieved by using 'standalone'. +However, the required packages might not be available on all systems.">true</param> + <param name="preamble" type="string" gui-text="Custom preamble code" + >\usepackage{amsmath}\usepackage{amssymb}\usepackage{amsfonts}</param> + <!-- TODO: Convert this to multiline after https://gitlab.com/inkscape/inbox/-/issues/6573 is fixed --> + </page> + + </param> + <effect needs-live-preview="false"> + <object-type>all</object-type> + <effects-menu> + <submenu name="Render"/> + </effects-menu> + </effect> + <script> + <command location="inx" interpreter="python">pdflatex.py</command> + </script> +</inkscape-extension> |