51
WinFIG and LaTeX / Re: pb with miktex 2.9 ?
« Last post by Andreas on February 21, 2014, 03:48:23 PM »WinFIG uses the following templates:
First it wraps the content of a tex object with the LaTeX envelope (see Preferences-> TeX view) and writes that to a file named texclip.tex.
Then it converts the texxclip.tex to texclip.dvi:
Then it converts texclip.dvi to texclip.eps:
Then it calls GhostScript to convert the EPS to PNG, which is then loaded into WinFIG and used for rendering the text object.
You could try to run the latex commands from the command line. Put some file named foo.tex into C:/Users/SKYNET~1/AppData/Local/Temp
Then run:
Then run:
If that works, it should work in WinFIG too, unless WinFIG is run with less permissions than the current user. If it doesn't work, try changing the variable TEMPDIR in the preferences dialog to some real path.
Code: [Select]
latex -quiet -output-directory TEMPDIR -job-name OUTFILE TEMPDIR/INFILE
dvips -quiet -E* -o TEMPDIR/OUTFILE TEMPDIR/INFILE
First it wraps the content of a tex object with the LaTeX envelope (see Preferences-> TeX view) and writes that to a file named texclip.tex.
Then it converts the texxclip.tex to texclip.dvi:
Code: [Select]
latex -quiet -output-directory TEMPDIR -job-name OUTFILE TEMPDIR/INFILE
Then it converts texclip.dvi to texclip.eps:
Code: [Select]
dvips -quiet -E* -o TEMPDIR/OUTFILE TEMPDIR/INFILE
Then it calls GhostScript to convert the EPS to PNG, which is then loaded into WinFIG and used for rendering the text object.
You could try to run the latex commands from the command line. Put some file named foo.tex into C:/Users/SKYNET~1/AppData/Local/Temp
Then run:
Code: [Select]
latex -quiet -output-directory C:/Users/SKYNET~1/AppData/Local/Temp -job-name foo.dvi C:/Users/SKYNET~1/AppData/Local/Temp/foo.tex
Then run:
Code: [Select]
dvips -quiet -E* -o C:/Users/SKYNET~1/AppData/Local/Temp/foo.eps C:/Users/SKYNET~1/AppData/Local/Temp/foo.dvi
If that works, it should work in WinFIG too, unless WinFIG is run with less permissions than the current user. If it doesn't work, try changing the variable TEMPDIR in the preferences dialog to some real path.