-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstat-methods.sty.ltxml
44 lines (35 loc) · 1.1 KB
/
stat-methods.sty.ltxml
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
34
35
36
37
38
39
40
41
42
43
44
package LaTeXML::Package::Pool;
use strict;
use warnings;
use LaTeXML::Package;
InputDefinitions('stat-methods',type=>'sty',noltxml=>1);
DefMacro('\listoftodos','');
DefMacro('\todo[]{}','');
RequirePackage('framed');
DefEnvironment('{mdframed}', sub {
my ($document, %props) = @_;
$_[0]->maybeCloseElement('ltx:p'); # this starts a new vertical block
insertBlock($document, $props{body},
framed => 'rectangle',
framecolor => $props{framecolor},
cssstyle => 'padding-top:' . $props{margin} . 'pt;padding-bottom:' . $props{margin} . 'pt'); },
beforeDigest => sub {
Let('\par', '\inner@par');
Let('\\\\', '\inner@par'); },
properties => sub { (framecolor => Black, margin => '12pt'); }
);
DefConstructor('\disclaimer{}',
"<ltx:rawhtml>"
."<xhtml:div class=\"disclaimer\" style=\"border-style: solid;\"><xhtml:p>#1</xhtml:p></xhtml:div>"
."</ltx:rawhtml>"
);
DefEnvironment('{minted} [] {}',
"<ltx:rawhtml>"
."<xhtml:div class=\"code\">"
."<xhtml:pre><xhtml:code>"
."#body"
."</xhtml:code></xhtml:pre>"
."</xhtml:div>"
."</ltx:rawhtml>"
);
1;