File: tex-doc.m2

package info (click to toggle)
macaulay2 1.17.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 68,376 kB
  • sloc: cpp: 102,995; ansic: 10,040; javascript: 6,019; sh: 3,506; makefile: 3,426; lisp: 727; yacc: 590; perl: 369; xml: 177; python: 141; lex: 65; awk: 3
file content (58 lines) | stat: -rw-r--r-- 1,129 bytes parent folder | download
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
--- status: DRAFT
--- author(s): from before
--- notes: 

undocumented {
     (tex, Thing),
     (tex, String),
     (tex, Nothing),
     (tex, Hypertext),
     (tex, COMMENT),
     (tex, IMG),
     (tex, TO2),
     (tex, TO),
     (tex, TOH),
     (tex, HEADER1),
     (tex, HEADER2),
     (tex, HEADER3),
     (tex, HEADER4),
     (tex, HEADER5),
     (tex, HEADER6),
     (tex, LITERAL),
     (tex, STRONG),
     (tex, ITALIC),
     (tex, TEX),
     (tex, BR),
     (tex, TT),
     (tex, HR),
     (tex, PARA),
     (tex, CODE),
     (tex, HREF),
     (tex, TABLE),
     (tex, PRE),
     (tex, DL),
     (tex, DT),
     (tex, DD),
     (tex, OL),
     (tex, UL)
     }

document { 
     Key => tex,
     Headline => "convert to $\\TeX$ format",
     Usage => "tex x",
     Inputs => {
	  "x" => "any Macaulay2 object"
	  },
     Outputs => {
	  String => {TT "x", " converted to $\\TeX$ format"}
	  },
     EXAMPLE {
	  "R = ZZ[a..f];",
      	  "tex matrix {{a^2+2,b,c},{d,e,f^3-a}}",
	  },
     Caveat => {
	  "No attempt is made to wrap large matrices or equations."
	  },
     SeeAlso => {texMath, mathML, showTex}
     }