diff --git a/app/views/wiki/tex.rhtml b/app/views/wiki/tex.rhtml index c4b5563c..0c5b8380 100644 --- a/app/views/wiki/tex.rhtml +++ b/app/views/wiki/tex.rhtml @@ -4,6 +4,7 @@ \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} +\usepackage{mathtools} <%- if @tex_content =~ /\\mathbb\{[^}]*[a-z0-9]+[^}]*\}/ -%> \usepackage{mathbbol} <% end -%> diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index 1a18af7d..dde7b9fe 100755 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -930,6 +930,7 @@ class WikiControllerTest < ActionController::TestCase \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} +\usepackage{mathtools} ! @tex_header2 = %q!\usepackage{graphicx} \usepackage{color} diff --git a/test/unit/page_renderer_test.rb b/test/unit/page_renderer_test.rb index 7975869c..3cbd2967 100644 --- a/test/unit/page_renderer_test.rb +++ b/test/unit/page_renderer_test.rb @@ -211,6 +211,13 @@ END_THM end def test_have_latest_itex2mml + + assert_markup_parsed_as( + %{
equation
}, + "equation $A \\coloneqq B$") assert_markup_parsed_as( %{equation