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

Package Fitch #8

Open ghost opened 11 years ago

ghost commented 11 years ago

I have been successful in including the package fitch in texlive.js:

fitch: [ ['texlive/texmf-dist/tex/latex/fitch/fitch.sty', '/', 'fitch.sty'] ],

I had to download fitch.sty in: http://www.mathstat.dal.ca/~selinger/fitch/ and to create the folder "fitch" in ../texlive/texmf-dist/tex/latex. The document compiled:

![Uploading Captura de tela de 2013-01-26 22:04:38.png . . .]()

But, I cannot compile the document twice, because I guess there is a bug

![Uploading Captura de tela de 2013-01-26 22:06:46.png . . .]()

ghost commented 11 years ago

http://www.alessandroduarte.com.br/imagens/index.php/Captura-de-tela-de-2013-01-26-22-04-38

http://www.alessandroduarte.com.br/imagens/index.php/Captura-de-tela-de-2013-01-26-22-06-46

manuels commented 11 years ago

Weird, are you sure no other files (e.g. more fonts) are required?

If you run linux, you can check which files are required by running

 strace -e open pdflatex yourfile.tex 2>/tmp/required_files
manuels commented 11 years ago

Turns out, that you cannot run tex twice: You must reload the page before re-running the compiler. Maybe you face this issue here.

ghost commented 11 years ago

open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libpng12.so.0", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libpoppler.so.28", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/libkpathsea.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libm.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libgcc_s.so.1", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/liblcms2.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libtiff.so.5", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libjpeg.so.8", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libfreetype.so.6", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libfontconfig.so.1", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/liblzma.so.5", O_RDONLY|O_CLOEXEC) = 3 open("/usr/lib/x86_64-linux-gnu/libjbig.so.0", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libexpat.so.1", O_RDONLY|O_CLOEXEC) = 3 open("/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 open("/etc/texmf/web2c/texmf.cnf", O_RDONLY) = 3 open("/usr/share/texlive/texmf/web2c/texmf.cnf", O_RDONLY) = 3 open("/var/lib/texmf/ls-R", O_RDONLY) = 3 open("/usr/share/texmf/ls-R", O_RDONLY) = 3 open("/usr/share/texlive/texmf/ls-R", O_RDONLY) = 3 open("/usr/local/share/texmf/ls-R", O_RDONLY) = 3 open("/usr/share/texlive/texmf-dist/ls-R", O_RDONLY) = 3 open("./teste.tex", O_RDONLY) = 3 open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 3 open("/var/lib/texmf/web2c/pdftex/pdflatex.fmt", O_RDONLY) = 3 open("teste.tex", O_RDONLY) = 3 open("teste.log", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4 open("/usr/share/texlive/texmf-dist/tex/latex/base/article.cls", O_RDONLY) = 5 open("/usr/share/texlive/texmf-dist/tex/latex/base/article.cls", O_RDONLY) = 5 open("/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo", O_RDONLY) = 6 open("/usr/share/texmf/tex/latex/fitch/fitch.sty", O_RDONLY) = 5 open("/usr/share/texmf/tex/latex/fitch/fitch.sty", O_RDONLY) = 5 open("/usr/share/texlive/texmf-dist/tex/latex/base/fix-cm.sty", O_RDONLY) = 5 open("/usr/share/texlive/texmf-dist/tex/latex/base/fix-cm.sty", O_RDONLY) = 5 open("/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.def", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/tex/latex/base/ts1enc.def", O_RDONLY) = 6 open("teste.aux", O_RDONLY) = 5 open("teste.aux", O_RDONLY) = 5 open("teste.aux", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 5 open("/usr/share/texlive/texmf-dist/fonts/map/fontname/texfonts.map", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr17.tfm", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr12.tfm", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr8.tfm", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmr6.tfm", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmmi12.tfm", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmmi8.tfm", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmmi6.tfm", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmsy10.tfm", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmsy8.tfm", O_RDONLY) = 6 open("/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmsy6.tfm", O_RDONLY) = 6 open("teste.pdf", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 6 open("/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map", O_RDONLY) = 7 open("teste.aux", O_RDONLY) = 5 open("/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb", O_RDONLY) = 3 open("/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb", O_RDONLY) = 3 open("/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb", O_RDONLY) = 3 open("/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb", O_RDONLY) = 3 open("/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb", O_RDONLY) = 3

ghost commented 11 years ago

Well, I tested yesterday and managed to compile it in my localhost

manuels commented 11 years ago

I've checked it and it worked fine on my machine.

Turns out, that you cannot run tex twice: You must reload the page before re-running the compiler. Maybe you face this issue here.

Did you check that?

ghost commented 11 years ago

Oh yes, I see... but when I reload the page the text I have written disappears

manuels commented 11 years ago

Yes, use Ctrl+C, Ctrl+V ;)