{
  "name": "LaTeX Rule, Line, and Strut Command Specifications",
  "description": "Comparative specifications of LaTeX and TeX rule, line, and strut commands across the core engine and standard extension packages, compiled from the LaTeX2e reference manual, TeX FAQ, CTAN booktabs documentation, and Overleaf technical guides.",
  "page": "https://casrai.org/guides/rule-latex",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-14T22:39:19Z",
  "temporalCoverage": "2020-2026",
  "spatialCoverage": "Global",
  "columns": [
    {
      "name": "Command",
      "unit": "",
      "description": "LaTeX or TeX command macro name"
    },
    {
      "name": "Engine or Package Scope",
      "unit": "",
      "description": "Originating distribution package or typesetting engine layer"
    },
    {
      "name": "Syntax Specification",
      "unit": "",
      "description": "Documented command arguments and parameter structure"
    },
    {
      "name": "Default Thickness",
      "unit": "pt",
      "description": "Standard stroke thickness in points at default settings"
    },
    {
      "name": "Vertical Raise Support",
      "unit": "",
      "description": "Built-in mechanism for adjusting vertical baseline offset"
    },
    {
      "name": "Primary Layout Role",
      "unit": "",
      "description": "Primary intended function in scientific document typography"
    }
  ],
  "rows": [
    {
      "Command": "\\rule",
      "Engine or Package Scope": "LaTeX2e Kernel",
      "Syntax Specification": "\\rule[raise]{width}{thickness}",
      "Default Thickness": 0.4,
      "Vertical Raise Support": "Native optional [raise] argument",
      "Primary Layout Role": "Arbitrary lines, solid rectangular boxes, and custom struts"
    },
    {
      "Command": "\\hrulefill",
      "Engine or Package Scope": "LaTeX2e Kernel",
      "Syntax Specification": "\\hrulefill",
      "Default Thickness": 0.4,
      "Vertical Raise Support": "None (fixed to current font baseline)",
      "Primary Layout Role": "Horizontal divider lines expanding to fill remaining line width"
    },
    {
      "Command": "\\dotfill",
      "Engine or Package Scope": "LaTeX2e Kernel",
      "Syntax Specification": "\\dotfill",
      "Default Thickness": 0.4,
      "Vertical Raise Support": "None (dots follow font baseline)",
      "Primary Layout Role": "Horizontal leader dots across table of contents and indexes"
    },
    {
      "Command": "\\hrule",
      "Engine or Package Scope": "Plain TeX Primitive",
      "Syntax Specification": "\\hrule height X depth Y width Z",
      "Default Thickness": 0.4,
      "Vertical Raise Support": "Direct depth and height keyword specifications",
      "Primary Layout Role": "Low-level vertical-mode horizontal divider across text block"
    },
    {
      "Command": "\\vrule",
      "Engine or Package Scope": "Plain TeX Primitive",
      "Syntax Specification": "\\vrule width X height Y depth Z",
      "Default Thickness": 0.4,
      "Vertical Raise Support": "Direct depth and height keyword specifications",
      "Primary Layout Role": "Low-level horizontal-mode vertical column and margin dividers"
    },
    {
      "Command": "\\strut",
      "Engine or Package Scope": "LaTeX2e Kernel",
      "Syntax Specification": "\\strut",
      "Default Thickness": 0,
      "Vertical Raise Support": "Fixed depth 0.3 baselineskip and height 0.7 baselineskip",
      "Primary Layout Role": "Standard zero-width vertical spacing and baseline stabilization"
    },
    {
      "Command": "\\hline",
      "Engine or Package Scope": "LaTeX Tabular Kernel",
      "Syntax Specification": "\\hline",
      "Default Thickness": 0.4,
      "Vertical Raise Support": "None (governed by \\arrayrulewidth)",
      "Primary Layout Role": "Full-width horizontal rule between table rows"
    },
    {
      "Command": "\\cline",
      "Engine or Package Scope": "LaTeX Tabular Kernel",
      "Syntax Specification": "\\cline{i-j}",
      "Default Thickness": 0.4,
      "Vertical Raise Support": "None (governed by \\arrayrulewidth)",
      "Primary Layout Role": "Partial horizontal rule spanning specified table columns i to j"
    },
    {
      "Command": "\\toprule",
      "Engine or Package Scope": "booktabs (v1.61803398)",
      "Syntax Specification": "\\toprule[thickness]",
      "Default Thickness": 0.8,
      "Vertical Raise Support": "Built-in vertical padding via \\belowrulesep",
      "Primary Layout Role": "Formal publication table header boundary rule"
    },
    {
      "Command": "\\midrule",
      "Engine or Package Scope": "booktabs (v1.61803398)",
      "Syntax Specification": "\\midrule[thickness]",
      "Default Thickness": 0.5,
      "Vertical Raise Support": "Built-in padding via \\aboverulesep and \\belowrulesep",
      "Primary Layout Role": "Column heading separator in empirical research tables"
    },
    {
      "Command": "\\bottomrule",
      "Engine or Package Scope": "booktabs (v1.61803398)",
      "Syntax Specification": "\\bottomrule[thickness]",
      "Default Thickness": 0.8,
      "Vertical Raise Support": "Built-in vertical padding via \\aboverulesep",
      "Primary Layout Role": "Table footer boundary rule above notes and attribution"
    },
    {
      "Command": "\\qedsymbol",
      "Engine or Package Scope": "amsthm Package",
      "Syntax Specification": "\\qedsymbol",
      "Default Thickness": 0.4,
      "Vertical Raise Support": "Aligned to text or math baseline",
      "Primary Layout Role": "Solid Halmos box indicating the end of a formal proof"
    }
  ],
  "sources": [
    {
      "title": "LaTeX2e: An unofficial reference manual (\\rule)",
      "url": "https://latexref.xyz/_005crule.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "LaTeX2e: An unofficial reference manual (\\strut)",
      "url": "https://latexref.xyz/_005cstrut.html",
      "accessed": "2026-11-14"
    },
    {
      "title": "The TeX FAQ (The thickness of rules in LaTeX tables)",
      "url": "https://texfaq.org/FAQ-rulethk",
      "accessed": "2026-11-14"
    },
    {
      "title": "The TeX FAQ (Spacing lines in tables)",
      "url": "https://texfaq.org/FAQ-struttab",
      "accessed": "2026-11-14"
    },
    {
      "title": "CTAN booktabs package documentation",
      "url": "https://ctan.org/pkg/booktabs",
      "accessed": "2026-11-14"
    },
    {
      "title": "Overleaf: Lengths in LaTeX",
      "url": "https://www.overleaf.com/learn/latex/Lengths_in_LaTeX",
      "accessed": "2026-11-14"
    }
  ]
}