Comments (2)
This is the code I used
Figure 1 is renderingEngine: TeXViewRenderingEngine katex (),
Figure 2 is renderingEngine: TeXViewRenderingEngine mathjax (),
But now I need renderingEngine: TeXViewRenderingEngine katex (), can display properly
Related code:
TeXView mathdown(String content) {
String str = r"""Calculus is a branch of mathematics that deals with the derivatives and integrals of functions. Here is an example calculus:
Example: Find the derivative of the function $f(x)=x^3$at $x=2$.
Solution: Using the derivation formula, we can find the derivation of $f'(x)$:
$$f'(x) = 3x^2$$
Then, put $x=2$into $f'(x)$to get:
$$f'(2) = 3(2)^2 = 12$$
Thus, the derivative of the function $f(x)$at $x=2$is $12$.""";
return TeXView(
renderingEngine: TeXViewRenderingEngine.katex(),
child:
TeXViewDocument(
str,
style: TeXViewStyle(
margin: TeXViewMargin.only(top: 10),
fontStyle: TeXViewFontStyle(
fontSize: 16,
),
contentColor: TBDefVal.chatRegularColor,
),
// 设置字体颜色
),
style: const TeXViewStyle(
backgroundColor: Colors.white,
),
);
}
from flutter_tex.
use (your latex code) for inline rendering.
from flutter_tex.
Related Issues (20)
- Error: Unable to load asset: "favicon.ico". HOT 1
- WebView.destroy() called while WebView is still attached to window. HOT 1
- Please update WebView with the latest version HOT 1
- TeXView takes time to load HTML data
- WebKitWebViewController.runJavaScriptReturningResult This exception occured every time in app HOT 5
- Error: The method 'loadAssetServer' isn't defined for the class 'WebViewControllerPlus' HOT 1
- NoSuchMethodError: 'initWebTeXView'
- A problem with uesing it
- TeX not parsed
- MathML tags (mfrac) parsing issue
- Add support for macOS HOT 1
- flutter Web build Works on debug mode but not working after deployment
- Image Rendering Issue
- Loading widget
- Give height to TeXViewDocument HOT 1
- How to Set it for Window and Linux support
- Need Text which support like Overleaf template, support
- need markdown and math togethor,how can impement on this HOT 1
- config
- Can't show LaTEX text on iOS
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 flutter_tex.