File: test-custom-cmds.tex

package info (click to toggle)
vim-vimtex 2.16-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,660 kB
  • sloc: makefile: 367; python: 103
file content (36 lines) | stat: -rw-r--r-- 763 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
\documentclass{article}
\usepackage{glossaries}
\usepackage{mathtools}
\usepackage{xparse}

% Custom glossary commands 1
\glsaddkey
  {maccusative}          % key
  {}                     % default value
  {\glsentrymaccusative} % no link cs
  {\Glsentrymaccusative} % no link ucfirst cs
  {\glsmacc}             % link cs
  {\Glsmacc}             % link ucfirst cs
  {\GLSmacc}             % link all caps cs

\DeclareDocumentCommand{\testddc}{ o m }{%
first #1 second #2
}

% Custom glossary commands 2
\glsaddkey{plural}{}
  {\glsentryplural}
  {\Glsentryplural}
  {\glspl}
  {\Glspl}
  {\GLSpl}

\let\testlet=\leftrightarrow

\newcommand{\testnewcommand}{Hello world}

\DeclarePairedDelimiter\testpaireddelim{\lvert}{\rvert}

\begin{document}

\end{document}