fix confilct

This commit is contained in:
EthanDeng
2021-01-02 12:27:55 +08:00
8 changed files with 71 additions and 35 deletions

View File

@@ -103,17 +103,16 @@ Overleaf 上,中文需要使用 \hologo{XeLaTeX} 进行编译,英文建议
\subsection{本地免安装使用} \subsection{本地免安装使用}
<<<<<<< HEAD
\textbf{免安装}使用方法如下,从 GitHub 或者 CTAN 下载最新版,严格意义上只需要类文件 \lstinline{elegantbook.cls}。然后将模板文件放在你的工作目录下即可使用。这样使用的好处是,无需安装,简便;缺点是,当模板更新之后,你需要手动替换 \lstinline{cls} 文件。 \textbf{免安装}使用方法如下,从 GitHub 或者 CTAN 下载最新版,严格意义上只需要类文件 \lstinline{elegantbook.cls}。然后将模板文件放在你的工作目录下即可使用。这样使用的好处是,无需安装,简便;缺点是,当模板更新之后,你需要手动替换 \lstinline{cls} 文件。
=======
\textbf{免安装}使用方法如下,从 GitHub 或者 CTAN 下载最新(正式)版文件,严格意义上只需要类文件 \lstinline{elegantbook.cls}。然后将模板文件放在你的工作目录下即可使用。这样使用的好处是,无需安装,简便;缺点是,当模板更新之后,你需要手动替换 \lstinline{cls} 文件。
>>>>>>> 30a916c26cfb8bcd8ea019376c8bfc4080f205bf
\subsection{发行版安装使用} \subsection{发行版安装使用}
如果你 \TeX{} Live 2019 用户,我们推荐你直接进行安装和更新。你可以通过 \TeX{} Live 2019 自带的 \lstinline{tlshell}\footnote{也叫 \TeX{} Live Manager} 进行安装。安装非常简单,步骤如下,搜索并打开 \lstinline{tlshell}然后通过 \lstinline{File -> Load Default Repository} 加载远程仓库,如果你不想使用默认的仓库,你可以通过 \lstinline{Options} 下的菜单设置远程仓库。设置好仓库之后,等待仓库加载完毕,你可以在下面的搜索栏搜索 \lstinline{elegantbook},然后选择进行安装与更新。 如果你刚安装 \TeX{} Live 2020 用户,由于 texlive 已经自带,请务必直接升级全部宏包,使用 cmd 运行 \lstinline{tlmgr update --all},如果 tlmgr 需要更新,请使用 cmd 运行 \lstinline{tlmgr update --self}如果更新过程中出现了中断,请改用 \lstinline{tlmgr update --self --all --reinstall-forcibly-removed} 更新。
\begin{figure}[htbp]
\centering
\includegraphics[width=0.7\textwidth]{tlshell.png}
\caption{使用 \TeX{} Live Shell 安装 ElegantBook 模板}
\end{figure}
\subsection{更新问题} \subsection{更新问题}
@@ -408,6 +407,34 @@ The content of theorem.
\label{tab:theorem-class}% \label{tab:theorem-class}%
\end{table}% \end{table}%
\subsection{算法环境}
\begin{algorithm}\label{alg:test}
\Input{A bitmap $I$ of size $w \times l$}
\Output{A partition of the bitmap}
\BlankLine
\emph{special treatment of the first line}\;
\For{$i \leftarrow 2$ \KwTo $l$}{
\emph{special treatment of the first element of line $i$}\;
\For{$j \leftarrow 2$ \KwTo $w$}{\label{forins}
$\Left \leftarrow \FindCompress{$I[i,j-1]$}$\;
$\Up \leftarrow \FindCompress{$I[i-1,]$}$\;
$\This \leftarrow \FindCompress{$I[i,j]$}$\;
\If(\tcp*[h]{O(\Left,\This)==1}){\Left compatible with \This}{\label{lt}
\lIf{$\Left < \This$}{$\Union{\Left,\This}$}
\lElse{$\Union{\This,\Left}$}
}
\If(\tcp*[f]{O(\Up,\This)==1}){\Up compatible with \This}{\label{ut}
\lIf{$\Up < \This$}{$\Union{\Up,\This}$}
\tcp{\This is put under \Up to keep tree as flat as possible}\label{cmt}
\lElse{$\Union{\This,\Up}$}\tcp*[r]{\This{} linked to \Up}\label{lelse}
}
}
\lForEach{element $e$ of the line $i$}{\FindCompress{p}}
}
\caption{disjoint decomposition}\label{algo_disjdecomp}
\end{algorithm}
\subsection{其他环境的使用} \subsection{其他环境的使用}
@@ -782,7 +809,7 @@ Lebesgue 积分有几种不同的定义方式。我们将采用逐步定义非
\begin{figure}[htbp] \begin{figure}[htbp]
\centering \centering
\includegraphics[width=0.6\textwidth]{scatter.pdf} \includegraphics[width=0.6\textwidth]{scatter.jpg}
\caption{散点图示例 $\hat{y}=a+bx$ \label{fig:scatter}} \caption{散点图示例 $\hat{y}=a+bx$ \label{fig:scatter}}
\end{figure} \end{figure}

View File

@@ -24,6 +24,7 @@
\glsxtrnewsymbol[description={time}]{t}{\ensuremath{t}} \glsxtrnewsymbol[description={time}]{t}{\ensuremath{t}}
\glsxtrnewsymbol[description={force it name position Subtraction Operator}]{F}{\ensuremath{F}} \glsxtrnewsymbol[description={force it name position Subtraction Operator}]{F}{\ensuremath{F}}
%\captionsetup{labelsep=space}
\begin{document} \begin{document}
@@ -53,6 +54,7 @@ Contact Infos:
\end{itemize} \end{itemize}
\section{ElegantBook Updates} \section{ElegantBook Updates}
Version 3.11 is the last version of 3.x, it's base upon 3.10, mainly to resolve \TeX{} Live 2020 compilation errors caused by \lstinline{gbt7714} compatibility issues. What\rq s new in this version: Version 3.11 is the last version of 3.x, it's base upon 3.10, mainly to resolve \TeX{} Live 2020 compilation errors caused by \lstinline{gbt7714} compatibility issues. What\rq s new in this version:

View File

@@ -581,6 +581,40 @@
\newcommand{\historyname}{Version der Geschichte} \newcommand{\historyname}{Version der Geschichte}
}{\relax} }{\relax}
\ifdefstring{\ELEGANT@lang}{es}{
\RequirePackage[spanish]{babel}
\setlength\parindent{2em}
\newcommand\figref[1]{\textbf{Figura}~\ref{#1}}
\newcommand\tabref[1]{\textbf{Tabla}~\ref{#1}}
\renewcommand{\spanishchaptername}{Capítulo \thechapter}
\newcommand{\authorname}{\textbf{Autor: }}
\newcommand{\institutename}{\textbf{Instituto: }}
\newcommand{\datename}{\textbf{Fecha: }}
\newcommand{\versionname}{\textbf{Versión: }}
\bibliographystyle{\ELEGANT@bibstyle}
\newcommand{\notename}{Nota}
\newcommand{\proofname}{Demostración}
\newcommand{\problemname}{Problema}
\newcommand{\definitionname}{Definición}
\newcommand{\theoremname}{Teorema}
\newcommand{\axiomname}{Axioma}
\newcommand{\postulatename}{Postulado}
\newcommand{\lemmaname}{Lema}
\newcommand{\propositionname}{Proposición}
\newcommand{\corollaryname}{Corolario}
\newcommand{\examplename}{Ejemplo}
\newcommand{\exercisename}{Ejercicio}
\newcommand{\remarkname}{Comentario}
\newcommand{\assumptionname}{Asunto}
\newcommand{\conclusionname}{Conclusión}
\newcommand{\solutionname}{Solución}
\newcommand{\propertyname}{Propiedad}
\newcommand{\introductionname}{Introducción}
\newcommand{\problemsetname}{Ejercicio}
\newcommand\bioinfo[2]{\gdef\@bioinfo{\textbf{#1}: #2}}
\newcommand{\updatename}{Actualización:}
\newcommand{\historyname}{Historial de versiones}
}{\relax}
\graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}} \graphicspath{{./figure/}{./figures/}{./image/}{./images/}{./graphics/}{./graphic/}{./pictures/}{./picture/}}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

BIN
image/scatter.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

View File

@@ -1,27 +0,0 @@
# This file is the source file of the scatter.pdf
# source page: https://matplotlib.org/gallery/shapes_and_collections/scatter.html
import numpy as np
import matplotlib.pyplot as plt
# Fixing random state for reproducibility
np.random.seed(19680801)
N = 50
x = np.random.rand(N)
y = np.random.rand(N)
colors = np.random.rand(N)
area = (30 * np.random.rand(N))**2 # 0 to 15 point radii
ax = plt.subplot(111)
ax.scatter(x, y, s=area, c=colors, alpha=0.5)
# Hide the right and top spines
ax.spines['right'].set_visible(False)
ax.spines['top'].set_visible(False)
# Only show ticks on the left and bottom spines
ax.yaxis.set_ticks_position('left')
ax.xaxis.set_ticks_position('bottom')
plt.savefig('scatter.pdf', transparent=True)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB