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

matrix rendering #98

Closed
justletmecreatetheaccount opened this issue Oct 17, 2023 · 4 comments
Closed

matrix rendering #98

justletmecreatetheaccount opened this issue Oct 17, 2023 · 4 comments

Comments

@justletmecreatetheaccount
Copy link
Contributor

hello !

mdbook-katex don't render my matrices but they're syntax good since https://katex.org/#demo is showing me the matrix without error

here is an example of the "buggy" code:

$$\begin{bmatrix}P & Q \\\frac{\text{d}x}{\text{d}s} & \frac{\text{d}y}{\text{d}s} \\ \end{bmatrix}\begin{bmatrix} \frac{\partial u}{\partial x} \\ \frac{\partial u}{\partial y} \\ \end{bmatrix}= \begin{bmatrix} R \\ \frac{\text{d}u}{\text{d}s} \\ \end{bmatrix}$$

mdbook-katex process it well because dollars signs gets removed when katex enabled, but it does not show me my matrix, but only the latex text

image

Is the problem coming from me ?

Here is my book.toml

[book]
authors = ["[Vlad Doniga]"]
language = "fr"
multilingual = false
src = "src"
title = "LEPL1103 - Notes"

[preprocessor.katex]
after = ["links"]
throw-on-error = false

[output.html]
# theme = "my-theme"
default-theme = "light"
preferred-dark-theme = "ayu"
# curly-quotes = true
# mathjax-support = false
# copy-fonts = true
# additional-css = ["custom.css", "custom2.css"]
# additional-js = ["custom.js"]
# no-section-label = false
git-repository-url = "https://github.com/MoinesCopistes/lepl1103"
git-repository-icon = "fa-github"
additional-css = ['mdbook-admonish.css','katex-supp.css']
# edit-url-template = "https://github.com/rust-lang/mdBook/edit/master/guide/{path}"
# site-url = "/example-book/"
# cname = "myproject.rs"
# input-404 = "not-found.md"

But anyway, thank you for building this tool, it's like REALLY helpful !

@justletmecreatetheaccount
Copy link
Contributor Author

PS C:\Users\vladd\OneDrive\Documents\Unif\Q3-perso\lepl1103> mdbook --version
mdbook v0.4.35

@justletmecreatetheaccount
Copy link
Contributor Author

anyway..just had to use the gnu build version... do you know why this issue is happening ?

@SichangHe
Copy link
Collaborator

I really feel bad for the hoops you had to jump through to get the correct installation.

The reason why Windows users need to use the GNU build is discovered in #39 and referenced in the "Caveats" section in the README.

People have opened several issues for this exact same problem although the "Getting Started" section in the README tells Windows people what to do.

@justletmecreatetheaccount, could you provide some suggestions as of where I should put the documentation so people would read it?

@justletmecreatetheaccount
Copy link
Contributor Author

Just did :D #99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants