-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support LaTeX titles by adding :include_mathjax option #331
Open
hhaensel
wants to merge
101
commits into
JuliaPlots:master
Choose a base branch
from
hhaensel:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hhaensel
changed the title
support :include_mathjax optionMathjax Option
support :include_mathjax option
Jun 2, 2020
hhaensel
changed the title
support :include_mathjax option
support LaTeX by adding :include_mathjax option for PlotlyJS as well as plotlyjs() backend of Plots
Jun 2, 2020
hhaensel
changed the title
support LaTeX by adding :include_mathjax option for PlotlyJS as well as plotlyjs() backend of Plots
support LaTeX titles by adding :include_mathjax option
Jun 2, 2020
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
* ENH: use PlotlyBase's Kaleido for savefig * OPS: add pkg-butler * DEPS: depend on plotlyBase 0.4 * ENH: delete pkg-butler -- we need special CI * ENH: update travis settings * WIP: migrate docs to Documenter.jl instead of mkdocs
* Switch to Julia Artifacts for JS dependencies * Try fixing sha256 hashes * Switch to tarball artifact * Fix :schema accesses
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
remove styles from docs as they are not supported anymore
fix subplot docs
Fix add trace
enh: added new PlotlyBase methods for SyncPlot
needed for `add_layout_image!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I recently committed an
:include_mathjax
option for the plotly() backend in plot and wondered, whether I could reuse my experience for PlotlyJS and its respective Backend in plots.This is, what I ended up with. This probably solves #60 and #325, at least partly.
WebIO currently does not support registering of directories with its
dep2url
routine and has some missing Windows support, which I addressed in JuliaGizmos/WebIO.jl#417Meanwhile, I used
AssetRegistry
directly to work around this problem.Usage: add
include_mathjax = <mathjaxpath>
to the Layout options.mathjaxpath can be either "cdn", "local" (which looks whether mathjax is installed with IJulia) or a direct link to a mathjax file (local or remote).
Unfortunately, I couldn't find a way to implement this for the plot pane. MathJax only works, if the mathjax source is included in the head tag.
I have experimented with a script that appends MathJax to the header after document was loaded, but that version also only worked for the Blink display, so I chose to use this version, which is somehow cleaner.
Maybe, someone else can help?
Example:
or from the Plots plotlyjs() backend