File: mtxdoc.sty

package info (click to toggle)
m-tx 0.30a-3
  • links: PTS
  • area: contrib
  • in suites: hamm
  • size: 568 kB
  • ctags: 536
  • sloc: ansic: 3,624; pascal: 60; makefile: 38; sh: 5
file content (78 lines) | stat: -rw-r--r-- 1,904 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
%  mtxdoc.sty   Some macros lifted from musixdoc.sty and pmx.tex

\long\def\theindex{\renewcommand{\thesection}{}\section{Index}\parindent\z@
  \parskip\z@ plus.3\p@\relax \let\item\@idxitem \columnseprule\z@
  \columnsep35\p@ \begin{multicols}{2}}

\def\endtheindex{\end{multicols}}

\def\mutex{M\raise\tw@\p@\hbox{\kern\m@ne\p@ u\kern\m@ne\p@}\TeX}
\def\Bslash{\tt\char'134}
\def\|{{\tt\char'174}}
\def\LBR{{\tt\char'173}}
\def\RBR{{\tt\char'175}}
\def\snake{{\tt\char'176}}
\def\atsign{{\tt\char'100}}
\def\less{{\tt\char'074}}
\def\more{{\tt\char'076}}
\def\keyindex#1{\leavevmode
 \hbox{\Bslash #1}\index{#1@{\protect\Bslash #1}}}
\def\zkeyindex#1{\index{#1@{\protect\Bslash #1}}}
\def\ixem#1{#1\index{#1}}
\def\itxem#1{\ital{#1}\index{#1}}
\def\ttxem#1{{\tt #1}\index{#1@{\tt #1}}}
\def\ital#1{{\sl #1\/}}

\newfont{\mflogo}{logo10 scaled 1200}
\def\MF{{\mflogo METAFONT}}
\def\unix{{\sc unix}}

\def\ibxem#1{{\bf#1}\index{#1}}
\def\textbs#1{\textbf{\textsl{#1}}}
\def\mark#1{\underline{\ttxem{#1}}}
\def\MTx{\textbs{{M-Tx}}}
\def\PMX{\textbf{PMX}}
\def\ABC{\textbf{\texttt{ABC2M\TeX}}}

\font\tentt=\fontid tt10

\def\printindex{\@input{\jobname.ind}}

\def\underscoreSymbol{\leavevmode \kern.06em \vbox{\hrule width.3em}}%

\input musixcho
\input musixmad
\input pmx
\input musixlyr

\sepbarrules

\renewcommand{\ttdefault}{cmtt}
\enableauxlyrics\def\AL{\auxlyr\lyr\nolyr}

\newread\mypaper
\openin\mypaper mypaper.tex\relax
\ifeof\mypaper\else\input mypaper.tex\fi\closein\mypaper

% A4
\ifx\paperUS\undefined
\immediate\typeout{A4 paper size}
\textheight 240mm
\textwidth 160mm
\topmargin -16mm
\else
% US Letter
\immediate\typeout{US paper size}
\textheight 9.5in 
\textwidth 6.5in
\topmargin -0.75in 
\fi
\evensidemargin 0mm
\oddsidemargin 0mm

\newenvironment{mus}{\begin{minipage}{260mm}\begin{music}%
\nobarnumbers}%
{\end{music}\assignlyrics1{}\assignlyrics2{}\end{minipage}}

\endinput