Modify

Opened 13 years ago

Closed 13 years ago

Last modified 4 years ago

#8500 closed defect (fixed)

Inline formulas sometimes interfere with WikiFormatting

Reported by: Robert Rossmair Owned by: Kamil Kisiel
Priority: normal Component: TracMathJaxPlugin
Severity: normal Keywords: latex
Cc: Robert Rossmair 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 (3)

TracMathJaxPluginIssue.PNG (5.1 KB) - added by Robert Rossmair 13 years ago.
TracMathJaxPluginIssue2.PNG (3.4 KB) - added by Robert Rossmair 13 years ago.
TracMathJaxPluginIssue3.PNG (1.7 KB) - added by Robert Rossmair 13 years ago.

Download all attachments as: .zip

Change History (12)

Changed 13 years ago by Robert Rossmair

Attachment: TracMathJaxPluginIssue.PNG added

comment:1 Changed 13 years ago by Robert Rossmair

Keywords: monospace removed
Summary: Inline formulas //sometimes// interfere with `monospace` WikiFormatingInline 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.

comment:2 Changed 13 years ago by Kamil Kisiel

Status: newassigned

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?

Changed 13 years ago by Robert Rossmair

Attachment: TracMathJaxPluginIssue2.PNG added

comment:3 Changed 13 years ago by Robert Rossmair

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:

comment:4 Changed 13 years ago by Kamil Kisiel

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.

comment:5 Changed 13 years ago by Robert Rossmair

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:

Changed 13 years ago by Robert Rossmair

Attachment: TracMathJaxPluginIssue3.PNG added

comment:6 Changed 13 years ago by Kamil Kisiel

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.

comment:7 in reply to:  6 Changed 13 years ago by Robert Rossmair

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

comment:8 Changed 13 years ago by Kamil Kisiel

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.

comment:9 Changed 13 years ago by Kamil Kisiel

Resolution: fixed
Status: assignedclosed

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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Kamil Kisiel.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.