diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/latex4musicians/params.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/latex4musicians/params.tex | 171 |
1 files changed, 171 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/latex4musicians/params.tex b/Master/texmf-dist/doc/latex/latex4musicians/params.tex new file mode 100644 index 00000000000..5e1f827e404 --- /dev/null +++ b/Master/texmf-dist/doc/latex/latex4musicians/params.tex @@ -0,0 +1,171 @@ +% params.tex -*- LaTeX -*- +% +% By Guido Gonzato, PhD <guido.gonzato (at) gmail.com> +% +% Last updated: January 4, 2019 + +% ----- DEBUG +% \overfullrule=5pt +% \widowpenalty=10000 +% \clubpenalty=10000 + +% default typewriter font +\renewcommand{\ttdefault}{txtt} + +\definecolor{shadecolor}{rgb}{0.85,0.85,1} +\definecolor{pdfbg}{rgb}{0.95,0.95,0.95} +\definecolor{darkblue}{rgb}{0,0,0.6} +\definecolor{darkred}{rgb}{0.6,0,0} + +% ----- DEFINITIONS + +\newcommand{\version}{1.0.0} % VERSION + +\newcommand{\copyleft}{\reflectbox{\textcopyright}} +\newcommand{\bl}{\textbackslash} +\newcommand{\qs}{\textquotesingle} + +% ----- NEW COMMANDS AND ENVIRONMENTS + +\newcommand{\qnote} +{\raisebox{\depth}{\scalebox{-1}[-1]{\quarternote}}} + +\newcommand{\reg} +{\textsuperscript{\textregistered}} + +\newcommand{\entry}[2] +{{\small \textsf{#1/#2}}} + +\newcommand{\pkg}[1] +{\href{https://ctan.org/pkg/#1}{\texttt{#1}}} + +\newcommand{\ltx}[1] +{\texttt{\bl{}#1}} + +\newcommand{\app}[1] +{\texttt{#1}} + +\newcommand{\pkgname}[1] +{\textsc{#1}} + +\newcommand{\key}[1] +{\textbf{#1}} + +\newcommand{\menu}[1] +{\textsf{#1}} + +\newcommand{\file}[1] +{\texttt{#1}} + +\newcommand{\env}[1] +{\texttt{#1}} + +\newcommand{\field}[1] +{\texttt{#1}} + +\newcommand{\cmd}[1] +{\texttt{#1}} + +\newcommand{\icmd}[1] +{\textit{\texttt{#1}\/}} + +\newcommand{\metacmd}[1] +{\texttt{\%\%#1}} + +\newcommand{\parm}[1] +{\textit{$\langle$#1$\rangle$}} + +\newcommand{\optparm}[1] +{\textit{[#1]}} + +\newcommand{\car}[1] +% {\colorbox{charcolor}{\rule{0pt}{1ex}\texttt{#1}}} +{\texttt{#1}} + +\newcommand{\notes}[1] +{\texttt{#1}} + +\newcommand{\graph}[1] +{\textsc{#1}} + +\newcommand{\noteseparator} +{ +\medskip +\begin{center} + \twonotes~\twonotes~\twonotes~\twonotes~\twonotes~\twonotes~\twonotes +\end{center} +} + +\newenvironment{margins}[2] +{ % begin def +\begin{list}{} +{ +\setlength{\leftmargin}{#1} +\setlength{\rightmargin}{#2} +} \item +} % end def +{\end{list}} + +\newenvironment{source} +{ % beg def + \medskip + \small + \begin{margins}{-0.3cm}{-0.3cm} + \begin{spacing}{0.9} + \begin{tcolorbox}[breakable,boxrule=0.2pt,% + left=0pt,right=0pt,colback=blue!7!white,arc=2pt] + \begin{alltt} +} +{ % end def + \end{alltt} + \end{tcolorbox} + \end{spacing} + \end{margins} +} + +\newenvironment{screen} +{ % beg def + \medskip + \small + \begin{margins}{-0.3cm}{-0.3cm} + \begin{spacing}{0.9} + \tcbset{beforeafter skip=0pt} + \begin{tcolorbox}[breakable,boxrule=0.2pt,% + left=0pt,right=0pt,colback=white,arc=0pt] + \begin{alltt} +} +{ % end def + \end{alltt} + \end{tcolorbox} + \end{spacing} + \end{margins} +} + +\newlength{\tmplength} + +\newcommand{\score}[1] +{ + \setlength{\tmplength}{\parindent} + \setlength{\parindent}{0pt} + \begin{margins}{-0.3cm}{-0.3cm} + \colorbox{pdfbg}{\includegraphics[width=\linewidth]{#1.pdf}} + \end{margins} + \setlength{\parindent}{\tmplength} +} + +\newcommand{\scoreshort}[1] +{ + \setlength{\tmplength}{\parindent} + \setlength{\parindent}{0pt} + \begin{center} + \colorbox{pdfbg}{\includegraphics{#1.pdf}} + \end{center} + \setlength{\parindent}{\tmplength} +} + +\newcommand{\scorepage}[1] +{ + \includegraphics[width=\linewidth]{#1.pdf} +} + +% ----- End of file params.tex |