Amc with TinyTeX

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

1 1
h1. Amc with TinyTeX
2 1
3 2 p10 p
TinyTeX is a great minimal tex distribution (doc, fonts, and myriad of packages are not installed by default).
4 2 p10 p
The only drawback is that you need to install needed package (with a simple command like tlmgr install <package-name>)
5 1
6 1
* Follow the instructions to Install TinyTeX : https://yihui.org/tinytex/#installation
7 1
* 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 : 
8 1
<pre>
9 1
echo "export PATH=/home/${USER}/bin/:$PATH" >> ~/.xsessionrc
10 1
</pre>
11 1
12 1
and source xsessionrc file (or reboot your system).
13 1
14 1
<pre>
15 1
source ~/.xsessionrc
16 1
</pre>
17 1
18 2 p10 p
* Let your package system think all dependencies for auto-multiple-choice package are installed :
19 1
<pre>
20 1
sudo apt install equivs --no-install-recommends
21 1
mkdir -p /tmp/tl-equivs && cd /tmp/tl-equivs
22 1
equivs-control texlive-local
23 1
wget -O texlive-local http://www.tug.org/texlive/files/debian-equivs-2020-ex.txt
24 1
equivs-build texlive-local
25 1
sudo dpkg -i texlive-local_2020-1_all.deb
26 1
sudo apt install -f
27 1
</pre>
28 1
29 1
* Install AMC needed tex package (and others if needed)
30 1
<pre>
31 1
tlmgr install xltxtra realscripts bophook fancybox csvsimple environ etex-pkg fancyhdr pgf
32 1
sudo ~/bin/mktexlsr
33 1
</pre>
34 1
35 1
* Then install your amc distrib package
36 1
<pre>
37 1
sudo apt install auto-multiple-choice
38 1
</pre>
39 1
40 1
* Create a symlink of automultiplechoice.sty, to make it available for your TinyTeX distribution :
41 1
<pre>
42 1
sudo ln -s /usr/share/texmf/tex/latex/AMC ~/.TinyTeX/texmf-local/tex/latex/AMC
43 1
</pre>
44 1
45 1
46 1
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)