Coder Social home page Coder Social logo

shafayetshafee / tableofcontents Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.83 MB

A Quarto Reveal.js plugin for allowing some options regarding creation of table of contents.

License: MIT License

CSS 0.78% JavaScript 99.22%
quarto quarto-extension quarto-pub quartopub revealjs revealjs-plugin

tableofcontents's Introduction

tableofcontents Extension For Quarto revealjs Format

A plugin for Reveal.js allowing some options regarding creation of table of contents, such as putting table of contents at an arbitrary slide, stepping through the elements of table of contents etc.

Installing

quarto add shafayetShafee/tableofcontents

This will install the extension under the _extensions subdirectory. If you're using version control, you will want to check in this directory.

Usage

Simply add the extension to the list of reveal plugins like:

format: revealjs
tableofcontents:
  # set tableofcontents configuration options here
revealjs-plugins:
  - tableofcontents

Options

You can pass the following options to tableofcontents

Option Description
title Specifies the slide title of the table of contents slide. Default is "Table of Contents".
titleTag Specifies html tag in which the table of contents title stands. Default is "h1".
position Specifies the position of the table of contents slide in the presentation. Default is 2.
titleTagSelector Specifies which slide tag elements will be used for generating the table of contents. Default is h1, h2, h3, h4, h5, h6".
ignoreFirstSlide Specifies whether title slide's title should be ignored in table of contents. Default is true.
fadeInElements Specifies if every single element of the table of contents will be stepped through before moving on to the next slide. Default is false.

Example

Here is the source code for a minimal example: example.qmd and the rendered output


reveal.js-tableofcontents - Reveal.js Plugin by Roman Stocker (@naamor) under MIT License.

tableofcontents's People

Stargazers

 avatar

Watchers

 avatar

tableofcontents's Issues

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.