Skip to content

Commit

Permalink
version 3.08 release
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanDeng committed May 28, 2019
1 parent 807841a commit 6f642ae
Show file tree
Hide file tree
Showing 6 changed files with 623 additions and 110 deletions.
360 changes: 326 additions & 34 deletions elegantbook-cn.tex

Large diffs are not rendered by default.

351 changes: 288 additions & 63 deletions elegantbook-en.tex

Large diffs are not rendered by default.

22 changes: 9 additions & 13 deletions elegantbook.cls
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@
\AtBeginDocument{
\setlength{\abovedisplayskip}{3pt}
\setlength{\belowdisplayskip}{3pt}
\setcounter{tocdepth}{1}
}
%% 常用宏包
\linespread{1.3}
Expand All @@ -249,8 +250,7 @@
\RequirePackage{multicol}
\RequirePackage{xcolor}
\RequirePackage{fancyvrb}
\RequirePackage{makecell,lipsum,hologo}
\usepackage{setspace}
\RequirePackage{makecell,lipsum,hologo,setspace}

%%中文结构名字
\ifdefstring{\ELEGANT@lang}{cn}{
Expand Down Expand Up @@ -701,10 +701,10 @@
\color{gray}\normalsize
{\renewcommand{\arraystretch}{0.618}
\begin{tabular}{l}
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Author: }}{\kaishu 作者:} \@author \\
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Institute: }}{\kaishu 组织:} \the\institute\\
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Date: }}{\kaishu 时间:} \@date\\
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Version: }}{\kaishu 版本:} \the\version\\
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Author:}}{\kaishu 作者:} \@author \\
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Institute:}}{\kaishu 组织:} \the\institute\\
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Date:}}{\kaishu 时间:} \@date\\
\ifdefstring{\ELEGANT@lang}{en}{\textbf{Version:}}{\kaishu 版本:} \the\version\\
\end{tabular}}
\end{minipage}
\begin{minipage}[c]{0.27\linewidth}
Expand Down Expand Up @@ -736,7 +736,7 @@
\lst@ifdisplaystyle\small\fi
}

\lstset{basicstyle=\ttfamily,style=mystyle}
\lstset{basicstyle=\ttfamily,style=mystyle,breaklines=true}

\definecolor{lightgrey}{rgb}{0.9,0.9,0.9}
\definecolor{frenchplum}{RGB}{190,20,83}
Expand All @@ -746,9 +746,9 @@
breaklines=true,
keywordstyle=\color{winered},
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,tcolorbox,titlestyle},
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,tcolorbox,titlestyle,cite,marginnote,ctex,listings},
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,extrainfo,logo,cover,subtitle,appendix,chapter,hypersetup,mainmatter,tableofcontents},
morekeywords={DeclareSymbolFont,SetSymbolFont,toprule,midrule,bottomrule,institute,version,includegraphics,setmainfont,setsansfont,setmonofont ,setCJKmainfont,setCJKsansfont,setCJKmonofont,RequirePackage,figref,tabref,email,maketitle,keywords,definecolor,extrainfo,logo,cover,subtitle,appendix,chapter,hypersetup,mainmatter,tableofcontents,elegantpar,numbers,authoryear,heiti,kaishu,lstset,pagecolor,zhnumber,marginpar,part,equote},
frame=single,
tabsize=2,
rulecolor=\color{structurecolor},
Expand All @@ -757,10 +757,6 @@
% backgroundcolor=\color{lightgrey}
}

\definecolor{tcolor}{RGB}{255,127, 0} % default: 0,124,53
\definecolor{lcolor}{RGB}{255,178,102} % default: 153,255,153
\definecolor{pcolor}{RGB}{251,204,231} % default: 216,255,216

\RequirePackage{bm}
\newif\ifstartedinmathmode
\newcommand{\elegantpar}[2]{%
Expand Down
Binary file added image/donate.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/star.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added image/tlshell.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6f642ae

Please sign in to comment.