Amc with TinyTeX

Version 1 (p10 p, 03/16/2022 05:05 pm) → Version 2/5 (p10 p, 03/16/2022 05:05 pm)

h1. Amc with TinyTeX

TinyTeX is a great minimal tex distribution (doc, fonts, and myriad of packages package are not installed by default).
The only drawback is that you need to install needed package (with a simple command commande 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 :
<pre>
echo "export PATH=/home/${USER}/bin/:$PATH" >> ~/.xsessionrc
</pre>

and source xsessionrc file (or reboot your system).

<pre>
source ~/.xsessionrc
</pre>

* Let your package system think all dependencies dependecies for auto-multiple-choice package are installed :
<pre>
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
</pre>

* Install AMC needed tex package (and others if needed)
<pre>
tlmgr install xltxtra realscripts bophook fancybox csvsimple environ etex-pkg fancyhdr pgf
sudo ~/bin/mktexlsr
</pre>

* Then install your amc distrib package
<pre>
sudo apt install auto-multiple-choice
</pre>

* Create a symlink of automultiplechoice.sty, to make it available for your TinyTeX distribution :
<pre>
sudo ln -s /usr/share/texmf/tex/latex/AMC ~/.TinyTeX/texmf-local/tex/latex/AMC
</pre>

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)