<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{lshort-zh-cn-style}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lshort è°ƒç”¨çš„å®åŒ…
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% åŸºæœ¬å·¥å…·å®åŒ…
\RequirePackage{amsmath,amsthm,bm}
\RequirePackage{hologo,verbatim,fancyvrb,layout,multicol}
\RequirePackage[normalem]{ulem}
\RequirePackage{colortbl,tabularx,multirow,makecell,booktabs}
\RequirePackage{graphicx,xcolor,float,subcaption}
\RequirePackage{makeidx}
\RequirePackage[inner=1in,outer=1.5in,vmargin=1in,marginparwidth=1in]{geometry}
\RequirePackage{tikz}
%
% ctex å®åŒ… 2.2(2015/06/24) æˆ–ä»¥ä¸Šç‰ˆæœ¬
% ctex å®åŒ…çš„å­—å·è®¾å®šä¼šè®©è®¸å¤šå›ºå®šå­—å·çš„å­—ä½“å®åŒ…æŠ¥å¤ªå¤š warningï¼Œåº”å½“æŠ‘åˆ¶
% ä¸­æ–‡æ­£æ–‡å­—ä½“ä½¿ç”¨ Fandol
\PassOptionsToPackage{no-math}{fontspec}
\RequirePackage[zihao=false,scheme=chinese,heading=true,fontset=fandol]{ctex}[2015/06/24]
%
% å­—ä½“å’Œç¬¦å·å®åŒ…
\setmainfont{cmun}[
  Extension       = .otf,
  UprightFont     = *rm,
  ItalicFont      = *ti,
  SlantedFont     = *sl,
  BoldFont        = *bx,
  BoldItalicFont  = *bi,
  BoldSlantedFont = *bl,
]
\setsansfont{cmun}[
  Extension      = .otf,
  UprightFont    = *ss,
  ItalicFont     = *si,
  BoldFont       = *sx,
  BoldItalicFont = *so,
]
\setmonofont{cmun}[
  Extension      = .otf,
  UprightFont    = *btl,% light version
  ItalicFont     = *bto,%  light version
  BoldFont       = *tb,
  BoldItalicFont = *tx,
]
\RequirePackage{amssymb,latexsym,textcomp,mathrsfs,euscript,yhmath}% ä¸Žé»˜è®¤å­—ä½“ä¸å†²çªçš„ä¸€äº›ç¬¦å·åŒ…
% æ¶ˆé™¤ \t å‘½ä»¤çš„å­—ä½“ warning
\AtBeginDocument{%
  \DeclareRobustCommand*\t[1]{{\edef\restore@font{\the\font}\usefont{OML}{cmm}{m}{it}\accent"7F\restore@font#1}}%
}
% è°ƒæ•´ layout å®åŒ…çš„å‘½ä»¤ä½¿ä¹‹èƒ½å¤Ÿæ”¾å…¥æµ®åŠ¨ä½“ï¼Œæ‰‹åŠ¨æŒ‡å®šå¥‡å¶é¡µçš„ layout
\input lshort-zh-cn-layout
\oddsidelayouttrue
% layout æ–‡å­—æ±‰åŒ–
\def\Headertext{é¡µçœ‰}
\def\Bodytext{ç‰ˆå¿ƒ}
\def\Footertext{é¡µè„š}
\def\MarginNotestext{è¾¹æ³¨}
\def\oneinchtext{1in}
\def\notshown{æœªæ˜¾ç¤º}
% hyperref åŸºæœ¬è®¾å®š
\RequirePackage{hyperref}
\hypersetup{colorlinks,%
  bookmarksnumbered=true,%
  pdfstartview=FitH}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lshort çš„ç‰ˆå¼è®¾ç½®
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\raggedbottom
%
% ä¸ä¾èµ– fancyhdr çš„é¡µçœ‰é¡µè„šè®¾å®š
\addtolength{\headheight}{1.6pt}
\newdimen\headwidth \headwidth\textwidth
\newdimen\headrulewidth \headrulewidth=0.4pt
\def\ps@fancy{%
  \let\@oddfoot\@empty\let\@evenfoot\@empty
  \def\@evenhead{\vbox to \headheight{%
    \hb@xt@\headwidth{\bfseries\thepage\hfil\leftmark}%
    \vss\hrule\@height\headrulewidth}}%
  \def\@oddhead{\vbox to \headheight{%
    \hb@xt@\headwidth{\bfseries\rightmark\hfil\thepage}%
    \vss\hrule\@height\headrulewidth}}%
  \let\@mkboth\markboth
  \def\chaptermark##1{\markboth{\if@mainmatter\CTEXthechapter\fi\quad ##1}{}}%
  \def\sectionmark##1{\markright{\S\thesection\quad ##1}}%
}
%\let\ps@plain\ps@fancyplain
\pagestyle{fancy}
%
% ä¸ä¾èµ– tocbibind çš„å‚è€ƒæ–‡çŒ®/ç´¢å¼•ä¿®æ”¹
% ç´¢å¼•ä¾èµ– multicols çŽ¯å¢ƒæŽ’ç‰ˆ
\renewenvironment{thebibliography}[1]
  {\chapter{\bibname}%
    \@mkboth{\MakeUppercase\bibname}{\MakeUppercase\bibname}%
    \list{\@biblabel{\@arabic\c@enumiv}}%
      {\settowidth\labelwidth{\@biblabel{#1}}%
        \leftmargin\labelwidth
        \advance\leftmargin\labelsep
        \@openbib@code
        \usecounter{enumiv}%
        \let\p@enumiv\@empty
        \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
  {\def\@noitemerr
    {\@latex@warning{Empty `thebibliography' environment}}%
    \endlist}
\renewenvironment{theindex}%
  {\chapter{\indexname}%
    \@mkboth{\MakeUppercase\indexname}{\MakeUppercase\indexname}%
    \parskip\z@ \@plus .3\p@\relax
    \let\item\@idxitem
    \small
    \begin{multicols}{2}}
  {\end{multicols}}
%
% å°†ä¸»ç›®å½•å’Œæºä»£ç&nbsp;ç›®å½•åˆå¹¶æŽ’ç‰ˆ
% ä¸ä¾èµ– float å®åŒ…çš„ \listofï¼Œå›&nbsp;æ­¤è¦è¡¥å……å®šä¹‰ \l@sourcecode
\renewcommand\tableofcontents%
  {\chapter{\contentsname}%
  \@mkboth{\MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
  \begin{multicols}{2}
    \@starttoc{toc}%
  \end{multicols}
  \@makeschapterhead{\sourcecodename}%
  \@starttoc{los}%
}
%
% ä»¤ \cleardoublepage çš„å¶æ•°é¡µé¡µçœ‰é¡µè„šä¸ºç©º
\renewcommand{\cleardoublepage}
    {\clearpage\if@twoside \ifodd\c@page\else
    \hbox{}\thispagestyle{empty}\newpage\if@twocolumn\hbox{}\newpage\fi\fi\fi}
% å…è®¸ hologo æ–­è¯
\hologoSetup{discretionarybreak=true}
% ä¸åœ¨ METAFONT å’Œ METAPOST ä¸­æ–­è¡Œï¼Œé¿å…å‡ºçŽ°å­—ä½“ç¼ºå¤±è­¦å‘Šï¼ˆè¯¥å­—ä½“ä¸åŒ…å«è¿žå­—ç¬¦ï¼‰
\def\HoLogo@METAFONT#1{%
  \HoLogoFont@font{METAFONT}{logo}{\HOLOGO@mbox{METAFONT}}}
\def\HoLogo@METAPOST#1{%
  \HoLogoFont@font{METAPOST}{logo}{\HOLOGO@mbox{METAPOST}}}
% æ–°å®šä¹‰ hologo
\def\HoLogo@TeXLive#1{%
  \hologo{TeX}\HOLOGO@space\HOLOGO@mbox{Live}}
\def\HoLogo@MacTeX#1{%
  \HOLOGO@mbox{Mac}\hologo{TeX}}
\def\HoLogo@CTeX#1{%
  \HOLOGO@mbox{C}\hologo{TeX}}
\def\HoLogo@TikZ#1{%
  \HOLOGO@mbox{Ti\textit{k\/}Z}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lshort ç”¨åˆ°çš„è‡ªå®šä¹‰å‘½ä»¤
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% æºè‡ª TeX FAQ çš„è¶…é“¾æŽ¥å‘½ä»¤
% CTAN é•œåƒæš‚ç”¨æ¸…åŽæº
\newcommand{\Email}{\begingroup \def\UrlLeft{&lt;}\def\UrlRight{&gt;} \urlstyle{tt}\Url}     % email address
\def\mailto|#1|{\href{mailto:#1}{\Email|#1|}}        % url to mail somewhere
\def\CTANref{\begingroup \urlstyle{tt}\Url}
\def\CTAN|#1|{\href{https://mirrors.tuna.tsinghua.edu.cn/CTAN/#1}{\CTANref|CTAN://#1|}}
\newcommand{\contrib}[3]{#1\quad\mailto|#2|{\small\\\quad\textit{#3}}\\[1ex]}
%
% ç¤ºæ„é•¿åº¦
\def\demowidth#1{\rule{.6pt}{1ex}\rule{#1}{.6pt}\rule{.6pt}{1ex}}
%
% å‘½ä»¤å’ŒçŽ¯å¢ƒçš„å†™æ³•
\DeclareRobustCommand*\cmd[1]{\texttt{\char`\\#1}}
\DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}}
\def\crcmd{\cmd{\char`\\}}
\DeclareRobustCommand*\env[1]{\texttt{#1}}
\DeclareRobustCommand*\pkg[1]{\textsf{#1}}
\DeclareRobustCommand*\cls[1]{\textsf{#1}}
\DeclareRobustCommand*\marg{\@ifstar\@marg\@margmeta}
\DeclareRobustCommand*\oarg{\@ifstar\@oarg\@oargmeta}
\DeclareRobustCommand*\Arg[1]{\@meta{#1}}
\def\@oarg#1{\textcolor{gray}{\texttt{[#1]}}}
\def\@oargmeta#1{\@oarg{\@meta{#1}}}
\def\@marg#1{\texttt{\{#1\}}}
\def\@margmeta#1{\@marg{\@meta{#1}}}
\def\@meta#1{$\m@th\langle$\textnormal{\textit{#1}}$\m@th\rangle$}
%
% å‘½ä»¤å’ŒçŽ¯å¢ƒçš„ç´¢å¼•
\def\pkgindex#1{\@for\pkgname:=#1\do{\index{\pkgname @\pkg{\pkgname} å®åŒ…}}}
\def\clsindex#1{\@for\clsname:=#1\do{\index{\clsname @\cls{\clsname} æ–‡æ¡£ç±»}}}
\def\cmdindex{\@ifnextchar[{\pkgcmdindex}{\ltxcmdindex}}
\def\envindex{\@ifnextchar[{\pkgenvindex}{\ltxenvindex}}
\def\ltxcmdindex#1{\@for\@ltxcmd:=#1\do{\index{\@ltxcmd @\cmd{\@ltxcmd}}}}
\def\ltxenvindex#1{\@for\@ltxenv:=#1\do{\index{\@ltxenv @\env{\@ltxenv} çŽ¯å¢ƒ}}}
\def\pkgcmdindex[#1]#2{\@for\@pkgcmd:=#2\do{\index{\@pkgcmd @\cmd{\@pkgcmd} (\pkg{#1})}}}
\def\pkgenvindex[#1]#2{\@for\@pkgenv:=#2\do{\index{\@pkgenv @\env{\@pkgenv} çŽ¯å¢ƒ (\pkg{#1})}}}
%
% æ–‡æœ¬å’Œæ•°å­¦ç¬¦å·ç´¢å¼•
\def\symindex#1{\@for\t@xtsym:=#1\do{\index{\t@xtsym @\cmd{\t@xtsym} (\textit{ç¬¦å·} \expandafter\protect\csname \t@xtsym\endcsname)}}}
\def\mathindex#1{\@for\m@thcmd:=#1\do{\index{\m@thcmd @\cmd{\m@thcmd} (\textit{æ•°å­¦å‘½ä»¤})}}}
\def\msymindex#1{\@for\m@thsym:=#1\do{\index{\m@thsym @\cmd{\m@thsym} (\textit{æ•°å­¦ç¬¦å·}$\expandafter\protect\csname \m@thsym\endcsname$)}}}
\def\maccindex#1{\@for\m@thacc:=#1\do{\index{\m@thacc @\cmd{\m@thacc} (\textit{æ•°å­¦é‡éŸ³}$\expandafter\protect\csname \m@thacc\endcsname{a}$)}}}
\def\waccindex#1{\@for\wideacc:=#1\do{\index{\wideacc @\cmd{\wideacc} (\textit{æ•°å­¦é‡éŸ³}$\expandafter\protect\csname \wideacc\endcsname{AB}$)}}}
%
% æ‹¼éŸ³ç´¢å¼•
\def\pinyinindex#1#2{\index{#1@#2}}
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lshort ç”¨åˆ°çš„è‡ªå®šä¹‰çŽ¯å¢ƒ
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% æ¯ç«&nbsp;æœ€å‰çš„ä»‹ç»å†…å®¹çŽ¯å¢ƒ intro
\newenvironment{intro}
  {\advance\leftskip\parindent\advance\rightskip\parindent\sffamily}%
  {\par\vspace*{2ex minus 1.5ex}}
%
% å±•ç¤ºå‘½ä»¤
\newenvironment{command}%
  {\trivlist\item\relax%
  \def\arraystretch{1.2}%
  \hskip\parindent%
  \begin{tabular}{&gt;{\columncolor{blue!5}}l}
  }{\end{tabular}\endtrivlist}
%
% ç¤ºä¾‹çŽ¯å¢ƒ example
% çŽ¯å¢ƒä¸­çš„ä»£ç&nbsp;å†™å…¥ä¸´æ—¶æ–‡ä»¶ lshort-zh-cn-example.aux
% å†ä»Žä¸´æ—¶æ–‡ä»¶ä¸­è¯»å–ï¼Œåˆ†åˆ«ç”Ÿæˆä»£ç&nbsp;ç›’å­å’Œç¤ºä¾‹ç›’å­
\newwrite\example@out
\newlength\savefboxrule
\newlength\savefboxsep
\edef\example@name{\jobname-example.aux}
\newenvironment{example}%
{\begingroup\@bsphack
  \immediate\openout\example@out=\example@name
  \let\do\@makeother\dospecials\catcode`\^^M\active
  \def\verbatim@processline{\immediate\write\example@out{\the\verbatim@line}}%
  \verbatim@start}%
{\immediate\closeout\example@out\@esphack\endgroup%
  \trivlist\item\relax
  \setlength{\savefboxrule}{\fboxrule}%
  \setlength{\savefboxsep}{\fboxsep}%
  \setlength{\fboxsep}{0.015\textwidth}%
  \setlength{\fboxrule}{0.4pt}%
  \fcolorbox[gray]{0}{0.95}{%
    \begin{minipage}[c]{0.45\textwidth}%
      \setlength{\fboxrule}{\savefboxrule}%
      \setlength{\fboxsep}{\savefboxsep}%
      \small\verbatiminput{\example@name}%
    \end{minipage}%
  }%
  \hfill%
  \fbox{%
    \begin{minipage}[c]{0.45\textwidth}%
      \setlength{\fboxrule}{\savefboxrule}%
      \setlength{\fboxsep}{\savefboxsep}%
      \setlength{\parskip}{1ex plus 0.4ex minus 0.2ex}%
      \normalsize\input{\example@name}%
    \end{minipage}%
  }%
  \endtrivlist
}
%
% sourcecode æµ®åŠ¨ä½“
\belowcaptionskip\abovecaptionskip
\fvset{fontsize=\small,frame=lines}
\newfloat{sourcecode}{tbp}{los}[chapter]
\floatname{sourcecode}{æºä»£ç&nbsp;}
\def\sourcecodename{æºä»£ç&nbsp;ç¤ºä¾‹åˆ—è¡¨}
\def\l@sourcecode{\@dottedtocline{1}{1.5em}{2.3em}}
%
\endinput
</pre></body></html>