Questions tagged [jqmath]

jqMath is a JavaScript module that makes it easy to put formatted mathematical expressions in web pages

jqMath uses a simple TeX-like syntax, with MathML semantics:

  • $, or ( and ), to delimit inline mathematics
  • $$, or [ and ], to delimit block or “display” mathematics
  • ^ for superscript
  • _ for subscript
  • { and } for grouping
  • ↖ for overscript
  • ↙ for underscript
  • \ or ` to quote the next character (turning off its special meaning), start a macro or multi-letter name, or make a name non-italic
  • \bo, \it, or \bi for a bold, italic, or bold-italic variable
  • \sc or \fr for a script or Fraktur letter
  • \ov for an overbar
  • \table for a matrix, table, or simply tabular alignment - separate entries with , and rows with ;
  • \text or \html for plain text or html inside mathematics - specify the text or html inside quotes spaces, tabs and newlines are ignored

jqMath is lightweight and standards-based. Thus pages containing jqMath code load quickly, and expressions can be resized by the user, or easily passed to screen reading, graphing, or computer algebra software.

Useful Links

56 questions
1
vote
1 answer

jqMath: how to improve the display of vectors and super/subscripts on an android app's webview

I have jqMath up and running within an android app. The output of jqMath is shown within an android's webview. It works really well and it is really fast. I have noticed, however, that when typesetting (1) a vector,e.g. {AB}↖{→}. The baseline of…
user3080742
1
vote
0 answers

how to reference the Java Script in Android Application?

I've downloaded jqMath files to show mathematical formula in my app. I copied and pasted all the downloaded files; I mean the js,the css and html in the asset folder of the android project in Eclipse. Then, I wrote in my java document (ventana is a…
JoeCoolman
  • 512
  • 3
  • 8
  • 27
1
vote
1 answer

Force superscripts for operators in jqMath

I am using jqMath to display chemistry formulas on a website. I need to be able to display charges as superscripts (i.e., positive + and negative charges -). It seems like jqMath (or maybe MathML) hardcodes all math operators to display as normal…
Diana E
  • 430
  • 6
  • 21
1
vote
1 answer

jqMath Equation Line Wrap

I have started using jqMath for equations on my website and I need to be able to wrap these equations when their outer div has a fixed width.
$$ x={-b±√{b^2-4ac}}/{2a} \text'A little bit of text that goes along with this.'…
Jordy
  • 17
  • 1
  • 5
0
votes
1 answer

jqMath comma (,) not displayed inside \table

I am using jQmath and its perfectly working in both mobile and desktop for all equations For displaying a function below with comma separated between a(1-cos2x),b inside table e.g. below: $f(x) = \{\table a(1-cos2x), \, b; x-c, \, d$ In the above…
Kiran
  • 1,145
  • 1
  • 8
  • 22
0
votes
1 answer

My jqMath is not formatting \text and \table correctly

I have finally gotten jqMath to work in Android Studio, but then I realize that it does not format the \text and \table correctly! https://mathscribe.com/author/jqmath.html At the jqMath homepage above, the examples show how to use \text and…
Iyatsu
  • 37
  • 1
  • 1
  • 7
0
votes
0 answers

unable to display an input tag with jqMath

Need to autogenerate a jqMath formula with input tag in it. I took some of the code from the example provided by jqMath. Here is the code: var $el = $('body').find('div#mydiv.main'); $el.html(''); $el.append( $("

\"If $$y = ax^\html'<input…

flashburn
  • 4,180
  • 7
  • 54
  • 109
0
votes
1 answer

jqMath does not render a formula when content is generated dynamically

I'm looking at HTML which is generated dynamically with JavaScript. Here is how it is done var el = $('body').find('div#my-div.main'); el.html(''); el.append($("

If $ax^2+bx+c=0$ with $a≠0$, then:$$x={-b±√{b^2-4ac}}/{2a}$$

")); However no…
flashburn
  • 4,180
  • 7
  • 54
  • 109
0
votes
1 answer

In jqmath, Integration symbol is very small. How to make it larger

In jqmath integration symbol is very small. How to make it larger. ∫ dx = x + C
ammy
  • 11
  • 1
  • 4
0
votes
1 answer

Using jqMath on Android treating "\t" as an escape character

I have used jqMath for displaying Math equations using a WebView. Here's the code for Math equation $(\table \cos θ, - \sin θ; \sin θ, \cos θ)$ Expected output: But the output is this: Here's the code: String js = Constants.JQ_MATH_BEGIN…
BinaryGuy
  • 1
  • 2
0
votes
2 answers

jqMath does not display equations

WebView webView = (WebView)findViewById(R.id.display); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); String path="file:///android_asset/"; String js = "" + "
user539978
  • 11
  • 2
0
votes
1 answer

root sign ugly in chrome using jqMath

I changed from using MathJAX to jqMath recently, but I'm having trouble displaying roots with another base than 2: √^a{b^c} will display correctly in Firefox: But really ugly in Chrome: This is both on Linux and OS X; have not tried others yet.…
Paul Wiegers
  • 199
  • 1
  • 7
0
votes
1 answer

How to use jqMath in Android Studio

I'm a beginner in Android. I want to display Mathematical and Science Formula. I have heard abt the jqMath, I did lots of search on it. But I couldn't find out how to use it actually. So Please help me out to use it.. Its basic Steps n all..
Gunners.Ranju
  • 101
  • 3
  • 15
0
votes
2 answers

jqMath: how to change the color of an expression?

I have this DOM class which I add to a jqMath expression to change the color of part of an equation which I've written using jqmath and the corresponding CSS: .myclass { color: blue; } The thing is the color usually changes as expected but this…
has19
  • 1,307
  • 16
  • 31
0
votes
2 answers

jqmath - new line added before/after the math function automatically

I am trying to display the following line:
Well, here is the function we have been talking of $$y = ln(e|^[| sin(|x|) |] |)$$ so thats the beauty.
Since the contents of this div is loaded dynamically, i apply…
Jasper
  • 8,440
  • 31
  • 92
  • 133