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>)

  • 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-2021-ex.txt # if problems change year date according to stable TeX distrib
    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/automultiplechoice.sty /home/pedro/.TinyTeX/texmf-local/tex/latex/local/automultiplechoice.sty
    texhash
    

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)