summaryrefslogtreecommitdiffstats
path: root/share/extensions/pdflatex.inx
blob: 67425c4feb5243a7b63501d93c53839f7df64db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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>