google-code-export / wiki2latex

Automatically exported from code.google.com/p/wiki2latex
0 stars 1 forks source link

Manual pdflatex works, direct wiki export does not #68

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. After installing mediawiki, and w2l extension, choose LaTeX/PDF link on a 
wiki page and press "Download pdf-file" button.
2. Receive error msg (between --- and --- rows)
----
Creating file Main.tex with 36632 Bytes
Command: pdflatex -interaction=batchmode Main
Path: /tmp/w2ltmp-1306339437-424057724

== Run #1 ==
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian)
 restricted \write18 enabled.
entering extended mode
<w2l_pdf_not_created>

---

3. Check log file "Main.log": (complete log attached):

What is the expected output? What do you see instead?

I should get a pdf file, get only partial processing.

What version of Wiki2LaTeX are you using? On which Mediawiki version?

W2L version: Aegaeon, 2011-02-22.
Mediawiki version: 1.16.0
PHP: 5.3.2-1ubuntu4.7 (apache2handler)
MySQL: 5.1.41-3ubuntu12.10
Ubuntu Lucid 10.04 LTS.

Please provide any additional information below.

Main.log attached
IMPORTANT: The pdflatex setup is OK on the mediawiki server, if I put the .tex 
file generated by W2L in a folder on the server and run pdflatex on that file 
from the command line, the pdf is generated fine. No font errors, no strange 
Unicode error messages. 

Original issue reported on code.google.com by erik.ala...@gmail.com on 25 May 2011 at 4:19

Attachments:

GoogleCodeExporter commented 9 years ago
I have the same issue....:(

Original comment by phenomen...@gmail.com on 9 Jun 2011 at 3:13

GoogleCodeExporter commented 9 years ago
Hi, sorry for my late answer, but it might be a good one :)

If in your log-file LaTeX complains about a missing font like this:

!pdfTeX error: pdflatex (file ecti1200): Font ecti1200 at 600 not found
 ==> Fatal error occurred, no output PDF file produced!

here might be a solution for you:

On your server might be a normal user account, which has a home directory 
/home/USER  take this directory and add the following line to your 
w2lConfig.php (just adjust the home directory to the one which fits your 
server):

$w2lConfig['ltx_command'] = "export HOME=/home/USER && pdflatex 
-interaction=batchmode %file%";

I had this issue for a long time only fixable by restarting my webserver, but 
this might be a more elegant solution. It might not be a perfect solution and I 
try to come up with a better way, but for now it should work.

Original comment by hansgeorg.kluge@gmail.com on 3 Jul 2011 at 2:47

GoogleCodeExporter commented 9 years ago
Thank you, will give it a try.

Original comment by erik.ala...@gmail.com on 3 Jul 2011 at 8:00

GoogleCodeExporter commented 9 years ago
Thank you, hansgeorg.kluge. I have this issue and try your solution. It works 
like a dream. Thanks a lot!

Original comment by phenomen...@gmail.com on 11 Jul 2011 at 3:27

GoogleCodeExporter commented 9 years ago
I had the same issue with RHEL5.5. Since the web server runs as apache user, 
there is no way it could work.

This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
kpathsea: Running mktexfmt pdflatex.fmt
fmtutil: format directory `//.texmf-var/web2c' does not exist.
I can't find the format file `pdflatex.fmt'!

Please consider making a permanent fix, something like follows.

$w2lConfig['ltx_command'] = 'export HOME=/tmp; pdflatex -interaction=batchmode 
%file%';

Then those fmt files go to:

# find /tmp/.texmf-var/
/tmp/.texmf-var/
/tmp/.texmf-var/web2c
/tmp/.texmf-var/web2c/pdflatex.fmt
/tmp/.texmf-var/web2c/pdflatex.log
/tmp/.texmf-var/ls-R

Original comment by ptr...@gmail.com on 15 Jun 2012 at 9:13