Cyfrin Updraft.

Post

Share your knowledge.

Cyfrin Moderator Pst.
Mar 29, 2024
Expert Q&A

Seeking Small LaTeX Package for Linux Installation

I attempted to install LaTeX on my Linux machine using sudo apt-get install texlive-full, which consumed over 7 GB of storage, causing my 120 GB SSD system to run out of space. As a result, I had to remove it. Could someone provide a link to a smaller LaTeX package (less than 1 GB) that is sufficient for my needs?

Any guidance or recommendations would be greatly appreciated. Thank you.

  • Foundry
  • Course
0
1
Share
Comments
.

Answers

1
Cyfrin Moderator Ans.
Mar 29 2024, 10:50

To uninstall the TeX Live package, you can use the following commands in the Ubuntu terminal:

sudo apt-get purge texlive-*
sudo apt-get autoremove
sudo apt-get autoclean
cd /usr/local/
sudo rm -rf texlive/

If you have the texmf folder in the home directory, you can remove it using a similar command.

For installation, you can follow these steps:

  1. Download the installation script:
cd /tmp
wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
zcat < install-tl-unx.tar.gz | tar xf -
cd install-tl-*
  1. Run the installation script:
perl ./install-tl --no-interaction

If you encounter storage issues, you can use the following command instead:

sudo perl ./install-tl --no-interaction --scheme=small --no-doc-install --no-src-install

After installation, you need to update your PATH variable to include the TeX Live binaries. You can do this by editing the .bashrc file:

nano ~/.bashrc

Add the following lines at the end of the file:

export PATH='/usr/local/texlive/2023/bin/x86_64-linux:$PATH'
export MANPATH='$MANPATH:/usr/local/texlive/2023/texmf-dist/doc/man'
export INFOPATH='$INFOPATH:/usr/local/texlive/2023/texmf-dist/doc/info'

Save the file and run:

source ~/.bashrc

Now, you can use tlmgr to manage your TeX Live installation.

To convert a Markdown file (report.md) to a PDF using Pandoc with a specific template (eisvogel.latex), you can use the following command:

pandoc report.md -o report.pdf --from markdown --template=/*location-to-eisvogel*/eisvogel --listings

If you encounter a 'File 'sourcesanspro.sty' not found' error, you can initialize a user tree and install the missing packages using tlmgr:

tlmgr init-usertree
tlmgr --usermode install sourcesanspro

You may need to install additional packages based on the error messages. Simply run the pandoc command, check for missing files, and install them using tlmgr --usermode install $package_name.

These steps should help you manage your TeX Live installation effectively.

0
Official Answer
Comments
.

Do you know the answer?

Please log in and share it.

We use cookies to ensure you get the best experience on our website.
More info