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:  Forge : new feature Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/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:
http://octave.1599824.n4.nabble.com/Latex-equation-support-in-the-documentation-created-by-generate-html-package-td4677129.html

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:

http://www.decom.fee.unicamp.br/~fpujaico/jsMath.tar.gz

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:
# jsMath-3.6e.zip jsMath-fonts-1.3.zip jsMath-fonts-sprite-1.0.zip
# of site http://www.math.union.edu/~dpvc/jsMath/
# 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 (jsMath.zip) with a modified jsMath code.
this package should be uncompressed in the directory:
http://octave.sourceforge.net/

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="overview.texi";
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:

http://nongnu.org/bsltl/bsltl_refman/bsltl/package_doc/index.html

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 Files:
   
   
Comment:
   

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
  • -email is unavailable- added by mtmiller (Updated the item)
  • -email is unavailable- added by siko1056
  • -email is unavailable- added by jbect (Posted a comment)
  • -email is unavailable- added by trucomanx (Submitted the item)
  • -email is unavailable- added by trucomanx (latex equation support)
  • -email is unavailable- added by trucomanx (latex equation support)
  • -email is unavailable- added by trucomanx (latex equation support)
  • -email is unavailable- added by trucomanx (latex equation support)
  • -email is unavailable- added by trucomanx (latex equation support)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-10 mtmiller CategoryNone => Forge : new feature
    2016-05-25 siko1056 Carbon-Copy- => Added siko1056
    2016-05-23 trucomanx Attached File- => Added jsMath_octave-forge_changes.diff, #37242
        Carbon-Copy- => Added -email is unavailable-
        Carbon-Copy- => Added -email is unavailable-
        Carbon-Copy- => Added -email is unavailable-
        Carbon-Copy- => Added -email is unavailable-
        Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.3