manuels / texlive.js

Compiling LaTeX (TeX live) in your browser
http://manuels.github.com/texlive.js/
GNU General Public License v2.0
1.25k stars 139 forks source link

Font file missing in demo #1

Open manuels opened 11 years ago

manuels commented 11 years ago

demo prints

LaTeX Font Warning: Font shape `OMS/cmr/m/n' undefined
(Font)              using `OMS/cmsy/m/n' instead
(Font)              for symbol `textbraceleft' on input line 98.

Obviously one more file has to be imported into the virtual filesystem of emscripten to make the italic font work correctly. Which file is it?

ghost commented 11 years ago

maybe: http://tex.stackexchange.com/questions/4824/what-do-this-font-shape-warnings-mean

http://www.tex.ac.uk/ctan/macros/latex/unpacked/fix-cm.sty

manuels commented 11 years ago

Thanks for the hint. I tried to include this package, but the warning stayed.

coventry commented 8 years ago

I am seeing a similar (but fatal) error when I try to run the demo.

[]\OT1/cmr/m/n/12 T[]Xlive.js even supports images! This photo was taken by Lau
ra Poitras/Praxis

! LaTeX Error: File `snowden' not found.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              

l.31 ...hics[height=5cm, keepaspectratio]{snowden}

[1{//texmf-dist/fonts/map/pdftex/updmap/pdftex.map}] (./input.aux) )

kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 cmr6
(see the transcript file for additional information)kpathsea: pipe(): Function not implemented
kpathsea: Appending font creation commands to missfont.log.

!pdfTeX error: /bin/this.program (file cmr6): Font cmr6 at 72 not found
 ==> Fatal error occurred, no output PDF file produced!
fzimmermann89 commented 8 years ago

That seem to be a different error and is somehow caused by truncating pdftex.map. If you remove all the lines above the cm* lines it works.

I don't know yet why the file is truncated and how to solve it, maybe someone has an idea?

fzimmermann89 commented 8 years ago

It seems to be caused by gzip. Disabling it on the server solves the issue for me.

The reason is that emscripten will interpret the content-length in the response header as the length of the file and truncates it.

To fix it there should be a patch in emscripten..

fzimmermann89 commented 8 years ago

I will submit a PR to emscripten. In master it should be fixed, so there should just be an update of the demo. You can visit fzimmermann89.github.io/texlive.js/ for a Wirkung demo

fzimmermann89 commented 8 years ago

The issue should be solved with https://github.com/kripken/emscripten/commit/89b3661ff6427132c4fcfe55f7689af9ae85fcb2

MariusHerget commented 5 years ago

@fzimmermann89 I get a similiar error to @coventry. Ist there a solution to this?

(//texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg)) [1{//texmf-var/fonts/map/pdftex/updmap/pdftex.map
pdfTeX warning: /latex (file //texmf-var/fonts/map/pdftex/updmap/pdftex.map): invalid entry for `pdftex_dl14.map': both ps_name and font file missing

kpathsea: Running mktexpk --mfmode / --bdpi 72 --mag 1+0/72 --dpi 72 cmr6
kpathsea: pipe(): Function not implemented
kpathsea: Appending font creation commands to missfont.log.

}] (./input.aux) )

!pdfTeX error: /latex (file cmr6): Font cmr6 at 72 not found
 ==> Fatal error occurred, no output PDF file produced!

Edit Nevermind I used @fzimmermann89 texlive.js which works out of the box like a charm ;)

fzimmermann89 commented 5 years ago

Ok, I just started writing down some questions for troubleshooting - then I saw your edit... :D

MariusHerget commented 5 years ago

@fzimmermann89 I am currently trying to use Arial (UArial) in my project but I am getting a similar error message. Any ideas about how to solve it?

....

kpathsea: Running mktextfm ecrm1000
kpathsea: pipe(): Function not implemented
kpathsea: Appending font creation commands to missfont.log.
(/texmf-dist/tex/latex/base/fontenc.sty (/texmf-dist/tex/latex/base/t1enc.def)
! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not fou
nd.
<to be read again> 
                   relax 
l.105 \fontencoding\encodingdefault\selectfont

) (/texmf-dist/tex/latex/ua1/uarial.sty)

....

kpathsea: Running mktexpk --mfmode / --bdpi 600 --mag 1+0/600 --dpi 513 ua1r8r
kpathsea: pipe(): Function not implemented
(see the transcript file for additional information)
!pdfTeX error: /latex (file ua1r8r): Font ua1r8r at 513 not found
 ==> Fatal error occurred, no output PDF file produced!