Recent Posts

Pages: 1 ... 4 5 [6] 7 8 ... 10
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:
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.
52
WinFIG and LaTeX / Re: pb with miktex 2.9 ?
« Last post by florent on February 21, 2014, 12:00:53 AM »
thanks for answering I keep on fighting there is something I cant understant now

and if I do not solve this problem, I (skynet) will raise a cyborg army to help me :)
53
WinFIG and LaTeX / Re: pb with miktex 2.9 ?
« Last post by Andreas on February 19, 2014, 02:05:04 PM »
There is something wrong with permissions. The latex tools cannot write to C:/Users/SKYNET~1/AppData/Local/Temp

This is the temp directory of the current user (Skynet) and should be writable for the user Skynet.

54
WinFIG and LaTeX / Re: pb with miktex 2.9 ?
« Last post by florent on February 13, 2014, 10:58:32 PM »
Hi

latex & dvips are working from a CMD. winfig log is now fulfilled with those kind of errors (I don't know if it will be useful)
 
_______________________________________________________
C:/Users/SKYNET~1/AppData/Local/Temp/texclip.tex:5: Emergency stopC:\Users\SKYNET~1\AppData\Local\Temp\texclip: No such file or directory
dvips: DVI file can't be opened: Error: /undefinedfilename in (C:\\Users\\SKYNET~1\\AppData\\Local\\Temp\\texclip.eps)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:1153/1684(ro)(G)--   --dict:0/20(G)--   --dict:70/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 8.63: Unrecoverable error, exit code 1
Error: /undefinedfilename in (C:\\Users\\SKYNET~1\\AppData\\Local\\Temp\\texclip.eps)
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push
Dictionary stack:
   --dict:1153/1684(ro)(G)--   --dict:0/20(G)--   --dict:70/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 8.63: Unrecoverable error, exit code 1
C:/Users/SKYNET~1/AppData/Local/Temp/texclip.tex:5: I can't write on file `
_______________________________________________________________________________
55
WinFIG and LaTeX / Re: pb with miktex 2.9 ?
« Last post by Andreas on February 10, 2014, 03:24:34 AM »
WinFIG ist just calling the LaTeX commands that are configured in the preferences. It works if these can be executed. The LaTeX/bin folder must be in the PATH for that. Reinstalling WinFIG doesn't help.

You could open a CMD and try to call latex or dvips for a test.

Did you look into winfig.log?
56
WinFIG and LaTeX / Re: pb with miktex 2.9 ?
« Last post by florent on February 07, 2014, 08:42:55 AM »
Hi Andreas,

thanks for answering.

Miktex 2.9 is OK and working with WinEdt. I did what you told and all is ok, i'm able to find the right directory to mikteX/bin. But I guess Winfig should auto-detect it and it doesn't, and I can't find where I can manually set it in Winfig.

I think that maybe an reinstallation of winfig should work ?

Best regards,
Florent



57
WinFIG and LaTeX / Re: pb with miktex 2.9 ?
« Last post by Andreas on February 07, 2014, 02:32:36 AM »
I'm also having MikTeX 2.9 and it works. Can you still call latex on the command line?

Code: [Select]
C:\Users\Andreas>latex
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9)
**
! End of file on the terminal... why?
C:\Users\Andreas>

Check if MiKTeX is still in the PATH.

"set PATH" in the command line will show your current PATH variable. It should contain the bin directory of the MiKTeX installation i.e.

C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\
58
WinFIG and LaTeX / pb with miktex 2.9 ?
« Last post by florent on February 06, 2014, 09:47:30 PM »
Hi

I recently dropped miktek 2.7 and have succesfully installed the 2.9 version. All is ok except with winfig which doesn't want anymore render "special" using latex. I always have the same error

"Creating image from text object call failed.
Check the logfile winfig.log or disable LaTeX preview."

It seems winfig has lost its path to tex/dvips ? My command lines are
latex -quiet -job-name OUTFILE INFILE
dvips -quiet -E* -o OUTFILE INFILE

Thanks for any help.
59
Bug Reports / problem with miktex 2.9 ?
« Last post by florent on February 06, 2014, 09:43:36 PM »
Hi

I recently dropped miktek 2.7 and have succesfully installed the 2.9 version. All is ok except with winfig which doesn't want anymore render "special" using latex. I always have the same error

"Creating image from text object call failed.
Check the logfile winfig.log or disable LaTeX preview."

It seems winfig has lost its path to tex/dvips ? My command lines are
latex -quiet -job-name OUTFILE INFILE
dvips -quiet -E* -o OUTFILE INFILE

Thanks for any help.

60
General Discussion / Resolved: Problems with greek characters
« Last post by pie on January 15, 2014, 02:56:12 PM »
After beginning step by step from zero I have found the reason for my problems.
To produce a greek alpha character I have to type in the following in WinFIG:
$\alpha$
The special flag must be activated

Next I export the drawing with format 'PdfTeX' which produces two files - PS-file which contains the graphic without text and a TeX-file with file-suffix 'pdftex_t' which contains the text for the graphic.

In LyX then I create a 'TeX-Code' Box pressing Ctrl+L where I load the pdftex_t file (Einfügen -> Datei -> Einfacher Text)

In the document settings of LyX (Dokument -> Einstellungen -> LaTeX Vorspann) I have to add these two lines:
\usepackage{color}
\usepackage{graphicx}

Now LyX creates a PDF-File without problems.

The main reason for all my troubles was, that firstly I didn't understand exactly how all these export possibilites work together with LaTeX and furthermore I have forgotten the '$' at the beginning and the end of the formula.

Sorry for stealing your time! But sometimes I need someone to tell my problems - seems that this helps to analyze better and faster.
Thank you Andreas!
Pages: 1 ... 4 5 [6] 7 8 ... 10