Skip to content
Back to skills

Latex Document Authoring Guidance

ASecurity

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

  • 37 stars
  • 0 votes
  • 0 copies
  • 12 views
  • Added September 19, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add rondoflow/rondoflow --skill latex-document-authoring-guidance --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Latex Document Authoring Guidance?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Latex Document Authoring Guidance
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-latex-document-authoring-guidance/badge)](https://www.skillsdirectory.com/skills/rondoflow-latex-document-authoring-guidance)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: latex-document-authoring-guidance
description: "Write LaTeX documents with correct syntax, packages, and compilation workflow."
category: "Content & Writing"
author: community
version: "1.0.0"
icon: pencil
---

## 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 `equation`s
- `\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

Files in this skill

  • SKILL.md3.2 KB
  • manifest.json313 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.