quarto-dev / quarto-dev/quarto-cli

Feature Request: Rendering TikZ pictures for HTML output

Open
#2,064 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

I find the ability to insert tikz pictures by simply calling ![caption](tikz_code.tex){#label} when rendering to PDF to be extremely elegant and practical, unfortunately the pictures do not seem to render for HTML outputs.

Trying to find a workaround I found the TikZJax library. It looks like it could be helpfu for this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how TikZ pictures are handled for PDF output and where HTML output is assembled. Review the TikZJax library linked in the issue as a possible approach, then define acceptance coverage for rendering the example syntax in HTML; the issue names no files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.