매크로와 프로그래밍
매크로 정의명령 정의(\newcommand): \newcommand{\x}[n]{...}・옵션 arg [기본]・\providecommand・\DeclareRobustCommand・명령 재정의(\renewcommand): \renewcommand・기존의 Redefining・\let・인수를 받는 매크로: # 1... # 9・정렬 수 [n]・기본 설정・매크로 인수 제한: 최대 9 args・Fragile 명령・\protect・유용한 매크로: 일반 단축키・Robust 명령・매크로를 얼마나 사용할지: 읽을 수 있는 균형・Semantic 매크로・명령 이름 짓기: Starred 명령・clashes를 피하십시오사용자 정의 환경(\newenvironment)\newenvironment・\renewenvironment・args 환경카운터와 길이\newcounter・\setcounter・\addtocounter・\value・\stepcounter・\newlength・\setlength・\addtolengthxparse(\NewDocumentCommand)\NewDocumentCommand・아르그 spec (m o s)・\IfNoValueTFexpl3 / LaTeX3 계층\ExplSyntaxOn・\cs_new:Npn・\tl_set:Nn・\seq_ / \prop_・\clist_・l3 modules프로그래밍 보조 도구etoolbox / ifthen / calc: \newtoggle・\ifdef・\ifblank・\AtBeginDocument・\appto・\pretocmd・키-값 인터페이스(pgfkeys): \pgfkeys・.store in・Handlers・\pgfqkeys카테고리 코드와 \makeatletter\catcode・\makeatletter・\makeatother・@로 명령패키지와 클래스 작성스타일 파일 작성: .sty structure・\ProvidesPackage・\newcommand・패키지 작성: \ProvidesPackage・\RequirePackage・.sty 파일・\DeclareOption