configuring latex path from within mnemosyne

176 views
Skip to first unread message

Jakob

unread,
Nov 17, 2009, 11:29:52 AM11/17/09
to mnemosyne-proj-users
Hi,
I'm using mnemosyne a lot on public pcs (e.g. library) via usb stick.
While this is working fine most of the time I can't get it to use
latex, which is also working fine on its own from usb ("MikTex
Portable"). So obviously Mnemosyne is looking in the standard path for
the latex executables, but they are not installed there (as it is only
a cheap public pc with almost no software, windows xp) and I cannot
change the path variables or copy miktex to the system path (as I am
only a guest user, so no fancy admin stuff). So I only need to tell
Mnemosyne something like: forget the standard paths when you want to
use latex go to myUSB/latexdirectory
It seems to be very sensible that this should be something I can do
somewhere in the config files of mnemosyne, but I just could not find
the option to do so yet. Copying mnemosyne to the miketex directory
and starting it from there, didn't seem to make any change. So, can I
tell mnemosyne to do all the latex stuff from a particular directory
(and I mean not telling windows to do so, as I am not allowed to)?

Peter Bienstman

unread,
Jan 31, 2013, 7:25:38 AM1/31/13
to mnemosyne-...@googlegroups.com
And if you don't specify a path in config.py, but rather simply 'latex'
and set the paths at the os level?

Peter

On 01/31/2013 12:35 PM, richar...@googlemail.com wrote:
> Not sure if you're still interested in an answer to this, but I have the exact same problem. Miktex and dvipng are definitely working and I have specified absolute paths to them in config.py, but still the same "are they installed" error in Mnemosyne.
>
> Any tips, Peter or others?
>
> Cheers.

Peter Bienstman

unread,
Jan 31, 2013, 7:51:10 AM1/31/13
to mnemosyne-...@googlegroups.com
I'll see if I can reproduce this. Make sure to use the latest Mnemosyne,
though (2.2a).

Cheers,

Peter

On 01/31/2013 01:44 PM, richar...@googlemail.com wrote:
> Thanks for your response - and sorry I should have re-stated, but like Jakob I am using public PCs. I can change the PATH for one command window using
> SET PATH=%PATH%;c:\dir\to\latex
> but even running mnemosyne from this re-pathed command window doesn't seem to help. I can't change the system's own PATH due to lack of priviledges, and it's impractical if I keep using different PCs.
>

Message has been deleted

Peter Bienstman

unread,
Jan 31, 2013, 8:54:45 AM1/31/13
to mnemosyne-...@googlegroups.com
Hi,

I don't really support anything not coming from the Mnemosyne website.

Have you tried this:

http://mnemosyne-proj.org/help/running-from-usb-drive.php

Cheers,

Peter

On 01/31/2013 02:49 PM, richar...@googlemail.com wrote:
> I'm currently using 2.1 as it's the latest version available "portable". I just tried installing 2.2a to my USB stick, but I don't have access to the usercode\Application Data folder, so I can't edit config.py :-(
>

Peter Bienstman

unread,
Jan 31, 2013, 9:03:27 AM1/31/13
to mnemosyne-...@googlegroups.com
I'm about to leave for travel soon, but I'll have a look at it when I
come back in a few weeks.

Cheers,

Peter

On 01/31/2013 03:01 PM, richar...@googlemail.com wrote:
> Sorry, right after posting the message you read I realised that would obviously be your response, and deleted it pending sorting myself out with a supportable copy. I followed the linked instructions with a fresh download of 2.2a from sourceforge but am still seeing the same error message.
>
> Thanks for your quick responses!!
>

Peter Bienstman

unread,
Feb 14, 2013, 2:41:55 PM2/14/13
to mnemosyne-...@googlegroups.com, richar...@googlemail.com
Got this to work, but make sure you use double slashes when you specify the path, like f:\\miktex\\miktex\\bin\\latex.exe

Cheers,

Peter

On Monday, 4 February 2013 14:11:26 UTC+1, richar...@googlemail.com wrote:
I appreciate that, thanks. As a point of clarification, generally you expect the latex executable to be present in the PATH, correct?

Does specifying a latex.exe location (either absolute or relative) typically work?

Peter Bienstman

unread,
Feb 19, 2013, 2:35:08 AM2/19/13
to mnemosyne-...@googlegroups.com
From F:\Mnemosyne\mnemosyne\config.py:

# Latex command.
latex = "F:\\miktex\\miktex\\bin\\latex.exe -interaction=nonstopmode"

# Latex dvipng command.
dvipng = "F:\\miktex\\miktex\\bin\\dvipng.exe -D 200 -T tight tmp.dvi"

I suggest you try the dvipng command from the command line too, as
perhaps there are missing miktex packages that need to be installed first.

Good luck!

Peter

On 02/18/2013 09:44 PM, astu...@gmail.com wrote:
> Could you kindly copy verbatim the relevant section of the config.py file in which you've gotten this to work? My portable miktex works fine, and if I compile the generated tmp.tex (and subsequent tmp.div) everything comes out perfectly. However, when I try to specify a latex.exe and dvipng.exe path in config.py, I get the "Problem with latex. Are latex and dvipng?" message within Mnemosyne.

Peter Bienstman

unread,
Mar 31, 2013, 4:10:05 AM3/31/13
to mnemosyne-...@googlegroups.com
The current working directory before executing the latex command is
the latex dir, i.e. default.db/media/_latex, so you'll need to add a
few more ..\\

Cheers,

Peter

Quoting richar...@googlemail.com:

> Thanks for the double-backslash trick, that was just the ticket. I
> still run into trouble specifying relative paths though, I feel I
> should be writing:
>
> # Latex command.
> latex = "..\\..\\miktex\\miktex\\bin\\latex -interaction=nonstopmode"
>
> .. but this doesn't find the miktex latex/dvipng files. It does work
> fine when I specify an absolute path, but my USB stick with
> mnemosyne+miktex on isn't always the same letter.
>
> Any thoughts?
> Cheers.
>
> --
> 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-...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/mnemosyne-proj-users/-/qGypNTT7ThEJ.
> For more options, visit https://groups.google.com/groups/opt_out.



Reply all
Reply to author
Forward
0 new messages