mirror of
https://github.com/ElegantLaTeX/ElegantPaper.git
synced 2026-01-26 12:24:37 +08:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
06c958ed9b | ||
|
|
d8e407917e | ||
|
|
3f2c2b8bea | ||
|
|
162aad7ece | ||
|
|
39cbb4e9fc | ||
|
|
631a317450 | ||
|
|
101c422b0c | ||
|
|
c1625852b7 |
@@ -10,7 +10,9 @@
|
||||

|
||||

|
||||
|
||||
**Caution: This template will no longer be maintained since January 1st, 2023.**
|
||||
|
||||
**注意:本模板自 2023 年 1 月 1 日开始,不再维护,不建议使用本系列模板!**
|
||||
|
||||
ElegantPaper is designed for writing a working paper, especially for economics students. This template is based on the standard LaTeX article class. The goal of this template is to make the writing process easier and more comfortable. You can get rid of all the worries about the format. Just enjoy it! If you have any questions, suggestions or bug reports, you can create issues or email us at elegantlatex2e@gmail.com.
|
||||
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
%!TEX program = xelatex
|
||||
% 完整编译: xelatex -> biber/bibtex -> xelatex -> xelatex
|
||||
\documentclass[lang=cn,11pt,a4paper]{elegantpaper}
|
||||
\documentclass[lang=cn,a4paper,newtx]{elegantpaper}
|
||||
|
||||
\title{ElegantPaper: 一个优美的 \LaTeX{} 工作论文模板}
|
||||
\author{Ethan DENG \\ Fudan University \and Dongsheng DENG \\ PA Technology}
|
||||
\author{作者1 \\ 某某大学/机构 \and 作者2 \\ 某某大学/机构}
|
||||
\institute{\href{https://elegantlatex.org/}{Elegant\LaTeX{} 项目组}}
|
||||
|
||||
\version{0.10}
|
||||
\date{\zhtoday}
|
||||
|
||||
\version{0.11}
|
||||
\date{\zhdate{2022/12/31}}
|
||||
|
||||
% 本文档命令
|
||||
\usepackage{array}
|
||||
\newcommand{\ccr}[1]{\makecell{{\color{#1}\rule{1cm}{1cm}}}}
|
||||
\addbibresource[location=local]{reference.bib} % 参考文献,不要删除
|
||||
|
||||
\begin{document}
|
||||
|
||||
@@ -23,16 +23,14 @@
|
||||
\keywords{Elegant\LaTeX{},工作论文,模板}
|
||||
\end{abstract}
|
||||
|
||||
|
||||
\section{模板使用须知}
|
||||
|
||||
\textcolor{red}{\bfseries 本模板自 2023 年 1 月 1 日开始,不再维护,不建议使用本系列模板!为了保证之前版本的用户仍然能查到说明文档,本说明文档仍然保留过去的信息。}
|
||||
|
||||
\subsection{注意事项}
|
||||
\textbf{文献部分}:我们将 bibtex 的默认文献编译方式改为 biblatex,不过我们也提供了两个后端,\lstinline{bibend=biber} 和 \lstinline{bibend=bibtex}。特别需要注意的是从 0.10 开始,文献文件改为 \lstinline{reference.bib},与 ElegantBook 保持一致,而参考文献的引文样式等更多格式,请参考后文参考文献部分,更多样式可以参考 biblatex 文档。
|
||||
|
||||
时隔两年,本模板迎来更新,中间发生了很多变化,两个主要变化是参考文献与字体设定,\textbf{使用前请务必仔细阅读本文档}。
|
||||
|
||||
\textbf{文献部分}:我们将 bibtex 的默认文献编译方式改为 biblatex,不过我们也提供了两个后端,\lstinline{bibend=biber} 和 \lstinline{bibend=bibtex}。特别需要注意的是,从 0.10 开始,文献文件改为 \lstinline{reference.bib},与 ElegantBook 保持一致,而参考文献的引文样式等更多格式,请参考后文参考文献部分,更多样式可以参考 biblatex 文档。
|
||||
|
||||
\textbf{字体部分},我们将 newtxtext 宏包的支持方式改为了字体名称设定方式,设定英文字体为 TeX Gyre Terms/Heros,,英文字体部分,根据编译方式选择不同字体。对于一般用户而言,不太需要关心这部分内容。
|
||||
\textbf{字体部分},我们将 newtxtext 宏包的支持方式改为了字体名称设定方式,设定英文字体为 TeX Gyre Terms/Heros,英文字体部分,根据编译方式选择不同字体。对于一般用户而言,不太需要关心这部分内容。
|
||||
|
||||
另外,中文请务必使用 \hologo{XeLaTeX} 编译。
|
||||
|
||||
@@ -51,7 +49,7 @@
|
||||
此模板定义了一个语言选项 \lstinline{lang},可以选择英文模式 \lstinline{lang=en}(默认)或者中文模式 \lstinline{lang=cn}。当选择中文模式时,图表的标题引导词以及参考文献,定理引导词等信息会变成中文。你可以通过下面两种方式来选择语言模式:
|
||||
\begin{lstlisting}
|
||||
\documentclass[lang=cn]{elegantpaper} % or
|
||||
\documentclass{cn}{elegantpaper}
|
||||
\documentclass[cn]{elegantpaper}
|
||||
\end{lstlisting}
|
||||
|
||||
\textbf{注意:} 英文模式下,由于没有添加中文宏包,无法输入中文。如果需要输入中文,可以通过在导言区引入中文宏包 \lstinline{ctex} 或者加入 \lstinline{xeCJK} 宏包后自行设置字体。
|
||||
@@ -104,9 +102,9 @@
|
||||
|
||||
|
||||
\subsection{自定义命令}
|
||||
此模板并没有修改任何默认的 \LaTeX{} 命令或者环境\footnote{目的是保证代码的可复用性,请用户关注内容,不要太在意格式,这才是本工作论文模板的意义。}。另外,我自定义了 4 个命令:
|
||||
此模板并没有修改任何默认的 \LaTeX{} 命令或者环境\footnote{目的是保证代码的可复用性,请用户关注内容,不要太在意格式,这才是本工作论文模板的意义。}。另外,本模板可以使用的 4 个额外命令:
|
||||
\begin{enumerate}
|
||||
\item \lstinline{\email}:创建邮箱地址的链接,比如 \email{ddswhu@outlook.com};
|
||||
\item \lstinline{\email}:创建邮箱地址的链接,比如 \email{xxx@outlook.com};
|
||||
\item \lstinline{\figref}:用法和 \lstinline{\ref} 类似,但是会在插图的标题前添加 <\textbf{图 n}> ;
|
||||
\item \lstinline{\tabref}:用法和 \lstinline{\ref} 类似,但是会在表格的标题前添加 <\textbf{表 n}>;
|
||||
\item \lstinline{\keywords}:为摘要环境添加关键词。
|
||||
|
||||
@@ -3,16 +3,17 @@
|
||||
\documentclass[11pt,en]{elegantpaper}
|
||||
|
||||
\title{ElegantPaper: An Elegant \LaTeX{} Template for Working Papers}
|
||||
\author{Ethan DENG \\ Fudan University \and Dongsheng DENG \\ PA Technology}
|
||||
\author{Author1 \\ Institute1 \and Author2 \\ Institute2}
|
||||
\institute{\href{https://github.com/ElegantLaTeX}{Elegant\LaTeX{} Program}}
|
||||
|
||||
\version{0.10}
|
||||
\date{\today}
|
||||
\version{0.11}
|
||||
\date{Dec. 31, 2022}
|
||||
|
||||
% cmd for this doc
|
||||
\usepackage{array}
|
||||
\newcommand{\ccr}[1]{\makecell{{\color{#1}\rule{1cm}{1cm}}}}
|
||||
|
||||
\addbibresource[location=local]{reference.bib} % reference file
|
||||
\begin{document}
|
||||
|
||||
\maketitle
|
||||
@@ -22,6 +23,7 @@ This documentation illustrates the usage of the \href{https://github.com/Elegant
|
||||
\keywords{Elegant\LaTeX{}, Working Paper, Template}
|
||||
\end{abstract}
|
||||
|
||||
\textcolor{red}{\bfseries Caution: This template will no longer be maintained since January 1st, 2023.}
|
||||
|
||||
\section*{Update Notes}
|
||||
|
||||
@@ -44,7 +46,7 @@ This template is based on the standard \LaTeX{} article class, hence the argumen
|
||||
Language mode option \lstinline{lang} allows two alternative inputs, \lstinline{lang=en} (default) for English or \lstinline{lang=cn} for Chinese. \lstinline{lang=cn} will make the caption of figure/table, abstract name, refname etc. Chinese. You can use this option as
|
||||
\begin{lstlisting}
|
||||
\documentclass[lang=cn]{elegantpaper} % or
|
||||
\documentclass{cn}{elegantpaper}
|
||||
\documentclass[cn]{elegantpaper}
|
||||
\end{lstlisting}
|
||||
\textbf{Note:} Under the English mode \lstinline{lang=en}, Chinese characters are not allowed. To type in Chinese, please load \lstinline{ctex} or \lstinline{xeCJK} package at the preamble as:
|
||||
\begin{lstlisting}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
% Lastest Version: https://github.com/ElegantLaTeX/ElegantPaper
|
||||
|
||||
% --- Class structure: identification part
|
||||
\ProvidesClass{elegantpaper}[2022/04/09 v0.10 ElegantLaTeX Paper class]
|
||||
\ProvidesClass{elegantpaper}[2022/12/31 v0.11 ElegantLaTeX Paper class]
|
||||
\NeedsTeXFormat{LaTeX2e}
|
||||
|
||||
%%%
|
||||
@@ -197,7 +197,6 @@
|
||||
backend=\ELEGANT@bibend,
|
||||
citestyle=\ELEGANT@citestyle,
|
||||
bibstyle=\ELEGANT@bibstyle]{biblatex}
|
||||
\defbibheading{elegantbook}[\ebibname]{#1}
|
||||
|
||||
\RequirePackage{appendix}
|
||||
|
||||
@@ -366,7 +365,7 @@
|
||||
backgroundcolor=\color{lightgrey}
|
||||
}
|
||||
|
||||
\addbibresource[location=local]{reference.bib}
|
||||
|
||||
|
||||
% restore the tt default family to lmodern tt family
|
||||
\renewcommand\ttdefault{lmtt}
|
||||
|
||||
BIN
image/donate.jpg
BIN
image/donate.jpg
Binary file not shown.
|
Before Width: | Height: | Size: 138 KiB |
BIN
image/star.png
BIN
image/star.png
Binary file not shown.
|
Before Width: | Height: | Size: 49 KiB |
Reference in New Issue
Block a user