Advertisement
RebelRose

💚Beautiful Font program large PKG💚

Apr 11th, 2025
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.55 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # This script handles the installation of a minimal TeX Live, followed by
  4. # some patches, additional tlmgr packages and other fixes...
  5.  
  6. # This script is a modification of termux-install-tl which comes bundled
  7. # with the Termux package called texlive-installer.
  8.  
  9. set -e
  10.  
  11. # Install two Termux packages, first of all.
  12. pkg install texlive-bin texlive-installer
  13.  
  14. # Fix PATH
  15. source $PREFIX/etc/profile.d/texlive.sh
  16.  
  17. # Select the "minimal" scheme instead of the "full" one. This amounts at
  18. # using a modified version of $PREFIX/opt/texlive/termux.profile bundled in
  19. # the package texlive-installer.
  20. sed 's/scheme-full/scheme-minimal/' \
  21.   $PREFIX/opt/texlive/termux.profile > \
  22.   $PREFIX/opt/texlive/termux-install-minimal.profile
  23.  
  24. echo -e "\\n:: starting the installer...\\n"
  25. $PREFIX/opt/texlive/install-tl/install-tl \
  26.   --custom-bin $PREFIX/bin/texlive \
  27.   --profile $PREFIX/opt/texlive/termux-install-minimal.profile
  28.  
  29. echo -e "\\n:: patching the TeX Live just installed...\\n"
  30. $PREFIX/bin/termux-patch-texlive
  31.  
  32. echo -e "\\n:: installing some TeX Live packages before...\\n"
  33. tlmgr install texlive-scripts-extra
  34. tlmgr install latex-bin
  35. tlmgr install texliveonfly
  36.  
  37. echo -e "\\n:: generating missing formats...\\n"
  38. fmtutil-sys --byfmt pdflatex
  39. fmtutil-sys --byfmt lualatex
  40.  
  41. echo -e "\\n:: conclusive fixes...\\n"
  42. updmap-sys
  43. texlinks
  44.  
  45. echo -e "\\n:: All done."
  46. echo -e ":: Restart the shell or source $PREFIX/etc/profile.d/texlive.sh to add the TeX Live programs to \$PATH.\\n"
  47.  
  48.  
  49. pkg install texlive-bin
  50.  
  51. tlmgr info schemes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement