Debian Codegraph @

texmf-dist/doc/latex/easyfloats/content/x3_other-packages.tex

raw
1 % !TeX root = ../easyfloats.tex
2
3 \section{Other packages}
4 \label{other-packages}
5
6 This section lists other packages which may be useful in combination with this package.
7
8 \pkgdoc{placeins}
9 When loaded with the `section` package option it prevents floats from floating to another section.
10 It provides the `\FloatBarrier` command which prevents floats from floating past a certain point.
11 \pkgdoc{flafter}
12 ensures that floats are not placed before their inclusion in the source code.
13 (With the placement=t it is possible that they are placed on the top of the same page.)
14 \pkgdoc{booktabs}
15 for formatting tables.
16 This is loaded by default unless you use the package option \pkgoptn{nobooktabs}.
17 Please read sections 1 and~2 of the \pkg{booktabs} documentation~\autocite{booktabs}.
18 \pkgdoc{xcolor}
19 When loaded with the package option \pkgoptn{table} it provides commands for coloring tables.
20
21 `\rowcolor{<color>}` sets a background color for a single row. See \cref{local-definitions-in-tables}.
22
23 `\rowcolors{<firstrow>}{<oddcolor>}{<evencolor>}` can be used with the `exec` key and sets alternating row colors for the entire table.
24
25 \pkgdoc{array}
26 extends the column specification syntax and defines the `\newcolumntype` command to define custom column types.
27 It also changes the approach how rules are drawn but that is irrelevant if you apply \pkg{booktabs}' guidelines~\autocite[section~2 \sectionname{The layout of formal tables}]{booktabs}.
28 This is loaded by default unless you use the package option \pkgoptn{noarray}.
29 \pkgdoc{siunitx}
30 for typesetting numbers and units.
31 It provides the `S` column to align numbers at their decimal separator.
32 \pkgdoc{tabularx}
33 A table where the columns adapt to the width of the table, not the other way around.
34 Unlike `tabular*` the space goes into the columns, not between the columns.
35 \pkgdoc{longtable}
36 provides tables where a pagebreak is allowed,
37 see \cref{longtable}.
38 This can be loaded automatically with the package option \pkgoptn{longtable}.
39 \pkgdoc{hyperref}
40 automatically creates links in the pdf document for example from references to floating objects.
41 By default links are set in a red box, you can disable the red box with the package option `hidelinks`.
42 With the package option `pdfusetitle` it automatically sets the pdf title and author based on `\title` and `\author`.
43 \pkg{hyperref} should usually be loaded last.
44 \pkgdoc{varioref}
45 automatically inserts a page reference (e.g. \enquote{on the following page} or \enquote{on page~42}) after the reference if the reference is on a different page than the label when using `\vref{<label>}`/`\Vref{<label>}`, see the example in \cref{vref}.
46 \pkgdoc{cleveref}
47 automatically inserts the type of reference (e.g. \enquote{figure} or \enquote{section}) in front of the reference when using `\cref{<label>}`/`\Cref{<label>}` (defined by \pkg{cleveref}) or `\vref{<label>}`/`\Vref{<label>}` (defined by \pkg{varioref}).
48 With the `nameinlink` package option the type in front of the number becomes part of the link created by hyperref.
49 By default `\cref`/`\vref` (to be used inside of a sentence) use abbreviations but `\Cref`/`\Vref` (to be used at the beginning of a sentence) do not because abbreviating at the beginning of a sentence is considered bad style~\autocite{texexchange_abbrev_bad_style}.
50 Abbreviations can be disabled with the `noabbrev` option.
51 \pkg{cleveref} must be loaded last, even after \pkg{hyperref}.
52 See the example in \cref{vref}.
53 \pkgdoc{biblatex}
54 If you input graphics you need to specify the source.
55 Biblatex creates an entire bibliography for you.
56 \pkgdoc{tikz}
57 is an amazingly powerful package to create your own graphics in \LaTeX.
58 \pkgdoc{newfloat} provides a more modern command to define new floating environments than the \pkg{float} package.
59 \pkgdoc{minted} provides syntax highlighting for source code.
60 \endpkgdoc
61
62
63 For more information about floats see \url{https://latexref.xyz/Floats.html} (it seems this is an html version of the above quoted pdf~\autocite{latex2e}).