On 2013-11-02, Lukashevichus Ksenia wrote:

> 2) In math directive I use some symbols from amssymb package for latex, but 
> when LaTeX is produced, there is no "usepackage" for amssymb and of course 
> I get the mistakes. What's wrong?

While the Docutils LaTeX writer always inserts a "usepackage{amsmath} if
there is "math" in the document, this may be not the case with the Sphinx
LaTeX writer. You may need to add this to your configuration setup
(latex_preamble in conf.py).

> 3) Is there something wrong with this code:
> .. math::
>    :label: valign2
>    &&S = \begin{pmatrix}
>         c & s\\
>         -s & c
>        \end{pmatrix},\quad c = \langle\hat{v_1},\ \hat{v_2}\rangle,\ \quad 
> s = \sqrt{1 - c^2},\ \quad \hat{v_i} = \dfrac{v_i}{\|v_i\|}\\ 

Why do you start with && and end with \\?

> Because when I make latexpdf, these lines look like:

However, running through Docutils and then pdflatex, the code works.

In my view, the result of \hat{v_1} looks not as good as \hat{v}_1, though
(with Latin Modern and standard mathematical CM fonts).

Günter

-- 
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/groups/opt_out.

Reply via email to