Add paragraph indentation and hfill
This commit is contained in:
1 parent
bad477fbee
commit
e44d4c8669
11 files changed
+362
-42
No files matched your search
@@ -121,8 +121,9 @@ the `.tex` file passed to `serve`.
|
||||
It handles document metadata, `\maketitle`, and `\today` (UTC),
|
||||
A4 pages, `geometry` margins (`margin`, `top`, `right`, `bottom`, `left`,
|
||||
`hmargin`, and `vmargin` with `mm`, `cm`, `in`, `pt`, or `bp` units), paragraphs,
|
||||
numbered and starred heading levels, bold, italic and monospaced text, itemize/enumerate
|
||||
lists, page breaks, basic display and inline math, figures, simple tables,
|
||||
numbered and starred heading levels, paragraph indentation (`\parindent`),
|
||||
`\hfill`, bold, italic and monospaced text, itemize/enumerate lists, page
|
||||
breaks, basic display and inline math, figures, simple tables,
|
||||
section/figure/table references, and numeric citations from a manual bibliography
|
||||
or a local `.bib` file. A4 pages use 25 mm margins unless
|
||||
`geometry` sets them. Liberation Serif is embedded in the PDF for Latin and math
|
||||
@@ -205,8 +206,9 @@ current line overflow like an overfull TeX hbox rather than wrapping.
|
||||
|
||||
`\checkmark`, `\textdagger`, `\textdaggerdbl`, `\textperiodcentered`,
|
||||
`\textsection`, `\textparagraph`, `\textbrokenbar`, and `\textvisiblespace`
|
||||
expand to `✓ † ‡ · § ¶ ¦ ␣`. `\hfill` is still unsupported (the line breaker
|
||||
does not stretch infinite glue on the last line).
|
||||
expand to `✓ † ‡ · § ¶ ¦ ␣`. `\hfill` and `\hfil` are infinite horizontal
|
||||
glue: they stretch the current line to the right margin, including the last
|
||||
line of a paragraph.
|
||||
|
||||
Numeric/unit symbols `\textperthousand`, `\textonehalf`, `\textonequarter`,
|
||||
`\textthreequarters`, `\textonesuperior`, `\texttwosuperior`,
|
||||
@@ -324,6 +326,11 @@ Manual `thebibliography` entries also work. Custom `.bst` sorting and formatting
|
||||
author-year citation styles, page-number references, and automatic table of
|
||||
contents are not implemented.
|
||||
|
||||
A paragraph starts with the current `\parindent` (17pt by default); the
|
||||
indent is recorded per paragraph and follows group scoping, `\setlength`,
|
||||
`\addtolength`, and `\noindent`. Headings and `\maketitle` suppress the
|
||||
next paragraph's indent.
|
||||
|
||||
Boxworks' Knuth–Plass line breaker lays out ordinary text paragraphs with the
|
||||
same Latin, CJK, and monospaced font faces used by the PDF renderer, including
|
||||
bold and italic variants, and applies font pair kerning to line-break widths.
|
||||
@@ -445,7 +452,7 @@ advisory breaks, starred `\vspace`/`\hspace`, `center`, `\hrule`, `\fbox`,
|
||||
| --- | --- | --- |
|
||||
| Boxes | `\rule`, `\fbox`, `\parbox`, inline `\mbox`/`\makebox`, `center`, `\hrule` | inline framed `\fbox`, `\raisebox`, `\minipage`, VBox |
|
||||
| Fonts | serif/mono faces, bold/italic/mono declarations, group scoping, uppercase small caps | `\sffamily` (sans face), real small-cap glyphs |
|
||||
| Paragraphs | Knuth-Plass breaking, TeX hyphenation, justification, centering | explicit indentation (`\parindent`) |
|
||||
| Paragraphs | Knuth-Plass breaking, TeX hyphenation, justification, centering, `\parindent` (17pt default), `\hfill`/`\hfil` | `\raggedright`/`\raggedleft` |
|
||||
| Notes/floats | — | footnote insertion area, figure/table floats |
|
||||
| Pages | A4/Letter/... page sizes, margins/geometry, automatic pagination, `\newpage`, `\pagebreak` | headers/footers (`fancyhdr`), unified planner/renderer |
|
||||
| Classes/packages | built-in + local classes, option protocol, local package options | base font-size options (10/11/12pt) |
|
||||
|
||||
Reference in new issue
Block a user