Amc with TinyTeX

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