Hi Özhan

Please see if this documentation helps:
http://docs.mathjax.org/en/latest/tex.html

You'll have to tell your local Mathjax library about your macros.
Kevin


On 15 July 2015 at 12:51, ozhan fenerci <[email protected]> wrote:

>
> Hello Everybody,
>
> I would like to use macros inside "physics" package, which makes easier to
> type some physics formulas with html output. When I use
> "sphinx.exth.pngmath", I just use latex_preamble to include
> '\usepackage{physics}' to use macros inside sphinx document.
>
> I wonder how I could achieve it by Mathjax. I think Mathjax  can't use
> latex packages directly. For example,
> If I define a new macro:
>
> \newcommand{\ket}[1]{\left|{#1}\right\rangle}
>
> Where should I put this in my files? There are hundres of macro inside 
> physics package. Is there an easy way other than including all lines inside 
> that file.
>  I am using local mathjax library.
>
> Thanks,
> Özhan
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to