这个模板采用palatino字体,当然公式也采用palatino风格的公式!!文档类型的样式为book型,因此可以采用chapter大标题,以取代section,同时在导言区(即begin{document}之前的代码区)提供了该有的宏包,并且修复了一些问题,比如更改了chapter可以在任意页码开头,具体代码如下:
documentclass[10pt,b5paper,openany]{book}
usepackage{amsmath}
usepackage{amssymb}
usepackage{mathpple}
usepackage{upgreek}
usepackage{mathpazo}
usepackage{lipsum}
usepackage{cite}
usepackage[colorlinks,linkcolor=black]{hyperref}
usepackage{graphicx}
usepackage{wrapfig}
usepackage{savesym}
usepackage{amsfonts}
usepackage[margin=1.5in]{geometry}
usepackage{fancybox}
usepackage{fontspec}
usepackage{fancyhdr}
usepackage{epigraph}
usepackage{caption}
usepackage[all]{xy}
usepackage{tikz}
usepackage{amsmath,amscd}
usepackage{geometry}
geometry{right=2.5cm,left=2.5cm,top=2.5cm,bottom=2.5cm}
pagestyle{fancy} lhead{左页眉}chead{中间页眉}rhead{右页眉}
usepackage{amsmath,amscd}
usepackage{bm}
usepackage{titlesec}%chapter1修改为第1章
renewcommand{chaptername}{第{thechapter}章}
titleformat{chapter}[block]{Hugebfseries}{chaptername}{10pt}{}
usepackage[UTF8]{ctex}
makeatletter % `@' now normal "letter"
@addtoreset{equation}{section}
makeatother % `@' is restored as "non-letter"
renewcommandtheequation{oldstylenums{thesection}%
.oldstylenums{arabic{equation}}}
关于使用palatino风格的那部分代码引自网站:How to use palatino font for latex and how about maths?
当然,如果是全英文笔记的话,只需要去掉usepackage[UTF8]{ctex}就可以,粘贴完这些代码,就可以随心所欲的打出您的笔记了!
以下是效果图
现在还有几个小问题想在这里问一下:
1.我想在字体上还使用latex原始的字体,但是只是公式换成palatino风格的,该如何使用? 2.在chapter命令下如何添加一个空白页?我试了newpage,但是无动于衷.