使用 dtx 和 ins 文件对模板进行重构,减少重复代码的维护。
备注:尽量与 ElegantBook 4.1 同步发布,最终采用单文件 dtx。
xelatex elegantlatex.dtx
source code of ElegantLaTeX templates(reconstruction)
Elegant LaTeX Template for Working Papers
License: LaTeX Project Public License v1.3c
使用 dtx 和 ins 文件对模板进行重构,减少重复代码的维护。
备注:尽量与 ElegantBook 4.1 同步发布,最终采用单文件 dtx。
xelatex elegantlatex.dtx
source code of ElegantLaTeX templates(reconstruction)
正如展示的最终图,图1出现在了第三页(本应紧接着1.4节)
有什么比较便捷的方式让这张图自适应大小并紧接着原来的位置展示?
首先感谢作者!模板很好,准本用来当作我的翻译工作。一开始用的比较好,但是编辑了一段时间之后发现后面的输入内容无法加载。我把您的内容稍微改动了一下。加入了几个命令。例如:
\tableofcontents
\thispagestyle{empty}
\newpage
\cleardoublepage
\setcounter{page}{1}
\clearpage
\input{abstract}
这些,由于section太多。习惯了用这种方式书写。
但是写道第四个section的时候发现后面的都无法显示,目录原本有的内容也变成了一片空白。
这是有什么bug吗?
感谢!
由于elegantpaper去除了elegantnote类中的green等颜色选项, 使得proof环境出错, 因为其引用了ecolor。 再有proofname没有与语言选项关联。
已检查表格的\label和\ref一致,但编译后一直是“?”
我在编译0.09版本elegantpaper-cn时遇到了以下错误和警告:
Undefined control sequence. \setlength\parindent{2\ccwd}}}{\relax}
Extra \else. \setlength\parindent{2\ccwd}}}{\relax}
Extra \fi. \setlength\parindent{2\ccwd}}}{\relax}
Citation `en3' on page 3 undefined
No file elegantpaper-cn.bbl.
There were undefined citations.
并没有对elegantpaper-cn作任何修改,请问是哪里出bug了吗?
BibTeX Illegal, another \bibstyle command : \bibstyle : {gbt7714-author-year}
output.aux, line 19
目前模板中的引用是“作者-年份”模式,如何修改回数字引用(如[1])这种呢~感谢
怎么把lang 默认为cn, 而不是en? 非常感谢!
overleaf 上的论文模版没有reference.bib.
如题,在之前的问题中可以添加英文摘要,但是如何在英文摘要之前再添加英文标题,作者英文信息呢?
感谢!
一般来说,点击 目录上的章节标题,就会马上跳转到章节相应页面,但最新版3.10生成的pdf文件,点击目录后无反应。
请问有解决办法吗? 谢谢啦~
Especially for non-ascii inputs, this is basically the only safe way to go.
Many thanks for your elegant template :)
However, there are three warnings in the overleaf as soon as I opened the template. Could you help to solve the warning of the template?
Version: Chinese
Compiler Version: XeLatex 2019
Font "FandolSong-Regular" does not contain requested Script "CJK".
Font "FandolKai-Regular" does not contain requested Script "CJK".
Font "FandolHei-Regular" does not contain requested Script "CJK".
如题
问一下不想用原格式aer应该如何更改
\documentclass[twocolumn]{elegantpaper}
虽然article类也有双栏模式,elegantpaper也可以将twocolumn属性正确的传递给article类,但是如果能针对elegantpaper的样式做一些针对性的优化会更加方便。
mac使用最新版mactex,warning中缺少方正字体,自行安装后也无法使用。
且mactex自带的0.8elegantpaper会报如下错误:
LaTeX Error: Option clash for package natbib. [\RequirePackage]
\documentclass[lang=cn]{elegantpaper}
\title{标题字体}
\author{}
\date{\today}
\begin{document}
\maketitle
\begin{abstract}
逗号,逗号
\keywords{逗号,逗号}
\end{abstract}
\section{字体}
逗号,逗号
\end{document}
Font "FandolSong-Regular" does not contain requested
(fontspec) Script "CJK".
Font "FandolKai-Regular" does not contain requested
(fontspec) Script "CJK".
没看到设置单双栏的命令,是只能用单栏吗
中文参考文献的”等“显示出错,变成”çŋĽ“。
在编译过程中没有报错。
但是在编译后仅此出现这一个错误。
.tex文件如下
\documentclass[lang=cn, a4paper, 12pt]{elegantpaper}
\title{test file}
\author{Direct-A}
\date{\today}
\version{0.1}
\begin{document}
\maketitle
test\cite{RN1}
\bibliography{ref}
\end{document}
.bib文件如下
@article{RN1,
author = {王亦秋 and 顾民 and 龚永光 and 冯明明},
title = {睾丸去精索神经支配对大鼠性激素的影响},
journal = {南京医科大学学报(自然科学版)},
volume = {29},
number = {03},
pages = {291-295},
ISSN = {1007-4368},
year = {2009},
type = {Journal Article}
}
TeX环境使用的是MikeTex 2.9
编辑器为 Visual Studio Code 1.41.1
,使用 LaTeX Workshop 8.7.1
插件。
编译过程为:XeLaTeX => BibTeX => XeLaTeX => XeLaTeX
删除\version还是有version
ElegantPaper-cn编译出错,ElegantPaper-en没有问题,我用的是texlive2019编译,错误如下:
! Undefined control sequence.
<argument> \ifXeTeX
\ifdefstring {\ELEGANT@chinesefont }{founder}{ \Require...
l.132 \setlength\parindent{2\ccwd}}}{\relax}
因为论文需要,故必须将cls文件做修改
! Undefined control sequence.
\ifXeTeX
\ifdefstring {\ELEGANT@chinesefont }{founder}{ \Require...
l.132 \setlength\parindent{2\ccwd}}}{\relax}
?
使用elegantpaper作为模版,定义好documentclass之后使用 “\bibstyle{unsrt}”指定了 参考文献格式,但是编译后发现文中出现的是[1]格式的引用,但是最后参考文献的排列还是按照作者字母顺序,而不是按照unsrt样式定义的按引用顺序排列,且查看编译的.aux文件发现“\bibstyle{aer}”。
请问怎么样才能覆盖掉模版默认的参考文献样式?
Reference:
https://zhuanlan.zhihu.com/p/90404943
You can temporarily fix this problem by typing this command in your shell:
ln -s /System/Library/Fonts/Supplemental/Songti.ttc /Library/Fonts
Do not use cp
command, the soft link is enough
我编译后一个参考文献格式如下
[1] BORDES A, USUNIER N, GARCIA-DURAN A, et al. Translating embeddings for modeling multi-relational data[C]//Advances in neural information processing systems. [S.l.: s.n.], 2013: 2787-2795.
作者的名字变成了全部大写的形式,请问怎样让参考文献里的作者名字只有首字母大写呢
没有太多的提示。但是一点都没有改,从master分支直接下载的文件,elegantpaper-cn.tex编译之后就是不出reference。不知道为什么。
/usr/local/texlive/2020/texmf-dist/tex/latex/gbt7714/gbt7714.sty:63: LaTeX Error: Option clash for package natbib.
听说是gbt7714版本更新了导致现在不匹配?请问怎么解决?
感谢大佬精心制作的模板。汇报一个paper模板的小bug.
1.页码不居中。之前note模板的同样问题大佬已改正了。不知道book模板是否会有同样bug.
2.paper模板的参考文献能否去掉style设置,因为各类期刊没有统一要求。再改cls文件有点麻烦。可以让用户在文档中自己设置style也好。
感谢大佬的工作
你好,这个模板非常有帮助,不过我需要在论文里同时添加中英文摘要,请问应该怎么设置?谢谢!
直接运行模板就显示CLS文件出错,显示Missing \begin{document}. <以及一系列错误,请各位指点一二。
log.txt
ElegantPaper/elegantpaper-cn.tex
Lines 101 to 102 in 99bb48f
\lstinline{\figref}:用法和 \lstinline{\ref} 类似,但是会在引用前添加“图”;
noanswer 选项隐去 solution 环境时,需要 solution 环境前不能有空格。
正确:
\begin{solution}
test
\end{solution}
错误
\begin{solution}
test
\end{solution}
\nocite{*}
\bibstyle{unsrt}
\bibliography{wpref}
如上使用的命令,但并未打印出参考文献。请问如何解决?
在lang=cn 时,figref仍然显示“Figure”,具体实例可以看version 0.5版中文示例文件
从EMACS ORG输出PDF时, SRC_EXAMPLE 上方显示一行 activate=false, 怎么搞掉? SRC_VERSE /Verbatim 同样,SRC_QUOTE等没有。 不用ElegantPaper template时, 没问题.
如题
文件 :elegantpaper-cn.tex
情况复现:
\begin{equation}
\hat{a}
\end{equation}
提示:
Package hyperref Warning: Rerun to get /PageLabels entry.
*geometry* driver: auto-detecting
*geometry* detected driver: xetex
Package microtype Warning: One or more slots in the configuration are unknown.
(microtype) Make sure that no text commands are used.
(microtype) See the documentation for details (the note
(microtype) on `xeCJK' in section 9: `Hints and caveats').
(/usr/local/texlive/2018/texmf-dist/tex/latex/newtx/untxmia.fd)
(/usr/local/texlive/2018/texmf-dist/tex/latex/newtx/untxsym.fd)
(/usr/local/texlive/2018/texmf-dist/tex/latex/newtx/untxsyc.fd)
! Internal error: bad native font flag in `map_char_to_glyph'
希望东哥有时间能看看哦
如题
如图(可能是懒癌晚期把
猜是在那个cls文件里面,无奈我latex太菜了
如何解决相邻参考文献为相同作者默认用横线代替? 本地文件中没有.bst 文件,因模板的.bst包含在economic宏包,故网上查阅的方法不可行
Has anyone tried to generate index in this template? I tried but it did not work. My code is shown below.
\documentclass[lang=cn]{elegantpaper}
\usepackage{makeidx}
\makeindex
% title information
\title{A Working Paper Example}
\author{ddswhu}
\institute{Elegant\LaTeX{} Group}
\version{1.00}
\date{\today}
\begin{document}
\maketitle
\section{勾股定理}
% 第 1 页
勾股定理在西方称为毕达哥拉斯定理(Pythagoras' theorem)。
\index{Pythagoras}
% ...
% 第 2 页
在**常称勾股定理为商高定理。\index{商高}
\printindex
\end{document}
Index can be generated when using \documentclass{ctexart} with the same code.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.