-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Parse, format and processing BibTeX files -- -- This package allows parsing, formatting and processing of BibTeX -- files. BibTeX files are databases for literature for the natbib -- package of the LaTeX typesetting system. -- -- The package contains two examples: -- -- -- -- Both examples will be build as stand-alone executable when running -- --
--   cabal install -fbuildExamples bibtex
--   
-- -- For the first example see the tex directory of this package. -- You can start the program and build an example document by running -- --
--   make pubs
--   
-- -- Technically the program generates a list of custom \nocite -- commands for the LaTeX package multibib. You can add the -- custom bibtex field subtype to BibTeX entries for more -- detailed categorization of an entry. See tex/publications.bib -- for examples. -- -- The second example can be executed using -- --
--   make hackbib
--   
-- -- The file hackage.bib is written to the current directory. The -- program reads an uncompressed tar archive from standard input and -- writes the result bibliography file to standard output. @package bibtex @version 0.0.3 module Text.LaTeX.Character toUnicodeString :: String -> String fromUnicodeString :: String -> String table :: [(String, String)] module Text.BibTeX.Entry data T Cons :: String -> String -> [(String, String)] -> T entryType :: T -> String identifier :: T -> String fields :: T -> [(String, String)] -- | Convert the name style "Surname, First name" into "First name -- Surname". flipName :: String -> String lowerCaseFieldNames :: T -> T instance Show T module Text.BibTeX.Format entry :: T -> String enumerate :: [String] -> String authorList :: [String] -> String commaSepList :: [String] -> String sepList :: Char -> [String] -> String module Text.BibTeX.Parse file :: Parser [T] comment :: Parser String entry :: Parser T assignment :: Parser (String, String) value :: Parser String texSequence :: Char -> Parser String texBlock :: Char -> Parser String identifier :: Parser String bibIdentifier :: Parser String -- | Extends a parser, such that all trailing spaces are skipped. It might -- be more comfortable to skip all leading zeros, but parser written that -- way are hard to combine. This is so, since if you run two parsers in -- parallel and both of them expect leading spaces, then the parser -- combinator does not know which one of the parallel parsers to choose. skippingSpace :: Parser a -> Parser a -- | Split a string at the commas and remove leading spaces. splitCommaSepList :: String -> [String] -- | Split a string containing a list of authors in BibTeX notation. splitAuthorList :: String -> [String] splitSepList :: Char -> String -> [String]