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
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
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
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
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
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
TrueType Font in pdfTeX - III Preface You can use an tool: otftotfm, which can work with both *.ttf(sometimes may fail) and *.otf. Also see the answer in How do I use TrueType Fonts with PDFTeX using otftotfm? Example - ‘arial.ttf 2024-09-29 LaTeX #font