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

LaTeX formatting not working #509

Closed
zeeros opened this issue Jan 10, 2022 · 3 comments
Closed

LaTeX formatting not working #509

zeeros opened this issue Jan 10, 2022 · 3 comments
Labels

Comments

@zeeros
Copy link

zeeros commented Jan 10, 2022

I've been trying to export some org files containing LaTex formatting. For what I see here no further settings are needed to enable this type of formatting, however Hugo is not processing this correctly. So something like this

#+TITLE: A

We can model a packet filter by setting
- The filtering actions as $A_f$
- The filtering conditions as $C_{pf}$, such as IP address and port of source and destination, protocol
- The resolution strategy, as first matching rule resolution
- The default actions as $A_f$

\begin{align}
  & A_f=\{\text{Allow},\text{Deny}\}\\
  & C_{pf}=\{IPsrc,IPdst,Psrc,Pdst,protType\}\\
  & cap_{pf}=(A_f;C_{pf};\text{FMR};A_f)
\end{align}

Is rendered as follows in the final page

image

While I'm expecting something like this

image

@kaushalmodi
Copy link
Owner

@zeeros You need to add MathJax scripts to your site head.

kaushalmodi added a commit that referenced this issue Jan 10, 2022
@kaushalmodi
Copy link
Owner

I just added this to the ox-hugo manual: https://ox-hugo.scripter.co/doc/equations/#mathjax-config-example

Let me know if that helps.

@zeeros
Copy link
Author

zeeros commented Jan 10, 2022

Yes now it works, thanks! 👍

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

No branches or pull requests

2 participants