📄 texinfo.tex
字号:
% Fonts for title page (20.4pt):\def\titlenominalsize{20pt}\setfont\titlerm\rmbshape{12}{\magstep3}\setfont\titleit\itbshape{10}{\magstep4}\setfont\titlesl\slbshape{10}{\magstep4}\setfont\titlett\ttbshape{12}{\magstep3}\setfont\titlettsl\ttslshape{10}{\magstep4}\setfont\titlesf\sfbshape{17}{\magstep1}\let\titlebf=\titlerm\setfont\titlesc\scbshape{10}{\magstep4}\font\titlei=cmmi12 scaled \magstep3\font\titlesy=cmsy10 scaled \magstep4\def\authorrm{\secrm}\def\authortt{\sectt}% Chapter (and unnumbered) fonts (17.28pt).\def\chapnominalsize{17pt}\setfont\chaprm\rmbshape{12}{\magstep2}\setfont\chapit\itbshape{10}{\magstep3}\setfont\chapsl\slbshape{10}{\magstep3}\setfont\chaptt\ttbshape{12}{\magstep2}\setfont\chapttsl\ttslshape{10}{\magstep3}\setfont\chapsf\sfbshape{17}{1000}\let\chapbf=\chaprm\setfont\chapsc\scbshape{10}{\magstep3}\font\chapi=cmmi12 scaled \magstep2\font\chapsy=cmsy10 scaled \magstep3% Section fonts (14.4pt).\def\secnominalsize{14pt}\setfont\secrm\rmbshape{12}{\magstep1}\setfont\secit\itbshape{10}{\magstep2}\setfont\secsl\slbshape{10}{\magstep2}\setfont\sectt\ttbshape{12}{\magstep1}\setfont\secttsl\ttslshape{10}{\magstep2}\setfont\secsf\sfbshape{12}{\magstep1}\let\secbf\secrm\setfont\secsc\scbshape{10}{\magstep2}\font\seci=cmmi12 scaled \magstep1\font\secsy=cmsy10 scaled \magstep2% Subsection fonts (13.15pt).\def\ssecnominalsize{13pt}\setfont\ssecrm\rmbshape{12}{\magstephalf}\setfont\ssecit\itbshape{10}{1315}\setfont\ssecsl\slbshape{10}{1315}\setfont\ssectt\ttbshape{12}{\magstephalf}\setfont\ssecttsl\ttslshape{10}{1315}\setfont\ssecsf\sfbshape{12}{\magstephalf}\let\ssecbf\ssecrm\setfont\ssecsc\scbshape{10}{1315}\font\sseci=cmmi12 scaled \magstephalf\font\ssecsy=cmsy10 scaled 1315% Reduced fonts for @acro in text (10pt).\def\reducednominalsize{10pt}\setfont\reducedrm\rmshape{10}{1000}\setfont\reducedtt\ttshape{10}{1000}\setfont\reducedbf\bfshape{10}{1000}\setfont\reducedit\itshape{10}{1000}\setfont\reducedsl\slshape{10}{1000}\setfont\reducedsf\sfshape{10}{1000}\setfont\reducedsc\scshape{10}{1000}\setfont\reducedttsl\ttslshape{10}{1000}\font\reducedi=cmmi10\font\reducedsy=cmsy10% reset the current fonts\textfonts\rm} % end of 11pt text font size definitions% Definitions to make the main text be 10pt Computer Modern, with% section, chapter, etc., sizes following suit. This is for the GNU% Press printing of the Emacs 22 manual. Maybe other manuals in the% future. Used with @smallbook, which sets the leading to 12pt.% \def\definetextfontsizex{%% Text fonts (10pt).\def\textnominalsize{10pt}\edef\mainmagstep{1000}\setfont\textrm\rmshape{10}{\mainmagstep}\setfont\texttt\ttshape{10}{\mainmagstep}\setfont\textbf\bfshape{10}{\mainmagstep}\setfont\textit\itshape{10}{\mainmagstep}\setfont\textsl\slshape{10}{\mainmagstep}\setfont\textsf\sfshape{10}{\mainmagstep}\setfont\textsc\scshape{10}{\mainmagstep}\setfont\textttsl\ttslshape{10}{\mainmagstep}\font\texti=cmmi10 scaled \mainmagstep\font\textsy=cmsy10 scaled \mainmagstep% A few fonts for @defun names and args.\setfont\defbf\bfshape{10}{\magstephalf}\setfont\deftt\ttshape{10}{\magstephalf}\setfont\defttsl\ttslshape{10}{\magstephalf}\def\df{\let\tentt=\deftt \let\tenbf = \defbf \let\tenttsl=\defttsl \bf}% Fonts for indices, footnotes, small examples (9pt).\def\smallnominalsize{9pt}\setfont\smallrm\rmshape{9}{1000}\setfont\smalltt\ttshape{9}{1000}\setfont\smallbf\bfshape{10}{900}\setfont\smallit\itshape{9}{1000}\setfont\smallsl\slshape{9}{1000}\setfont\smallsf\sfshape{9}{1000}\setfont\smallsc\scshape{10}{900}\setfont\smallttsl\ttslshape{10}{900}\font\smalli=cmmi9\font\smallsy=cmsy9% Fonts for small examples (8pt).\def\smallernominalsize{8pt}\setfont\smallerrm\rmshape{8}{1000}\setfont\smallertt\ttshape{8}{1000}\setfont\smallerbf\bfshape{10}{800}\setfont\smallerit\itshape{8}{1000}\setfont\smallersl\slshape{8}{1000}\setfont\smallersf\sfshape{8}{1000}\setfont\smallersc\scshape{10}{800}\setfont\smallerttsl\ttslshape{10}{800}\font\smalleri=cmmi8\font\smallersy=cmsy8% Fonts for title page (20.4pt):\def\titlenominalsize{20pt}\setfont\titlerm\rmbshape{12}{\magstep3}\setfont\titleit\itbshape{10}{\magstep4}\setfont\titlesl\slbshape{10}{\magstep4}\setfont\titlett\ttbshape{12}{\magstep3}\setfont\titlettsl\ttslshape{10}{\magstep4}\setfont\titlesf\sfbshape{17}{\magstep1}\let\titlebf=\titlerm\setfont\titlesc\scbshape{10}{\magstep4}\font\titlei=cmmi12 scaled \magstep3\font\titlesy=cmsy10 scaled \magstep4\def\authorrm{\secrm}\def\authortt{\sectt}% Chapter fonts (14.4pt).\def\chapnominalsize{14pt}\setfont\chaprm\rmbshape{12}{\magstep1}\setfont\chapit\itbshape{10}{\magstep2}\setfont\chapsl\slbshape{10}{\magstep2}\setfont\chaptt\ttbshape{12}{\magstep1}\setfont\chapttsl\ttslshape{10}{\magstep2}\setfont\chapsf\sfbshape{12}{\magstep1}\let\chapbf\chaprm\setfont\chapsc\scbshape{10}{\magstep2}\font\chapi=cmmi12 scaled \magstep1\font\chapsy=cmsy10 scaled \magstep2% Section fonts (12pt).\def\secnominalsize{12pt}\setfont\secrm\rmbshape{12}{1000}\setfont\secit\itbshape{10}{\magstep1}\setfont\secsl\slbshape{10}{\magstep1}\setfont\sectt\ttbshape{12}{1000}\setfont\secttsl\ttslshape{10}{\magstep1}\setfont\secsf\sfbshape{12}{1000}\let\secbf\secrm\setfont\secsc\scbshape{10}{\magstep1}\font\seci=cmmi12 \font\secsy=cmsy10 scaled \magstep1% Subsection fonts (10pt).\def\ssecnominalsize{10pt}\setfont\ssecrm\rmbshape{10}{1000}\setfont\ssecit\itbshape{10}{1000}\setfont\ssecsl\slbshape{10}{1000}\setfont\ssectt\ttbshape{10}{1000}\setfont\ssecttsl\ttslshape{10}{1000}\setfont\ssecsf\sfbshape{10}{1000}\let\ssecbf\ssecrm\setfont\ssecsc\scbshape{10}{1000}\font\sseci=cmmi10\font\ssecsy=cmsy10% Reduced fonts for @acro in text (9pt).\def\reducednominalsize{9pt}\setfont\reducedrm\rmshape{9}{1000}\setfont\reducedtt\ttshape{9}{1000}\setfont\reducedbf\bfshape{10}{900}\setfont\reducedit\itshape{9}{1000}\setfont\reducedsl\slshape{9}{1000}\setfont\reducedsf\sfshape{9}{1000}\setfont\reducedsc\scshape{10}{900}\setfont\reducedttsl\ttslshape{10}{900}\font\reducedi=cmmi9\font\reducedsy=cmsy9% reduce space between paragraphs\divide\parskip by 2% reset the current fonts\textfonts\rm} % end of 10pt text font size definitions% We provide the user-level command% @fonttextsize 10% (or 11) to redefine the text font size. pt is assumed.% \def\xword{10}\def\xiword{11}%\parseargdef\fonttextsize{% \def\textsizearg{#1}% \wlog{doing @fonttextsize \textsizearg}% % % Set \globaldefs so that documents can use this inside @tex, since % makeinfo 4.8 does not support it, but we need it nonetheless. % \begingroup \globaldefs=1 \ifx\textsizearg\xword \definetextfontsizex \else \ifx\textsizearg\xiword \definetextfontsizexi \else \errhelp=\EMsimple \errmessage{@fonttextsize only supports `10' or `11', not `\textsizearg'} \fi\fi \endgroup}% In order for the font changes to affect most math symbols and letters,% we have to define the \textfont of the standard families. Since% texinfo doesn't allow for producing subscripts and superscripts except% in the main text, we don't bother to reset \scriptfont and% \scriptscriptfont (which would also require loading a lot more fonts).%\def\resetmathfonts{% \textfont0=\tenrm \textfont1=\teni \textfont2=\tensy \textfont\itfam=\tenit \textfont\slfam=\tensl \textfont\bffam=\tenbf \textfont\ttfam=\tentt \textfont\sffam=\tensf}% The font-changing commands redefine the meanings of \tenSTYLE, instead% of just \STYLE. We do this because \STYLE needs to also set the% current \fam for math mode. Our \STYLE (e.g., \rm) commands hardwire% \tenSTYLE to set the current font.%% Each font-changing command also sets the names \lsize (one size lower)% and \lllsize (three sizes lower). These relative commands are used in% the LaTeX logo and acronyms.%% This all needs generalizing, badly.%\def\textfonts{% \let\tenrm=\textrm \let\tenit=\textit \let\tensl=\textsl \let\tenbf=\textbf \let\tentt=\texttt \let\smallcaps=\textsc \let\tensf=\textsf \let\teni=\texti \let\tensy=\textsy \let\tenttsl=\textttsl \def\curfontsize{text}% \def\lsize{reduced}\def\lllsize{smaller}% \resetmathfonts \setleading{\textleading}}\def\titlefonts{% \let\tenrm=\titlerm \let\tenit=\titleit \let\tensl=\titlesl \let\tenbf=\titlebf \let\tentt=\titlett \let\smallcaps=\titlesc \let\tensf=\titlesf \let\teni=\titlei \let\tensy=\titlesy \let\tenttsl=\titlettsl \def\curfontsize{title}% \def\lsize{chap}\def\lllsize{subsec}% \resetmathfonts \setleading{25pt}}\def\titlefont#1{{\titlefonts\rm #1}}\def\chapfonts{% \let\tenrm=\chaprm \let\tenit=\chapit \let\tensl=\chapsl \let\tenbf=\chapbf \let\tentt=\chaptt \let\smallcaps=\chapsc \let\tensf=\chapsf \let\teni=\chapi \let\tensy=\chapsy \let\tenttsl=\chapttsl \def\curfontsize{chap}% \def\lsize{sec}\def\lllsize{text}% \resetmathfonts \setleading{19pt}}\def\secfonts{% \let\tenrm=\secrm \let\tenit=\secit \let\tensl=\secsl \let\tenbf=\secbf \let\tentt=\sectt \let\smallcaps=\secsc \let\tensf=\secsf \let\teni=\seci \let\tensy=\secsy \let\tenttsl=\secttsl \def\curfontsize{sec}% \def\lsize{subsec}\def\lllsize{reduced}% \resetmathfonts \setleading{16pt}}\def\subsecfonts{% \let\tenrm=\ssecrm \let\tenit=\ssecit \let\tensl=\ssecsl \let\tenbf=\ssecbf \let\tentt=\ssectt \let\smallcaps=\ssecsc \let\tensf=\ssecsf \let\teni=\sseci \let\tensy=\ssecsy \let\tenttsl=\ssecttsl \def\curfontsize{ssec}% \def\lsize{text}\def\lllsize{small}% \resetmathfonts \setleading{15pt}}\let\subsubsecfonts = \subsecfonts\def\reducedfonts{% \let\tenrm=\reducedrm \let\tenit=\reducedit \let\tensl=\reducedsl \let\tenbf=\reducedbf \let\tentt=\reducedtt \let\reducedcaps=\reducedsc \let\tensf=\reducedsf \let\teni=\reducedi \let\tensy=\reducedsy \let\tenttsl=\reducedttsl \def\curfontsize{reduced}% \def\lsize{small}\def\lllsize{smaller}% \resetmathfonts \setleading{10.5pt}}\def\smallfonts{% \let\tenrm=\smallrm \let\tenit=\smallit \let\tensl=\smallsl \let\tenbf=\smallbf \let\tentt=\smalltt \let\smallcaps=\smallsc \let\tensf=\smallsf \let\teni=\smalli \let\tensy=\smallsy \let\tenttsl=\smallttsl \def\curfontsize{small}% \def\lsize{smaller}\def\lllsize{smaller}% \resetmathfonts \setleading{10.5pt}}\def\smallerfonts{% \let\tenrm=\smallerrm \let\tenit=\smallerit \let\tensl=\smallersl \let\tenbf=\smallerbf \let\tentt=\smallertt \let\smallcaps=\smallersc \let\tensf=\smallersf \let\teni=\smalleri \let\tensy=\smallersy \let\tenttsl=\smallerttsl \def\curfontsize{smaller}% \def\lsize{smaller}\def\lllsize{smaller}% \resetmathfonts \setleading{9.5pt}}% Set the fonts to use with the @small... environments.\let\smallexamplefonts = \smallfonts% About \smallexamplefonts. If we use \smallfonts (9pt), @smallexample% can fit this many characters:% 8.5x11=86 smallbook=72 a4=90 a5=69% If we use \scriptfonts (8pt), then we can fit this many characters:% 8.5x11=90+ smallbook=80 a4=90+ a5=77% For me, subjectively, the few extra characters that fit aren't worth% the additional smallness of 8pt. So I'm making the default 9pt.%% By the way, for comparison, here's what fits with @example (10pt):% 8.5x11=71 smallbook=60 a4=75 a5=58%% I wish the USA used A4 paper.% --karl, 24jan03.% Set up the default fonts, so we can use them for creating boxes.%\definetextfontsizexi% Define these so they can be easily changed for other fonts.\def\angleleft{$\langle$}\def\angleright{$\rangle$}% Count depth in font-changes, for error checks\newcount\fontdepth \fontdepth=0% Fonts for short table of contents.\setfont\shortcontrm\rmshape{12}{1000}\setfont\shortcontbf\bfshape{10}{\magstep1} % no cmb12\setfont\shortcontsl\slshape{12}{1000}\setfont\shortconttt\ttshape{12}{1000}%% Add scribe-like font environments, plus @l for inline lisp (usually sans%% serif) and @ii for TeX italic% \smartitalic{ARG} outputs arg in italics, followed by an italic correction% unless the following character is such as not to need one.\def\smartitalicx{\ifx\next,\else\ifx\next-\else\ifx\next.\else \ptexslash\fi\fi\fi}\def\smartslanted#1{{\ifusingtt\ttsl\sl #1}\futurelet\next\smartitalicx}\def\smartitalic#1{{\ifusingtt\ttsl\it #1}\futurelet\next\smartitalicx}% like \smartslanted except unconditionally uses \ttsl.% @var is set to this for defun arguments.\def\ttslanted#1{{\ttsl #1}\futurelet\next\smartitalicx}% like \smartslanted except unconditionally use \sl. We never want% ttsl for book titles, do we?\def\cite#1{{\sl #1}\futurelet\next\smartitalicx}\let\i=\smartitalic\let\slanted=\smartslanted\let\var=\smartslanted\let\dfn=\smartslanted\let\emph=\smartitalic% @b, explicit bold.\def\b#1{{\bf #1}}\let\strong=\b% @sansserif, explicit sans.\def\sansserif#1{{\sf #1}}% We can't just use \exhyphenpenalty, because that only has effect at% the end of a paragraph. Restore normal hyphenation at the end of the% group within which \nohyphenation is presumably called.%\def\nohyphenation{\hyphenchar\font = -1 \aftergroup\restorehyphenation}\def\restorehyphenation{\hyphenchar\font = `- }% Set sfcode to normal for the chars that usually have another value.% Can't use plain's \frenchspacing because it uses the `\x notation, and% sometimes \x has an active definition that messes things up.%\catcode`@=11 \def\plainfrenchspacing{% \sfcode\dotChar =\@m \sfcode\questChar=\@m \sfcode\exclamChar=\@m \sfcode\colonChar=\@m \sfcode\semiChar =\@m \sfcode\commaCha
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -