https://github.com/konn/hatex-qq
Quasiquoters for HaTeX
https://github.com/konn/hatex-qq
Last synced: 2 months ago
JSON representation
Quasiquoters for HaTeX
- Host: GitHub
- URL: https://github.com/konn/hatex-qq
- Owner: konn
- License: bsd-3-clause
- Created: 2015-02-17T16:10:27.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-06T13:56:47.000Z (over 7 years ago)
- Last Synced: 2025-01-23T17:21:02.524Z (4 months ago)
- Language: Haskell
- Size: 14.6 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- License: LICENSE
Awesome Lists containing this project
README
HaTeX-qq - some description
================================[](https://travis-ci.org/konn/HaTeX-qq)
[](http://hackage.haskell.org/package/HaTeX-qq)## What is this?
Quasiquote library for HaTeX.
Both whitespace-sensitive version `hat` and insensitive version `hat'` are provided.In addition, you can define custom quasiquoter with different antiquoting latex command name by `mkHaTeXQQ`.
```haskell
{-# LANGUAGE OverloadedStrings, ViewPatterns #-}
converter [hat'|\ruby{\hask{body}}{\hask{rup}}|] =
concat [ "", "", body, "", "", rup, "", "" ]answer :: LaTeX
answer =
let a = 42 * 15
in [hat|The answer for everything = $\hask{a `div` 15}$|]
```## Install
```sh
$ cabal install HaTeX-qq
```## Licence
BSD3
## Copyright
(c) Hiromi ISHII 2015