Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Add acronyms to your documents using this module.
Define and render acronyms in a document, where the first occurrance is the long variant, and the next ones are the shorter variant.
Synopsis
- pacronym :: PackageName
- footnote :: LaTeXC l => l
- nohyperlinks :: LaTeXC l => l
- printonlyused :: LaTeXC l => l
- withpage :: LaTeXC l => l
- smaller :: LaTeXC l => l
- dua :: LaTeXC l => l
- nolist :: LaTeXC l => l
- newtype Acronym = Acronym {}
- ac :: LaTeXC l => Acronym -> l
- acf :: LaTeXC l => Acronym -> l
- acs :: LaTeXC l => Acronym -> l
- acl :: LaTeXC l => Acronym -> l
- acp :: LaTeXC l => Acronym -> l
- acfp :: LaTeXC l => Acronym -> l
- acsp :: LaTeXC l => Acronym -> l
- aclp :: LaTeXC l => Acronym -> l
- acfi :: LaTeXC l => Acronym -> l
- acsu :: LaTeXC l => Acronym -> l
- aclu :: LaTeXC l => Acronym -> l
- iac :: LaTeXC l => Acronym -> l
- iac2 :: LaTeXC l => Acronym -> l
- ac' :: LaTeXC l => Acronym -> l
- acf' :: LaTeXC l => Acronym -> l
- acs' :: LaTeXC l => Acronym -> l
- acl' :: LaTeXC l => Acronym -> l
- acp' :: LaTeXC l => Acronym -> l
- acfp' :: LaTeXC l => Acronym -> l
- acsp' :: LaTeXC l => Acronym -> l
- aclp' :: LaTeXC l => Acronym -> l
- acfi' :: LaTeXC l => Acronym -> l
- acsu' :: LaTeXC l => Acronym -> l
- aclu' :: LaTeXC l => Acronym -> l
- iac' :: LaTeXC l => Acronym -> l
- iac2' :: LaTeXC l => Acronym -> l
- acresetall :: LaTeXC l => l
- acused :: LaTeXC l => Acronym -> l
- acroextra :: LaTeXC l => l -> l
- acronym :: LaTeXC l => l -> l
- acro :: LaTeXC l => String -> l -> l -> (l, Acronym)
- acro' :: LaTeXC l => String -> l -> (l, Acronym)
- acroM :: Monad m => String -> LaTeXT m () -> LaTeXT m () -> LaTeXT m Acronym
- acroM' :: Monad m => String -> LaTeXT m () -> LaTeXT m Acronym
Acronym package
pacronym :: PackageName Source #
The pacronym
package.
usepackage [] pacronym
Package options
footnote :: LaTeXC l => l Source #
Redefines the `acf` and `acfp` commands making the full name appear as a footnote
nohyperlinks :: LaTeXC l => l Source #
If hyperref is loaded, all acronyms will link to their glossary entry. With
the nohyperlinks
option, these links are suppressed.
printonlyused :: LaTeXC l => l Source #
We need a marker which is set if the option printonlyused
was used.
smaller :: LaTeXC l => l Source #
The option smaller
leads to a redefinition of `acsfont`. We want to make
the acronym appear smaller. Since this should be done in a
context-sensitive way, we rely on the macro textsmaller provided by the
relsize
package. As `RequiredPackage` cannot be used inside
`DeclareOption`, we need a boolean variable.
The option dua
stands for "don't use acronyms". It leads to a
redefinition of `ac` and `acp` making the full name appear all the time
and suppressing all acronyms but the explicitly requested by `acf` and
`acfp`.
Types
An acronym type with a label, this is used to generate commands linked to this acronym.
ac :: LaTeXC l => Acronym -> l Source #
Enter an acronym inside the text. The first time the acronym is used, it
will specify the full name, and between parenthesis, the short name. If you
specified the footnote
option, it will print the short name, and add a
footnote with the long name. The next time, only the short time is printed.
acf :: LaTeXC l => Acronym -> l Source #
You can use this command to later in the text again print the full name of the acronym, this stands for "full acronym", it always prints the full name, and the acronym between parenthesis.
acs :: LaTeXC l => Acronym -> l Source #
This will enter the short version of the acronym inside the text.
acl :: LaTeXC l => Acronym -> l Source #
This will enter the expanded version of the acronym in the text, without mentioning the acronym between parenthesis.
acp :: LaTeXC l => Acronym -> l Source #
This works the same way as ac
, except that it will make the short and the
long forms into plurals.
acfp :: LaTeXC l => Acronym -> l Source #
This works the same way as acf
, except tah it will make the short and
long forms into plurals.
acsp :: LaTeXC l => Acronym -> l Source #
Works the same way as acs
, but makes the short form into a plural.
aclp :: LaTeXC l => Acronym -> l Source #
Works the same way as acl
, but makes the long form into a plural.
acfi :: LaTeXC l => Acronym -> l Source #
Prints the full name acronym in italics and the abbreviated form in an upshaped form.
acsu :: LaTeXC l => Acronym -> l Source #
Prints the short form of the acronym, and marks it as used.
iac :: LaTeXC l => Acronym -> l Source #
Works the same way as the ac
command, but prefixes it with an appropriate
indefinite article.
iac2 :: LaTeXC l => Acronym -> l Source #
Works the same way as the ac
command, but prefixes it with an appropriate
upper case indefinite article.
ac' :: LaTeXC l => Acronym -> l Source #
Enter an acronym inside the text. It will specify the full name, and
between parenthesis, the short name. If you specified the footnote
option, it will print the short name, and add a footnote with the long
name. This does not mark the acronym as used.
acf' :: LaTeXC l => Acronym -> l Source #
You can use this command to later in the text again print the full name of the acronym, this stands for "full acronym", it always prints the full name, and the acronym between parenthesis. This does not mark the acronym as used.
acs' :: LaTeXC l => Acronym -> l Source #
This will enter the short version of the acronym inside the text. This does not mark the acronym as used.
acl' :: LaTeXC l => Acronym -> l Source #
This will enter the expanded version of the acronym in the text, without mentioning the acronym between parenthesis. This does not mark the acronym as used.
acp' :: LaTeXC l => Acronym -> l Source #
This works the same way as ac
, except that it will make the short and the
long forms into plurals. This does not mark the acronym as used.
acfp' :: LaTeXC l => Acronym -> l Source #
This works the same way as acf
, except tah it will make the short and
long forms into plurals. This does not mark the acronym as used.
acsp' :: LaTeXC l => Acronym -> l Source #
Works the same way as acs
, but makes the short form into a plural. This
does not mark the acronym as used.
aclp' :: LaTeXC l => Acronym -> l Source #
Works the same way as acl
, but makes the long form into a plural. This
does not mark the acronym as used.
acfi' :: LaTeXC l => Acronym -> l Source #
Prints the full name acronym in italics and the abbreviated form in an upshaped form. This does not mark the acronym as used.
acsu' :: LaTeXC l => Acronym -> l Source #
Prints the short form of the acronym, and marks it as used. This does not mark the acronym as used.
aclu' :: LaTeXC l => Acronym -> l Source #
Prints the long form of the acronym and marks it as used. This does not mark the acronym as used.
iac' :: LaTeXC l => Acronym -> l Source #
Works the same way as the ac
command, but prefixes it with an appropriate
indefinite article. This does not mark the acronym as used.
iac2' :: LaTeXC l => Acronym -> l Source #
Works the same way as the ac
command, but prefixes it with an appropriate
upper case indefinite article. This does not mark the acronym as used.
acresetall :: LaTeXC l => l Source #
acused :: LaTeXC l => Acronym -> l Source #
Marks an acronym as useed, as if it has been called with ac
, but without
printing anything. In the future, only the short form of the acronym will
be printed. acresetall
undoes this.
acroextra :: LaTeXC l => l -> l Source #
This can be used inside the acro
part to add extra data to the list of
acrynyms, this will *not* be included when rendering the acronym in the
document itself.
acronym :: LaTeXC l => l -> l Source #
Define an acronym environment to write the acronym definitions to.
acro :: LaTeXC l => String -> l -> l -> (l, Acronym) Source #
Define an acronym with a label and both a short, and a long name. This
returns the LaTeX code to define the acronym, and the Acronym
object
to use in the rest of the code.
acro' :: LaTeXC l => String -> l -> (l, Acronym) Source #
Define an acronym with a label, and only a long name. This returns the
LaTeX code to define the acronym, and the Acronym
object to use in the
rest of the code.