Re: Display SVG graphics in Lyx

2015-09-20 Thread Rainer M Krug
Georg Baum <georg.b...@post.rwth-aachen.de> writes:

> Rainer M Krug wrote:
>
>> Hm - the output now works, but the preview still does not work. Which
>> toolchain is actually used to create the preview?
>
> Qt is used directly to display images in a number of formats, including svg. 
> Therefore it would be a qt bug if the preview of an svg image is not 
> displayed correctly.

So this is a bug in qt (Linux (QT version ?) and OS X (Qt 4 version:
4.8.6)) - I have no idea about qt and it would not be possible for me to
provide a bug report in a useful way.

Cheers,

Rainer

>
>
> Georg
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Display SVG graphics in Lyx

2015-09-19 Thread Rainer M Krug
David <roer...@inue.uni-stuttgart.de> writes:

> Am 18.09.2015 um 21:21 schrieb Les:
>
>> David,
>> 
>> I find your example does not have the arrows inn LyX, but does have
>> them in the PDF output, as yours does. I'm running Linux Mint with LyX
>> 2.0.8.1.
>> 
>> Les
>> 
>
>
> Thanks for confirming this, Les

I used svg in the past and they displayed fine. Maybe look in the
converter sections and define a different converter for svg to png
(because png is used in the preview if I am not mistaken). But this was
on Linux, and now on a Mac, I get the attached pdf - no line or arrows...

The reason is the converter used. It seems that default is to use
svg2pdf and svg2png which does seem to have these problems.

But, on the other hand, if you use rsvg-convert from librsvg, the
conversion works perfectly - both the png and pdf contain the arrows
(see attached).

So the solution seems to be, to change the default converter for svg.

Cheers,

Rainer



lyxinkscape.pdf
Description: Adobe PDF document


test2.pdf
Description: Adobe PDF document

>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Display SVG graphics in Lyx

2015-09-19 Thread Rainer M Krug
Rainer M Krug <rai...@krugs.de> writes:

> David <roer...@inue.uni-stuttgart.de> writes:
>
>> Am 18.09.2015 um 21:21 schrieb Les:
>>
>>> David,
>>> 
>>> I find your example does not have the arrows inn LyX, but does have
>>> them in the PDF output, as yours does. I'm running Linux Mint with LyX
>>> 2.0.8.1.
>>> 
>>> Les
>>> 
>>
>>
>> Thanks for confirming this, Les
>
> I used svg in the past and they displayed fine. Maybe look in the
> converter sections and define a different converter for svg to png
> (because png is used in the preview if I am not mistaken). But this was
> on Linux, and now on a Mac, I get the attached pdf - no line or arrows...
>
> The reason is the converter used. It seems that default is to use
> svg2pdf and svg2png which does seem to have these problems.
>
> But, on the other hand, if you use rsvg-convert from librsvg, the
> conversion works perfectly - both the png and pdf contain the arrows
> (see attached).
>
> So the solution seems to be, to change the default converter for svg.

Hm - the output now works, but the preview still does not work. Which
toolchain is actually used to create the preview?

Rainer

>
> Cheers,
>
> Rainer
>
>
>
>
>
>>
>>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: emf conversion on mac

2015-08-24 Thread Rainer M Krug
Annaert Jan jan.anna...@uantwerpen.be writes:

 My colleague sent me a LyX file containing several .emf graphics. The file
 compiles well at my office, where I work on a Windows 7 computer. However,
 when I try to compile it at home (Mac OS 10.10.5 Yosemite) I get errors
 such as: 
 Package pdftex.def Error: File `Name_of_file.pdf¹ not found.
 Indeed, this file does not exist (Name_of_file.emf does exist).

 Also in the LyX editor the file is not previewed: it simply shows a box
 with:
 ³Name_of_file.emf 
 Error converting to loadable format².

 I suspect something is going wrong with the converters, but I don¹t have
 any clue how to address this issue. And frankly, the commands of the
 converters that are defined in the Preference pane are pure gibberish to
 me.
 Perhaps somebody else has encountered the same issue and can share her
 solution? I¹m using LyX 2.1.4 on both computers.

emf is a Windows graphics format for which imagemagik can not convert.

You have two options:

1) use e.g. Irfanview (http://www.irfanview.com) in wine / PlayOnMac
   (https://www.playonmac.com/) to convert the images to a different
   format. Irfan view works very nicely on a mac.

2) if you find a commandline tool for Mac (I didn't find one - please
   keep us posted if you find one) and define your own copier in LyX to
   convert the emf files.

Cheers,

Rainer



 Thanks a lot.

 Jan Annaert



-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: emf conversion on mac

2015-08-24 Thread Rainer M Krug
Annaert Jan <jan.anna...@uantwerpen.be> writes:

> My colleague sent me a LyX file containing several .emf graphics. The file
> compiles well at my office, where I work on a Windows 7 computer. However,
> when I try to compile it at home (Mac OS 10.10.5 Yosemite) I get errors
> such as: 
> Package pdftex.def Error: File `Name_of_file.pdf¹ not found.
> Indeed, this file does not exist (Name_of_file.emf does exist).
>
> Also in the LyX editor the file is not previewed: it simply shows a box
> with:
> ³Name_of_file.emf 
> Error converting to loadable format².
>
> I suspect something is going wrong with the converters, but I don¹t have
> any clue how to address this issue. And frankly, the commands of the
> converters that are defined in the Preference pane are pure gibberish to
> me.
> Perhaps somebody else has encountered the same issue and can share her
> solution? I¹m using LyX 2.1.4 on both computers.

emf is a Windows graphics format for which imagemagik can not convert.

You have two options:

1) use e.g. Irfanview (http://www.irfanview.com) in wine / PlayOnMac
   (https://www.playonmac.com/) to convert the images to a different
   format. Irfan view works very nicely on a mac.

2) if you find a commandline tool for Mac (I didn't find one - please
   keep us posted if you find one) and define your own copier in LyX to
   convert the emf files.

Cheers,

Rainer


>
> Thanks a lot.
>
> Jan Annaert
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Strategies for locating errors

2015-05-05 Thread Rainer M Krug
Will Furnass wrfurna...@sheffield.ac.uk writes:

 On 05/05/15 12:47, Nikos Alexandris wrote:
 * Will Furnass wrfurna...@sheffield.ac.uk [2015-05-05 11:51:56 +0100]:
 
 How do others locate compilation errors in large multi-file documents?

 snip
 
 Something like binary search: split in two halfs, try to find out
 which half does not compile. Then, again, repeat the same: split in
 half, identify the erroneous part. Sooner or later you'll nail the
 source of the error.

 A good idea, but could LyX be improved to make locating errors less
 manual though?  For example, if a mapping was generated at compile time
 from LyX lines to TeX lines then buttons could be added to the
 compilation pane to move the cursor between the lines referenced in
 error messages.

I am by no means a LaTeX expert -0 so I might be wrong, but - the LaTeX
error messages are already quite cryptic, and the error you quote
(Missing } inserted' error for 'l.1052') means that the missing } is
inserted in this line - where it is actually missing and what is causing
this does not even LaTeX know - so there is no chance that LyX will be
able to tell you.

Rainer


 Will







-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Disable editing / read only menu option?

2015-05-05 Thread Rainer M Krug
Liviu Andronic landronim...@gmail.com writes:

 On Tue, May 5, 2015 at 6:44 AM, Scott Kostyshak skost...@lyx.org wrote:
 On Mon, May 4, 2015 at 8:05 AM, Helge Hafting helge.haft...@hist.no wrote:


 Den 23. mars 2015 17:57, skrev Scott Kostyshak:

 Dear LyX users,

 What are your thoughts on having an option in the menu called
 something like Disable editing or Read only, which would make it
 so you could not edit the current document?

 Have you tried making the file itself read-only? LyX already knows about
 read-only files and will not allow editing then.

 Good point. I think the advantage of the feature being discussed at
 http://www.lyx.org/trac/ticket/6692
 is to give users a user-friendly way to do it inside of LyX.


 Indeed. Setting a file read-only on the disk may work well enough for
 Linux users, but Windows or Mac users can't be bothered with such
 low-level details.

Hang on - I am a Mac user, use emacs, know (and love!) the terminal,
regularly edit file permissions and owners - maybe because in my heart I
am a Linux person? :-)

 Having a quick way to set this within LyX can be useful, and even
 within the same LyX session you can set/unset this status.

I completely agree - an option to set a file read-only from within LyX
would be quite useful. Even Emacs can do this - and emacs users are
addicted to the terminal!

I even think this should not be hidden in a menu, but in the open dialog
and in the tab itself, so that one can easily set it when opening a file
and change (and see the actual status!) without having to go into a menu.

It would be quite nice, if read-only buffers would have e.g. a red
border, independent of why they are read-only.

Cheers,

Rainer


 Liviu



 Scott

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Disable editing / read only menu option?

2015-05-05 Thread Rainer M Krug
Liviu Andronic landronim...@gmail.com writes:

 On Tue, May 5, 2015 at 10:40 AM, Rainer M Krug rai...@krugs.de wrote:
 Liviu Andronic landronim...@gmail.com writes:

 On Tue, May 5, 2015 at 6:44 AM, Scott Kostyshak skost...@lyx.org wrote:
 On Mon, May 4, 2015 at 8:05 AM, Helge Hafting helge.haft...@hist.no 
 wrote:


 Den 23. mars 2015 17:57, skrev Scott Kostyshak:

 Dear LyX users,

 What are your thoughts on having an option in the menu called
 something like Disable editing or Read only, which would make it
 so you could not edit the current document?

 Have you tried making the file itself read-only? LyX already knows about
 read-only files and will not allow editing then.

 Good point. I think the advantage of the feature being discussed at
 http://www.lyx.org/trac/ticket/6692
 is to give users a user-friendly way to do it inside of LyX.


 Indeed. Setting a file read-only on the disk may work well enough for
 Linux users, but Windows or Mac users can't be bothered with such
 low-level details.

 Hang on - I am a Mac user, use emacs, know (and love!) the terminal,
 regularly edit file permissions and owners - maybe because in my heart I
 am a Linux person? :-)


 Mac users addicted to Emacs must be a very rare breed indeed... :)

I don't think so - I am surprised how many are there actually when you
look in the mailing lists of emacs, org-mode or ess (Emacs Speaks
Statistics). I see a Mac as a hybrid: on the one side, you have the GUI
which works perfectly (in contrast to windows...) and *requires* not
much tinkering to make it work nearly perfect, while on the other side
you can use easily all the Linux software (see e.g. the homebrew project
http://brew.sh for the terminal / console software or LyX ...) - under
the hood, OSX is not much different then Linux. So I have the best from
both worlds, and probably the best hardware in the world.



 Having a quick way to set this within LyX can be useful, and even
 within the same LyX session you can set/unset this status.

 I completely agree - an option to set a file read-only from within LyX
 would be quite useful. Even Emacs can do this - and emacs users are
 addicted to the terminal!

 I even think this should not be hidden in a menu, but in the open dialog
 and in the tab itself, so that one can easily set it when opening a file
 and change (and see the actual status!) without having to go into a menu.

 It would be quite nice, if read-only buffers would have e.g. a red
 border, independent of why they are read-only.

 Or have the tab text colored green (as Geany does it), or have the
 '(ro)' flag appended to the file name (just like we have * for
 modified files).

Yup - just something very visible.

Rainer


 Liviu


 Cheers,

 Rainer


 Liviu



 Scott

 --
 Rainer M. Krug
 email: Raineratkrugsdotde
 PGP: 0x0F52F982

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Disable editing / read only menu option?

2015-05-05 Thread Rainer M Krug
Liviu Andronic landronim...@gmail.com writes:

 On Tue, May 5, 2015 at 6:44 AM, Scott Kostyshak skost...@lyx.org wrote:
 On Mon, May 4, 2015 at 8:05 AM, Helge Hafting helge.haft...@hist.no wrote:


 Den 23. mars 2015 17:57, skrev Scott Kostyshak:

 Dear LyX users,

 What are your thoughts on having an option in the menu called
 something like Disable editing or Read only, which would make it
 so you could not edit the current document?

 Have you tried making the file itself read-only? LyX already knows about
 read-only files and will not allow editing then.

 Good point. I think the advantage of the feature being discussed at
 http://www.lyx.org/trac/ticket/6692
 is to give users a user-friendly way to do it inside of LyX.


 Indeed. Setting a file read-only on the disk may work well enough for
 Linux users, but Windows or Mac users can't be bothered with such
 low-level details.

Hang on - I am a Mac user, use emacs, know (and love!) the terminal,
regularly edit file permissions and owners - maybe because in my heart I
am a Linux person? :-)

 Having a quick way to set this within LyX can be useful, and even
 within the same LyX session you can set/unset this status.

I completely agree - an option to set a file read-only from within LyX
would be quite useful. Even Emacs can do this - and emacs users are
addicted to the terminal!

I even think this should not be hidden in a menu, but in the open dialog
and in the tab itself, so that one can easily set it when opening a file
and change (and see the actual status!) without having to go into a menu.

It would be quite nice, if read-only buffers would have e.g. a red
border, independent of why they are read-only.

Cheers,

Rainer


 Liviu



 Scott

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Disable editing / read only menu option?

2015-05-05 Thread Rainer M Krug
Liviu Andronic landronim...@gmail.com writes:

 On Tue, May 5, 2015 at 10:40 AM, Rainer M Krug rai...@krugs.de wrote:
 Liviu Andronic landronim...@gmail.com writes:

 On Tue, May 5, 2015 at 6:44 AM, Scott Kostyshak skost...@lyx.org wrote:
 On Mon, May 4, 2015 at 8:05 AM, Helge Hafting helge.haft...@hist.no 
 wrote:


 Den 23. mars 2015 17:57, skrev Scott Kostyshak:

 Dear LyX users,

 What are your thoughts on having an option in the menu called
 something like Disable editing or Read only, which would make it
 so you could not edit the current document?

 Have you tried making the file itself read-only? LyX already knows about
 read-only files and will not allow editing then.

 Good point. I think the advantage of the feature being discussed at
 http://www.lyx.org/trac/ticket/6692
 is to give users a user-friendly way to do it inside of LyX.


 Indeed. Setting a file read-only on the disk may work well enough for
 Linux users, but Windows or Mac users can't be bothered with such
 low-level details.

 Hang on - I am a Mac user, use emacs, know (and love!) the terminal,
 regularly edit file permissions and owners - maybe because in my heart I
 am a Linux person? :-)


 Mac users addicted to Emacs must be a very rare breed indeed... :)

I don't think so - I am surprised how many are there actually when you
look in the mailing lists of emacs, org-mode or ess (Emacs Speaks
Statistics). I see a Mac as a hybrid: on the one side, you have the GUI
which works perfectly (in contrast to windows...) and *requires* not
much tinkering to make it work nearly perfect, while on the other side
you can use easily all the Linux software (see e.g. the homebrew project
http://brew.sh for the terminal / console software or LyX ...) - under
the hood, OSX is not much different then Linux. So I have the best from
both worlds, and probably the best hardware in the world.



 Having a quick way to set this within LyX can be useful, and even
 within the same LyX session you can set/unset this status.

 I completely agree - an option to set a file read-only from within LyX
 would be quite useful. Even Emacs can do this - and emacs users are
 addicted to the terminal!

 I even think this should not be hidden in a menu, but in the open dialog
 and in the tab itself, so that one can easily set it when opening a file
 and change (and see the actual status!) without having to go into a menu.

 It would be quite nice, if read-only buffers would have e.g. a red
 border, independent of why they are read-only.

 Or have the tab text colored green (as Geany does it), or have the
 '(ro)' flag appended to the file name (just like we have * for
 modified files).

Yup - just something very visible.

Rainer


 Liviu


 Cheers,

 Rainer


 Liviu



 Scott

 --
 Rainer M. Krug
 email: Raineratkrugsdotde
 PGP: 0x0F52F982

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Strategies for locating errors

2015-05-05 Thread Rainer M Krug
Will Furnass wrfurna...@sheffield.ac.uk writes:

 On 05/05/15 12:47, Nikos Alexandris wrote:
 * Will Furnass wrfurna...@sheffield.ac.uk [2015-05-05 11:51:56 +0100]:
 
 How do others locate compilation errors in large multi-file documents?

 snip
 
 Something like binary search: split in two halfs, try to find out
 which half does not compile. Then, again, repeat the same: split in
 half, identify the erroneous part. Sooner or later you'll nail the
 source of the error.

 A good idea, but could LyX be improved to make locating errors less
 manual though?  For example, if a mapping was generated at compile time
 from LyX lines to TeX lines then buttons could be added to the
 compilation pane to move the cursor between the lines referenced in
 error messages.

I am by no means a LaTeX expert -0 so I might be wrong, but - the LaTeX
error messages are already quite cryptic, and the error you quote
(Missing } inserted' error for 'l.1052') means that the missing } is
inserted in this line - where it is actually missing and what is causing
this does not even LaTeX know - so there is no chance that LyX will be
able to tell you.

Rainer


 Will







-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: "Disable editing" / "read only" menu option?

2015-05-05 Thread Rainer M Krug
Liviu Andronic <landronim...@gmail.com> writes:

> On Tue, May 5, 2015 at 6:44 AM, Scott Kostyshak <skost...@lyx.org> wrote:
>> On Mon, May 4, 2015 at 8:05 AM, Helge Hafting <helge.haft...@hist.no> wrote:
>>>
>>>
>>> Den 23. mars 2015 17:57, skrev Scott Kostyshak:
>>>>
>>>> Dear LyX users,
>>>>
>>>> What are your thoughts on having an option in the menu called
>>>> something like "Disable editing" or "Read only", which would make it
>>>> so you could not edit the current document?
>>>>
>>> Have you tried making the file itself read-only? LyX already knows about
>>> read-only files and will not allow editing then.
>>
>> Good point. I think the advantage of the feature being discussed at
>> http://www.lyx.org/trac/ticket/6692
>> is to give users a user-friendly way to do it inside of LyX.
>>

> Indeed. Setting a file read-only on the disk may work well enough for
> Linux users, but Windows or Mac users can't be bothered with such
> low-level details.

Hang on - I am a Mac user, use emacs, know (and love!) the terminal,
regularly edit file permissions and owners - maybe because in my heart I
am a Linux person? :-)

> Having a quick way to set this within LyX can be useful, and even
> within the same LyX session you can set/unset this status.

I completely agree - an option to set a file read-only from within LyX
would be quite useful. Even Emacs can do this - and emacs users are
addicted to the terminal!

I even think this should not be hidden in a menu, but in the open dialog
and in the tab itself, so that one can easily set it when opening a file
and change (and see the actual status!) without having to go into a menu.

It would be quite nice, if read-only buffers would have e.g. a red
border, independent of why they are read-only.

Cheers,

Rainer

>
> Liviu
>
>
>
>> Scott

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: "Disable editing" / "read only" menu option?

2015-05-05 Thread Rainer M Krug
Liviu Andronic <landronim...@gmail.com> writes:

> On Tue, May 5, 2015 at 10:40 AM, Rainer M Krug <rai...@krugs.de> wrote:
>> Liviu Andronic <landronim...@gmail.com> writes:
>>
>>> On Tue, May 5, 2015 at 6:44 AM, Scott Kostyshak <skost...@lyx.org> wrote:
>>>> On Mon, May 4, 2015 at 8:05 AM, Helge Hafting <helge.haft...@hist.no> 
>>>> wrote:
>>>>>
>>>>>
>>>>> Den 23. mars 2015 17:57, skrev Scott Kostyshak:
>>>>>>
>>>>>> Dear LyX users,
>>>>>>
>>>>>> What are your thoughts on having an option in the menu called
>>>>>> something like "Disable editing" or "Read only", which would make it
>>>>>> so you could not edit the current document?
>>>>>>
>>>>> Have you tried making the file itself read-only? LyX already knows about
>>>>> read-only files and will not allow editing then.
>>>>
>>>> Good point. I think the advantage of the feature being discussed at
>>>> http://www.lyx.org/trac/ticket/6692
>>>> is to give users a user-friendly way to do it inside of LyX.
>>>>
>>
>>> Indeed. Setting a file read-only on the disk may work well enough for
>>> Linux users, but Windows or Mac users can't be bothered with such
>>> low-level details.
>>
>> Hang on - I am a Mac user, use emacs, know (and love!) the terminal,
>> regularly edit file permissions and owners - maybe because in my heart I
>> am a Linux person? :-)
>>
>
> Mac users addicted to Emacs must be a very rare breed indeed... :)

I don't think so - I am surprised how many are there actually when you
look in the mailing lists of emacs, org-mode or ess (Emacs Speaks
Statistics). I see a Mac as a hybrid: on the one side, you have the GUI
which works perfectly (in contrast to windows...) and *requires* not
much tinkering to make it work nearly perfect, while on the other side
you can use easily all the Linux software (see e.g. the homebrew project
http://brew.sh for the terminal / console software or LyX ...) - under
the hood, OSX is not much different then Linux. So I have the best from
both worlds, and probably the best hardware in the world.

>
>
>>> Having a quick way to set this within LyX can be useful, and even
>>> within the same LyX session you can set/unset this status.
>>
>> I completely agree - an option to set a file read-only from within LyX
>> would be quite useful. Even Emacs can do this - and emacs users are
>> addicted to the terminal!
>>
>> I even think this should not be hidden in a menu, but in the open dialog
>> and in the tab itself, so that one can easily set it when opening a file
>> and change (and see the actual status!) without having to go into a menu.
>>
>> It would be quite nice, if read-only buffers would have e.g. a red
>> border, independent of why they are read-only.
>>
> Or have the tab text colored green (as Geany does it), or have the
> '(ro)' flag appended to the file name (just like we have * for
> modified files).

Yup - just something very visible.

Rainer

>
> Liviu
>
>
>> Cheers,
>>
>> Rainer
>>
>>>
>>> Liviu
>>>
>>>
>>>
>>>> Scott
>>
>> --
>> Rainer M. Krug
>> email: Rainerkrugsde
>> PGP: 0x0F52F982

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Strategies for locating errors

2015-05-05 Thread Rainer M Krug
Will Furnass <wrfurna...@sheffield.ac.uk> writes:

> On 05/05/15 12:47, Nikos Alexandris wrote:
>> * Will Furnass <wrfurna...@sheffield.ac.uk> [2015-05-05 11:51:56 +0100]:
>> 
>>> How do others locate compilation errors in large multi-file documents?
>>>
> 
>> 
>> Something like "binary search": split in two halfs, try to find out
>> which half does not compile. Then, again, repeat the same: split in
>> half, identify the erroneous part. Sooner or later you'll nail the
>> source of the error.
>
> A good idea, but could LyX be improved to make locating errors less
> manual though?  For example, if a mapping was generated at compile time
> from LyX lines to TeX lines then buttons could be added to the
> compilation pane to move the cursor between the lines referenced in
> error messages.

I am by no means a LaTeX expert -0 so I might be wrong, but - the LaTeX
error messages are already quite cryptic, and the error you quote
(Missing } inserted' error for 'l.1052') means that the missing "}" is
inserted in this line - where it is actually missing and what is causing
this does not even LaTeX know - so there is no chance that LyX will be
able to tell you.

Rainer

>
> Will
>
>
>
>
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: lyx archive

2015-04-13 Thread Rainer M Krug
Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 Thanks, Enrico,

 however, I was not asking for that, but for a quick and perhaps
 general (i.e. for the whole document) way to remove a path. Example:
 pathX/picture1
 should be turned into
 picture1
 same with
 pathX/picture2
 should be turned into
 picture2
 same with
 pathy/picture3
 should be turned into
 picture3
 etc

Just open the .lyx file (after you made a backup of course) in any text
editor and do a search - replace. That's what I did for a paper.

Not very lyxisch, but it works.

Cheers,

Rainer


 Note that I did copy all the outside pictures in question in the
 folder with my lyx document.
 Wolfgang

 Am 12.04.2015 um 18:41 schrieb Enrico Forestieri:
 Wolfgang Engelmann writes:
 Is there a better way of getting all figures/tables in the same folder
 so that the tar.gz has no subtrees?
 I often get figures from other folders/subfolders (e.g. by a colleague)
 which especially with larger documents I notice not before I have
 archived (fileexportlyx archive) the document.
 If so, I copy these files in the main folder. However, lyx remembers the
 former path(es) and does not find the copied one. What I do is to open
 the lyx file with an editor and remove the (now wrong) paths, which is
 easier than going through the individual items changing paths in lyx.
 I just wonder, whether there is a lyx way of doing it (so to speak,
 resetting the paths to a default - the figure only).
 No, there is currently no way to do that within LyX. Note that this is
 not a problem with a lyx archive only. If you have figures outside the
 document dir and you try to export to latex, if a figure needs to be
 converted to a format the particular latex flavor can handle, the
 converted figure is placed alongside the original one. So, for example,
 if you reference a figure in a directory where you don't have write
 permission, the export fails. All of this could be handled by adding a
 submenu entry (maybe in the Document menu) Copy files to document dir
 (or something along that line). This would cause LyX to scan all used
 files and copy those outside the document dir to a common subdir named
 docname-files, updating also the internal paths. In this way, both
 export and archive will produce a self-contained subtree.
 Please, feel free to file an enhancement request at
 http://www.lyx.org/trac/wiki/BugTrackerHome.




-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: lyx archive

2015-04-13 Thread Rainer M Krug
Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 Thanks, Enrico,

 however, I was not asking for that, but for a quick and perhaps
 general (i.e. for the whole document) way to remove a path. Example:
 pathX/picture1
 should be turned into
 picture1
 same with
 pathX/picture2
 should be turned into
 picture2
 same with
 pathy/picture3
 should be turned into
 picture3
 etc

Just open the .lyx file (after you made a backup of course) in any text
editor and do a search - replace. That's what I did for a paper.

Not very lyxisch, but it works.

Cheers,

Rainer


 Note that I did copy all the outside pictures in question in the
 folder with my lyx document.
 Wolfgang

 Am 12.04.2015 um 18:41 schrieb Enrico Forestieri:
 Wolfgang Engelmann writes:
 Is there a better way of getting all figures/tables in the same folder
 so that the tar.gz has no subtrees?
 I often get figures from other folders/subfolders (e.g. by a colleague)
 which especially with larger documents I notice not before I have
 archived (fileexportlyx archive) the document.
 If so, I copy these files in the main folder. However, lyx remembers the
 former path(es) and does not find the copied one. What I do is to open
 the lyx file with an editor and remove the (now wrong) paths, which is
 easier than going through the individual items changing paths in lyx.
 I just wonder, whether there is a lyx way of doing it (so to speak,
 resetting the paths to a default - the figure only).
 No, there is currently no way to do that within LyX. Note that this is
 not a problem with a lyx archive only. If you have figures outside the
 document dir and you try to export to latex, if a figure needs to be
 converted to a format the particular latex flavor can handle, the
 converted figure is placed alongside the original one. So, for example,
 if you reference a figure in a directory where you don't have write
 permission, the export fails. All of this could be handled by adding a
 submenu entry (maybe in the Document menu) Copy files to document dir
 (or something along that line). This would cause LyX to scan all used
 files and copy those outside the document dir to a common subdir named
 docname-files, updating also the internal paths. In this way, both
 export and archive will produce a self-contained subtree.
 Please, feel free to file an enhancement request at
 http://www.lyx.org/trac/wiki/BugTrackerHome.




-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: lyx archive

2015-04-13 Thread Rainer M Krug
Wolfgang Engelmann <engelm...@uni-tuebingen.de> writes:

> Thanks, Enrico,
>
> however, I was not asking for that, but for a quick and perhaps
> general (i.e. for the whole document) way to remove a path. Example:
> pathX/picture1
> should be turned into
> picture1
> same with
> pathX/picture2
> should be turned into
> picture2
> same with
> pathy/picture3
> should be turned into
> picture3
> etc

Just open the .lyx file (after you made a backup of course) in any text
editor and do a search - replace. That's what I did for a paper.

Not very lyxisch, but it works.

Cheers,

Rainer

>
> Note that I did copy all the outside pictures in question in the
> folder with my lyx document.
> Wolfgang
>
> Am 12.04.2015 um 18:41 schrieb Enrico Forestieri:
>> Wolfgang Engelmann writes:
>>> Is there a better way of getting all figures/tables in the same folder
>>> so that the tar.gz has no subtrees?
>>> I often get figures from other folders/subfolders (e.g. by a colleague)
>>> which especially with larger documents I notice not before I have
>>> archived (>file>export>lyx archive) the document.
>>> If so, I copy these files in the main folder. However, lyx remembers the
>>> former path(es) and does not find the copied one. What I do is to open
>>> the lyx file with an editor and remove the (now wrong) paths, which is
>>> easier than going through the individual items changing paths in lyx.
>>> I just wonder, whether there is a lyx way of doing it (so to speak,
>>> resetting the paths to a default - the figure only).
>> No, there is currently no way to do that within LyX. Note that this is
>> not a problem with a lyx archive only. If you have figures outside the
>> document dir and you try to export to latex, if a figure needs to be
>> converted to a format the particular latex flavor can handle, the
>> converted figure is placed alongside the original one. So, for example,
>> if you reference a figure in a directory where you don't have write
>> permission, the export fails. All of this could be handled by adding a
>> submenu entry (maybe in the "Document" menu) "Copy files to document dir"
>> (or something along that line). This would cause LyX to scan all used
>> files and copy those outside the document dir to a common subdir named
>> -files, updating also the internal paths. In this way, both
>> export and archive will produce a self-contained subtree.
>> Please, feel free to file an enhancement request at
>> http://www.lyx.org/trac/wiki/BugTrackerHome.
>>
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Export of change tracking to word WAS: Question regarding the correction mode of LyX

2015-03-03 Thread Rainer M Krug
Richard Heck rgh...@lyx.org writes:

 On 03/02/2015 10:27 AM, Harold Mouras wrote:
 Dear LyX users,
 I have question regarding the correction mode of Lyx. In a document,
 I used this correction mode and I would like to export my LyX
 document in a word document in which I could see my LyX corrections
 under word corrections ? Is that possible ?

 Do you mean change tracking? so LyX shows what you've deleted and
 added? If so, I have no idea if this is possible. It depends entirely
 upon whether whatever LaTeX -- Word program you are using to do the
 export. But I'd suspect that oolatex would support this.

If I remember correctly, this was one initial aim of the recent GSoC project
concerning the round trip conversnion - I actually don't know if the
results are in a usable format or even if export of change tracking has
been included in the feature sets supported?

Rainer


 Richard


-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Export of change tracking to word WAS: Question regarding the correction mode of LyX

2015-03-03 Thread Rainer M Krug
Richard Heck rgh...@lyx.org writes:

 On 03/02/2015 10:27 AM, Harold Mouras wrote:
 Dear LyX users,
 I have question regarding the correction mode of Lyx. In a document,
 I used this correction mode and I would like to export my LyX
 document in a word document in which I could see my LyX corrections
 under word corrections ? Is that possible ?

 Do you mean change tracking? so LyX shows what you've deleted and
 added? If so, I have no idea if this is possible. It depends entirely
 upon whether whatever LaTeX -- Word program you are using to do the
 export. But I'd suspect that oolatex would support this.

If I remember correctly, this was one initial aim of the recent GSoC project
concerning the round trip conversnion - I actually don't know if the
results are in a usable format or even if export of change tracking has
been included in the feature sets supported?

Rainer


 Richard


-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Export of change tracking to word WAS: Question regarding the correction mode of LyX

2015-03-03 Thread Rainer M Krug
Richard Heck <rgh...@lyx.org> writes:

> On 03/02/2015 10:27 AM, Harold Mouras wrote:
>> Dear LyX users,
>> I have question regarding the correction mode of Lyx. In a document,
>> I used this correction mode and I would like to export my LyX
>> document in a word document in which I could see my LyX corrections
>> under word corrections ? Is that possible ?
>
> Do you mean change tracking? so LyX shows what you've deleted and
> added? If so, I have no idea if this is possible. It depends entirely
> upon whether whatever LaTeX --> Word program you are using to do the
> export. But I'd suspect that oolatex would support this.

If I remember correctly, this was one initial aim of the recent GSoC project
concerning the round trip conversnion - I actually don't know if the
results are in a usable format or even if export of change tracking has
been included in the feature sets supported?

Rainer

>
> Richard
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [ANNOUNCE] LyX 2.1.3 Released

2015-02-12 Thread Rainer M Krug
Rainer M Krug rai...@krugs.de writes:

 For Mac:

 I just updated LyX on homebrew cask [1] to 2.2.3

Sorry - I was ahead of my time.

Should have been 2.1.3

Rainer


 Cheers,

 Rainer


 Richard Heck rgh...@lyx.org writes:

 We are proud to announce the release of LyX 2.1.3.  This is the third
 maintenance release in the 2.1.x series.

 LyX is a document processor that encourages an approach to writing based
 on the structure of your documents and not simply their appearance. It is
 released under a Free and Open Source Software license.

 You can download LyX 2.1.3 from http://www.lyx.org/Download/.

 LyX 2.1.3 is the result of on-going efforts to make our stable version
 even more reliable and stable. We have fixed a number of bugs and made
 a number of improvements. These are detailed below. We strongly encourage
 all LyX users to upgrade to this version.

 If you think you have found a bug in LyX 2.1.3, open a bug report at
 http://www.lyx.org/trac/wiki/BugTrackerHome. If you're not sure whether it
 really is a bug, you can e-mail the LyX developers' mailing list (lyx-devel
 at lists.lyx.org) and ask.

 If you have trouble using LyX or have a question, consult the
 documentation that comes with LyX and the LyX wiki, which lives at
 http://wiki.lyx.org/. If you can't find the answer there, e-mail the LyX
 users' list (lyx-users at lists.lyx.org).

 We hope you enjoy using LyX 2.1.3.

 The LyX team.
 http://www.lyx.org


 What's new
 ==

 ** Updates:
 ***

 * DOCUMENT INPUT/OUTPUT

 - Add support for some conference poster classes (a0poster, beamerposter,
   sciposter) (bug 8714).

 - Add support for the sectionbox and tcolorbox packages (part of bug 8714).

 - Add support for PDF annotations (via pdfcomment package) (bug 6975).


 * TEX2LYX IMPROVEMENTS

 - Support for bibliographies using the package bibtopic.

 - Support for textual references (LaTeX-command \namref from the package
   nameref).

 - Support for items in itemize environments that have an optional argument.

 - Support for the math font of the Iwona and Kurier font families.

 - Support for the Libertine fonts.

 - Support for a relative length as paragraph separation.

 - Support for relative lengths in horizontal and vertical spaces.

 - Support for glue lengths in horizontal and vertical spaces.


 * USER INTERFACE

 - References no longer truncated in outliner (bug 9312).

 - Allow computing selected subformulas with computer algebra systems.

 - Number correctly footnotes in title layouts (part of bug 2666).

 - Ctrl+A is now bound to inset-select-all, which does a local
   selection (current inset) and grows at each new invokation. Try it!

 - Debug options in message pane are now sorted alphabetically.


 * DOCUMENTATION AND LOCALIZATION

 - New example file PDF-comment.lyx describing the support for PDF
 annotations.

 - Updated Arabic, French, German, Japanese, Portuguese, Slovak and Swedish
   user interface localization.


 ** Bug fixes:
 *

 * DOCUMENT INPUT/OUTPUT

 - Fix crash on exporting a recursive math macro (bug 9140). Recursive macros
   are invalid, so typesetting will still fail with TeX capacity exceeded.

 - Fix baseline calculation in last paragraph (bug 9231).

 - Fix export of xfig external insets (bug 9244).

 - Fix incorrect output of ampersands when multiple keys are given for a
   citation (bug 9296).

 - Output package options (specified with PackageOptions layout tag)
   before loading any potentially affected package (bug 9355).

 - Fix export of documents that use the LaTeX-packages mhchem and wasysym
   (bug 9266).

 - Remove unnecessary preamble code in LaTeX export of documents using the
   class REVTeX 4.1 file (bug 4625).

 - Fix for improper environment with duplicate PATH variable entries.
   This happens on Mac OS X 10.10 (Yosemite) where launchd(8) passes
   such an environment to LyX when started from the dock (bug 9317).

 - Protect insets when needed in subfloat captions (bug 9346).

 - Do not swallow spaces in text-in-math mode (bug 7970).

 - Do not insert a protected space after some math-spaces (bug 9319).

 - Fix problem when some special characters appear in the document directory
   name on Windows (bug 9342).


 * LYX2LYX

 - Fix import of LyX 2.0 documents with complex beamer arguments (bug 9254).

 - Fix import of LyX 2.0 IEEEtran documents (bug 9273).

 - Fix import of Chunk layout with trailing empty paragraph (bug 9298).

 - Fix import of chunk layouts containing newlines (bug 9300).

 - Maintain paragraph settings (alignment etc.) when importing chunk layouts
   (bug 9320).

 - Fix export to LyX 2.0 of chunk insets without optional argument (bug
 9343).

 - Fix import of ERT beamer block titles which are preceeded by a
   language switch.

 - Fix and simplify paragraph params parsing in get_containing_layout.


 * USER INTERFACE

 - Fix alignment rendering of multirow in LyX (bug 8976).

 - Fix mapping of ISO_Left_Tab key, which was erroneously

Re: [ANNOUNCE] LyX 2.1.3 Released

2015-02-12 Thread Rainer M Krug
 (bug 9321).

 - Fix computer algebra system computations in formulas with '=' signs.

 - Fix rendering of \varOmega on OS X (bug 7954).

 - Only allow 1 paragraph in footnotes when they are part of a title
   layout (bug 2666).

 - When switching classes, warn user about all unapplied document changes
   (1. part of bug 9356).

 - When adding a module, warn user about all unapplied document changes
   (2. part of bug 9356).

 - Do not enable the Apply button in the document dialog just because a
   module was selected in the widget (without actual change) (bug 9365).

 - Fix logic of Maintain aspect ratio checkbox in the graphics dialog
   (bug 9357).

 - Fix most frequent reason for crash while editing with open view source
   window (bug 9336).

 - Fix crash when pasting citation into math formula (bug 9302).


 * INTERNALS

 - Fix wrong test in LyX server.

 - Fix possible memory corruption on copying to the clipboard.

 - Fix possible memory corruption during LaTeX log file parsing.

 - Make some math messages translatable (bug 1908).


 * DOCUMENTATION AND LOCALIZATION

 - Fix language settings for all IEEEtran templates (bug 9350).

 - The template document for REVTeX 4.1 has been rewritten.


 * LYXHTML

 - Fix export of \ll, \gg, \ne and \neq in math formulas (bug 9372).



 * TEX2LYX

 - Do not ignore table columns with unknown column specifiers (bug 9311).

 - Parse tikzpicture environment correctly (bug 9011).

 - Fix misparsing of \textgreek without polyglossia (bug 8553).

 - Parse post command argument insets (bug 8473).

 - Parse parsing of verbatim options containing commands (bug 9113).



 * BUILD/INSTALLATION

 - Fix some compiler warnings.

 - Fix a few minor issues in the RPM spec file template (bug 9349).




Footnotes: 
[1]  https://github.com/caskroom/homebrew-cask

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [ANNOUNCE] LyX 2.1.3 Released

2015-02-12 Thread Rainer M Krug
 (bug 9321).

 - Fix computer algebra system computations in formulas with '=' signs.

 - Fix rendering of \varOmega on OS X (bug 7954).

 - Only allow 1 paragraph in footnotes when they are part of a title
   layout (bug 2666).

 - When switching classes, warn user about all unapplied document changes
   (1. part of bug 9356).

 - When adding a module, warn user about all unapplied document changes
   (2. part of bug 9356).

 - Do not enable the Apply button in the document dialog just because a
   module was selected in the widget (without actual change) (bug 9365).

 - Fix logic of Maintain aspect ratio checkbox in the graphics dialog
   (bug 9357).

 - Fix most frequent reason for crash while editing with open view source
   window (bug 9336).

 - Fix crash when pasting citation into math formula (bug 9302).


 * INTERNALS

 - Fix wrong test in LyX server.

 - Fix possible memory corruption on copying to the clipboard.

 - Fix possible memory corruption during LaTeX log file parsing.

 - Make some math messages translatable (bug 1908).


 * DOCUMENTATION AND LOCALIZATION

 - Fix language settings for all IEEEtran templates (bug 9350).

 - The template document for REVTeX 4.1 has been rewritten.


 * LYXHTML

 - Fix export of \ll, \gg, \ne and \neq in math formulas (bug 9372).



 * TEX2LYX

 - Do not ignore table columns with unknown column specifiers (bug 9311).

 - Parse tikzpicture environment correctly (bug 9011).

 - Fix misparsing of \textgreek without polyglossia (bug 8553).

 - Parse post command argument insets (bug 8473).

 - Parse parsing of verbatim options containing commands (bug 9113).



 * BUILD/INSTALLATION

 - Fix some compiler warnings.

 - Fix a few minor issues in the RPM spec file template (bug 9349).




Footnotes: 
[1]  https://github.com/caskroom/homebrew-cask

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [ANNOUNCE] LyX 2.1.3 Released

2015-02-12 Thread Rainer M Krug
Rainer M Krug rai...@krugs.de writes:

 For Mac:

 I just updated LyX on homebrew cask [1] to 2.2.3

Sorry - I was ahead of my time.

Should have been 2.1.3

Rainer


 Cheers,

 Rainer


 Richard Heck rgh...@lyx.org writes:

 We are proud to announce the release of LyX 2.1.3.  This is the third
 maintenance release in the 2.1.x series.

 LyX is a document processor that encourages an approach to writing based
 on the structure of your documents and not simply their appearance. It is
 released under a Free and Open Source Software license.

 You can download LyX 2.1.3 from http://www.lyx.org/Download/.

 LyX 2.1.3 is the result of on-going efforts to make our stable version
 even more reliable and stable. We have fixed a number of bugs and made
 a number of improvements. These are detailed below. We strongly encourage
 all LyX users to upgrade to this version.

 If you think you have found a bug in LyX 2.1.3, open a bug report at
 http://www.lyx.org/trac/wiki/BugTrackerHome. If you're not sure whether it
 really is a bug, you can e-mail the LyX developers' mailing list (lyx-devel
 at lists.lyx.org) and ask.

 If you have trouble using LyX or have a question, consult the
 documentation that comes with LyX and the LyX wiki, which lives at
 http://wiki.lyx.org/. If you can't find the answer there, e-mail the LyX
 users' list (lyx-users at lists.lyx.org).

 We hope you enjoy using LyX 2.1.3.

 The LyX team.
 http://www.lyx.org


 What's new
 ==

 ** Updates:
 ***

 * DOCUMENT INPUT/OUTPUT

 - Add support for some conference poster classes (a0poster, beamerposter,
   sciposter) (bug 8714).

 - Add support for the sectionbox and tcolorbox packages (part of bug 8714).

 - Add support for PDF annotations (via pdfcomment package) (bug 6975).


 * TEX2LYX IMPROVEMENTS

 - Support for bibliographies using the package bibtopic.

 - Support for textual references (LaTeX-command \namref from the package
   nameref).

 - Support for items in itemize environments that have an optional argument.

 - Support for the math font of the Iwona and Kurier font families.

 - Support for the Libertine fonts.

 - Support for a relative length as paragraph separation.

 - Support for relative lengths in horizontal and vertical spaces.

 - Support for glue lengths in horizontal and vertical spaces.


 * USER INTERFACE

 - References no longer truncated in outliner (bug 9312).

 - Allow computing selected subformulas with computer algebra systems.

 - Number correctly footnotes in title layouts (part of bug 2666).

 - Ctrl+A is now bound to inset-select-all, which does a local
   selection (current inset) and grows at each new invokation. Try it!

 - Debug options in message pane are now sorted alphabetically.


 * DOCUMENTATION AND LOCALIZATION

 - New example file PDF-comment.lyx describing the support for PDF
 annotations.

 - Updated Arabic, French, German, Japanese, Portuguese, Slovak and Swedish
   user interface localization.


 ** Bug fixes:
 *

 * DOCUMENT INPUT/OUTPUT

 - Fix crash on exporting a recursive math macro (bug 9140). Recursive macros
   are invalid, so typesetting will still fail with TeX capacity exceeded.

 - Fix baseline calculation in last paragraph (bug 9231).

 - Fix export of xfig external insets (bug 9244).

 - Fix incorrect output of ampersands when multiple keys are given for a
   citation (bug 9296).

 - Output package options (specified with PackageOptions layout tag)
   before loading any potentially affected package (bug 9355).

 - Fix export of documents that use the LaTeX-packages mhchem and wasysym
   (bug 9266).

 - Remove unnecessary preamble code in LaTeX export of documents using the
   class REVTeX 4.1 file (bug 4625).

 - Fix for improper environment with duplicate PATH variable entries.
   This happens on Mac OS X 10.10 (Yosemite) where launchd(8) passes
   such an environment to LyX when started from the dock (bug 9317).

 - Protect insets when needed in subfloat captions (bug 9346).

 - Do not swallow spaces in text-in-math mode (bug 7970).

 - Do not insert a protected space after some math-spaces (bug 9319).

 - Fix problem when some special characters appear in the document directory
   name on Windows (bug 9342).


 * LYX2LYX

 - Fix import of LyX 2.0 documents with complex beamer arguments (bug 9254).

 - Fix import of LyX 2.0 IEEEtran documents (bug 9273).

 - Fix import of Chunk layout with trailing empty paragraph (bug 9298).

 - Fix import of chunk layouts containing newlines (bug 9300).

 - Maintain paragraph settings (alignment etc.) when importing chunk layouts
   (bug 9320).

 - Fix export to LyX 2.0 of chunk insets without optional argument (bug
 9343).

 - Fix import of ERT beamer block titles which are preceeded by a
   language switch.

 - Fix and simplify paragraph params parsing in get_containing_layout.


 * USER INTERFACE

 - Fix alignment rendering of multirow in LyX (bug 8976).

 - Fix mapping of ISO_Left_Tab key, which was erroneously

Re: [ANNOUNCE] LyX 2.1.3 Released

2015-02-12 Thread Rainer M Krug
 Maintain paragraph settings (alignment etc.) when importing chunk layouts
>   (bug 9320).
>
> - Fix export to LyX 2.0 of chunk insets without optional argument (bug
> 9343).
>
> - Fix import of ERT beamer block titles which are preceeded by a
>   language switch.
>
> - Fix and simplify paragraph params parsing in get_containing_layout.
>
>
> * USER INTERFACE
>
> - Fix alignment rendering of multirow in LyX (bug 8976).
>
> - Fix mapping of ISO_Left_Tab key, which was erroneously assigned to Tab
>   (instead of BackTab).
>
> - Disallow to insert program listings to footnotes and margin notes
> (bug 9321).
>
> - Fix computer algebra system computations in formulas with '=' signs.
>
> - Fix rendering of \varOmega on OS X (bug 7954).
>
> - Only allow 1 paragraph in footnotes when they are part of a title
>   layout (bug 2666).
>
> - When switching classes, warn user about all unapplied document changes
>   (1. part of bug 9356).
>
> - When adding a module, warn user about all unapplied document changes
>   (2. part of bug 9356).
>
> - Do not enable the Apply button in the document dialog just because a
>   module was selected in the widget (without actual change) (bug 9365).
>
> - Fix logic of "Maintain aspect ratio" checkbox in the graphics dialog
>   (bug 9357).
>
> - Fix most frequent reason for crash while editing with open view source
>   window (bug 9336).
>
> - Fix crash when pasting citation into math formula (bug 9302).
>
>
> * INTERNALS
>
> - Fix wrong test in LyX server.
>
> - Fix possible memory corruption on copying to the clipboard.
>
> - Fix possible memory corruption during LaTeX log file parsing.
>
> - Make some math messages translatable (bug 1908).
>
>
> * DOCUMENTATION AND LOCALIZATION
>
> - Fix language settings for all IEEEtran templates (bug 9350).
>
> - The template document for REVTeX 4.1 has been rewritten.
>
>
> * LYXHTML
>
> - Fix export of \ll, \gg, \ne and \neq in math formulas (bug 9372).
>
>
>
> * TEX2LYX
>
> - Do not ignore table columns with unknown column specifiers (bug 9311).
>
> - Parse tikzpicture environment correctly (bug 9011).
>
> - Fix misparsing of \textgreek without polyglossia (bug 8553).
>
> - Parse post command argument insets (bug 8473).
>
> - Parse parsing of verbatim options containing commands (bug 9113).
>
>
>
> * BUILD/INSTALLATION
>
> - Fix some compiler warnings.
>
> - Fix a few minor issues in the RPM spec file template (bug 9349).
>
>


Footnotes: 
[1]  https://github.com/caskroom/homebrew-cask

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [ANNOUNCE] LyX 2.1.3 Released

2015-02-12 Thread Rainer M Krug
Rainer M Krug <rai...@krugs.de> writes:

> For Mac:
>
> I just updated LyX on homebrew cask [1] to 2.2.3

Sorry - I was ahead of my time.

Should have been 2.1.3

Rainer

>
> Cheers,
>
> Rainer
>
>
> Richard Heck <rgh...@lyx.org> writes:
>
>> We are proud to announce the release of LyX 2.1.3.  This is the third
>> maintenance release in the 2.1.x series.
>>
>> LyX is a document processor that encourages an approach to writing based
>> on the structure of your documents and not simply their appearance. It is
>> released under a Free and Open Source Software license.
>>
>> You can download LyX 2.1.3 from http://www.lyx.org/Download/.
>>
>> LyX 2.1.3 is the result of on-going efforts to make our stable version
>> even more reliable and stable. We have fixed a number of bugs and made
>> a number of improvements. These are detailed below. We strongly encourage
>> all LyX users to upgrade to this version.
>>
>> If you think you have found a bug in LyX 2.1.3, open a bug report at
>> http://www.lyx.org/trac/wiki/BugTrackerHome. If you're not sure whether it
>> really is a bug, you can e-mail the LyX developers' mailing list (lyx-devel
>>  lists.lyx.org) and ask.
>>
>> If you have trouble using LyX or have a question, consult the
>> documentation that comes with LyX and the LyX wiki, which lives at
>> http://wiki.lyx.org/. If you can't find the answer there, e-mail the LyX
>> users' list (lyx-users  lists.lyx.org).
>>
>> We hope you enjoy using LyX 2.1.3.
>>
>> The LyX team.
>> http://www.lyx.org
>>
>>
>> What's new
>> ==
>>
>> ** Updates:
>> ***
>>
>> * DOCUMENT INPUT/OUTPUT
>>
>> - Add support for some conference poster classes (a0poster, beamerposter,
>>   sciposter) (bug 8714).
>>
>> - Add support for the sectionbox and tcolorbox packages (part of bug 8714).
>>
>> - Add support for PDF annotations (via pdfcomment package) (bug 6975).
>>
>>
>> * TEX2LYX IMPROVEMENTS
>>
>> - Support for bibliographies using the package bibtopic.
>>
>> - Support for textual references (LaTeX-command \namref from the package
>>   nameref).
>>
>> - Support for items in itemize environments that have an optional argument.
>>
>> - Support for the math font of the Iwona and Kurier font families.
>>
>> - Support for the Libertine fonts.
>>
>> - Support for a relative length as paragraph separation.
>>
>> - Support for relative lengths in horizontal and vertical spaces.
>>
>> - Support for glue lengths in horizontal and vertical spaces.
>>
>>
>> * USER INTERFACE
>>
>> - References no longer truncated in outliner (bug 9312).
>>
>> - Allow computing selected subformulas with computer algebra systems.
>>
>> - Number correctly footnotes in title layouts (part of bug 2666).
>>
>> - Ctrl+A is now bound to inset-select-all, which does a local
>>   selection (current inset) and grows at each new invokation. Try it!
>>
>> - Debug options in message pane are now sorted alphabetically.
>>
>>
>> * DOCUMENTATION AND LOCALIZATION
>>
>> - New example file "PDF-comment.lyx" describing the support for PDF
>> annotations.
>>
>> - Updated Arabic, French, German, Japanese, Portuguese, Slovak and Swedish
>>   user interface localization.
>>
>>
>> ** Bug fixes:
>> *
>>
>> * DOCUMENT INPUT/OUTPUT
>>
>> - Fix crash on exporting a recursive math macro (bug 9140). Recursive macros
>>   are invalid, so typesetting will still fail with "TeX capacity exceeded".
>>
>> - Fix baseline calculation in last paragraph (bug 9231).
>>
>> - Fix export of xfig external insets (bug 9244).
>>
>> - Fix incorrect output of ampersands when multiple keys are given for a
>>   citation (bug 9296).
>>
>> - Output package options (specified with PackageOptions layout tag)
>>   before loading any potentially affected package (bug 9355).
>>
>> - Fix export of documents that use the LaTeX-packages mhchem and wasysym
>>   (bug 9266).
>>
>> - Remove unnecessary preamble code in LaTeX export of documents using the
>>   class REVTeX 4.1 file (bug 4625).
>>
>> - Fix for improper environment with duplicate PATH variable entries.
>>   This happens on Mac OS X 10.10 (Yosemite) where launchd(8) passes
>>   such an environment to LyX when started from the dock (bug 9317).
>>
>> - Protect insets when needed in 

Re: Need to define a macro/variable in the command line

2014-11-06 Thread Rainer M Krug
Ramon Casha rca...@gmail.com writes:

 I have a LyX document from which I want to generate a number of output
 documents from the command line. The output documents vary in small
 details, like a product name or a recipient name.

 Is it possible to define a macro or change its value from the command line?
 I could then use the macro from within the document to insert its
 definition. I'm already using branch enabling/disabling to show or hide
 sections of text, but in some cases I need to insert some text that can
 have an arbitrary value at runtime.

.lyx files are text files (unless they are compressed, which they
normaly aren't). SO you could put inn your LyX document
###THIS_NEEDS_TO_BE_REPLACED### and then use any scripting language to
replace ###THIS_NEEDS_TO_BE_REPLACED### with This is my text and then
compile the lyx document. If you want to be on the safe side, you could
copy the .lyx file, do the replacements, compile the final document and
finally delete the copy of the original lyx file.

Cheers,

Rainer


 Ramon Casha

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Need to define a macro/variable in the command line

2014-11-06 Thread Rainer M Krug
Ramon Casha rca...@gmail.com writes:

 I have a LyX document from which I want to generate a number of output
 documents from the command line. The output documents vary in small
 details, like a product name or a recipient name.

 Is it possible to define a macro or change its value from the command line?
 I could then use the macro from within the document to insert its
 definition. I'm already using branch enabling/disabling to show or hide
 sections of text, but in some cases I need to insert some text that can
 have an arbitrary value at runtime.

.lyx files are text files (unless they are compressed, which they
normaly aren't). SO you could put inn your LyX document
###THIS_NEEDS_TO_BE_REPLACED### and then use any scripting language to
replace ###THIS_NEEDS_TO_BE_REPLACED### with This is my text and then
compile the lyx document. If you want to be on the safe side, you could
copy the .lyx file, do the replacements, compile the final document and
finally delete the copy of the original lyx file.

Cheers,

Rainer


 Ramon Casha

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: Need to define a macro/variable in the command line

2014-11-06 Thread Rainer M Krug
Ramon Casha <rca...@gmail.com> writes:

> I have a LyX document from which I want to generate a number of output
> documents from the command line. The output documents vary in small
> details, like a product name or a recipient name.
>
> Is it possible to define a macro or change its value from the command line?
> I could then use the macro from within the document to insert its
> definition. I'm already using branch enabling/disabling to show or hide
> sections of text, but in some cases I need to insert some text that can
> have an arbitrary value at runtime.

.lyx files are text files (unless they are compressed, which they
normaly aren't). SO you could put inn your LyX document
###THIS_NEEDS_TO_BE_REPLACED### and then use any scripting language to
replace ###THIS_NEEDS_TO_BE_REPLACED### with "This is my text" and then
compile the lyx document. If you want to be on the safe side, you could
copy the .lyx file, do the replacements, compile the final document and
finally delete the copy of the original lyx file.

Cheers,

Rainer

>
> Ramon Casha

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


WORKAROUND and BUG: Yosemite + LyX

2014-10-22 Thread Rainer M Krug
THis seems to be a problem with paths and environmental variables passed
to sub-processes (also mentiond on the R sig mac list): Yosemite seems
to have implemented security mechanisms which do (to me) unknown things
to paths and environmental variables.

So, in a nutshell:

1) If you do a reconfigure in LyX started from the icon / finder /
spotlight, the reconfigure seems not to find the files needed, and does
finish nearly immediately and does not creates an (empty?) configuration
file

2) If you start lyx from the terminal

--8---cut here---start-8---
/PATH/TO/LyX.app/Contents/MacOS/lyx
--8---cut here---end---8---

and reconfigure then, it is working.

Workaround: 
Startt from terminal and reconfigure - after this everything seems to be
working

Solution:
No idea, but I guess an update in LyX

Hope this helps,

Rainer


Christopher Menzel chris.men...@gmail.com writes:

 Hal Kierstead wrote:
 I am trying to use LyX 2.1.2 with Yosemite, but review does not work
 for me.  I cannot even preview the help manuals.  I can export them
 to LaTex and then compile them with LaTex.  This must be some path
 problem, but I do not know how to deal with it.  Any help would be
 appreciated.

 Couple of very quick ideas:

 . Perhaps reconfiguring (Tools - reconfigure) might help.
 . If you aren't using the latest version of MacTeX
 http://tug.org/mactex/, consider upgrading.

 -chris


-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpYK1ccEvlVl.pgp
Description: PGP signature


WORKAROUND and BUG: Yosemite + LyX

2014-10-22 Thread Rainer M Krug
THis seems to be a problem with paths and environmental variables passed
to sub-processes (also mentiond on the R sig mac list): Yosemite seems
to have implemented security mechanisms which do (to me) unknown things
to paths and environmental variables.

So, in a nutshell:

1) If you do a reconfigure in LyX started from the icon / finder /
spotlight, the reconfigure seems not to find the files needed, and does
finish nearly immediately and does not creates an (empty?) configuration
file

2) If you start lyx from the terminal

--8---cut here---start-8---
/PATH/TO/LyX.app/Contents/MacOS/lyx
--8---cut here---end---8---

and reconfigure then, it is working.

Workaround: 
Startt from terminal and reconfigure - after this everything seems to be
working

Solution:
No idea, but I guess an update in LyX

Hope this helps,

Rainer


Christopher Menzel chris.men...@gmail.com writes:

 Hal Kierstead wrote:
 I am trying to use LyX 2.1.2 with Yosemite, but review does not work
 for me.  I cannot even preview the help manuals.  I can export them
 to LaTex and then compile them with LaTex.  This must be some path
 problem, but I do not know how to deal with it.  Any help would be
 appreciated.

 Couple of very quick ideas:

 . Perhaps reconfiguring (Tools - reconfigure) might help.
 . If you aren't using the latest version of MacTeX
 http://tug.org/mactex/, consider upgrading.

 -chris


-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpYK1ccEvlVl.pgp
Description: PGP signature


WORKAROUND and BUG: Yosemite + LyX

2014-10-22 Thread Rainer M Krug
THis seems to be a problem with paths and environmental variables passed
to sub-processes (also mentiond on the R sig mac list): Yosemite seems
to have implemented security mechanisms which do (to me) unknown things
to paths and environmental variables.

So, in a nutshell:

1) If you do a reconfigure in LyX started from the icon / finder /
spotlight, the reconfigure seems not to find the files needed, and does
finish nearly immediately and does not creates an (empty?) configuration
file

2) If you start lyx from the terminal

--8<---cut here---start->8---
/PATH/TO/LyX.app/Contents/MacOS/lyx
--8<---cut here---end--->8---

and reconfigure then, it is working.

Workaround: 
Startt from terminal and reconfigure - after this everything seems to be
working

Solution:
No idea, but I guess an update in LyX

Hope this helps,

Rainer


Christopher Menzel <chris.men...@gmail.com> writes:

> Hal Kierstead wrote:
>> I am trying to use LyX 2.1.2 with Yosemite, but review does not work
>> for me.  I cannot even preview the help manuals.  I can export them
>> to LaTex and then compile them with LaTex.  This must be some path
>> problem, but I do not know how to deal with it.  Any help would be
>> appreciated.
>
> Couple of very quick ideas:
>
> . Perhaps reconfiguring (Tools -> reconfigure) might help.
> . If you aren't using the latest version of MacTeX
> <http://tug.org/mactex/>, consider upgrading.
>
> -chris
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpYK1ccEvlVl.pgp
Description: PGP signature


Re: Unknown color ind1

2014-10-16 Thread Rainer M Krug
Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 P.s.
 I just found out that this does not happen with other documents which
 I tried.
 So I guess I have to strip it down to a minimal docu and see whats
 going on.
 Or does somebody has an idea where to look for?

Open the.lyx file in a text editor and search for ind1 might help in
this case?

Rainer


 Wolfgang

 Am 16.10.2014 um 13:16 schrieb Wolfgang Engelmann:
 Hello,

 If I start LyX from a terminal (Kubuntu 14.04.1 LTS) this is appearing

 Color.cpp (399): ColorSet::getFromLyXName: Unknown color ind1

 and shown repeatedly as soon as I touch or do something in my lyx
 document.
 I did not find any help in the internet.
 Has somebody an idea what it means and how I can get rid of it?

 Wolfgang




-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgp9awSrwGJda.pgp
Description: PGP signature


Re: Unknown color ind1

2014-10-16 Thread Rainer M Krug
Glad I could help

Rainer

Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 Thanks, Rainer, that help:
  It was an ill defined index type
 Wolfgang

 Am 16.10.2014 um 14:00 schrieb Rainer M Krug:
 Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 P.s.
 I just found out that this does not happen with other documents which
 I tried.
 So I guess I have to strip it down to a minimal docu and see whats
 going on.
 Or does somebody has an idea where to look for?
 Open the.lyx file in a text editor and search for ind1 might help in
 this case?

 Rainer

 Wolfgang

 Am 16.10.2014 um 13:16 schrieb Wolfgang Engelmann:
 Hello,

 If I start LyX from a terminal (Kubuntu 14.04.1 LTS) this is appearing

 Color.cpp (399): ColorSet::getFromLyXName: Unknown color ind1

 and shown repeatedly as soon as I touch or do something in my lyx
 document.
 I did not find any help in the internet.
 Has somebody an idea what it means and how I can get rid of it?

 Wolfgang





-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpmZyPxLZT3M.pgp
Description: PGP signature


Re: Unknown color ind1

2014-10-16 Thread Rainer M Krug
Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 P.s.
 I just found out that this does not happen with other documents which
 I tried.
 So I guess I have to strip it down to a minimal docu and see whats
 going on.
 Or does somebody has an idea where to look for?

Open the.lyx file in a text editor and search for ind1 might help in
this case?

Rainer


 Wolfgang

 Am 16.10.2014 um 13:16 schrieb Wolfgang Engelmann:
 Hello,

 If I start LyX from a terminal (Kubuntu 14.04.1 LTS) this is appearing

 Color.cpp (399): ColorSet::getFromLyXName: Unknown color ind1

 and shown repeatedly as soon as I touch or do something in my lyx
 document.
 I did not find any help in the internet.
 Has somebody an idea what it means and how I can get rid of it?

 Wolfgang




-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgp9awSrwGJda.pgp
Description: PGP signature


Re: Unknown color ind1

2014-10-16 Thread Rainer M Krug
Glad I could help

Rainer

Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 Thanks, Rainer, that help:
  It was an ill defined index type
 Wolfgang

 Am 16.10.2014 um 14:00 schrieb Rainer M Krug:
 Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 P.s.
 I just found out that this does not happen with other documents which
 I tried.
 So I guess I have to strip it down to a minimal docu and see whats
 going on.
 Or does somebody has an idea where to look for?
 Open the.lyx file in a text editor and search for ind1 might help in
 this case?

 Rainer

 Wolfgang

 Am 16.10.2014 um 13:16 schrieb Wolfgang Engelmann:
 Hello,

 If I start LyX from a terminal (Kubuntu 14.04.1 LTS) this is appearing

 Color.cpp (399): ColorSet::getFromLyXName: Unknown color ind1

 and shown repeatedly as soon as I touch or do something in my lyx
 document.
 I did not find any help in the internet.
 Has somebody an idea what it means and how I can get rid of it?

 Wolfgang





-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpmZyPxLZT3M.pgp
Description: PGP signature


Re: Unknown color "ind1"

2014-10-16 Thread Rainer M Krug
Wolfgang Engelmann <engelm...@uni-tuebingen.de> writes:

> P.s.
> I just found out that this does not happen with other documents which
> I tried.
> So I guess I have to strip it down to a minimal docu and see whats
> going on.
> Or does somebody has an idea where to look for?

Open the.lyx file in a text editor and search for ind1 might help in
this case?

Rainer

>
> Wolfgang
>
> Am 16.10.2014 um 13:16 schrieb Wolfgang Engelmann:
>> Hello,
>>
>> If I start LyX from a terminal (Kubuntu 14.04.1 LTS) this is appearing
>>
>> Color.cpp (399): ColorSet::getFromLyXName: Unknown color "ind1"
>>
>> and shown repeatedly as soon as I touch or do something in my lyx
>> document.
>> I did not find any help in the internet.
>> Has somebody an idea what it means and how I can get rid of it?
>>
>> Wolfgang
>>
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgp9awSrwGJda.pgp
Description: PGP signature


Re: Unknown color "ind1"

2014-10-16 Thread Rainer M Krug
Glad I could help

Rainer

Wolfgang Engelmann <engelm...@uni-tuebingen.de> writes:

> Thanks, Rainer, that help:
>  It was an ill defined index type
> Wolfgang
>
> Am 16.10.2014 um 14:00 schrieb Rainer M Krug:
>> Wolfgang Engelmann <engelm...@uni-tuebingen.de> writes:
>>
>>> P.s.
>>> I just found out that this does not happen with other documents which
>>> I tried.
>>> So I guess I have to strip it down to a minimal docu and see whats
>>> going on.
>>> Or does somebody has an idea where to look for?
>> Open the.lyx file in a text editor and search for ind1 might help in
>> this case?
>>
>> Rainer
>>
>>> Wolfgang
>>>
>>> Am 16.10.2014 um 13:16 schrieb Wolfgang Engelmann:
>>>> Hello,
>>>>
>>>> If I start LyX from a terminal (Kubuntu 14.04.1 LTS) this is appearing
>>>>
>>>> Color.cpp (399): ColorSet::getFromLyXName: Unknown color "ind1"
>>>>
>>>> and shown repeatedly as soon as I touch or do something in my lyx
>>>> document.
>>>> I did not find any help in the internet.
>>>> Has somebody an idea what it means and how I can get rid of it?
>>>>
>>>> Wolfgang
>>>>
>>>
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpmZyPxLZT3M.pgp
Description: PGP signature


Re: Reduce size of the pdf-Document

2014-10-14 Thread Rainer M Krug
Uwe Ade uwe@gmx.de writes:

 Hello,
  
 I use Lyx with beamer to make my slides for lectures. Are there any
 Option build in Lyx I can set to reduce the Size to the final-pdf?

No - but this is one question which comes up again and again.

There are several options what one can do, i.e. resize images manually,
create a copier in LyX to resize the images automatically or resize the
resulting pdf via an external program.

But it all depends why your pdf is so large.

Cheers,

Rainer


 Thanks

 uwe 

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgp6TElebNCms.pgp
Description: PGP signature


Re: Reduce size of the pdf-Document

2014-10-14 Thread Rainer M Krug
Jürgen Spitzmüller sp...@lyx.org writes:

 2014-10-14 9:17 GMT+02:00 Rainer M Krug:

 Uwe Ade writes:

  Hello,
 
  I use Lyx with beamer to make my slides for lectures. Are there any
  Option build in Lyx I can set to reduce the Size to the final-pdf?

 No - but this is one question which comes up again and again.

 There are several options what one can do, i.e. resize images manually,
 create a copier in LyX to resize the images automatically or resize the
 resulting pdf via an external program.

 But it all depends why your pdf is so large.


 A while ago I set up a script (aimed at Linux) that reduces the PDF file
 size:
 http://jspitzm.wordpress.com/2010/11/08/pdf-file-diet/

Nice - and I guess it will also work under mac when ghostscript is
installed. 

Nevertheless, it would be really nice, if there would be an option in
LyX to down-sample all images of a certain type to a given resolution
automatically.

Cheers,

Raienr


 Of course, the prize is image quality. So you need to play a bit with it to
 find a reasonable compromise.

 HTH
 Jürgen

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpR2_C2UYOOV.pgp
Description: PGP signature


Re: Reduce size of the pdf-Document

2014-10-14 Thread Rainer M Krug
Uwe Ade uwe@gmx.de writes:

 Hello,
  
 I use Lyx with beamer to make my slides for lectures. Are there any
 Option build in Lyx I can set to reduce the Size to the final-pdf?

No - but this is one question which comes up again and again.

There are several options what one can do, i.e. resize images manually,
create a copier in LyX to resize the images automatically or resize the
resulting pdf via an external program.

But it all depends why your pdf is so large.

Cheers,

Rainer


 Thanks

 uwe 

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgp6TElebNCms.pgp
Description: PGP signature


Re: Reduce size of the pdf-Document

2014-10-14 Thread Rainer M Krug
Jürgen Spitzmüller sp...@lyx.org writes:

 2014-10-14 9:17 GMT+02:00 Rainer M Krug:

 Uwe Ade writes:

  Hello,
 
  I use Lyx with beamer to make my slides for lectures. Are there any
  Option build in Lyx I can set to reduce the Size to the final-pdf?

 No - but this is one question which comes up again and again.

 There are several options what one can do, i.e. resize images manually,
 create a copier in LyX to resize the images automatically or resize the
 resulting pdf via an external program.

 But it all depends why your pdf is so large.


 A while ago I set up a script (aimed at Linux) that reduces the PDF file
 size:
 http://jspitzm.wordpress.com/2010/11/08/pdf-file-diet/

Nice - and I guess it will also work under mac when ghostscript is
installed. 

Nevertheless, it would be really nice, if there would be an option in
LyX to down-sample all images of a certain type to a given resolution
automatically.

Cheers,

Raienr


 Of course, the prize is image quality. So you need to play a bit with it to
 find a reasonable compromise.

 HTH
 Jürgen

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpR2_C2UYOOV.pgp
Description: PGP signature


Re: Reduce size of the pdf-Document

2014-10-14 Thread Rainer M Krug
Uwe Ade <uwe@gmx.de> writes:

> Hello,
>  
> I use Lyx with beamer to make my slides for lectures. Are there any
> Option build in Lyx I can set to reduce the Size to the final-pdf?

No - but this is one question which comes up again and again.

There are several options what one can do, i.e. resize images manually,
create a copier in LyX to resize the images automatically or resize the
resulting pdf via an external program.

But it all depends why your pdf is so large.

Cheers,

Rainer

>
> Thanks
>
> uwe 

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgp6TElebNCms.pgp
Description: PGP signature


Re: Reduce size of the pdf-Document

2014-10-14 Thread Rainer M Krug
Jürgen Spitzmüller <sp...@lyx.org> writes:

> 2014-10-14 9:17 GMT+02:00 Rainer M Krug:
>
>> Uwe Ade writes:
>>
>> > Hello,
>> >
>> > I use Lyx with beamer to make my slides for lectures. Are there any
>> > Option build in Lyx I can set to reduce the Size to the final-pdf?
>>
>> No - but this is one question which comes up again and again.
>>
>> There are several options what one can do, i.e. resize images manually,
>> create a copier in LyX to resize the images automatically or resize the
>> resulting pdf via an external program.
>>
>> But it all depends why your pdf is so large.
>>
>
> A while ago I set up a script (aimed at Linux) that reduces the PDF file
> size:
> http://jspitzm.wordpress.com/2010/11/08/pdf-file-diet/

Nice - and I guess it will also work under mac when ghostscript is
installed. 

Nevertheless, it would be really nice, if there would be an option in
LyX to down-sample all images of a certain type to a given resolution
automatically.

Cheers,

Raienr

>
> Of course, the prize is image quality. So you need to play a bit with it to
> find a reasonable compromise.
>
> HTH
> Jürgen

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpR2_C2UYOOV.pgp
Description: PGP signature


Re: lyx on Mac - blurred fonts

2014-10-10 Thread Rainer M Krug
Christopher Menzel chris.men...@gmail.com writes:

 He said around Christmas.

I am looking forward to this present...

Rainer


 -chris

 Langer, Tino wrote:
 Hi Stephan,

 many thanks for the information. You are right - I'm using a display
 with high resolution - so I understand the problem. Is there a
 approximately time schedule to adapt the current version of lyx to
 support Retina-Displays?

 Greetings - all the best! - Tino

 Am 06.10.2014 07:28, schrieb Stephan Witt:
 Am 05.10.2014 um 21:47 schrieb Tino Langer tino.lan...@gmx.net:

 Hi all,

 I just installed lyx 2.1.2 on OSX 10.9.5, using MacTeX in background.

 I’m a little bit confused because the font in the editor area and
 also the icons at the toolbar are very blurred. Are there any
 options I have to change to get antialiased fonts and clear icons?

 Thanks a lot! - Tino

 Hi Tino,

 you're using a display with very high resolution, the so called
 Retina-display.
 LyX isn't ready to display the contents of the work area and the
 icons on
 a Mac with Retina display.  So, no, there is no option to enable
 the display
 with full screen resolution on your Mac.  You have to wait for a
 new version
 of LyX.

 Stephan



-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpyT_2kTrVlH.pgp
Description: PGP signature


Re: lyx on Mac - blurred fonts

2014-10-10 Thread Rainer M Krug
Jean-Marc Lasgouttes lasgout...@lyx.org writes:

 Le 10/10/2014 10:53, Rainer M Krug a écrit :
 Christopher Menzel chris.men...@gmail.com writes:

 He said around Christmas.

 I am looking forward to this present...


 We'll have to see what christmas :)

True ...



 JMarc



-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpkKd_tZac_g.pgp
Description: PGP signature


Re: lyx on Mac - blurred fonts

2014-10-10 Thread Rainer M Krug
Christopher Menzel chris.men...@gmail.com writes:

 He said around Christmas.

I am looking forward to this present...

Rainer


 -chris

 Langer, Tino wrote:
 Hi Stephan,

 many thanks for the information. You are right - I'm using a display
 with high resolution - so I understand the problem. Is there a
 approximately time schedule to adapt the current version of lyx to
 support Retina-Displays?

 Greetings - all the best! - Tino

 Am 06.10.2014 07:28, schrieb Stephan Witt:
 Am 05.10.2014 um 21:47 schrieb Tino Langer tino.lan...@gmx.net:

 Hi all,

 I just installed lyx 2.1.2 on OSX 10.9.5, using MacTeX in background.

 I’m a little bit confused because the font in the editor area and
 also the icons at the toolbar are very blurred. Are there any
 options I have to change to get antialiased fonts and clear icons?

 Thanks a lot! - Tino

 Hi Tino,

 you're using a display with very high resolution, the so called
 Retina-display.
 LyX isn't ready to display the contents of the work area and the
 icons on
 a Mac with Retina display.  So, no, there is no option to enable
 the display
 with full screen resolution on your Mac.  You have to wait for a
 new version
 of LyX.

 Stephan



-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpyT_2kTrVlH.pgp
Description: PGP signature


Re: lyx on Mac - blurred fonts

2014-10-10 Thread Rainer M Krug
Jean-Marc Lasgouttes lasgout...@lyx.org writes:

 Le 10/10/2014 10:53, Rainer M Krug a écrit :
 Christopher Menzel chris.men...@gmail.com writes:

 He said around Christmas.

 I am looking forward to this present...


 We'll have to see what christmas :)

True ...



 JMarc



-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpkKd_tZac_g.pgp
Description: PGP signature


Re: lyx on Mac - blurred fonts

2014-10-10 Thread Rainer M Krug
Christopher Menzel <chris.men...@gmail.com> writes:

> He said around Christmas.

I am looking forward to this present...

Rainer

>
> -chris
>
> Langer, Tino wrote:
>> Hi Stephan,
>>
>> many thanks for the information. You are right - I'm using a display
>> with high resolution - so I understand the problem. Is there a
>> approximately time schedule to adapt the current version of lyx to
>> support Retina-Displays?
>>
>> Greetings - all the best! - Tino
>>
>> Am 06.10.2014 07:28, schrieb Stephan Witt:
>>> Am 05.10.2014 um 21:47 schrieb Tino Langer <tino.lan...@gmx.net>:
>>>
>>>> Hi all,
>>>>
>>>> I just installed lyx 2.1.2 on OSX 10.9.5, using MacTeX in background.
>>>>
>>>> I’m a little bit confused because the font in the editor area and
>>>> also the icons at the toolbar are very blurred. Are there any
>>>> options I have to change to get antialiased fonts and clear icons?
>>>>
>>>> Thanks a lot! - Tino
>>>
>>> Hi Tino,
>>>
>>> you're using a display with very high resolution, the so called
>>> Retina-display.
>>> LyX isn't ready to display the contents of the work area and the
>>> icons on
>>> a Mac with Retina display.  So, no, there is no option to enable
>>> the display
>>> with full screen resolution on your Mac.  You have to wait for a
>>> new version
>>> of LyX.
>>>
>>> Stephan
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpyT_2kTrVlH.pgp
Description: PGP signature


Re: lyx on Mac - blurred fonts

2014-10-10 Thread Rainer M Krug
Jean-Marc Lasgouttes <lasgout...@lyx.org> writes:

> Le 10/10/2014 10:53, Rainer M Krug a écrit :
>> Christopher Menzel <chris.men...@gmail.com> writes:
>>
>>> He said around Christmas.
>>
>> I am looking forward to this present...
>
>
> We'll have to see what christmas :)

True ...


>
> JMarc
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpkKd_tZac_g.pgp
Description: PGP signature


Re: Center All Graphics

2014-10-03 Thread Rainer M Krug
Chris Rackauckas m...@chrisrackauckas.com writes:

 Centering the graphics in floats automatically is easy: Just add
 \usepackage{floatrow}
 to the preamble. I just made a module that does this and it's a quick fix
 to everything. However, for this lab notebook I am making, I want to
 quickly add graphics and not worry about having to center them or put them
 into floats (and all of the formatting jazz that goes with it).

I had a similar question, and I =rmember that I redifined the
\includegraphics - but I don't remember any details anymore. 

See e.g. the thread  Re: Search and replace within figure settings? in
this group for an example on how to include always a shadowbox - this
could be easily changed to center the included graphics.

Here the relevant extract:

--8---cut here---start-8---

% from
% 
http://tex.stackexchange.com/questions/70547/how-can-i-renew-includegraphics-to-always-use-shadowbox
\usepackage{graphicx,fancybox,letltxmacro}
% save the meaning of \includegraphics
\LetLtxMacro\latexincludegraphics\includegraphics
% pass the image to \shadowbox
\renewcommand{\includegraphics}[2][]{%
\shadowbox{\latexincludegraphics[#1]{#2}}}


In addition, I used the following in the preamble to make the graphics always 
centered:

\renewenvironment{figure}[1][]{
 \@float{figure}
 \centering}
 {\end@float}
--8---cut here---end---8---


Cheers,

Rainer


 _
 Chris Rackauckas
 University of California, Irvine
 Department of Mathematics
 www.chrisrackauckas.com

 On Thu, Oct 2, 2014 at 1:40 PM, James Sutherland 
 james.sutherl...@chemeng.utah.edu wrote:

 Better yet, why doesn't LyX center graphics (at least in floats) by
 default?  It centers captions by default, so why not graphics? This
 inconsistency has long annoyed me...

 James
 


 On Thu, Oct 2, 2014 at 2:19 PM, Chris Rackauckas m...@chrisrackauckas.com
 wrote:

 Hello,
   I am trying to create a modification that will center all graphics
 automatically. How would I go about doing this? I tried
 adding \usepackage{floatrow} to the LaTeX preamble but this only centers
 graphics put into floats. Any ideas?
 _
 Chris Rackauckas
 University of California, Irvine
 Department of Mathematics
 www.chrisrackauckas.com




-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpxXreWZpHOH.pgp
Description: PGP signature


Re: Center All Graphics

2014-10-03 Thread Rainer M Krug
Chris Rackauckas m...@chrisrackauckas.com writes:

 Centering the graphics in floats automatically is easy: Just add
 \usepackage{floatrow}
 to the preamble. I just made a module that does this and it's a quick fix
 to everything. However, for this lab notebook I am making, I want to
 quickly add graphics and not worry about having to center them or put them
 into floats (and all of the formatting jazz that goes with it).

I had a similar question, and I =rmember that I redifined the
\includegraphics - but I don't remember any details anymore. 

See e.g. the thread  Re: Search and replace within figure settings? in
this group for an example on how to include always a shadowbox - this
could be easily changed to center the included graphics.

Here the relevant extract:

--8---cut here---start-8---

% from
% 
http://tex.stackexchange.com/questions/70547/how-can-i-renew-includegraphics-to-always-use-shadowbox
\usepackage{graphicx,fancybox,letltxmacro}
% save the meaning of \includegraphics
\LetLtxMacro\latexincludegraphics\includegraphics
% pass the image to \shadowbox
\renewcommand{\includegraphics}[2][]{%
\shadowbox{\latexincludegraphics[#1]{#2}}}


In addition, I used the following in the preamble to make the graphics always 
centered:

\renewenvironment{figure}[1][]{
 \@float{figure}
 \centering}
 {\end@float}
--8---cut here---end---8---


Cheers,

Rainer


 _
 Chris Rackauckas
 University of California, Irvine
 Department of Mathematics
 www.chrisrackauckas.com

 On Thu, Oct 2, 2014 at 1:40 PM, James Sutherland 
 james.sutherl...@chemeng.utah.edu wrote:

 Better yet, why doesn't LyX center graphics (at least in floats) by
 default?  It centers captions by default, so why not graphics? This
 inconsistency has long annoyed me...

 James
 


 On Thu, Oct 2, 2014 at 2:19 PM, Chris Rackauckas m...@chrisrackauckas.com
 wrote:

 Hello,
   I am trying to create a modification that will center all graphics
 automatically. How would I go about doing this? I tried
 adding \usepackage{floatrow} to the LaTeX preamble but this only centers
 graphics put into floats. Any ideas?
 _
 Chris Rackauckas
 University of California, Irvine
 Department of Mathematics
 www.chrisrackauckas.com




-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpxXreWZpHOH.pgp
Description: PGP signature


Re: Center All Graphics

2014-10-03 Thread Rainer M Krug
Chris Rackauckas <m...@chrisrackauckas.com> writes:

> Centering the graphics in floats automatically is easy: Just add
> \usepackage{floatrow}
> to the preamble. I just made a module that does this and it's a quick fix
> to everything. However, for this lab notebook I am making, I want to
> quickly add graphics and not worry about having to center them or put them
> into floats (and all of the formatting jazz that goes with it).

I had a similar question, and I =rmember that I redifined the
\includegraphics - but I don't remember any details anymore. 

See e.g. the thread  "Re: Search and replace within figure settings?" in
this group for an example on how to include always a shadowbox - this
could be easily changed to center the included graphics.

Here the relevant extract:

--8<---cut here---start->8---

% from
% 
http://tex.stackexchange.com/questions/70547/how-can-i-renew-includegraphics-to-always-use-shadowbox
\usepackage{graphicx,fancybox,letltxmacro}
% save the meaning of \includegraphics
\LetLtxMacro\latexincludegraphics\includegraphics
% pass the image to \shadowbox
\renewcommand{\includegraphics}[2][]{%
\shadowbox{\latexincludegraphics[#1]{#2}}}


In addition, I used the following in the preamble to make the graphics always 
centered:

\renewenvironment{figure}[1][]{
 \@float{figure}
 \centering}
 {\end@float}
--8<---cut here---end--->8---


Cheers,

Rainer

>
> _
> Chris Rackauckas
> University of California, Irvine
> Department of Mathematics
> www.chrisrackauckas.com
>
> On Thu, Oct 2, 2014 at 1:40 PM, James Sutherland <
> james.sutherl...@chemeng.utah.edu> wrote:
>
>> Better yet, why doesn't LyX center graphics (at least in floats) by
>> default?  It centers captions by default, so why not graphics? This
>> inconsistency has long annoyed me...
>>
>> James
>> 
>>
>>
>> On Thu, Oct 2, 2014 at 2:19 PM, Chris Rackauckas <m...@chrisrackauckas.com>
>> wrote:
>>
>>> Hello,
>>>   I am trying to create a modification that will center all graphics
>>> automatically. How would I go about doing this? I tried
>>> adding \usepackage{floatrow} to the LaTeX preamble but this only centers
>>> graphics put into floats. Any ideas?
>>> _
>>> Chris Rackauckas
>>> University of California, Irvine
>>> Department of Mathematics
>>> www.chrisrackauckas.com
>>>
>>
>>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpxXreWZpHOH.pgp
Description: PGP signature


Re: Interesting for LyX: ShareLaTeX and github

2014-09-18 Thread Rainer M Krug
Dr Eberhard Lisse nos...@lisse.na writes:

 Importing from LaTeX very often requires manual work.

 Yesterday, I had to figure out how to change the \MyLogo from
 beamerfoils in the middle of the document, and using
 \Mylogo{\includegraphics{whatever.jpg}} did not work.

 So exported to LaTeX. Re-import was a mess :-)-O, which is the point here.

 So I still think collaborative editing can either be done in LyX or in
 LaTeX but not both at the same time. Though, normalizing this, ie only
 having one system to maintain might be helpful.

I completely agree - I was never actually thinking about using
ShareLaTeX for collaboration with LyX, only as a means of compiling the
document.  



 And, if you have LyX you have enough disk space for a  minimal LaTeX
 installation, even in Africa :-)-O

I agree completely here - but still it makes life easier when one does
not have to worry about the compilation of the document.

Re Africa (and elsewhere): the problem might actually be the other way
round, that the bandwidth is the problem and not the hdd space.

Cheers,

Rainer



 on 2014-09-17, 14:01 Rainer M Krug said the following:
 Hugo Hinterberger hugo.hinterber...@gmx.net writes:
 [...]
 There could be a sync(-push) LaTeX export (to project sub-dir)
 feature in LyX, where LyX automatically exports the whole LaTeX source
 it generates for generating its output to a sub-directory of the LyX
 (master) document's location (when a LyX document is saved). The push
 part could do a git push when the sync-dir is updated.

 This could lead to a LaTeX-free LyX installation where compilation is
 done via Github and ShareLaTeX.
 [...]
 and on computers with only limited hdd space.
 [...]

 For the record:

 ERT \Mylogo{
 actual image whatever.jpg displayed and scaled in size I want
 ERT }




-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgp4LCMtNCYTt.pgp
Description: PGP signature


Re: Interesting for LyX: ShareLaTeX and github

2014-09-18 Thread Rainer M Krug
Dr Eberhard Lisse nos...@lisse.na writes:

 Importing from LaTeX very often requires manual work.

 Yesterday, I had to figure out how to change the \MyLogo from
 beamerfoils in the middle of the document, and using
 \Mylogo{\includegraphics{whatever.jpg}} did not work.

 So exported to LaTeX. Re-import was a mess :-)-O, which is the point here.

 So I still think collaborative editing can either be done in LyX or in
 LaTeX but not both at the same time. Though, normalizing this, ie only
 having one system to maintain might be helpful.

I completely agree - I was never actually thinking about using
ShareLaTeX for collaboration with LyX, only as a means of compiling the
document.  



 And, if you have LyX you have enough disk space for a  minimal LaTeX
 installation, even in Africa :-)-O

I agree completely here - but still it makes life easier when one does
not have to worry about the compilation of the document.

Re Africa (and elsewhere): the problem might actually be the other way
round, that the bandwidth is the problem and not the hdd space.

Cheers,

Rainer



 on 2014-09-17, 14:01 Rainer M Krug said the following:
 Hugo Hinterberger hugo.hinterber...@gmx.net writes:
 [...]
 There could be a sync(-push) LaTeX export (to project sub-dir)
 feature in LyX, where LyX automatically exports the whole LaTeX source
 it generates for generating its output to a sub-directory of the LyX
 (master) document's location (when a LyX document is saved). The push
 part could do a git push when the sync-dir is updated.

 This could lead to a LaTeX-free LyX installation where compilation is
 done via Github and ShareLaTeX.
 [...]
 and on computers with only limited hdd space.
 [...]

 For the record:

 ERT \Mylogo{
 actual image whatever.jpg displayed and scaled in size I want
 ERT }




-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgp4LCMtNCYTt.pgp
Description: PGP signature


Re: Interesting for LyX: ShareLaTeX and github

2014-09-18 Thread Rainer M Krug
Dr Eberhard Lisse <nos...@lisse.na> writes:

> Importing from LaTeX very often requires manual work.
>
> Yesterday, I had to figure out how to change the \MyLogo from
> beamerfoils in the middle of the document, and using
> \Mylogo{\includegraphics{whatever.jpg}} did not work.
>
> So exported to LaTeX. Re-import was a mess :-)-O, which is the point here.
>
> So I still think collaborative editing can either be done in LyX or in
> LaTeX but not both at the same time. Though, normalizing this, ie only
> having one system to maintain might be helpful.

I completely agree - I was never actually thinking about using
ShareLaTeX for collaboration with LyX, only as a means of compiling the
document.  

>
>
> And, if you have LyX you have enough disk space for a  minimal LaTeX
> installation, even in Africa :-)-O

I agree completely here - but still it makes life easier when one does
not have to worry about the compilation of the document.

Re Africa (and elsewhere): the problem might actually be the other way
round, that the bandwidth is the problem and not the hdd space.

Cheers,

Rainer


>
> on 2014-09-17, 14:01 Rainer M Krug said the following:
>> "Hugo Hinterberger" <hugo.hinterber...@gmx.net> writes:
> [...]
>>> There could be a "sync(-push) LaTeX export" (to project sub-dir)
>>> feature in LyX, where LyX automatically exports the whole LaTeX source
>>> it generates for generating its output to a sub-directory of the LyX
>>> (master) document's location (when a LyX document is saved). The push
>>> part could do a git push when the sync-dir is updated.
>>>
>>> This could lead to a LaTeX-free LyX installation where compilation is
>>> done via Github and ShareLaTeX.
> [...]
>> and on computers with only limited hdd space.
> [...]
>
> For the record:
>
> ERT \Mylogo{
> actual image whatever.jpg displayed and scaled in size I want
> ERT }
>
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgp4LCMtNCYTt.pgp
Description: PGP signature


Interesting for LyX: ShareLaTeX and github

2014-09-17 Thread Rainer M Krug
Hi

in the past there were some discussions about using cloud based latex
instead of a local installation. I just receive an announcement from
ShareLaTeX that one can automatically compile tex files on github.

From their announcement:

,
| Github + ShareLaTeX
| 
| We have released our new Cloud Compiler which automatically compiles
| your LaTeX projects stored in Github after each push. It is free and
| very easy to get setup with. If you prefer a local editor and git for
| writing your LaTeX then you now no longer need to worry about having a
| working LaTeX environment.
`

More info can be found at 
  
  https://www.sharelatex.com/github/

I am not entirely sure how robust and user friendly the git
implementation in LyX is, but it would be nice to use it for having a
version control as well as cloiund based compilation?

Cheers,

Rainer

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgphoLMNYnCQd.pgp
Description: PGP signature


Re: Interesting for LyX: ShareLaTeX and github

2014-09-17 Thread Rainer M Krug
Hugo Hinterberger hugo.hinterber...@gmx.net writes:

 Hello,


 On Wed, 17 Sep 2014 11:14:51 +0200, Dr Eberhard Lisse
 nos...@lisse.na wrote:

 Indeed, this sounds actually quite interesting, but I don't see how
 that would work with LyX.

You can install LyX without LaTeX, but I don't know if this is the case
with a Mac - actually, it should work via e.g. homebrew.


 There could be a sync(-push) LaTeX export (to project sub-dir)
 feature in LyX, where LyX automatically exports the whole LaTeX source
 it generates for generating its output to a sub-directory of the LyX
 (master) document's location (when a LyX document is saved). The push
 part could do a git push when the sync-dir is updated.

 This could lead to a LaTeX-free LyX installation where compilation is
 done via Github and ShareLaTeX.

Yes - this would be great, and really open the possibility for using LyX
on other devices 

DREAM MODE ON:
LyX on a tablet should be possible!
DREAM MODE OFF

and on computers with only limited hdd space.

But I think the first step would be to have a proper git implementation
in LyX (which in itself would be very useful!).

And even without ShareLaTeX, it should be relatively straight forward to
setup a computer which pulls the github repo, compiles the pdf. 

Cheers,

Rainer



 Regards,
 Hugo



-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpCwWHoLiUTV.pgp
Description: PGP signature


Interesting for LyX: ShareLaTeX and github

2014-09-17 Thread Rainer M Krug
Hi

in the past there were some discussions about using cloud based latex
instead of a local installation. I just receive an announcement from
ShareLaTeX that one can automatically compile tex files on github.

From their announcement:

,
| Github + ShareLaTeX
| 
| We have released our new Cloud Compiler which automatically compiles
| your LaTeX projects stored in Github after each push. It is free and
| very easy to get setup with. If you prefer a local editor and git for
| writing your LaTeX then you now no longer need to worry about having a
| working LaTeX environment.
`

More info can be found at 
  
  https://www.sharelatex.com/github/

I am not entirely sure how robust and user friendly the git
implementation in LyX is, but it would be nice to use it for having a
version control as well as cloiund based compilation?

Cheers,

Rainer

-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgphoLMNYnCQd.pgp
Description: PGP signature


Re: Interesting for LyX: ShareLaTeX and github

2014-09-17 Thread Rainer M Krug
Hugo Hinterberger hugo.hinterber...@gmx.net writes:

 Hello,


 On Wed, 17 Sep 2014 11:14:51 +0200, Dr Eberhard Lisse
 nos...@lisse.na wrote:

 Indeed, this sounds actually quite interesting, but I don't see how
 that would work with LyX.

You can install LyX without LaTeX, but I don't know if this is the case
with a Mac - actually, it should work via e.g. homebrew.


 There could be a sync(-push) LaTeX export (to project sub-dir)
 feature in LyX, where LyX automatically exports the whole LaTeX source
 it generates for generating its output to a sub-directory of the LyX
 (master) document's location (when a LyX document is saved). The push
 part could do a git push when the sync-dir is updated.

 This could lead to a LaTeX-free LyX installation where compilation is
 done via Github and ShareLaTeX.

Yes - this would be great, and really open the possibility for using LyX
on other devices 

DREAM MODE ON:
LyX on a tablet should be possible!
DREAM MODE OFF

and on computers with only limited hdd space.

But I think the first step would be to have a proper git implementation
in LyX (which in itself would be very useful!).

And even without ShareLaTeX, it should be relatively straight forward to
setup a computer which pulls the github repo, compiles the pdf. 

Cheers,

Rainer



 Regards,
 Hugo



-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


pgpCwWHoLiUTV.pgp
Description: PGP signature


Interesting for LyX: ShareLaTeX and github

2014-09-17 Thread Rainer M Krug
Hi

in the past there were some discussions about using cloud based latex
instead of a local installation. I just receive an announcement from
ShareLaTeX that one can automatically compile tex files on github.

From their announcement:

,
| Github + ShareLaTeX
| 
| We have released our new Cloud Compiler which automatically compiles
| your LaTeX projects stored in Github after each push. It is free and
| very easy to get setup with. If you prefer a local editor and git for
| writing your LaTeX then you now no longer need to worry about having a
| working LaTeX environment.
`

More info can be found at 
  
  https://www.sharelatex.com/github/

I am not entirely sure how robust and user friendly the git
implementation in LyX is, but it would be nice to use it for having a
version control as well as cloiund based compilation?

Cheers,

Rainer

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgphoLMNYnCQd.pgp
Description: PGP signature


Re: Interesting for LyX: ShareLaTeX and github

2014-09-17 Thread Rainer M Krug
"Hugo Hinterberger" <hugo.hinterber...@gmx.net> writes:

> Hello,
>
>
> On Wed, 17 Sep 2014 11:14:51 +0200, Dr Eberhard Lisse
> <nos...@lisse.na> wrote:
>
>> Indeed, this sounds actually quite interesting, but I don't see how
>> that would work with LyX.

You can install LyX without LaTeX, but I don't know if this is the case
with a Mac - actually, it should work via e.g. homebrew.

>
> There could be a "sync(-push) LaTeX export" (to project sub-dir)
> feature in LyX, where LyX automatically exports the whole LaTeX source
> it generates for generating its output to a sub-directory of the LyX
> (master) document's location (when a LyX document is saved). The push
> part could do a git push when the sync-dir is updated.
>
> This could lead to a LaTeX-free LyX installation where compilation is
> done via Github and ShareLaTeX.

Yes - this would be great, and really open the possibility for using LyX
on other devices 

DREAM MODE ON:
LyX on a tablet should be possible!
DREAM MODE OFF

and on computers with only limited hdd space.

But I think the first step would be to have a proper git implementation
in LyX (which in itself would be very useful!).

And even without ShareLaTeX, it should be relatively straight forward to
setup a computer which pulls the github repo, compiles the pdf. 

Cheers,

Rainer


>
> Regards,
> Hugo
>
>

-- 
Rainer M. Krug
email: Rainerkrugsde
PGP: 0x0F52F982


pgpCwWHoLiUTV.pgp
Description: PGP signature


Re: How to insert footnote in bibliography

2014-08-10 Thread Rainer M Krug
William Seager sea...@utsc.utoronto.ca writes:

 This is an obvious question but I can't seem to find the
 answer.

 I am using bibtex to organize my references. For one
 entry in the list of references I want to add a footnote
 (which should appear at bottom of page where the
 reference appears).

 I mean, the reference should look something like this:

 Author (1999). blah, blah [footnote number here]

 Is this possible?

As the reference section is created in LaTeX and not in LyX, I ASSUME
that you have to use LaTeX directly in the reference - have you tried to
enter the footnote directly in the reference, i.e. \footnote{An example
footnote.} ?

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp7u1fFwyP8X.pgp
Description: PGP signature


Re: How to insert footnote in bibliography

2014-08-10 Thread Rainer M Krug
William Seager sea...@utsc.utoronto.ca writes:

 This is an obvious question but I can't seem to find the
 answer.

 I am using bibtex to organize my references. For one
 entry in the list of references I want to add a footnote
 (which should appear at bottom of page where the
 reference appears).

 I mean, the reference should look something like this:

 Author (1999). blah, blah [footnote number here]

 Is this possible?

As the reference section is created in LaTeX and not in LyX, I ASSUME
that you have to use LaTeX directly in the reference - have you tried to
enter the footnote directly in the reference, i.e. \footnote{An example
footnote.} ?

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp7u1fFwyP8X.pgp
Description: PGP signature


Re: How to insert footnote in bibliography

2014-08-10 Thread Rainer M Krug
William Seager <sea...@utsc.utoronto.ca> writes:

> This is an obvious question but I can't seem to find the
> answer.
>
> I am using bibtex to organize my references. For one
> entry in the list of references I want to add a footnote
> (which should appear at bottom of page where the
> reference appears).
>
> I mean, the reference should look something like this:
>
> Author (1999). blah, blah [footnote number here]
>
> Is this possible?

As the reference section is created in LaTeX and not in LyX, I ASSUME
that you have to use LaTeX directly in the reference - have you tried to
enter the footnote directly in the reference, i.e. \footnote{An example
footnote.} ?

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp7u1fFwyP8X.pgp
Description: PGP signature


Re: PythonGraphics with data file

2014-06-11 Thread Rainer M Krug
Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 If one wants to use a figure in PythonGraphics which needs an external
 data set, how is this achieved?
 Wolfgang

What lyx does, if configured as described earlier, is simply

1) running the Python (or whatever language) script (saved in a file with
the extension pygr and e.g. the name MyScript.pygr) to generate a graphic of a 
given format (lets assume
eps) with the name MyScript.eps
2) converts the MyScript.eps to .png for preview
3) converts the MyScript.eps to the format required by the output format
(e.g. .pdf for pdflatex)

The question how to use external datasets to generate the graphic is a
pure Python question and has nothing to do with LyX: if the Python script is
executed from the command line and generates a MyScript.eps graphic it
should work in LyX as well.

Cheers,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpqodTl49I3d.pgp
Description: PGP signature


Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Rainer M Krug


Envoyé de mon iPhone

 Le 11 juin 2014 à 16:07, Ross Reyes philip_...@yahoo.com a écrit :
 
 
 Hi Alex,
 
 I still get the error converting to loadable format message.
 
 I can run the python script from the command line and it does work.   I can
 and have modified the .pygr script to produce other outputs in .png, .jpg, 
 .ps, etc.
 without problem.
 
 But inside LyX, regardless of what I do to define the converter,  I can not 
 get the image
 to render nor can I produce a .pdf output from the LyX doc.
 
 Something is not right.   I am using LyX 2.0.1

The converters are defined in the configuration file LyX. If you could take a 
loom at it and post the lines where you file formats and the converters are 
defined, one could see if there is something wrong. I don't have LyX at hand, 
so I can't give you the location of the config file. 

Cheers,

Rainer

 
 Phil


Re: PythonGraphics with data file

2014-06-11 Thread Rainer M Krug
Wolfgang Engelmann engelm...@uni-tuebingen.de writes:

 If one wants to use a figure in PythonGraphics which needs an external
 data set, how is this achieved?
 Wolfgang

What lyx does, if configured as described earlier, is simply

1) running the Python (or whatever language) script (saved in a file with
the extension pygr and e.g. the name MyScript.pygr) to generate a graphic of a 
given format (lets assume
eps) with the name MyScript.eps
2) converts the MyScript.eps to .png for preview
3) converts the MyScript.eps to the format required by the output format
(e.g. .pdf for pdflatex)

The question how to use external datasets to generate the graphic is a
pure Python question and has nothing to do with LyX: if the Python script is
executed from the command line and generates a MyScript.eps graphic it
should work in LyX as well.

Cheers,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpqodTl49I3d.pgp
Description: PGP signature


Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Rainer M Krug


Envoyé de mon iPhone

 Le 11 juin 2014 à 16:07, Ross Reyes philip_...@yahoo.com a écrit :
 
 
 Hi Alex,
 
 I still get the error converting to loadable format message.
 
 I can run the python script from the command line and it does work.   I can
 and have modified the .pygr script to produce other outputs in .png, .jpg, 
 .ps, etc.
 without problem.
 
 But inside LyX, regardless of what I do to define the converter,  I can not 
 get the image
 to render nor can I produce a .pdf output from the LyX doc.
 
 Something is not right.   I am using LyX 2.0.1

The converters are defined in the configuration file LyX. If you could take a 
loom at it and post the lines where you file formats and the converters are 
defined, one could see if there is something wrong. I don't have LyX at hand, 
so I can't give you the location of the config file. 

Cheers,

Rainer

 
 Phil


Re: PythonGraphics with data file

2014-06-11 Thread Rainer M Krug
Wolfgang Engelmann <engelm...@uni-tuebingen.de> writes:

> If one wants to use a figure in PythonGraphics which needs an external
> data set, how is this achieved?
> Wolfgang

What lyx does, if configured as described earlier, is simply

1) running the Python (or whatever language) script (saved in a file with
the extension pygr and e.g. the name MyScript.pygr) to generate a graphic of a 
given format (lets assume
eps) with the name MyScript.eps
2) converts the MyScript.eps to .png for preview
3) converts the MyScript.eps to the format required by the output format
(e.g. .pdf for pdflatex)

The question how to use external datasets to generate the graphic is a
pure Python question and has nothing to do with LyX: if the Python script is
executed from the command line and generates a MyScript.eps graphic it
should work in LyX as well.

Cheers,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpqodTl49I3d.pgp
Description: PGP signature


Re: Python Graphics in LyX [was: Python bindings]

2014-06-11 Thread Rainer M Krug


Envoyé de mon iPhone

> Le 11 juin 2014 à 16:07, Ross Reyes  a écrit :
> 
> 
> Hi Alex,
> 
> I still get the "error converting to loadable format" message.
> 
> I can run the python script from the command line and it does work.   I can
> and have modified the .pygr script to produce other outputs in .png, .jpg, 
> .ps, etc.
> without problem.
> 
> But inside LyX, regardless of what I do to define the converter,  I can not 
> get the image
> to render nor can I produce a .pdf output from the LyX doc.
> 
> Something is not right.   I am using LyX 2.0.1

The converters are defined in the configuration file LyX. If you could take a 
loom at it and post the lines where you file formats and the converters are 
defined, one could see if there is something wrong. I don't have LyX at hand, 
so I can't give you the location of the config file. 

Cheers,

Rainer

> 
> Phil


Re: Python Graphics in LyX [was: Python bindings]

2014-06-10 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

 Dear Lyxers!

 Studying a little of python and LyX I have reached to this feature
 that makes LyX show and process python graphics. Thanks to Rainer M
 Krug for the hints. I share this contribution for LyX under LGPL
 license, so everyone benefits from it. Good luck and happy lyxing!

 Alex Vergara Gil
 MSc Nuclear Physics
 SSDL, CPHR, Havana Cuba

 PS: If Rainer agree, pass him from acknowledgements to author list, please.

That looks beautiful. AS I have no idea how python works, co-author
would probably better.

Thanks,

Rainer







-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgphSDFfXP5gr.pgp
Description: PGP signature


Re: Python Graphics in LyX [was: Python bindings]

2014-06-10 Thread Rainer M Krug
Murat Yildizoglu myi...@gmail.com writes:

 Thanks Alex,
 That opens new and nice perspectives.

 I have just thought about another possibility: Since the Sage software
 uses Python as a glue, it must be also possible to use the Sage module
 for LyX to make computations in Python in Sage and include the results
 in the final PDF file.  

There are numerous possibilities using converters like this - ranging
From simple scripts (one can also call R like this if one does not need
a single session and only wants to do simple graphs), to calling complex
simulations... whatever produces graphs. Actually not only graphs, also
text, e.g. tables generated should work with the correct export format?

Alex - I think it would be a good idea to add this to the LyX wiki.

Cheers,

Rainer



 That reminds me that I should check the Sage module for the last
 version of Lyx (have not had any time to look at it yet).

 Best regards,

 Murat

 Alex Vergara Gil a écrit :

 Dear Lyxers!
  
 Studying a little of python and LyX I have reached to this feature
 that makes LyX show and process python graphics. Thanks to Rainer
 M Krug for the hints. I share this contribution for LyX under LGPL
 license, so everyone benefits from it. Good luck and happy lyxing!
  
 Alex Vergara Gil
 MSc Nuclear Physics
 SSDL, CPHR, Havana Cuba
  
 PS: If Rainer agree, pass him from acknowledgements to author list, 
 please.

 --
 Universite' de Bordeaux CNRS

 Prof. Murat Yildizoglu

 GREThA (UMR CNRS 5113)
 UNIVERSITE DE BORDEAUX
 GREThA (UMR CNRS 5113)
 MURAT YILDIZOGLU
 16 AVENUE LEON DUGUIT
 CS 50057
 33608 PESSAC CEDEX
 FRANCE

 Bureau : E-331

 yildizoglu.info


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpBotkKNuSAc.pgp
Description: PGP signature


Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
Hi

In the thread Python Graphics in LyX it was shown nicely how other
programming languages can be used to include grahics generated by these
into a LyX Document. That made me thinking: How can I do the same for
text files generated by these external code blocks?

Obviously, this depends on the format of the text (ascii, LaTeX,
others?). What would be the workflow? Does the text has to be in a file
(I assume) or could it be redirected directly into LyX?

Somehow I have the feeling I am missing something trivial here...

Cheers,

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpVGQSRoC0nx.pgp
Description: PGP signature


Re: Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

   - Original Message - From: Rainer M Krug rai...@krugs.de Sent: 
 Tuesday, June 10, 2014 3:26 AM

   Hi

   In the thread Python Graphics in LyX it was shown nicely how other
   programming languages can be used to include grahics generated by these
   into a LyX Document. That made me thinking: How can I do the same for
   text files generated by these external code blocks?

   Obviously, this depends on the format of the text (ascii, LaTeX,
   others?). What would be the workflow? Does the text has to be in a file
   (I assume) or could it be redirected directly into LyX?

   Somehow I have the feeling I am missing something trivial here...

   Cheers,

   Rainer
 Indeed! It can be produced as well, just define a python normal text
 file format type (as pytxt) and in the converter just add from the
 pytxt format to simple text format as python $$i $$o
 in the python script you have to output everything to a text file using the 
 lines
 import sys
 outputfile = open(sys.argv[1])
 outputfile.write('testing')
 outputfile.close

 Voilá! it works with text too
 Moreover in the converter you can define a csv output format and
 python handles well with csv, so I give you the rod, now fish
 something ;)

As I said - I have missed something trivial.

Suggestion: could you add these cases to your document about graphs from
Python? Especially the csv might be very useful.

Cheers,

Rainer


 Cheers, Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpfDFEEurWzn.pgp
Description: PGP signature


Re: Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

   - Original Message - From: Rainer M Krug rai...@krugs.de Sent: 
 Tuesday, June 10, 2014 8:39 AM

   As I said - I have missed something trivial.

   Suggestion: could you add these cases to your document about graphs from
   Python? Especially the csv might be very useful.

   Cheers,

   Rainer
 I see, you have to insert them as external files, like they were child
 documents! LyX will try to open them and in the process they will be
 converted

But then it is inserted statically - this is not what I was thinking
about. I guess the approach to use would be to use the external
Material approach - but for this, one would have to define a new type. 

Or is there a way of dynamically linking a non-LyX or LaTeX file into a
LyX document, preferably with preview?

Cheers,

Rainer
 

 Alex


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpqznLyv_flf.pgp
Description: PGP signature


Re: Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

 Better than ever
 I've found that the pandas package in python handles with excel files
 and produces tables in csv too, so it can be used to read excel files
 as input, process a little and output csv tables which can be read by
 LyX as external documents (child)
 The panorama becomes interesting!

OK - spreadsheets work via the external documents. But have you found
a way of including normal txt files as verbatim? One could always use
good old ert
(e.g. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=verbfile)

But this would not provide preview.

Rainer


 Alex



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpcbPC3_TwLk.pgp
Description: PGP signature


Re: Python Graphics in LyX [was: Python bindings]

2014-06-10 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

 Dear Lyxers!

 Studying a little of python and LyX I have reached to this feature
 that makes LyX show and process python graphics. Thanks to Rainer M
 Krug for the hints. I share this contribution for LyX under LGPL
 license, so everyone benefits from it. Good luck and happy lyxing!

 Alex Vergara Gil
 MSc Nuclear Physics
 SSDL, CPHR, Havana Cuba

 PS: If Rainer agree, pass him from acknowledgements to author list, please.

That looks beautiful. AS I have no idea how python works, co-author
would probably better.

Thanks,

Rainer







-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgphSDFfXP5gr.pgp
Description: PGP signature


Re: Python Graphics in LyX [was: Python bindings]

2014-06-10 Thread Rainer M Krug
Murat Yildizoglu myi...@gmail.com writes:

 Thanks Alex,
 That opens new and nice perspectives.

 I have just thought about another possibility: Since the Sage software
 uses Python as a glue, it must be also possible to use the Sage module
 for LyX to make computations in Python in Sage and include the results
 in the final PDF file.  

There are numerous possibilities using converters like this - ranging
From simple scripts (one can also call R like this if one does not need
a single session and only wants to do simple graphs), to calling complex
simulations... whatever produces graphs. Actually not only graphs, also
text, e.g. tables generated should work with the correct export format?

Alex - I think it would be a good idea to add this to the LyX wiki.

Cheers,

Rainer



 That reminds me that I should check the Sage module for the last
 version of Lyx (have not had any time to look at it yet).

 Best regards,

 Murat

 Alex Vergara Gil a écrit :

 Dear Lyxers!
  
 Studying a little of python and LyX I have reached to this feature
 that makes LyX show and process python graphics. Thanks to Rainer
 M Krug for the hints. I share this contribution for LyX under LGPL
 license, so everyone benefits from it. Good luck and happy lyxing!
  
 Alex Vergara Gil
 MSc Nuclear Physics
 SSDL, CPHR, Havana Cuba
  
 PS: If Rainer agree, pass him from acknowledgements to author list, 
 please.

 --
 Universite' de Bordeaux CNRS

 Prof. Murat Yildizoglu

 GREThA (UMR CNRS 5113)
 UNIVERSITE DE BORDEAUX
 GREThA (UMR CNRS 5113)
 MURAT YILDIZOGLU
 16 AVENUE LEON DUGUIT
 CS 50057
 33608 PESSAC CEDEX
 FRANCE

 Bureau : E-331

 yildizoglu.info


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpBotkKNuSAc.pgp
Description: PGP signature


Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
Hi

In the thread Python Graphics in LyX it was shown nicely how other
programming languages can be used to include grahics generated by these
into a LyX Document. That made me thinking: How can I do the same for
text files generated by these external code blocks?

Obviously, this depends on the format of the text (ascii, LaTeX,
others?). What would be the workflow? Does the text has to be in a file
(I assume) or could it be redirected directly into LyX?

Somehow I have the feeling I am missing something trivial here...

Cheers,

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpVGQSRoC0nx.pgp
Description: PGP signature


Re: Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

   - Original Message - From: Rainer M Krug rai...@krugs.de Sent: 
 Tuesday, June 10, 2014 3:26 AM

   Hi

   In the thread Python Graphics in LyX it was shown nicely how other
   programming languages can be used to include grahics generated by these
   into a LyX Document. That made me thinking: How can I do the same for
   text files generated by these external code blocks?

   Obviously, this depends on the format of the text (ascii, LaTeX,
   others?). What would be the workflow? Does the text has to be in a file
   (I assume) or could it be redirected directly into LyX?

   Somehow I have the feeling I am missing something trivial here...

   Cheers,

   Rainer
 Indeed! It can be produced as well, just define a python normal text
 file format type (as pytxt) and in the converter just add from the
 pytxt format to simple text format as python $$i $$o
 in the python script you have to output everything to a text file using the 
 lines
 import sys
 outputfile = open(sys.argv[1])
 outputfile.write('testing')
 outputfile.close

 Voilá! it works with text too
 Moreover in the converter you can define a csv output format and
 python handles well with csv, so I give you the rod, now fish
 something ;)

As I said - I have missed something trivial.

Suggestion: could you add these cases to your document about graphs from
Python? Especially the csv might be very useful.

Cheers,

Rainer


 Cheers, Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpfDFEEurWzn.pgp
Description: PGP signature


Re: Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

   - Original Message - From: Rainer M Krug rai...@krugs.de Sent: 
 Tuesday, June 10, 2014 8:39 AM

   As I said - I have missed something trivial.

   Suggestion: could you add these cases to your document about graphs from
   Python? Especially the csv might be very useful.

   Cheers,

   Rainer
 I see, you have to insert them as external files, like they were child
 documents! LyX will try to open them and in the process they will be
 converted

But then it is inserted statically - this is not what I was thinking
about. I guess the approach to use would be to use the external
Material approach - but for this, one would have to define a new type. 

Or is there a way of dynamically linking a non-LyX or LaTeX file into a
LyX document, preferably with preview?

Cheers,

Rainer
 

 Alex


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpqznLyv_flf.pgp
Description: PGP signature


Re: Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

 Better than ever
 I've found that the pandas package in python handles with excel files
 and produces tables in csv too, so it can be used to read excel files
 as input, process a little and output csv tables which can be read by
 LyX as external documents (child)
 The panorama becomes interesting!

OK - spreadsheets work via the external documents. But have you found
a way of including normal txt files as verbatim? One could always use
good old ert
(e.g. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=verbfile)

But this would not provide preview.

Rainer


 Alex



-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpcbPC3_TwLk.pgp
Description: PGP signature


Re: Python Graphics in LyX [was: Python bindings]

2014-06-10 Thread Rainer M Krug
"Alex Vergara Gil" <a...@cphr.edu.cu> writes:

> Dear Lyxers!
>
> Studying a little of python and LyX I have reached to this feature
> that makes LyX show and process python graphics. Thanks to Rainer M
> Krug for the hints. I share this contribution for LyX under LGPL
> license, so everyone benefits from it. Good luck and happy lyxing!
>
> Alex Vergara Gil
> MSc Nuclear Physics
> SSDL, CPHR, Havana Cuba
>
> PS: If Rainer agree, pass him from acknowledgements to author list, please.

That looks beautiful. AS I have no idea how python works, co-author
would probably better.

Thanks,

Rainer


>
>
>
>

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgphSDFfXP5gr.pgp
Description: PGP signature


Re: Python Graphics in LyX [was: Python bindings]

2014-06-10 Thread Rainer M Krug
Murat Yildizoglu <myi...@gmail.com> writes:

> Thanks Alex,
> That opens new and nice perspectives.
>
> I have just thought about another possibility: Since the Sage software
> uses Python as a glue, it must be also possible to use the Sage module
> for LyX to make computations in Python in Sage and include the results
> in the final PDF file.  

There are numerous possibilities using converters like this - ranging
From simple scripts (one can also call R like this if one does not need
a single session and only wants to do simple graphs), to calling complex
simulations... whatever produces graphs. Actually not only graphs, also
text, e.g. tables generated should work with the correct export format?

Alex - I think it would be a good idea to add this to the LyX wiki.

Cheers,

Rainer



> That reminds me that I should check the Sage module for the last
> version of Lyx (have not had any time to look at it yet).
>
> Best regards,
>
> Murat
>
> Alex Vergara Gil a écrit :
>
> Dear Lyxers!
>  
> Studying a little of python and LyX I have reached to this feature
> that makes LyX show and process python graphics. Thanks to Rainer
> M Krug for the hints. I share this contribution for LyX under LGPL
> license, so everyone benefits from it. Good luck and happy lyxing!
>  
> Alex Vergara Gil
> MSc Nuclear Physics
> SSDL, CPHR, Havana Cuba
>  
> PS: If Rainer agree, pass him from acknowledgements to author list, 
> please.
>
> --
> Universite' de Bordeaux CNRS
>
> Prof. Murat Yildizoglu
>
> GREThA (UMR CNRS 5113)
> UNIVERSITE DE BORDEAUX
> GREThA (UMR CNRS 5113)
> MURAT YILDIZOGLU
> 16 AVENUE LEON DUGUIT
> CS 50057
> 33608 PESSAC CEDEX
> FRANCE
>
> Bureau : E-331
>
> yildizoglu.info
>

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpBotkKNuSAc.pgp
Description: PGP signature


Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
Hi

In the thread "Python Graphics in LyX" it was shown nicely how other
programming languages can be used to include grahics generated by these
into a LyX Document. That made me thinking: How can I do the same for
text files generated by these external code blocks?

Obviously, this depends on the format of the text (ascii, LaTeX,
others?). What would be the workflow? Does the text has to be in a file
(I assume) or could it be redirected directly into LyX?

Somehow I have the feeling I am missing something trivial here...

Cheers,

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpVGQSRoC0nx.pgp
Description: PGP signature


Re: Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
"Alex Vergara Gil" <a...@cphr.edu.cu> writes:

>   - Original Message ----- From: "Rainer M Krug" <rai...@krugs.de> Sent: 
> Tuesday, June 10, 2014 3:26 AM
>
>   Hi
>
>   In the thread "Python Graphics in LyX" it was shown nicely how other
>   programming languages can be used to include grahics generated by these
>   into a LyX Document. That made me thinking: How can I do the same for
>   text files generated by these external code blocks?
>
>   Obviously, this depends on the format of the text (ascii, LaTeX,
>   others?). What would be the workflow? Does the text has to be in a file
>   (I assume) or could it be redirected directly into LyX?
>
>   Somehow I have the feeling I am missing something trivial here...
>
>   Cheers,
>
>   Rainer
> Indeed! It can be produced as well, just define a python normal text
> file format type (as pytxt) and in the converter just add from the
> pytxt format to simple text format as python $$i $$o
> in the python script you have to output everything to a text file using the 
> lines
> import sys
> outputfile = open(sys.argv[1])
> outputfile.write('testing')
> outputfile.close
>
> Voilá! it works with text too
> Moreover in the converter you can define a csv output format and
> python handles well with csv, so I give you the rod, now fish
> something ;)

As I said - I have missed something trivial.

Suggestion: could you add these cases to your document about graphs from
Python? Especially the csv might be very useful.

Cheers,

Rainer

>
> Cheers, Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpfDFEEurWzn.pgp
Description: PGP signature


Re: Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
"Alex Vergara Gil" <a...@cphr.edu.cu> writes:

>   - Original Message ----- From: "Rainer M Krug" <rai...@krugs.de> Sent: 
> Tuesday, June 10, 2014 8:39 AM
>
>   As I said - I have missed something trivial.
>
>   Suggestion: could you add these cases to your document about graphs from
>   Python? Especially the csv might be very useful.
>
>   Cheers,
>
>   Rainer
> I see, you have to insert them as external files, like they were child
> documents! LyX will try to open them and in the process they will be
> converted

But then it is inserted statically - this is not what I was thinking
about. I guess the approach to use would be to use the "external
Material" approach - but for this, one would have to define a new type. 

Or is there a way of dynamically linking a non-LyX or LaTeX file into a
LyX document, preferably with preview?

Cheers,

Rainer
 
>
> Alex
>

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpqznLyv_flf.pgp
Description: PGP signature


Re: Inserting text (instead of graphics) from code into LyX?

2014-06-10 Thread Rainer M Krug
"Alex Vergara Gil" <a...@cphr.edu.cu> writes:

> Better than ever
> I've found that the pandas package in python handles with excel files
> and produces tables in csv too, so it can be used to read excel files
> as input, process a little and output csv tables which can be read by
> LyX as external documents (child)
> The panorama becomes interesting!

OK - spreadsheets work via the "external documents". But have you found
a way of including "normal" txt files as verbatim? One could always use
good old ert
(e.g. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=verbfile)

But this would not provide preview.

Rainer


> Alex
>
>

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpcbPC3_TwLk.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-06-02 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

 From: Richard Heck rgh...@lyx.org
 Sent: Thursday, May 29, 2014 5:05 PM
 I might be *completely* off, but couldn't you achieve exactly this via
 defining converters? I have for example a converter defined, which
 converts plantuml source fields into uml graphs, i.e. it defines the
 call to compile them and return the graphs which are then inserted in
 the document?
 
 Yes, that's more or less what I was suggesting.
 
 rh
 


I just add comments inline

 Let's see if I understand:

-1. You define a *file type* in LyX under 
  Preferences  File Handling  File Formats
for the file type .pygr in which Vector graphics format is ticked!

0. You define a converter under
  Preferences  File Handling  Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.

 1. I wrote a python script that produces the graphic I want

Exactly - and you give it a specific extension .pygr for python
script which generates a graphic which you defined above.

 2. I insert it in LyX somehow I don't know, perhaps defining a
 converter from .py to svg, but this needs to be inside a module or
 every python script in LyX will try to be converted into a svg!! So a
 module is also needed

Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.

 3. LyX is the one who knows the correct size of the graphic so in
 principle if I produce a svg should be enough but in this way I need
 to produce a new svg every time the data change

Correct - if the input data changes, you have to generate the graph again
manually, or, if the Converter file cache is disabled, you just have
to close the document and open it again. 

Hope this helps,

Rainer


 Take this simple script as example

 import numpy as np
 from numpy.random import randn
 import matplotlib as mpl
 import matplotlib.pyplot as plt
 np.random.seed(9221999)
 data = randn(75)
 plt.hist(data)

 which produce a graphic like this in spyder



 So basically I save this graphic to a svg and then I load it into LyX,
 but why not letting LyX doing this automatically if it already handles
 with python?? This is my question.

 Regards

 Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp86MxwTSdD2.pgp
Description: PGP signature


Cross-posting on devel and

2014-06-02 Thread Rainer M Krug
Hi

There is recently a lot of cross-posting happening on lyx-devel and
lyx-users which I think is a bit irritating and makes following
discussions difficult (luckily, and this includes myself, most
responders to cross-posted threads ignore that one should not cross-post
and discussions are complete on both lists...).

Nevertheless, I would like to know what the policy about cross-posting
is. If cross-posting is OK, the merging of the two mailing lists should
be considered, which might be a good idea in a relatively low traffic
mailing list? The other option would be to discourage cross-posting,
possibly even blocking mails to lyx-devel which are also posted to
lyx-users?

I am not a list administrator and I don't want to start a big
discussion, so if nobody else objects, the status quo can be kept,

Cheers,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp3ci4OxSMpK.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-06-02 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

 From: Richard Heck rgh...@lyx.org
 Sent: Thursday, May 29, 2014 5:05 PM
 I might be *completely* off, but couldn't you achieve exactly this via
 defining converters? I have for example a converter defined, which
 converts plantuml source fields into uml graphs, i.e. it defines the
 call to compile them and return the graphs which are then inserted in
 the document?
 
 Yes, that's more or less what I was suggesting.
 
 rh
 


I just add comments inline

 Let's see if I understand:

-1. You define a *file type* in LyX under 
  Preferences  File Handling  File Formats
for the file type .pygr in which Vector graphics format is ticked!

0. You define a converter under
  Preferences  File Handling  Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.

 1. I wrote a python script that produces the graphic I want

Exactly - and you give it a specific extension .pygr for python
script which generates a graphic which you defined above.

 2. I insert it in LyX somehow I don't know, perhaps defining a
 converter from .py to svg, but this needs to be inside a module or
 every python script in LyX will try to be converted into a svg!! So a
 module is also needed

Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.

 3. LyX is the one who knows the correct size of the graphic so in
 principle if I produce a svg should be enough but in this way I need
 to produce a new svg every time the data change

Correct - if the input data changes, you have to generate the graph again
manually, or, if the Converter file cache is disabled, you just have
to close the document and open it again. 

Hope this helps,

Rainer


 Take this simple script as example

 import numpy as np
 from numpy.random import randn
 import matplotlib as mpl
 import matplotlib.pyplot as plt
 np.random.seed(9221999)
 data = randn(75)
 plt.hist(data)

 which produce a graphic like this in spyder



 So basically I save this graphic to a svg and then I load it into LyX,
 but why not letting LyX doing this automatically if it already handles
 with python?? This is my question.

 Regards

 Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp86MxwTSdD2.pgp
Description: PGP signature


Cross-posting on devel and

2014-06-02 Thread Rainer M Krug
Hi

There is recently a lot of cross-posting happening on lyx-devel and
lyx-users which I think is a bit irritating and makes following
discussions difficult (luckily, and this includes myself, most
responders to cross-posted threads ignore that one should not cross-post
and discussions are complete on both lists...).

Nevertheless, I would like to know what the policy about cross-posting
is. If cross-posting is OK, the merging of the two mailing lists should
be considered, which might be a good idea in a relatively low traffic
mailing list? The other option would be to discourage cross-posting,
possibly even blocking mails to lyx-devel which are also posted to
lyx-users?

I am not a list administrator and I don't want to start a big
discussion, so if nobody else objects, the status quo can be kept,

Cheers,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp3ci4OxSMpK.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-06-02 Thread Rainer M Krug
"Alex Vergara Gil" <a...@cphr.edu.cu> writes:

> From: "Richard Heck" <rgh...@lyx.org>
> Sent: Thursday, May 29, 2014 5:05 PM
>>> I might be *completely* off, but couldn't you achieve exactly this via
>>> defining converters? I have for example a converter defined, which
>>> "converts" plantuml source fields into uml graphs, i.e. it defines the
>>> call to compile them and return the graphs which are then inserted in
>>> the document?
>> 
>> Yes, that's more or less what I was suggesting.
>> 
>> rh
>> 
>

I just add comments inline

> Let's see if I understand:

-1. You define a *file type* in LyX under 
  Preferences > File Handling > File Formats
for the file type .pygr in which "Vector graphics format" is ticked!

0. You define a converter under
  Preferences > File Handling > Converters
which calls a script which executed files with the extension .pygr and
generates, as you suggest below, an svg.

> 1. I wrote a python script that produces the graphic I want

Exactly - and you give it a specific extension .pygr for "python
script which generates a graphic" which you defined above.

> 2. I insert it in LyX somehow I don't know, perhaps defining a
> converter from .py to svg, but this needs to be inside a module or
> every python script in LyX will try to be converted into a svg!! So a
> module is also needed

Use insert graphic and select *your .pygr* file as graphic - and Lyx
will do the rest of the conversion - i.e. use your converter to convert
the .pygr to an svg and other existing converters to generate the png
for the preview and the pdf / eps / ... for the final copmpilation of
the document.

> 3. LyX is the one who knows the correct size of the graphic so in
> principle if I produce a svg should be enough but in this way I need
> to produce a new svg every time the data change

Correct - if the input data changes, you have to generate the graph again
manually, or, if the "Converter file cache" is disabled, you just have
to close the document and open it again. 

Hope this helps,

Rainer

>
> Take this simple script as example
>
> import numpy as np
> from numpy.random import randn
> import matplotlib as mpl
> import matplotlib.pyplot as plt
> np.random.seed(9221999)
> data = randn(75)
> plt.hist(data)
>
> which produce a graphic like this in spyder
>
>
>
> So basically I save this graphic to a svg and then I load it into LyX,
> but why not letting LyX doing this automatically if it already handles
> with python?? This is my question.
>
> Regards
>
> Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp86MxwTSdD2.pgp
Description: PGP signature


Cross-posting on devel and

2014-06-02 Thread Rainer M Krug
Hi

There is recently a lot of cross-posting happening on lyx-devel and
lyx-users which I think is a bit irritating and makes following
discussions difficult (luckily, and this includes myself, most
responders to cross-posted threads ignore that one should not cross-post
and discussions are complete on both lists...).

Nevertheless, I would like to know what the policy about cross-posting
is. If cross-posting is OK, the merging of the two mailing lists should
be considered, which might be a good idea in a relatively low traffic
mailing list? The other option would be to discourage cross-posting,
possibly even blocking mails to lyx-devel which are also posted to
lyx-users?

I am not a list administrator and I don't want to start a big
discussion, so if nobody else objects, the status quo can be kept,

Cheers,

Rainer


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgp3ci4OxSMpK.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-05-29 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

   From: Richard Heck 
   Sent: Thursday, May 29, 2014 3:26 PM


   On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

 Hello Lyxers

 I wonder why LyX is not available to process little pieces of
 python code within its own framework, like ipython notebook for
 instance??


 This feature allows us to have beautiful graphics such the one
 produced by matplotlib package. I know there already exists a
 similar binding for R through knitr module, so why not a binding
 for python too??

 Is there a way, like modules or whatever, to achieve the same
 functionality or at least some basic functionality of ipython notebook
 within LyX??  Can you be more precise about what you want to do? I've
 never heard of ipython notebook.  sudo aptitude install
 ipython-notebook ipython notebook

 and there you can write even thesis in a web environment with python
 commands being executed inlined, exporting to pdf and latex too, it is
 a wonder of our times, so why not letting LyX do this miracle too??

   Sweave works by our having an output format (sweave) for such
   documents and then our declaring Rscript as a sweave -- LaTeX
   converter, so PDF export (say) goes via Rscript and
   pdflatex. There's a special script in lib/scripts/ that sets up
   some things for LyX first, or so it claims. It would be reasonably
   easy to do the same sort of thing for Python, if you wanted to do
   so. You'd just need to set up an appropriate format and then declare
   an appropriate script as a whatever - latex converter. Then LyX
   will run the script and do as you wish with the embedded python
   code.

   Of course, as we've discussed on the list with respect to R, there are 
 large security issues here, too.

   Richard you obviously miss the point here, or I was not very clear!
 it is not a different format, is a facility to have python scripts
 running within LyX framework, you have to see ipython notebook to
 understand what I mean, you will be surprised!!  Basically to build
 graphs, for instance (and only a piece of what can be done), you add
 the (let's call it) knitpy module and then place a knitpy insert,
 write some python code that produces a matplotlib graphic and then
 when lyx compiles the document, instead of the code it is shown the
 graph, it also can be done in the lyx editing window, but thats a more
 dificult request.

I might be *completely* off, but couldn't you achieve exactly this via
defining converters? I have for example a converter defined, which
converts plantuml source fields into uml graphs, i.e. it defines the
call to compile them and return the graphs which are then inserted in
the document?

I have never used python, but I guess a similar approach should be
possible here as well?

Cheers,

Rainer



 Regards
 Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpNzrUAU7G2A.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-05-29 Thread Rainer M Krug
Alex Vergara Gil a...@cphr.edu.cu writes:

   From: Richard Heck 
   Sent: Thursday, May 29, 2014 3:26 PM


   On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:

 Hello Lyxers

 I wonder why LyX is not available to process little pieces of
 python code within its own framework, like ipython notebook for
 instance??


 This feature allows us to have beautiful graphics such the one
 produced by matplotlib package. I know there already exists a
 similar binding for R through knitr module, so why not a binding
 for python too??

 Is there a way, like modules or whatever, to achieve the same
 functionality or at least some basic functionality of ipython notebook
 within LyX??  Can you be more precise about what you want to do? I've
 never heard of ipython notebook.  sudo aptitude install
 ipython-notebook ipython notebook

 and there you can write even thesis in a web environment with python
 commands being executed inlined, exporting to pdf and latex too, it is
 a wonder of our times, so why not letting LyX do this miracle too??

   Sweave works by our having an output format (sweave) for such
   documents and then our declaring Rscript as a sweave -- LaTeX
   converter, so PDF export (say) goes via Rscript and
   pdflatex. There's a special script in lib/scripts/ that sets up
   some things for LyX first, or so it claims. It would be reasonably
   easy to do the same sort of thing for Python, if you wanted to do
   so. You'd just need to set up an appropriate format and then declare
   an appropriate script as a whatever - latex converter. Then LyX
   will run the script and do as you wish with the embedded python
   code.

   Of course, as we've discussed on the list with respect to R, there are 
 large security issues here, too.

   Richard you obviously miss the point here, or I was not very clear!
 it is not a different format, is a facility to have python scripts
 running within LyX framework, you have to see ipython notebook to
 understand what I mean, you will be surprised!!  Basically to build
 graphs, for instance (and only a piece of what can be done), you add
 the (let's call it) knitpy module and then place a knitpy insert,
 write some python code that produces a matplotlib graphic and then
 when lyx compiles the document, instead of the code it is shown the
 graph, it also can be done in the lyx editing window, but thats a more
 dificult request.

I might be *completely* off, but couldn't you achieve exactly this via
defining converters? I have for example a converter defined, which
converts plantuml source fields into uml graphs, i.e. it defines the
call to compile them and return the graphs which are then inserted in
the document?

I have never used python, but I guess a similar approach should be
possible here as well?

Cheers,

Rainer



 Regards
 Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpNzrUAU7G2A.pgp
Description: PGP signature


Re: [Feature Request] python binding

2014-05-29 Thread Rainer M Krug
"Alex Vergara Gil" <a...@cphr.edu.cu> writes:

>   From: Richard Heck 
>   Sent: Thursday, May 29, 2014 3:26 PM
>
>
>   On 05/29/2014 03:36 PM, Alex Vergara Gil wrote:
>
> Hello Lyxers
>
> I wonder why LyX is not available to process little pieces of
> python code within its own framework, like ipython notebook for
> instance??
>
>
> This feature allows us to have beautiful graphics such the one
> produced by matplotlib package. I know there already exists a
> similar binding for R through knitr module, so why not a binding
> for python too??
>
> Is there a way, like modules or whatever, to achieve the same
> functionality or at least some basic functionality of ipython notebook
> within LyX??  Can you be more precise about what you want to do? I've
> never heard of ipython notebook.  sudo aptitude install
> ipython-notebook ipython notebook
>
> and there you can write even thesis in a web environment with python
> commands being executed inlined, exporting to pdf and latex too, it is
> a wonder of our times, so why not letting LyX do this miracle too??
>
>   Sweave works by our having an output format (sweave) for such
>   documents and then our declaring Rscript as a sweave --> LaTeX
>   converter, so PDF export (say) goes via Rscript and
>   pdflatex. There's a special script in lib/scripts/ that "sets up
>   some things for LyX" first, or so it claims. It would be reasonably
>   easy to do the same sort of thing for Python, if you wanted to do
>   so. You'd just need to set up an appropriate format and then declare
>   an appropriate script as a whatever -> latex converter. Then LyX
>   will run the script and do as you wish with the embedded python
>   code.
>
>   Of course, as we've discussed on the list with respect to R, there are 
> large security issues here, too.
>
>   Richard you obviously miss the point here, or I was not very clear!
> it is not a different format, is a facility to have python scripts
> running within LyX framework, you have to see ipython notebook to
> understand what I mean, you will be surprised!!  Basically to build
> graphs, for instance (and only a piece of what can be done), you add
> the (let's call it) "knitpy" module and then place a knitpy insert,
> write some python code that produces a matplotlib graphic and then
> when lyx compiles the document, instead of the code it is shown the
> graph, it also can be done in the lyx editing window, but thats a more
> dificult request.

I might be *completely* off, but couldn't you achieve exactly this via
defining converters? I have for example a converter defined, which
"converts" plantuml source fields into uml graphs, i.e. it defines the
call to compile them and return the graphs which are then inserted in
the document?

I have never used python, but I guess a similar approach should be
possible here as well?

Cheers,

Rainer


>
> Regards
> Alex

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpNzrUAU7G2A.pgp
Description: PGP signature


Re: converting from LyX 2.0 to 2.1

2014-05-02 Thread Rainer M Krug
Hugh Medal hugh.me...@msstate.edu writes:

 Thank you.

 I have attached an example file (I am not able to get any of my other files
 to open either). I can't remember what version the file is from. It is
 likely the version immediately before 2.1.0 because I created the file
 within the last month.

 I am running a 64-bit Fedora operating system and I am using the LyX
 version that comes in the repository.

Mac OSX Maverick, all updates, LyX 2.1.0, the file opens and compiles
without problems.

Rainer



 On Fri, May 2, 2014 at 3:58 AM, Jürgen Spitzmüller sp...@lyx.org wrote:

 2014-05-01 22:02 GMT+02:00 Hugh Medal:

 I am getting this error when I try to open a LYX file created in version
 2.0
 in version 2.1.

 ... is from an older version of LyX and the lyx2lyx script failed to
 convert
 it.

 Can you help?


 We can help, if you can provide us with that file.

 Jürgen


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpTdrjAHyXFi.pgp
Description: PGP signature


Re: converting from LyX 2.0 to 2.1

2014-05-02 Thread Rainer M Krug
Hugh Medal hugh.me...@msstate.edu writes:

 Thank you.

 I have attached an example file (I am not able to get any of my other files
 to open either). I can't remember what version the file is from. It is
 likely the version immediately before 2.1.0 because I created the file
 within the last month.

 I am running a 64-bit Fedora operating system and I am using the LyX
 version that comes in the repository.

Mac OSX Maverick, all updates, LyX 2.1.0, the file opens and compiles
without problems.

Rainer



 On Fri, May 2, 2014 at 3:58 AM, Jürgen Spitzmüller sp...@lyx.org wrote:

 2014-05-01 22:02 GMT+02:00 Hugh Medal:

 I am getting this error when I try to open a LYX file created in version
 2.0
 in version 2.1.

 ... is from an older version of LyX and the lyx2lyx script failed to
 convert
 it.

 Can you help?


 We can help, if you can provide us with that file.

 Jürgen


-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :   +33 - (0)9 53 10 27 44
Cell:   +33 - (0)6 85 62 59 98
Fax :   +33 - (0)9 58 10 27 44

Fax (D):+49 - (0)3 21 21 25 22 44

email:  rai...@krugs.de

Skype:  RMkrug

PGP: 0x0F52F982


pgpTdrjAHyXFi.pgp
Description: PGP signature


  1   2   3   4   5   6   7   8   9   10   >