Opened 11 years ago

Closed 11 years ago

#8202 closed enhancement (fixed)

Allow raw HTML in jsMath's \hbox{}

Reported by: mpatel Owned by: was
Priority: minor Milestone: sage-4.3.3
Component: notebook Keywords:
Cc: rbeezer Merged in: sagenb-0.7.5
Authors: Mitesh Patel Reviewers: Rob Beezer
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

We can do this by setting safeHBoxes to 0 in sagenb/data/sage/js/jsmath.js.

See sage-notebook.

Attachments (1)

trac_8202-jsmath_hboxes.patch (661 bytes) - added by mpatel 11 years ago.
Disable jsMath's safeHBoxes option. sagenb repo.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by mpatel

Disable jsMath's safeHBoxes option. sagenb repo.

comment:1 Changed 11 years ago by mpatel

  • Authors set to Mitesh Patel
  • Milestone set to sage-4.3.3
  • Status changed from new to needs_review

I've attached a patch that only disables jsMath's safe \hbox{} setting. Feel free to ignore it!

comment:2 follow-up: Changed 11 years ago by mpatel

The patch should apply cleanly to SageNB 0.7.4 (cf. #8051), which will be part of Sage 4.3.2. But it may also work with SageNB 0.6.

comment:3 in reply to: ↑ 2 Changed 11 years ago by rbeezer

  • Reviewers set to Rob Beezer
  • Status changed from needs_review to positive_review

Replying to mpatel:

The patch should apply cleanly to SageNB 0.7.4 (cf. #8051), which will be part of Sage 4.3.2. But it may also work with SageNB 0.6.

I've tested this on 4.3.1 with SageNB 0.7.4 (cf. #8051). It behaves as expected with patch applied (and behavior reverts when I pop it off). This is a big help with rendering my textbook-conversion experiments. Thanks for the help.

Positive review.

Rob

comment:4 Changed 11 years ago by mpatel

  • Merged in set to sagenb-0.7.5
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.