Files
secondo/Tools/pd/pd_header_bw_listing
2026-01-23 17:03:45 +08:00

63 lines
1.3 KiB
Plaintext

\documentclass[11pt,a4paper]{article}
\catcode`ä=\active
\catcode`Ä=\active
\catcode`ö=\active
\catcode`Ö=\active
\catcode`ü=\active
\catcode`Ü=\active
\catcode`ß=\active
\defä{\"{a}}
\defÄ{\"{A}}
\defö{\"{o}}
\defÖ{\"{O}}
\defü{\"{u}}
\defÜ{\"{U}}
\defß{\ss}
\usepackage{epsfig, xspace,listings, alltt}
\lstloadlanguages{C++}
\parindent0em
\parskip0.8ex plus0.4ex minus 0.4ex
\setcounter{secnumdepth}{4}
\setcounter{tocdepth}{3}
\fussy
\oddsidemargin0mm
\evensidemargin0mm
\textwidth16cm
\newenvironment{pdprogram}{}{}
\newenvironment{pdverbatim}{\begin{alltt}\hspace{0.9cm}\rule[1.0eX]{2in}{0.1pt}\nopagebreak\small}
{\hspace{0.9cm}\rule[2.0eX]{2in}{0.1pt}\nopagebreak\end{alltt}}
\newcommand{\textred}[1]{#1}
\newcommand{\textcomment}[1]{\textit{#1}}
\lstdefinelanguage{mybash} {
morekeywords={export, source, mkdir, cd}, sensitive=false, morecomment=[l]{\#}, morestring=[b]" }
\newcommand{\lstsetSH}{\lstset{language=C++,basicstyle=\ttfamily\footnotesize,stringstyle=\textred,
showstringspaces=false,
commentstyle=\textcomment,
keywordstyle=\textbf,
extendedchars=true}}
\hfuzz=0.5cm
\hbadness=3000
\begin{document}
\lstset{language=C++,basicstyle=\ttfamily\footnotesize,stringstyle=\textred,
showstringspaces=false,
commentstyle=\textcomment,
keywordstyle=\bf,
extendedchars=true}