patchGNU Octave - Patches: patch #9009, Latex equation support in the...


patch #9009: Latex equation support in the documentation created by generate_html package

Submitted by:  Fernando Pujaico Rivera <trucomanx>
Submitted on:  Mon 23 May 2016 11:38:11 PM UTC  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 25 May 2016 05:36:20 AM UTC, comment #4:

There is an ongoing discussion on the mailing concerning this idea:

On the one hand, it seems that this has already been discussed, and that MathJax would be a relevant alternative to jsMath. I have no idead if it is better or not. I would be nice if someone could summarize the main existing alternatives for displaying maths in HTML documents, together with their respective advantages and drawbacks (with references !).

On the other hand, the generate_html package does not have to make an exclusive choice about this issue. I could perfectly imagine having several options for the production of equations, and an option to choose the one that is actually used.

Julien Bect <jbect>
Tue 24 May 2016 12:19:42 AM UTC, comment #3:

Please unconsidered the comment #1 and comment #2
and download the compressed file with the jsMath directory of:

Fernando Pujaico Rivera <trucomanx>
Mon 23 May 2016 11:45:34 PM UTC, comment #2:

I am trying upload a tar.gz file or zip, but I can't.
If the file is not attached here, them please:

# The jsMath/ directory has uncompressed versions of:
# of site
# Apache License V2.0

# To add amsmath support (library of Latex).
# jsMath/easy/load.js line 108
--- loadFiles: [],
+++ lloadFiles: ["extensions/AMSmath.js"],

# To enable javascript interpretation of jsMath inside <pre> </pre>.
# jsMath/plugins/tex2math.js line 157
--- (element.tagName && element.tagName.match(/^(script|noscript|style|textarea|pre|code)$/i));
+++ (element.tagName && element.tagName.match(/^(script|noscript|style|textarea|code)$/i));

Fernando Pujaico Rivera <trucomanx>
Mon 23 May 2016 11:40:53 PM UTC, comment #1:

Attaching jsMath.tar.gz

Fernando Pujaico Rivera <trucomanx>
Mon 23 May 2016 11:38:11 PM UTC, original submission:

I like propose to use JavaScript to give Latex equation support
in texinfo source documentation created by generate_html package.

I am attaching a zip file ( with a modified jsMath code.
this package should be uncompressed in the directory:

Below, I am attaching the file jsMath_octave-forge_changes.diff
with a list of my modifications over jsMath code in the jsMath.tar.gz file.

Now to use this JavaScript code only need to made:

jsMath_head_code = [ ...
"<STYLE> #jsMath_Warning {display: none} </STYLE>\n" ...
"<SCRIPT SRC=\"../../jsMath/easy/load.js\"></SCRIPT>\n"];
adding_jsMath = [" --set-customization-variable 'EXTRA_HEAD ", jsMath_head_code, "'"];

options = get_html_options ("octave-forge");
options.package_doc_options=[options.package_doc_options, adding_jsMath];
generate_package_html ("bsltl", "bsltl_html", options);

the result can be seen in the next page:

Please I would to know your comments about this proposal.

Fernando Pujaico Rivera <trucomanx>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #37242:  jsMath_octave-forge_changes.diff added by trucomanx (633B - text/x-patch - latex equation support)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by siko1056
  • -unavailable- added by jbect (Posted a comment)
  • -unavailable- added by trucomanx (Submitted the item)
  • -unavailable- added by trucomanx (latex equation support)
  • -unavailable- added by trucomanx (latex equation support)
  • -unavailable- added by trucomanx (latex equation support)
  • -unavailable- added by trucomanx (latex equation support)
  • -unavailable- added by trucomanx (latex equation support)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 25 May 2016 11:55:53 AM UTCsiko1056Carbon-Copy-=>Added siko1056
    Mon 23 May 2016 11:38:11 PM UTCtrucomanxAttached File-=>Added jsMath_octave-forge_changes.diff, #37242
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-
      Carbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1