This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[libstdc++ patch] fix generation of html docs
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 6 Jan 2007 10:19:52 +0100
- Subject: [libstdc++ patch] fix generation of html docs
include/tr1/random uses \binom which is only available in the amsmath
package. Either use this one or avoid the \binom command. The other
fix removes an extra brace in the formula. Ok for 4.2 and trunk?
Matthias
2007-01-06 Matthias Klose <doko@debian.org>
* include/tr1/random (gamma_distribution): Fix typo in formula.
* docs/doxygen/user.cfg.in: Use package amsmath.
Index: include/tr1/random
===================================================================
--- include/tr1/random (revision 120511)
+++ include/tr1/random (working copy)
@@ -2270,7 +2270,7 @@
* @brief A gamma continuous distribution for random numbers.
*
* The formula for the gamma probability mass function is
- * @f$ p(x) = \frac{1}{\Gamma(\alpha)} x^{\alpha - 1} e^{-x} } @f$.
+ * @f$ p(x) = \frac{1}{\Gamma(\alpha)} x^{\alpha - 1} e^{-x} @f$.
*/
template<typename _RealType = double>
class gamma_distribution
Index: docs/doxygen/user.cfg.in
===================================================================
--- docs/doxygen/user.cfg.in (revision 120511)
+++ docs/doxygen/user.cfg.in (working copy)
@@ -902,7 +902,7 @@
# The EXTRA_PACKAGES tag can be to specify one or more names of LaTeX
# packages that should be included in the LaTeX output.
-EXTRA_PACKAGES =
+EXTRA_PACKAGES = amsmath
# The LATEX_HEADER tag can be used to specify a personal LaTeX header for
# the generated latex document. The header should contain everything until