not `-1` in text\n\n## Math Mode\n\n- Inline: `$... LaTeX · Skills-SI Market or `\\(...\\)`; display: `\\[...\\]` or `equation` environment\n- Text inside math: `$E = mc^2 \\text{ where } m \\text{ is mass} LaTeX · Skills-SI Market \n- Multiline equations: `align` environment, not multiple `equation`s\n- `\\left( ... \\right)` for auto-sizing delimiters—must be paired\n\n## Spacing\n\n- Command followed by text needs `{}` or `\\ `: `\\LaTeX{}` or `\\LaTeX\\ is`\n- Non-breaking space: `~` between number and unit: `5~km`\n- Force space in math: `\\,` thin, `\\:` medium, `\\;` thick, `\\quad` `\\qquad`\n\n## Packages\n\n- `\\usepackage` order matters—`hyperref` almost always last\n- `inputenc` + `fontenc` for UTF-8: `\\usepackage[utf8]{inputenc}` `\\usepackage[T1]{fontenc}`\n- `graphicx` for images, `booktabs` for professional tables, `amsmath` for advanced math\n- `microtype` for better typography—load early, subtle but significant improvement\n\n## Floats (Figures & Tables)\n\n- `[htbp]` suggests placement: here, top, bottom, page—not commands\n- LaTeX may move floats far from source—use `[H]` from `float` package to force\n- Always use `\\centering` inside float, not `center` environment\n- Caption before `\\label`—label references the last numbered element\n\n## References\n\n- Compile twice to resolve `\\ref` and `\\pageref`—first pass collects, second uses\n- `\\label` immediately after `\\caption` or inside environment being labeled\n- For bibliography: latex → bibtex → latex → latex (4 passes)\n- `hyperref` makes refs clickable—but can break with some packages\n\n## Tables\n\n- `tabular` for inline, `table` float for numbered with caption\n- Use `booktabs`: `\\toprule`, `\\midrule`, `\\bottomrule`—no vertical lines\n- `@{}` removes padding: `\\begin{tabular}{@{}lll@{}}`\n- Multicolumn: `\\multicolumn{2}{c}{Header}`; multirow needs `multirow` package\n\n## Images\n\n- Path relative to main file or set with `\\graphicspath{{./images/}}`\n- Prefer PDF/EPS for pdflatex/latex; PNG/JPG for photos\n- `\\includegraphics[width=0.8\\textwidth]{file}`—no extension often better\n\n## Common Errors\n\n- Overfull hbox: line too long—rephrase, add `\\-` hyphenation hints, or allow `\\sloppy`\n- Missing ` LaTeX · Skills-SI Market : math command used in text mode\n- Undefined control sequence: typo or missing package\n- `\\include` adds page break, `\\input` doesn't—use `\\input` for fragments\n\n## Document Structure\n\n- Preamble before `\\begin{document}`—all `\\usepackage` and settings\n- `\\maketitle` after `\\begin{document}` if using `\\title`, `\\author`, `\\date`\n- `article` for short docs, `report` for chapters without parts, `book` for full books\n","licenseDocuments":[]}}
인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
문서 및 사무 · SKILL.md

LaTeX

LaTeX

Write LaTeX documents with correct syntax, packages, and compilation workflow.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: LaTeX slug: latex version: 1.0.0 description: Write LaTeX documents with correct syntax, packages, and compilation workflow. homepage: https://clawic.com/skills/latex metadata: clawdbot: emoji: 📐 os: - linux - darwin - win32 displayName: LaTeX

Special Characters

  • Reserved chars need escape: \# \$ \% \& \_ \{ \} \textbackslash
  • Tilde as character: \textasciitilde not \~ (that's an accent)
  • Caret: \textasciicircum not \^
  • Backslash in text: \textbackslash not \\ (that's line break)

Quotes & Dashes

  • Opening quotes: `` not "; closing: ''—never use straight " quotes
  • Hyphen -, en-dash -- (ranges: 1--10), em-dash --- (punctuation)
  • Minus in math mode: $-1$ not -1 in text

Math Mode

  • Inline: $...$ or \(...\); display: \[...\] or equation environment
  • Text inside math: $E = mc^2 \text{ where } m \text{ is mass}$
  • Multiline equations: align environment, not multiple equations
  • \left( ... \right) for auto-sizing delimiters—must be paired

Spacing

  • Command followed by text needs {} or \ : \LaTeX{} or \LaTeX\ is
  • Non-breaking space: ~ between number and unit: 5~km
  • Force space in math: \, thin, \: medium, \; thick, \quad \qquad

Packages

  • \usepackage order matters—hyperref almost always last
  • inputenc + fontenc for UTF-8: \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}
  • graphicx for images, booktabs for professional tables, amsmath for advanced math
  • microtype for better typography—load early, subtle but significant improvement

Floats (Figures & Tables)

  • [htbp] suggests placement: here, top, bottom, page—not commands
  • LaTeX may move floats far from source—use [H] from float package to force
  • Always use \centering inside float, not center environment
  • Caption before \label—label references the last numbered element

References

  • Compile twice to resolve \ref and \pageref—first pass collects, second uses
  • \label immediately after \caption or inside environment being labeled
  • For bibliography: latex → bibtex → latex → latex (4 passes)
  • hyperref makes refs clickable—but can break with some packages

Tables

  • tabular for inline, table float for numbered with caption
  • Use booktabs: \toprule, \midrule, \bottomrule—no vertical lines
  • @{} removes padding: \begin{tabular}{@{}lll@{}}
  • Multicolumn: \multicolumn{2}{c}{Header}; multirow needs multirow package

Images

  • Path relative to main file or set with \graphicspath{{./images/}}
  • Prefer PDF/EPS for pdflatex/latex; PNG/JPG for photos
  • \includegraphics[width=0.8\textwidth]{file}—no extension often better

Common Errors

  • Overfull hbox: line too long—rephrase, add \- hyphenation hints, or allow \sloppy
  • Missing $: math command used in text mode
  • Undefined control sequence: typo or missing package
  • \include adds page break, \input doesn't—use \input for fragments

Document Structure

  • Preamble before \begin{document}—all \usepackage and settings
  • \maketitle after \begin{document} if using \title, \author, \date
  • article for short docs, report for chapters without parts, book for full books
저장한 Skills