Difference between revisions of "Latex Packages"
m (Text replacement - "</cmd>" to "}}") |
m (Text replacement - "<cmd>" to "{{cmd|") |
||
Line 1: | Line 1: | ||
== The LaTeX standard tools bundle == | == The LaTeX standard tools bundle == | ||
==== afterpage ==== | ==== 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 | + | 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 {{cmd|startpostponing}} |
<texcode> | <texcode> | ||
Line 33: | Line 33: | ||
==== enumerate ==== | ==== enumerate ==== | ||
− | Context has builting support for all the functionality of enumerate package. Look at the documentation of | + | Context has builting support for all the functionality of enumerate package. Look at the documentation of {{cmd|setupitemize}} |
==== fileerr ==== | ==== fileerr ==== | ||
Line 41: | Line 41: | ||
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. | 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 | + | In ConTeXt, you can see the details of a font by {{cmd|showfontstrip}} which shows a summary of the current font, and {{cmd|showfont}} which shows the current font, and can also show an arbitrary font. |
==== ftnright ==== | ==== ftnright ==== | ||
Line 57: | Line 57: | ||
==== layout ==== | ==== layout ==== | ||
− | Context has an inbuilt | + | Context has an inbuilt {{cmd|showlayout}} command, but that does not give a ''visual'' output like the layout package. |
==== longtable ==== | ==== longtable ==== | ||
Line 64: | Line 64: | ||
==== multicol ==== | ==== multicol ==== | ||
− | Context has | + | Context has {{cmd|startcolumns}} and columnsets that support the features of multicol. |
==== rawfonts ==== | ==== rawfonts ==== | ||
Line 72: | Line 72: | ||
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). | 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 | + | AFAIK, Context does not have this functionality. A partial solution is using {{cmd|version[temporary]}} which gives a list of refernces used on the current page. |
==== somedefs ==== | ==== somedefs ==== | ||
Line 78: | Line 78: | ||
==== theorem ==== | ==== theorem ==== | ||
− | This is not a recommended latex package. Context's | + | This is not a recommended latex package. Context's {{cmd|startenumeration}} has a lot of the functionality of theorems. |
==== tabularx ==== | ==== tabularx ==== | ||
Line 88: | Line 88: | ||
==== varioref ==== | ==== varioref ==== | ||
− | Context provides similar functionality using | + | Context provides similar functionality using {{cmd|somewhere}} |
==== verbatim ==== | ==== verbatim ==== | ||
− | This is a reimplementation of Latex's verbatim environment. Context has | + | This is a reimplementation of Latex's verbatim environment. Context has {{cmd|starttyping}} which is equivalent to verbatim environment in Latex. See [[Verbatim_text]] for more details |
==== xr ==== | ==== xr ==== | ||
Line 97: | Line 97: | ||
==== xspace ==== | ==== xspace ==== | ||
− | Context has | + | Context has {{cmd|autoinsertnextspace}} which is equivalent. However, this is (and will) remain undocumented and unsupported, since Hans does not like this kind of behaviour. |
== Other Packages == | == Other Packages == | ||
Line 106: | Line 106: | ||
==== glossaries ==== | ==== glossaries ==== | ||
− | This is the most popular package for typesetting glossaries. Similar features are available using | + | This is the most popular package for typesetting glossaries. Similar features are available using {{cmd|definesynonyms}} in ConTeXt. |
==== pdfdraftcopy ==== | ==== pdfdraftcopy ==== |
Revision as of 13:27, 9 August 2020
The LaTeX standard tools bundle
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
array
This is a latex specific package.
calc
I think that with etex, these things are trivial in context. I am not sure of the details. --Aditya
dcolumn
The dcolumn package makes use of the array package to define a "D" column format for use in tabular environments.
Context has support for such features, however, I need to look up the details. --Aditya
enumerate
Context has builting support for all the functionality of 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.
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.
hhline
This is a latex table specefic command.
indentfirst
In context you can achieve the same effect by
\setupheads[indentnext=yes]
layout
Context has an inbuilt \showlayout command, but that does not give a visual output like the layout package.
longtable
Longtable allows you to write tables that continue to the next page. Context has support for this, but I do know too much about it. Perhaps someone else can elaborate on this. --Aditya 04:10, 25 August 2006 (CEST)
multicol
Context has \startcolumns and columnsets that support the features of multicol.
rawfonts
This is a latex font specific package
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 refernces used on the current page.
somedefs
This is a latex specific package.
theorem
This is not a recommended latex package. Context's \startenumeration has a lot of the functionality of theorems.
tabularx
trace
This is a latex specific package for debugging.
varioref
Context provides similar functionality using \somewhere
verbatim
This is a reimplementation of Latex's verbatim environment. Context has \starttyping which is equivalent to verbatim environment in Latex. See Verbatim_text for more details
xr
The package provides a means of creating references to labels in another 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.
Other Packages
amsmath
This is the most popular package for typesetting mathematics in LaTeX. Most of the features of amsmath are in ConTeXt-core.
glossaries
This is the most popular package for typesetting glossaries. Similar features are available using \definesynonyms in ConTeXt.
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.
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.