Comments (4)
Unfortunately, this behaviour is related to how Hugo parses the file.
However, we can workaround this by adding an extra backslash before each LaTeX backslash in the abstract. I will try to document this in the README
file.
For example, I just tested $\\rm \\LaTeX$
in the abstract and it is working fine 😃 .
For speed, math is only enabled on a per page basis in the page +++
preamble. If you wish to also use it in titles, then math would need to be enabled for the whole site (if you wish the LaTeX to render correctly on the homepage and list pages like /publications/
). Do you have many publications with math in the title? I will consider adding a global math parameter.
from hugo-blox-builder.
I see. One possibility is, as you say, to escape , the other is to remove markdownify when including abstract and title. It really depends on the use case.
I have a few titles with math formulas. If there is not much math, mathjax is quite fast. The speed would be an issue on a page with more than hundred formulas which is not realistic for the home page, so I see no reason for not having a global math parameter.
from hugo-blox-builder.
Good to hear about your experience with mathjax 😄
I took another look at some major online scientific publishers. For the abstract field, it appears they allow LaTeX math and disallow the author to use custom formatting.
So I have gone ahead and removed markdownify
from the abstract field and added a global math
parameter in the example config.toml
. Thus, LaTeX math can now be easily added to both titles and abstracts, and rendered correctly with the new global math = true
option set. See commits 9d44054 and e1faa26.
from hugo-blox-builder.
Great, thanks!
from hugo-blox-builder.
Related Issues (20)
- missing reddit icon on Hugo Blox suggested code HOT 2
- Icon SVG is not loaded
- Add Strava to brands icon pack HOT 3
- Hugo v0.123.1 breaks sites HOT 3
- fix the docs: staticref shortcode missing? HOT 1
- fix docs: list_children missing? HOT 1
- highlight self name in authors list when importing from bibtex HOT 3
- All three map providers supported by Hugo are not available in China HOT 1
- Dark mode breaks highlighting lines in code blocks HOT 8
- Problem with deployment on GitHub Pages (Node.js 16) HOT 1
- filter will not work on hugo v0.123.7 HOT 1
- Add Google Scholar expected meta tags to publication pages HOT 2
- Add slider to gallery block HOT 1
- HUGO language HOT 1
- The latest version will cause an error when building when following the tutorial for configuration. HOT 1
- Build with Hugo, `publish.yaml` failing HOT 1
- `cite` short code usage in the documentation causing an error HOT 1
- People Widget HOT 2
- Non functional fields in `academic-cv` HOT 1
- Author formatting in tailwind publications HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-blox-builder.