📄 lshort.tex
字号:
%& --translate-file=cp8bit.tcx
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Contents: Main Input File of the LaTeX2e Introduction
% $Id: lshort.tex,v 1.3 2002/05/29 14:03:04 zuohuijun Exp $
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% lshort.tex - The not so short introduction to LaTeX
% by Tobias Oetiker
% tobias@ife.ee.ethz.ch
% oetiker@dmu.ac.uk
%
% based on LKURTZ.TEX Uni Graz & TU Wien, 1987
% 中文翻译:左会军、Aloft、Cxterm、高原之狼、ganzhi等等
% 2002年5月
%-----------------------------------------------------------------------
%
% To compile lshort, you need TeX 3.x, LaTeX and makeindex
%
% The sources files of the Intro are:
% lshort.tex (this file),
% titel.tex, contrib.tex, biblio.tex
% things.tes, typeset.tex, math.tex, lssym.tex, spec.tex,
% lshort.sty, fancyheadings.sty
%
% Further the verbatim.sty and the layout.sty
% from the LaTeX Tools distribution is
% required.
%
%
% To print the AMS symbols you need the AMS fonts and the packages
% amsfonts, eufrak and eucal from (AMS LaTeX 1.2)
%
% ---------------------------------------------------------------------
\ifx\pdfoutput\undefined % We're not running pdftex
\documentclass[11pt,a4paper,twoside,openany]{book}
\else
\documentclass[pdftex,11pt,a4paper,twoside,openany]{book}
\usepackage{thumbpdf}
\pdfcompresslevel=9
\fi
\usepackage{lshort}
\usepackage{makeidx,shortvrb,latexsym}
\usepackage{mylayout}
% are we in pdftex ????
\ifx\pdfoutput\undefined % We're not running pdftex
\usepackage[dvipdfm,
colorlinks,linkcolor=blue,
hyperindex,
pdfstartview=FitH,
plainpages=false,
CJKbookmarks]
{hyperref}
\else
%%%%%%%%%%%%%%%%%%%%%增加了CJKbookmarks选项%%%%%%%%%%%%%%%%%%%%%%%%
\RequirePackage[CJKbookmarks,colorlinks,hyperindex,plainpages=false]{hyperref}
\def\pdfBorderAttrs{/Border [0 0 0] } % No border arround Links
\fi
%
% This document is ``public domain''. It may be printed and
% distributed free of charge in its original form (including the
% list of authors). If it is changed or if parts of it are used
% within another document, then the author list must include
% all the original authors AND that author (those authors) who
% has (have) made the changes.
%
% Original Copyright H.Partl, E.Schlegl, and I.Hyna (1987).
% English Version Copyright by Tobias Oetiker (1994,1995),
%
% ---------------------------------------------------------------------
%
%
% Formats also with\textt{letterpaper} option, but the pagebreaks might not
% fall as nicely.
%
% To produce a A5 booklet, use a tool like pstops or dvitodvi
% to past them together in the right order. Most dvi printer drivers
% can shrink the resulting output to fit on a A4 sheet.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage{CJK,CJKnumb,indentfirst}
\makeatletter
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \centering%\raggedright
\normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\huge\bfseries\prechaptername\CJKdigits{\thechapter}\chaptername\hskip 5\p@%
% \par\nobreak
% \vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\def\@makeschapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \centering%\raggedright
\normalfont
\interlinepenalty\@M
\huge \bfseries #1\par\nobreak
\vskip 40\p@
}}
\makeatother
\usepackage{setspace}
\onehalfspacing
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%convert bookmarks from GBK to unicode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\AtBeginDvi{\special{pdf:tounicode GBK-EUC-UCS2}} % GBK -> Unicode
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\makeindex
\typeout{Copyright T.Oetiker, H.Partl, E.Schlegl, I.Hyna}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\includeonly{overview,custom,lssym,math}
%\sloppy
\renewcommand\floatpagefraction{.9}
\renewcommand\topfraction{.9}
\renewcommand\bottomfraction{.9}
\renewcommand\textfraction{.1}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{CJK*}{GBK}{com}
\CJKtilde
\CJKindent
%由于在lshort载入了babel宏包,所以对词汇的重定义只能在文档中,否则被过滤。
\newcommand\prechaptername {\CJKchar{181}{218}}
\renewcommand\chaptername {\CJKchar{"0D5}{"0C2}}
\renewcommand\contentsname {\CJKchar{"0C4}{"0BF}\CJKchar{"0C2}{"0BC}}
\renewcommand\abstractname {\CJKchar{"0D5}{"0AA}\CJKchar{"0D2}{"0AA}}
\renewcommand\listfigurename{\CJKchar{"0CD}{"0BC}\CJKchar{"0D0}{"0CE}%
\CJKchar{"0C1}{"0D0}\CJKchar{"0B1}{"0ED}}
\renewcommand\listtablename {\CJKchar{"0B1}{"0ED}\CJKchar{"0B8}{"0F1}%
\CJKchar{"0C1}{"0D0}\CJKchar{"0B1}{"0ED}}
%\renewcommand\indexname {\CJKchar{"0CB}{"0F7}\CJKchar{"0D2}{"0FD}}
\renewcommand\indexname {索引}
\renewcommand\figurename {\CJKchar{"0CD}{"0BC}}
\renewcommand\tablename {\CJKchar{"0B1}{"0ED}}
%\renewcommand\bibname {\CJKchar{"0B2}{"0CE}\CJKchar{"0BF}{"0BC}%
% \CJKchar{"0CE}{"0C4}\CJKchar{"0CF}{"0D7}}
\renewcommand\bibname {参考文献}
%%%%%%%%%%%%%%%%%%%%%%%%%%
\frontmatter
\include{title}
\include{contrib}
\include{overview}
\tableofcontents
\listoffigures
\listoftables
\enlargethispage{\baselineskip}
\mainmatter
\include{things}
\include{typeset}
\include{math}
\include{lssym}
\include{spec}
\include{custom}
\backmatter
\include{biblio}
\addcontentsline{toc}{chapter}{\numberline{}\indexname}
\printindex
\label{verylast}
\mbox{}
%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\end{CJK*}
%%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -