LaTeX-style \sqrt[]{}
Fix LaTeX macros so that both (TeX-style) \root{}{} and (LaTeX-style) \sqrt[]{} can appear in the same file. The latter will be supported in the next version of itex2MML.
This commit is contained in:
parent
1c35c2d3fc
commit
105c1d79e7
|
@ -97,6 +97,7 @@
|
|||
% Renames \sqrt as \oldsqrt and redefine root to result in \sqrt[#1]{#2}
|
||||
\let\oldroot\root
|
||||
\def\root#1#2{\oldroot #1 \of{#2}}
|
||||
\renewcommand{\sqrt}[2][]{\oldroot #1 \of{#2}}
|
||||
|
||||
% Manually declare the txfonts symbolsC font
|
||||
\DeclareSymbolFont{symbolsC}{U}{txsyc}{m}{n}
|
||||
|
|
|
@ -142,6 +142,7 @@ class WikiControllerTest < ActionController::TestCase
|
|||
|
||||
# Tempfile doesn't know how to open files with binary flag, hence the two-step process
|
||||
Tempfile.open('instiki_export_file') { |f| @tempfile_path = f.path }
|
||||
@tempfile_path.to_s
|
||||
begin
|
||||
File.open(@tempfile_path, 'wb') { |f| f.write(r.body); @exported_file = f.path }
|
||||
Zip::ZipFile.open(@exported_file) do |zip|
|
||||
|
@ -1141,6 +1142,7 @@ class WikiControllerTest < ActionController::TestCase
|
|||
% Renames \sqrt as \oldsqrt and redefine root to result in \sqrt[#1]{#2}
|
||||
\let\oldroot\root
|
||||
\def\root#1#2{\oldroot #1 \of{#2}}
|
||||
\renewcommand{\sqrt}[2][]{\oldroot #1 \of{#2}}
|
||||
|
||||
% Manually declare the txfonts symbolsC font
|
||||
\DeclareSymbolFont{symbolsC}{U}{txsyc}{m}{n}
|
||||
|
|
Loading…
Reference in a new issue