stfwn
  • Introduction
  • Calculus
    • Gradient
    • Taylor Series
    • Miscellaneous
  • Computer Science
    • Basic Architecture and Assembly
  • Fixes & Snippets
    • Docker
    • HTML
    • LaTeX
    • Linux
    • Node.js
    • Miscellaneous
  • Linear Algebra
    • Orthogonality
    • The Gram-Schmidt Process
    • QR-Factorization
    • Orthogonal Diagonalization
    • Quadratic Forms
    • Least Squares Theorem
    • Singular Value Decomposition
    • Pseudoinverse
  • Miscellaneous
    • Digital Safety
    • Homelab
    • Links
    • Music
  • Reading
Powered by GitBook
On this page
  • Tables
  • Variable column widths with left-aligned text
  • ISO 8601 date format in title
  1. Fixes & Snippets

LaTeX

Tables

Variable column widths with left-aligned text

% Preamble
\usepackage{array}                                                                   
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}

% Document.
\begin{tabular}{ L{2cm}, L{3cm}}
...
\end{tabular}

ISO 8601 date format in title

% Preamble
\usepackage[yyyymmdd]{datetime}                                                      
\renewcommand{\dateseparator}{--}
PreviousHTMLNextLinux

Last updated 5 years ago