Difference between revisions of "Latex Packages"
(fix titles) |
m (tabulate p is similar to tabularx x) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 24: | Line 24: | ||
=== array === | === array === | ||
This is a LaTeX specific package. ConTeXt has built-in support for math arrays. | This is a LaTeX specific package. ConTeXt has built-in support for math arrays. | ||
+ | |||
+ | === babel === | ||
+ | ConTeXt is multilingual by default; see {{cmd|mainlanguage}}, {{cmd|language}}, {{cmd|setuplanguage}}. | ||
=== calc === | === calc === | ||
Line 75: | Line 78: | ||
Longtable allows you to write tables that continue to the next page. | Longtable allows you to write tables that continue to the next page. | ||
− | [[ | + | [[Tabulate]] can break over pages. For [[TABLE]] floats, you can set <tt>split=yes</tt>. |
+ | |||
+ | === makeindex === | ||
+ | ConTeXt has builtin (multi-)index support. | ||
=== minted === | === minted === | ||
Line 89: | Line 95: | ||
=== pdfdraftcopy === | === pdfdraftcopy === | ||
This package allows one to place a word "Draft" on the page background. In ConTeXt the same result can be achieved using [[Layers]]. See [[Alternating backgrounds and repeating layers]] for an example. | This package allows one to place a word "Draft" on the page background. In ConTeXt the same result can be achieved using [[Layers]]. See [[Alternating backgrounds and repeating layers]] for an example. | ||
+ | |||
+ | === polyglossia === | ||
+ | ConTeXt is multilingual by default; see {{cmd|mainlanguage}}, {{cmd|language}}, {{cmd|setuplanguage}}. | ||
=== rawfonts === | === rawfonts === | ||
Line 105: | Line 114: | ||
=== tabularx === | === tabularx === | ||
− | Unfortunately, none of ConTeXt’s table modes has columns that “take the rest width”; with [[TABLE]]s, you can set <tt>option=stretch</tt> to spread the remaining space over all columns. | + | Unfortunately, none of ConTeXt’s table modes has columns that “take the rest width”, but [[Tabulate]]’s <tt>p</tt> columns without defined width come close; with [[TABLE]]s, you can set <tt>option=stretch</tt> to spread the remaining space over all columns. |
=== trace === | === trace === |
Latest revision as of 14:09, 15 May 2024
Contents
- 1 afterpage
- 2 amsmath
- 3 array
- 4 babel
- 5 calc
- 6 dcolumn
- 7 enumerate
- 8 fileerr
- 9 fontsmpl
- 10 ftnright
- 11 glossaries
- 12 hhline
- 13 indentfirst
- 14 layout
- 15 longtable
- 16 makeindex
- 17 minted
- 18 multicol
- 19 noindentafter
- 20 pdfdraftcopy
- 21 polyglossia
- 22 rawfonts
- 23 showkeys
- 24 somedefs
- 25 theorem
- 26 tabularx
- 27 trace
- 28 varioref
- 29 verbatim
- 30 xr
- 31 xspace
afterpage
Implements a command that causes the commands specified in its argument to be expanded after the current page is output. ConTeXt gives finer control using \startpostponing
\startpostponing [pagenumber] [+pageoffset] \startpostponing[2] PAGE 2 \blank \stoppostponing \startpostponing[+1] PAGE +1 \blank \stoppostponing \startpostponing[+2] PAGE +2 \blank \stoppostponing \starttext \dorecurse{4}{\input tufte \page} \stoptext
amsmath
This is the most popular package for typesetting mathematics in LaTeX. All relevant features of amsmath are in ConTeXt-core.
array
This is a LaTeX specific package. ConTeXt has built-in support for math arrays.
babel
ConTeXt is multilingual by default; see \mainlanguage, \language, \setuplanguage.
calc
Calculations are possible with \numexpr or \dimexpr, also in arguments to counters.
dcolumn
The dcolumn package makes use of the array package to define a "D" column format for use in tabular environments.
In ConTeXt, you can define the alignment character for the different tables. In Tabulate, you use a cg(.) column, in TABLE#Using_character_alignment TABLE you use alignmentcharacter={.},aligncharacter=yes.
enumerate
ConTeXt has builtin support for all the functionality of the enumerate package. Look at the documentation of \setupitemize
fileerr
Provides files to be used in subverting the response to TeX’s "file not found" errors, when running LaTeX.
ConTeXt LMTX never stops to ask for a file name, either it breaks or there’s just a warning in the log (for modules, images, fonts etc.).
fontsmpl
Provides a package which defines a command \fontsample (which will print a sample of the current font), and a document which prompts for a font family name (such as "cmr") and prints a sampler of the whole family.
In ConTeXt, you can see the details of a font by \showfontstrip which shows a summary of the current font, and \showfont which shows the current font, and can also show an arbitrary font.
ftnright
Assembles footnotes on two-column pages at the bottom of the right hand column.
(Don’t know, never tried.)
glossaries
This is the most popular package for typesetting glossaries. Similar features are available using \definesynonyms in ConTeXt.
hhline
This is a LaTeX table specific command for double horizontal lines.
TABLEs can have lines in different styles (color, thickness), no double lines per default, but you can use MetaPost.
indentfirst
In ConTeXt you can achieve the same effect by
\setupheads[indentnext=yes]
layout
ConTeXt’s \showlayout command has a similar function.
longtable
Longtable allows you to write tables that continue to the next page.
Tabulate can break over pages. For TABLE floats, you can set split=yes.
makeindex
ConTeXt has builtin (multi-)index support.
minted
ConTeXt’s \starttyping has syntax highlighting options. See Verbatim_text for more details. The vim
and scite
Modules provide even more options.
multicol
See Columns.
noindentafter
This package provides macros \NoIndentAfterEnv
and \NoIndentAfterCmd
to disable indentation even if there is empty line after an environment. In ConTeXt, similar functionality is achieved by indentnext=no
setting of the environment. For single cases, use \indentation or \noindentation.
pdfdraftcopy
This package allows one to place a word "Draft" on the page background. In ConTeXt the same result can be achieved using Layers. See Alternating backgrounds and repeating layers for an example.
polyglossia
ConTeXt is multilingual by default; see \mainlanguage, \language, \setuplanguage.
rawfonts
This makes no sense in ConTeXt (and not even in LaTeX).
showkeys
The showkeys package modifies the \label, \ref, \pageref, \cite and \bibitem commands so that the "internal" key is printed, without affecting the appearance of the rest of the text, so far as is possible (the keys typically appear in the margin).
AFAIK, ConTeXt does not have this functionality. A partial solution is using [[Command/version[temporary]|\version[temporary]]] which gives a list of references used on the current page.
somedefs
LaTeX specific package trickery, makes no sense in ConTeXt.
theorem
This is not a recommended LaTeX package. See \startenumeration how to setup theorems.
tabularx
Unfortunately, none of ConTeXt’s table modes has columns that “take the rest width”, but Tabulate’s p columns without defined width come close; with TABLEs, you can set option=stretch to spread the remaining space over all columns.
trace
This is a LaTeX specific package for debugging.
ConTeXt has several \show… commands as well as Trackers and directives.
varioref
ConTeXt provides similar functionality using \somewhere.
verbatim
This is a reimplementation of LaTeX’s verbatim environment.
ConTeXt has \starttyping which is more powerful than LaTeX’s verbatim environment. See Verbatim_text for more details.
xr
The package provides a means of creating references to labels in another file
See References#References_to_an_external_file
xspace
ConTeXt has \autoinsertnextspace which is equivalent. However, this is (and will) remain undocumented and unsupported, since Hans does not like this kind of behaviour.