GithubHelp home page GithubHelp logo

mellich / acronyms Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rchaput/acronyms

0.0 0.0 0.0 174 KB

Adds support for Acronyms, and List of Acronyms, to Quarto documents.

License: GNU General Public License v3.0

Lua 69.09% TypeScript 30.91%

acronyms's Introduction

Acronyms: List of Acronyms support for Quarto documents

Author: rchaput [email protected]

GitHub License GitHub Latest Release GitHub Release Date Documentation Status Automatic tests Status

Description

This Quarto extension adds the ability to automatically handle acronyms inside Quarto (qmd) documents.

Throughout the document, acronyms are replaced by either their short name, or their long name, depending on whether they appear for the first time. They also may be linked to their corresponding definition in an automatically generated List of Acronyms, so that readers can access the definition in one click.

It is based on the previous Acronymsdown package, which provided the same features, but for RMarkdown documents.

Example of acronyms document

Features

  • Tired of manually having to check whether the first occurrence of an acronym is correctly explained to your readers? acronyms automatically replaces acronyms, based on whether they appear for the first time.
  • Generate a List of Acronyms based on your defined acronyms.
    • The place where this list will be generated can be specified (by default, at the beginning of the document).
  • Automatic sorting of this list.
  • You can choose between the alphabetical, usage or initial order.
  • Easily manage acronyms
    • Choose between multiple styles to replace acronyms.
    • By default, 1st occurrence is replaced by long name (short name), and following occurrences are simply replaced by short name.
    • All occurrences can also be linked to the acronym's definition in the List of Acronyms.
  • Define acronyms directly in your document or in external files.
  • Extensive configuration
    • Most of this package's mechanisms can be configured: how to handle duplicate keys, whether to raise an error, print a warning or ignore an non-existing key, how to sort, ...
    • Sane defaults are included, such that this package can be used out-of-the-box.

Installation

In a terminal, in the same directory as your Quarto document (or project), enter the following command:

quarto add rchaput/acronyms@master

This will automatically install the latest version from GitHub into your _extensions/ folder. (You may also specify a version tag instead of master; see the list of releases). Then, in your Quarto document (or project configuration), add the following lines to your YAML metadata:

---
filters:
  - acronyms
---

If you already have a filters: block, simply add the - acronyms line at the end of the list.

Usage

Using this package requires 2 simple steps:

  1. Define your acronyms in the YAML metadata.
---
acronyms:
  keys:
    - shortname: qmd
      longname: Quarto documents
    - shortname: YAML
      longname: YAML Ain't Markup Language
---
  1. Use your acronyms in your qmd document with the \acr{<KEY>} special command!

\acr{qmd} can be used to write technical content. \acr{qmd} use \acr{YAML}.

which renders as (using default options):

Quarto documents can be used to write technical content. qmd use YAML Ain't Markup Language.

Credits

This package was inspired from:

acronyms's People

Contributors

rchaput avatar agdamsbo avatar mellich avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.