matnoble / latex-document Goto Github PK
View Code? Open in Web Editor NEWLaTeX Templates for Document
Home Page: https://github.com/MatNoble/LaTeX-Document
License: LaTeX Project Public License v1.3c
LaTeX Templates for Document
Home Page: https://github.com/MatNoble/LaTeX-Document
License: LaTeX Project Public License v1.3c
已经安装python3.8 还有pygments包。利用texstudio运行xelatex编译。出现如下错误
`
Package minted Error: You must invoke LaTeX with the -shell-escape flag. \usemintedstyle
Package minted Error: You must have `pygmentize' installed to use this package. \begin{document}
Package minted Error: Missing Pygments output; \inputminted wasor may be using frozencache with a missing file. \end{minted}^^M
Package minted Error: Missing Pygments output; \inputminted wasor may be using frozencache with a missing file. \end{minted}^^M
Package minted Error: Missing Pygments output; \inputminted wasor may be using frozencache with a missing file. \end{minted}
Package minted Error: Missing Pygments output; \inputminted wasor may be using frozencache with a missing file. \end{minted}
Package minted Error: Missing Pygments output; \inputminted wasor may be using frozencache with a missing file. \end{minted}
Package minted Error: Missing Pygments output; \inputminted wasor may be using frozencache with a missing file. \end{minted}
Package minted Error: Missing Pygments output; \inputminted wasor may be using frozencache with a missing file. \end{minted}
inputenc package ignored with utf8 based engines.
shell escape is disabled, so I can only detect \ifwindows.
Label `table' multiply defined.
\headheight is too small (12.0pt): Make it at least 15.69998pt.
No autoref name for listing' There were multiply-defined labels.
因为我是LaTeX的新手,所以使用这个模板遇到了一些问题,经过搜索之后自行解决了。在这里记录一下,希望可以起到提示后人的作用。
使用这个模板安装了python,之后再用pip install pygmentize 安装了pygmentize来使用list和代码高亮。
我的编译器是Texlive,文本编辑软件是WinEdt,在WinEdt里选择XeLaTeX进行编译,并且在Options-Execution Models-Console Applications-XeLateX的Switches里添加了 --shell-escape。
安装字体的话,也遇到了一些坑。我是win10专业版的系统。安装字体是进入到文件夹后,选中此文件夹里所有后缀为otf的文件后,右键-用管理员的身份为所有的用户安装。之前我试过双击单个otf的文件进行安装,但是好像找不到字体,所有又重装了一下。
装完字体之后,要改一下matnoble-doc-cn.sty这个文件里的楷体和宋体的字体名。因为我只用了中文的模板,就没看英文的模板。打开matnoble-doc-cn.sty这个文件后,把原来的Adobe Kaiti改成AdobeKaitiStd-Regular,就是改成安装的原字体文件的名字,不是安装之后字体在系统里显示的名字。相应地,把宋体地字体也改成AdobeSongStd-Light。注意,楷体有两个地方,宋体只有一个地方要改。
还有就是我编译的时候,遇到了\and这个命令编译不过的情况,我用的解决方法是把\and删掉,在原\and的位置新换一行,再加上 两个反斜杠(\\)。
最后谢谢原主提供的模板,真的很好看~
\[ \left[ {\begin{array}{c:c} \begin{matrix} 1 & 12 & 3 & 8 \\ 14 & 5 & 16 &21\\ 7 & 18 & 9 &7 \\ 23 & 0 & -1 &8\\ \end{matrix}& \begin{matrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \\ 13 & 26 \\ \end{matrix} \end{array}} \right] \]
这个代码会编译错误,不产生虚线
@dariusorz 可以在导言区加入 arydshln
宏包, \usepackage{arydshln}
. 然后在 tex 里这样写
\[
\left[ \begin{array}{c;{2pt/2pt}c}
\begin{matrix}
1 & 12 & 3 & 8 \\
14 & 5 & 16 &21\\
7 & 18 & 9 &7 \\
23 & 0 & -1 &8\\
\end{matrix}&
\begin{matrix}
1 & 4 \\
2 & 5 \\
3 & 6 \\
13 & 26 \\
\end{matrix}
\end{array} \right]
\]
参考:
https://tex.stackexchange.com/questions/183258/how-to-add-dash-lines-in-matrix
Originally posted by @MatNoble in #1 (comment)
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.