Re: Automatic save of LaTeX

2016-04-19 Thread Stephan Witt
Am 19.04.2016 um 17:42 schrieb Anders Host-Madsen :
> 
> Anders Host-Madsen  yahoo.com> writes:
> 
> A few more comment on this. To get the same latex file as one would
> get when exporting from the menu, set the "nice" flag in the exporter.
> 
> The main issue with the script approach is that it changes the name 
> of the files. For example, spaces become _. I don't see how to solve
> this. I doesn't seem the real name of the original file is available
> to the converter.

This is possible with a little bit more effort.

1. Add "$$f“ as 3rd parameter for your converter call in LyX preferences.
2. Extend your script similar to the following modified version:

===
#!/bin/sh
exec >> "$HOME"/bin/iPadConvert.log
echo $(date)":" "$0" "$@"
filename=$(basename "$1" .tex)
if [ -d "$2" ]; then
   targetdir="$2"
elif [ -f "$2" ]; then
   targetdir=$(dirname "$2")
else
   targetdir="$2"
   if [ ! -d "$2" ]; then
  echo Bad call with target "$2"
  exit 1
   fi
fi
if [ -n "$3" ]; then
   targetname=$(basename "$3" .lyx)
else
   targetname="$(filename)"
fi
echo pwd=$(pwd) filename="$filename"
echo pdflatex "$1" "$targetdir"/"$targetname".pdf
pdflatex "$1" && test -f "$filename".pdf && cp "$filename".pdf 
"$targetdir"/"$targetname".pdf
echo cp "$1" "$targetdir"/"$targetname".tex
cp "$1" "$targetdir"/"$targetname".tex
===

The point is to check for an (optional) 3rd argument to set the targetname like 
the LyX source file name.

Stephan

Re: Automatic save of LaTeX

2016-04-19 Thread Anders Host-Madsen
Anders Host-Madsen  yahoo.com> writes:

A few more comment on this. To get the same latex file as one would
get when exporting from the menu, set the "nice" flag in the exporter.

The main issue with the script approach is that it changes the name 
of the files. For example, spaces become _. I don't see how to solve
this. I doesn't seem the real name of the original file is available
to the converter.





Re: Fwd: Re: Lyx 2.2 and 2.1 side by side

2016-04-19 Thread Wolfgang Engelmann



On 19.04.2016 16:23, Helge Hafting wrote:



Den 19. april 2016 14:54, skrev Wolfgang Engelmann:

Thanks, JMarc; so I should have called it e.g..
/configure --with-version-suffix=-2-2
or
/configure --with-version-suffix=2-2 for a shorter name.
Well, I can live with it.
Wolfgang
If you don't want to reconfigure & recompile just for the name change, 
then consider this:

alias lyx22="lyx-latestdev"

After that, the command lyx22 does what you want :-)

Helge Hafting

Good idea. Thanks
Wolfgang


Re: Fwd: Re: Lyx 2.2 and 2.1 side by side

2016-04-19 Thread Helge Hafting



Den 19. april 2016 14:54, skrev Wolfgang Engelmann:

Thanks, JMarc; so I should have called it e.g..
/configure --with-version-suffix=-2-2
or
/configure --with-version-suffix=2-2 for a shorter name.
Well, I can live with it.
Wolfgang
If you don't want to reconfigure & recompile just for the name change, 
then consider this:

alias lyx22="lyx-latestdev"

After that, the command lyx22 does what you want :-)

Helge Hafting


Re: Fwd: Re: Lyx 2.2 and 2.1 side by side

2016-04-19 Thread Wolfgang Engelmann



On 19.04.2016 11:43, Jean-Marc Lasgouttes wrote:

Le 19/04/2016 11:29, Wolfgang Engelmann a écrit :

I have not done this, but removed the lyx2.2 stuff (I had not yet done
make install). I did compile again by using this time
$./configure --with-version-suffix=-latestdev
did the
$make
and
#make install.
How do I start the new lyx2.2?
using lyx gives me the old 2.1 version,
but I need the 2.2 for running classicthesis


It is named lyx-latestdev.

JMarc

Thanks, JMarc; so I should have called it e.g..
/configure --with-version-suffix=-2-2
or
/configure --with-version-suffix=2-2 for a shorter name.
Well, I can live with it.
Wolfgang


Re: Fwd: Re: Lyx 2.2 and 2.1 side by side

2016-04-19 Thread Jean-Marc Lasgouttes

Le 19/04/2016 11:29, Wolfgang Engelmann a écrit :

I have not done this, but removed the lyx2.2 stuff (I had not yet done
make install). I did compile again by using this time
$./configure --with-version-suffix=-latestdev
did the
$make
and
#make install.
How do I start the new lyx2.2?
using lyx gives me the old 2.1 version,
but I need the 2.2 for running classicthesis


It is named lyx-latestdev.

JMarc


Fwd: Re: Lyx 2.2 and 2.1 side by side

2016-04-19 Thread Wolfgang Engelmann




 Forwarded Message 
Subject:Re: Lyx 2.2 and 2.1 side by side
Date:   Mon, 18 Apr 2016 20:22:05 +0200
From:   Wolfgang Engelmann 
To: lyx-users@lists.lyx.org



On 18.04.2016 18:15, Kornel Benko wrote:

Am Montag, 18. April 2016 um 17:19:07, schrieb Wolfgang Engelmann 


On 18.04.2016 15:42, Helge Hafting wrote:


Den 18. april 2016 15:14, skrev Wolfgang Engelmann:

I have installed the new Lyx 2.2(rc1) thanks to the help of several
people of this list. I wanted to keep the 2.1 version. I have
therefore started the new version by using src/lyx on the command
line (produced by ./configure and make - but omitted the make install
so far).
However, starting the old lyx 2.1 with
  lyx &
gives me
[1] 3613
we@wolfgang-Mr-Whisper-Ultra-SSD-II:/mnt/sdb/we$ Warning: Die
Konfigurationsdatei konnte nicht gelesen werden

Fehler beim Lesen der Konfigurationsdatei preferences.
Bitte prüfen Sie Ihre Installation.

Does the new lyx use some of the resources and what could I do?
Can I change the name of the new Lyx to e.g. Lyx2-2 at this stage
(perhaps while doing make install) and get the resources back again?

The "new" lyx has updated stuff in your .lyx/ directory - the "old"
lyx does not understand and fails.

You can get the old lyx working by removing any new files from .lyx/
that the new lyx has created there,
or removing the entire .lyx directory. (That will also remove your
preferences, so you may have to re-set
anything in tools->preferences as well as any default document->settings.

To avoid this sort of thing, when you compile a test version of LyX:
./configure --with-version-suffix  (as well as any other parameters
you may want)
When you "make install", you will then get lyx-2.2dev which will store
its settings in .lyx-2.2dev/ and there will be no conflict with your
older lyx 2.1

Helge Hafting

Thanks, Helge. I should have thought of this. Wolfgang

You can always use your 'private' user dir to avoid clashes.
# mkdir ~/.lyx2.1
# /lyx -usedir ~/.lyx2.1

Kornel

That is probably the easiest way. Thanks, Kornel

I have not done this, but removed the lyx2.2 stuff (I had not yet done 
make install). I did compile again by using this time

$./configure --with-version-suffix=-latestdev
did the
$make
and
#make install.
How do I start the new lyx2.2?
using lyx gives me the old 2.1 version,
but I need the 2.2 for running classicthesis
Wolfgang




LyX 2.2(rc1) on OS X 10.11.4 icon size/window size

2016-04-19 Thread Dr Eberhard Lisse
Hi,

I notice this for several versions and have asked this in the past, I think:

I like the small icons and a particular Window size as the default, ie
to open all documents in when clicked.

That works, unless I exit the program, next time it starts with the
default smaller window and the default normal-sized icons.

Is there a way to make it behave like I want?


el

--
Dr. Eberhard W. Lisse  \/ Obstetrician & Gynaecologist (Saar)
e...@lisse.na/ * |   Telephone: +264 81 124 6733 (cell)
PO Box 8421 \ /
Bachbrecht, Namibia ;/