On Wed, Jan 8, 2014 at 7:13 PM, Nasser M. Abbasi <[email protected]> wrote:
> -------------------------------
> \Configure{@HEAD}{\HCode{
> <script type="text/x-mathjax-config">
> MathJax.Hub.Config({
> extensions: ["tex2jax.js"],
> jax: ["input/TeX", "output/HTML-CSS"],
> tex2jax: {
> inlineMath: [ ['
> ,'], ["\\(","\\)"] ],
> displayMath: [ ['$','$'], ["\\[","\\]"] ],
> processEscapes: true
> },
> "HTML-CSS": { availableFonts: ["TeX"] }
> });
> </script>\Hnewline
> }}
> -----------------------
>
> When I run a tex file that uses the above .cfg,
> I get syntax errors:
>
> --------------------------
> ! Undefined control sequence.
> \\ ->\let \reserved@e
> \relax \let \reserved@f \relax \@ifstar {\let \reserv...
> l.213 \EndPreamble
> ?
> --------------------------
Can you please try the following nma.cfg:
\Preamble{html}
\makeatletter
\def\bsl{\expandafter\@gobble\string\\}
\Configure{@HEAD}{\HCode{
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
inlineMath: [ ['$','$'], ["\bsl\bsl(","\bsl\bsl)"] ],
displayMath: [ ['$$','$$'], ["\bsl\bsl[","\bsl\bsl]"] ],
processEscapes: true
},
"HTML-CSS": { availableFonts: ["TeX"] }
});
</script>ewline
}}
\begin{document}
\EndPreamble
\makeatother
\endinput
--
Radhakrishnan
River
Valley<https://maps.google.com/maps?q=River%20Valley,%20Thiruvananthapuram%20Neyyardam%20Road,%20Kerala,%20India&vector=1>