Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
37

Update: This answer isn't very helpful. Don't let the accepted status or vote count fool you. See Rahul's answer or MathJax basic tutorial and quick reference. (Viewing source became more straightforward for those with under 2000 points some time ago, as pointed out in a comment. Just click "edit" or "improve this question". The revision history is ...


33

Yes. Yes. A thousand times yes. Markdown provides enough methods to draw attention to different parts of text, though bold and italic and even bold italic, not to forget block quotes when one wishes to quote a large section of text, to make using colors via MathJax completely unnecessary. Not only that, but a post written in a rainbow of colours is ...


32

Please note the sarcasm. I don't see any $\color{purple}{\text{problem}}$ with this, adding $\color{red}{\text{c}}\color{orange}{\text{o}}\color{green}{\text{l}}\color{blue}{\text{o}}\color{purple}{\text{r}}$ to text shouldn't reduce $\color{#12dd13}{\text{readibility}}$, nor should any other $\LaTeX$, such as $\boxed{\text{boxes}}$ $\require{cancel}\cancel{...


26

This is supposed to be an all-purpose math site, and obviously not everyone in the world who has a math question knows how to use latex. Although learning latex is not so very hard, it is not trivial either, and assuming that people must have this skill in order to get continued service seems like a clear violation of the intended scope of the site. Also,...


25

Testing alternate way of implementing spoiler $$ \require{action} \require{enclose} \toggle{ x\cdot 0 = 0\quad\enclose{roundedbox}{\text{ Click this for derivation }} }{ \begin{array}{rll} x\cdot 0 &= \mathtip{x\cdot 0 + 0}{0 \text{ is additive identity}} \\ &= \mathtip{x\cdot 0 + (x\cdot 0 + -(x\cdot 0))}{ -(x\cdot 0) \text{ is additive inverse ...


25

The equations are typeset using $\LaTeX$; there is a link that says "MathJax Help" when you are editing, which links to Kuhn, Scott, and Andreev's Introduction to LaTeX. Most of the formatting is supported, though every once in a while there are a few things you need to do to get MathJax to work right (like extra \ to act as escape characters, etc). (You ...


25

Disclaimer: I'm part of the MathJax team. Also, this got a bit long. tl;dr Try out NVDA with MathPlayer 4 on Firefox here on math.SE JAWS 13 is a bit old (2011) and the situation of screenreaders with respect to math and the web has changed drastically since then. As already mentioned, JAWS 16 was the first version to introduce direct MathML support but as ...


23

I am delighted that you are considering this issue. I am slightly red/green color blind. It is nearly impossible for me to see the block quotes on math.stackexchange. A light grey background would solve the problem completely for me. A solid or dotted black line along, say, the left the border could serve to distinguish a block quote from piece of computer ...


20

(I'm a new user so I don't have anything to contribute as far as norms here go, but I'm really interested in how to effectively convey information in an accessible way!) Like others have said, the most obvious downside is colorblind people and people using screen readers. Colorblind people will miss information and so you should make sure the color doesn't ...


19

There are three approaches for line breaks. As pointed out in the comments, Approaches 2 and 3 produce the same HTML output when rendered on the page. Approach 1: Press "Enter" twice Output: Hi Bye Code: Hi Bye Approach 2: Two spaces at end of line Output: Hi Bye Code: Hi Bye There are two spaces after "Hi." That is, the text looks like: Hi&...


19

Colored text can be useful. I can only think of one example at the moment, which is for highlighting correspondences between different parts of a piece of text, like so: $\frac{d}{dx} (\color{red}{x^3} + \color{blue}{x^2}) = \color{red}{3x^2} + \color{blue}{2x}$ Colored text is not useful for merely emphasizing or highlighting a bit of text; italics or bold ...


17

Although there are some great comments above, one thing no one has mentioned is people who use assistive technology like screen readers. Having the mathematics clearly marked as mathematics (as oppose to "fake" mathematics using other HTML tricks) makes it much easier to properly voice the mathematics for screen readers. Although few screen readers ...


16

Seeing as this is the featured FAQ post about entering mathematical notation on this site, I feel it's useful to consolidate here the links to some more useful $\LaTeX$ resources that have been pointed out in another question. This is a list of the $\LaTeX$ commands currently supported by MathJax. You can use the CodeCogs $\LaTeX$ equation editor to ...


16

Some decide instead of typing the actual text of the question, typesetting formulae with LATEX and using plotting software, it would be better for them to avoid the effort Okay, hold on. You seem to be under the impression that computer typesetting and plotting is easy. Something anyone who uses this site should have in their skillset. Do you really expect ...


12

Since my comment under the other answer got about three times more votes than the answer, maybe it's worth converting it into a full answer: The correct way would be, as far as I can tell, to convert the brackets into opening and closing delimiters through the use of \mathopen and \mathclose: \forall x \in \mathopen{]} -1, 1 \mathclose{[}, f(x) > 0 $$\...


12

Simple solution: don't abuse MathJax to colour your text.


11

(I've never used Meta before -- I noted there's no answer yet, but a lot of comments, so I hope I'm not doing something wrong) To first give an example of what I would consider good coloring; I like the explanation of Fourier Transform, on betterexplained and technically copied from altdevblogaday): To be fair, he could have made it a little easier for ...


11

You can do it, but you need to use large squares and hide their height and depth using \smash. It helps to use a definition or two. Here is one approach: \def\smallstrut{\Space{0em}{.6em}{.2em}} \def\cbox#1{\textstyle\smash{\color{#1}{\Rule{1em}{.8em}{.2em}}}\smallstrut} \begin{smallmatrix} \cbox{red}\cbox{teal}\cbox{green}\cbox{blue}\\ \cbox{red}\cbox{...


10

Because it breaks the layout of the list of questions, among others. It is a title: sort of by definition, it should not contain displayed material! Also, please do not make titles be entirely composed of TeX material.


10

I don't there's been any recent change; this is how things have always worked. To get a single line break, put two spaces at the end of the line - for example, **Theorem** adsfdf *proof*: asdfdsaf produces Theorem adsfdf proof: asdfdsaf


10

You can use \limits to get that as in $\sum\limits_{i=n}^\mathbb{N}\frac1{i^2}$. However, this severely messes with the interline spacing. code: \sum\limits_{i=n}^\mathbb{N}\frac1{i^2} You can also use \displaystyle as in $\displaystyle\sum_{i=n}^\mathbb{N}\frac1{i^2}$. However, this really messes with interline spacing. code: \displaystyle\sum_{i=n}^\...


9

$\hskip -3em \color{red}{\Rule{2em}{1em}{1em}}$Testing of negative skips to overlap the buttons on the left. \rlap{\smash{\lower 3em{\color{red}{\Rule{8em}{2em}{0em}}}}} Testing overlapping on the bottom. OK, both seem to be problems.


9

Also very helpful is Carol Fisher's Alphabetical List of TEX Commands available in MathJax, which gives examples of all MathJax commands, and has a little MathJax sandbox for experiments.


9

There is no TeX implementation at work which could be interpreting the LaTeX code, it is just some JavaScript library (MathJax) who interprets a syntax which looks like LaTeX's math mode (and which only interprets the bits between $). It also doesn't support everything which LaTeX supports there (for example, no definitions of new commands, no conditionals, ...


9

Line breaks and many other stuff are not supported in comments. The basic design rationale is (as described by SE) that comments should be short and sweet: if you need to start a new paragraph, either you are really writing an answer (and so should be posting as such) or you are being too verbose in the comments.


9

Plain $\mathrm{\TeX}$ defines \mathcode`\[="405B \mathcode`\]="505D \delcode`\[="05B302 \delcode`\]="05D303 and $\mathrm{\LaTeX}$ does essentially the same. One could get extensible French brackets by something like \def\lfb{\delimiter"405D303 } \def\rfb{\delimiter"505B302 } Compiling the following file \def\lfb{\delimiter"405D303 } \def\rfb{\delimiter"...


8

For WYGIWYS editors, I have tried dia Ipe Inkscape/Illustrator For Latex, you can also try TIkz/PGF. Also there is graphviz This link is also helpful: Online tool for making graphs (vertices and edges)? Added: Probably this list will meet your need: Interactive geometry software (IGS, or dynamic geometry environments, DGEs) are computer ...


8

You can replace the ^ with the URL-encoded form %5E, e.g: http://www.wolframalpha.com/input/?i=3%5Ex instead of http://www.wolframalpha.com/input/?i=3^Ex which will work like http://www.wolframalpha.com/input/?i=3%5Ex If you use the link button of the editor, such characters will be automatically escaped. If you format your links manually, you have to ...


Only top voted, non community-wiki answers of a minimum length are eligible