A collection of custom style packages, designed for personal use.
There are a number of preparations that you must make in order that this work properly. Note that there are two ways to install these custom style sheets: either for all users or for a particular user.
You must have MacTeX installed -- these instructions were tested on macOS Ventura with MacTeX 2022.
Create directory texmf in Library:
mkdir ~/Library/texmfCreate a tex directory inside texmf as a GitHub repo:
cd ~/Library/texmf/
git init tex
cd texNow add the git repository. TeX live will find all the subdirectories inside tex and you can use any of the
styles contained therein.
git remote add -f origin https://github.com/corei8/latex-custom-styles.gitSkip the next section and continue to installation .
TeX Live should already have this path waiting for you:
cd /usr/local/texlive/texmf-localIf it does not exist, then make the directory, and then repeat the above command:
mkdir /usr/local/texlive/texmf-localInitialize the GitHub repo:
git initNow add the git repository. TeX live will find all the subdirectories inside texmf-local and you can use any of the
styles contained therein.
git remote add -f origin https://github.com/corei8/latex-custom-styles.gitSkip to the final step if this is not for you.
Run the command:
git config core.sparseCheckout trueNow you can select the directories that you want to install:
echo "some/dir/" >> .git/info/sparse-checkoutRepeat the above command, changing the directory as desired, for as many folders as you want to include.
Pull the repository with:
git pull origin mainTo get the latest version of the styles, you must first enter the directory (either ~/Library/texmf/tex or /usr/local/texlive/texmf-local, depending), and then you
have to execute git pull origin main again.
A very opinionated command:
\psalm[<gloria/no gloria>][<title>]{<psalm>}{<mode>}For example, \psalm[ng]{15}{7c} will set psalm XV to 7c without a Gloria.
This command in itself, though opinionated, can be used with other commands to
great effect. Here is an example from my
chant repository:
\newcounter{antiphon}\setcounter{antiphon}{1}
\newcounter{allantiphon}\setcounter{allantiphon}{1}
\newcommand{\buildpsalm}[3]{
\ifnum \value{allantiphon}=10 {\setcounter{antiphon}{1}} \fi
\gresetannotationvalign{bottom}
\greannotation{Ant. \theantiphon}
\gresetgregpath{{./antiphons/}}
\greannotation{#3}
\gregorioscore{#1}
\subsection{Psalm #2.}
\gresetinitiallines{0}
\psalm[ng]{#2}{#3}
\stepcounter{antiphon}
\stepcounter{allantiphon}
\gresetinitiallines{1}
}NOTE
Other options will be added as needed/requested (e.g., no color, no psalm title, numbers, etc.). There are still a few problems with the psalms, as I did not write the parser myself. Some of the more obscure tones are missing and there are some unusual renditions of others. I will be working on those soon and will perhaps be writing my own parser. To my knowledge, the text of the psalms is perfect, and much work has been done to get rid of some of the nuances that were present. bringing to my attention any typos that you may find will be much appreciated.