返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
L

LaTeX

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

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
2,221
下载量
6
收藏
概述
安装方式
版本历史

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 `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

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 latex-1776327806 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 latex-1776327806 技能

通过命令行安装

skillhub install latex-1776327806

下载 Zip 包

⬇ 下载 LaTeX v1.0.0

文件大小: 2.23 KB | 发布时间: 2026-4-17 14:35

v1.0.0 最新 2026-4-17 14:35
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部