Hi,

Of course, you can do it with writing your own extension. As you said,
imgmath is good example to make it.

Thanks,
Takeshi KOMIYA

2020年12月23日(水) 7:19 Denis Bitouzé <[email protected]>:
>
> Hi,
>
> I'm trying to use Sphinx for a LaTeX FAQ (in French).
>
> It would be nice for LaTeX snippets to be able to be rendered as images,
> preferably as SVG ones.
>
> I'm aware of the sphinx.ext.imgmath extension that renders math via
> LaTeX and dvisvgm into SVG images.
>
> But could this be extended to other content than (exclusively) math,
> just as dvisvgm can do, as shown by:
>
> --8<---------------cut here---------------start------------->8---
> pdflatex <<< "\documentclass{article}
> \usepackage{lmodern}
> \begin{document}
> \section{Test}
> This a \emph{test} for \textsf{dvisvgm}!
> \end{document}" && dvisvgm --pdf texput.pdf && xdg-open test.svg
> --8<---------------cut here---------------end--------------->8---
>
> Thanks for any help on this subject.
> --
> Denis
>
> --
> 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 view this discussion on the web visit 
> https://groups.google.com/d/msgid/sphinx-users/87zh25pjpi.fsf%40example.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CAFmkQANKk9zc39Gbju4B6Lu3%2BUq_wQ9itEhfig%3DPLyo7oxW2rA%40mail.gmail.com.

Reply via email to