Skip to content

Commit

Permalink
[#29] Add linguistic commands
Browse files Browse the repository at this point in the history
  • Loading branch information
yax-lakam-tuun committed May 6, 2023
1 parent 7d318cf commit f51d313
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions maya.sty
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@

\RequirePackage{maya/codices}
\RequirePackage{maya/calendars}
\RequirePackage{maya/linguistics}
15 changes: 15 additions & 0 deletions maya/linguistics.sty
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{maya/linguistics}[Package for all kings of linguistics]
\RequirePackage{xspace}

\newcommand{\syllable}[1]{\textbf{\expandafter\MakeLowercase\expandafter{#1}}}
\newcommand{\logogram}[1]{\textbf{\expandafter\MakeUppercase\expandafter{#1}}}
\newcommand{\writing}[3]{\textbf{#1}, \emph{#2}, "#3"}
\newcommand{\mayan}[1]{\emph{#1}\xspace}
\newcommand{\english}[1]{\emph{#1}\xspace}
\newcommand{\spanish}[1]{\emph{#1}\xspace}
\newcommand{\nahuatl}[1]{\emph{#1}\xspace}
\newcommand{\nullmorpheme}{$\emptyset$\xspace}
\newcommand{\thompson}[1]{T#1\xspace}
\newcommand*\elide{\textup{[\,\dots]}}
\newcommand{\remark}[1]{\textup{[#1]}}
5 changes: 5 additions & 0 deletions preamble.sty
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
\RequirePackage[hypcap=false]{caption}
\RequirePackage{subcaption}

% for writing definitions
\RequirePackage{amsthm}
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]

% our own stuff everything maya located maya.sty
\RequirePackage{maya} %

Expand Down

0 comments on commit f51d313

Please sign in to comment.