Adding Packages to Latex for Mnemosyne

216 views
Skip to first unread message

mazerra...@gmail.com

unread,
Sep 22, 2014, 2:51:22 PM9/22/14
to mnemosyne-...@googlegroups.com
Hi,

I'm using Mnemosyne to create note cards for my research and math courses. There are some Latex symbols for which special packages need to be added. For example, to use the real number symbol Latex requires amsmath to be added and the command \mathbb{R} used.

My question is, can such packages be loaded so that the Latex support of Mnemosyne will recognize a command like \mathbb{R}? If so how?

Currently, my cards can only work with the default package.

Thanks for any help you can offer.

Peter Bienstman

unread,
Sep 23, 2014, 7:18:57 AM9/23/14
to mnemosyne-...@googlegroups.com
Sure, see the latex section here:

http://mnemosyne-proj.org/help/adding-media.php

Cheers,

Peter
> --
> 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 mnemosyne-proj-u...@googlegroups.com.
> To post to this group, send email to mnemosyne-proj-
> us...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mnemosyne-proj-users/7734ced6-
> f708-4a2b-818e-e33b3c56a83c%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

mazerra...@gmail.com

unread,
Oct 3, 2014, 11:49:30 PM10/3/14
to mnemosyne-...@googlegroups.com
Hi Peter,

I can't seem to get it working. I must be doing it wrong. I've tried:

<latex> \usepackage{amsmath} </latex>

<$> \mathbb{R} </$>

and also:

<latex> \usepackage{amsmath}

<$> \mathbb{R} </$>

</latex>

Neither of which works. I also looked into the "advanced" link from the page you sent me to. It appears that one should be able to add packages to the latex preamble in the config.py file which would make it possible to have them automatically available, that would be greatly preferable. However, I've followed the path on the page and scoured the rest of my drive as well and can't seem to find the config.py file anywhere. More help appreciated :)

mazerra...@gmail.com

unread,
Oct 4, 2014, 12:28:21 AM10/4/14
to mnemosyne-...@googlegroups.com, mazerra...@gmail.com
Update:

I did some more work and managed to get it up and running. For future information either to devs or to anyone else trying to get their cards to work what I did (and the problems I encountered were).

1) I attempted to follow the specified file path and couldn't

2) I went into Mnemosnye itself and went to File->Open
This took me to the folder in User>(My Name)>AppData>Roaming>Mnemosyne

In this folder was the file config.py but I could not open it (I didn't just get the "Windows can't open this type of file" message but an actual error preventing anything else from happening.

3) I tried to follow the file path with Mnemosyne closed.
However, upon getting to User>(My Name) there was NOT a file "AppData" visible and so I could not continue.

4) I went back into Mnemosyne. Went through step (2) again, but this time I copied the file path from the navigation bar.

5) I closed Mnemosyne again and then went to the search bar in the start menu and pasted in the file path. This took me back to wear I had been in step (2) but now with Mnemosyne closed windows displayed the standard "Windows doesn't know how to open this file" error.

6) I opened the file in Notepad and edited the Latex part of the file adding in both \usepackage{amsmath} and also \usepackage{amssymb} between the lines \pagestyle{empty} and \begin{document} commands, just as one would in a Latex document.

7) I saved the config.py file and closed it.

8) I opened Mnemosyne and created a new card using <$> \mathbb{R} </$> and the real number symbol was correctly displayed.

I hope this information helps anyone out there in a similar situation that I found myself in.

Thanks to Pete for putting me on the right trail. Good Luck All :)

Reply all
Reply to author
Forward
0 new messages