Commit Graph
30 Commits
Author SHA1 Message Date
Hong Xu b55b690d0f Texts in the basic html theme should be hyphenated.
To avoid "river of white".
2016-02-19 00:25:36 -08:00
Hong Xu d019d3f9b8 Correct a duplicated test case name in test_ext_math 2016-02-18 18:51:02 -08:00
Hong Xu bb9cde4e32 Math extension: support alignment of multiple equations for MathJAX.
This is a follow-up commit of #2254, which supported alignment of
multiple equations for imgmath and LaTeX output.
2016-02-18 18:49:10 -08:00
Hong Xu 30d3d4d82f Add "language" attribute to html in the "basic" theme 2016-01-30 23:58:46 -08:00
Hong Xu 76e29ca5b3 Use "align" environment to wrap math equations instead of "gather"
Using align brings the benefit when multiple math equations are in one
math directive, alignment is provided. We also use "aligned" to wrap the
equations since in this way all the equations will be given only one
label/tag, while previously only the first equation is labeled.
2016-01-20 23:25:58 -08:00
Hong Xu a75bf5af3c Refactor the tests of math extensions. 2016-01-18 23:47:01 -08:00
Hong Xu 540400635a math: Add math_number_all to enforce numbering all displayed math. 2016-01-18 23:47:01 -08:00
Hong Xu 875e6a503b Run LaTeX in testing: don't skip the test unless all latexes do not exist
Until now when one of the 3 latexes (pdflatex, xelatex, lualatex) does
not exist, the test was skipped. This commit changes the behavior to
"unless none of the 3 latexes exists, don't skip the test".
2016-01-15 11:39:17 -08:00
Hong Xu afcc7f4626 Move the testing code which spawns pdflatex to a function
There are currently two locations in the testing code running the same
code to spawn pdflatex. This commit puts these code into one single
function to reduce redundancy.
2016-01-15 01:48:49 -08:00
Hong Xu 715b460c8c Add more PHONY targets in the LaTeX output Makefile 2016-01-06 12:38:02 +09:00
Hong Xu 8241b3d16f The clean target the LaTeX ouput Makefile should remove more files 2016-01-06 12:38:02 +09:00
Hong Xu e3687bb47d Add "gz" and "xz" archive target to the LaTeX output Makefile 2016-01-06 12:38:02 +09:00
Hong Xu b323900d93 Specify a default format (pdf) in the LaTeX output Makefile 2016-01-06 12:38:02 +09:00
Hong Xu 01c381363e Run xelatex and lualatex as well in latex tests. 2016-01-02 17:58:41 +09:00
Hong Xu 83da5df505 LaTeX: Disable specific UTF-8 support commands for XeTeX and LuaTeX
XeTeX and LuaTeX have builtin UTF-8 support.
2016-01-02 17:58:41 +09:00
Hong Xu 3db02ede82 Set <blockquote> in the classic theme to fit with <p>.
A blockquote looks better if its text style is close to <p>.
2016-01-01 12:21:24 -08:00
Hong Xu d8990b4612 Add deprecation information to sphinx.ext.pngmath 2015-12-29 15:14:04 -08:00
Hong Xu f233c604ef imgmath: Make the size of the displayed math customizable. 2015-12-29 15:14:04 -08:00
Hong Xu ea25284d0a Replace pngmath with imgmath in quickstart. 2015-12-29 15:14:04 -08:00
Hong Xu 657ebc2ab0 Add Hong Xu to the AUTHOR list 2015-12-29 15:14:04 -08:00
Hong Xu f68bfbdbb7 Update the pngmath doc to synchronize with imgmath 2015-12-29 15:14:04 -08:00
Hong Xu 355fe2a233 Add the imgmath extension, the successor of pngmath.
In addition to the features which pngmath supports, imgmath also
supports svg output format.
2015-12-29 15:13:57 -08:00
Hong Xu 4d3fdc0e47 Fix LaTeX output of \mathbb in math
If \mathbb is used in math, which is commonly used to represent sets,
the output LaTeX won't compile. This commit fixes this issue by adding
amsfonts package in the setup of sphinx.ext.mathbase .
2015-12-21 01:30:14 -08:00
Hong Xu eac142f8b8 LaTeX: Support math in section titles
Fix #1480
2015-12-20 03:16:54 -08:00
Hong Xu 61d18a533f Update changes for #2182 2015-12-19 12:51:52 -08:00
Hong Xu 2ee03a2729 Fix #981: LaTeX: support image file names with more than 1 dots
LaTeX cannot detect image file names with more than 1 dots in it
correctly. The solution is to use '{}' to surround the base name. See
https://tex.stackexchange.com/questions/10574/includegraphics-dots-in-filename

Fix #981
2015-12-17 19:03:31 -08:00
Hong Xu 691141d23f sphinx.ext.graphviz: Add doc to explain how to make the links in svg output work. 2015-12-16 19:33:17 -08:00
Hong Xu 1a1f735478 sphinx.ext.graphviz: use <object> instead of <img> to embed svg
If svg files are embedded in <img> in html, all interactive features are
lost, which graphviz is able to produce. This commit replace <img> with
<object> for svg files.

Close #967
2015-12-16 02:55:40 -08:00
Hong Xu 0084004cfd Add testing cases for the "latex_show_urls" option 2015-12-11 15:06:14 -08:00
Hong Xu e2f56a64a4 Email addresses should not be showed again if latex_show_urls is not False
The latex output shows email addresses even the external links itself is
an email address. For example, for an email address me@example.com,
latex output will show it as "me@example.com (me@example.com)".  This
commit fixes this issue by removing the "mailto:" prefix before
comparing the text and uri.
2015-12-11 15:05:54 -08:00