Skip to content

Instantly share code, notes, and snippets.

@jgm
Created July 30, 2011 15:45
Show Gist options
  • Save jgm/1115661 to your computer and use it in GitHub Desktop.
Save jgm/1115661 to your computer and use it in GitHub Desktop.
HeX macro definition for \lettrine{T}{he}
lettrine :: Format -> InlineDoc -> InlineDoc -> Doc
lettrine "html" (InlineDoc x) (InlineDoc y) =
inTags "span" [("class","lettrine")] x +++ y
lettrine "latex" (InlineDoc x) (InlineDoc y) =
ctl "lettrine" +++ grp [x] +++ grp [y]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment