mirror of
https://github.com/vincentdoerig/latex-css.git
synced 2026-04-02 23:58:54 -06:00
LaTeX-inspired utility classes #4
Labels
No labels
bug
enhancement
enhancement
invalid
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github/latex-css#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vincentdoerig on 2/16/2025
I noticed that a few LaTeX inspired utility classes would be a good addition to recreate common LaTeX type and spacing commands. The nomenclature is inspired by Tailwind CSS while maintaining the semantic meaning of LaTeX commands. This would allow users to quickly apply LaTeX-like styling without writing custom CSS.
.text-justifytext-align: justify;.text-rightor.text-ragged-righttext-align: right;\raggedright(default from #79).text-leftor.text-ragged-lefttext-align: left;\raggedleft.text-centertext-align: center;\centering.text-tinyfont-size: ??;\tiny.text-scriptsizefont-size: ??;\scriptsize.text-footnotefont-size: ??;\footnotesize.text-smallfont-size: ??;\small.text-largefont-size: ??;\large.text-xlargefont-size: ??;\Large.vspace-smmargin-top: 1em; margin-bottom: 1em;\vspace{1em}.vspace-mdmargin-top: 2em; margin-bottom: 2em;\vspace{2em}.cols-2column-count: 2;\begin{multicols}{2}.cols-3column-count: 3;\begin{multicols}{3}.font-sansfont-family: var(--font-sans);\textsf{text}.font-monofont-family: var(--font-mono);\texttt{text}.indent-parstext-indent: var(--text-indent-size);.no-indenttext-indent: 0;\noindent(already in library).list-alphalist-style-type: lower-alpha;\begin{enumerate}[a)].list-romanlist-style-type: lower-roman;\begin{enumerate}[i)]I will try to find the right values for the text sizing.
I'm open to discuss adding more spacing utilities (e.g.
hspace-*) or other common commands that would benefit from having a utility class.