Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
paladhammika committed Aug 30, 2024
1 parent 221efcc commit 8e66d20
Show file tree
Hide file tree
Showing 173 changed files with 2,795 additions and 15,843 deletions.
322 changes: 180 additions & 142 deletions 9x13.sty

Large diffs are not rendered by default.

236 changes: 127 additions & 109 deletions A5.sty
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
% Defines a custom LaTeX package named A5
\ProvidesPackage{A5}

\usepackage{pdfcomment}

\newcommand{\todo}[1]{\pdfcomment[icon=Note]{#1}}

\newcommand{\margintodo}[1]{\pdfmargincomment[icon=Note]{#1}}

\usepackage{ltablex}
% Import the ltablex package for extended functionality for tables
\RequirePackage{ltablex}

% Define lengths for indentation in various contexts
\newlength\leaderIndent
\setlength{\leaderIndent}{1.5em}

\newlength\packedLeaderIndent
\setlength{\packedLeaderIndent}{1.1em}

% Set vertical gap
\setlength{\vgap}{1.5em}

% Set vertical indentation
\setlength{\vindent}{\leaderIndent}

% Set vertical left margin
\setlength{\vleftmargin}{2em}

% Set paragraph skip and indent
\setlength{\parskip}{5pt}
\setlength{\parindent}{0pt}

\renewenvironment{center}%
{\list{}{%
\parskip 0pt%
\topsep 6pt%
\topsep 5pt%
\listparindent 0em%
\itemindent 0pt%
\leftmargin 0pt %\leaderIndent%
Expand All @@ -34,6 +34,10 @@
\item[] \centering}%
{\endlist}

% ░█▀█░█▀█░█░░░▀█▀
% ░█▀▀░█▀█░█░░░░█░
% ░▀░░░▀░▀░▀▀▀░▀▀▀

% 'Handa mayaṁ...``
\newenvironment{leader}%
{\list{}{%
Expand Down Expand Up @@ -79,6 +83,95 @@
\item[] \centering}%
{\endlist}

% Formatting for verses
\newenvironment{verses}%
{\list{}{%
\topsep 0pt
\listparindent 0em%
\itemindent 0em%
\leftmargin 0em %\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep 0em %\z@ \@plus\p@%
}%
\item[] \raggedright}%
{\endlist}

\newenvironment{pali-hang}%
{\list{}{%
\topsep 0pt
\itemsep 3pt
\listparindent 0em%
\itemindent -0.5em%
\leftmargin 0.5em %2.5em %\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep \z@ \@plus\p@%
}%
\item[] \raggedright}%
{\endlist}

% Pali introductions or phrases that are only chanted by the leader
\newenvironment{leader-pali}%
{\list{}{%
\topsep 0pt
\listparindent 0em%
\itemindent 0em%
\leftmargin 0em %2.5em %\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep \z@ \@plus\p@%
}%
\item[] \centering}%
{\endlist}

% Enables a line to hang that is sandwiched within a paragraph
\newenvironment{pali-hang-together}%
{\list{}{%
\topsep -8pt
\listparindent 0em%
\itemindent -0.75em%
\leftmargin 0.75em %2.5em %\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep -8pt %\z@ \@plus\p@%
}%
\item[] \raggedright}%
{\endlist}

% Continues the indentation from a previous 'pali-hang*' which indicates continuous chanting (found in 'Protective Recitations')
\newenvironment{pali-hang-continued}%
{\list{}{%
\topsep 0pt
\listparindent 0em%
\itemindent 0em%
\leftmargin 0.5em %2.5em %\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep \z@ \@plus\p@%
}%
\item[] \raggedright}%
{\endlist}

\newenvironment{pali-hang-first-line}%
{\list{}{%
\partopsep 0pt
\topsep 4pt
\listparindent 0em%
\itemindent -0.5em%
\leftmargin 0.5em%\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep \z@ \@plus\p@%
}%
\item[] \raggedright}%
{\endlist}


% ░█▀▀░█▀█░█▀▀░█░░░▀█▀░█▀▀░█░█
% ░█▀▀░█░█░█░█░█░░░░█░░▀▀█░█▀█
% ░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀▀▀░▀▀▀░▀░▀

% Specific formatting found in 'Devā-ārādhanā' / 'Invitations to the Devas'
\newenvironment{leader-pharitvana-english}%
{\list{}{%
Expand All @@ -96,7 +189,7 @@
{\endlist}

% Reduces above spacing for english leader when paired with a pali introduction
\newenvironment{leader-english-belowpali}%
\newenvironment{leader-english-below-pali}%
{\list{}{%
\parskip 6pt%
\topsep -2pt%
Expand Down Expand Up @@ -125,20 +218,6 @@
\item[] \centering\itshape}%
{\endlist}

% Formatting for verses
\newenvironment{verses}%
{\list{}{%
\topsep 0pt
\listparindent 0em%
\itemindent 0em%
\leftmargin 0em %\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep 0em %\z@ \@plus\p@%
}%
\item[] \raggedright}%
{\endlist}

% For English passages that are preceeded by Pāli, remains closer to the preceeding Pāli
\newenvironment{english}%
{\list{}{%
Expand Down Expand Up @@ -198,7 +277,7 @@
{\endlist}

% Enables an English line to hang that is sandwiched within a paragraph
\newenvironment{english-hangtogether}%
\newenvironment{english-hang-together}%
{\list{}{%
\topsep 0pt
\listparindent 0em%
Expand All @@ -212,8 +291,8 @@
\item[] \raggedright\itshape}%
{\endlist}

% Wraps around the `english-hangtogether` environment to allow the middle hang indent to keep congruent spacing
\newenvironment{english-keepwith}%
% Wraps around the `english-hang-together` environment to allow the middle hang indent to keep congruent spacing
\newenvironment{english-keep-with}%
{\list{}{%
\topsep 0pt
\partopsep 0pt
Expand Down Expand Up @@ -242,7 +321,7 @@
{\endlist}

% Hanging format for chants that are only in English
\newenvironment{english-only-hangtogether}%
\newenvironment{english-only-hang-together}%
{\list{}{%
\topsep 0pt
\listparindent 0em%
Expand All @@ -256,8 +335,8 @@
\item[] \raggedright\itshape}%
{\endlist}

% Similar to keepwith, wraps around `english-hangtogether` but doesn't keep with previous paragraph
\newenvironment{english-only-nohang}%
% Similar to keep-with, wraps around `english-hang-together` but doesn't keep with previous paragraph
\newenvironment{english-only-no-hang}%
{\list{}{%
\topsep 0pt
\listparindent 0em%
Expand Down Expand Up @@ -300,7 +379,7 @@
{\endlist}

% Used for TWO problematic line
\newenvironment{english-hang-firstline}%
\newenvironment{english-hang-first-line}%
{\list{}{%
\partopsep 0pt
\topsep 4pt
Expand Down Expand Up @@ -330,7 +409,7 @@
{\endlist}

% Hanging format for English chants, primarily for verses
\newenvironment{english-hangtogether-verses}%
\newenvironment{english-hang-together-verses}%
{\list{}{%
\topsep 0pt
\listparindent 0em%
Expand All @@ -344,88 +423,23 @@
\item[] \raggedright\itshape}%
{\endlist}

\newenvironment{pali-hang}%
{\list{}{%
\topsep 0pt
\itemsep 3pt
\listparindent 0em%
\itemindent -0.5em%
\leftmargin 0.5em %2.5em %\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep \z@ \@plus\p@%
}%
\item[] \raggedright}%
{\endlist}

% Pali introductions or phrases that are only chanted by the leader
\newenvironment{pali-leader}%
{\list{}{%
\topsep 0pt
\listparindent 0em%
\itemindent 0em%
\leftmargin 0em %2.5em %\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep \z@ \@plus\p@%
}%
\item[] \centering}%
{\endlist}

% Enables a line to hang that is sandwiched within a paragraph
\newenvironment{pali-hangtogether}%
{\list{}{%
\topsep -8pt
\listparindent 0em%
\itemindent -0.75em%
\leftmargin 0.75em %2.5em %\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep -8pt %\z@ \@plus\p@%
}%
\item[] \raggedright}%
{\endlist}

% Continues the indentation from a previous 'pali-hang*' which indicates continuous chanting (found in 'Protective Recitations')
\newenvironment{pali-hang-continued}%
{\list{}{%
\topsep 0pt
\listparindent 0em%
\itemindent 0em%
\leftmargin 0.5em %2.5em %\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep \z@ \@plus\p@%
}%
\item[] \raggedright}%
{\endlist}

\newenvironment{pali-hang-firstline}%
{\list{}{%
\partopsep 0pt
\topsep 4pt
\listparindent 0em%
\itemindent -0.5em%
\leftmargin 0.5em%\leaderIndent%
\rightmargin 0em%
\fontsize{12.5}{18}\selectfont
\parsep \z@ \@plus\p@%
}%
\item[] \raggedright}%
{\endlist}

%%%%%%%%%%%%%%%%%%% Endnotes %%%%%%%%%%%%%%%%%%%
% ░█▀▀░█▀█░█▀▄░█▀█░█▀█░▀█▀░█▀▀░█▀▀
% ░█▀▀░█░█░█░█░█░█░█░█░░█░░█▀▀░▀▀█
% ░▀▀▀░▀░▀░▀▀░░▀░▀░▀▀▀░░▀░░▀▀▀░▀▀▀

% Changes the title for the Endnotes chapter
\renewcommand\notesname{Endnotes}
\renewcommand\notesname{%
Endnotes%
\vspace{-0.4em}%
}%

\renewcommand{\prenoteinnotes}{%
\small\par\noindent%
}%
\renewcommand{\noteidinnotes}[2]{% {notenum}{id}
\begin{adjustwidth}{14pt}{0pt}%
\hspace{-33pt}\makebox[30pt][l]{%
\makebox[18pt][1]{#2}%
\makebox[20pt][1]{#2}%
\makebox[16pt][l]{\ifnum#1>0\textsuperscript{#1}\fi%
}%
}%
Expand All @@ -436,7 +450,9 @@
}%
\renewcommand{\postnoteinnotes}{\par}%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
% ░▄▄▄░▄▄▄░▄▄▄░▄▄▄░▄▄▄░▄▄▄░▄▄▄░▄▄▄
% ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░

\newcommand\tr[1]{\textit{#1}}

Expand All @@ -446,7 +462,9 @@
\end{english}%
}

% ==== Tabular ==== %
% ░▀█▀░█▀█░█▀▄░█░█░█░░░█▀█░█▀▄
% ░░█░░█▀█░█▀▄░█░█░█░░░█▀█░█▀▄
% ░░▀░░▀░▀░▀▀░░▀▀▀░▀▀▀░▀░▀░▀░▀

\setlength{\tabcolsep}{1em}

Expand Down
Loading

0 comments on commit 8e66d20

Please sign in to comment.