Ticket #8500 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Inline formulas sometimes interfere with WikiFormatting

Reported by: rrossmair Assigned to: kisielk
Priority: normal Component: TracMathJaxPlugin
Severity: normal Keywords: latex
Cc: rrossmair Trac Release: 0.12

Description

Source code:

Im Falle, daß wir keine astigmatische Linse haben (`Cylinder = 0`), ist \( D_1 \) = `BaseCurve`, \(D\) entspricht `Sphere` und \(D_2\) kann nach unten stehender Formel berechnet werden.

Result:

Attachments

TracMathJaxPluginIssue.PNG (5.1 kB) - added by rrossmair on 02/14/11 13:57:46.
TracMathJaxPluginIssue2.PNG (3.4 kB) - added by rrossmair on 02/15/11 17:28:57.
TracMathJaxPluginIssue3.PNG (1.7 kB) - added by rrossmair on 02/15/11 19:18:27.

Change History

02/14/11 13:57:46 changed by rrossmair

  • attachment TracMathJaxPluginIssue.PNG added.

02/14/11 14:28:24 changed by rrossmair

  • keywords changed from monospace latex to latex.
  • summary changed from Inline formulas //sometimes// interfere with `monospace` WikiFormating to Inline formulas sometimes interfere with WikiFormatting.

I just noticed that there are similar problems with table separators, i.e. ||, so it seems the issue is with WikiFormatting in general.

02/15/11 04:46:45 changed by kisielk

  • status changed from new to assigned.

I believe I have this fixed in the default branch on bitbucket: https://bitbucket.org/kisielk/tracmathjaxplugin/

Can you download the development code from https://bitbucket.org/kisielk/tracmathjaxplugin/get/9b0942b0d876.zip and let me know if it fixes the bug for you?

02/15/11 17:28:57 changed by rrossmair

  • attachment TracMathJaxPluginIssue2.PNG added.

02/15/11 17:30:24 changed by rrossmair

Not quite, the example I gave renders correctly now, but the following table row

||\(W_\alpha\)||Wirkung im Meridianschnitt mit Winkel \(\alpha\) (gegenüber Bezugs-Hauptschnitt) in \(dpt\)||

still doesn't:

02/15/11 18:49:54 changed by kisielk

Thanks for providing an example.

Can you try the revision from https://bitbucket.org/kisielk/tracmathjaxplugin/get/e84e96a982aa.zip and see if it solves the table problem for you? I didn't get a chance to fully test it before running off to work this morning, but I think it should do the trick.

02/15/11 19:18:08 changed by rrossmair

The other errors are gone now, but unfortunately I see a new one. This worked before, but doesn't anymore:

\[
W_\alpha = D_{sph} + D_{cyl}·sin^2\alpha
\]

Result:

02/15/11 19:18:27 changed by rrossmair

  • attachment TracMathJaxPluginIssue3.PNG added.

(follow-up: ↓ 7 ) 02/15/11 19:35:09 changed by kisielk

If that worked before, it must have been purely by accident since I never wrote in support for the \[ .. \] block syntax. The way I intended to use it is the $$ ... $$ or latex processor block syntax. However, if you want support for the square braces I can add that as well.

(in reply to: ↑ 6 ) 02/15/11 20:20:52 changed by rrossmair

Replying to kisielk:

If that worked before, it must have been purely by accident since I never wrote in support for the \[ .. \] block syntax.

Oh. My mistake... I guess I tried it and it worked so far.

The way I intended to use it is the $$ ... $$ or latex processor block syntax. However, if you want support for the square braces I can add that as well.

No, that won't be necessary.

Thank you for that great plugin, I really appreciate it. Greetings, Robert

02/15/11 20:27:27 changed by kisielk

It's not too hard to add, I'll probably put it in later tonight and release a new version with the fixes. It seems I totally forgot that \[ ... \] is the mid-length displaymath syntax in LaTeX :) Will close this ticket when done.

Thanks for the bug report and examples.

02/22/11 06:56:40 changed by kisielk

  • status changed from assigned to closed.
  • resolution set to fixed.

I've released version 0.2 of the plugin that addresses your problems.

I've included support for the \[ ... \] braces as well. However, due to limitations in the Trac wiki syntax API, the braces cannot span multiple lines. For multi-line formulas you still need to use the

{{{
#!latex
....
}}}

processor syntax.


Add/Change #8500 (Inline formulas sometimes interfere with WikiFormatting)




Change Properties
Action