Comments (2)
As a workaround you may use:
<div style="text-align: center">
<script type='math/tex; mode=display'>
\lim_{x \rightarrow 0}\frac{\sin x}{x} = 1
</script>
</div>
from al-folio.
This can be changed by replacing
$("script[type='math/tex; mode=display']").replaceWith(
function(){
var tex = $(this).text();
return "<div class=\"equation\">" +
katex.renderToString("\\displaystyle "+tex) +
"</div>";
});
with
$("script[type='math/tex; mode=display']").replaceWith(
function(){
var tex = $(this).text();
return "<div class=\"equation\">" +
katex.renderToString("\\displaystyle "+tex, {displayMode: true}) +
"</div>";
});
in assets/js/katex.js.
This changes all displayed equations to be centered. Based on my experience this is usual practice in mathematical fields, so it might make sense to use it as default setting?
from al-folio.
Related Issues (20)
- Rename `master` branch to `main`
- Implement `axe` accessibility suggestions HOT 2
- INSTALL.md Local setup using Docker instruction not clear HOT 9
- Google monetization ads.txt not working HOT 4
- Delete unused branches HOT 1
- ABS badge not working HOT 3
- Failed to run docker slim action
- How do I change the font of my blog page title?
- Keyword for Search Engine Recommendation
- Prettier diff as comment on PRs HOT 4
- External blogposts from substack appear locally but throws an error upon deployment HOT 5
- lighthouse-badger-easy Input required and not supplied: token HOT 1
- Move all new libraries versions to `_config.yml` HOT 1
- prettier code formatter workflow run failed for master branch HOT 4
- Guidance on filenames for blog posts HOT 4
- deploy Process completed with exit code 1. - Node.js 16, `set-output`- deprecated HOT 2
- Docker Compose Up Fails HOT 2
- [Feature Request] automatically generate pulications in the CV from .bib file HOT 4
- [Feature Request] Add tags to the publications and filter them by tags HOT 1
- problem with the link of my site HOT 10
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 al-folio.