pTeX-ng Installation 本文仅供参考,不要盲目复制运行本文的命令,可以参考本文中的错误解决方式 准备 其实安装 ptex-ng 主要就是两个阶段: 编译得到 ptex-ng, platex-ng 这两个可执行文件 生成对应的 fmt 格式文件: ptex-ng.fmt, platex-ng.fmt 在 Linux 下使用 gcc 编译一般不太有问题, 我也没有遇 2024-12-02 LaTeX #TeX #pTeX-ng
Titlesec Notes Preface How to make such command: 1234567891011121314151617% interface% #1: name% #2: level\cs_new:Npn \__title_new:nn #1#2 { }% #1: name% #2: indent, beforeskip, afterskip, % style(t 2024-11-18 LaTeX #title #toc
LaTeX Output Routine Plain TeX Introduction Plain TeX 中可以单独定义每一个页面的size, offset,后者可以得到 book 的 twoside. 一个基本的页面格式设置样例: 12345678910\hsize=6.5in\vsize=2in\hoffset=.5in\voffset=3in\headline={AAA\hrulefill BBB}\footl 2024-11-16 LaTeX #OTR
Coding in TeX Preface Example 你也许在部分的模板或者是宏包中看到过类似下面的东西, 那么这些东西是啥意思呢 ? 12^^M^^J 如果你熟悉 ASCII 码表的话,你会发现这两个东西和 脱出字符表示 比较相似. 比如 回车(CR) 的脱出字符表示为: ^M . 而 换行(LF) 的表示为 ^J . 我们在后文会介绍的这个东西的,但是在介绍之前,你需要先了解部分的基础知识,关于字符和编码的基础知识 2024-11-14 LaTeX #Font
LaTeX Hook management internal hook commands Some internal hook commands defined in LaTeX2e, for example the \g@addto@macro macro: 12345\long\def\g@addto@macro#1#2{% \begingroup \toks@\expandafter{#1#2}% 2024-11-12 LaTeX #Hook
Physics 2 mechanism internal commands Some pre-defined macros: 123456\expandafter\def\csname phy@ab@chk\string*\endcsname{}\expandafter\def\csname phy@ab@chk\string\big\endcsname{}\expandafter\def\csn 2024-11-12 LaTeX #xparse
Marker in TeX - II Main stages 2 stages to of constructing pages: finding page breaks shipping out completed pages to a PDF file The internal \ps@<style> : The \ps@<style> command defines the macros \@od 2024-11-12 LaTeX #marker
Math mode in LaTeX Preliminery If you are NOT fimilar with catcode, mathcode, delcode etc, please see my blog: TeX Coding or other material to learn it fisrt. If you are not familar with LaTeX text font and math font, y 2024-10-30 LaTeX #font #math
Label, Ref and Hyperref in LaTeX preface We will introduce \label-\ref commands first, Then move into Hyperref. \p@COUNTER and \refstepcounter What is these commands used for ? see : Use of \p@COUNTER. For a mwe, see below: 1234567\s 2024-10-30 LaTeX #hyperref #label/ref
LaTeX Font Guide Note font shape See the problems below: What is Font Shape ? (Maybe call this typeface? ) Does Font shape rely on encoding, family, series ? Which files provide these (font) shape? See a simple example: 2024-10-02 LaTeX #font