Safe Haskell | None |
---|---|
Language | Haskell2010 |
Text.LaTeX.Packages.BibLaTeX
Contents
Description
BibLaTeX
is a reference-citation package using .bib
files (BibTeX) but no extra style-files.
Synopsis
- biblatex :: PackageName
- addbibresource :: LaTeXC l => FilePath -> l
- cite :: LaTeXC l => l -> l
- printbibliography :: LaTeXC l => l
- documentWithDOIReferences :: (MonadIO m, LaTeXC (m ()), Semigroup (m ()), r ~ DOIReference) => (r -> m (Maybe T)) -> ReferenceQueryT r m () -> m ()
- type PlainDOI = String
- citeDOI :: forall (m :: Type -> Type). (Functor m, Monoid (m ()), IsString (m ())) => PlainDOI -> String -> ReferenceQueryT DOIReference m ()
- textc :: forall (m :: Type -> Type). Functor m => ReferenceQueryT DOIReference m () -> ReferenceQueryT DOIReference m ()
- textC :: forall (m :: Type -> Type). Functor m => ReferenceQueryT DOIReference m () -> ReferenceQueryT DOIReference m ()
- data DOIReference
- data ReferenceQueryT r (m :: Type -> Type) a
- applyDOIReferenceResolves :: (MonadIO m, LaTeXC (m ()), Semigroup (m ()), r ~ DOIReference) => (r -> m (Maybe T)) -> ReferenceQueryT r m () -> m (Map DOIReference T, m ())
- masterBibFile :: MonadIO m => FilePath -> DOIReference -> m (Maybe T)
Documentation
biblatex :: PackageName Source #
BibLaTeX package. Use it to import it like this:
usepackage [] biblatex
addbibresource :: LaTeXC l => FilePath -> l Source #
Use a bibliography file as resource for reference information.
printbibliography :: LaTeXC l => l Source #
Automatic bibliography retrieval
documentWithDOIReferences Source #
Arguments
:: (MonadIO m, LaTeXC (m ()), Semigroup (m ()), r ~ DOIReference) | |
=> (r -> m (Maybe T)) | Reference-resolver function, for looking up BibTeX
entries for a given DOI.
If the DOI cannot be looked up ( |
-> ReferenceQueryT r m () | The document content, possibly containing citations in DOI-only form. |
-> m () | LaTeX rendition. The content will already be wrapped
in |
All-inclusive preparation of a document containing DOI references.
Uses applyDOIReferenceResolves
under the hood.
Arguments
:: forall (m :: Type -> Type). (Functor m, Monoid (m ()), IsString (m ())) | |
=> PlainDOI | The unambiguous document identifier. |
-> String | Synopsis of the cited work, in the form
|
-> ReferenceQueryT DOIReference m () |
textc :: forall (m :: Type -> Type). Functor m => ReferenceQueryT DOIReference m () -> ReferenceQueryT DOIReference m () Source #
Transform a citation into \textcite
, i.e. so that it can be used as a noun in a sentence.
textC :: forall (m :: Type -> Type). Functor m => ReferenceQueryT DOIReference m () -> ReferenceQueryT DOIReference m () Source #
Transform a citation into \Textcite
, i.e. so that it can be used as the first word in a sentence.
data DOIReference Source #
Instances
data ReferenceQueryT r (m :: Type -> Type) a Source #
Instances
MonadIO m => MonadIO (ReferenceQueryT r m) Source # | |||||
Defined in Text.LaTeX.Packages.BibLaTeX Methods liftIO :: IO a -> ReferenceQueryT r m a # | |||||
Applicative m => Applicative (ReferenceQueryT r m) Source # | |||||
Defined in Text.LaTeX.Packages.BibLaTeX Methods pure :: a -> ReferenceQueryT r m a # (<*>) :: ReferenceQueryT r m (a -> b) -> ReferenceQueryT r m a -> ReferenceQueryT r m b # liftA2 :: (a -> b -> c) -> ReferenceQueryT r m a -> ReferenceQueryT r m b -> ReferenceQueryT r m c # (*>) :: ReferenceQueryT r m a -> ReferenceQueryT r m b -> ReferenceQueryT r m b # (<*) :: ReferenceQueryT r m a -> ReferenceQueryT r m b -> ReferenceQueryT r m a # | |||||
Functor m => Functor (ReferenceQueryT r m) Source # | |||||
Defined in Text.LaTeX.Packages.BibLaTeX Methods fmap :: (a -> b) -> ReferenceQueryT r m a -> ReferenceQueryT r m b # (<$) :: a -> ReferenceQueryT r m b -> ReferenceQueryT r m a # | |||||
Monad m => Monad (ReferenceQueryT r m) Source # | |||||
Defined in Text.LaTeX.Packages.BibLaTeX Methods (>>=) :: ReferenceQueryT r m a -> (a -> ReferenceQueryT r m b) -> ReferenceQueryT r m b # (>>) :: ReferenceQueryT r m a -> ReferenceQueryT r m b -> ReferenceQueryT r m b # return :: a -> ReferenceQueryT r m a # | |||||
(Applicative m, LaTeXC (m a), Semigroup (m a), a ~ ()) => LaTeXC (ReferenceQueryT r m a) Source # | |||||
Defined in Text.LaTeX.Packages.BibLaTeX Methods liftListL :: ([LaTeX] -> LaTeX) -> [ReferenceQueryT r m a] -> ReferenceQueryT r m a Source # | |||||
(Applicative m, Semigroup (m a), Monoid (m a), a ~ ()) => Monoid (ReferenceQueryT r m a) Source # | |||||
Defined in Text.LaTeX.Packages.BibLaTeX Methods mempty :: ReferenceQueryT r m a # mappend :: ReferenceQueryT r m a -> ReferenceQueryT r m a -> ReferenceQueryT r m a # mconcat :: [ReferenceQueryT r m a] -> ReferenceQueryT r m a # | |||||
(Applicative m, Semigroup (m a), a ~ ()) => Semigroup (ReferenceQueryT r m a) Source # | |||||
Defined in Text.LaTeX.Packages.BibLaTeX Methods (<>) :: ReferenceQueryT r m a -> ReferenceQueryT r m a -> ReferenceQueryT r m a # sconcat :: NonEmpty (ReferenceQueryT r m a) -> ReferenceQueryT r m a # stimes :: Integral b => b -> ReferenceQueryT r m a -> ReferenceQueryT r m a # | |||||
(Functor m, Monoid (m a), IsString (m ()), a ~ ()) => IsString (ReferenceQueryT r m a) Source # | |||||
Defined in Text.LaTeX.Packages.BibLaTeX Methods fromString :: String -> ReferenceQueryT r m a # | |||||
Generic (ReferenceQueryT r m a) Source # | |||||
Defined in Text.LaTeX.Packages.BibLaTeX Associated Types
Methods from :: ReferenceQueryT r m a -> Rep (ReferenceQueryT r m a) x # to :: Rep (ReferenceQueryT r m a) x -> ReferenceQueryT r m a # | |||||
type Rep (ReferenceQueryT r m a) Source # | |||||
Defined in Text.LaTeX.Packages.BibLaTeX |
applyDOIReferenceResolves Source #
Arguments
:: (MonadIO m, LaTeXC (m ()), Semigroup (m ()), r ~ DOIReference) | |
=> (r -> m (Maybe T)) | Reference-resolver function. |
-> ReferenceQueryT r m () | The document content. |
-> m (Map DOIReference T, m ()) | All the BibTeX entries found, and a version of the document with all its doi-references changed to point to the identifiers in that file. |
More manual version of documentWithDOIReferences
, only retrieving suitable
BibTeX entries for the DOI-references contained in the document, but not
generating any .bib
files or wrapping the content in it.
Arguments
:: MonadIO m | |
=> FilePath | A |
-> DOIReference | Lookup-function, suitable for |
-> m (Maybe T) |