├── LePtC_2.png ├── LePtC_2r.png ├── README.md ├── compile ├── XeTeX.sublime-build ├── dde.zip ├── readme.txt ├── synctex.bat └── xetex.bat ├── lenotef5.jpg ├── sample ├── figure │ ├── ali.jpg │ ├── cover.eps │ ├── moele.png │ ├── natural.png │ ├── passive.png │ ├── positive1.png │ └── positive2.png ├── lenote.out ├── lenote.pdf ├── lenote.synctex.gz └── lenote.tex └── tex └── latex └── lenote ├── cover.eps ├── lenote.cls ├── lenote.sty └── moele.png /LePtC_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/LePtC_2.png -------------------------------------------------------------------------------- /LePtC_2r.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/LePtC_2r.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | \\ent[LeNote]{狸笔记} 2 | ====== 3 | 4 | 狸笔记(LeNote)是 LePtC 为整理物理数学笔记开发的 LaTeX 模版,主要特点有双语词条、自动高亮、图文混排、表文混排、紧凑版面、简化数理命令、强迫症友好型格式约定等… 5 | 6 | LeNote is a LaTeX note template created by LePtC, for templating his physics and mathematics notes. 7 | 8 | (此为狸笔记模版开发主页,狸笔记 pdf 文件主页 [戳这](http://leptc.github.io/lenote/) ) 9 | 10 | (This is the homepage for LeNote template development, 11 | for LeNote pdf files homepage 12 | [click me](http://leptc.github.io/lenote/)) 13 | 14 | 狸笔记的主要特性有: 15 | LeNote provides the following features: 16 | 17 | - 双语词条 CJK alphabet combined entry 18 | 19 | ![lenotef1](http://leptc.github.io/lenote/lenotef1.jpg) 20 | 21 | - 自动高亮 Syntax highlighting 22 | 23 | ![lenotef3](http://leptc.github.io/lenote/lenotef3.jpg) 24 | 25 | - 图文混排,表文混排 Picture, table mix with text 26 | 27 | ![lenotef2](http://leptc.github.io/lenote/lenotef2.jpg) 28 | 29 | - 数理符号约定 Other symbol conventions in physics and math 30 | 31 | ![lenotef4](http://leptc.github.io/lenote/lenotef4.jpg) 32 | 33 | 详细指导见 sample 文件夹中的 LePtC.pdf 文件 34 | 35 | Other details: see the LePtC.pdf in the sample folder. 36 | (Currently in Chinese only) 37 | 38 | 39 | 40 | 41 | 42 | 43 | Sample 44 | ====== 45 | 46 | 打印效果 Print out style 47 | 48 | ![example](https://github.com/LePtC/lenote/blob/master/LePtC_2.png) 49 | 50 | 反色效果(电脑上用 SumatraPDF 查看) Reverse color style (using SumatraPDF on PC) 51 | 52 | ![example](https://github.com/LePtC/lenote/blob/master/LePtC_2r.png) 53 | 54 | 55 | 56 | 57 | 更新日志 58 | ====== 59 | 60 | ###2016.11.09 61 | 62 | 本次更新改动较大,主要是模版名由 `leptc` 改成了 `lenote`,安装过旧版 LeNote 的童鞋请修改文档的 `\documentclass` 63 | 64 | 因为重装系统,重新测试了一遍最新的 MikTeX 和 TeXLive,写了新版的说明书 65 | 66 | 67 | 68 | ###2016.02.16 69 | 70 | leptc.sty: 71 | 72 | - 增加 `\enlr` 命令,用于罗列多个定理或推论时的缩进排版 73 | - 加入 `bm` 包,斜粗体注册为矩阵,命令为 `\bm` 74 | - 更多矩阵运算符号 `\eig` `\cond` 75 | - 更多概率统计符号 `\Ep` `\Dv` `\Cov` 76 | - 增加张量分析用的单位基矢,克氏符号,黎曼曲率 77 | - 增加四元数用的虚数单位 78 | - 用 `\DeclareMathOperator` 代替蠢哭了的手打空格 79 | - `xcolor warning` 已修正(貌似…) 80 | 81 | leptc.cls: 82 | 83 | - 加入页脚 84 | - 加入公用图片路径 85 | 86 | (最近比较懒,说明书等下一波再更新…) 87 | 88 | 89 | ###2015.11.13 90 | 91 | 将字体 `\mathsf` 注册为特殊数学运算(排列 A 组合 C ,转置 T) 92 | 93 | 自动高亮增加新成员:单位矢量 94 | 95 | ![lenotef5](lenotef5.jpg) 96 | 97 | 98 | ###2015.10.16 99 | 100 | 这两个月做了一些符号微调,没有大改动 101 | 102 | ###2015.08.12 103 | 104 | 加入 `physymb` 包,修复其与其他包的冲突,Griffiths 的相对位矢符号用 `\rr` 105 | 106 | ###2015.07.27 107 | 108 | 加入封面环境 `\begin{lecover}` 109 | 110 | ###2015.07.21 111 | 112 | 颜色改进,加深橙色从而更易读 113 | 114 | ###2015.07.13 115 | 116 | 新分支:lenote-日语(日文字体使用 [源柔ゴシック](http://jikasei.me/font/genjyuu/)) 117 | 118 | ###2015.06.30 119 | 120 | 加入子章节 `\chaps{}` 121 | 122 | ###2015.06.15 123 | 124 | 加入页码 125 | 126 | ###2015.06.14 127 | 128 | 加入 `ytableau` 包,绘制杨图 `\ynd`,绘制杨盘 `\yng` 129 | 130 | ###2015.06.08 131 | 132 | 提供 Sample 截图 133 | 134 | ###2015.05.29 135 | 136 | 更新 README,日志从今天开始写… 137 | 138 | 139 | 140 | ====== 141 | 142 | (萌狸的 LaTeX 属于现学现卖滴,模版可能开发的灰常不专业,欢迎提出指导意见~) 143 | 144 | 145 | -------------------------------------------------------------------------------- /compile/XeTeX.sublime-build: -------------------------------------------------------------------------------- 1 | { 2 | "cmd": ["${packages}\\User\\xetex.bat", "${file_base_name}"], 3 | "file_regex": "^((?:.:)?[^:\n\r]*):([0-9]+):?([0-9]+)?:? (.*)$", 4 | // "file_regex": "(.*):([0-9]+):(.*)", 5 | "working_dir": "${file_path}", 6 | "selector": "text.tex.latex", 7 | "encoding": "UTF-8" 8 | } 9 | -------------------------------------------------------------------------------- /compile/dde.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/compile/dde.zip -------------------------------------------------------------------------------- /compile/readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/compile/readme.txt -------------------------------------------------------------------------------- /compile/synctex.bat: -------------------------------------------------------------------------------- 1 | "C:\Program Files\Sublime\Data\Packages\User\dde.exe" @' 'SUMATRA' 'control' '[ForwardSearch("%~1.pdf","%~1.tex",%2,0)]' 2 | start "C:\Program Files\SumatraPDF\SumatraPDF.exe" "%~1.pdf" -reuse-instance 3 | exit /b 0 4 | -------------------------------------------------------------------------------- /compile/xetex.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | call xelatex -interaction=nonstopmode --quiet %1.tex 2>nul 3 | if errorlevel 1 goto END 4 | if exist %1.bib bibtex --quiet %1 2>nul 5 | xelatex --synctex=1 -interaction=nonstopmode --quiet %1.tex > nul 2>nul 6 | del /f /a /q %1.out > nul 2>nul 7 | del /f /a /q %1.log > nul 2>nul 8 | del /f /a /q %1.aux > nul 2>nul 9 | del /f /a /q %1.toc > nul 2>nul 10 | del /f /a /q %1.blg > nul 2>nul 11 | del /f /a /q texput.log > nul 2>nul 12 | rem "C:\Program Files\Sublime\Data\Packages\User\esc.vbs" 13 | exit /b 0 14 | :end 15 | echo. 16 | REM find "tex" < %1.log 17 | exit /b 1 18 | -------------------------------------------------------------------------------- /lenotef5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/lenotef5.jpg -------------------------------------------------------------------------------- /sample/figure/ali.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/sample/figure/ali.jpg -------------------------------------------------------------------------------- /sample/figure/cover.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Creator: cairo 1.14.0 (http://cairographics.org) 3 | %%CreationDate: Mon Jul 27 02:03:32 2015 4 | %%Pages: 1 5 | %%DocumentData: Clean7Bit 6 | %%LanguageLevel: 2 7 | %%BoundingBox: 0 -1 902 233 8 | %%EndComments 9 | %%BeginProlog 10 | save 11 | 50 dict begin 12 | /q { gsave } bind def 13 | /Q { grestore } bind def 14 | /cm { 6 array astore concat } bind def 15 | /w { setlinewidth } bind def 16 | /J { setlinecap } bind def 17 | /j { setlinejoin } bind def 18 | /M { setmiterlimit } bind def 19 | /d { setdash } bind def 20 | /m { moveto } bind def 21 | /l { lineto } bind def 22 | /c { curveto } bind def 23 | /h { closepath } bind def 24 | /re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto 25 | 0 exch rlineto 0 rlineto closepath } bind def 26 | /S { stroke } bind def 27 | /f { fill } bind def 28 | /f* { eofill } bind def 29 | /n { newpath } bind def 30 | /W { clip } bind def 31 | /W* { eoclip } bind def 32 | /BT { } bind def 33 | /ET { } bind def 34 | /pdfmark where { pop globaldict /?pdfmark /exec load put } 35 | { globaldict begin /?pdfmark /pop load def /pdfmark 36 | /cleartomark load def end } ifelse 37 | /BDC { mark 3 1 roll /BDC pdfmark } bind def 38 | /EMC { mark /EMC pdfmark } bind def 39 | /cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def 40 | /Tj { show currentpoint cairo_store_point } bind def 41 | /TJ { 42 | { 43 | dup 44 | type /stringtype eq 45 | { show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse 46 | } forall 47 | currentpoint cairo_store_point 48 | } bind def 49 | /cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore 50 | cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def 51 | /Tf { pop /cairo_font exch def /cairo_font_matrix where 52 | { pop cairo_selectfont } if } bind def 53 | /Td { matrix translate cairo_font_matrix matrix concatmatrix dup 54 | /cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point 55 | /cairo_font where { pop cairo_selectfont } if } bind def 56 | /Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def 57 | cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def 58 | /g { setgray } bind def 59 | /rg { setrgbcolor } bind def 60 | /d1 { setcachedevice } bind def 61 | %%EndProlog 62 | %%BeginSetup 63 | %%EndSetup 64 | %%Page: 1 1 65 | %%BeginPageSetup 66 | %%PageBoundingBox: 0 -1 902 233 67 | %%EndPageSetup 68 | q 0 -1 902 234 rectclip q 69 | 0.0470588 0.2 0.533333 rg 70 | 900.375 86.363 m 900.375 155.175 l 278.699 155.175 l 321.148 86.363 l 900.375 71 | 86.363 l 900.375 177.488 m 900.375 232.613 l 840.602 232.613 l 840.602 72 | 177.488 l 900.375 177.488 l 294.188 86.363 m 254.926 151.913 l 206.625 232.613 73 | l 0.375 232.613 l 0.375 86.363 l h 74 | 294.188 86.363 m f 75 | 0.75 w 76 | 1 J 77 | 1 j 78 | [] 0.0 d 79 | 4 M q 1 0 0 -1 0 232.987579 cm 80 | 840.602 0.375 m 900.375 0.375 l 900.375 55.5 l 840.602 55.5 l h 81 | 278.699 77.812 m 900.375 77.812 l 900.375 146.625 l 321.148 146.625 l h 82 | 0.375 0.375 m 206.625 0.375 l 254.945 81.074 l 294.188 146.625 l 0.375 83 | 146.625 l h 84 | 0.375 0.375 m S Q 85 | 1.5 w 86 | q 1 0 0 -1 0 232.987579 cm 87 | 364.836 232.238 m 900.375 232.238 l S Q 88 | Q Q 89 | showpage 90 | %%Trailer 91 | end restore 92 | %%EOF 93 | -------------------------------------------------------------------------------- /sample/figure/moele.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/sample/figure/moele.png -------------------------------------------------------------------------------- /sample/figure/natural.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/sample/figure/natural.png -------------------------------------------------------------------------------- /sample/figure/passive.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/sample/figure/passive.png -------------------------------------------------------------------------------- /sample/figure/positive1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/sample/figure/positive1.png -------------------------------------------------------------------------------- /sample/figure/positive2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/sample/figure/positive2.png -------------------------------------------------------------------------------- /sample/lenote.out: -------------------------------------------------------------------------------- 1 | \BOOKMARK [1][-]{section.1}{安装}{}% 1 2 | \BOOKMARK [1][-]{section.2}{规范}{}% 2 3 | \BOOKMARK [2][-]{subsection.2.1}{颜色}{section.2}% 3 4 | \BOOKMARK [2][-]{subsection.2.2}{字体}{section.2}% 4 5 | \BOOKMARK [2][-]{subsection.2.3}{词条}{section.2}% 5 6 | \BOOKMARK [1][-]{section.3}{其它狸笔记提供的特殊命令}{}% 6 7 | \BOOKMARK [1][-]{section.4}{实例}{}% 7 8 | \BOOKMARK [2][-]{subsection.4.1}{图片混排}{section.4}% 8 9 | \BOOKMARK [2][-]{subsection.4.2}{图片并排}{section.4}% 9 10 | \BOOKMARK [2][-]{subsection.4.3}{表格混排}{section.4}% 10 11 | -------------------------------------------------------------------------------- /sample/lenote.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/sample/lenote.pdf -------------------------------------------------------------------------------- /sample/lenote.synctex.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/sample/lenote.synctex.gz -------------------------------------------------------------------------------- /sample/lenote.tex: -------------------------------------------------------------------------------- 1 | \documentclass{lenote} 2 | \begin{document} 3 | 4 | 5 | \begin{lecover}{狸笔记}{{\fontspec{Verdana}2016}版使用说明}{Le} 6 | 7 | 8 | 9 | \enl{学习网站} 10 | 11 | \url{http://tex.stackexchange.com/ } 12 | 13 | \href{http://linux-wiki.cn/wiki/zh-hans/LaTeX%E4%B8%AD%E6%96%87%E6%8E%92%E7%89%88%EF%BC%88%E4%BD%BF%E7%94%A8XeTeX%EF%BC%89 }{ LaTeX中文排版(使用XeTeX)} 14 | 15 | \href{http://www.wikibooks.org }{维基 book} 16 | 17 | \end{lecover} 18 | 19 | 20 | 21 | 22 | \chap{安装} 23 | 24 | \ent[install TeX]{安装\TeX 系统} 25 | Windows 系统下有三种安装工具可选择: 26 | 27 | 1.1 \href{http://miktex.org/download}{MiKTeX} : 28 | 体积小,因为只包含最基本的包,需选择 \code{自动安装缺失的包} ,初次编译时需网络通畅 29 | 30 | 1.2 \href{http://www.ctan.org/tex-archive/systems/texlive/Images/ }{TeXLive} : 31 | 体积大,打包了 MiKTeX 和所有 \LeNote 所需的包,推荐新手使用 32 | 33 | 1.3 \href{http://www.ctex.org/CTeXDownload }{CTeX} : 34 | 同样打包了 MiKTeX 和所有所需的包,但该工具很久没更新了,仅适用于旧版 \LeNote 35 | 36 | Mac OS 下的工具为 \href{http://tug.org/cgi-bin/mactex-download/MacTeX.pkg}{MacTeX} \com{萌狸君未测试过} , Linux 下的指南 \href{https://github.com/LePtC/LeNote/issues/2}{在这里} 37 | 38 | \enl{问题} 39 | 40 | {\small 41 | \sub 萌狸君最近重装了 win10 , 装 2.9.6069 版的 MikTeX ,然后发现eps图片都显示不出来,用其它模版也是这样,估计是 MikTeX 的问题,建议全新安装者选 1.2 方案,已经妥善安装好 MikTeX 的按 2.1 装模版即可 42 | } \\ 43 | 44 | \ent[install LeNote]{安装 \LeNote 模版} 45 | 46 | 2.1 MiKTeX 或 CTeX : 47 | 把 \code{lenote} 文件夹 \com{包含 \code{lenote.cls} 和 \code{lenote.sty} } 放到 48 | 49 | \code{(CTeX)/MiKTeX/tex/latex/} 目录下, 50 | 然后打开 MiKTeX 的 \code{Settings (Admin)} 点 \code{Refresh FNDB} 即可 51 | 52 | 2.2 TeXLive : 53 | 在 \code{texlive/2016/texmf.cnf} 末尾加上 54 | 55 | \code{TEXMFLOCAL = $SELFAUTOPARENT/../texmf-local,D:/(anypath)} 56 | 57 | 然后把 \code{tex/latex/lenote} 这套文件夹树放到 \code{(anypath)} 下面, 58 | 在命令行执行 \code{texhash} 即可 59 | 60 | 2.3 \LeNote 模版需要用到 Times New Roman , {\fontspec{Verdana}Verdana} , \href{http://www.zitikoudai.com/chinese-fonts/other/Adobe-Fangsong-Std-R.html }{\fontspec{Adobe Fangsong Std}Adobe 仿宋} , \href{http://fonts.mobanwang.com/200908/5055.html }{\hei 方正准圆 \fontspec{方正准圆_GBK} GBK} 字体,请确认电脑上安装了上述字体,或到 \code{lenote.cls} 中改成你喜欢的字体 61 | \\ 62 | 63 | 64 | \ent[compile]{编译} 65 | 66 | 3.1 打开命令行,输入 \code{xelatex} ,如果输出 \code{This is XeTeX...} 说明编译器已经可用 67 | 68 | {\small\sub \code{xelatex.exe} 编译器位于 69 | \code{(CTeX)/MiKTeX/miktex/bin/} 70 | 或 \code{texlive/2016/bin/win32} 目录下, 71 | 如果命令行找不到此命令,可在命令中输入 \code{xelatex.exe} 的完整路径, 72 | 或手动将该路径添加到系统的环境变量并重启电脑} 73 | 74 | 3.2.1 命令行切换到范例文档 \code{sample/} 的路径, 75 | 输入 \code{xelatex lenote.tex} 看能否正确编译出 \code{lenote.pdf} 76 | 77 | 3.2.2 如果是编译自己的文档,注意文档要存为 UTF-8 无 BOM 格式,文档名不能有空格否则不能识别, 78 | 不能有中文否则会报错, 79 | 文档开头为 \verb|\documentclass{lenote}| , 80 | 81 | 然后在 \verb|\begin{document} ... \end{document}| 之间写正文 82 | 83 | {\small 84 | \sub 新版 \LeNote 已将模版名称由 \code{leptc} 改成 \code{lenote} , 装过旧版 \LeNote 的童鞋注意修改文档的 \verb|\documentclass| 85 | } 86 | 87 | {\small\sub 如果碰到其它谷歌也解决不了的问题, 请到 \href{https://github.com/LePtC/LeNote/issues }{LeNote Issues} 或 \href{http://leptc.github.io/posts/ask.html}{多说评论区} 进行反馈} 88 | 89 | 90 | 3.3 如果要正确生成书签,或文档包含 \code{.bib} ,还需要多编译几遍, 91 | 具体命令见 \code{compile/xetex.bat} 工具 92 | \\ 93 | 94 | \ent[editor]{编辑器} 95 | \href{http://tex.stackexchange.com/questions/339/latex-editors-ides }{各种编辑器的比较} , 96 | 不同编辑器的配置方法见 \code{compile/readme.txt} 97 | 98 | \ent[reader]{阅读器} 推荐使用 99 | \href{http://blog.kowalczyk.info/software/sumatrapdf/download-free-pdf-viewer-cn.html }{SumatraPDF} 100 | 来查看 pdf , 因为它支持 synctex 101 | 102 | 请在 \code{InverseSearchCmdLine} 里填入相应编辑器的反向查找命令,下面举两个例子: 103 | 104 | Notepad++ 105 | \code{\"C:\\Program\ Files\ (x86)\\Notepad++\\notepad++.exe\" -n\%l \"\%f\"} 106 | 107 | Sublime 108 | \code{\"C:\\Program\ Files\\Sublime\\sublime_text.exe\" \"\%f:\%l\"} 109 | 110 | 111 | 112 | \clearpage 113 | \chap{规范} 114 | 115 | 本章介绍 \href{http://leptc.github.io/lenote/index.html}{狸笔记} 中使用的符号规范 \com{萌狸君的个人习惯} , 目标是最大程度地减少符号的歧义性 116 | 117 | 118 | \chaps{颜色} 119 | 120 | \LeNote 模版的特色之一是公式的自动高亮 121 | \vspace{6pt} 122 | 123 | \begin{tabular}{llcl} 124 | 125 | {\hei\color{p} 紫色} 126 | &章节 & 效果见右上方\eq{\nearrow} & \verb|\chap{规范},\chaps{颜色}| \\ 127 | &链接 & \link{静电场} & \verb|\link[学科名]{章节名}| \\ 128 | 129 | {\hei\color{b} 蓝色} 130 | &物理单位 & \eq{\oC,6.67\E{-11}\uni{m^3/(kg\cdot s^2)}} & \verb|\oC,6.67\E{-11}\uni{m^3/(kg\cdot s^2)}| \\ 131 | &虚数单位 & \eq{\ii,\jj,\kk} & \verb|\ii,\jj,\kk| \\ 132 | &单位矢量 & \eq{\ve{r},\vel{i},\veu{j},\vgl{i},\vgu{j}} & \verb|\ve{r},\vel{i},\veu{j},\vgl{i},\vgu{j}| \\ 133 | 134 | {\hei\color{o} 橙色} 135 | &函数名 & \eq{\e^x,\sin(x),\sinh(x),\He_n(x)} & \verb|\e^x,\sin(x),\He_n(x)| \\ 136 | &字母算符 & \eq{\dif x,\Dif x,\delta x,\bm A^\T,\nabla[r] r} & \verb|\dif x,\Dif x,\delta x,\bm A^\T,\nabla[r] r| \\ 137 | 138 | {\hei\color{g} 绿色} 139 | &推导流程 &\eq{\to \ns \Rightarrow} & \verb|\to \ns \Rightarrow| \\ 140 | &证明过程 &\eq{\vec{v}=\prv{\od{}{t}(r\ve{r})=}\dot{r}\ve{r}+r\dot\theta\ve{\theta}} &\verb|..=\prv{..=}..,\prvs{无方括号版}| \\ 141 | 142 | {\hei\color{y} 灰色} 143 | &注释 &\com{注释} &\verb|\com{注释},\coms{多行\\注释}| \\ 144 | 145 | \end{tabular} 146 | 147 | 148 | 149 | 150 | 151 | \chaps{字体} 152 | 153 | 在黑白打印的情况下,字体是区分符号冲突的宝贵手段 154 | \vspace{6pt} 155 | 156 | \begin{tabular}{llll} 157 | 158 | 斜体 &\com{公式环境下默认为斜体} &变量,粒子符号 159 | &\eq{x,y,z,r,v,a,e,n,p} \\ 160 | 161 | 正体 &\verb|\mathrm{}| &名词字母,元素符号 162 | &\eq{\Ek,\kB,\NA,F\inter,\cc,\ce{He}} \\ 163 | 164 | 双线体 &\verb|\mathbb{}| &数域 165 | &\eq{\mathbb{N,Z,Q,A,R,C,H,O}} \\ 166 | 167 | 花体 &\verb|\mathcal{}| &泛函 168 | &\eq{\mathcal{F,L,Z}} \\ 169 | 170 | 无衬线体 &\verb|\mathsf{}| &特殊易混记号 171 | &\eq{\bigO (n),\smallo (1),\bm A^\T} \\ 172 | 173 | 粗斜体 &\verb|\bm{}| &矢量,矩阵 174 | &\eq{\bm x,\bm{A},\bm{O}_{m\times n}} \\ 175 | 176 | 粗体 &\verb|\mathbf{}| &群 177 | &\eq{\mathbf{D}_n,\mathbf{U}(n),\mathbf{SO}(3)} \\ 178 | 179 | 哥特体 &\verb|\mathfrak{}| &代数 180 | &\eq{\mathfrak{su}(n),\mathfrak{so}(3)} \\ 181 | 182 | 手写体 &\verb|\mathscr{}| &电动势 183 | & \eq{\emf} \\ 184 | 185 | 草书体 &\verb|\mathcalligra{}| &格里菲斯相对位矢 186 | & \eq{\rr_\rr} \\ 187 | 188 | 仿宋 &\verb|\fontspec{Adobe Fangsong Std}| &西里尔字母 189 | &\eq{\Zhe} \\ 190 | 191 | 打字机体 &\verb|\texttt{}| &源代码 192 | &\code{file.tex} \\ 193 | 194 | \end{tabular} 195 | 196 | 197 | 198 | 199 | \chaps{词条} 200 | 201 | 中英双语词条是狸笔记的特色 202 | \vspace{6pt} 203 | 204 | \ent[\B Superconducting \B{QU}antum \B Interference \B Device]{超导量子干涉器} 205 | \verb|\ent[\B Entry]{词条} | , 206 | \entc[eng]{英文居中} \verb|\entc[eng]{词条}| , 207 | 词条多名: \ent[boost]{推动/伪转动} 208 | 209 | 在正文中标注英文: 210 | ...有一\eng[all pervading]{存在于全空间}的希格斯标量场... 211 | \verb|\eng[eng]{正文} | 212 | \vspace{6pt} 213 | 214 | \enl{标签} 215 | \verb|\enl{标签} | 216 | 用于 \enl{例} \enl{定理} \enl{推论} 等,多个推论缩进列举用 \verb|\enlr{推论}{....} | 217 | \vspace{6pt} 218 | 219 | 220 | \ent{inline公式} 221 | \eq{f(x,y)=\frac{\e^x}{y}} 222 | \verb|\eq{}| 223 | \com{不用 \texttt{\$\$} 是为了便于配对} 224 | \ent{display公式} 225 | \eqd{f(x,y)=\frac{\e^x}{y}} 226 | \verb|\eqd{}| 227 | \\ 228 | 229 | \ent{贴图} 230 | \figin[0.05]{ali} 231 | \verb|\fig[相对宽度]{图片名}| 232 | 内置: \verb|\figin| 多图并排: \verb|\figgg| \\ 233 | 234 | 235 | 236 | 237 | 238 | \chap{其它狸笔记提供的特殊命令} 239 | 240 | \begin{tabular}{lcl} 241 | 242 | 大圈小圈 243 | &\N1 \N2 \n1 \n2 244 | &\verb|\N1 \N2 \n1 \n2|\\ 245 | 246 | 区分求导/撇 247 | &\eq{y',y\co,y\co[x]} 248 | &\verb|y',y\co,y\co[x]|\\ 249 | 250 | 矢量 251 | &\eq{\vec{OA},\vec{p_c}',\vecd{p},\ve{r}} 252 | &\verb|\vec{OA},\vec{p_c}',\vecd{p},\ve{r}|\\ 253 | 254 | 张量 255 | &\eq{\vvecd{T},\vvvec{\varepsilon}} 256 | &\verb|\vvecd{T},\vvvec{\varepsilon}|\\ 257 | 258 | 矢量算符 259 | &\eq{\hatv{p},\hatvs{S}} 260 | &\verb|\hatv{p},\hatvs{S}|\\ 261 | 262 | 矢量微分 263 | &\eq{\nabla x,\nablad \vec x,\nablat \vec x,\nablas x} 264 | &\verb|\nabla x,\nablad \vec x,\nablat \vec x,\nablas x|\\ 265 | 266 | \vspace{3pt}\hspace{-4pt} 267 | 导数,偏导数 268 | &\eqd{\od{y}{x},\pd[2]{L}{x},\md{L}{4}{x}{2}{y}{2}} 269 | &\verb|\od{y}{x},\pd[2]{L}{x},\md{L}{4}{x}{2}{y}{2}|\\ 270 | 271 | 某处的导数 272 | &\eq{\odat{y}{x}{x_0},} 273 | \eqd{\odat{y}{x}{x_0},\pdat{L}{x}{y,z}} 274 | &\verb|\odat{y}{x}{x_0},\pdat{L}{x}{y,z}|\\ 275 | 276 | \vspace{3pt}\hspace{-4pt} 277 | 圈积分 278 | &\eqd{\oiint_S \vec{B} \cdot\dif \vec{S}= \oint_L \vec{A} \cdot\dif \vec{l}} 279 | &\verb|\oiint_S \oint_L|\\ 280 | 281 | 推导上加字 282 | &\eq{\xlongequal{\text{归一}}, \xrightarrow{\times a^2}} 283 | &\verb|\xlongequal{\text{}} \xrightarrow{}|\\ 284 | 285 | 左花括号 286 | &\eq{\delta _{ij} = \leftB[2]{\matn{1 &(i = j)\\ 0 &(i \ne j)}}} 287 | &\verb|\leftB[行数]{\matn{1 &(i = j)\\ 0 &(i \ne j)}}|\\ 288 | 289 | 矩阵,行列式 290 | &\eq{\mat[0.8]{1&0\\0&1},\matd[0.8]{-a&b\\c&-d}} 291 | &\verb|\mat{1&0\\0&1},\matd{-a&b\\c&-d}|\\ 292 | 293 | 杨图,杨盘 294 | &\ynd[0.5]{3,1}\quad$T^{[21]}_1=$\yng{1&2\\3} 295 | &\verb|\ynd{3,1},\yng{1&2\\3}|\\ 296 | 297 | \end{tabular} 298 | \\ 299 | 300 | /* 太多惹...以后慢慢写 */ 301 | 302 | 303 | 304 | 305 | \clearpage 306 | \chap{实例} 307 | 308 | 309 | \com{本笔记均指实数域} \ent[orthogonal group]{正交群} 310 | \eq{\mathbf{O}(n)} 311 | 需 \eq{\frac12n(n-1)} 个独立参数 312 | \prv{约束方程\eq{O^TO=I}上下三角的$=0$对称} 313 | 314 | 315 | \eq{\mathbf{O}(n)=\mathbf{SO}(n)\otimes\{I,-I\}} 316 | \prv{\eq{\abs{O}=\pm1}} 317 | \enl{例} 318 | \eq{\mathbf{O}(1)=\{\pm1\},\ \mathbf{SO}(1)=\{1\}} 319 | 320 | \ent{二维空间转动群} 321 | \eq{\mathbf{SO}(2)=\{R_z(\theta)|-\pi\le\theta\le\pi\}} 322 | \enl{例} 323 | \eq{\mathbf{D}_n} 是 \eq{\mathbf{O}(2)} 的离散子群 324 | \com{反射对应行列式 $-1$} 325 | 326 | \com{参数群可用数学分析方法} 327 | \prvs{ 328 | 由于\eq{\mathbf{SO}(2)}阿贝尔,表示一维,设 \eq{A=\{a(\theta)\}}, 329 | 已知乘法关系为 \eq{a(\theta_1+\theta_2)=a(\theta_1)a(\theta_2)}, 330 | 两边对\eq{\theta_1}求导后令\eq{\theta_1=0}, 331 | 得\eq{a'(\theta_2)=a(\theta_2)a'(0)}, 332 | 为使幺正取\eq{a'(0)=\ii m}纯虚,解得\eq{a(\theta)=\e^{\ii m\theta}}, 333 | 由周期性\eq{a(\theta)=a(\theta+2\pi)}\com{费米子是\eq{+4\pi}}, 334 | 得\eq{m\in\mathbb{Z}},然后证完备 335 | } 336 | 337 | \ent[three dimensional rotation group]{三维空间转动群} 338 | \eq{\mathbf{SO}(3)\nors\mathbf{O}(3)}, 339 | 均由3个\ent{群参数}表示 \com{独立,实数}, 群元素写法: 340 | 341 | \N1 \eq{R_{(\theta,\varphi)}(\psi),\ 0\le\psi\le\pi} 342 | \to 映射到半径 \eq{\pi} 球面上 \eq{(\psi,\theta,\varphi)} 343 | \com{球面上的点二对一 \eq{R_n(\pi)=R_{-n}(\pi)}} \link{拓扑} 344 | 345 | 346 | 347 | 348 | 349 | \chaps{图片混排} 350 | 351 | 图片混排的命令为 \verb|\figr{ali.jpg}{0.1}{很多行文字}|, 实例 \eq{\downarrow} 352 | \ \\ 353 | 354 | \figr{natural.png}{0.22} 355 | { 356 | \ent[arc length]{弧长} \eq{s=s(t),\ \vec{r}=\vec{r}(s)} 357 | \com{可任意选定 \eq{s} 的零点和正向,与运动方向无关} 358 | 359 | \ent[tangential]{切向} \eq{\ve{t}=\frac{\dif \vec{r}}{\dif s}}, 360 | \eq{\od{}{ \theta}\ve{t}=\ve{n}\ \to} 361 | \ent[normal]{法向}指向曲线凹侧, \eq{\od{}{\theta}\ve{n}=-\ve{t}}, 362 | \eq{\ved{t}=\od{\ve{t}}{\theta}\od{\theta}{s}\dot s=\ve{n}\frac{1}{\rho}v} 363 | 364 | \eq{\vec{v}=\dot s\ve{t}}, 365 | \eq{\vec{a}=\ddot s\ve{t}+\frac{v^2}{\rho}\ve{n}}, 366 | \ent[curvature radius]{曲率半径} \eq{\rho=\od{s}{\theta}=(1+y'^2)^{\frac{3}{2}} / \abs{y''}}, 367 | 常用 \eq{a_t=\dot v=\od{v}{s}v} 368 | 369 | 加速度既反映速度大小也反映方向变化 370 | \eq{a_t=\od{v}{t},\ a_n=\frac{v^2}{\rho},\ 371 | a=\sqrt{a_t^2+a_n^2},\ \tan\theta=\frac{a_n}{a_t}} 372 | } 373 | 374 | 375 | \chaps{图片并排} 376 | 377 | \verb|\figg...{fig1.png}{0.25}{offset}{fig2.png}{0.25}{offset}...| 378 | 379 | \vspace{-15pt} 380 | \figgg{positive1.png}{0.25}{0}{positive2.png}{0.25}{0}{passive.png}{0.25}{0} 381 | \vspace{-10pt} 382 | 383 | \N1 用基表示的主动变换 \com{物动,基动坐标不变} 384 | \eq{\hat{A}(r_1)\vec{x}=\vec{x}\co= 385 | \cos\theta\vec{x}+\sin\theta\vec{y}+0\vec{z}}, 系数竖写第一列 386 | 387 | \N2 用坐标表示的主动变换 \com{物动,基不动坐标变} 388 | \eq{x\co=r\cos(\theta+\varphi)=\cos\theta\ x-\sin\theta\ y}, 系数横写第一行 389 | 390 | \N3 被动变换 \com{物不动,基动坐标变} 391 | \eq{x\co=r\cos(\varphi-\theta)=\cos\theta\ x+\sin\theta\ y}, 系数横写第一行 392 | 393 | 394 | \chaps{表格混排} 395 | 396 | 表格混排的命令为 \verb|\tabr[0.4]{很多行文字}{很多行表格}|, 实例 \eq{\downarrow} 397 | \ \\ 398 | 399 | 400 | \tabr[0.72]{ 401 | \enl{性质} 同类元素的特征标相等 \com{记类中元素个数为 \eq{n_i}, 求和公式中可合并} 402 | 403 | 群的$\forall\ne$IUR的个数等于群中类的个数 \eq{r} \to 特征标表是方阵 404 | 405 | \ent{第一正交性关系} 特征标表各行正交 406 | \eq{\frac{1}{n}\sum^r n_i \chi^{(p)*}(g) \chi^{(q)}(g)=\delfun_{pq}} 407 | 408 | \ent{第二正交性关系} 特征标表各列正交 409 | \eq{\frac{n_i}{n}\sum^r_p \chi^{(p)*}(g_i) \chi^{(p)}(g_{i\co})=\delfun_{ii\co}} 410 | 411 | }{ 412 | 413 | \begin{tabular}{|c|c|c|c|} 414 | \hline 415 | 特征标 &\eq{e} &\eq{r_1,r_2} &\eq{a,b,c} \\ 416 | \hline 417 | \eq{\chi^S} &1 &1 &1 \\ 418 | \eq{\chi^A} &1 &1 &\eq{-1} \\ 419 | \eq{\chi^\Gamma} &2 &\eq{-1} &0 \\ 420 | \hline 421 | \end{tabular} 422 | } 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | \end{document} 432 | -------------------------------------------------------------------------------- /tex/latex/lenote/cover.eps: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 EPSF-3.0 2 | %%Creator: cairo 1.14.0 (http://cairographics.org) 3 | %%CreationDate: Mon Jul 27 02:03:32 2015 4 | %%Pages: 1 5 | %%DocumentData: Clean7Bit 6 | %%LanguageLevel: 2 7 | %%BoundingBox: 0 -1 902 233 8 | %%EndComments 9 | %%BeginProlog 10 | save 11 | 50 dict begin 12 | /q { gsave } bind def 13 | /Q { grestore } bind def 14 | /cm { 6 array astore concat } bind def 15 | /w { setlinewidth } bind def 16 | /J { setlinecap } bind def 17 | /j { setlinejoin } bind def 18 | /M { setmiterlimit } bind def 19 | /d { setdash } bind def 20 | /m { moveto } bind def 21 | /l { lineto } bind def 22 | /c { curveto } bind def 23 | /h { closepath } bind def 24 | /re { exch dup neg 3 1 roll 5 3 roll moveto 0 rlineto 25 | 0 exch rlineto 0 rlineto closepath } bind def 26 | /S { stroke } bind def 27 | /f { fill } bind def 28 | /f* { eofill } bind def 29 | /n { newpath } bind def 30 | /W { clip } bind def 31 | /W* { eoclip } bind def 32 | /BT { } bind def 33 | /ET { } bind def 34 | /pdfmark where { pop globaldict /?pdfmark /exec load put } 35 | { globaldict begin /?pdfmark /pop load def /pdfmark 36 | /cleartomark load def end } ifelse 37 | /BDC { mark 3 1 roll /BDC pdfmark } bind def 38 | /EMC { mark /EMC pdfmark } bind def 39 | /cairo_store_point { /cairo_point_y exch def /cairo_point_x exch def } def 40 | /Tj { show currentpoint cairo_store_point } bind def 41 | /TJ { 42 | { 43 | dup 44 | type /stringtype eq 45 | { show } { -0.001 mul 0 cairo_font_matrix dtransform rmoveto } ifelse 46 | } forall 47 | currentpoint cairo_store_point 48 | } bind def 49 | /cairo_selectfont { cairo_font_matrix aload pop pop pop 0 0 6 array astore 50 | cairo_font exch selectfont cairo_point_x cairo_point_y moveto } bind def 51 | /Tf { pop /cairo_font exch def /cairo_font_matrix where 52 | { pop cairo_selectfont } if } bind def 53 | /Td { matrix translate cairo_font_matrix matrix concatmatrix dup 54 | /cairo_font_matrix exch def dup 4 get exch 5 get cairo_store_point 55 | /cairo_font where { pop cairo_selectfont } if } bind def 56 | /Tm { 2 copy 8 2 roll 6 array astore /cairo_font_matrix exch def 57 | cairo_store_point /cairo_font where { pop cairo_selectfont } if } bind def 58 | /g { setgray } bind def 59 | /rg { setrgbcolor } bind def 60 | /d1 { setcachedevice } bind def 61 | %%EndProlog 62 | %%BeginSetup 63 | %%EndSetup 64 | %%Page: 1 1 65 | %%BeginPageSetup 66 | %%PageBoundingBox: 0 -1 902 233 67 | %%EndPageSetup 68 | q 0 -1 902 234 rectclip q 69 | 0.0470588 0.2 0.533333 rg 70 | 900.375 86.363 m 900.375 155.175 l 278.699 155.175 l 321.148 86.363 l 900.375 71 | 86.363 l 900.375 177.488 m 900.375 232.613 l 840.602 232.613 l 840.602 72 | 177.488 l 900.375 177.488 l 294.188 86.363 m 254.926 151.913 l 206.625 232.613 73 | l 0.375 232.613 l 0.375 86.363 l h 74 | 294.188 86.363 m f 75 | 0.75 w 76 | 1 J 77 | 1 j 78 | [] 0.0 d 79 | 4 M q 1 0 0 -1 0 232.987579 cm 80 | 840.602 0.375 m 900.375 0.375 l 900.375 55.5 l 840.602 55.5 l h 81 | 278.699 77.812 m 900.375 77.812 l 900.375 146.625 l 321.148 146.625 l h 82 | 0.375 0.375 m 206.625 0.375 l 254.945 81.074 l 294.188 146.625 l 0.375 83 | 146.625 l h 84 | 0.375 0.375 m S Q 85 | 1.5 w 86 | q 1 0 0 -1 0 232.987579 cm 87 | 364.836 232.238 m 900.375 232.238 l S Q 88 | Q Q 89 | showpage 90 | %%Trailer 91 | end restore 92 | %%EOF 93 | -------------------------------------------------------------------------------- /tex/latex/lenote/lenote.cls: -------------------------------------------------------------------------------- 1 | %-------------------------------------------------- 2 | % LePtC 双语彩色笔记模版 - 笔记 3 | % filename = lenote.cls 4 | % author = LePtC 5 | % version = 2016.11 6 | % email = alileptc@gmail.com 7 | % README on GitHub: https://github.com/LePtC/LeNote 8 | %-------------------------------------------------- 9 | % 本模版用于 xelatex+xeCJK 方案,常用编译命令为: 10 | % xelatex --quiet --synctex=1 -interaction=nonstopmode $(NAME_PART).tex 11 | % 文档前加入 \documentclass{leptc} 即可 12 | %-------------------------------------------------- 13 | 14 | \NeedsTeXFormat{LaTeX2e}[2007/10/19] 15 | \ProvidesClass{lenote} 16 | 17 | \LoadClass[12pt]{article} % [UTF8,noindent]{ctexart} 18 | % 其它 pt 用 \LoadClass[14pt]{extarticle} 19 | % 最后各科笔记合并时改为 book 20 | 21 | 22 | 23 | %-------------------------------------------------- 24 | % 页面设置 25 | \RequirePackage[a4paper, top=30pt, bottom=30pt, left=30pt, right=30pt]{geometry} 26 | %-------------------------------------------------- 27 | 28 | 29 | \setlength{\parindent}{0pt} % 不要首行缩进 30 | \linespread{1.2} % 行间距放大,否则对于表格太紧了 31 | 32 | % 公式设置 --------------- 33 | 34 | \setlength{\thickmuskip}{1 mu} % 等号两边空太大 35 | \setlength{\medmuskip}{1 mu} 36 | \setlength{\thinmuskip}{2 mu} % 会缩小 \, 的距离 37 | 38 | % 中括号大括号有特殊含义,公式中多层括号尽量都用圆括号 39 | \delimitershortfall-1sp % 嵌套括号尺寸总是递增 40 | 41 | % 环境设置 --------------- 42 | 43 | \RequirePackage{enumitem} % 罗列功能,好像没啥用? 44 | \setlist[enumerate]{itemsep=0pt} 45 | 46 | \RequirePackage{tabularx} 47 | \RequirePackage{multirow} 48 | \setlength{\extrarowheight}{2pt} % 表格上下还是太紧 49 | \renewcommand{\arraystretch}{1.0} % 后面矩阵会单独处理 50 | \setlength{\tabcolsep}{5pt} % 表格列间距又太多... 51 | 52 | \RequirePackage{subcaption} 53 | % \RequirePackage[skip=0pt,labelsep=none]{caption} 54 | % \setlength{\abovecaptionskip}{0pt} % 图表都另外做标题 55 | % \setlength{\belowcaptionskip}{0pt} 56 | % \setlength{\intextsep}{2pt} 57 | 58 | \usepackage[font=small,labelfont=bf,margin=1cm]{caption} 59 | \renewcommand{\contentsname}{目\ 录} 60 | \renewcommand{\figurename}{图} 61 | \renewcommand{\tablename}{表} 62 | 63 | % \newcommand{\ski}{\vspace{3pt}} % 手动小间距 64 | 65 | \setlength{\footskip}{20pt} % 页码位置 66 | \renewcommand{\thepage}{- \arabic{page} -} % 页码样式 arabic,roman,alph 67 | 68 | % 每一页都加入作者信息 69 | \RequirePackage{fancyhdr} 70 | % \fancypagestyle{plain}{ 71 | \lfoot{\small \url{http://leptc.github.io/lenote }} 72 | \cfoot{\thepage} 73 | \rfoot{\small \textcopyright\ \href{mailto:alileptc@gmail.com}{\LePtC}} 74 | \renewcommand{\headrulewidth}{0pt} 75 | % \renewcommand{\footrulewidth}{0.4pt} % 画横线 76 | 77 | % \makeatletter 78 | % \let\ps@plain\ps@fancy % debug: Plain page style = fancy page style 79 | % \makeatother 80 | 81 | 82 | %-------------------------------------------------- 83 | % 字体设置 84 | % \RequirePackage{CJK} % 旧版 dvipdfmx 解决方案 85 | \RequirePackage[no-math]{fontspec} 86 | % \RequirePackage{mathptmx} % 这个不好看! 87 | \RequirePackage{amsfonts} 88 | \RequirePackage{amsmath} 89 | \RequirePackage{amssymb} 90 | % 解决 math 和 text 里逗号不一样的问题 91 | \RequirePackage[adobe-fangsong]{mathdesign} 92 | \RequirePackage{mathrsfs} % \emf 93 | % \RequirePackage{unicode-math} % 不兼容! 94 | \RequirePackage{dtk-logos} % 提供 \LaTeX \XeTeX 等 95 | \RequirePackage{xeCJK} % 顺序必须放最后 ... 96 | %-------------------------------------------------- 97 | 98 | 99 | \setmainfont{Times New Roman} 100 | % \setCJKmainfont[BoldFont=Adobe Heiti Std, ItalicFont=Adobe Kaiti Std]{Adobe Fangsong Std} 101 | % \setCJKfamilyfont{hei}{Adobe Heiti Std} 102 | \setCJKmainfont{Adobe Fangsong Std} 103 | \setCJKfamilyfont{hei}{方正准圆_GBK} 104 | \newcommand{\hei}{\CJKfamily{hei}} 105 | % \setCJKfamilyfont{kai}{Adobe Kaiti Std} 106 | % \newcommand{\kai}{\CJKfamily{kai}} 107 | 108 | % 自动把 l 全部换成 \ell 109 | % \mathcode`l="8000 110 | % \begingroup 111 | % \makeatletter 112 | % \lccode`\~=`\l 113 | % \DeclareMathSymbol{\lsb@l}{\mathalpha}{letters}{`l} 114 | % \lowercase{\gdef~{\ifnum\the\mathgroup=\m@ne \ell \else \lsb@l \fi}}% 115 | % \endgroup 116 | 117 | 118 | 119 | 120 | %-------------------------------------------------- 121 | % LePtC 彩色条目 122 | \RequirePackage{titlesec} 123 | %-------------------------------------------------- 124 | 125 | 126 | % 章标题 --------------- 127 | 128 | % \titleformat{\section}{\centering\large\hei\color{w}}{\Large{\color{p}\fontspec{Adobe Heiti Std}\thesection}}{5pt}{\colorbox{r}} 129 | % no number 130 | \titleformat{\section}{\centering\large\hei\color{w}}{}{5pt}{\colorbox{p}} 131 | \titleformat{\subsection}{\centering\large\hei\color{w}}{}{5pt}{\colorbox{p}} 132 | 133 | \newcommand{\chap}[1]{\vspace{10pt}\begin{minipage}{\textwidth}\vspace{10pt}{\color{p}\line(1,0){540}}\vspace{-42pt}\section{#1}\label{#1}\end{minipage}} 134 | \newcommand{\chaps}[1]{\vspace{5pt}\begin{minipage}{\textwidth}\vspace{10pt}{\color{p}\hspace{210pt}\line(1,0){120}}\vspace{-33pt}\subsection{#1}\label{#1}\end{minipage}\vspace{-7pt}} 135 | 136 | 137 | 138 | 139 | 140 | %-------------------------------------------------- 141 | % 图片都放在 figure 文件夹下, 还可设置公共位置放封面用图 142 | \graphicspath{{figure/}{D:/D/Website/lenote/tex/latex/lenote/}} 143 | %-------------------------------------------------- 144 | 145 | 146 | \RequirePackage{lenote} 147 | 148 | \newcommand{\notetime}{ 149 | \ \\ 150 | 151 | 编者:\href{mailto:alileptc@gmail.com}{\LePtC} \com{萌狸} 152 | \quad 153 | 笔记项目主页:\url{http://leptc.github.io/lenote } 154 | 155 | \compiled 156 | } 157 | 158 | 159 | % 制作封面 \makecover{电}{电磁学}{E} 160 | 161 | \newenvironment{lecover}[3] 162 | {{ 163 | \noindent\makebox[\textwidth]{\includegraphics[width=\paperwidth]{cover.eps}} 164 | 165 | \vspace{-145pt} 166 | \hspace{532pt} 167 | {{\Huge\color{w}\fontspec{Verdana}#3}} 168 | 169 | \vspace{20pt} 170 | \scalebox{1.5}{{\Huge\hei\color{w}#1}} 171 | 172 | \vspace{-32pt} 173 | \begin{center} 174 | {\hspace{40pt}{\Huge\hei\color{w}#2}} 175 | \end{center} 176 | 177 | \ent{署名·非商用·相同方式共享} 178 | \vspace{-30pt} 179 | 180 | \begin{flushright} 181 | \com{\,最后编辑于 {\yyyymmdddate\today} - {\hhmmsstime}\,} 182 | % 笔记项目主页: 183 | \quad 184 | \textcopyright\ \href{mailto:alileptc@gmail.com}{\LePtC} \com{萌狸} 185 | 186 | \vspace{5pt} 187 | 项目主页:\url{https://github.com/LePtC/LeNote } 188 | \hspace{5pt} 189 | 笔记主页:\url{http://leptc.github.io/lenote } 190 | \end{flushright} 191 | 192 | \vspace{10pt} 193 | 194 | % {\large\hei\color{w}\colorbox{p}{参考文献}} 195 | % \vspace{10pt} 196 | 197 | \fig[0.5]{moele.png} 198 | 199 | \vfill 200 | }} 201 | { 202 | \thispagestyle{empty} 203 | \clearpage 204 | \setcounter{page}{1} 205 | } 206 | 207 | 208 | 209 | \pagestyle{fancy} 210 | 211 | 212 | \endinput 213 | -------------------------------------------------------------------------------- /tex/latex/lenote/lenote.sty: -------------------------------------------------------------------------------- 1 | %-------------------------------------------------- 2 | % LePtC 双语彩色笔记模版 - 符号部分 3 | % filename = lenote.sty 4 | % author = LePtC 5 | % version = 2016.11 6 | % email = alileptc@gmail.com 7 | % README on GitHub: https://github.com/LePtC/LeNote 8 | %-------------------------------------------------- 9 | 10 | \NeedsTeXFormat{LaTeX2e}[1994/12/01] 11 | \ProvidesPackage{lenote} 12 | 13 | 14 | 15 | 16 | %-------------------------------------------------- 17 | % 定义颜色 18 | \RequirePackage[dvipsnames]{xcolor} % 有别的包调用过这个包 19 | % environ 这个包要求 xcolor 带 dvipsnames 选项 20 | %-------------------------------------------------- 21 | 22 | 23 | % 2014.11 更新: 红色弃用, 链接全部紫色, 公式高亮全部橙色, 证明绿色 24 | \definecolor{r}{RGB}{208,18,27} % InDesign 红色 25 | \definecolor{g}{RGB}{42,167,56} % InDesign 绿色 26 | \definecolor{b}{RGB}{12,51,136} % InDesign 蓝色 27 | 28 | % \definecolor{o}{RGB}{255,128,0} % 高亮橙 29 | \definecolor{o}{RGB}{255,102,51} % Matica 橙 30 | \definecolor{p}{RGB}{128,0,128} % 清华紫 31 | 32 | \definecolor{y}{RGB}{100,100,100} % 灰,仿铅笔 33 | \definecolor{w}{RGB}{255,255,255} % 白,用于反色 34 | 35 | 36 | 37 | 38 | 39 | %-------------------------------------------------- 40 | % LePtC 双语词条 41 | \RequirePackage{ruby} 42 | %-------------------------------------------------- 43 | 44 | 45 | \renewcommand{\rubysize}{0.7} 46 | \renewcommand{\rubysep}{-0.1ex} 47 | % 英文为 Verdana 体 48 | \newcommand{\eng}[2][]{\ruby{#2}{\textnormal{\fontspec{Verdana}#1}}} 49 | % 英文注在右侧 50 | \newcommand{\engr}[2][]{#2\ \textnormal{\small\fontspec{Verdana}#1}} 51 | 52 | \setlength\fboxsep{1pt} % 设框的偏移 53 | \setlength\fboxrule{0.5pt} % 设框宽 \fcolorbox{b}{b}{text} 54 | 55 | \newcommand{\entc}[2][]{{\color{b}\!\textnormal{ 56 | \hei 57 | \ruby{{\fcolorbox{b}{w}{{\color{b}#2}}}} 58 | {\fontspec{Verdana}#1} 59 | }}} 60 | 61 | % \ruby 默认居中对齐,没有左对齐的选项,用 box 重新计算左对齐的宽度... 62 | \RequirePackage{calc} 63 | \newcommand{\ent}[2][]{{\textnormal{ 64 | \hei 65 | \ruby{{\hspace{-3pt}\fcolorbox{b}{w}{{\color{b}#2}}\hspace{-3pt}}} 66 | {{\hspace{3pt}\color{b}\makebox[\widthof{#2}+\widthof{#2}/2][l]{\fontspec{Verdana}#1}} 67 | } 68 | }}} 69 | 70 | % label, 用于"例","定理","推论"等 71 | \newcommand{\enl}[1]{{\colorbox{b}{{\hei\color{w}#1}}}} 72 | 73 | % 带圈数字序号 74 | \def\N#1{{\color{b}\scalebox{1.1}{\raisebox{.5pt}{\textcircled{\scalebox{0.8}{\raisebox{-.4pt}{$\mathbf{#1}$}}}}}}} 75 | \def\n#1{\raisebox{1pt}{\textcircled{\scalebox{0.8}{\raisebox{-.4pt}{$\mathbf{#1}$}}}}} 76 | 77 | % 首字母缩写 78 | \renewcommand{\B}[1]{{\textbf{#1}}} 79 | 80 | 81 | 82 | 83 | %-------------------------------------------------- 84 | % 函数名的自动高亮,包括三角函数等,不包括大型运算符类函数 85 | \RequirePackage{letltxmacro} % 替换原有的 command 86 | \RequirePackage{xifthen} % \ifthenelse 87 | %-------------------------------------------------- 88 | 89 | 90 | % 函数名称高亮橙色 --------------- 91 | 92 | % ln, lg, and lb respectively for the natural, decimal, and binary logarithmic functions 93 | \LetLtxMacro{\oldlog}{\log} 94 | \renewcommand{\log}{{\color{o}\,\oldlog\,}} 95 | \LetLtxMacro{\oldlg}{\lg} 96 | \renewcommand{\lg}{{\color{o}\,\oldlg\,}} 97 | \LetLtxMacro{\oldln}{\ln} 98 | \renewcommand{\ln}{{\color{o}\,\oldln\,}} 99 | \newcommand{\lb}{{\color{o}\,\mathrm{lb}\,}} 100 | 101 | % 自然对数正体,元电荷量斜体 102 | \newcommand{\e}{{\color{o}\,\mathbf{e}}} 103 | \renewcommand{\exp}{{\color{o}\mathrm{exp}}} 104 | 105 | \LetLtxMacro{\oldsin}{\sin} 106 | \renewcommand{\sin}{{\color{o}\,\oldsin\,}} 107 | \LetLtxMacro{\oldsec}{\sec} 108 | \renewcommand{\sec}{{\color{o}\,\oldsec\,}} 109 | \LetLtxMacro{\oldcos}{\cos} 110 | \renewcommand{\cos}{{\color{o}\,\oldcos\,}} 111 | \LetLtxMacro{\oldcsc}{\csc} 112 | \renewcommand{\csc}{{\color{o}\,\oldcsc\,}} 113 | \LetLtxMacro{\oldtan}{\tan} 114 | \renewcommand{\tan}{{\color{o}\,\oldtan\,}} 115 | \LetLtxMacro{\oldcot}{\cot} 116 | \renewcommand{\cot}{{\color{o}\,\oldcot\,}} 117 | 118 | \LetLtxMacro{\oldsinh}{\sinh} 119 | \renewcommand{\sinh}{{\color{o}\,\oldsinh\,}} 120 | \let\sech\relax % 避免与 physymb 冲突 121 | \newcommand{\sech}{{\color{o}\,\mathrm{sech}\,}} 122 | \LetLtxMacro{\oldcosh}{\cosh} 123 | \renewcommand{\cosh}{{\color{o}\,\oldcosh\,}} 124 | \let\csch\relax % 避免与 physymb 冲突 125 | \newcommand{\csch}{{\color{o}\,\mathrm{csch}\,}} 126 | \LetLtxMacro{\oldtanh}{\tanh} 127 | \renewcommand{\tanh}{{\color{o}\,\oldtanh\,}} 128 | \LetLtxMacro{\oldcoth}{\coth} 129 | \renewcommand{\coth}{{\color{o}\,\oldcoth\,}} 130 | 131 | \LetLtxMacro{\oldarcsin}{\arcsin} 132 | \renewcommand{\arcsin}{{\color{o}\,\oldarcsin\,}} 133 | \LetLtxMacro{\oldarccos}{\arccos} 134 | \renewcommand{\arccos}{{\color{o}\,\oldarccos\,}} 135 | \LetLtxMacro{\oldarctan}{\arctan} 136 | \renewcommand{\arctan}{{\color{o}\,\oldarctan\,}} 137 | 138 | \newcommand{\arcsinh}{{\color{o}\,\mathrm{arcsinh}\,}} 139 | \newcommand{\arccosh}{{\color{o}\,\mathrm{arccosh}\,}} 140 | \newcommand{\arctanh}{{\color{o}\,\mathrm{arctanh}\,}} 141 | 142 | \newcommand{\sinc}{{\color{o}\,\mathrm{sinc}\,}} 143 | 144 | % 函数名要用正体区分 145 | \DeclareMathOperator{\La}{{\color{o}\mathrm{L}}} % 拉盖尔多项式 146 | \DeclareMathOperator{\He}{{\color{o}\mathrm{H}}} % 厄米多项式 147 | \DeclareMathOperator{\Pl}{{\color{o}\mathrm{P}}} % 勒让德多项式 148 | \DeclareMathOperator{\Yl}{{\color{o}\mathrm{Y}}} % 球谐函数 149 | \DeclareMathOperator{\Li}{{\color{o}\mathrm{Li}}} % 多对数函数... 150 | \DeclareMathOperator{\Jb}{{\color{o}\mathrm{J}}} % 贝塞尔函数 151 | \DeclareMathOperator{\No}{{\color{o}\mathrm{N}}} % 诺依曼函数 152 | 153 | 154 | \let\Re\relax 155 | \DeclareMathOperator{\Re}{{\color{o}\mathrm{Re}}} 156 | \let\Im\relax 157 | \DeclareMathOperator{\Im}{{\color{o}\mathrm{Im}}} 158 | % 方便下标 159 | \def\re{_\mathrm{r}} 160 | \def\im{_\mathrm{i}} 161 | 162 | % 定义域和值域 163 | \DeclareMathOperator{\Do}{{\color{o}\mathcal{D}}} 164 | \DeclareMathOperator{\Ra}{{\color{o}\mathcal{R}}} 165 | 166 | \let\sgn\relax % 避免与 physymb 冲突 167 | \DeclareMathOperator{\sgn}{{\color{o}\mathrm{sgn}}} 168 | \let\erf\relax 169 | \DeclareMathOperator{\erf}{{\color{o}\mathrm{erf}}} 170 | 171 | 172 | % 粗体被注册为群,双线被注册为数域,花体泛函,TODO new: 斜粗体为矩阵 173 | \RequirePackage{bm} 174 | 175 | 176 | \DeclareMathOperator{\col}{{\color{o}\mathrm{Col}}} 177 | \DeclareMathOperator{\row}{{\color{o}\mathrm{Row}}} 178 | \let\ker\relax 179 | \DeclareMathOperator{\ker}{{\color{o}\mathrm{Ker}}} 180 | % \let\null\relax % 和 tableofcontents 冲突 181 | \DeclareMathOperator{\nul}{{\color{o}\mathrm{Null}}} 182 | % \let\span\relax % 和虚线 \hdashline 冲突 183 | \DeclareMathOperator{\spa}{{\color{o}\mathrm{Span}}} 184 | 185 | \DeclareMathOperator{\aut}{{\color{o}\mathrm{Aut}}} 186 | \DeclareMathOperator{\inn}{{\color{o}\mathrm{Inn}}} 187 | 188 | % 字母形的算符高亮绿色 189 | \newcommand{\Fo}{{\ensuremath{{\color{o}\mathcal{F}}}}} 190 | \newcommand{\Lp}{{\ensuremath{{\color{o}\mathcal{L}}}}} 191 | 192 | % 与拉氏量密度区分, 不上色 193 | \newcommand{\Lag}{\mathcal{L}} 194 | \newcommand{\cL}{\mathcal{L}} % 线性映射算符的空间 195 | \newcommand{\cP}{\mathcal{P}} % 多项式函数的空间 196 | 197 | 198 | \newcommand{\id}{\,{\color{o}\mathrm{id}}\,} 199 | 200 | % TODO 全都换 operator 新方案 201 | \let\tr\relax 202 | \DeclareMathOperator{\tr}{{\color{o}\mathrm{tr}}} 203 | \let\rank\relax 204 | \DeclareMathOperator{\rank}{{\color{o}\mathrm{rank}}} 205 | \let\dim\relax 206 | \DeclareMathOperator{\dim}{{\color{o}\mathrm{dim}}} 207 | \let\det\relax 208 | \DeclareMathOperator{\det}{{\color{o}\mathrm{det}}} 209 | \DeclareMathOperator{\eig}{{\color{o}\mathrm{eig}}} 210 | \let\diag\relax % 避免与 physymb 冲突 211 | % \newcommand{\diag}[1][]{\,{\color{o}\mathrm{diag}} 212 | % \ifthenelse{\equal{#1}{}}{}{\,\big[\matn[0.9]{#1}}\big]} 213 | \DeclareMathOperator{\diag}{{\color{o}\mathrm{diag}}} 214 | \DeclareMathOperator{\cond}{{\color{o}\mathrm{cond}}} 215 | 216 | % 列矢量化 217 | \DeclareMathOperator{\cvec}{{\color{o}\mathrm{vec}}} 218 | 219 | % TODO E D Cov 等是用 mathrm 还是 mathsf? 220 | % \newcommand{\Ep}{{\color{o}\operatorname{E}}} 221 | \DeclareMathOperator{\Ep}{{\color{o}\mathrm{E}}} 222 | \newcommand{\Dv}{{\color{o}\operatorname{D}}} 223 | \newcommand{\Cov}{{\color{o}\operatorname{Cov}}} 224 | 225 | % \lim \sum 之类不作处理? 226 | % 图画符号(\prime,根号)即使是算符也不上色,因为本身不易混淆,上色很麻烦 ... 227 | \let\mod\relax 228 | \DeclareMathOperator{\mod}{{\color{o}\mathrm{mod}}} 229 | \let\gcd\relax 230 | \DeclareMathOperator{\gcd}{{\color{o}\mathrm{gcd}}} 231 | \let\lcm\relax 232 | \DeclareMathOperator{\lcm}{{\color{o}\mathrm{lcm}}} 233 | 234 | % 字母大型运算符,加粗? 235 | % \LetLtxMacro{\oldmax}{\max} 236 | % % \renewcommand{\max}{\mathop{\boldsymbol\oldmax}} 237 | % \renewcommand{\max}{{\color{o}\oldmax}} 238 | % \LetLtxMacro{\oldmin}{\min} 239 | % % \renewcommand{\min}{\mathop{\boldsymbol\oldmin}} 240 | % \renewcommand{\min}{{\color{o}\oldmin}} 241 | 242 | 243 | 244 | 245 | 246 | %-------------------------------------------------- 247 | % commath 包的进一步扩展,包括导数、偏导数 248 | % \RequirePackage{commath} 这个包实现的不好 →_→ 249 | %-------------------------------------------------- 250 | 251 | 252 | % 单个字母 --------------- 253 | 254 | % 微分算符正体,带指数的用法 \dif[2] TODO: 不要这样用了… 255 | \newcommand{\dif}[1][]{{\color{o}\,\ensuremath{\mathrm{d}}}^{#1}} 256 | % TODO: \ensuremath{\,\mathrm{d}#1\@ifnextchar\dif{\,}{}} 257 | 258 | % 协变导数 259 | \newcommand{\Dif}{{\color{o}\mathrm{D}}} 260 | 261 | % 偏导数 262 | \LetLtxMacro{\oldpartial}{\partial} 263 | \renewcommand{\partial}[1][]{ 264 | \ifthenelse{\equal{#1}{}}{ 265 | {{\color{o}\,\oldpartial}} 266 | }{ 267 | {{\color{o}\,\oldpartial}^{\,#1}} 268 | } 269 | } 270 | 271 | % 矢量微分算符,可作梯度、散度、旋度、拉普拉斯算符 272 | \LetLtxMacro{\oldnabla}{\nabla} 273 | \renewcommand{\nabla}[1][]{{\color{o}\mathbf{\oldnabla}} 274 | \ifthenelse{\equal{#1}{}}{}{_{\!{#1}}} 275 | } 276 | \newcommand{\nablad}[1][]{\nabla[#1]{\color{o}\cdot}} 277 | \newcommand{\nablat}[1][]{\nabla[#1]{\color{o}\times}} 278 | \newcommand{\nablas}[1][]{\nabla[#1]^2} 279 | 280 | \newcommand{\squares}{{\color{o}\square}^2} 281 | 282 | \LetLtxMacro{\olddelta}{\delta} 283 | \renewcommand{\delta}{{\color{o}\olddelta}} 284 | % 克罗内克函数 285 | \newcommand{\delfun}{{\color{o}\olddelta}} 286 | \newcommand{\epsfun}{{\color{o}\varepsilon}} 287 | % 拉普拉斯算符正体,表示相差用斜体(算了还是用▽²表示拉普拉斯算符吧) 288 | \LetLtxMacro{\oldDelta}{\Delta} 289 | \renewcommand{\Delta}{{\color{o}\oldDelta}} 290 | % \renewcommand{\Delta}{{\color{o}\varDelta}} 291 | 292 | % 其它默认斜体 293 | \LetLtxMacro{\oldGamma}{\Gamma} 294 | \renewcommand{\Gamma}{\varGamma} 295 | \LetLtxMacro{\oldLambda}{\Lambda} 296 | \renewcommand{\Lambda}{\varLambda} 297 | \LetLtxMacro{\oldOmega}{\Omega} 298 | \renewcommand{\Omega}{\varOmega} 299 | \LetLtxMacro{\oldTheta}{\Theta} 300 | \renewcommand{\Theta}{\varTheta} 301 | \LetLtxMacro{\oldSigma}{\Sigma} 302 | \renewcommand{\Sigma}{\varSigma} 303 | \LetLtxMacro{\oldPhi}{\Phi} 304 | \renewcommand{\Phi}{\varPhi} 305 | \LetLtxMacro{\oldPsi}{\Psi} 306 | \renewcommand{\Psi}{\varPsi} 307 | \LetLtxMacro{\oldPi}{\Pi} 308 | \renewcommand{\Pi}{\varPi} 309 | 310 | % 克里斯托费尔符号 311 | \newcommand{\Chris}{{\color{o}\oldGamma}} 312 | % 黎曼曲率张量 313 | \newcommand{\Rie}[4]{{\color{o}R}_{#1#2#3}{}^{#4}} 314 | 315 | 316 | % TODO: \mathcal 表示范畴或者描述渐进行为的大O记号,\mathfrak表示李群对应的李代数 \mathfrak{g}, \mathfrak{h} 317 | 318 | % 大小O记号 319 | \newcommand{\bigO}{{\color{o}\mathsf{O}}} 320 | \newcommand{\smallo}{{\color{o}\mathsf{o}}} 321 | 322 | % 排列组合, 我习惯 \Choose \Arrange , 也有叫 Combination Permutation 323 | \newcommand{\Cho}[2]{{\color{o}\mathrm{C}}_{#1}^{#2} } 324 | % \newcommand{\Arr}[2]{\scalebox{0.7}[1]{\color{o}$\mathsf{A}$}_{#1}^{#2}\,} 325 | \newcommand{\Arr}[2]{{\color{o}\mathrm{A}}_{#1}^{#2} } 326 | 327 | % 格式微调 328 | \LetLtxMacro{\oldexists}{\exists} 329 | \renewcommand{\exists}{\oldexists\,} 330 | \LetLtxMacro{\oldforall}{\forall} 331 | \renewcommand{\forall}{\oldforall\,} 332 | \LetLtxMacro{\oldmapsto}{\mapsto} 333 | \renewcommand{\mapsto}{\,\oldmapsto\,} 334 | 335 | % 常微分分式 --------------- 336 | 337 | \newcommand{\od}[3][]{\frac{\dif[#1] #2}{\dif 338 | \ifthenelse{\equal{#1}{}}{#3}{{#3}^{#1}} 339 | }} 340 | % \left. \right| 不好看 341 | % \mathchoice: display, text, script and scriptscript 342 | \newcommand{\odat}[4][]{ \mathchoice 343 | {\od[#1]{#2}{#3}\Big|_{#4}} 344 | {\od[#1]{#2}{#3}\big|_{#4}} 345 | {\od[#1]{#2}{#3}|_{#4}} 346 | {\od[#1]{#2}{#3}|_{#4}} 347 | } 348 | 349 | % 偏微分分式 --------------- 350 | 351 | % physymb 还提供了 pdd, pddd… 以简化高阶导 352 | \newcommand{\pd}[3][]{\frac{\partial[#1] #2}{\partial 353 | \ifthenelse{\equal{#1}{}}{#3}{{#3}^{#1}} 354 | }} 355 | \newcommand{\pdat}[4][]{ \mathchoice 356 | {\Big(\pd[#1]{#2}{#3}\Big)_{#4}} 357 | {\big(\pd[#1]{#2}{#3}\big)_{#4}} 358 | {(\pd[#1]{#2}{#3})_{#4}} 359 | {(\pd[#1]{#2}{#3})_{#4}} 360 | } 361 | \newcommand{\md}[6]{\frac{\partial[#2] #1}{\partial{#3{}^{#4}}\partial{#5{}^{#6}}}} 362 | \newcommand{\mdat}[7]{ \mathchoice 363 | {\left(\dmd{#1}{#2}{#3}{#4}{#5}{#6}\right)_{#7}} 364 | {(\tmd{#1}{#2}{#3}{#4}{#5}{#6})_{#7}} 365 | {(\md{#1}{#2}{#3}{#4}{#5}{#6})_{#7}} 366 | {(\md{#1}{#2}{#3}{#4}{#5}{#6})_{#7}} 367 | } 368 | 369 | 370 | 371 | %-------------------------------------------------- 372 | % esvect 包的进一步扩展,包括矢量、矢量导数、双矢量 373 | \RequirePackage[b]{esvect} %(esvect 能不能出鱼叉型的 vec 啊 ...) 374 | % \RequirePackage{harpoon} 375 | %-------------------------------------------------- 376 | 377 | 378 | % 手写风格的矢量记号 --------------- 379 | 380 | % \RequirePackage{accents} % 和 hyperref 冲突! 381 | \newcommand{\tightoverset}[2]{ 382 | \mathop{#2}\limits^{\vbox to -.5ex{\kern-0.8ex\hbox{$#1$}\vss}}} 383 | 384 | % 矢量与导数 --------------- 385 | 386 | \renewcommand{\vec}[1]{\vv{#1}} 387 | % \renewcommand{\vec}[1]{ 388 | % \ifthenelse{\equal{#1}{i}}{\vv{\imath}}{ 389 | % \ifthenelse{\equal{#1}{j}}{\vv{\jmath}}{ 390 | % \vv{#1} 391 | % } 392 | % } 393 | % } 394 | % \renewcommand{\vec}[1]{\overrightharp{#1}} 395 | \newcommand{\vecd}[1]{\dot{\vec{#1}}} 396 | \newcommand{\vecdd}[1]{\ddot{\vec{#1}}} 397 | 398 | % 方便单位矢量 399 | \newcommand{\ve}[1]{\,{\color{b}\vec{e_{#1}}}} 400 | \newcommand{\veb}[1]{\,{\color{b}\bm{e}_{#1}}} % 矩阵中用粗体表示 401 | \newcommand{\vebco}[1]{\,{\color{b}\bm{e}\co[#1]}} 402 | \newcommand{\vg}[1]{\,{\color{b}\vec{g_{#1}}}} 403 | % 导数 404 | \newcommand{\ved}[1]{\dot{\ve{#1}}} 405 | \newcommand{\vedd}[1]{\ddot{\ve{#1}}} 406 | % 对偶空间基矢 up low 407 | \newcommand{\vel}[1]{\,{\color{b}\bm{e}_{#1}}} % 同 veb, 历史遗留… 408 | \newcommand{\veu}[1]{\,{\color{b}\bm{e}^{#1}}} 409 | \newcommand{\vgl}[1]{\,{\color{b}\bm{g}_{#1}}} 410 | \newcommand{\vgu}[1]{\,{\color{b}\bm{g}^{#1}}} 411 | 412 | % 左矢量 413 | \newcommand{\lvec}[1]{\overset{\rotatebox[origin=c]{180}{\raisebox{-0.7pt}{$\fldr$}}}{#1}} 414 | \newcommand{\lrvec}[1]{\overset{\rotatebox[origin=c]{180}{$\fldr$}\hspace{-3pt}\raisebox{-1.6pt}{$\fldr$}}{#1}} % 在 \lrvec{\partial^\mu} 上效果很好... 415 | 416 | % 发明一种新的记号区分对t求导和对s求导(待议) --------------- 417 | 418 | % \newcommand{\vecp}[1]{\accentset{\prime}{\vv{#1}}} 419 | % \newcommand{\vecpp}[1]{\accentset{\prime\prime}{\vv{#1}}} 420 | % \newcommand{\ap}[1]{\accentset{\prime}{#1}} 421 | 422 | % 双矢量 --------------- 423 | 424 | \newcommand{\vvec}[1]{\raisebox{1pt}{\ensuremath{\overset{ }{\tightoverset{\fldr\joinrel\fldr}{#1}}}}} 425 | \newcommand{\vvecd}[1]{\dot{\vvec{#1}}} 426 | \newcommand{\vvecdd}[1]{\ddot{\vvec{#1}}} 427 | 428 | % 三阶张量 --------------- 429 | 430 | \newcommand{\vvvec}[1]{\overset{ }{\tightoverset{\fldr\joinrel\fldr\joinrel\fldr}{#1}}} 431 | \newcommand{\vvvecd}[1]{\dot{\vvvec{#1}}} 432 | \newcommand{\vvvecdd}[1]{\ddot{\vvvec{#1}}} 433 | 434 | 435 | 436 | %-------------------------------------------------- 437 | % 方便矩阵,包括方括号矩阵、行列式 438 | % 圆括号p,方括号b,花括号B,单竖v,双竖V 439 | \RequirePackage{arydshln} % ,leftidx,mathtools矩阵中画虚线… 440 | % \setlength{\dashlinedash}{.4pt} 441 | % \setlength{\dashlinegap}{.8pt} 442 | \RequirePackage{mathdots} % \iddots 443 | %-------------------------------------------------- 444 | 445 | 446 | % 常用:单列表 447 | 448 | % \newcommand{\tab}[1]{\begin{tabular}{l}% 449 | % #1% 450 | % \end{tabular}% 451 | % } 452 | \newcommand{\tab}[2][c]{% 453 | \begin{tabular}[c]{@{}#1@{}}#2\end{tabular}} 454 | 455 | % 常用:右侧列表 456 | 457 | \newcommand{\tabr}[3][0.5]{ 458 | \begin{tabular}{lr}% 459 | \hspace{-8pt} 460 | \begin{minipage}{#1\textwidth} 461 | {#2} 462 | \end{minipage} 463 | &{\begin{minipage}{{\textwidth-#1\textwidth}} 464 | {#3} 465 | \end{minipage}} 466 | \end{tabular}% 467 | } 468 | 469 | % 一个 \enl 下列举多条内容 470 | 471 | \newcommand{\enlr}[2]{ 472 | \enl{#1} 473 | \vspace{-17pt} 474 | 475 | {\setlength{\parindent}{29pt} 476 | 477 | #2 478 | }} 479 | 480 | 481 | 482 | 483 | % 默认矩阵还是方括号好看 --------------- 484 | 485 | % 自定义缩放 \mat[.7]{x\\y\\z} 486 | \newcommand{\mat}[2][1.0]{\scalebox{#1}{ 487 | \renewcommand{\arraystretch}{.8} 488 | \hspace{-10pt} 489 | \ensuremath{\begin{bmatrix}#2\end{bmatrix}} 490 | \hspace{-8pt} 491 | }} 492 | \newcommand{\matp}[2][1.0]{\scalebox{#1}{ 493 | \renewcommand{\arraystretch}{.8} 494 | \hspace{-10pt} 495 | \ensuremath{\begin{pmatrix}#2\end{pmatrix}} 496 | \hspace{-8pt} 497 | }} 498 | 499 | % 列虚线, 例 ccc:c (行虚线自己加 \hdashline[2pt/2pt] ) 500 | \newcommand{\matdash}[3][1.0]{\scalebox{#1}{\ensuremath{\left[ 501 | \begin{array}{#2} 502 | #3 503 | \end{array} 504 | \right]}}} 505 | 506 | % 行列式 --------------- 507 | 508 | \newcommand{\matd}[2][1.0]{\scalebox{#1}{ 509 | \renewcommand{\arraystretch}{.8} 510 | \hspace{-10pt} 511 | \ensuremath{\begin{vmatrix}\,\,#2\,\,\end{vmatrix}} 512 | \hspace{-8pt} 513 | }} 514 | 515 | % nothing --------------- 516 | 517 | \newcommand{\matn}[2][1.0]{\scalebox{#1}{ 518 | \renewcommand{\arraystretch}{.8} 519 | \hspace{-10pt} 520 | \ensuremath{\begin{matrix}#2\end{matrix}} 521 | \hspace{-8pt} 522 | }} 523 | 524 | \newcommand{\mats}[2][1.0]{\scalebox{#1}{ 525 | \renewcommand{\arraystretch}{.8} 526 | \hspace{-10pt} 527 | \ensuremath{\begin{smallmatrix}#2\end{smallmatrix}} 528 | \hspace{-8pt} 529 | }} 530 | 531 | % 带线矩阵 --------------- 532 | % 用法 {cc:cc} \hdashline[2pt/2pt] 533 | \newcommand{\mata}[3][1.0]{\scalebox{#1}{ 534 | \renewcommand{\arraystretch}{.8} 535 | \ensuremath{\left[\begin{array}{#2} 536 | #3 537 | \end{array}\right]} 538 | }} 539 | 540 | % 左花括号 541 | \newcommand{\leftB}[2][1]{ 542 | \ifthenelse{\equal{#1}{1}}{\{}{} 543 | \ifthenelse{\equal{#1}{2}}{\Bigl\{}{} 544 | \ifthenelse{\equal{#1}{3}}{\Biggl\{}{} 545 | \ifthenelse{\equal{#1}{4}}{\left\{}{} 546 | \,#2 547 | \ifthenelse{\equal{#1}{4}}{\right.}{} 548 | } 549 | % http://tex.stackexchange.com/questions/45001/how-do-i-left-align-entries-in-a-matrix-with-beginmatrix 550 | 551 | % 群论,杨图 --------------- 552 | \RequirePackage{ytableau} 553 | 554 | % 杨图: \ynd{2+2,1+2,2,1} 555 | \newcommand{\ynd}[2][0.6]{\scalebox{#1}{ 556 | \ydiagram{#2} 557 | }} 558 | % 杨盘: \yng[0.5]{a&b\\c} 559 | \newcommand{\yng}[2][0.6]{\scalebox{#1}{ 560 | \begin{ytableau} 561 | #2 562 | \end{ytableau} 563 | }} 564 | 565 | 566 | 567 | %-------------------------------------------------- 568 | % 方便贴图,包括并排插图、右侧贴图 569 | \RequirePackage{graphicx} 570 | \RequirePackage{float} 571 | \RequirePackage{stfloats} 572 | %-------------------------------------------------- 573 | 574 | 575 | 576 | % 普通插图 --------------- 577 | 578 | % \nn[相对宽度]{图片文件名} 579 | \newcommand{\figin}[2][0.99]{ 580 | \includegraphics[width=#1\textwidth]{#2} 581 | } 582 | \newcommand{\figint}[2][0.99]{ 583 | \raisebox{-\totalheight+\baselineskip+20pt}{\includegraphics[width=#1\textwidth]{#2}} 584 | } 585 | \newcommand{\fig}[2][0.99]{ 586 | \begin{figure}[!htb]\centering 587 | \figin[#1]{#2} 588 | \end{figure} 589 | } 590 | 591 | % 并排插图 --------------- 592 | 593 | \newcommand{\figg}[6]{ 594 | \begin{figure}[!htb]\centering 595 | \begin{subfigure}[!htb]{#2\textwidth}\vspace{#3 pt} 596 | \includegraphics[width=\textwidth]{#1} 597 | \end{subfigure} 598 | \begin{subfigure}[!htb]{#5\textwidth}\vspace{#6 pt} 599 | \includegraphics[width=\textwidth]{#4} 600 | \end{subfigure} 601 | \end{figure} 602 | } 603 | \newcommand{\figgg}[9]{ 604 | \begin{figure}[!htb]\centering 605 | \begin{subfigure}[!htb]{#2\textwidth}\vspace{#3 pt} 606 | \includegraphics[width=\textwidth]{#1} 607 | \end{subfigure} 608 | \begin{subfigure}[!htb]{#5\textwidth}\vspace{#6 pt} 609 | \includegraphics[width=\textwidth]{#4} 610 | \end{subfigure} 611 | \begin{subfigure}[!htb]{#8\textwidth}\vspace{#9 pt} 612 | \includegraphics[width=\textwidth]{#7} 613 | \end{subfigure} 614 | \end{figure} 615 | } 616 | \newcommand{\figggr}[9]{ 617 | \begin{figure}[!htb]\raggedleft 618 | \begin{subfigure}[!htb]{#2\textwidth}\vspace{#3 pt} 619 | \includegraphics[width=\textwidth]{#1} 620 | \end{subfigure} 621 | \begin{subfigure}[!htb]{#5\textwidth}\vspace{#6 pt} 622 | \includegraphics[width=\textwidth]{#4} 623 | \end{subfigure} 624 | \begin{subfigure}[!htb]{#8\textwidth}\vspace{#9 pt} 625 | \includegraphics[width=\textwidth]{#7} 626 | \end{subfigure} 627 | \end{figure} 628 | } 629 | 630 | % \RequirePackage{wrapfig} 放弃,文字环绕各种乱跑 631 | % 手动用表格实现混排 --------------- 632 | 633 | \newcommand{\figr}[3]{ 634 | {\setlength{\tabcolsep}{2pt} 635 | \begin{tabular}{@{}p{{\textwidth-#2\textwidth}}p{#2\textwidth}@{}} 636 | \vspace{-14 pt} 637 | {#3} 638 | &{\raisebox{-\totalheight+\baselineskip}{\includegraphics[width=#2\textwidth]{#1}}} 639 | \end{tabular}} 640 | } 641 | \newcommand{\figt}[2][0.99]{ 642 | \raisebox{-.5\height}{\includegraphics[width=#1\textwidth]{#2}} 643 | } 644 | 645 | 646 | %-------------------------------------------------- 647 | % 方便贴源代码 648 | \RequirePackage{listings} 649 | %-------------------------------------------------- 650 | 651 | 652 | % \newcommand{\code}[1]{{\fontspec{Consolas}% 653 | % \begin{lstlisting}[language={[LaTeX]TeX}] % 654 | % #1% 655 | % \end{lstlisting}% 656 | % }} 657 | 658 | % \newcommand{\codev}[1]{{\colorbox{y}{\color{white}\verb|#1|}}} 659 | \newcommand{\code}[1]{\colorbox{y}{\lstinline[basicstyle=\ttfamily\color{w}]|#1|}} 660 | 661 | \newcommand{\file}[1]{{\fcolorbox{y}{w}{\ttfamily{#1}}}} 662 | 663 | 664 | 665 | %-------------------------------------------------- 666 | % LePtC 彩色条目 667 | % \RequirePackage{titlesec} 668 | %-------------------------------------------------- 669 | 670 | 671 | % 其它环境 --------------- 672 | 673 | % 灰色代表注释笔记 674 | % \newcommand{\com}[1]{{\color{y}(#1)}} 675 | \newcommand{\com}[1]{ 676 | \ifmmode{{\color{y}{#1}}} 677 | \else{{\color{y}(#1)}} 678 | \fi} 679 | % \newcommand{\coms}[1]{{\color{y}% 680 | % $\left(\tab{#1}\right)$% 681 | % }} 682 | \newcommand{\coms}[1]{{\color{y}#1}} 683 | 684 | % 方括号代表证明 685 | \newcommand{\prvs}[1]{{\color{g}{#1}}} 686 | \newcommand{\prv}[1]{ 687 | \ifmmode{{\color{g}{\lceil\left. #1 \right.\rfloor}}} 688 | \else{{\color{g}{\!$\lceil$\! #1 \!$\rfloor$\!}}} 689 | \fi} 690 | % \left[ \right]? \left| \right|? \lceil \rfloor? 还是啥都不用省心... 691 | % \newcommand{\prvs}[1]{{\color{g}% 692 | % $\left|\tab{#1}\right|$% 693 | % }} 694 | \newcommand{\prveq}[1]{% {\color{g}{\eq{#1}}}} 695 | {\color{g}{$\lceil\left. #1 \right.\rfloor$}}} 696 | % \newcommand{\prveqd}[1]{{\color{g}{ \eqd{#1}}}} 697 | % {{\color{g}{ \eqd{\Big\lceil\left. #1 \right.\Big\rfloor}}}} 698 | % \newcommand{\prveqa}[1]{{\color{g}{\eqa{#1}}}} 699 | 700 | % 红色尖括号代表链接 701 | % \newcommand{\link}[2][]{{\color{p}{$\langle$#1$-$\nameref{#2}$\rangle$}}} 702 | % 未整合前先用这个 703 | \newcommand{\link}[2][]{{\color{p}{$\langle$#1 #2$\rangle$}}} 704 | 705 | 706 | 707 | %-------------------------------------------------- 708 | % 补充特殊格式 709 | % (物理单位、函数正体,变量、粒子符号斜体) 710 | %-------------------------------------------------- 711 | 712 | % 对于很长的公式,用括号配对更明确,替代 $$ 713 | \newcommand{\eq}[1]{$#1$} % 和中文混排需保证每个 \eq 前有个空格... 714 | \newcommand{\eqd}[1]{$\displaystyle #1$} 715 | \newcommand{\eqa}[1]{$\begin{aligned}#1\end{aligned}$} 716 | % \newcommand{\eqa}[1]{$\begin{align*}#1\end{align*}$} 717 | 718 | \newcommand{\eqn}[2][]{\vspace{-8pt}\begin{equation}\label{#1} #2\end{equation}} 719 | \newcommand{\eqna}[2][]{\eqn{\begin{aligned}\label{#1} #2\end{aligned}}} 720 | 721 | % damn bar... 722 | \renewcommand{\bar}[1]{\overline{#1}} 723 | \newcommand{\tld}[1]{\widetilde{#1}} 724 | 725 | % 物理单位高亮紫色 --------------- 726 | 727 | % 虚数单位正体 728 | % \RequirePackage{bbm} % Mathematica 狂人可设 e i 双线体 \mathbbm{i} 729 | \newcommand{\ii}{\,{\color{b}\mathbf{i}}\,} 730 | \newcommand{\jj}{\,{\color{b}\mathbf{j}}\,} 731 | \newcommand{\kk}{\,{\color{b}\mathbf{k}}\,} 732 | \newcommand{\lli}{\,{\color{b}\mathbf{l}}\,} 733 | 734 | % \RequirePackage{siunitx} % 物理单位紫色,用法\SI{134.976}{MeV} 735 | % 改用下面这种方案了 736 | \newcommand{\uni}[1]{{\ensuremath{\color{b}\ \mathrm{#1}}}} 737 | 738 | \renewcommand{\le}{\leqslant} 739 | \renewcommand{\ge}{\geqslant} 740 | \renewcommand{\preceq}{\preccurlyeq} 741 | \renewcommand{\succeq}{\succcurlyeq} 742 | 743 | % spacing --------------- 744 | 745 | % TODO: 改不了字体? 746 | \renewcommand{\to}{{\color{g}\ensuremath{\,\rightarrow\ }}} 747 | % \renewcommand{\to}{{\ \color{g}\scalebox{1.5}{$\fldr$}\ }} 748 | 749 | % \newcommand{\onto}[2][]{{\color{g}\,\ensuremath{\xrightarrow[#1]{#2}}\,}} 750 | 751 | \LetLtxMacro{\oldRightarrow}{\Rightarrow} 752 | \renewcommand{\Rightarrow}{{\ensuremath{\,\color{g}\oldRightarrow\,}}} 753 | \LetLtxMacro{\oldLeftarrow}{\Leftarrow} 754 | \renewcommand{\Leftarrow}{{\ensuremath{\,\color{g}\oldLeftarrow\,}}} 755 | 756 | \LetLtxMacro{\oldLeftrightarrow}{\Leftrightarrow} 757 | \renewcommand{\Leftrightarrow}{{\ensuremath{\,\color{g}\oldLeftrightarrow\,}}} 758 | \LetLtxMacro{\oldleftrightarrow}{\leftrightarrow} 759 | \renewcommand{\leftrightarrow}{{\ensuremath{\,\color{g}\oldleftrightarrow\,}}} 760 | 761 | % 充要 necessary and sufficient 762 | \newcommand{\ns}{\ifmmode{\,}\fi{\color{g}\ensuremath{\Leftrightarrow}}\,} 763 | % TODO: 怎么只改箭头类字符的字体? 764 | 765 | 766 | 767 | %-------------------------------------------------- 768 | % 补充特殊符号 769 | \RequirePackage{braket} % 提供量子力学常用 770 | \RequirePackage{wasysym} % 提供 \apprge \apprle 771 | \RequirePackage{esint} % 提供 \varoiint,要 overide 掉 amsmath 772 | \RequirePackage{extarrows} % 等号上面写东西 \xlongequal[below]{above} 773 | \RequirePackage{chemarr} % 左右箭头写东西 \xrightleftharpoons[below]{above} 774 | \RequirePackage{slashed} % 协变导数 \cancel 不行? 775 | %-------------------------------------------------- 776 | 777 | % 符号水平移动工具 778 | \makeatletter 779 | \newcommand*{\shifttext}[2]{% 780 | \settowidth{\@tempdima}{#2}% 781 | \makebox[\@tempdima]{\hspace*{#1}#2}% 782 | } 783 | \makeatother 784 | 785 | % 不用下面这种了 786 | % \newcommand{\onequal}[1]{\overset{\text{#1}}{=\joinrel=}} 787 | % \onright 有 \xrightarrow 了 788 | 789 | \newcommand{\LePtC}{L\raisebox{3pt}{e}\hspace{1pt}P\raisebox{-1pt}{\scalebox{0.8}{t}}\hspace{1pt}C} 790 | \newcommand{\LeNote}{L\raisebox{3pt}{e}\hspace{1pt}Note} 791 | 792 | % text 中打 $\sim$ 793 | \newcommand{\tsim}{{\raise.17ex\hbox{\!$\mathtt{\sim}$}}} 794 | \newcommand{\xsim}[2][1.2]{ 795 | \mathrel{\overset{#2}{\scalebox{#1}[1]{$\sim$}}} 796 | } 797 | 798 | % 空集 799 | \renewcommand{\emptyset}{\scalebox{1.15}{$\varnothing$}} 800 | 801 | % 转置 802 | \renewcommand{\T}{{{\color{o}\mathsf{T}}}} 803 | 804 | % 区分一撇 comma 和求导 slash,会覆盖掉 accent commands 805 | \newcommand{\co}[1][]{\ensuremath{\mathchoice 806 | {^{\raisebox{3pt}{$\,,$}}} 807 | {^{\raisebox{3pt}{$\,,$}}} 808 | {^{\scalebox{0.8}{\raisebox{3pt}{$,$}}}} 809 | {^{\scalebox{0.8}{\raisebox{3pt}{$,$}}}} 810 | \ifthenelse{\equal{#1}{}}{}{\kern-1.0ex_{#1}} 811 | }} 812 | % \renewcommand{\b}{^{\backprime}} 813 | 814 | %\RequirePackage{mhchem} % 化学公式 815 | \newcommand{\ce}[1]{\ensuremath{\mathrm{#1}}} 816 | 817 | \newcommand{\abs}[1]{\left|#1\right|} % 已由 physymb 提供 818 | \newcommand{\norm}[1]{\left\lVert{#1}\right\rVert} 819 | 820 | \newcommand{\E}[1]{\times10^{#1}} % 方便数量级 821 | 822 | \newcommand{\con}{{\text{常数}}} % 中文不好使?... 823 | % \newcommand{\con}{Const.} 824 | \newcommand{\cc}{\text{c.c.}} % 复共轭 825 | % \newcommand{\~}{$\sim$} % text 模式用 826 | 827 | % 垂直 \perp 平行 \parallel 但这个平行是竖线,我想要斜的 828 | \newcommand{\para}{{/\mkern-5mu/}} 829 | 830 | % 理论力学, --------------- 831 | 832 | % 动能 833 | \newcommand{\Ek}[1][]{E_{\mathrm{k}#1}} 834 | \newcommand{\Ekco}[1][]{E\co[\mathrm{k}#1]} 835 | % 合力 836 | \newcommand{\FR}[1][]{\vec{F}_{\!\!\mathrm{R}#1}} 837 | % 内力外力 838 | % \newcommand{\inter}{^{(\mathrm{i})}} 839 | % \newcommand{\exter}{^{(\mathrm{e})}} 840 | \newcommand{\inter}{^{\text{内}}} 841 | \newcommand{\exter}{^{\text{外}}} 842 | % 有效势 843 | \newcommand{\Veff}{V_\text{eff}} 844 | \newcommand{\Eeff}{E_\text{eff}} 845 | 846 | % 热学 --------------- 847 | 848 | \newcommand{\kB}{k_\mathrm{B}} 849 | \newcommand{\NA}{N_\mathrm{A}} 850 | % \newcommand{\Tc}{T_\mathrm{c}} % 单个字母下标不能算文字,不然所有下标都是根据英文来的 ( 如 center of mass ) 851 | 852 | % 两种求平均不一样! 853 | \newcommand{\tave}[1]{\overline{#1}} 854 | \newcommand{\pave}[1]{\braket{#1}} 855 | \newcommand{\ppave}[1]{\langle\!\braket{#1}\!\rangle} 856 | 857 | % 电磁学 --------------- 858 | 859 | % \RequirePackage{physymb} % 2015.08 重要新包 860 | % 2016.11 physymb 作者弃坑了,用以下代替 861 | % \RequirePackage{physics} 862 | % \RequirePackage{commath} % 提供 \norm 863 | % \RequirePackage{mandi} % 提供 Griffiths 的 \rr 864 | \RequirePackage{calligra} 865 | \DeclareMathAlphabet{\mathcalligra}{T1}{calligra}{m}{n} 866 | 867 | % Griffiths 的相对位矢 868 | \newcommand{\rr}{{\fontsize{18}{20}{\mathchoice 869 | {\shifttext{-2pt}{\ensuremath{\mathcalligra{r}}}} 870 | {\shifttext{-2pt}{\ensuremath{\mathcalligra{r}}}} 871 | {\scalebox{0.8}{\shifttext{-2pt}{\ensuremath{\mathcalligra{r}}}}} 872 | {\scalebox{0.65}{\shifttext{-2pt}{\ensuremath{\mathcalligra{r}}}}} 873 | }}} 874 | 875 | \newcommand{\emf}{\mathscr{E}} % electromotive force 876 | 877 | \newcommand{\muB}{\mu_\mathrm{B}} % 玻尔磁子 878 | 879 | % 角度,温度 --------------- 880 | 881 | \renewcommand{\deg}{ 882 | \ifmmode{^\circ} 883 | \else{\!\textsuperscript{$\circ$}} 884 | \fi 885 | } 886 | \newcommand{\oA}{\text{\AA}} % angstrom 887 | 888 | \newcommand{\oC}{{\ensuremath{\color{b}\,^{\circ}{\mathrm C}\,}}} 889 | \newcommand{\oF}{{\ensuremath{\color{b}\,^{\circ}{\mathrm F}\,}}} 890 | \newcommand{\oR}{{\ensuremath{\color{b}\,^{\circ}{\mathrm R}\,}}} 891 | 892 | % 光学 --------------- 893 | 894 | \newcommand{\Zhe}{{\text{\fontspec{Adobe Fangsong Std}Ж}}} 895 | 896 | % \newcommand{\no}{n_\mathrm{o}} % 非寻常光?... 897 | 898 | % TODO 左手右手 LR 变正体, 透射反射 TR 不用变? 899 | 900 | % 相对论 --------------- 901 | 902 | \newcommand{\Mp}{M_\mathrm{P}} % 普朗克单位制 903 | \newcommand{\lp}{l_\mathrm{P}} 904 | \newcommand{\tp}{t_\mathrm{P}} 905 | 906 | % 量子力学 --------------- 907 | 908 | \newcommand{\aB}{a_0} % 玻尔半径 909 | \newcommand{\RH}{R_\mathrm{H}} % 里德伯常量 910 | \newcommand{\ladB}{\lambda_{\mathrm{dB}}} % 德布罗意波长 911 | 912 | \newcommand{\hatv}[1]{\ensuremath{\hat{\vec{#1}}}} 913 | \newcommand{\hatvs}[1]{\ensuremath{\hat{\vec{#1}}\raisebox{3pt}{$^2$}}} 914 | 915 | \newcommand{\sigmatot}{\sigma_{\mathrm{tot}}} 916 | 917 | \newcommand{\vBeff}[1][]{\vec{B}_{\text{eff}#1}} 918 | \newcommand{\Beff}[1][]{B_{\text{eff}#1}} 919 | 920 | 921 | % 群论 --------------- 922 | 923 | % \newcommand{\nors}{\trianglelefteq} 924 | 925 | \makeatletter 926 | \newcommand{\nors}{% 927 | \mathrel{\mathpalette\sl@unlhd\relax}% 928 | } 929 | 930 | \newcommand{\sl@unlhd}[2]{% 931 | \sbox\z@{$#1\lhd$}% 932 | \sbox\tw@{$#1\leqslant$}% 933 | \dimen@=\ht\tw@ 934 | \advance\dimen@-\ht\z@ 935 | \ifx#1\displaystyle 936 | \advance\dimen@ .2pt 937 | \else 938 | \ifx#1\textstyle 939 | \advance\dimen@ .2pt 940 | \fi 941 | \fi 942 | \ooalign{\raisebox{\dimen@}{$\m@th#1\lhd$}\cr$\m@th#1\leqslant$\cr}% 943 | } 944 | \makeatother 945 | 946 | 947 | % bar --------------- 948 | 949 | \def\dbar{{{\color{o}\mkern5mu \mathchar'26\mkern-12mu \mathrm{d}}}} 950 | 951 | \makeatletter 952 | \newcommand{\lambdabar}{{\mathchoice 953 | {\smash@bar\textfont\displaystyle{0.25}{1.2}\lambda} 954 | {\smash@bar\textfont\textstyle{0.25}{1.2}\lambda} 955 | {\smash@bar\scriptfont\scriptstyle{0.25}{1.2}\lambda} 956 | {\smash@bar\scriptscriptfont\scriptscriptstyle{0.25}{1.2}\lambda} 957 | }} 958 | \newcommand{\smash@bar}[4]{% 959 | \smash{\rlap{\raisebox{-#3\fontdimen5#10}{$\m@th#2\mkern#4mu\mathchar'26$}}}% 960 | } 961 | \makeatother 962 | 963 | % 子项 964 | \newcommand{\sub}{\ \raisebox{4pt}{$\llcorner$}\ } 965 | 966 | 967 | %-------------------------------------------------- 968 | % 其它常用包 969 | 970 | %-------------------------------------------------- 971 | 972 | 973 | % TEMPLATE --------------- 974 | 975 | \RequirePackage[xetex,colorlinks=true,unicode,pdfencoding=auto]{hyperref} 976 | \hypersetup{ allcolors=[rgb]{0.5,0,0.5} } 977 | 978 | % \RequirePackage[sort&compress]{natbib} % 参考文献包 979 | % \setlength{\bibsep}{0pt} 980 | % \RequirePackage{hypernat} 981 | 982 | \RequirePackage{datetime} % 当前时间 983 | \newcommand{\compiled}{ 984 | \begin{flushright} 985 | \com{\,Last compiled on {\yyyymmdddate\today} at {\hhmmsstime}\,} 986 | \end{flushright} 987 | } 988 | 989 | \RequirePackage{ulem} % 删除线 \sout{...} 990 | \RequirePackage{soul} % 高亮工具 \hl{高亮} \st{删除} \ul{下划线} 991 | 992 | % http://tex.stackexchange.com/questions/48706/feynmf-doesnt-produce-feynman-diagram-at-all-in-txc 993 | % \RequirePackage{feynmp} % 用法:记得给整个文档包上 994 | % \begin{fmffile}{feynman} 995 | % \end{fmffile} 996 | 997 | 998 | 999 | 1000 | \endinput 1001 | -------------------------------------------------------------------------------- /tex/latex/lenote/moele.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LePtC/LeNote/8471b50a66e0f9b91d900810be2a7723759ed59a/tex/latex/lenote/moele.png --------------------------------------------------------------------------------