Thank you for your answer!
I have some more questions.
1) Is it possible to use math symbols in titles of sections? When in LaTeX,
there is "\texorpdfstring" but when I produce HTML using Sphinx, it's not
processed.
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?
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\|}\\
?
Because when I make latexpdf, these lines look like:
\phantomsection\label{some_rst:equation-valign2}\begin{gather}
\begin{split}&&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\|}\\\end{split}\label{some_rst-valign2}
\end{gather}
and trying to compile it with PDFLaTeX I get:
! Extra alignment tab has been changed to \cr.
Hope for any help, thank you!
четверг, 31 октября 2013 г., 5:15:34 UTC+4 пользователь shirou написал:
>
> HI Ksenia,
>
> For the second question.
>
> When you use an asterisk for the image extension like this,
>
> .. image:: gnu.*
>
> Sphinx searches all images matching the pettern. and each builder
> (HTML, LaTeX etc...) have prefer image type.
> so it possible to use png for HTML and PDF for LaTeX.
> See <http://sphinx-doc.org/latest/rest.html#images>
>
> However, it seems Sphinx can not understand ".eps" extension for the image
> type,
> and also, Sphinx use imghdr
> <http://docs.python.org/2.7/library/imghdr.html> library to detect an
> image type. but it does not support eps image type.
>
>
> After all, currently I think it is not possible to use png and eps
> (Just look at a code. I may made mistakes)
> But you can make a PullRequest which makes determine the eps file from
> the extension. it may change around here.
>
> https://bitbucket.org/birkenfeld/sphinx/src/e55c174b5dc5885dc2acc9aa8089e324ffc47b63/sphinx/environment.py?at=default#cl-769
>
> or make a issue which requests this feature.
>
> Thank you,
> WAKAYAMA Shirou
>
>
> 2013/10/28 Lukashevichus Ksenia <[email protected] <javascript:>>:
> > Hello everyone!
> > I'm trying to get latex and HTML documentation using Sphinx 1.2b2, and
> while
> > HTML result seems to be quite OK, latex output I get gives huge number
> of
> > "undefined control sequence" errors when running PDFLatex, and I can't
> even
> > find a problem in lines it points. RST sources, conf.py and the
> resulting
> > latex file are attached.
> > The second question:
> > Is it possible to use png pictures for HTML and eps for latex?
> >
> > Ksenia Lukashevichus.
> >
> > --
> > 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] <javascript:>.
> > To post to this group, send email to
> > [email protected]<javascript:>.
>
> > Visit this group at http://groups.google.com/group/sphinx-users.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
--
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.