mirror of
https://github.com/ElegantLaTeX/ElegantBook.git
synced 2026-01-26 04:14:35 +08:00
renew guide book
This commit is contained in:
32
base.tex
32
base.tex
@@ -1,32 +0,0 @@
|
|||||||
%% tikz setting
|
|
||||||
\tikzset{elegant/.style={fill=main,draw=main},
|
|
||||||
null/.style={fill=white,draw=none}}
|
|
||||||
|
|
||||||
%% the triangle shape
|
|
||||||
\newcommand{\triz}[2]{
|
|
||||||
\begin{scope}[xshift=#1,rotate=#2]
|
|
||||||
\draw[elegant] (0,0) -- (105,6) .. controls (119,21) and (132,13) .. (135,12) .. controls (124,15) and (110,8) .. (107,-12) -- cycle;
|
|
||||||
\draw[null] (40,-0.5) -- (101,-4) -- (103,1)--cycle;
|
|
||||||
\end{scope}
|
|
||||||
}
|
|
||||||
|
|
||||||
%% the ellipse shape +127
|
|
||||||
\newcommand{\ellz}[1]{
|
|
||||||
\begin{scope}[xshift=#1,yshift=3]
|
|
||||||
\draw[elegant,rotate around={60:(0,-3)}](0,-3) ellipse (10.5 and 8.5);
|
|
||||||
\draw[null](-3,-10) .. controls (-10,-6) and (-2,6) .. (4.5,4) .. controls (0,3) and (-4,-6) .. (-3,-10)--cycle;
|
|
||||||
\end{scope}
|
|
||||||
}
|
|
||||||
|
|
||||||
%% the integration shape+147
|
|
||||||
\newcommand{\intz}[1]{
|
|
||||||
\begin{scope}[xshift=#1,yshift=2]
|
|
||||||
\draw[elegant,draw=none,very thin] (-31,-14.5) .. controls (-17,-21) and (-9,-8) .. (-3,0) .. controls (10,19) and (22,17) .. (29,9) .. controls (21,13) and (13,13) .. (3,-1) .. controls (-4,-11) and (-18,-27) .. (-31,-14.5) -- cycle ;
|
|
||||||
\end{scope}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
228
elegantbook.cls
228
elegantbook.cls
@@ -18,12 +18,15 @@
|
|||||||
|
|
||||||
% ----- Colors -----
|
% ----- Colors -----
|
||||||
\DeclareStringOption[green]{color}
|
\DeclareStringOption[green]{color}
|
||||||
|
\DeclareStringOption[en]{lang}
|
||||||
% ----- backward compatibility
|
% ----- backward compatibility
|
||||||
\DeclareVoidOption{green}{\ekv{color = green}}
|
\DeclareVoidOption{green}{\ekv{color = green}}
|
||||||
\DeclareVoidOption{cyan}{\ekv{color = cyan}}
|
\DeclareVoidOption{cyan}{\ekv{color = cyan}}
|
||||||
\DeclareVoidOption{blue}{\ekv{color = blue}}
|
\DeclareVoidOption{blue}{\ekv{color = blue}}
|
||||||
\DeclareVoidOption{nocolor}{\ekv{color = none}}
|
\DeclareVoidOption{plain}{\ekv{color = plain}}
|
||||||
|
% \DeclareVoidOption{nocolor}{\ekv{color = none}}
|
||||||
|
\DeclareVoidOption{en}{\ekv{lang=en}}
|
||||||
|
\DeclareVoidOption{cn}{\ekv{lang=cn}}
|
||||||
% ----- Math option -----
|
% ----- Math option -----
|
||||||
\newcommand\mailto[1]{\href{mailto:#1}{\nolinkurl{#1}}}
|
\newcommand\mailto[1]{\href{mailto:#1}{\nolinkurl{#1}}}
|
||||||
|
|
||||||
@@ -42,6 +45,7 @@
|
|||||||
\RequirePackage{indentfirst}
|
\RequirePackage{indentfirst}
|
||||||
\setlength\parindent{2em}
|
\setlength\parindent{2em}
|
||||||
|
|
||||||
|
% fontsetting
|
||||||
\RequirePackage{ifxetex}
|
\RequirePackage{ifxetex}
|
||||||
\ifxetex
|
\ifxetex
|
||||||
\RequirePackage{fontenc}
|
\RequirePackage{fontenc}
|
||||||
@@ -59,6 +63,14 @@
|
|||||||
\RequirePackage{newtxmath}
|
\RequirePackage{newtxmath}
|
||||||
%\DeclareSymbolFont{operators}{OT1}{ntxtlf}{m}{n}
|
%\DeclareSymbolFont{operators}{OT1}{ntxtlf}{m}{n}
|
||||||
%\SetSymbolFont{operators}{bold}{OT1}{ntxtlf}{b}{n}
|
%\SetSymbolFont{operators}{bold}{OT1}{ntxtlf}{b}{n}
|
||||||
|
\setCJKfamilyfont{zhsong}{SimSun}
|
||||||
|
\setCJKfamilyfont{zhhei}{SimHei}
|
||||||
|
\setCJKfamilyfont{zhkai}{KaiTi}
|
||||||
|
\setCJKfamilyfont{zhfs}{FangSong}
|
||||||
|
\newcommand*{\songti}{\CJKfamily{zhsong}}
|
||||||
|
\newcommand*{\heiti}{\CJKfamily{zhhei}}
|
||||||
|
\newcommand*{\kaishu}{\CJKfamily{zhkai}}
|
||||||
|
\newcommand*{\fangsong}{\CJKfamily{zhfs}}
|
||||||
\else
|
\else
|
||||||
\RequirePackage{fontenc}
|
\RequirePackage{fontenc}
|
||||||
\RequirePackage{newtxtext}
|
\RequirePackage{newtxtext}
|
||||||
@@ -101,12 +113,16 @@
|
|||||||
\definecolor{second}{RGB}{239,126,30}%
|
\definecolor{second}{RGB}{239,126,30}%
|
||||||
\definecolor{third}{RGB}{120,8,13}%
|
\definecolor{third}{RGB}{120,8,13}%
|
||||||
}{\relax}
|
}{\relax}
|
||||||
|
|
||||||
\ifdefstring{\ELEGANT@color}{blue}{
|
\ifdefstring{\ELEGANT@color}{blue}{
|
||||||
\definecolor{main}{RGB}{20,50,104}%
|
\definecolor{main}{RGB}{20,50,104}%
|
||||||
\definecolor{second}{RGB}{180,50,131}%
|
\definecolor{second}{RGB}{180,50,131}%
|
||||||
\definecolor{third}{RGB}{7,127,128}%
|
\definecolor{third}{RGB}{7,127,128}%
|
||||||
}{\relax}
|
}{\relax}
|
||||||
|
\ifdefstring{\ELEGANT@color}{plain}{
|
||||||
|
\definecolor{main}{RGB}{50,50,50}%
|
||||||
|
\definecolor{second}{RGB}{50,50,50}%
|
||||||
|
\definecolor{third}{RGB}{50,50,50}%
|
||||||
|
}{\relax}
|
||||||
|
|
||||||
%green color
|
%green color
|
||||||
\definecolor{main1}{RGB}{0,120,2}
|
\definecolor{main1}{RGB}{0,120,2}
|
||||||
@@ -126,22 +142,20 @@
|
|||||||
\definecolor{winered}{rgb}{0.5,0,0}
|
\definecolor{winered}{rgb}{0.5,0,0}
|
||||||
\definecolor{bule}{RGB}{18,29,57}
|
\definecolor{bule}{RGB}{18,29,57}
|
||||||
|
|
||||||
\AtBeginDocument{
|
|
||||||
\input{base.tex}
|
|
||||||
}
|
|
||||||
|
|
||||||
\providecommand{\base}{
|
\newcommand{\base}[2]{%
|
||||||
\begin{tikzpicture}[x=1pt,y=1pt,scale=0.2]
|
\nointerlineskip \vspace{0.1\baselineskip}\hspace{\fill}
|
||||||
\triz{0}{0}
|
{\color{#1}
|
||||||
\ellz{128}
|
\resizebox{0.3\linewidth}{1.5ex}
|
||||||
\intz{149}
|
{{%
|
||||||
\ellz{170}
|
{\begin{tikzpicture}
|
||||||
\intz{191}
|
\node (C) at (0,0) {};
|
||||||
\ellz{212}
|
\node (D) at (4,0) {};
|
||||||
\triz{341}{180}
|
\path (C) to [ornament=#2] (D);
|
||||||
\end{tikzpicture}}
|
\end{tikzpicture}}}}}%
|
||||||
%\newcommand*{\base}{
|
\hspace{\fill}
|
||||||
%}
|
\par\nointerlineskip \vspace{0.1\baselineskip}
|
||||||
|
}
|
||||||
|
|
||||||
% ----- Title Style -----
|
% ----- Title Style -----
|
||||||
\ifdefstring{\ELEGANT@titlestyle}{hang}{\def\style{hang}}{\relax}
|
\ifdefstring{\ELEGANT@titlestyle}{hang}{\def\style{hang}}{\relax}
|
||||||
@@ -159,36 +173,65 @@
|
|||||||
\RequirePackage[shortlabels]{enumitem}
|
\RequirePackage[shortlabels]{enumitem}
|
||||||
\setlist{nolistsep}
|
\setlist{nolistsep}
|
||||||
|
|
||||||
|
% caption settings
|
||||||
%%中文结构名字
|
\RequirePackage{caption}
|
||||||
\renewcommand{\contentsname}{目\hspace{2em}录}
|
\captionsetup{labelfont = bf}
|
||||||
\renewcommand{\figurename}{图}
|
\RequirePackage[font=small,labelfont={bf,color=main}]{caption}
|
||||||
\renewcommand{\tablename}{表}
|
\captionsetup[table]{skip=3pt}
|
||||||
\renewcommand{\partname}{部分}
|
\captionsetup[figure]{skip=3pt}
|
||||||
\renewcommand{\listfigurename}{插图目录}
|
|
||||||
\renewcommand{\listtablename}{表格目录}
|
|
||||||
\renewcommand{\bibname}{参考文献}
|
|
||||||
\renewcommand{\appendixname}{附录}
|
|
||||||
\renewcommand{\indexname}{索\hspace{2em}引}
|
|
||||||
|
|
||||||
%% 常用宏包
|
%% 常用宏包
|
||||||
\linespread{1.3}
|
\linespread{1.3}
|
||||||
\RequirePackage{microtype}
|
\RequirePackage{microtype}
|
||||||
\RequirePackage{graphicx}
|
\RequirePackage{graphicx}
|
||||||
\RequirePackage{enumerate}
|
%\RequirePackage{enumerate}
|
||||||
\RequirePackage{amsmath,mathrsfs,amsfonts}
|
\RequirePackage{amsmath,mathrsfs,amsfonts}
|
||||||
\RequirePackage{booktabs}
|
\RequirePackage{booktabs}
|
||||||
\RequirePackage{multicol}
|
\RequirePackage{multicol}
|
||||||
\RequirePackage{xcolor}
|
\RequirePackage{xcolor}
|
||||||
\RequirePackage{fancyvrb}
|
\RequirePackage{fancyvrb}
|
||||||
\RequirePackage{makecell,lipsum,texnames,setspace}
|
\RequirePackage{makecell,lipsum,texnames,setspace}
|
||||||
\RequirePackage{tikz}
|
|
||||||
|
|
||||||
|
%%中文结构名字
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{
|
||||||
|
\newcommand\figref[1]{\textbf{Figure}~\ref{#1}}
|
||||||
|
\newcommand\tabref[1]{\textbf{Table}~\ref{#1}}
|
||||||
|
\renewcommand{\chaptername}{Chapter \thechapter}
|
||||||
|
}{\relax}
|
||||||
|
\ifdefstring{\ELEGANT@lang}{cn}{
|
||||||
|
\renewcommand{\contentsname}{目录}
|
||||||
|
\renewcommand{\figurename}{图}
|
||||||
|
\renewcommand{\tablename}{表}
|
||||||
|
\renewcommand{\partname}{第 \thepart\; 部分}
|
||||||
|
\renewcommand{\listfigurename}{插图目录}
|
||||||
|
\renewcommand{\listtablename}{表格目录}
|
||||||
|
\renewcommand{\bibname}{参考文献}
|
||||||
|
\renewcommand{\appendixname}{附录}
|
||||||
|
\renewcommand{\indexname}{索引}
|
||||||
|
\newcommand\figref[1]{\textbf{图}~\ref{#1}}
|
||||||
|
\newcommand\tabref[1]{\textbf{表}~\ref{#1}}
|
||||||
|
\renewcommand{\chaptername}{第 \thechapter\;章}
|
||||||
|
}{\relax}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
|
\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}
|
||||||
|
|
||||||
\usetikzlibrary{backgrounds,calc}
|
\RequirePackage{tikz}
|
||||||
|
\usetikzlibrary{backgrounds,calc,shadows}
|
||||||
|
\usepackage[object=vectorian]{pgfornament} %%
|
||||||
|
|
||||||
|
\newcommand*{\eitemi}{\tikz \draw [baseline, ball color=main, draw=main] circle (2pt);}
|
||||||
|
\newcommand*{\eitemii}{\tikz \draw [baseline, fill=main,draw=main,circular drop shadow] circle (2pt);}
|
||||||
|
\newcommand*{\eitemiii}{\tikz \draw [baseline, fill=main,draw=main] circle (2pt);}
|
||||||
|
\setlist[enumerate,1]{label=\color{main}\arabic*.}
|
||||||
|
\setlist[enumerate,2]{label=\color{main}(\Roman*).}
|
||||||
|
\setlist[enumerate,3]{label=\color{main}(\Alph*).}
|
||||||
|
\setlist[enumerate,4]{label=\color{main}(\roman*).}
|
||||||
|
\setlist[itemize,1]{label={\eitemi}}
|
||||||
|
\setlist[itemize,2]{label={\eitemii}}
|
||||||
|
\setlist[itemize,3]{label={\eitemiii}}
|
||||||
|
|
||||||
\RequirePackage{natbib}
|
\RequirePackage{natbib}
|
||||||
\setlength{\bibsep}{0.0pt}
|
\setlength{\bibsep}{0.0pt}
|
||||||
@@ -216,8 +259,9 @@
|
|||||||
bookmarksopen=true,
|
bookmarksopen=true,
|
||||||
pdfkeywords={ElegantBook},
|
pdfkeywords={ElegantBook},
|
||||||
colorlinks,
|
colorlinks,
|
||||||
linkcolor=main,
|
linkcolor=winered,
|
||||||
citecolor=winered,
|
citecolor=winered,
|
||||||
|
urlcolor = winered,
|
||||||
plainpages=false,
|
plainpages=false,
|
||||||
pdfstartview=FitH,
|
pdfstartview=FitH,
|
||||||
pdfborder={0 0 0},
|
pdfborder={0 0 0},
|
||||||
@@ -230,9 +274,9 @@
|
|||||||
\RequirePackage{apptools}
|
\RequirePackage{apptools}
|
||||||
\RequirePackage[toc,page]{appendix}
|
\RequirePackage[toc,page]{appendix}
|
||||||
|
|
||||||
\renewcommand{\chaptername}{第 \thechapter\;章}
|
|
||||||
\titleformat{\chapter}[\style]{\bfseries}
|
\titleformat{\chapter}[\style]{\bfseries}
|
||||||
{\filcenter\LARGE\enspace\bfseries{\color{main}\IfAppendix{\appendixname}{\chaptername}\enspace}}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base]
|
{\filcenter\LARGE\enspace\bfseries{\color{main}\IfAppendix{\appendixname}{\chaptername}\enspace}}{1pt}{\bfseries\color{main}\LARGE\filcenter}[\filcenter\base{main}{88}]
|
||||||
|
|
||||||
|
|
||||||
\titleformat{\section}[hang]{\bfseries}
|
\titleformat{\section}[hang]{\bfseries}
|
||||||
@@ -245,14 +289,6 @@
|
|||||||
%\titlespacing{\subsection}{0pt}{0.5\baselineskip}{-\baselineskip}
|
%\titlespacing{\subsection}{0pt}{0.5\baselineskip}{-\baselineskip}
|
||||||
|
|
||||||
|
|
||||||
% caption settings
|
|
||||||
\RequirePackage{caption}
|
|
||||||
\captionsetup{labelfont = bf}
|
|
||||||
\RequirePackage[font=small,labelfont={bf}]{caption}
|
|
||||||
\captionsetup[table]{skip=3pt}
|
|
||||||
\captionsetup[figure]{skip=3pt}
|
|
||||||
\newcommand\figref[1]{\textbf{Figure}~\ref{#1}}
|
|
||||||
\newcommand\tabref[1]{\textbf{Table}~\ref{#1}}
|
|
||||||
|
|
||||||
|
|
||||||
% list/itemize/enumerate setting
|
% list/itemize/enumerate setting
|
||||||
@@ -296,11 +332,25 @@
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
\newtcbtheorem[auto counter,number within=chapter]{definition}{定义}{defstyle}{def}
|
\newtcbtheorem[auto counter,number within=chapter]{definition}{
|
||||||
\newtcbtheorem[auto counter,number within=chapter]{theorem}{定理}{thmstyle}{thm}
|
\ifdefstring{\ELEGANT@lang}{en}{Definition}{定义}
|
||||||
\newtcbtheorem[auto counter,number within=chapter]{proposition}{命题}{propstyle}{pro}
|
}{defstyle}{def}
|
||||||
\newtcbtheorem[auto counter,number within=chapter]{corollary}{推论}{thmstyle}{cor}
|
|
||||||
\newtcbtheorem[auto counter,number within=chapter]{lemma}{引理}{thmstyle}{lem}
|
\newtcbtheorem[auto counter,number within=chapter]{theorem}{
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Theorem}{定理}
|
||||||
|
}{thmstyle}{thm}
|
||||||
|
|
||||||
|
\newtcbtheorem[auto counter,number within=chapter]{proposition}{
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Proposition}{命题}
|
||||||
|
}{propstyle}{pro}
|
||||||
|
|
||||||
|
\newtcbtheorem[auto counter,number within=chapter]{corollary}{
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Corollary}{推论}
|
||||||
|
}{thmstyle}{cor}
|
||||||
|
|
||||||
|
\newtcbtheorem[auto counter,number within=chapter]{lemma}{
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Lemma}{引理}
|
||||||
|
}{thmstyle}{lem}
|
||||||
|
|
||||||
|
|
||||||
%% Example with counter
|
%% Example with counter
|
||||||
@@ -308,7 +358,9 @@
|
|||||||
\setcounter{exam}{0}
|
\setcounter{exam}{0}
|
||||||
\renewcommand{\theexam}{\thechapter.\arabic{exam}}
|
\renewcommand{\theexam}{\thechapter.\arabic{exam}}
|
||||||
\newenvironment{example}[1][]{
|
\newenvironment{example}[1][]{
|
||||||
\refstepcounter{exam}\par\medskip\noindent \textbf{\color{main}{示例}~\theexam #1:}\rmfamily %
|
\refstepcounter{exam}\par\medskip\noindent \textbf{\color{main}{
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Example}{例}
|
||||||
|
}~\theexam #1:}\rmfamily %
|
||||||
}{
|
}{
|
||||||
\par\medskip\ignorespacesafterend %
|
\par\medskip\ignorespacesafterend %
|
||||||
}
|
}
|
||||||
@@ -318,30 +370,61 @@
|
|||||||
\setcounter{exer}{0}
|
\setcounter{exer}{0}
|
||||||
\renewcommand{\theexer}{\thechapter.\arabic{exer}}
|
\renewcommand{\theexer}{\thechapter.\arabic{exer}}
|
||||||
\newenvironment{exercise}[1][]{
|
\newenvironment{exercise}[1][]{
|
||||||
\refstepcounter{exer}\par\medskip\noindent \textbf{\color{main}{练习}~\theexer #1:}\rmfamily %
|
\refstepcounter{exer}\par\medskip\noindent \textbf{\color{main}{
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Exercise}{练习}
|
||||||
|
}~\theexer #1:}\rmfamily %
|
||||||
|
}{
|
||||||
|
\par\medskip\ignorespacesafterend %
|
||||||
|
}
|
||||||
|
|
||||||
|
%% Exercise with counter
|
||||||
|
\newcounter{prob}[chapter]
|
||||||
|
\setcounter{prob}{0}
|
||||||
|
\renewcommand{\theprob}{\thechapter.\arabic{prob}}
|
||||||
|
\newenvironment{problem}[1][]{
|
||||||
|
\refstepcounter{prob}\par\medskip\noindent \textbf{\color{main}{
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Problem}{例题}
|
||||||
|
}~\theprob #1:}\rmfamily %
|
||||||
}{
|
}{
|
||||||
\par\medskip\ignorespacesafterend %
|
\par\medskip\ignorespacesafterend %
|
||||||
}
|
}
|
||||||
|
|
||||||
%%define the note and proof environment
|
%%define the note and proof environment
|
||||||
\RequirePackage{pifont,manfnt}
|
\RequirePackage{pifont,manfnt}
|
||||||
\newenvironment{note}{\par\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{\color{main}{注意:}}}\itshape}{\par}
|
|
||||||
\newenvironment{proof}{\par\noindent\textbf{\color{main}{证明:}}\color{black!90}\small}{\hfill$\Box$\quad\par}
|
|
||||||
|
|
||||||
\newenvironment{remark}{\noindent\textbf{\color{main}{备注:}}}{\par}
|
\newenvironment{note}{\par\noindent{\makebox[0pt][r]{\scriptsize\color{red!90}\textdbend\quad}\textbf{\color{main}
|
||||||
\newenvironment{assumption}{\par\noindent\textbf{\color{main}{假设:}}}{\par}
|
\ifdefstring{\ELEGANT@lang}{en}{Note:}{注意:}
|
||||||
\newenvironment{conclusion}{\par\noindent\textbf{\color{main}{结论:}}}{\par}
|
}}\itshape}{\par}
|
||||||
\newenvironment{solution}{\par\noindent\textbf{\color{main}{答案:}}}{\par}
|
|
||||||
\newenvironment{property}{\par\noindent\textbf{\color{main}{性质:}}}{\par}
|
\newenvironment{proof}{\par\noindent\textbf{\color{main}
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Proof:}{证明:}
|
||||||
|
}\color{black!90}\small}{\hfill$\Box$\quad\par}
|
||||||
|
\newenvironment{remark}{\noindent\textbf{\color{main}
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Remark:}{注:}
|
||||||
|
}}{\par}
|
||||||
|
\newenvironment{assumption}{\par\noindent\textbf{\color{main}
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Assumption:}{假设:}
|
||||||
|
}}{\par}
|
||||||
|
\newenvironment{conclusion}{\par\noindent\textbf{\color{main}
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Conclusion:}{结论:}
|
||||||
|
}}{\par}
|
||||||
|
\newenvironment{solution}{\par\noindent\textbf{\color{main}
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Solution:}{解:}
|
||||||
|
}}{\par}
|
||||||
|
\newenvironment{property}{\par\noindent\textbf{\color{main}
|
||||||
|
\ifdefstring{\ELEGANT@lang}{en}{Property:}{性质:}
|
||||||
|
}}{\par}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%页眉页脚
|
%页眉页脚
|
||||||
\RequirePackage{fancyhdr}
|
\RequirePackage{fancyhdr}
|
||||||
\RequirePackage{lastpage}
|
\RequirePackage{lastpage}
|
||||||
\fancyhf{}
|
\fancyhf{}
|
||||||
\fancyhead[EL,OR]{\color{main}--\thepage/\pageref{LastPage}--}
|
\fancyhead[EL,OR]{\color{main}--\thepage/\pageref*{LastPage}--}
|
||||||
\fancyhead[ER]{\color{main}\em\nouppercase\leftmark{}}
|
\fancyhead[ER]{\color{main}\em\nouppercase\leftmark{}}
|
||||||
\fancyhead[OL]{\color{main}\em\nouppercase\rightmark}
|
\fancyhead[OL]{\color{main}\em\nouppercase\rightmark}
|
||||||
\fancyfoot[c]{\base}
|
\fancyfoot[c]{\base{main}{88}}
|
||||||
\renewcommand{\headrule}{\color{main}\hrule width\textwidth}
|
\renewcommand{\headrule}{\color{main}\hrule width\textwidth}
|
||||||
\pagestyle{fancy}
|
\pagestyle{fancy}
|
||||||
|
|
||||||
@@ -374,14 +457,14 @@
|
|||||||
\hfill
|
\hfill
|
||||||
\begin{minipage}[c]{0.618\linewidth}
|
\begin{minipage}[c]{0.618\linewidth}
|
||||||
{\bfseries\Huge \@title\\}
|
{\bfseries\Huge \@title\\}
|
||||||
{\bfseries\huge \the\subtitle\\[1ex]}
|
{\color{darkgray}\bfseries\Large \the\subtitle\\[2ex]}
|
||||||
\color{gray}\kaishu\normalsize
|
\color{gray}\kaishu\normalsize
|
||||||
{\renewcommand{\arraystretch}{0.618}
|
{\renewcommand{\arraystretch}{0.618}
|
||||||
\begin{tabular}{l}
|
\begin{tabular}{l}
|
||||||
作者:\@author \\
|
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Author: }}{\textbf{作者:}}\@author \\
|
||||||
版本:\the\version \\
|
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Institute: }}{\textbf{组织:}}\the\institute\\
|
||||||
组织:\the\institute\\
|
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Update: }}{\textbf{更新:}}\@date\\
|
||||||
更新:\@date
|
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Version: }}{\textbf{版本:}}\the\version \\
|
||||||
\end{tabular}}
|
\end{tabular}}
|
||||||
\end{minipage}
|
\end{minipage}
|
||||||
\hspace{2em}
|
\hspace{2em}
|
||||||
@@ -398,5 +481,22 @@
|
|||||||
\restoregeometry
|
\restoregeometry
|
||||||
\end{titlepage}}
|
\end{titlepage}}
|
||||||
|
|
||||||
|
\RequirePackage{listings}
|
||||||
|
\definecolor{lightgrey}{rgb}{0.9,0.9,0.9}
|
||||||
|
\definecolor{frenchplum}{RGB}{190,20,83}
|
||||||
|
\lstset{language=[LaTeX]TeX,
|
||||||
|
texcsstyle=*\bf\color{winered}\ttfamily,
|
||||||
|
basicstyle=\footnotesize\ttfamily,
|
||||||
|
numbers=none,
|
||||||
|
breaklines=true,
|
||||||
|
keywordstyle=\bf\color{winered}\ttfamily,
|
||||||
|
commentstyle=\color{gray},
|
||||||
|
emph={elegantpaper,fontenc,fontspec,xeCJK,FiraMono,xunicode,newtxmath,figure,fig,image,img,table,itemize,enumerate,newtxtext,newtxtt,ctex,microtype,description,times,newtx,booktabs,tabular,PDFLaTeX,XeLaTeX,type1cm,BibTeX,device,color,mode,lang,amsthm},
|
||||||
|
emphstyle={\color{frenchplum}},
|
||||||
|
morekeywords={DeclareSymbolFont,SetSymbolFont,toprule,midrule,bottomrule,institute,version,includegraphics,setmainfont,setsansfont,setmonofont ,setCJKmainfont,setCJKsansfont,setCJKmonofont,RequirePackage,figref,tabref,email,maketitle,keywords,definecolor},
|
||||||
|
frame=none,
|
||||||
|
tabsize=2,
|
||||||
|
rulecolor=\color{main},
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
BIN
elegantbook.pdf
BIN
elegantbook.pdf
Binary file not shown.
110
elegantbook.tex
110
elegantbook.tex
@@ -1,9 +1,9 @@
|
|||||||
\documentclass{elegantbook}
|
\documentclass[green,cn]{elegantbook}
|
||||||
|
|
||||||
\title{\mbox{ElegantBook:优美的 \LaTeX{} 书籍模板}}
|
\title{\mbox{ElegantBook:优美的 \LaTeX{} 书籍模板}}
|
||||||
\subtitle{An Elegant Book Template}
|
\subtitle{Elegant\LaTeX{} 经典之作}
|
||||||
|
|
||||||
\author{ddswhu \& Liam Huang}
|
\author{Ethan Deng \& Liam Huang}
|
||||||
\institute{Elegant\LaTeX{} Program}
|
\institute{Elegant\LaTeX{} Program}
|
||||||
\date{\today}
|
\date{\today}
|
||||||
|
|
||||||
@@ -21,51 +21,53 @@
|
|||||||
|
|
||||||
值此版本发行之际,我们 Elegant\LaTeX{} 项目组向大家重新介绍一下我们的工作,我们致力于打造一系列美观、优雅、简便的模板方便用户使用。Elegant\LaTeX{} 系列模板目前由 \href{https://github.com/ElegantLaTeX/ElegantNote}{ElegantNote},\href{https://github.com/ElegantLaTeX/ElegantBook}{ElegantBook},\href{https://github.com/ElegantLaTeX/ElegantPaper}{ElegantPaper} 组成,分别用于排版笔记,书籍和工作论文。这些子项目的名词是一体的,请在使用这些名词的时候不要将其断开(如 Elegant Note 是不正确的写法)。并且,Elegant\LaTeX{} Book 指的即是 ElegantBook。
|
值此版本发行之际,我们 Elegant\LaTeX{} 项目组向大家重新介绍一下我们的工作,我们致力于打造一系列美观、优雅、简便的模板方便用户使用。Elegant\LaTeX{} 系列模板目前由 \href{https://github.com/ElegantLaTeX/ElegantNote}{ElegantNote},\href{https://github.com/ElegantLaTeX/ElegantBook}{ElegantBook},\href{https://github.com/ElegantLaTeX/ElegantPaper}{ElegantPaper} 组成,分别用于排版笔记,书籍和工作论文。这些子项目的名词是一体的,请在使用这些名词的时候不要将其断开(如 Elegant Note 是不正确的写法)。并且,Elegant\LaTeX{} Book 指的即是 ElegantBook。
|
||||||
|
|
||||||
请用户在作者的主页下载最新版本,下载地址:\href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Github/ElegantBook/Releases}。本文将介绍本模板的一些设置内容以及基本使用方法。如果您在使用此模板,欢迎把您使用此模板制作的成品发一份给我们,谢谢!如果您有其他问题,建议或者意见,欢迎联系我们。
|
最新版本下载地址:\href{https://github.com/ElegantLaTeX/ElegantBook/releases}{Github:ElegantBook/Releases}。本文将介绍本模板的一些设置内容以及基本使用方法。如果您在使用此模板,欢迎把您使用此模板制作的成品发一份给我们,谢谢!如果您有其他问题,建议或者意见,欢迎联系我们。
|
||||||
|
|
||||||
|
|
||||||
\section{ElegantBook 更新说明}
|
\section{ElegantBook 更新说明}
|
||||||
在这几年间,我们收到了很多用户的反馈,主要的问题涉及到字体安装,编码支持,定理浮动,定理跨页,交叉引用等等。我们思前想后,原先让用户安装字体以追求视觉上的美观并不完美,用户陷入了巨大的麻烦,这违背了我们的模板初衷。因此我们在新版中删除了这部分,用户无需安装任何字体。让我们来看下此次 ElegantBook 模板 3.x 更新的主要内容有:
|
在这几年间,我们收到了很多用户的反馈,主要的问题涉及到字体安装,编码支持,定理浮动,定理跨页,交叉引用等等。我们思前想后,原先让用户安装字体以追求视觉上的美观并不完美,用户陷入了巨大的麻烦,这违背了我们的模板初衷。因此我们在新版中删除了这部分,用户无需安装任何字体。让我们来看下此次 ElegantBook 模板 3.x 更新的主要内容有:
|
||||||
|
|
||||||
\begin{enumerate}
|
\begin{enumerate}
|
||||||
\item 删除了自定义字体设置,改用 \texttt{ctex} 宏包用以支持中文;
|
\item 删除了自定义字体设置,改用 \lstinline{ctex} 宏包或者系统默认字体;
|
||||||
\item 使用 \texttt{tcolorbox} 宏包改写了原先的定理类环境,目前定理环境等均可以跨页;
|
\item 模板拆分为中英文模式(\lstinline{lang=cn/en});
|
||||||
\item 重新命名了定理类环境的名称(theorem,definition,proposition 等);
|
\item \lstinline{PDFLaTeX} 与 \lstinline{XeLaTeX} 支持;
|
||||||
\item 重新命名了颜色的名字(first,second,third);
|
\item 使用 \lstinline{tcolorbox} 宏包改写定理类环境,可跨页;
|
||||||
\item 重新绘制 ElegantLaTeX 的 Logo;
|
\item 定理类环境名字更新,修复定理环境交叉引用;
|
||||||
\item 更新类定理环境,包括其交叉引用;
|
\item 颜色名字更新,统一链接颜色;
|
||||||
\item 特别修正附录相关内容。
|
\item 重新绘制 Elegant\LaTeX{} 的 Logo;
|
||||||
|
\item 更新封面与装饰物,删除水印;
|
||||||
|
\item 修正附录相关内容;
|
||||||
|
\item 增加灰色主题 \lstinline{color=plain};
|
||||||
|
\item 增加代码高亮;
|
||||||
|
\item 美化列表环境。
|
||||||
\end{enumerate}
|
\end{enumerate}
|
||||||
|
|
||||||
\section{未来更新计划}
|
|
||||||
|
|
||||||
|
|
||||||
\begin{enumerate}
|
|
||||||
\item 重新设计 base 图标;
|
|
||||||
\item 重新设计一个好看的封面。
|
|
||||||
\item 将基础模板改为英文模板,添加选项使其支持中文。
|
|
||||||
\item 添加一个简化风格(plain)的颜色主题。
|
|
||||||
\end{enumerate}
|
|
||||||
|
|
||||||
\chapter{ElegantBook 设置说明}
|
\chapter{ElegantBook 设置说明}
|
||||||
|
|
||||||
|
|
||||||
\section{编译方式}
|
\section{编译方式}
|
||||||
|
|
||||||
本模板基于基础的 book 文类,所以 book 的选项对于本模板也是有效的。默认编码为 UTF-8,推荐使用 \TeX{} Live 编译。作者编写环境为 Win10(64bit) + \TeX{} Live 2018。由于使用的是 \texttt{ctex} 宏包,所以支持 \texttt{pdflatex} 以及 \texttt{xelatex} 编译。
|
本模板基于基础的 book 文类,所以 book 的选项对于本模板也是有效的。默认编码为 UTF-8,推荐使用 \TeX{} Live 编译。本文编写环境为 Win10 (64bit) + \TeX{} Live 2018。由于使用的是 \lstinline{ctex} 宏包,所以支持 \lstinline{PDFLaTeX} 以及 \lstinline{XeLaTeX} 编译。
|
||||||
|
|
||||||
|
|
||||||
\section{选项设置}
|
\section{选项设置}
|
||||||
本文特殊选项设置共有 2 类,分为 {\color{main}主题颜色}设置 以及 {\color{main}章标题显示风格}设置。
|
本文特殊选项设置共有 2 类,分为\textit{主题颜色}设置以及\textit{章标题风格}设置。
|
||||||
|
|
||||||
第 1 类为{\color{main}主题颜色}设置,内置 3 组颜色主题,分别为 \verb|green|(默认)、\verb|cyan|、\verb|blue|,另外还有一个自定义的选项 \verb|nocolor|。调用颜色主题 \verb|green| 的方法为 \\
|
第 1 类为\textit{主题颜色}设置,内置 4 组颜色主题,分别为 \lstinline{green}(默认)、\lstinline{cyan}、\lstinline{blue}、\lstinline{plain},另外还有一个自定义的选项 \lstinline{nocolor}。调用颜色主题 \lstinline{green} 的方法为
|
||||||
\verb|\documentclass[green]{elegantbook}| 或者 \verb|\documentclass[color=green]{elegantbook}|。需要改变颜色的话请选择 \verb|nocolor| 选项或者使用 \verb|color=none|,然后在导言区定义 main、second、third 颜色,具体的方法如下:
|
|
||||||
|
|
||||||
\begin{verbatim}
|
\begin{lstlisting}[frame=single]
|
||||||
\definecolor{main}{RGB}{70,70,70} %定义 main 颜色值
|
\documentclass[green]{elegantbook} %or
|
||||||
\definecolor{second}{RGB}{115,45,2} %定义 second 颜色值
|
\documentclass[color=green]{elegantbook}
|
||||||
\definecolor{third}{RGB}{0,80,80} %定义 third 颜色值
|
\end{lstlisting}
|
||||||
\end{verbatim}
|
|
||||||
|
需要自定义颜色的话请选择 \lstinline{nocolor} 选项或者使用 \lstinline{color=none},然后在导言区定义 main、second、third 颜色,具体的方法如下:
|
||||||
|
|
||||||
|
\begin{lstlisting}[frame=single]
|
||||||
|
\definecolor{main}{RGB}{70,70,70}
|
||||||
|
\definecolor{second}{RGB}{115,45,2}
|
||||||
|
\definecolor{third}{RGB}{0,80,80}
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
\begin{table}[htp]
|
\begin{table}[htp]
|
||||||
\caption{ElegantBook 模板中的三套颜色主题\label{tab:color thm}}
|
\caption{ElegantBook 模板中的三套颜色主题\label{tab:color thm}}
|
||||||
@@ -83,32 +85,46 @@ third &\makecell{ {\color{third1}\rule{1cm}{1cm}}}& \makecell{{\color{third2}\ru
|
|||||||
\end{tabular}
|
\end{tabular}
|
||||||
\end{table}
|
\end{table}
|
||||||
|
|
||||||
第 2 类为{\color{main} 章标题显示风格},包含 \verb|hang|(默认)与 \verb|display| 两种风格,区别在于章标题单行显示(\verb|hang|)与双行显示(\verb|display|),本说明使用了 \verb|hang|。调用方式为 \verb|\documentclass[hang]{elegantbook}| 或者 \verb|\documentclass[titlestyle=hang]{elegantbook}|。
|
第 2 类为\textit{章标题显示风格},包含 \lstinline{hang}(默认)与 \lstinline{display} 两种风格,区别在于章标题单行显示(\lstinline{hang})与双行显示(\lstinline{display}),本说明使用了 \lstinline{hang}。调用方式为
|
||||||
|
|
||||||
综合起来,同时调用三个选项使用 \verb|\documentclass[color=X,titlestyle=Y]{elegantbook}|。其中 \verb|X| 可以选择 \verb|green|,\verb|cyan|,\verb|blue|,\verb|none|;\verb|Z| 可以选择 \verb|hang| 或者 \verb|display|。
|
\begin{lstlisting}[frame=single]
|
||||||
|
\documentclass[hang]{elegantbook} %or
|
||||||
|
\documentclass[titlestyle=hang]{elegantbook}
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
综合起来,同时调用 2 个选项使用
|
||||||
|
|
||||||
|
\begin{lstlisting}[frame=single]
|
||||||
|
\documentclass[color=x,titlestyle=y]{elegantbook}
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
其中 \lstinline{x} 可以选择 \lstinline{green},\lstinline{cyan},\lstinline{blue},\lstinline{plain},\lstinline{none};\lstinline{y} 可以选择 \lstinline{hang} 或者 \lstinline{display}。
|
||||||
|
|
||||||
\section{数学环境简介}
|
\section{数学环境简介}
|
||||||
|
|
||||||
在我们这个模板中,定义了三大类环境
|
在我们这个模板中,定义了四大类环境
|
||||||
|
|
||||||
\begin{enumerate}
|
\begin{itemize}
|
||||||
\item 定理类环境,包含标题和内容两部分。根据格式的不同分为3种
|
\item 定理类环境,包含标题和内容两部分。根据格式的不同分为3种
|
||||||
\begin{itemize}
|
\begin{itemize}
|
||||||
\item {\color{main}\bfseries definition} 环境,含有一个可选项,编号以章节为单位,颜色为 {\color{main}main};
|
\item {\color{main}\bfseries definition} 环境,含有一个可选项,编号以章节为单位,颜色为 {\color{main}main};
|
||||||
\item {\color{second}\bfseries theorem、lemma、corollary} 环境,颜色为主颜色 {\color{second}second},编号均以章节为单位;
|
\item {\color{second}\bfseries theorem、lemma、corollary} 环境,颜色为主颜色 {\color{second}second},编号均以章节为单位;
|
||||||
\item {\color{third}\bfseries proposition} 环境,含有一个可选项,编号以章节为单位,颜色为 {\color{third}{third}}。
|
\item {\color{third}\bfseries proposition} 环境,含有一个可选项,编号以章节为单位,颜色为 {\color{third}{third}}。
|
||||||
\end{itemize}
|
\end{itemize}
|
||||||
\item 示例类环境,有 \textbf{example、exercise} 环境,自动编号,编号以章节为单位。
|
\item 示例类环境,有 \textbf{example、exercise、problem} 环境(对应于例,练习,例题),自动编号,编号以章节为单位。
|
||||||
\item 证明类环境,有 \textbf{proof、note} 环境,特点是,有引导符或者结尾符,\textbf{note} 环境有引导符号,\textbf{proof} 环境有证明完毕标志。
|
\item 证明类环境,有 \textbf{proof、note} 环境,特点是,有引导符或者结尾符,\textbf{note} 环境有引导符号,\textbf{proof} 环境有证明完毕标志。
|
||||||
\item 结论类环境,有\textbf{conclusion、assumption、property,remark、solution} 环境,三者均以粗体的引导词为开头,和普通段落格式一致。
|
\item 结论类环境,有 \textbf{conclusion、assumption、property,remark、solution} 环境,三者均以粗体的引导词为开头,和普通段落格式一致。
|
||||||
\end{enumerate}
|
\end{itemize}
|
||||||
|
|
||||||
\section{可编辑的字段}
|
\section{关于图片}
|
||||||
在模板中,可以编辑的字段分别为作者 \verb|\author|、邮箱 \verb|\email|、中文标题 \verb|\zhtitle|、中文标题结尾 \verb|\zhend|、英文标题\verb| \entitle|、英文标题结尾 \verb|\enend|、名言 \verb|\myquote|、版本号 \verb|\version|。并且,可以根据自己的喜好把封面水印效果的 \verb|cover.pdf| 替换掉,以及封面中用到的 \verb|logo.png|。
|
|
||||||
|
本模板使用的封面图片来源于 \href{https://pixabay.com/en/tea-time-poetry-coffee-reading-3240766/}{pixabay.com}\footnote{感谢 China\TeX{} 提供免费图源网站,另外还推荐 \href{https://www.pexels.com/}{pexels.com}。},图片完全免费,可用于任何场景。封面图片的尺寸为 $1280 \times 1024$, 更换图片的时候请\textbf{严格}按照封面图片尺寸进行裁剪。推荐一个免费的在线图片裁剪网站 \href{https://www.befunky.com/create/crop-photo/}{befunky.com}。
|
||||||
|
|
||||||
|
本文用到的 Logo 比例为 1:1,也即正方形图片,在更换图片的时候请选择合适的图片进行替换。
|
||||||
|
|
||||||
\section{参考文献}
|
\section{参考文献}
|
||||||
|
|
||||||
此模板使用了 Bib\TeX{} 来生成参考文献,默认使用的文献样式 aer 样式。参考文献示例:~\cite{Chen2018} 使用了中国一个大型的 P2P 平台(人人贷)的数据来检验男性投资者和女性投资者在投资表现上是否有显著差异。你可以在谷歌学术,Mendeley,Endnote 中获得文献条目(bib item),然后把它们添加到 \verb|reference.bib| 中。在文中引用的时候,引用它们的键值(bib key)即可。注意需要在编译的过程中添加 Bib\TeX{} 编译。
|
此模板使用了 Bib\TeX{} 来生成参考文献,默认使用的文献样式 aer 样式。参考文献示例:~\cite{Chen2018} 使用了中国一个大型的 P2P 平台(人人贷)的数据来检验男性投资者和女性投资者在投资表现上是否有显著差异。你可以在谷歌学术,Mendeley,Endnote 中获得文献条目(bib item),然后把它们添加到 \lstinline{reference.bib} 中。在文中引用的时候,引用它们的键值(bib key)即可。注意需要在编译的过程中添加 Bib\TeX{} 编译。
|
||||||
|
|
||||||
\chapter{ElegantBook 写作示例}
|
\chapter{ElegantBook 写作示例}
|
||||||
|
|
||||||
@@ -172,9 +188,6 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
|
|||||||
|
|
||||||
我们知道最小二乘法可以用来处理一组数据,可以从一组测定的数据中寻求变量之间的依赖关系,这种函数关系称为经验公式。本课题将介绍最小二乘法的精确定义及如何寻求点与点之间近似成线性关系时的经验公式。假定实验测得变量之间的 $n$ 个数据,则在平面上,可以得到 $n$ 个点,这种图形称为 “散点图”,从图中可以粗略看出这些点大致散落在某直线近旁, 我们认为其近似为一线性函数,下面介绍求解步骤。
|
我们知道最小二乘法可以用来处理一组数据,可以从一组测定的数据中寻求变量之间的依赖关系,这种函数关系称为经验公式。本课题将介绍最小二乘法的精确定义及如何寻求点与点之间近似成线性关系时的经验公式。假定实验测得变量之间的 $n$ 个数据,则在平面上,可以得到 $n$ 个点,这种图形称为 “散点图”,从图中可以粗略看出这些点大致散落在某直线近旁, 我们认为其近似为一线性函数,下面介绍求解步骤。
|
||||||
|
|
||||||
|
|
||||||
考虑函数 $y=a+bx$, 其中 $a$ 和 $b$ 是待定常数。如果离散点完全的在一直线上,可以认为变量之间的关系为一元函数。但一般说来,这些点不可能在同一直线上。但是它只能用直线来描述时,计算值与实际值会产生偏差。当然要求偏差越小越好,但由于偏差可正可负,因此不能认为总偏差时,拟合函数很好地反映了变量之间的关系,但是因为此时每个偏差的绝对值可能很大。为了改进这一缺陷,就考虑用平均值来代替。但是由于绝对值不易作解析运算,因此,进一步用残差平方和函数来度量总偏差。偏差的平方和最小可以保证每个偏差都不会很大。于是问题归结为确定拟合函数中的常数和使残差平方和函数最小。
|
|
||||||
|
|
||||||
\begin{figure}[htbp]
|
\begin{figure}[htbp]
|
||||||
\centering
|
\centering
|
||||||
\includegraphics[width=0.6\textwidth]{scatter.pdf}
|
\includegraphics[width=0.6\textwidth]{scatter.pdf}
|
||||||
@@ -192,20 +205,9 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
|
|||||||
\end{property}
|
\end{property}
|
||||||
|
|
||||||
\begin{conclusion}
|
\begin{conclusion}
|
||||||
回归分析(regression analysis) 是确定两种或两种以上变量间相互依赖的定量关系的一种统计分析方法。运用十分广泛,回归分析按照涉及的变量的多少,分为一元回归和多元回归分析;按照因变量的多少,可分为简单回归分析和多重回归分析;按照自变量和因变量之间的关系类型,可分为线性回归分析和非线性回归分析。如果在回归分析中,只包括一个自变量和一个因变量,且二者的关系可用一条直线近似表示,这种回归分析称为一元线性回归分析。如果回归分析中包括两个或两个以上的自变量,且自变量之间存在线性相关,则称为多重线性回归分析。
|
回归分析(regression analysis) 是确定两种或两种以上变量间相互依赖的定量关系的一种统计分析方法。运用十分广泛,回归分析按照涉及的变量的多少,分为一元回归和多元回归分析;按照因变量的多少,可分为简单回归分析和多重回归分析;按照自变量和因变量之间的关系类型,可分为线性回归分析和非线性回归分析。
|
||||||
\end{conclusion}
|
\end{conclusion}
|
||||||
|
|
||||||
The arts refers to the theory and physical expression of creativity found in human societies and cultures. Major constituents of the arts include literature (including drama, poetry, and prose), performing arts (among them dance, music, and theatre), and visual arts (including drawing, painting, filmmaking, architecture, ceramics, sculpting, and photography).
|
|
||||||
|
|
||||||
\begin{center}
|
|
||||||
\begin{tikzpicture}
|
|
||||||
\draw[->] (-3,0) -- (4.2,0) node[right] {$x$};
|
|
||||||
\draw[->] (0,-3) -- (0,4.2) node[above] {$y$};
|
|
||||||
\draw[scale=0.5,domain=-3:3,smooth,variable=\x,blue] plot ({\x},{\x*\x});
|
|
||||||
\draw[scale=0.5,domain=-3:3,smooth,variable=\y,red] plot ({\y*\y},{\y});
|
|
||||||
\end{tikzpicture}
|
|
||||||
\end{center}
|
|
||||||
|
|
||||||
\nocite{EINAV2010,Havrylchyk2018}
|
\nocite{EINAV2010,Havrylchyk2018}
|
||||||
|
|
||||||
\bibliographystyle{aer}
|
\bibliographystyle{aer}
|
||||||
|
|||||||
BIN
figure/cover.jpg
BIN
figure/cover.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 790 KiB After Width: | Height: | Size: 476 KiB |
Reference in New Issue
Block a user