Skip to content
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 in-line LaTeX math output in HTMLWriter #2280

Closed
odow opened this issue Sep 21, 2023 · 1 comment
Closed

Support in-line LaTeX math output in HTMLWriter #2280

odow opened this issue Sep 21, 2023 · 1 comment
Labels
Format: HTML Related to the default HTML output Type: Bug

Comments

@odow
Copy link
Collaborator

odow commented Sep 21, 2023

index.md

```@example
struct Foo end
function Base.show(io::IO, ::MIME"text/latex", ::Foo)
    return print(io, "\$ x_{1} + x_{2} \$")
end
Foo()
```

make.jl

import Documenter
Documenter.makedocs(
    sitename = "Test",
    format = Documenter.HTML(;
        prettyurls = get(ENV, "CI", nothing) == "true",
    ),
    pages = ["index.md"],
)

Produces

image

Here's a case from the wild: https://jump.dev/JuMP.jl/stable/tutorials/linear/knapsack/#JuMP-formulation

@odow odow added the Format: HTML Related to the default HTML output label Sep 21, 2023
@odow
Copy link
Collaborator Author

odow commented Sep 30, 2023

Closed by #2281

@odow odow closed this as completed Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Format: HTML Related to the default HTML output Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants