« Previous - Version 2/5 (diff) - Next » - Current version
p10 p, 03/16/2022 05:05 pm

Amc with TinyTeX

TinyTeX is a great minimal tex distribution (doc, fonts, and myriad of packages are not installed by default).
The only drawback is that you need to install needed package (with a simple command like tlmgr install <package-name>)

  • Follow the instructions to Install TinyTeX : https://yihui.org/tinytex/#installation
  • binary files are stored in ~/bin. You need to put this directory in the path var. In many case It could be done by this command :
    echo "export PATH=/home/${USER}/bin/:$PATH" >> ~/.xsessionrc

and source xsessionrc file (or reboot your system).

source ~/.xsessionrc
  • Let your package system think all dependencies for auto-multiple-choice package are installed :
    sudo apt install equivs --no-install-recommends
    mkdir -p /tmp/tl-equivs && cd /tmp/tl-equivs
    equivs-control texlive-local
    wget -O texlive-local http://www.tug.org/texlive/files/debian-equivs-2020-ex.txt
    equivs-build texlive-local
    sudo dpkg -i texlive-local_2020-1_all.deb
    sudo apt install -f
  • Install AMC needed tex package (and others if needed)
    tlmgr install xltxtra realscripts bophook fancybox csvsimple environ etex-pkg fancyhdr pgf
    sudo ~/bin/mktexlsr
  • Then install your amc distrib package
    sudo apt install auto-multiple-choice
  • Create a symlink of automultiplechoice.sty, to make it available for your TinyTeX distribution :
    sudo ln -s /usr/share/texmf/tex/latex/AMC ~/.TinyTeX/texmf-local/tex/latex/AMC

Now your system is ready. In case of missing package error. You can install it with tlmgr install <package-name> (see : https://yihui.org/tinytex/#maintenance)