🦀 ClawHub
LaTeX
by @ivangdavila
Write LaTeX documents with correct syntax, packages, and compilation workflow.
TERMINAL
clawhub install latex📖 About This Skill
name: LaTeX description: Write LaTeX documents with correct syntax, packages, and compilation workflow. metadata: {"clawdbot":{"emoji":"📐","os":["linux","darwin","win32"]}}
Special Characters
\# \$ \% \& \_ \{ \} \textbackslash\textasciitilde not \~ (that's an accent)\textasciicircum not \^\textbackslash not \\ (that's line break)Quotes & Dashes
` not "; closing: ''—never use straight " quotes, en-dash -- (ranges: 1--10), em-dash --- (punctuation) not -1 in textMath Mode
or \(...\); display: \[...\] or equation environment environment, not multiple equations for auto-sizing delimiters—must be pairedSpacing
or \ : \LaTeX{} or \LaTeX\ is between number and unit: 5~km thin, \: medium, \; thick, \quad \qquadPackages
order matters—hyperref almost always last + fontenc for UTF-8: \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} for images, booktabs for professional tables, amsmath for advanced math for better typography—load early, subtle but significant improvementFloats (Figures & Tables)
suggests placement: here, top, bottom, page—not commands from float package to force inside float, not center environment—label references the last numbered elementReferences
and \pageref—first pass collects, second uses immediately after \caption or inside environment being labeled makes refs clickable—but can break with some packagesTables
for inline, table float for numbered with caption: \toprule, \midrule, \bottomrule—no vertical lines removes padding: \begin{tabular}{@{}lll@{}}; multirow needs multirow packageImages
—no extension often betterCommon Errors
hyphenation hints, or allow \sloppy: math command used in text mode adds page break, \input doesn't—use \input for fragmentsDocument Structure
—all \usepackage and settings after \begin{document} if using \title, \author, \date for short docs, report for chapters without parts, book` for full books