fieker-DuValspielwiese
Last change
on this file since f78374 was
678cfd,
checked in by Olaf Bachmann <obachman@…>, 27 years ago
|
This commit was generated by cvs2svn to compensate for changes in r337,
which included commits to RCS files with non-trunk default branches.
git-svn-id: file:///usr/local/Singular/svn/trunk@338 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100755
|
File size:
844 bytes
|
Line | |
---|
1 | #!/bin/csh -f |
---|
2 | # previews an mp data file using latex |
---|
3 | # NOTE: you must change the following to the correct path for the |
---|
4 | # the mpview program |
---|
5 | |
---|
6 | set progpath = $HOME/bin/$MP_ARCH |
---|
7 | |
---|
8 | if ( $?DISPLAY ) then |
---|
9 | echo "Viewing MP data with LaTeX" |
---|
10 | echo "" |
---|
11 | #set term = "xterm" not needed if latex script checks $DISPLAY |
---|
12 | set term = "xterm" |
---|
13 | |
---|
14 | set file = /tmp/mpl$$.tex |
---|
15 | cat > $file <<HERE |
---|
16 | \documentstyle[12pt]{article} |
---|
17 | \begin{document} |
---|
18 | |
---|
19 | HERE |
---|
20 | |
---|
21 | $progpath/mpview -latex $1 >> $file |
---|
22 | |
---|
23 | cat >> $file <<HERE |
---|
24 | |
---|
25 | \end{document} |
---|
26 | HERE |
---|
27 | cd /tmp; /usr/local/bin/latex $file >& /dev/null ; /bin/rm -f mpl$$.* |
---|
28 | |
---|
29 | else |
---|
30 | echo "Viewing MP data in infix form" |
---|
31 | echo "" |
---|
32 | $progpath/mpview -infix $1 |
---|
33 | endif |
---|
34 | |
---|
35 | set savefile = $HOME/${USER}{$$}.mp |
---|
36 | if ( { cp $1 $savefile } ) then |
---|
37 | echo MP data saved in $savefile for you |
---|
38 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.