spielwiese
Last change
on this file since 951db29 was
894057,
checked in by Oleksandr Motsak <motsak@…>, 13 years ago
|
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
|
-
Property mode set to
100644
|
File size:
892 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "latex.lib"; |
---|
3 | // -------- prepare for example --------- |
---|
4 | if (defined(TeXaligned)) {int Teali=TeXaligned; kill TeXaligned;} |
---|
5 | if (defined(TeXreplace)) {list Terep=TeXreplace; kill TeXreplace;} |
---|
6 | // -------- the example starts here --------- |
---|
7 | // |
---|
8 | string fname = "tldemo"; |
---|
9 | ring @r1=0,(x,y,z),dp; |
---|
10 | export @r1; |
---|
11 | ring r2=0,(u,v),dp; |
---|
12 | map @phi =(@r1,u2,uv -v,v2); export @phi; |
---|
13 | list TeXreplace; |
---|
14 | TeXreplace[1] = list("@phi","\\phi"); // @phi --> \phi |
---|
15 | export TeXreplace; |
---|
16 | texmap("","@phi",@r1,r2); // standard form |
---|
17 | // |
---|
18 | int TeXaligned; export TeXaligned; // map in one line |
---|
19 | texmap("",@phi,@r1,r2); |
---|
20 | // |
---|
21 | kill @r1,TeXreplace,TeXaligned; |
---|
22 | // |
---|
23 | // --- restore global variables if previously defined --- |
---|
24 | if (defined(Teali)) {int TeXaligned=Teali; export TeXaligned; kill Teali;} |
---|
25 | if (defined(Terep)) {list TeXreplace=Terep; export TeXreplace; kill Terep;} |
---|
26 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.