smallcaps: Flatten camel case text in LaTeX files
smallcaps is a pre-processor library for LaTeX files.
The library comes with an executable that makes most
functionality accessible through a command line interface.
The pre-processor formats sequences of uppercase letters
with TeX's \small macro or whatever you configure.
Uppercase letters at the beginning of sentences are not
formatted. Other formatting conditions can be configured by
the user.
The executable can be configured through its command line arguments as well as through TeX comments. In the default configuration, lesscase does not change the content of any macro argument or environment (different from document). More and less restrictive configuration profiles can be activated and adapted. Configurations can be stored and restored at any time, even while processing the input file.
- Text.SmallCaps
- exports the main program as library.
- Text.SmallCaps.Config
- specifies the default configuration values for Text.SmallCaps.
- Text.SmallCaps.TeXParser
- parses
Textto aTeXElementtoken stream. - Text.SmallCaps.TeXLaTeXParser
- parses a
TeXElementtoken stream and produces aLaTeXElementtoken stream. - Text.SmallCaps.DocumentParser
- replaces uppercase letters in
LaTeXElementtoken streams.
A simple program can be defined as
import Data.Default ( def ) import Text.SmallCaps ( smallcaps ) import Text.SmallCaps.Config ( defaultProfile ) main = smallcaps def defaultProfile
Modules
[Index]
Downloads
- smallcaps-0.5.1.1.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.3.0.0, 0.4, 0.4.0.1, 0.4.1, 0.4.1.1, 0.4.1.2, 0.4.1.3, 0.5.0.0, 0.5.1.0, 0.5.1.1, 0.6.0.0, 0.6.0.1, 0.6.0.2, 0.6.0.3, 0.6.0.4, 0.6.0.5, 0.6.0.6 |
|---|---|
| Dependencies | attoparsec (>=0.10 && <0.13), base (>=4.6 && <4.8), containers (>=0.5 && <0.6), data-default (>=0.5 && <0.6), directory (>=1.2 && <1.3), filepath (>=1.3 && <1.4), parsec (>=3.1 && <3.2), smallcaps (>=0.5 && <0.6), text (>=0.11 && <1.3), transformers (>=0.3 && <0.5) [details] |
| License | BSD-3-Clause |
| Author | Stefan Berthold |
| Maintainer | stefan.berthold@gmx.net |
| Revised | Revision 2 made by StefanBerthold at 2014-09-10T08:22:55Z |
| Category | Text, LaTeX |
| Bug tracker | https://github.com/ZjMNZHgG5jMXw/smallcaps/issues |
| Source repo | head: git clone https://github.com/ZjMNZHgG5jMXw/smallcaps.git |
| Uploaded | by StefanBerthold at 2014-08-17T17:47:08Z |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Executables | lesscase |
| Downloads | 12118 total (16 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Successful builds reported [all 1 reports] |