Enabled LaTeX expressions in javadoc via MathJax. JIRA: MATH-1006.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1504314 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ce96ee600f
commit
a934dbbb88
|
@ -247,6 +247,7 @@
|
||||||
doctitle="<h1>${component.title} ${component.version}</h1>"
|
doctitle="<h1>${component.title} ${component.version}</h1>"
|
||||||
windowtitle="${component.title} ${component.version}"
|
windowtitle="${component.title} ${component.version}"
|
||||||
bottom="Copyright (c) 2003-${current.year} Apache Software Foundation"
|
bottom="Copyright (c) 2003-${current.year} Apache Software Foundation"
|
||||||
|
additionalparam="-header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'"
|
||||||
classpathref="compile.classpath">
|
classpathref="compile.classpath">
|
||||||
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
|
<link href="http://java.sun.com/j2se/1.5.0/docs/api/"/>
|
||||||
</javadoc>
|
</javadoc>
|
||||||
|
|
19
pom.xml
19
pom.xml
|
@ -455,7 +455,15 @@
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- MathJax -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>2.9.1</version>
|
||||||
|
<configuration>
|
||||||
|
<additionalparam>-header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'</additionalparam>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
@ -578,6 +586,15 @@
|
||||||
</reportSet>
|
</reportSet>
|
||||||
</reportSets>
|
</reportSets>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- MathJax -->
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-javadoc-plugin</artifactId>
|
||||||
|
<version>2.9.1</version>
|
||||||
|
<configuration>
|
||||||
|
<additionalparam>-header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'</additionalparam>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</reporting>
|
</reporting>
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -51,6 +51,9 @@ If the output is not quite correct, check for invisible trailing spaces!
|
||||||
</properties>
|
</properties>
|
||||||
<body>
|
<body>
|
||||||
<release version="x.y" date="TBD" description="TBD">
|
<release version="x.y" date="TBD" description="TBD">
|
||||||
|
<action dev="psteitz" type="update" issue="MATH-1006">
|
||||||
|
Enabled LaTeX expressions in javadoc via MathJax.
|
||||||
|
</action>
|
||||||
<action dev="sebb" type="add" issue="MATH-1000">
|
<action dev="sebb" type="add" issue="MATH-1000">
|
||||||
Add mode function to Frequency class.
|
Add mode function to Frequency class.
|
||||||
</action>
|
</action>
|
||||||
|
|
|
@ -174,6 +174,17 @@
|
||||||
<li>
|
<li>
|
||||||
External references or full statements of definitions for all mathematical
|
External references or full statements of definitions for all mathematical
|
||||||
terms used in component documentation <i>must</i> be provided.</li>
|
terms used in component documentation <i>must</i> be provided.</li>
|
||||||
|
<li>
|
||||||
|
Commons math javadoc generation now supports embedded LaTeX formulas via the
|
||||||
|
<a href="http://www.mathjax.org">MathJax</a> javascript display engine. To
|
||||||
|
embed mathematical expressions formatted in LaTeX in javadoc, simply surround
|
||||||
|
the expression to be formatted with either \( and \) for inline
|
||||||
|
formulas, or \[ and \] to have the formula appear on a separate line.
|
||||||
|
For example, \(a^2 + b^2 = c^2\) will render an in-line formula
|
||||||
|
saying thqt (a, b, c) is Pythagorean triplet. Using \[ and \] on
|
||||||
|
the ends will render the same formula on a separate line. See the MathJax
|
||||||
|
and LaTex documentation for details on how to represent formulas and
|
||||||
|
escape special characters.</li>
|
||||||
<li>
|
<li>
|
||||||
Implementations <i>should</i> use standard algorithms and
|
Implementations <i>should</i> use standard algorithms and
|
||||||
references or full descriptions of all algorithms <i>should</i> be
|
references or full descriptions of all algorithms <i>should</i> be
|
||||||
|
|
Loading…
Reference in New Issue