texlive.js icon indicating copy to clipboard operation
texlive.js copied to clipboard

Missing packages -- how to add them?

Open ocram opened this issue 10 years ago • 6 comments

When I call \usepackage{...} with some fancier packages, it usually fails due to a missing file.

Examples: tabu.sty, booktabs.sty, xcolor.sty, setspace.sty, changepage.sty, url.sty

I think this wiki section is there to help. But I still have some open questions:

Do I need to compile something with emscripten whenever I want to add new packages?

Or is it enough if I just add the original .sty files to texlive/texmf-dist/tex/latex/ and then add the filename to supported_packages in website/texlive.js?

Can someone who has successfully added packages help? Thanks!

ocram avatar Sep 10 '14 13:09 ocram

No, compilation should not be necessary.

manuels avatar Sep 10 '14 13:09 manuels

I've added all the .sty files from my local TeXLive to texlive.js but I'm still seeing the same error.

Moreover, I wasn't able to add the filenames to the supported_packages array as described here because that file doesn't even exist in the repository anymore.

So texlive.js must be checking and loading packages dynamically, right?

Any chance there's just a small bug preventing texlive.js from finding my tabu.sty which is actually there?

Another error message:

! Package babel Error: Unknown option `ngerman'. Either you misspelled it

(babel)                or the language definition file ngerman.ldf was not foun

d.

Seems to belong to the same class of problems. The file ngerman.ldf is actually there, but texlive.js just doesn't find it, apparently.

ocram avatar Sep 13 '14 05:09 ocram

What about commands like texhash (that you normally run whenever you added new files) or updmap-sys --enable Map=fontname.map (that you normally run whenever you added a font with a .map file)? Can we execute them in texlive.js as well? Maybe that will be the solution :)

ocram avatar Sep 15 '14 04:09 ocram

I'd suggest using strace -e open pdlatex ... to figure out the path where latex looks up ngerman.ldf

manuels avatar Sep 18 '14 19:09 manuels

I managed to include the package setspace.

What I did was copying setspace.sty to texlive/texmf-dist/tex/latex/setspace/setspace.sty and adding it both to texlive/texmf-dist/ls-R and to texlive.lst.

Later I found out that you can update texlive.lst by running make texlive.lst and an ls-R file can be updated by navigating into its directory and running ls -R -1 > ls-R.

swenzel avatar Mar 15 '16 19:03 swenzel

Hello :) Is there any news about how to install packages such as xltabular.sty on a texlive.js environement ? I already tested what swenzel suggested but it didn't work for me. Thank you !!

Zabeth29 avatar Jan 20 '21 10:01 Zabeth29