On Thu, Nov 21, 2013 at 4:22 PM, Kornel Benko <kor...@lyx.org> wrote:
> Am Donnerstag, 21. November 2013 um 21:35:02, schrieb Georg Baum
> <georg.b...@post.rwth-aachen.de>
>
>> Scott Kostyshak wrote:
>
>>
>
>> > I'm guessing tex2lyx is assuming that ~/.lyx (or ~/.lyx2.1) is my
>
>> > userdir. If it does not exist and I use -userdir on the commandline to
>
>> > start LyX, tex2lyx gets confused:
>
>>
>
>> The reason for this is that tex2lyx gets called without the -userdir
>> switch.
>
>> This happens also for regular imports, not only clipboard paste. To fix
>
>> this, one would probably need to implement a placeholder for the userdir
>> in
>
>> the converter machinery and modify configure.py to use that for tex2lyx.
>
>>
>
> Should we change the convertor calls?
>
> E.g. LaTeX(plain) -> LyX
>
> ...tex2lyx -userdir $$User -f $$i $$o
>
> (This does not work unfortunately)

I'm guessing this won't get done for 2.1. The attached patch notes
this behavior in "man lyx" under the "userdir" option.

Any objection?

Scott
From 8c492986c347b7f2b8c0463c5ce8aa44c2980cb9 Mon Sep 17 00:00:00 2001
From: Scott Kostyshak <skost...@lyx.org>
Date: Sun, 24 Nov 2013 20:30:33 -0500
Subject: [PATCH] Note in man that userdir breaks "Paste from LaTeX"

See http://marc.info/?l=lyx-devel&m=138501185432313&w=2
---
 lyx.1in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lyx.1in b/lyx.1in
index 8c07f5a..f425b93 100644
--- a/lyx.1in
+++ b/lyx.1in
@@ -54,7 +54,7 @@ sets system directory. Normally not needed.
 .TP
 .BI \-userdir " directory"
 sets user directory. Needed if you want to use LyX with different lyxrc
-settings.
+settings. Using this option will break "\fBPaste from LaTeX\fR".
 .TP
 .BI \-geometry " WxH+X+Y"
 set geometry of the main window.
-- 
1.8.1.2

Reply via email to