I have successfully added cards to Mnemosyne with LaTeX formatting for
basic inline mathematical equations (using MacTeX install).
Now I would like to add some nice plots so I researched the use of the
pstricks package.
Per the various docs I found, I updated the LaTeX preamble in
Mnemosyne/config.py with:
\usepackage{pdftricks}
\begin{psinputs}
\usepackage{pstricks}
\usepackage{multido}
\end{psinputs}
I also updated the LaTeX command to include the switch for shell-execution:
latex = "/Library/TeX/texbin/latex -output-format=dvi
-interaction=nonstopmode -shell-escape"
I opened some LaTeX formatted cards in Mnemosyne, and they open with no
problem. To test the new package, I create a card front with:
<latex>A Grid!</latex>
and a card back with :
<latex>
\begin{pdfpic}
\begin{pspicture} [showgrid=true] (3,3)
\pscircle[linecolor=blue,doubleline=true,doublecolor=red,doublesep=12pt]
(1.5,1.5){1.5}
\pscircle*[linecolor=green] (1.5,1.5){O.25}
\end{pspicture}
\end{pdfpic}
</latex>
The example is from LaTex Graphics Companion by Goosens et al.
When I preview the card, I don't get any errors, just a blank card back.
I considered that maybe shell-escape isn't working because it is being
invoded by Mnemosyne and not by me, so at my peril I ran sudo Mnemosyne but
there was no change.
Any ideas?
Also, what is the working directory used for LaTeX compilation? Perhaps
there is a log file I can dissect.
--
You received this message because you are subscribed to the Google Groups
"mnemosyne-proj-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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/mnemosyne-proj-users/ea0af26f-9214-438e-9705-14ed2b4a008a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.