Debian Codegraph @

texmf-dist/tex/latex/lwarp/lwarp-octave.sty

raw
1 %%
2 %% This is file `lwarp-octave.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% lwarp.dtx (with options: `octave')
8 %% This is a generated file.
9 %% Copyright 2016-2026 Brian Dunn
10 %%
11 %% This work may be distributed and/or modified under the
12 %% conditions of the LaTeX Project Public License, either version 1.3
13 %% of this license or (at your option) any later version.
14 %% The latest version of this license is in
15 %% http://www.latex-project.org/lppl.txt
16 %% and version 1.3 or later is part of all distributions of LaTeX
17 %% version 2005/12/01 or later.
18 \LWR@ProvidesPackagePass{octave}[2017/10/31]
19 \VerifyCommand[lwarp][octave]{\@PrintTicks}{3565AEEE32BD9F87397E8C9AD5B6BEA2}
20
21 \RenewDocumentCommand{\@PrintTicks}{ m }{%
22 \kern-1pt% lwarp
23 \@TickNum = #1%
24 \loop
25 \@Tick{}%
26 \advance\@TickNum by -1
27 \ifnum\@TickNum > 0
28 \repeat
29 }
30 \RenewDocumentCommand{\@Tick}{}{\HTMLunicode{2032}}
31 \VerifyCommand[lwarp][octave]{\pitch}{3803E3D6B44EDFF8880F06BBE60571D9}
32
33 \RenewDocumentCommand{\pitch}{ m o m }{%
34 \if@OctaveNumber%
35 {%
36 \pitchfont{%
37 \LWR@textcurrentfont{% lwarp
38 \MakeUppercase{#1}%
39 \IfValueTF{#2}{#2}{}\textsubscript{#3}%
40 }%
41 }%
42 }%
43 \else%
44 {%
45 \pitchfont{%
46 \LWR@textcurrentfont{% lwarp
47 \@GetOctaveTick{#1}[#2]{#3}%
48 }%
49 }%
50 }%
51 \fi%
52 }
53 \StartDefiningTabulars
54 \renewcommand{\octavetable}{%
55 \begin{tabular}{ll}
56 \octaveprimes \pitch{C}{0} & \octavenumbers \pitch{C}{0} \\
57 \octaveprimes \pitch{C}{1} & \octavenumbers \pitch{C}{1} \\
58 \octaveprimes \pitch{C}{2} & \octavenumbers \pitch{C}{2} \\
59 \octaveprimes \pitch{C}{3} & \octavenumbers \pitch{C}{3} \\
60 \octaveprimes \pitch{C}{4} & \octavenumbers \pitch{C}{4} \\
61 \octaveprimes \pitch{C}{5} & \octavenumbers \pitch{C}{5} \\
62 \octaveprimes \pitch{C}{6} & \octavenumbers \pitch{C}{6} \\
63 \octaveprimes \pitch{C}{7} & \octavenumbers \pitch{C}{7} \\
64 \end{tabular}
65 }
66 \StopDefiningTabulars
67
68 \endinput
69 %%
70 %% End of file `lwarp-octave.sty'.