https://github.com/quarto-ext/fancy-text
Output nicely formatted versions of fancy strings such as LaTeX and BibTeX in multiple formats.
https://github.com/quarto-ext/fancy-text
Last synced: about 1 year ago
JSON representation
Output nicely formatted versions of fancy strings such as LaTeX and BibTeX in multiple formats.
- Host: GitHub
- URL: https://github.com/quarto-ext/fancy-text
- Owner: quarto-ext
- License: mit
- Created: 2022-07-06T18:35:37.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-05T14:24:36.000Z (about 2 years ago)
- Last Synced: 2024-11-18T05:38:35.608Z (over 1 year ago)
- Language: Lua
- Homepage:
- Size: 587 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fancy-text
A very simple shortcode extension that adds shortcodes for outputing nicely formatted versions of fancy strings (such as LaTeX and BibTeX). Outputs fancy strings in HTML and LaTeX, just emits simple strings of the correct case in other formats.
## Installation
```
$ quarto add quarto-ext/fancy-text
```
This will install the extension under the `_extensions` subdirectory. If you're using version control, you will want to check in this directory.
## Usage
Use shortcodes to get format specific fancy text for certain keywords or format styles. Currently, this extension supports the following
```markdown
LaTeX can be written like {{< latex >}}.
BibTeX can be written like {{< bibtex >}}.
TeX can be written like {{< tex >}}.
Various elipses are supported: {{< ldots >}}, {{< vdots >}}, {{< ddots >}}
% can be written in math in LaTeX with : {{< pct >}}, like 10{{< pct >}}
Formatting R^2^ using Math for PDF: {{< R2 >}}
```
For example:
```markdown
## Overview of {{< latex >}}
```
You can view the example document as
- HTML
- PDF
- DOCX
- EPUB