Created
March 7, 2018 20:38
-
-
Save amoodie/9cb184bf27dedcf504392276e684b02c to your computer and use it in GitHub Desktop.
Using symbolic links to add GitHub based class to LaTeX path (TeX tree)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# this script will set up symbolio links. You can change variable to make it work for your system. | |
## VARIABLES ## | |
# define the path to the head of your tex-tree | |
texpath=/usr/share/texlive/texmf-dist/tex/latex | |
#texpath=<your-own-tex-path> | |
# define the class name | |
classname=compact_proposal | |
# define the path to the class file you wish to add to the tree | |
classpath=/home/andrew/Dropbox/git_repos/compact_proposal/compact_proposal/compact_proposal.cls | |
## SCRIPT ## | |
# note that you could (read:should) just run these commands yourself with the paths inserted | |
sudo rm -rf $texpath/compact_proposal | |
sudo texhash | |
sudo mkdir $texpath/compact_proposal | |
sudo ln -s $classpath $texpath/compact_proposal/compact_proposal.cls | |
sudo texhash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment