Apparently you have to introduce a command to do this, such as
\renewcommand{\v}[1]{\mathbf{#1}}(taken from http://www.maths.abdn.ac.uk/~jrp/latex_course/firststeps/page5.htm ), but I can't get this to work in an individual formula. Perhaps a similar command should be globally defined? --Martin
Note you can just do \mathbf{} everywhere you need it: e.g. \mathbf{F} = q \mathbf{v} \times \mathbf{B} : <math>\mathbf{F} = q \mathbf{v} \times \mathbf{B}</math>. Kind of a pain, but it works. I suspects renewcommand is disabled to prevent some kind of nasty security issue. -- DrBob
A question: Which TeX software generates the little PNG images? -- Hirzel
The system was written by user:Taw; here's my understanding of it: the formula is first parsed and validated by an Ocaml program called texvc. If texvc decides that the formula should be rendered by TeX, the TeX interpreter will be called (it uses the amstex or amslatex package) and produces a dvi file, which dvips converts to postscript. The program ghostscript then converts it into png. Maybe imagemagick is also involved as the last step, I don't know. AxelBoldt 22:02 Jan 7, 2003 (UTC)
how about we get the background color of pngs to match wikipedia's -- user_talk:hfastedge
<math>\int_C {a \over b }</math> doesn't look quite right -- the C should be below the integral sign rather than look like a footnote. Is this possible? -- Tarquin 23:14 Jan 8, 2003 (UTC)
In TeX, this should to the trick, only texvc doesn't recognise it as proper:
<math>H(x)=\left\{\begin{matrix} 0 : x < 0 \\ 1 : x \ge 0 \end{matrix}\right. </math>
Suggestion: where possible, <math>(a_1,b_1] \times (a_2,b_2]</math> should be rendered inline as (a1,b1] × (a2,b2], rather than expanded to a graphic.
The result of <math> tags is ugly. The pictures are too big, and the ALT text shows the awful-looking raw markup when people move their mouse over it in most browsers. Any hope of some more user preferences in this area, hopefully with sensible defaults? -- Tim Starling
\left and \right should force output as PNG. If you don't believe me, change your user prefs to HTML whenever possible and look at the last item in each of the tables on this issue. The first table makes a reasonable case, but the second is the killer. It's rendered completely wrong! -- Toby 09:09 Mar 8, 2003 (UTC)
JohnOwens' latest edit has the work-around, but the original was correct LaTeX. -- Toby 10:44 May 13, 2003 (UTC)
How do you do θ in TeX? Please respond on my page LittleDan
<math>\mathfrak{Hello Wikipedia!}</math>
TeX caching error Moved from Wikipedia:Village pump
I get a 404 on the TeX images in Wilson's theorem. In all other pages it seems to work fine. This is on the new server. -- Arvindn 07:12 16 May 2003 (UTC)
I've gone ahead and cleared the tex cache table, so it'll regenerate those that were on the old server but not the new one. Should be fine now. --Brion 07:17 16 May 2003 (UTC)
There's some discussion of this at Wikipedia:WikiProject Mathematics. (My basic ground rule is that TeX should only be used when there is no other way to write the formula clearly.
But others there may give you other opinions.) -- Toby 11:20 19 May 2003 (UTC)
That's probably a good guideline to follow. One situation I've found is the usage of the square root. It's quite possible to write some square root formulas with normal HTML:
But it looks much better, and is considerably more clear with TeX:
The former does accurately represent the formula, but it's harder to visually parse (especially since the radical does not extend above the parenthesized expression). Another situation is when there are several fractions, which must be enclosed in parentheses if done in HTML. For large expressions with lots of fractions, it could be parentheses overload! -- Wapcaplet 11:36 19 May 2003 (UTC)
Yes, those are reasonable situations to use LaTeX. Although I might even write:
The magnitude |a| is defined to be the square root ofor at least
- a12 + a22 + a32.
The magnitude |a| is defined by-- Toby Bartels 03:05 20 May 2003 (UTC)that is, |a| is the square root of a12 + a22 + a32.
- <math>|\mathbf{a}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{3}}; </math>
How do I make a TeX line break?
Hi Wshun, I don't think there is any good way to assign background colors to formulas. Even if the white areas were transparent, the anti-aliasing effects around the symbols would still cause problems.
I do like the idea, though! I see what you're going for. Since coloring the background of the DIV is not an option, perhaps a colored border would work. Using some padding may also help set the formula out from the surrounding text:
The Riemann zeta function ζ(s) is defined for all complex numbers s≠1. It has certain so-called "trivial" zeros for s = -2, s = -4, s = -6, ... The Riemann hypothesis is concerned with the non-trivial zeros, and states that:
Thus the non-trivial zeros should lie on the so-called critical line 1/2 + it with t a real number and i the imaginary unit.
This traditional formulation obscures somewhat the true importance of the conjecture. The zeta function has a deep connection to the distribution of prime numbers and Helge von Koch proved in 1901 that the Riemann hypothesis is equivalent to the following considerable strengthening of the prime number theorem:
The zeros of the Riemann zeta function and the prime numbers satisfy a certain duality property, known as the explicit formulae which show that in the language of Fourier analysis the zeros of the zeta function can be regarded as the harmonic frequencies in the distribution of primes.
Though, this might be the kind of thing that is of interest to other authors working on formulas. Some sort of standard practice would have to be agreed upon. Anyone else have ideas on this? Has something like this been proposed before? It seems to be a great way to highlight math markup that is especially important, just like they do in math textbooks.
-- Wapcaplet 02:37 17 Jun 2003 (UTC)
Search Encyclopedia
|
Featured Article
|