Windows 10

2015-08-30 Thread aparsloe
I've just upgraded (if that's the word) to Windows 10. This is to report 
that at first impression LyX 2.1.4 seems to work as expected. I haven't 
done any really serious work with LyX and Windows 10 yet, but at least 
it functions at a basic level with the new operating system.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Windows 10

2015-08-30 Thread aparsloe
I've just upgraded (if that's the word) to Windows 10. This is to report 
that at first impression LyX 2.1.4 seems to work as expected. I haven't 
done any really serious work with LyX and Windows 10 yet, but at least 
it functions at a basic level with the new operating system.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Pstricks problem

2015-08-22 Thread aparsloe



On 22/08/2015 2:21 p.m., Mark wrote:


Pstricks problem

A file that includes a simple drawing using
pstricks worked perfectly with 2.1.3, but now
after updating to 2.1.4 it does not work. Trying
to get a pdf results in error messages.

There is

\usepackage{pstricks}
\usepackage{pst-plot}

in the preamble.

Any suggestions?

Mark
I suspect this may have something (or everything) to do with the fact 
that Postscript has vanished from View other formats list (either 
Document  View (Other Formats) or a sustained click on the View other 
formats button). Is this intended, or is it an oversight?


A document with PSTricks material in it does compile by the PDF (ps2pdf) 
route.


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Pstricks problem

2015-08-22 Thread aparsloe



On 22/08/2015 2:21 p.m., Mark wrote:


Pstricks problem

A file that includes a simple drawing using
pstricks worked perfectly with 2.1.3, but now
after updating to 2.1.4 it does not work. Trying
to get a pdf results in error messages.

There is

\usepackage{pstricks}
\usepackage{pst-plot}

in the preamble.

Any suggestions?

Mark
I suspect this may have something (or everything) to do with the fact 
that Postscript has vanished from View other formats list (either 
Document > View (Other Formats) or a sustained click on the View other 
formats button). Is this intended, or is it an oversight?


A document with PSTricks material in it does compile by the PDF (ps2pdf) 
route.


Andrew


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Keyboard macros: disabled commands and autocomplete

2015-07-30 Thread aparsloe

On 30/07/2015 4:51 a.m., David Rörich wrote:

I have two questions concerning keyboard macros / commands:

1) I'd like to bind a shortkey to the following command sequence:

command-sequence buffer-write; master-buffer-update;

i.e. save the current document, then update the preview of the master
document. In principle, this works. However, if the document is already
saved, the buffer-write command is disabled and consequently the
second command is not executed, neither. Is it possible to enforce
execution of the second command?

Thanks a lot.

David
A hackish way is to insert and then delete a space character, to 'dirty' 
the document, which should enable the buffer-write:


command-sequence space-insert normal; char-delete-backward; buffer-write; 
master-buffer-update;

but I suspect  buffer-write; master-buffer-update is incompatible with 
command-sequence as it presently exists. As I understand it, the 
buffer-write operation is a threaded process and so the 
master-buffer-update command will be started generally before the 
buffer-write is complete so that the overall effect won't be what you 
want. (I'm ignorant of LyX internals but I've tried command sequences 
involving saving/exporting operations before and this is what happens. 
See bug #8346.)


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: Keyboard macros: disabled commands and autocomplete

2015-07-30 Thread aparsloe

On 30/07/2015 4:51 a.m., David Rörich wrote:

I have two questions concerning keyboard macros / commands:

1) I'd like to bind a shortkey to the following command sequence:

command-sequence buffer-write; master-buffer-update;

i.e. save the current document, then update the preview of the master
document. In principle, this works. However, if the document is already
saved, the "buffer-write" command is disabled and consequently the
second command is not executed, neither. Is it possible to enforce
execution of the second command?

Thanks a lot.

David
A hackish way is to insert and then delete a space character, to 'dirty' 
the document, which should enable the buffer-write:


command-sequence space-insert normal; char-delete-backward; buffer-write; 
master-buffer-update;

but I suspect  "buffer-write; master-buffer-update" is incompatible with 
"command-sequence" as it presently exists. As I understand it, the 
buffer-write operation is a threaded process and so the 
master-buffer-update command will be started generally before the 
buffer-write is complete so that the overall effect won't be what you 
want. (I'm ignorant of LyX internals but I've tried command sequences 
involving saving/exporting operations before and this is what happens. 
See bug #8346.)


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: A new script for processing LyX files - removes duplicate labels

2015-07-29 Thread aparsloe

On 28/07/2015 11:02 p.m., Liviu Andronic wrote:

On Wed, Jul 29, 2015 at 12:02 AM, Victor Porton por...@narod.ru wrote:

I've written a Python script which removes duplicate labels from .lyx files.


I suspect that this might fit perfectly with the pLyX framework:
http://wiki.lyx.org/Examples/PLyXSystem

May be worth contributing it there.

Regards,
Liviu

As the author of the pLyX system, I confess I have been thinking of 
removing it from the wiki. The implementation as it stands is flawed and 
my thoughts over the last 18 months have been on other projects. I can't 
recommend adding to the system as it currently stands.


The idea was to run python scripts on .lyx files by harnessing LyX's 
converter mechanism, using a master script to call the secondary ones 
(like Victor's script) which do the actual work, and allowing everything 
to be done from within LyX, as if it were built-in. It's clear from 
Victor's code that he has a much better grasp of python programming than 
me.  If he would like to discuss the matter further I would be happy to 
do so.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: A new script for processing LyX files - removes duplicate labels

2015-07-29 Thread aparsloe

On 28/07/2015 11:02 p.m., Liviu Andronic wrote:

On Wed, Jul 29, 2015 at 12:02 AM, Victor Porton  wrote:

I've written a Python script which removes duplicate labels from .lyx files.


I suspect that this might fit perfectly with the pLyX framework:
http://wiki.lyx.org/Examples/PLyXSystem

May be worth contributing it there.

Regards,
Liviu

As the author of the pLyX system, I confess I have been thinking of 
removing it from the wiki. The implementation as it stands is flawed and 
my thoughts over the last 18 months have been on other projects. I can't 
recommend adding to the system as it currently stands.


The idea was to run python scripts on .lyx files by harnessing LyX's 
converter mechanism, using a master script to call the secondary ones 
(like Victor's script) which do the actual work, and allowing everything 
to be done from within LyX, as if it were built-in. It's clear from 
Victor's code that he has a much better grasp of python programming than 
me.  If he would like to discuss the matter further I would be happy to 
do so.


Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



Re: degrees Celsius in Lyx

2015-06-26 Thread aparsloe



On 26/06/2015 8:07 p.m., Wolfgang Engelmann wrote:

This is the correct latex way for 100 degrees Celsius, I believe:
 100\,^{\circ}\mathrm{C}
\,  is for a certain distance between 100 and ^0
Is there a shortcut in lyx for achieving it?
Under
Symbolscharacter-like symbols
I find
^{\circ}\mathrm{C}
but do I have to enter \,  in tex
or is half distance under formation the correct one?
(sorry, the English expressions are probably different)

The best solution would be to have an all over replacement of my

100\textcelsius
by

100\,^{\circ}\mathrm{C}
Possible in Lyx (advanced search and replace)?


Wolfgang

Ctrl+Shift+Space gives \, on my system (but check in the Source Pane).

Andrew


Re: degrees Celsius in Lyx

2015-06-26 Thread aparsloe



On 26/06/2015 8:07 p.m., Wolfgang Engelmann wrote:

This is the correct latex way for 100 degrees Celsius, I believe:
 100\,^{\circ}\mathrm{C}
\,  is for a certain distance between 100 and ^0
Is there a shortcut in lyx for achieving it?
Under
Symbolscharacter-like symbols
I find
^{\circ}\mathrm{C}
but do I have to enter \,  in tex
or is half distance under formation the correct one?
(sorry, the English expressions are probably different)

The best solution would be to have an all over replacement of my

100\textcelsius
by

100\,^{\circ}\mathrm{C}
Possible in Lyx (advanced search and replace)?


Wolfgang

Ctrl+Shift+Space gives \, on my system (but check in the Source Pane).

Andrew


Re: degrees Celsius in Lyx

2015-06-26 Thread aparsloe



On 26/06/2015 8:07 p.m., Wolfgang Engelmann wrote:

This is the correct latex way for 100 degrees Celsius, I believe:
 100\,^{\circ}\mathrm{C}
\,  is for a certain distance between 100 and ^0
Is there a shortcut in lyx for achieving it?
Under
Symbols>character-like symbols>
I find
^{\circ}\mathrm{C}
but do I have to enter \,  in tex
or is "half distance" under formation the correct one?
(sorry, the English expressions are probably different)

The best solution would be to have an all over replacement of my

100\textcelsius
by

100\,^{\circ}\mathrm{C}
Possible in Lyx (advanced search and replace)?


Wolfgang

Ctrl+Shift+Space gives \, on my system (but check in the Source Pane).

Andrew


Re: My ongoing cedilla problem

2015-06-16 Thread aparsloe



On 16/06/2015 11:41 p.m., Daniel CLEMENT wrote:

Dear list members,

There's one small issue I've never been able to get fixed (since v. 1.4
I believe).

Though I write in French, I prefer to use a US-intl keyboard (for easy
access to various brackets), typing accents with dead keys.

Trouble is, LyX keeps translating  'c  into an accented c, unlike
any other app (which gives a cedilla c, the expected behavior).

I carefully reviewed section 4.2 of the Customization manual, but though
I understand it's about tweaking the .kmap file, I'm a little
overwhelmed by the number of possibilities.

Should I use \kmod or \kxmod? acute or ' ? cC or c and C on separate
lines? In fact I get the impression that my .kmap file has no effect,
regardless of what I put into it.

TIA for any input. Best regards,
I find ,c (comma c, rather than apostrophe c) gives a cedilla c 
using european as the primary keyboard map under 
ToolsPreferencesEditingKeyboard/Mouse.


Andrew


Re: My ongoing cedilla problem

2015-06-16 Thread aparsloe



On 16/06/2015 11:41 p.m., Daniel CLEMENT wrote:

Dear list members,

There's one small issue I've never been able to get fixed (since v. 1.4
I believe).

Though I write in French, I prefer to use a US-intl keyboard (for easy
access to various brackets), typing accents with dead keys.

Trouble is, LyX keeps translating  'c  into an accented c, unlike
any other app (which gives a cedilla c, the expected behavior).

I carefully reviewed section 4.2 of the Customization manual, but though
I understand it's about tweaking the .kmap file, I'm a little
overwhelmed by the number of possibilities.

Should I use \kmod or \kxmod? acute or ' ? cC or c and C on separate
lines? In fact I get the impression that my .kmap file has no effect,
regardless of what I put into it.

TIA for any input. Best regards,
I find ,c (comma c, rather than apostrophe c) gives a cedilla c 
using european as the primary keyboard map under 
ToolsPreferencesEditingKeyboard/Mouse.


Andrew


Re: My ongoing cedilla problem

2015-06-16 Thread aparsloe



On 16/06/2015 11:41 p.m., Daniel CLEMENT wrote:

Dear list members,

There's one small issue I've never been able to get fixed (since v. 1.4
I believe).

Though I write in French, I prefer to use a US-intl keyboard (for easy
access to various brackets), typing accents with dead keys.

Trouble is, LyX keeps translating " 'c " into an accented "c", unlike
any other app (which gives a cedilla "c", the expected behavior).

I carefully reviewed section 4.2 of the Customization manual, but though
I understand it's about tweaking the .kmap file, I'm a little
overwhelmed by the number of possibilities.

Should I use \kmod or \kxmod? acute or ' ? cC or c and C on separate
lines? In fact I get the impression that my .kmap file has no effect,
regardless of what I put into it.

TIA for any input. Best regards,
I find ",c" (comma c, rather than apostrophe c) gives a cedilla "c" 
using "european" as the primary keyboard map under 
Tools>Preferences>Editing>Keyboard/Mouse.


Andrew


Re: em dash doesn't display

2015-04-18 Thread aparsloe

On 19/04/2015 5:50 a.m., Richard Opheim wrote:
In LyX 2.1.3 (on Windows 8.1), I found producing an em dash in my ms 
to be difficult , and was not able to find any mention of it on the 
users' list.
I produced an em dash in two ways: one, by typing three hyphens, and 
two, by selecting insert-special character-symbols-[category] general 
punctuation-and then choosing the symbol in the seventh space (em 
dash. Actually, both symbols 7 and 8 [counting from the left] appear 
to be identical em dashes.) However, the em dash in the 7th space, as 
well as the em dash that was supposed to be displayed by typing three 
hyphens, didn't display in Document-view pdf latex (though they did 
display in HTML and DVI). Instead, I found that the adjacent em dash 
in the 8th space from the left did display in pdf-latex.
There seem to be two versions each of the hyphen, en dash, and em 
dash. Presumably, one is for pdf-latex and the other is for other formats?


Richard Opheim
I found some years ago that whether an em or en dash  was visible in 
Adobe Reader, which was the pdf viewer I used at that time, depended on 
the font. In the default font it wasn't visible unless the zoom level 
was set awkwardly high, but when the font was set to e.g. Latin Modern 
Roman it was visible at normal zoom levels.


Andrew


Re: em dash doesn't display

2015-04-18 Thread aparsloe

On 19/04/2015 5:50 a.m., Richard Opheim wrote:
In LyX 2.1.3 (on Windows 8.1), I found producing an em dash in my ms 
to be difficult , and was not able to find any mention of it on the 
users' list.
I produced an em dash in two ways: one, by typing three hyphens, and 
two, by selecting insert-special character-symbols-[category] general 
punctuation-and then choosing the symbol in the seventh space (em 
dash. Actually, both symbols 7 and 8 [counting from the left] appear 
to be identical em dashes.) However, the em dash in the 7th space, as 
well as the em dash that was supposed to be displayed by typing three 
hyphens, didn't display in Document-view pdf latex (though they did 
display in HTML and DVI). Instead, I found that the adjacent em dash 
in the 8th space from the left did display in pdf-latex.
There seem to be two versions each of the hyphen, en dash, and em 
dash. Presumably, one is for pdf-latex and the other is for other formats?


Richard Opheim
I found some years ago that whether an em or en dash  was visible in 
Adobe Reader, which was the pdf viewer I used at that time, depended on 
the font. In the default font it wasn't visible unless the zoom level 
was set awkwardly high, but when the font was set to e.g. Latin Modern 
Roman it was visible at normal zoom levels.


Andrew


Re: em dash doesn't display

2015-04-18 Thread aparsloe

On 19/04/2015 5:50 a.m., Richard Opheim wrote:
In LyX 2.1.3 (on Windows 8.1), I found producing an em dash in my ms 
to be difficult , and was not able to find any mention of it on the 
users' list.
I produced an em dash in two ways: one, by typing three hyphens, and 
two, by selecting "insert-special character-symbols-[category] general 
punctuation-and then choosing the symbol in the seventh space (em 
dash. Actually, both symbols 7 and 8 [counting from the left] appear 
to be identical em dashes.) However, the em dash in the 7th space, as 
well as the em dash that was supposed to be displayed by typing three 
hyphens, didn't display in Document-view pdf latex (though they did 
display in HTML and DVI). Instead, I found that the adjacent em dash 
in the 8th space from the left did display in pdf-latex.
There seem to be two "versions" each of the hyphen, en dash, and em 
dash. Presumably, one is for pdf-latex and the other is for other formats?


Richard Opheim
I found some years ago that whether an em or en dash  was visible in 
Adobe Reader, which was the pdf viewer I used at that time, depended on 
the font. In the default font it wasn't visible unless the zoom level 
was set awkwardly high, but when the font was set to e.g. Latin Modern 
Roman it was visible at normal zoom levels.


Andrew


Re: list of fonts

2015-04-17 Thread aparsloe



On 18/04/2015 8:45 a.m., Langer, Tino wrote:

Hi Scott,

many thanks! - You are right! - jopefully someone has an idea.

All the best! - Tino

Am 17.04.2015 um 22:41 schrieb Scott Kostyshak:
On Fri, Apr 17, 2015 at 4:18 PM, Langer, Tino tino.lan...@gmx.net 
wrote:

Hi Scott.

yes I did. After some additional search I'm not sure the way I 
installed the

font was the right one. I followed this hints:

http://tex.stackexchange.com/questions/95452/how-to-install-a-font-in-windows 



But I also found an very old package 'frutiger' - but this one I can 
not
install using the miketex package manager :-( Do you have some hints 
how to
get it working? Using my current way the footnotes, headlines, page 
numbers

don't use the frutiger font :-(

Many thanks! - Tino

Hi Tino,

I am only familiar with Ubuntu, where all the fonts I install seem to
show up without issue. Hopefully someone else has an idea.

Best,

Scott


I've never installed a font, but I do use MiKTeX. Have you refreshed the 
MiKTeX filename database? MiKTeX  Settings (which I always run as 
administrator) then click the Refresh FNDB button.


Andrew


Re: list of fonts

2015-04-17 Thread aparsloe



On 18/04/2015 8:45 a.m., Langer, Tino wrote:

Hi Scott,

many thanks! - You are right! - jopefully someone has an idea.

All the best! - Tino

Am 17.04.2015 um 22:41 schrieb Scott Kostyshak:
On Fri, Apr 17, 2015 at 4:18 PM, Langer, Tino tino.lan...@gmx.net 
wrote:

Hi Scott.

yes I did. After some additional search I'm not sure the way I 
installed the

font was the right one. I followed this hints:

http://tex.stackexchange.com/questions/95452/how-to-install-a-font-in-windows 



But I also found an very old package 'frutiger' - but this one I can 
not
install using the miketex package manager :-( Do you have some hints 
how to
get it working? Using my current way the footnotes, headlines, page 
numbers

don't use the frutiger font :-(

Many thanks! - Tino

Hi Tino,

I am only familiar with Ubuntu, where all the fonts I install seem to
show up without issue. Hopefully someone else has an idea.

Best,

Scott


I've never installed a font, but I do use MiKTeX. Have you refreshed the 
MiKTeX filename database? MiKTeX  Settings (which I always run as 
administrator) then click the Refresh FNDB button.


Andrew


Re: list of fonts

2015-04-17 Thread aparsloe



On 18/04/2015 8:45 a.m., Langer, Tino wrote:

Hi Scott,

many thanks! - You are right! - jopefully someone has an idea.

All the best! - Tino

Am 17.04.2015 um 22:41 schrieb Scott Kostyshak:
On Fri, Apr 17, 2015 at 4:18 PM, Langer, Tino  
wrote:

Hi Scott.

yes I did. After some additional search I'm not sure the way I 
installed the

font was the right one. I followed this hints:

http://tex.stackexchange.com/questions/95452/how-to-install-a-font-in-windows 



But I also found an very old package 'frutiger' - but this one I can 
not
install using the miketex package manager :-( Do you have some hints 
how to
get it working? Using my current way the footnotes, headlines, page 
numbers

don't use the frutiger font :-(

Many thanks! - Tino

Hi Tino,

I am only familiar with Ubuntu, where all the fonts I install seem to
show up without issue. Hopefully someone else has an idea.

Best,

Scott


I've never installed a font, but I do use MiKTeX. Have you refreshed the 
MiKTeX filename database? MiKTeX > Settings (which I always run as 
administrator) then click the Refresh FNDB button.


Andrew


Re: Edit taskbar, removing some icons

2015-04-12 Thread aparsloe



On 12/04/2015 5:57 p.m., John Kane wrote:


Ah, thanks Andrew I would have missed that.  I may have made notes on 
how I did this before but it was too long ago to remember where the 
notes might be let alone what I did.


BTW your (?) link for the short-inset-names.module in the LyX wiki is 
returning an error.


I finally copied it from my Ubuntu installation.
It is an essential module.
--
John Kane
Kingston ON Canada

Thanks for noting this. I've now refreshed the link.

Andrew


Re: Edit taskbar, removing some icons

2015-04-12 Thread aparsloe



On 12/04/2015 5:57 p.m., John Kane wrote:


Ah, thanks Andrew I would have missed that.  I may have made notes on 
how I did this before but it was too long ago to remember where the 
notes might be let alone what I did.


BTW your (?) link for the short-inset-names.module in the LyX wiki is 
returning an error.


I finally copied it from my Ubuntu installation.
It is an essential module.
--
John Kane
Kingston ON Canada

Thanks for noting this. I've now refreshed the link.

Andrew


Re: Edit taskbar, removing some icons

2015-04-12 Thread aparsloe



On 12/04/2015 5:57 p.m., John Kane wrote:


Ah, thanks Andrew I would have missed that.  I may have made notes on 
how I did this before but it was too long ago to remember where the 
notes might be let alone what I did.


BTW your (?) link for the short-inset-names.module in the LyX wiki is 
returning an error.


I finally copied it from my Ubuntu installation.
It is an essential module.
--
John Kane
Kingston ON Canada

Thanks for noting this. I've now refreshed the link.

Andrew


Re: Compiling and creating thesis template

2015-04-11 Thread aparsloe



On 12/04/2015 11:20 a.m., Steve Burnham wrote:
On April 10, 2015 at 01:47:40, SESTINI PIERSANTE 
(piersante.sest...@unisi.it mailto:piersante.sest...@unisi.it) wrote:

Il 2015-04-10 03:49 Steve Burnham ha scritto:
 A year ago I received a lot of help from the users list in getting my
 universities thesis class setup to work with LyX. I am now trying to
 set it up as a template of sorts so that others in my program can
 benefit from LyX. The template complies just fine on OS X using the
 latest version of LyX. When trying to compile on Windows however it
 does not compile and lists the following errors:

 Two LoadClass commands
 Missing begin{document}

 On OSX I simply have the LyX file, .cls, .sty, and .layout files all
 in the same folder as a couple of child documents and the compile
 works. My guess is that this setup somehow conflicts with how LyX and
 MiKTeX operate on windows. I’ve Created a zip file with the required
 thesis files and a minimal example. The users list won’t let me
 attached a zip file so it can be downloaded from the link below. If
 anyone can take a look at it and give some insight as to why it
 won’t compile on Windows it would be appreciated.

 
https://docs.google.com/uc?id=0B4Kdj1kZwg6GSlRRODlJaF9QRTAexport=download



 -Steve Burnham
I am not an expert, but MiKTeX already has a thesis package in
/tex/latex/thesis. My guess is that it loads instead of your thesis.sty
and/or cls and conflicts
Renaming your style to uuthesis.sty (and changing the premble
accordingly) seems to work here


Hope this helps

Piersante





Thanks for the response.  Your diagnosis I believe was correct but 
fixing it wasn’t quite as simple.  Here’s what I did just for the record:


I went to the following directory: C:\Program Files (x86)\MiKTeX 
2.9\tex\latex


There I created a folder called “uuthesis” and I place the .cls and 
.sty files in there. In my case the .cls file was named uuthesis and 
the .sty was named thesis.  I changed the .sty to uuthesis so that 
there wouldn’t be two thesis.sty files in the MikTeX database. Once I 
had those files added I went into the MikTeX settings and refreshed 
FNDB and updated formats (MiKTeX settings weren’t easy to find as they 
aren’t listed under MiKTeX, on both windows 7 and 8 I had to use the 
search function in the start menu and just search for “settings” and 
it came up). Finally, in the preamble of the LyX file I renamed the 
.sty file it was looking for to uuthesis.  Once I did all of that the 
document was able to compile.


For whatever reason it seems that my installation of LyX on Windows 
won’t use local .sty files and only ones that are in the MiKTeX 
folders where as on Unix based operating systems it will. I don’t know 
if this is the case for all of Windows or not.  All the more reason to 
use Linux or OS X.


-Steve
You can create your own texmf tree in a location of your choice, 
mimicking MiKTeX's own one in structure, and get MiKTeX to search that 
before it searches the C:\Program Files (x86)\MiKTeX 2.9\ locations (so 
that it would use your thesis.sty before the other one). To do this, in 
the MiKTeX Settings dialog, click on the Roots tab then, using the Add 
button add the desired location.


Andrew




Re: Edit taskbar, removing some icons

2015-04-11 Thread aparsloe



On 12/04/2015 9:58 a.m., Liviu Andronic wrote:

(Please use Reply All to copy to the list)

On Sat, Apr 11, 2015 at 6:31 PM, John Kane jrkrid...@gmail.com wrote:

Would that it was that easy in Windows!

  In Windows 7 it is “C:\Program Files\Lyx2.1\Resources\ui”. Simple eh?

What I want to do is get rid of most on the icons on the task bars. Instead
of 55 icons I want about 7 or 8. See attachment: I want most of those icons
gone.


You probably want to take /usr/share/lyx/ui/stdtoolbars.inc (wherever
that might be on Windows), copy it to ~/.lyx/ui, and comment out the
items that are not of use to you.

Regards,
Liviu

On windows 7, assuming your user name is John, the modified toolbar (but 
still called stdtoolbars.inc) would be put in


C:\Users\John\AppData\Roaming\LyX2.1\ui\

Andrew




Re: Compiling and creating thesis template

2015-04-11 Thread aparsloe



On 12/04/2015 11:20 a.m., Steve Burnham wrote:
On April 10, 2015 at 01:47:40, SESTINI PIERSANTE 
(piersante.sest...@unisi.it mailto:piersante.sest...@unisi.it) wrote:

Il 2015-04-10 03:49 Steve Burnham ha scritto:
 A year ago I received a lot of help from the users list in getting my
 universities thesis class setup to work with LyX. I am now trying to
 set it up as a template of sorts so that others in my program can
 benefit from LyX. The template complies just fine on OS X using the
 latest version of LyX. When trying to compile on Windows however it
 does not compile and lists the following errors:

 Two LoadClass commands
 Missing begin{document}

 On OSX I simply have the LyX file, .cls, .sty, and .layout files all
 in the same folder as a couple of child documents and the compile
 works. My guess is that this setup somehow conflicts with how LyX and
 MiKTeX operate on windows. I’ve Created a zip file with the required
 thesis files and a minimal example. The users list won’t let me
 attached a zip file so it can be downloaded from the link below. If
 anyone can take a look at it and give some insight as to why it
 won’t compile on Windows it would be appreciated.

 
https://docs.google.com/uc?id=0B4Kdj1kZwg6GSlRRODlJaF9QRTAexport=download



 -Steve Burnham
I am not an expert, but MiKTeX already has a thesis package in
/tex/latex/thesis. My guess is that it loads instead of your thesis.sty
and/or cls and conflicts
Renaming your style to uuthesis.sty (and changing the premble
accordingly) seems to work here


Hope this helps

Piersante





Thanks for the response.  Your diagnosis I believe was correct but 
fixing it wasn’t quite as simple.  Here’s what I did just for the record:


I went to the following directory: C:\Program Files (x86)\MiKTeX 
2.9\tex\latex


There I created a folder called “uuthesis” and I place the .cls and 
.sty files in there. In my case the .cls file was named uuthesis and 
the .sty was named thesis.  I changed the .sty to uuthesis so that 
there wouldn’t be two thesis.sty files in the MikTeX database. Once I 
had those files added I went into the MikTeX settings and refreshed 
FNDB and updated formats (MiKTeX settings weren’t easy to find as they 
aren’t listed under MiKTeX, on both windows 7 and 8 I had to use the 
search function in the start menu and just search for “settings” and 
it came up). Finally, in the preamble of the LyX file I renamed the 
.sty file it was looking for to uuthesis.  Once I did all of that the 
document was able to compile.


For whatever reason it seems that my installation of LyX on Windows 
won’t use local .sty files and only ones that are in the MiKTeX 
folders where as on Unix based operating systems it will. I don’t know 
if this is the case for all of Windows or not.  All the more reason to 
use Linux or OS X.


-Steve
You can create your own texmf tree in a location of your choice, 
mimicking MiKTeX's own one in structure, and get MiKTeX to search that 
before it searches the C:\Program Files (x86)\MiKTeX 2.9\ locations (so 
that it would use your thesis.sty before the other one). To do this, in 
the MiKTeX Settings dialog, click on the Roots tab then, using the Add 
button add the desired location.


Andrew




Re: Edit taskbar, removing some icons

2015-04-11 Thread aparsloe



On 12/04/2015 9:58 a.m., Liviu Andronic wrote:

(Please use Reply All to copy to the list)

On Sat, Apr 11, 2015 at 6:31 PM, John Kane jrkrid...@gmail.com wrote:

Would that it was that easy in Windows!

  In Windows 7 it is “C:\Program Files\Lyx2.1\Resources\ui”. Simple eh?

What I want to do is get rid of most on the icons on the task bars. Instead
of 55 icons I want about 7 or 8. See attachment: I want most of those icons
gone.


You probably want to take /usr/share/lyx/ui/stdtoolbars.inc (wherever
that might be on Windows), copy it to ~/.lyx/ui, and comment out the
items that are not of use to you.

Regards,
Liviu

On windows 7, assuming your user name is John, the modified toolbar (but 
still called stdtoolbars.inc) would be put in


C:\Users\John\AppData\Roaming\LyX2.1\ui\

Andrew




Re: Compiling and creating thesis template

2015-04-11 Thread aparsloe



On 12/04/2015 11:20 a.m., Steve Burnham wrote:
On April 10, 2015 at 01:47:40, SESTINI PIERSANTE 
(piersante.sest...@unisi.it ) wrote:

Il 2015-04-10 03:49 Steve Burnham ha scritto:
> A year ago I received a lot of help from the users list in getting my
> universities thesis class setup to work with LyX. I am now trying to
> set it up as a template of sorts so that others in my program can
> benefit from LyX. The template complies just fine on OS X using the
> latest version of LyX. When trying to compile on Windows however it
> does not compile and lists the following errors:
>
> Two LoadClass commands
> Missing begin{document}
>
> On OSX I simply have the LyX file, .cls, .sty, and .layout files all
> in the same folder as a couple of child documents and the compile
> works. My guess is that this setup somehow conflicts with how LyX and
> MiKTeX operate on windows. I’ve Created a zip file with the required
> thesis files and a minimal example. The users list won’t let me
> attached a zip file so it can be downloaded from the link below. If
> anyone can take a look at it and give some insight as to why it
> won’t compile on Windows it would be appreciated.
>
> 
https://docs.google.com/uc?id=0B4Kdj1kZwg6GSlRRODlJaF9QRTA=download

>
>
> -Steve Burnham
I am not an expert, but MiKTeX already has a thesis package in
/tex/latex/thesis. My guess is that it loads instead of your thesis.sty
and/or cls and conflicts
Renaming your style to uuthesis.sty (and changing the premble
accordingly) seems to work here


Hope this helps

Piersante





Thanks for the response.  Your diagnosis I believe was correct but 
fixing it wasn’t quite as simple.  Here’s what I did just for the record:


I went to the following directory: C:\Program Files (x86)\MiKTeX 
2.9\tex\latex


There I created a folder called “uuthesis” and I place the .cls and 
.sty files in there. In my case the .cls file was named uuthesis and 
the .sty was named thesis.  I changed the .sty to uuthesis so that 
there wouldn’t be two thesis.sty files in the MikTeX database. Once I 
had those files added I went into the MikTeX settings and refreshed 
FNDB and updated formats (MiKTeX settings weren’t easy to find as they 
aren’t listed under MiKTeX, on both windows 7 and 8 I had to use the 
search function in the start menu and just search for “settings” and 
it came up). Finally, in the preamble of the LyX file I renamed the 
.sty file it was looking for to uuthesis.  Once I did all of that the 
document was able to compile.


For whatever reason it seems that my installation of LyX on Windows 
won’t use local .sty files and only ones that are in the MiKTeX 
folders where as on Unix based operating systems it will. I don’t know 
if this is the case for all of Windows or not.  All the more reason to 
use Linux or OS X.


-Steve
You can create your own texmf tree in a location of your choice, 
mimicking MiKTeX's own one in structure, and get MiKTeX to search that 
before it searches the C:\Program Files (x86)\MiKTeX 2.9\ locations (so 
that it would use your thesis.sty before the other one). To do this, in 
the MiKTeX Settings dialog, click on the Roots tab then, using the Add 
button add the desired location.


Andrew




Re: Edit taskbar, removing some icons

2015-04-11 Thread aparsloe



On 12/04/2015 9:58 a.m., Liviu Andronic wrote:

(Please use Reply All to copy to the list)

On Sat, Apr 11, 2015 at 6:31 PM, John Kane  wrote:

Would that it was that easy in Windows!

  In Windows 7 it is “C:\Program Files\Lyx2.1\Resources\ui”. Simple eh?

What I want to do is get rid of most on the icons on the task bars. Instead
of 55 icons I want about 7 or 8. See attachment: I want most of those icons
gone.


You probably want to take /usr/share/lyx/ui/stdtoolbars.inc (wherever
that might be on Windows), copy it to ~/.lyx/ui, and comment out the
items that are not of use to you.

Regards,
Liviu

On windows 7, assuming your user name is John, the modified toolbar (but 
still called stdtoolbars.inc) would be put in


C:\Users\John\AppData\Roaming\LyX2.1\ui\

Andrew




Re: Disable editing / read only menu option?

2015-03-23 Thread aparsloe

On 24/03/2015 5:57 a.m., Scott Kostyshak wrote:

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?

The idea would be that sometimes you just want to read a .lyx file
without being able to edit it.

The disadvantage is adding another option to an already cluttered
menu. This feature can always be activated on the command buffer (alt
+ x) with buffer-toggle-read-only.

Note that this is http://www.lyx.org/trac/ticket/6692.

Best,

Scott
I have had occasions when this would have been useful, working on a copy 
of a document with minor variations but leaving the original untouched. 
As for cluttered menus, the Insert menu is the only really cluttered 
one to my mind.


Andrew


Re: Disable editing / read only menu option?

2015-03-23 Thread aparsloe

On 24/03/2015 5:57 a.m., Scott Kostyshak wrote:

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?

The idea would be that sometimes you just want to read a .lyx file
without being able to edit it.

The disadvantage is adding another option to an already cluttered
menu. This feature can always be activated on the command buffer (alt
+ x) with buffer-toggle-read-only.

Note that this is http://www.lyx.org/trac/ticket/6692.

Best,

Scott
I have had occasions when this would have been useful, working on a copy 
of a document with minor variations but leaving the original untouched. 
As for cluttered menus, the Insert menu is the only really cluttered 
one to my mind.


Andrew


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

2015-03-23 Thread aparsloe

On 24/03/2015 5:57 a.m., Scott Kostyshak wrote:

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?

The idea would be that sometimes you just want to read a .lyx file
without being able to edit it.

The disadvantage is adding another option to an already cluttered
menu. This feature can always be activated on the command buffer (alt
+ x) with buffer-toggle-read-only.

Note that this is http://www.lyx.org/trac/ticket/6692.

Best,

Scott
I have had occasions when this would have been useful, working on a copy 
of a document with minor variations but leaving the original untouched. 
As for "cluttered" menus, the Insert menu is the only really cluttered 
one to my mind.


Andrew


Re: paste problem (on Win 7 and 8)

2015-03-03 Thread aparsloe

On 4/03/2015 4:00 a.m., Sven Schreiber wrote:

Am 03.03.2015 um 15:53 schrieb Margret Mueller:

Hej Sven (and list!)
I am not a super-experienced Lyx user (and will have some questions soon
i m afraid) but I just finished copy-pasting my whole dissertation from
word to lyx yesterday paragraph by paragraph with short cuts (ctrl c v)
without programming anything (out of my capability range) i use windows
8 and  lyx 2.1.2. maybe that is a factor - or did I get you wrong?
However for me it worked perfectly..?


Margret,

I know that often it does work just fine -- if not I guess it would be 
a top priority for lyx development. So your example is not 
contradicting the problem.


thanks,
sven
I'm another Windows user (before that XP and Vista) and don't recall 
problems with copy and paste (ctrl+c to copy, ctrl+x to cut, ctrl+v or 
ctrl+shift+v to paste). It wasn't clear to me, reading your posting, 
what exactly was not working.


Andrew



Re: paste problem (on Win 7 and 8)

2015-03-03 Thread aparsloe

On 4/03/2015 4:00 a.m., Sven Schreiber wrote:

Am 03.03.2015 um 15:53 schrieb Margret Mueller:

Hej Sven (and list!)
I am not a super-experienced Lyx user (and will have some questions soon
i m afraid) but I just finished copy-pasting my whole dissertation from
word to lyx yesterday paragraph by paragraph with short cuts (ctrl c v)
without programming anything (out of my capability range) i use windows
8 and  lyx 2.1.2. maybe that is a factor - or did I get you wrong?
However for me it worked perfectly..?


Margret,

I know that often it does work just fine -- if not I guess it would be 
a top priority for lyx development. So your example is not 
contradicting the problem.


thanks,
sven
I'm another Windows user (before that XP and Vista) and don't recall 
problems with copy and paste (ctrl+c to copy, ctrl+x to cut, ctrl+v or 
ctrl+shift+v to paste). It wasn't clear to me, reading your posting, 
what exactly was not working.


Andrew



Re: paste problem (on Win 7 and 8)

2015-03-03 Thread aparsloe

On 4/03/2015 4:00 a.m., Sven Schreiber wrote:

Am 03.03.2015 um 15:53 schrieb Margret Mueller:

Hej Sven (and list!)
I am not a super-experienced Lyx user (and will have some questions soon
i m afraid) but I just finished copy-pasting my whole dissertation from
word to lyx yesterday paragraph by paragraph with short cuts (ctrl c v)
without programming anything (out of my capability range) i use windows
8 and  lyx 2.1.2. maybe that is a factor - or did I get you wrong?
However for me it worked perfectly..?


Margret,

I know that often it does work just fine -- if not I guess it would be 
a top priority for lyx development. So your example is not 
contradicting the problem.


thanks,
sven
I'm another Windows user (before that XP and Vista) and don't recall 
problems with copy and paste (ctrl+c to copy, ctrl+x to cut, ctrl+v or 
ctrl+shift+v to paste). It wasn't clear to me, reading your posting, 
what exactly was not working.


Andrew



Re: Backspacing at the start of an inset occupying a paragraph

2014-12-01 Thread aparsloe


On 1/12/2014 9:44 p.m., Jean-Marc Lasgouttes wrote:

Le 28/11/2014 21:11, aparsloe a écrit :

If I recall correctly there was a somewhat desultory and confusing
discussion. I didn't know what to put on trac and so put nothing.


I think you can use your original description and maybe point to this 
discussion, for example here:

https://www.mail-archive.com/lyx-users@lists.lyx.org/msg99175.html

I think that the outco;e is that if one of the two paragraphs is not 
standard, then it should win. If both are not standard, then I do not 
know what to do :)


JMarc

PS: I learned a new word today: desultory :)

Ticket #9345.

Andrew (Glad to have enlarged the vocabulary.)



Re: Newbie question: which pdf reader to use with Windows 8.1?

2014-12-01 Thread aparsloe


On 2/12/2014 6:36 p.m., Liviu Andronic wrote:

On Tue, Dec 2, 2014 at 5:20 AM, Ashok adharesh...@hotmail.com wrote:

I currently have Acrobat Pro 11. It's very unwieldy. The first time I view
a document, it's fine, but then it gets stuck. Even exiting Acrobat
doesn't help. I have to exit Lyx and get back!


I like sticking to Evince when forced to use Windows: it's slim,
quick, and makes sense for viewing PDF files. It also auto-loads
updated files gracefully, unlike Acrobat.

https://wiki.gnome.org/Apps/Evince/Downloads

Liviu



Is there a simpler alternative? And how to tell Lyx not to use Acrobat
pro? (I have Acrobat Pro associated as the default pdf viewer on my
Windows system; that's how I would like to continue for non-Lyx uses.)

TIA.

I'm on Windows 7. Until earlier this year I used Adobe Reader, but over 
the years it has got more and more ponderous and LyX interacts with it 
somewhat clunkily. I've since installed Sumatra. It's much smaller and 
more responsive and I'm pleased with how it interacts with LyX. But for 
things like printing a pdf Adobe Reader has additional options (e.g. 
printing in reverse order) so I keep it on disk.


If you want Adobe Pro to be your default Windows pdf viewer and yet have 
Sumatra (or Evince or whatever) as your LyX pdf viewer, you need to go 
to Tools  Preferences  File Handling  File Formats and under the 
format PDF (pdflatex) go down to the Viewer: slot (where it may show 
pdfview) and choose Custom and in the right-hand slot enter e.g. 
SumatraPDF, then click Apply. Now in the larger window on the left 
select Paths. Second slot from the bottom on the right is PATH prefix. 
At the end of whatever is already there add (e.g.)


;C:\Program Files (x86)\SumatraPDF

(note the semicolon) or whatever the path is to the directory holding 
the .exe file of your chosen LyX pdf viewer. Now click Save.


Andrew


Re: Backspacing at the start of an inset occupying a paragraph

2014-12-01 Thread aparsloe


On 1/12/2014 9:44 p.m., Jean-Marc Lasgouttes wrote:

Le 28/11/2014 21:11, aparsloe a écrit :

If I recall correctly there was a somewhat desultory and confusing
discussion. I didn't know what to put on trac and so put nothing.


I think you can use your original description and maybe point to this 
discussion, for example here:

https://www.mail-archive.com/lyx-users@lists.lyx.org/msg99175.html

I think that the outco;e is that if one of the two paragraphs is not 
standard, then it should win. If both are not standard, then I do not 
know what to do :)


JMarc

PS: I learned a new word today: desultory :)

Ticket #9345.

Andrew (Glad to have enlarged the vocabulary.)



Re: Newbie question: which pdf reader to use with Windows 8.1?

2014-12-01 Thread aparsloe


On 2/12/2014 6:36 p.m., Liviu Andronic wrote:

On Tue, Dec 2, 2014 at 5:20 AM, Ashok adharesh...@hotmail.com wrote:

I currently have Acrobat Pro 11. It's very unwieldy. The first time I view
a document, it's fine, but then it gets stuck. Even exiting Acrobat
doesn't help. I have to exit Lyx and get back!


I like sticking to Evince when forced to use Windows: it's slim,
quick, and makes sense for viewing PDF files. It also auto-loads
updated files gracefully, unlike Acrobat.

https://wiki.gnome.org/Apps/Evince/Downloads

Liviu



Is there a simpler alternative? And how to tell Lyx not to use Acrobat
pro? (I have Acrobat Pro associated as the default pdf viewer on my
Windows system; that's how I would like to continue for non-Lyx uses.)

TIA.

I'm on Windows 7. Until earlier this year I used Adobe Reader, but over 
the years it has got more and more ponderous and LyX interacts with it 
somewhat clunkily. I've since installed Sumatra. It's much smaller and 
more responsive and I'm pleased with how it interacts with LyX. But for 
things like printing a pdf Adobe Reader has additional options (e.g. 
printing in reverse order) so I keep it on disk.


If you want Adobe Pro to be your default Windows pdf viewer and yet have 
Sumatra (or Evince or whatever) as your LyX pdf viewer, you need to go 
to Tools  Preferences  File Handling  File Formats and under the 
format PDF (pdflatex) go down to the Viewer: slot (where it may show 
pdfview) and choose Custom and in the right-hand slot enter e.g. 
SumatraPDF, then click Apply. Now in the larger window on the left 
select Paths. Second slot from the bottom on the right is PATH prefix. 
At the end of whatever is already there add (e.g.)


;C:\Program Files (x86)\SumatraPDF

(note the semicolon) or whatever the path is to the directory holding 
the .exe file of your chosen LyX pdf viewer. Now click Save.


Andrew


Re: Backspacing at the start of an inset occupying a paragraph

2014-12-01 Thread aparsloe


On 1/12/2014 9:44 p.m., Jean-Marc Lasgouttes wrote:

Le 28/11/2014 21:11, aparsloe a écrit :

If I recall correctly there was a somewhat desultory and confusing
discussion. I didn't know what to put on trac and so put nothing.


I think you can use your original description and maybe point to this 
discussion, for example here:

https://www.mail-archive.com/lyx-users@lists.lyx.org/msg99175.html

I think that the outco;e is that if one of the two paragraphs is not 
standard, then it should win. If both are not standard, then I do not 
know what to do :)


JMarc

PS: I learned a new word today: "desultory" :)

Ticket #9345.

Andrew (Glad to have enlarged the vocabulary.)



Re: Newbie question: which pdf reader to use with Windows 8.1?

2014-12-01 Thread aparsloe


On 2/12/2014 6:36 p.m., Liviu Andronic wrote:

On Tue, Dec 2, 2014 at 5:20 AM, Ashok  wrote:

I currently have Acrobat Pro 11. It's very unwieldy. The first time I view
a document, it's fine, but then it gets stuck. Even exiting Acrobat
doesn't help. I have to exit Lyx and get back!


I like sticking to Evince when forced to use Windows: it's slim,
quick, and makes sense for viewing PDF files. It also auto-loads
updated files gracefully, unlike Acrobat.

https://wiki.gnome.org/Apps/Evince/Downloads

Liviu



Is there a simpler alternative? And how to tell Lyx not to use Acrobat
pro? (I have Acrobat Pro "associated" as the default pdf viewer on my
Windows system; that's how I would like to continue for non-Lyx uses.)

TIA.

I'm on Windows 7. Until earlier this year I used Adobe Reader, but over 
the years it has got more and more ponderous and LyX interacts with it 
somewhat clunkily. I've since installed Sumatra. It's much smaller and 
more responsive and I'm pleased with how it interacts with LyX. But for 
things like printing a pdf Adobe Reader has additional options (e.g. 
printing in reverse order) so I keep it on disk.


If you want Adobe Pro to be your default Windows pdf viewer and yet have 
Sumatra (or Evince or whatever) as your LyX pdf viewer, you need to go 
to Tools > Preferences > File Handling > File Formats and under the 
format PDF (pdflatex) go down to the Viewer: slot (where it may show 
pdfview) and choose Custom and in the right-hand slot enter e.g. 
SumatraPDF, then click Apply. Now in the larger window on the left 
select Paths. Second slot from the bottom on the right is PATH prefix. 
At the end of whatever is already there add (e.g.)


;C:\Program Files (x86)\SumatraPDF

(note the semicolon) or whatever the path is to the directory holding 
the .exe file of your chosen LyX pdf viewer. Now click Save.


Andrew


Re: Backspacing at the start of an inset occupying a paragraph

2014-11-28 Thread aparsloe


On 28/11/2014 11:51 p.m., Jean-Marc Lasgouttes wrote:

Le 07/06/2014 07:43, aparsloe a écrit :

Placing the cursor at the start of an inset and pressing the backspace
key destroys the inset and makes its content part of the surrounding
text. However, if the inset is the *only* item in a paragraph
environment (list, Quotation, etc.) then not only is the inset destroyed
but so too is the environment, which becomes a standard paragraph.


Hi, [looking through old messages]

Did this ever become a ticket on trac?

JMarc
If I recall correctly there was a somewhat desultory and confusing 
discussion. I didn't know what to put on trac and so put nothing.


Andrew



Re: Backspacing at the start of an inset occupying a paragraph

2014-11-28 Thread aparsloe


On 28/11/2014 11:51 p.m., Jean-Marc Lasgouttes wrote:

Le 07/06/2014 07:43, aparsloe a écrit :

Placing the cursor at the start of an inset and pressing the backspace
key destroys the inset and makes its content part of the surrounding
text. However, if the inset is the *only* item in a paragraph
environment (list, Quotation, etc.) then not only is the inset destroyed
but so too is the environment, which becomes a standard paragraph.


Hi, [looking through old messages]

Did this ever become a ticket on trac?

JMarc
If I recall correctly there was a somewhat desultory and confusing 
discussion. I didn't know what to put on trac and so put nothing.


Andrew



Re: Backspacing at the start of an inset occupying a paragraph

2014-11-28 Thread aparsloe


On 28/11/2014 11:51 p.m., Jean-Marc Lasgouttes wrote:

Le 07/06/2014 07:43, aparsloe a écrit :

Placing the cursor at the start of an inset and pressing the backspace
key destroys the inset and makes its content part of the surrounding
text. However, if the inset is the *only* item in a paragraph
environment (list, Quotation, etc.) then not only is the inset destroyed
but so too is the environment, which becomes a standard paragraph.


Hi, [looking through old messages]

Did this ever become a ticket on trac?

JMarc
If I recall correctly there was a somewhat desultory and confusing 
discussion. I didn't know what to put on trac and so put nothing.


Andrew



Re: Calculyx

2014-11-24 Thread aparsloe


On 25/11/2014 11:29 a.m., Julio Rojas wrote:
Dear Andrew, thanks for the excellent idea. I will be a true believer 
and user once it works smoothly.


Nevertheless, I have just tried a simple sum and the following error 
is presented at compilation time:


! Undefined control sequence.

\clyx_vvlist_process:NN ...ist #1\clist_reverse:N

\l_tmpb_clist \clist_map_i...

l.25 \calculyx{$\sum_{n=1}^{2}n$}


No result of this sum is shown in the preview. Did I do something wrong?


Regards,


-
Julio Rojas
jcredbe...@gmail.com mailto:jcredbe...@gmail.com

Hullo Julio,

My beta tester (there was one) also stumbled over this issue which is 
why I wrote in my introductory spiel:


Calculyx requires the three LaTeX3 bundles l3kernel,  l3packages and 
l3experimental. Because a main routine uses a  command that was 
introduced to l3kernel on 18 July 2014, the version of l3kernel must be 
later than this.


The command that was introduced in July is the one in your error 
message: \clist_reverse:N.
Unless your version of l3kernel is later than 18 July this year, 
calculyx won't work. You will need to download a newer version of l3kernel.


Any calculation that involves variables (n in your test expression) is 
going to meet this command. You could try something involving only 
constants or numbers: e^{\pi}-\pi^{e} perhaps, or 1+1!


Regards,

Andrew




Re: Calculyx

2014-11-24 Thread aparsloe


On 24/11/2014 11:23 p.m., Murat Yildizoglu wrote:
Very nice and very cool indeed! Thanks a lot Andrew! This seems to be 
a nice (also because much lighter) competitor to the Sage module for 
many numerical computations.  I will check it as soon as I can.

Best regards,

Murat
Yes, I did look at the Sage module, and was daunted. Calculyx is for 
back-of-envelope stuff. Actually it can do some quite complicated 
calculations:


\sum_{k=0}^{\infty}\frac{(-1)^{k}}{2^{k+1}}\sum_{n=0}^{k}(-1)^{n}\binom{k}{n}\frac{1}{(k-n)!}
(a laborious way of calculating 1/e) is about the most complicated I've 
included in the documentation, but you would never use it for serious 
number crunching. LyX Document


Andrew


Re: Calculyx

2014-11-24 Thread aparsloe


On 25/11/2014 11:29 a.m., Julio Rojas wrote:
Dear Andrew, thanks for the excellent idea. I will be a true believer 
and user once it works smoothly.


Nevertheless, I have just tried a simple sum and the following error 
is presented at compilation time:


! Undefined control sequence.

\clyx_vvlist_process:NN ...ist #1\clist_reverse:N

\l_tmpb_clist \clist_map_i...

l.25 \calculyx{$\sum_{n=1}^{2}n$}


No result of this sum is shown in the preview. Did I do something wrong?


Regards,


-
Julio Rojas
jcredbe...@gmail.com mailto:jcredbe...@gmail.com

Hullo Julio,

My beta tester (there was one) also stumbled over this issue which is 
why I wrote in my introductory spiel:


Calculyx requires the three LaTeX3 bundles l3kernel,  l3packages and 
l3experimental. Because a main routine uses a  command that was 
introduced to l3kernel on 18 July 2014, the version of l3kernel must be 
later than this.


The command that was introduced in July is the one in your error 
message: \clist_reverse:N.
Unless your version of l3kernel is later than 18 July this year, 
calculyx won't work. You will need to download a newer version of l3kernel.


Any calculation that involves variables (n in your test expression) is 
going to meet this command. You could try something involving only 
constants or numbers: e^{\pi}-\pi^{e} perhaps, or 1+1!


Regards,

Andrew




Re: Calculyx

2014-11-24 Thread aparsloe


On 24/11/2014 11:23 p.m., Murat Yildizoglu wrote:
Very nice and very cool indeed! Thanks a lot Andrew! This seems to be 
a nice (also because much lighter) competitor to the Sage module for 
many numerical computations.  I will check it as soon as I can.

Best regards,

Murat
Yes, I did look at the Sage module, and was daunted. Calculyx is for 
back-of-envelope stuff. Actually it can do some quite complicated 
calculations:


\sum_{k=0}^{\infty}\frac{(-1)^{k}}{2^{k+1}}\sum_{n=0}^{k}(-1)^{n}\binom{k}{n}\frac{1}{(k-n)!}
(a laborious way of calculating 1/e) is about the most complicated I've 
included in the documentation, but you would never use it for serious 
number crunching. LyX Document


Andrew


Re: Calculyx

2014-11-24 Thread aparsloe


On 25/11/2014 11:29 a.m., Julio Rojas wrote:
Dear Andrew, thanks for the excellent idea. I will be a true believer 
and user once it works smoothly.


Nevertheless, I have just tried a simple sum and the following error 
is presented at compilation time:


! Undefined control sequence.

\clyx_vvlist_process:NN ...ist #1\clist_reverse:N

\l_tmpb_clist \clist_map_i...

l.25 \calculyx{$\sum_{n=1}^{2}n$}


No result of this sum is shown in the preview. Did I do something wrong?


Regards,


-
Julio Rojas
jcredbe...@gmail.com 

Hullo Julio,

My beta tester (there was one) also stumbled over this issue which is 
why I wrote in my introductory spiel:


"Calculyx requires the three LaTeX3 bundles l3kernel,  l3packages and 
l3experimental. Because a main routine uses a  command that was 
introduced to l3kernel on 18 July 2014, the version of l3kernel must be 
later than this."


The command that was introduced in July is the one in your error 
message: \clist_reverse:N.
Unless your version of l3kernel is later than 18 July this year, 
calculyx won't work. You will need to download a newer version of l3kernel.


Any calculation that involves variables ("n" in your test expression) is 
going to meet this command. You could try something involving only 
constants or numbers: e^{\pi}-\pi^{e} perhaps, or 1+1!


Regards,

Andrew




Re: Calculyx

2014-11-24 Thread aparsloe


On 24/11/2014 11:23 p.m., Murat Yildizoglu wrote:
Very nice and very cool indeed! Thanks a lot Andrew! This seems to be 
a nice (also because much lighter) competitor to the Sage module for 
many numerical computations.  I will check it as soon as I can.

Best regards,

Murat
Yes, I did look at the Sage module, and was daunted. Calculyx is for 
back-of-envelope stuff. Actually it can do some quite complicated 
calculations:


\sum_{k=0}^{\infty}\frac{(-1)^{k}}{2^{k+1}}\sum_{n=0}^{k}(-1)^{n}\binom{k}{n}\frac{1}{(k-n)!}
(a laborious way of calculating 1/e) is about the most complicated I've 
included in the documentation, but you would never use it for serious 
number crunching. LyX Document


Andrew


Calculyx

2014-11-23 Thread aparsloe
I've written a LaTeX package called calculyx which numerically 
evaluates mathematical expressions in LyX before one's eyes using 
instant preview.  It is written in the expl3 language of LaTeX3 but is 
used just like any other LaTeX package. There is a link at 
http://wiki.lyx.org/Examples/Calculyx to a zipped archive currently in a 
Dropbox folder, and a screenshot (.png format) of a one-page LaTeX 
document and the resulting pdf with a few example calculations at 
https://www.dropbox.com/s/7djkyjs44bpraol/Screenshot%202014-11-24%2013.52.07.png?dl=0. 
The LaTeX may look complicated, but using LyX, all that is as ever 
hidden. One simply enters expressions in the LyX math editor as usual.


Calculyx requires the three LaTeX3 bundles l3kernel,  l3packages and 
l3experimental. Because a main routine uses a  command that was 
introduced to l3kernel on 18 July 2014, the version of l3kernel must be 
later than this. The calculational engine for calculyx is the floating 
point module l3fp in l3kernel.


I have tried to ensure as much as possible that calculyx reads 
expressions as mathematicians write them. For instance it will digest 
\sin 3x - 3\sin x + 4\sin^{3} x (for a specified value of x, say \pi/6) 
without parentheses around the arguments and with the superscript in the 
wrong but familiar place. It will digest the common arithmetic 
operators, plus variants like \times and \div, the familiar 
trigonometric and hyperbolic functions and their inverses, the 
exponential and natural logarithm, fractions (\frac, \tfrac), square 
root and \surd, factorials ( using !), binomial coefficients (\binom, 
\tbinom), \gcd, sums and products (\sum, \prod) including infinite 
sums and products, limits (\lim), derivatives (1st and 2nd order), 
including Cartesian 2-d and 3-d Laplacians, and definite integrals in 
one variable. Results are generally presented in the form: expression = 
result. There is also a (multi-column) table creating command and 
another which will iterate a function (for the chaos theorists).


The package contains a novelty that I think could be exploited more 
widely. Some calculations are computationally intensive. So as not to 
burden the compilation of the pdf with them, these calculations can be 
parked either in a LyX note or in an inactive branch. Instant preview 
works in both places (with a caveat for LyX notes). The result of the 
calculation can be saved to a LaTeX control sequence. Calculyx 
automatically saves such control sequences to a file. They are then 
available for inserting elsewhere in the document -- even at the start, 
long before the place where the calculation is performed. If you are 
prepared to set up a converter and copier, then the file containing the 
control sequences can be saved in the document directory -- or copied to 
other directories whereby the results of those parked calculations are 
made available to these other documents. By this means selected items in 
LyX notes or inactive branches can play a part in compilation to pdf.


Andrew


Calculyx

2014-11-23 Thread aparsloe
I've written a LaTeX package called calculyx which numerically 
evaluates mathematical expressions in LyX before one's eyes using 
instant preview.  It is written in the expl3 language of LaTeX3 but is 
used just like any other LaTeX package. There is a link at 
http://wiki.lyx.org/Examples/Calculyx to a zipped archive currently in a 
Dropbox folder, and a screenshot (.png format) of a one-page LaTeX 
document and the resulting pdf with a few example calculations at 
https://www.dropbox.com/s/7djkyjs44bpraol/Screenshot%202014-11-24%2013.52.07.png?dl=0. 
The LaTeX may look complicated, but using LyX, all that is as ever 
hidden. One simply enters expressions in the LyX math editor as usual.


Calculyx requires the three LaTeX3 bundles l3kernel,  l3packages and 
l3experimental. Because a main routine uses a  command that was 
introduced to l3kernel on 18 July 2014, the version of l3kernel must be 
later than this. The calculational engine for calculyx is the floating 
point module l3fp in l3kernel.


I have tried to ensure as much as possible that calculyx reads 
expressions as mathematicians write them. For instance it will digest 
\sin 3x - 3\sin x + 4\sin^{3} x (for a specified value of x, say \pi/6) 
without parentheses around the arguments and with the superscript in the 
wrong but familiar place. It will digest the common arithmetic 
operators, plus variants like \times and \div, the familiar 
trigonometric and hyperbolic functions and their inverses, the 
exponential and natural logarithm, fractions (\frac, \tfrac), square 
root and \surd, factorials ( using !), binomial coefficients (\binom, 
\tbinom), \gcd, sums and products (\sum, \prod) including infinite 
sums and products, limits (\lim), derivatives (1st and 2nd order), 
including Cartesian 2-d and 3-d Laplacians, and definite integrals in 
one variable. Results are generally presented in the form: expression = 
result. There is also a (multi-column) table creating command and 
another which will iterate a function (for the chaos theorists).


The package contains a novelty that I think could be exploited more 
widely. Some calculations are computationally intensive. So as not to 
burden the compilation of the pdf with them, these calculations can be 
parked either in a LyX note or in an inactive branch. Instant preview 
works in both places (with a caveat for LyX notes). The result of the 
calculation can be saved to a LaTeX control sequence. Calculyx 
automatically saves such control sequences to a file. They are then 
available for inserting elsewhere in the document -- even at the start, 
long before the place where the calculation is performed. If you are 
prepared to set up a converter and copier, then the file containing the 
control sequences can be saved in the document directory -- or copied to 
other directories whereby the results of those parked calculations are 
made available to these other documents. By this means selected items in 
LyX notes or inactive branches can play a part in compilation to pdf.


Andrew


Calculyx

2014-11-23 Thread aparsloe
I've written a LaTeX package called "calculyx" which numerically 
evaluates mathematical expressions in LyX "before one's eyes" using 
instant preview.  It is written in the expl3 language of LaTeX3 but is 
used just like any other LaTeX package. There is a link at 
http://wiki.lyx.org/Examples/Calculyx to a zipped archive currently in a 
Dropbox folder, and a screenshot (.png format) of a one-page LaTeX 
document and the resulting pdf with a few example calculations at 
https://www.dropbox.com/s/7djkyjs44bpraol/Screenshot%202014-11-24%2013.52.07.png?dl=0. 
The LaTeX may look complicated, but using LyX, all that is as ever 
hidden. One simply enters expressions in the LyX math editor as usual.


Calculyx requires the three LaTeX3 bundles l3kernel,  l3packages and 
l3experimental. Because a main routine uses a  command that was 
introduced to l3kernel on 18 July 2014, the version of l3kernel must be 
later than this. The calculational engine for calculyx is the floating 
point module l3fp in l3kernel.


I have tried to ensure as much as possible that calculyx reads 
expressions as mathematicians write them. For instance it will "digest" 
\sin 3x - 3\sin x + 4\sin^{3} x (for a specified value of x, say \pi/6) 
without parentheses around the arguments and with the superscript in the 
"wrong" but familiar place. It will "digest" the common arithmetic 
operators, plus variants like \times and \div, the familiar 
trigonometric and hyperbolic functions and their inverses, the 
exponential and natural logarithm, fractions (\frac, \tfrac), square 
root and \surd, factorials ( using !), binomial coefficients (\binom, 
\tbinom), \gcd, sums and products (\sum, \prod) including "infinite" 
sums and products, limits (\lim), derivatives (1st and 2nd order), 
including Cartesian 2-d and 3-d Laplacians, and definite integrals in 
one variable. Results are generally presented in the form: expression = 
result. There is also a (multi-column) table creating command and 
another which will iterate a function (for the chaos theorists).


The package contains a novelty that I think could be exploited more 
widely. Some calculations are computationally intensive. So as not to 
burden the compilation of the pdf with them, these calculations can be 
"parked" either in a LyX note or in an inactive branch. Instant preview 
works in both places (with a caveat for LyX notes). The result of the 
calculation can be saved to a LaTeX control sequence. Calculyx 
automatically saves such control sequences to a file. They are then 
available for inserting elsewhere in the document -- even at the start, 
long before the place where the calculation is performed. If you are 
prepared to set up a converter and copier, then the file containing the 
control sequences can be saved in the document directory -- or copied to 
other directories whereby the results of those "parked" calculations are 
made available to these other documents. By this means selected items in 
LyX notes or inactive branches can play a part in compilation to pdf.


Andrew


Re: copy and paste of latex insert

2014-10-04 Thread aparsloe


On 5/10/2014 9:21 a.m., emile lunardon wrote:

You are right, the same phenomena occurs on Windows with Math inserts !

2014-10-04 21:59 GMT+02:00 Julien Rioux jri...@lyx.org 
mailto:jri...@lyx.org:


On 04/10/2014 4:35 AM, emile lunardon wrote:

I confirm that the bug I observed with LyX 2.1.2 running on
Windows 8.1
is not present on the same version of LyX compilled on Linux
Mint LMDE
(Debian based distribution).


I've seen similar strange behavior with copy/paste in LyX on
Windows 7: Copy-pasting insets inserts only the inner text,
copy-pasting math would paste the latex commands, etc. It seems to
happen when I restart from hibernation mode, but I never could
narrow   it down further to reproduce it consistently. The
earliest instance dates back to LyX 2.0.x but I can't remember if
it happened even before.

-- 
Julien



FWIW, I'm using Windows 7  LyX 2.1.2 and have just awoken from 
hibernation. Copy  paste of ERT insets  math insets proceeds as it 
should, both inset  contents, in both a new document and a large 
existing one. I sometimes find that after restarting LyX, or even 
restarting Windows, various anomalous behaviours vanish.


Andrew


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


Re: copy and paste of latex insert

2014-10-04 Thread aparsloe


On 5/10/2014 9:21 a.m., emile lunardon wrote:

You are right, the same phenomena occurs on Windows with Math inserts !

2014-10-04 21:59 GMT+02:00 Julien Rioux jri...@lyx.org 
mailto:jri...@lyx.org:


On 04/10/2014 4:35 AM, emile lunardon wrote:

I confirm that the bug I observed with LyX 2.1.2 running on
Windows 8.1
is not present on the same version of LyX compilled on Linux
Mint LMDE
(Debian based distribution).


I've seen similar strange behavior with copy/paste in LyX on
Windows 7: Copy-pasting insets inserts only the inner text,
copy-pasting math would paste the latex commands, etc. It seems to
happen when I restart from hibernation mode, but I never could
narrow   it down further to reproduce it consistently. The
earliest instance dates back to LyX 2.0.x but I can't remember if
it happened even before.

-- 
Julien



FWIW, I'm using Windows 7  LyX 2.1.2 and have just awoken from 
hibernation. Copy  paste of ERT insets  math insets proceeds as it 
should, both inset  contents, in both a new document and a large 
existing one. I sometimes find that after restarting LyX, or even 
restarting Windows, various anomalous behaviours vanish.


Andrew


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


Re: copy and paste of latex insert

2014-10-04 Thread aparsloe


On 5/10/2014 9:21 a.m., emile lunardon wrote:

You are right, the same phenomena occurs on Windows with Math inserts !

2014-10-04 21:59 GMT+02:00 Julien Rioux >:


On 04/10/2014 4:35 AM, emile lunardon wrote:

I confirm that the bug I observed with LyX 2.1.2 running on
Windows 8.1
is not present on the same version of LyX compilled on Linux
Mint LMDE
(Debian based distribution).


I've seen similar strange behavior with copy/paste in LyX on
Windows 7: Copy-pasting insets inserts only the inner text,
copy-pasting math would paste the latex commands, etc. It seems to
happen when I restart from hibernation mode, but I never could
narrow   it down further to reproduce it consistently. The
earliest instance dates back to LyX 2.0.x but I can't remember if
it happened even before.

-- 
Julien



FWIW, I'm using Windows 7 & LyX 2.1.2 and have just "awoken" from 
hibernation. Copy & paste of ERT insets & math insets proceeds as it 
should, both inset & contents, in both a new document and a large 
existing one. I sometimes find that after restarting LyX, or even 
restarting Windows, various anomalous behaviours vanish.


Andrew


---
This email is free from viruses and malware because avast! Antivirus protection 
is active.
http://www.avast.com


Re: Wrapped figure

2014-10-01 Thread aparsloe


On 2/10/2014 12:55 a.m., Helge Hafting wrote:


Den 01. okt. 2014 01:18, skrev Patrick Dupre:

Hello,

I am not satisfied by the placement of wrapped figures:
Probably, because in one part of the document there is too many
figures compared to the text, there is some large spaces kept blank
on the side of the wrapped figures.

Is there any tip that I could use?
Actually, latex should just move the pictures a bit farther where there
are no more figures if it is the issue.

I use outer placement and allow floating, one column.
If I change for left or right of inner, the figure remains on the 
left side.


The setting is typically 45% of the pagewidth.

Wrapped figures is one of the few things LaTeX isn't good at.
I don't think the wrapped figures float around, so if my 
understanding is correct, they will not be moved automatically. You 
can move them yourself though, using cut  paste.

Helge Hafting

In LyX, Insert  Float  Figure Wrap Float does does provide a floating 
option. When you right click on the label, under Settings, there is an 
Allow floating checkbox. I have occasionally used this when dissatisfied 
with the fixed position result for a wrapped figure.


Andrew


Re: Wrapped figure

2014-10-01 Thread aparsloe


On 2/10/2014 12:55 a.m., Helge Hafting wrote:


Den 01. okt. 2014 01:18, skrev Patrick Dupre:

Hello,

I am not satisfied by the placement of wrapped figures:
Probably, because in one part of the document there is too many
figures compared to the text, there is some large spaces kept blank
on the side of the wrapped figures.

Is there any tip that I could use?
Actually, latex should just move the pictures a bit farther where there
are no more figures if it is the issue.

I use outer placement and allow floating, one column.
If I change for left or right of inner, the figure remains on the 
left side.


The setting is typically 45% of the pagewidth.

Wrapped figures is one of the few things LaTeX isn't good at.
I don't think the wrapped figures float around, so if my 
understanding is correct, they will not be moved automatically. You 
can move them yourself though, using cut  paste.

Helge Hafting

In LyX, Insert  Float  Figure Wrap Float does does provide a floating 
option. When you right click on the label, under Settings, there is an 
Allow floating checkbox. I have occasionally used this when dissatisfied 
with the fixed position result for a wrapped figure.


Andrew


Re: Wrapped figure

2014-10-01 Thread aparsloe


On 2/10/2014 12:55 a.m., Helge Hafting wrote:


Den 01. okt. 2014 01:18, skrev Patrick Dupre:

Hello,

I am not satisfied by the placement of wrapped figures:
Probably, because in one part of the document there is too many
figures compared to the text, there is some large spaces kept blank
on the side of the wrapped figures.

Is there any tip that I could use?
Actually, latex should just move the pictures a bit farther where there
are no more figures if it is the issue.

I use outer placement and allow floating, one column.
If I change for left or right of inner, the figure remains on the 
left side.


The setting is typically 45% of the pagewidth.

Wrapped figures is one of the few things LaTeX isn't good at.
I don't think the wrapped figures "float around", so if my 
understanding is correct, they will not be moved automatically. You 
can move them yourself though, using cut & paste.

Helge Hafting

In LyX, Insert > Float > Figure Wrap Float does does provide a floating 
option. When you right click on the label, under Settings, there is an 
Allow floating checkbox. I have occasionally used this when dissatisfied 
with the fixed position result for a wrapped figure.


Andrew


Re: some weird LYX error

2014-09-08 Thread aparsloe


On 8/09/2014 5:57 p.m., Y. Xu wrote:

Dear Sir/Madam,

I've been using LYX for more than a year, this is the first time I ran 
into this problem. After updating to the latest LYX version, it kept 
showing this error ! Package babel Error: You haven't specified a 
language option. (I copied the whole message and attached it below) 
If I go to Miktex package manager, it refuse to let me install any 
package. Miktex package manager reports another error, Windows API 
error 5: Access is denied. It never happened before...It seems to be 
a stupid question, but I cannot work with my team members on the 
repository without LYX...really need some help.


Thanks a lot!

Best,
Yan


Hullo Yan,

 I had this problem earlier in the year. I think babel changed the way 
it functions and you now need to explicitly choose language definition 
files. First, close any program (like LyX) that might be using your TeX 
distribution. This can sometimes cause MiKTeX problems when trying to 
download files. Sometimes I've had to go to the Windows Task Manager 
(ctrl+shift+esc) to explicitly shut down a latex process that is 
continuing to run because of some earlier error (generally caused by me) 
in LyX or TeXworks. Now right click on the MiKTeX package manager and 
run as administrator. Scroll down the list to babel, below which you 
will see a long list of separate language files. Select the ones you 
want -- babel-english probably, and any others (click on them while 
holding down the control key) then click the + button top left, which 
should lead to MiKTeX downloading them into your MiKTeX distribution. 
This resolved the problem for me.


If the Access is denied error persists, try rebooting your computer.

Andrew


Re: some weird LYX error

2014-09-08 Thread aparsloe


On 8/09/2014 5:57 p.m., Y. Xu wrote:

Dear Sir/Madam,

I've been using LYX for more than a year, this is the first time I ran 
into this problem. After updating to the latest LYX version, it kept 
showing this error ! Package babel Error: You haven't specified a 
language option. (I copied the whole message and attached it below) 
If I go to Miktex package manager, it refuse to let me install any 
package. Miktex package manager reports another error, Windows API 
error 5: Access is denied. It never happened before...It seems to be 
a stupid question, but I cannot work with my team members on the 
repository without LYX...really need some help.


Thanks a lot!

Best,
Yan


Hullo Yan,

 I had this problem earlier in the year. I think babel changed the way 
it functions and you now need to explicitly choose language definition 
files. First, close any program (like LyX) that might be using your TeX 
distribution. This can sometimes cause MiKTeX problems when trying to 
download files. Sometimes I've had to go to the Windows Task Manager 
(ctrl+shift+esc) to explicitly shut down a latex process that is 
continuing to run because of some earlier error (generally caused by me) 
in LyX or TeXworks. Now right click on the MiKTeX package manager and 
run as administrator. Scroll down the list to babel, below which you 
will see a long list of separate language files. Select the ones you 
want -- babel-english probably, and any others (click on them while 
holding down the control key) then click the + button top left, which 
should lead to MiKTeX downloading them into your MiKTeX distribution. 
This resolved the problem for me.


If the Access is denied error persists, try rebooting your computer.

Andrew


Re: some weird LYX error

2014-09-08 Thread aparsloe


On 8/09/2014 5:57 p.m., Y. Xu wrote:

Dear Sir/Madam,

I've been using LYX for more than a year, this is the first time I ran 
into this problem. After updating to the latest LYX version, it kept 
showing this error "! Package babel Error: You haven't specified a 
language option." (I copied the whole message and attached it below) 
If I go to Miktex package manager, it refuse to let me install any 
package. Miktex package manager reports another error, "Windows API 
error 5: Access is denied." It never happened before...It seems to be 
a stupid question, but I cannot work with my team members on the 
repository without LYX...really need some help.


Thanks a lot!

Best,
Yan


Hullo Yan,

 I had this problem earlier in the year. I think babel changed the way 
it functions and you now need to explicitly choose language definition 
files. First, close any program (like LyX) that might be using your TeX 
distribution. This can sometimes cause MiKTeX problems when trying to 
download files. Sometimes I've had to go to the Windows Task Manager 
(ctrl+shift+esc) to explicitly shut down a latex process that is 
continuing to run because of some earlier error (generally caused by me) 
in LyX or TeXworks. Now right click on the MiKTeX package manager and 
run as administrator. Scroll down the list to babel, below which you 
will see a long list of separate language files. Select the ones you 
want -- babel-english probably, and any others (click on them while 
holding down the control key) then click the + button top left, which 
should lead to MiKTeX downloading them into your MiKTeX distribution. 
This resolved the problem for me.


If the "Access is denied" error persists, try rebooting your computer.

Andrew


Re: using a .cls file in the document directory (Windows)

2014-07-18 Thread aparsloe


On 19/07/2014 9:51 a.m., Ross Boylan wrote:
My document use the nih class and layout (the latter from Rob Oakes) 
and is based on the template provided with the nih for LyX zipfile. 
nih.cls and nih.layout are in the same directory as the document. 
Windows 7.  LyX Version 2.0.6.  MikTeX 2.9.


Producing pdfs (via pdflatex) works fine on linux and MacOS, but not 
Windows.  The problem is that on Windows 
c:\MikTeX\tex\latex\nih\nih.cls is used instead of the version in the 
document directory.  That version includes a bunch of stuff which is 
in the document preamble, and so already defined errors occur.  Some 
of it really needs to be in the preamble since it consists of stuff 
that vary with each document.  The nih.cls in the document directory 
does not contain the preamble stuff.


Is there a way to use the nih.cls in the document directory?

The LyX customization manual, section 5.1, has instructions for 
installing a local copy.  This seems rather involved and will not 
reflect changes to the nih.cls in my document directory.  I'm probably 
not going to change it, but I'd rather not set things up in such a 
fragile way.


I tried to use a local layout in the Document Settings | Document 
Class, but this didn't change the nih.cls that was used.


Thanks.
Ross Boylan

P.S. I could change the commands in the preamble to \renewcommand, but 
then things would stop working under the other OS's, since the command 
is not previously defined for them.  Also, \newcommands are not the 
only thing in the preamble, and I'm not sure if duplicating the other 
stuff is OK.


Have you looked at the Settings option for MiKTeX? (I always Run as 
administrator.)  Under the Roots tab you can specify your own texmf 
tree to search, and the order in the list determines the order in which 
files are searched. I'm not sure that just including your document 
directory among the Roots will necessarily work. MiKTeX insists on a 
certain amount of directory structure (like the main installation). 
Alternatively, if you don't want to set up your own texmf tree, it seems 
from my installation that MiKTeX searches in the order


C:\Users\your name\AppData\Roaming\MiKTeX\2.9
C:\Users\your name\AppData\Local\MiKTeX\2.9
your personal texmf tree
C:\Program Files (x86)\MiKTeX 2.9
C:\ProgramData\MiKTeX\2.9

so putting your modified nih.cls in the first directory listed above 
should do the trick. (I've never done this, but I have got a personal 
texmf tree, which is searched before the main MiKTeX installation.) You 
will need to Refresh FNDB on the General tab of the Settings dialog for 
MiKTeX to find the newly placed file.


Andrew



Re: using a .cls file in the document directory (Windows)

2014-07-18 Thread aparsloe


On 19/07/2014 9:51 a.m., Ross Boylan wrote:
My document use the nih class and layout (the latter from Rob Oakes) 
and is based on the template provided with the nih for LyX zipfile. 
nih.cls and nih.layout are in the same directory as the document. 
Windows 7.  LyX Version 2.0.6.  MikTeX 2.9.


Producing pdfs (via pdflatex) works fine on linux and MacOS, but not 
Windows.  The problem is that on Windows 
c:\MikTeX\tex\latex\nih\nih.cls is used instead of the version in the 
document directory.  That version includes a bunch of stuff which is 
in the document preamble, and so already defined errors occur.  Some 
of it really needs to be in the preamble since it consists of stuff 
that vary with each document.  The nih.cls in the document directory 
does not contain the preamble stuff.


Is there a way to use the nih.cls in the document directory?

The LyX customization manual, section 5.1, has instructions for 
installing a local copy.  This seems rather involved and will not 
reflect changes to the nih.cls in my document directory.  I'm probably 
not going to change it, but I'd rather not set things up in such a 
fragile way.


I tried to use a local layout in the Document Settings | Document 
Class, but this didn't change the nih.cls that was used.


Thanks.
Ross Boylan

P.S. I could change the commands in the preamble to \renewcommand, but 
then things would stop working under the other OS's, since the command 
is not previously defined for them.  Also, \newcommands are not the 
only thing in the preamble, and I'm not sure if duplicating the other 
stuff is OK.


Have you looked at the Settings option for MiKTeX? (I always Run as 
administrator.)  Under the Roots tab you can specify your own texmf 
tree to search, and the order in the list determines the order in which 
files are searched. I'm not sure that just including your document 
directory among the Roots will necessarily work. MiKTeX insists on a 
certain amount of directory structure (like the main installation). 
Alternatively, if you don't want to set up your own texmf tree, it seems 
from my installation that MiKTeX searches in the order


C:\Users\your name\AppData\Roaming\MiKTeX\2.9
C:\Users\your name\AppData\Local\MiKTeX\2.9
your personal texmf tree
C:\Program Files (x86)\MiKTeX 2.9
C:\ProgramData\MiKTeX\2.9

so putting your modified nih.cls in the first directory listed above 
should do the trick. (I've never done this, but I have got a personal 
texmf tree, which is searched before the main MiKTeX installation.) You 
will need to Refresh FNDB on the General tab of the Settings dialog for 
MiKTeX to find the newly placed file.


Andrew



Re: using a .cls file in the document directory (Windows)

2014-07-18 Thread aparsloe


On 19/07/2014 9:51 a.m., Ross Boylan wrote:
My document use the nih class and layout (the latter from Rob Oakes) 
and is based on the template provided with the nih for LyX zipfile. 
nih.cls and nih.layout are in the same directory as the document. 
Windows 7.  LyX Version 2.0.6.  MikTeX 2.9.


Producing pdfs (via pdflatex) works fine on linux and MacOS, but not 
Windows.  The problem is that on Windows 
c:\MikTeX\tex\latex\nih\nih.cls is used instead of the version in the 
document directory.  That version includes a bunch of stuff which is 
in the document preamble, and so "already defined" errors occur.  Some 
of it really needs to be in the preamble since it consists of stuff 
that vary with each document.  The nih.cls in the document directory 
does not contain the preamble stuff.


Is there a way to use the nih.cls in the document directory?

The LyX customization manual, section 5.1, has instructions for 
installing a local copy.  This seems rather involved and will not 
reflect changes to the nih.cls in my document directory.  I'm probably 
not going to change it, but I'd rather not set things up in such a 
fragile way.


I tried to use a local layout in the Document Settings | Document 
Class, but this didn't change the nih.cls that was used.


Thanks.
Ross Boylan

P.S. I could change the commands in the preamble to \renewcommand, but 
then things would stop working under the other OS's, since the command 
is not previously defined for them.  Also, \newcommands are not the 
only thing in the preamble, and I'm not sure if duplicating the other 
stuff is OK.


Have you looked at the Settings option for MiKTeX? (I always "Run as 
administrator".)  Under the Roots tab you can specify your own texmf 
tree to search, and the order in the list determines the order in which 
files are searched. I'm not sure that just including your document 
directory among the Roots will necessarily work. MiKTeX insists on a 
certain amount of directory structure (like the main installation). 
Alternatively, if you don't want to set up your own texmf tree, it seems 
from my installation that MiKTeX searches in the order


C:\Users\\AppData\Roaming\MiKTeX\2.9
C:\Users\\AppData\Local\MiKTeX\2.9

C:\Program Files (x86)\MiKTeX 2.9
C:\ProgramData\MiKTeX\2.9

so putting your modified nih.cls in the first directory listed above 
should do the trick. (I've never done this, but I have got a personal 
texmf tree, which is searched before the main MiKTeX installation.) You 
will need to Refresh FNDB on the General tab of the Settings dialog for 
MiKTeX to find the newly placed file.


Andrew



Re: date format

2014-07-16 Thread aparsloe


On 17/07/2014 2:01 p.m., Scott Kostyshak wrote:

On Wed, Jul 16, 2014 at 9:27 PM, Will Parsons varro@nodomain.invalid wrote:

Will Parsons wrote:

In a document I'm writing, I would like to print the date of the last
edit in the title page.  I've discovered [Insert = Date], which looks
like it might be what I want (does it update when I save the document
again?), but the format is 07/16/14, which is a common format for
North America (which is where I am), but I would prefer a different
format, preferably 14 June 2014, or even the ISO standard
2014-07-14, but I can't figure out how to adjust this.  Is this
configurable via LyX, or do I have to do some LaTeX magic?

Of course, what I meant was '16 June 2014, or even the ISO standard
2014-07-16', (which I guess illustrates that even *I* find the
format 07/16/14 confusing, used to it though I am...

Hi Will, you can do this with Insert  File  External Material.
It is not intuitive at all (what does a data have to do with inserting
a file?), but it is done that way because it was easy to implement. In
the dialog, you don't have to choose a file. Just change Template to
Date. Note that the implementation of this is just a plain text
file, so if you want to modify it to your preferences, you don't need
to recompile LyX. Take a look at lib/external_templates and the
converter for date. See Help  Customization for more information.

Using LaTeX in ERT is another option and might be more robust in my opinion.

Scott

The LaTeX package datetime offers a wide variety of date (and time) formats.

Andrew



Re: date format

2014-07-16 Thread aparsloe


On 17/07/2014 2:01 p.m., Scott Kostyshak wrote:

On Wed, Jul 16, 2014 at 9:27 PM, Will Parsons varro@nodomain.invalid wrote:

Will Parsons wrote:

In a document I'm writing, I would like to print the date of the last
edit in the title page.  I've discovered [Insert = Date], which looks
like it might be what I want (does it update when I save the document
again?), but the format is 07/16/14, which is a common format for
North America (which is where I am), but I would prefer a different
format, preferably 14 June 2014, or even the ISO standard
2014-07-14, but I can't figure out how to adjust this.  Is this
configurable via LyX, or do I have to do some LaTeX magic?

Of course, what I meant was '16 June 2014, or even the ISO standard
2014-07-16', (which I guess illustrates that even *I* find the
format 07/16/14 confusing, used to it though I am...

Hi Will, you can do this with Insert  File  External Material.
It is not intuitive at all (what does a data have to do with inserting
a file?), but it is done that way because it was easy to implement. In
the dialog, you don't have to choose a file. Just change Template to
Date. Note that the implementation of this is just a plain text
file, so if you want to modify it to your preferences, you don't need
to recompile LyX. Take a look at lib/external_templates and the
converter for date. See Help  Customization for more information.

Using LaTeX in ERT is another option and might be more robust in my opinion.

Scott

The LaTeX package datetime offers a wide variety of date (and time) formats.

Andrew



Re: date format

2014-07-16 Thread aparsloe


On 17/07/2014 2:01 p.m., Scott Kostyshak wrote:

On Wed, Jul 16, 2014 at 9:27 PM, Will Parsons  wrote:

Will Parsons wrote:

In a document I'm writing, I would like to print the date of the last
edit in the title page.  I've discovered [Insert => Date], which looks
like it might be what I want (does it update when I save the document
again?), but the format is "07/16/14", which is a common format for
North America (which is where I am), but I would prefer a different
format, preferably "14 June 2014", or even the ISO standard
"2014-07-14", but I can't figure out how to adjust this.  Is this
configurable via LyX, or do I have to do some LaTeX magic?

Of course, what I meant was '"16 June 2014", or even the ISO standard
"2014-07-16"', (which I guess illustrates that even *I* find the
format "07/16/14" confusing, used to it though I am...

Hi Will, you can do this with Insert > File > External Material.
It is not intuitive at all (what does a data have to do with inserting
a file?), but it is done that way because it was easy to implement. In
the dialog, you don't have to choose a file. Just change "Template" to
"Date". Note that the implementation of this is just a plain text
file, so if you want to modify it to your preferences, you don't need
to recompile LyX. Take a look at lib/external_templates and the
converter for date. See Help > Customization for more information.

Using LaTeX in ERT is another option and might be more robust in my opinion.

Scott

The LaTeX package datetime offers a wide variety of date (and time) formats.

Andrew



Re: Backspacing at the start of an inset occupying a paragraph

2014-06-10 Thread aparsloe


On 10/06/2014 8:38 p.m., Jean-Marc Lasgouttes wrote:

08/06/2014 22:57, Richard Heck:

I think the reason this happens is that the layout in effect in the
inset becomes the layout in effect in the paragraph, if the inset is the
only thing there. I'm not sure exactly why it works that way, though.


This is is probably the case indeed. This makes sense when the note 
contains a Section environment for example. The behavior should be 
dependent on whether the layout is the default one or not.


I have no idea of where this code lives, though.

I think this deserves a bug report.

JMarc
Alas, you have confused me now. I'm not sure what to report -- my 
original posting or something else. Since standard is the default 
layout, that is indeed what the inset dissolves to if it contains normal 
text but, having been prompted to try a section heading in a note, it 
dissolves into a section heading (even within a list -- I see that it is 
perfectly possible to put a section heading, numbered, bolded, larger 
type, within a list or sublist or subsublist, and have it indented 
accordingly).


Andrew



Re: Backspacing at the start of an inset occupying a paragraph

2014-06-10 Thread aparsloe


On 10/06/2014 8:38 p.m., Jean-Marc Lasgouttes wrote:

08/06/2014 22:57, Richard Heck:

I think the reason this happens is that the layout in effect in the
inset becomes the layout in effect in the paragraph, if the inset is the
only thing there. I'm not sure exactly why it works that way, though.


This is is probably the case indeed. This makes sense when the note 
contains a Section environment for example. The behavior should be 
dependent on whether the layout is the default one or not.


I have no idea of where this code lives, though.

I think this deserves a bug report.

JMarc
Alas, you have confused me now. I'm not sure what to report -- my 
original posting or something else. Since standard is the default 
layout, that is indeed what the inset dissolves to if it contains normal 
text but, having been prompted to try a section heading in a note, it 
dissolves into a section heading (even within a list -- I see that it is 
perfectly possible to put a section heading, numbered, bolded, larger 
type, within a list or sublist or subsublist, and have it indented 
accordingly).


Andrew



Re: Backspacing at the start of an inset occupying a paragraph

2014-06-10 Thread aparsloe


On 10/06/2014 8:38 p.m., Jean-Marc Lasgouttes wrote:

08/06/2014 22:57, Richard Heck:

I think the reason this happens is that the layout in effect in the
inset becomes the layout in effect in the paragraph, if the inset is the
only thing there. I'm not sure exactly why it works that way, though.


This is is probably the case indeed. This makes sense when the note 
contains a Section environment for example. The behavior should be 
dependent on whether the layout is the default one or not.


I have no idea of where this code lives, though.

I think this deserves a bug report.

JMarc
Alas, you have confused me now. I'm not sure what to report -- my 
original posting or something else. Since standard is the default 
layout, that is indeed what the inset dissolves to if it contains normal 
text but, having been prompted to try a section heading in a note, it 
dissolves into a section heading (even within a list -- I see that it is 
perfectly possible to put a section heading, numbered, bolded, larger 
type, within a list or sublist or subsublist, and have it indented 
accordingly).


Andrew



Backspacing at the start of an inset occupying a paragraph

2014-06-06 Thread aparsloe
Placing the cursor at the start of an inset and pressing the backspace 
key destroys the inset and makes its content part of the surrounding 
text. However, if the inset is the *only* item in a paragraph 
environment (list, Quotation, etc.) then not only is the inset destroyed 
but so too is the environment, which becomes a standard paragraph. 
Writing [note](note contents) to denote a note inset,


1. [note](blah blah blah)
(a) sub-item
(b) another sub-item

displays in the pdf as

1. (a) sub-item
(b) another sub-item

which may what is desired, but if you feel the blah blah blah should 
be made visible in the pdf and put the cursor before the first blah 
and press backspace, the result is


blah blah blah  -- a standard paragraph
1. sub-item
(a) another sub-item

What I expected was

1. blah blah blah
(a) sub-item
(b) another sub-item

This seems to apply to all insets (I've also tried footnotes, margin 
notes, minipages, ERT), not just notes.


Andrew


Backspacing at the start of an inset occupying a paragraph

2014-06-06 Thread aparsloe
Placing the cursor at the start of an inset and pressing the backspace 
key destroys the inset and makes its content part of the surrounding 
text. However, if the inset is the *only* item in a paragraph 
environment (list, Quotation, etc.) then not only is the inset destroyed 
but so too is the environment, which becomes a standard paragraph. 
Writing [note](note contents) to denote a note inset,


1. [note](blah blah blah)
(a) sub-item
(b) another sub-item

displays in the pdf as

1. (a) sub-item
(b) another sub-item

which may what is desired, but if you feel the blah blah blah should 
be made visible in the pdf and put the cursor before the first blah 
and press backspace, the result is


blah blah blah  -- a standard paragraph
1. sub-item
(a) another sub-item

What I expected was

1. blah blah blah
(a) sub-item
(b) another sub-item

This seems to apply to all insets (I've also tried footnotes, margin 
notes, minipages, ERT), not just notes.


Andrew


Backspacing at the start of an inset occupying a paragraph

2014-06-06 Thread aparsloe
Placing the cursor at the start of an inset and pressing the backspace 
key destroys the inset and makes its content part of the surrounding 
text. However, if the inset is the *only* item in a paragraph 
environment (list, Quotation, etc.) then not only is the inset destroyed 
but so too is the environment, which becomes a standard paragraph. 
Writing [note](note contents) to denote a note inset,


1. [note](blah blah blah)
(a) sub-item
(b) another sub-item

displays in the pdf as

1. (a) sub-item
(b) another sub-item

which may what is desired, but if you feel the "blah blah blah" should 
be made visible in the pdf and put the cursor before the first "blah" 
and press backspace, the result is


blah blah blah  <-- a standard paragraph
1. sub-item
(a) another sub-item

What I expected was

1. blah blah blah
(a) sub-item
(b) another sub-item

This seems to apply to all insets (I've also tried footnotes, margin 
notes, minipages, ERT), not just notes.


Andrew


Re: FW: help/cannot open after emergency stop...

2014-05-16 Thread aparsloe


On 16/05/2014 9:45 p.m., Jürgen Spitzmüller wrote:

2014-05-16 9:41 GMT+02:00 Jürgen Spitzmüller:

2014-05-16 8:34 GMT+02:00 Wu, Yan:

Today when I am writing with LyX. Suddenly the document
crushed, with one message says: emergency stop...I could not
tell exactly.

Then the file closed but I could not open it again later. It
is really a disaster for me if I lost the document.

I write the email to ask any help I can get from you. Thank
you very much in advance. Looking forward to your response.


First, check if you have a backup in the backup directory set in
Tools  Preferences  Path. If so (hopefully), you will find a
backup of the file there.

Next, open the LyX file with a text editor. If it ends with

\begin_inset Tabular

instead of

\end_body
\end_document

then you have probably faced this bug

http://www.lyx.org/trac/ticket/9049


Just for the record: It turned out it was this bug, but fortunately, 
we managed to restore the file completely. Yan sent me the emergency 
files and backups (the one embraced in # and the one ending with 
lyx~), and it turned out both were complete, and the latter was the 
most actual one.


Here is an advice, in case you are unlucky enough to get hit by this:

* Check if the lyx file itself is complete (ends with \end_document)
* If not, check if either the emergency file (#...#) or the backup 
file (*.lyx~) are complete

* If only one is, rename it to the name of the original file.
* If both are (as in Yan's case), give them different names and check 
the differences in LyX via Tools  Compare


Jürgen
Perhaps it is time to have a default location for a backup directory 
(beside one's personal LyX directory?), and for backing up files to be 
turned on out of the box. Not everyone scrutinises all the options 
under Tools  Preferences.  I suspect there are plenty of users who 
don't know about backups and how easy it is to create them 
automatically. People can always turn this off or change the location if 
they have other preferences.


Andrew

PS I've named my backup directory Lymbo.




Re: FW: help/cannot open after emergency stop...

2014-05-16 Thread aparsloe


On 16/05/2014 9:45 p.m., Jürgen Spitzmüller wrote:

2014-05-16 9:41 GMT+02:00 Jürgen Spitzmüller:

2014-05-16 8:34 GMT+02:00 Wu, Yan:

Today when I am writing with LyX. Suddenly the document
crushed, with one message says: emergency stop...I could not
tell exactly.

Then the file closed but I could not open it again later. It
is really a disaster for me if I lost the document.

I write the email to ask any help I can get from you. Thank
you very much in advance. Looking forward to your response.


First, check if you have a backup in the backup directory set in
Tools  Preferences  Path. If so (hopefully), you will find a
backup of the file there.

Next, open the LyX file with a text editor. If it ends with

\begin_inset Tabular

instead of

\end_body
\end_document

then you have probably faced this bug

http://www.lyx.org/trac/ticket/9049


Just for the record: It turned out it was this bug, but fortunately, 
we managed to restore the file completely. Yan sent me the emergency 
files and backups (the one embraced in # and the one ending with 
lyx~), and it turned out both were complete, and the latter was the 
most actual one.


Here is an advice, in case you are unlucky enough to get hit by this:

* Check if the lyx file itself is complete (ends with \end_document)
* If not, check if either the emergency file (#...#) or the backup 
file (*.lyx~) are complete

* If only one is, rename it to the name of the original file.
* If both are (as in Yan's case), give them different names and check 
the differences in LyX via Tools  Compare


Jürgen
Perhaps it is time to have a default location for a backup directory 
(beside one's personal LyX directory?), and for backing up files to be 
turned on out of the box. Not everyone scrutinises all the options 
under Tools  Preferences.  I suspect there are plenty of users who 
don't know about backups and how easy it is to create them 
automatically. People can always turn this off or change the location if 
they have other preferences.


Andrew

PS I've named my backup directory Lymbo.




Re: FW: help/cannot open after emergency stop...

2014-05-16 Thread aparsloe


On 16/05/2014 9:45 p.m., Jürgen Spitzmüller wrote:

2014-05-16 9:41 GMT+02:00 Jürgen Spitzmüller:

2014-05-16 8:34 GMT+02:00 Wu, Yan:

Today when I am writing with LyX. Suddenly the document
crushed, with one message says: emergency stop...I could not
tell exactly.

Then the file closed but I could not open it again later. It
is really a disaster for me if I lost the document.

I write the email to ask any help I can get from you. Thank
you very much in advance. Looking forward to your response.


First, check if you have a backup in the backup directory set in
Tools > Preferences > Path. If so (hopefully), you will find a
backup of the file there.

Next, open the LyX file with a text editor. If it ends with

\begin_inset Tabular

instead of

\end_body
\end_document

then you have probably faced this bug

http://www.lyx.org/trac/ticket/9049


Just for the record: It turned out it was this bug, but fortunately, 
we managed to restore the file completely. Yan sent me the emergency 
files and backups (the one embraced in # and the one ending with 
lyx~), and it turned out both were complete, and the latter was the 
most actual one.


Here is an advice, in case you are unlucky enough to get hit by this:

* Check if the lyx file itself is complete (ends with \end_document)
* If not, check if either the emergency file (#...#) or the backup 
file (*.lyx~) are complete

* If only one is, rename it to the name of the original file.
* If both are (as in Yan's case), give them different names and check 
the differences in LyX via Tools > Compare


Jürgen
Perhaps it is time to have a default location for a backup directory 
(beside one's personal LyX directory?), and for backing up files to be 
turned on "out of the box". Not everyone scrutinises all the options 
under Tools > Preferences.  I suspect there are plenty of users who 
don't know about backups and how easy it is to create them 
automatically. People can always turn this off or change the location if 
they have other preferences.


Andrew

PS I've named my backup directory Lymbo.




Re: LyX crash and cannot open file

2014-05-15 Thread aparsloe

On 15/05/2014 6:37 p.m., Jürgen Spitzmüller wrote:

In case the files are really corrupted, that is, if the .lyx and/or the 
.lyx.emergency file do not end with

\end_body
\end_document

you can check if you have a working backup in your backups directory 
(see Tools  Preferences  Paths).


HTH
Jürgen

I've often thought that the backup files should be more accessible -- 
for instance through the normal File  Open dialog. At present the 
dialog has a combo box (is that the term?) at the lower right offering 
LyX Documents (*.lyx) and a triangular arrow suggesting there are more 
options below. But there aren't. It would be good to see *.lyx~ files 
there and to have the ability to open them. I realise naming conflicts 
would need to be sorted out, but the present accessibility of backup 
files is awkward (which may be a good thing of course).


Andrew


Re: LyX crash and cannot open file

2014-05-15 Thread aparsloe

On 15/05/2014 6:37 p.m., Jürgen Spitzmüller wrote:

In case the files are really corrupted, that is, if the .lyx and/or the 
.lyx.emergency file do not end with

\end_body
\end_document

you can check if you have a working backup in your backups directory 
(see Tools  Preferences  Paths).


HTH
Jürgen

I've often thought that the backup files should be more accessible -- 
for instance through the normal File  Open dialog. At present the 
dialog has a combo box (is that the term?) at the lower right offering 
LyX Documents (*.lyx) and a triangular arrow suggesting there are more 
options below. But there aren't. It would be good to see *.lyx~ files 
there and to have the ability to open them. I realise naming conflicts 
would need to be sorted out, but the present accessibility of backup 
files is awkward (which may be a good thing of course).


Andrew


Re: LyX crash and cannot open file

2014-05-15 Thread aparsloe

On 15/05/2014 6:37 p.m., Jürgen Spitzmüller wrote:

In case the files are really corrupted, that is, if the .lyx and/or the 
.lyx.emergency file do not end with

\end_body
\end_document

you can check if you have a working backup in your backups directory 
(see Tools > Preferences > Paths).


HTH
Jürgen

I've often thought that the backup files should be more accessible -- 
for instance through the normal File > Open dialog. At present the 
dialog has a combo box (is that the term?) at the lower right offering 
"LyX Documents (*.lyx)" and a triangular arrow suggesting there are more 
options below. But there aren't. It would be good to see *.lyx~ files 
there and to have the ability to open them. I realise naming conflicts 
would need to be sorted out, but the present accessibility of backup 
files is awkward (which may be a good thing of course).


Andrew


Re: Lyx2.1 problem with metafile2eps converter

2014-05-13 Thread aparsloe


On 13/05/2014 7:46 a.m., Georg Baum wrote:

aparsloe wrote:


On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:

Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images
from adobe reader with the embedded tool and paste directly on lyx
(ctrl+V)... I have a error message Can not open Metafle to EPS converter
printer (without i on Metafle :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe
the same error occur... Any idea ?

Is the virtual printer installed which is used by metafile2eps.exe? Maybe
something wnet wrong during installation.


I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the
copy and paste works without problems, so this looks like a problem at
your end rather than with LyX.

Also for copying vector images? metafile2eps.exe is not used for bitmap
images or text. You can easily see whether a vector imagtes was copied by
looking at the type of the copied image: If it is eps, the original image
was in vector format, and metafile2eps.exe worked.


Georg
I was hasty in my response. In Adobe Reader X, under the Edit menu, 
there's the option Take a Snapshot. I assume this is the embedded tool 
referred to. When I copy a figure from the pdf and then go to paste it 
into LyX I get asked first to save the file, always as an .emf file 
although that can be changed to .png if I wish. The first one I paste 
into LyX reproduces the copied figure. Copying and pasting other figures 
(after saving in .emf format) generally insert into LyX  figures that 
are about 25 times too big. I have to scale to about 4% for the Adobe 
-- LyX -- Adobe round trip to reproduce a figure about the size of the 
original. But this doesn't happen always and seems to depend on whether 
I've saved a file at some point as .png (which seems to paste at the 
right size). So, it works for a one-off, but clearly not flawlessly for 
a number of copy-pastes.


Andrew


Re: Lyx2.1 problem with metafile2eps converter

2014-05-13 Thread aparsloe


On 13/05/2014 7:46 a.m., Georg Baum wrote:

aparsloe wrote:


On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:

Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images
from adobe reader with the embedded tool and paste directly on lyx
(ctrl+V)... I have a error message Can not open Metafle to EPS converter
printer (without i on Metafle :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe
the same error occur... Any idea ?

Is the virtual printer installed which is used by metafile2eps.exe? Maybe
something wnet wrong during installation.


I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the
copy and paste works without problems, so this looks like a problem at
your end rather than with LyX.

Also for copying vector images? metafile2eps.exe is not used for bitmap
images or text. You can easily see whether a vector imagtes was copied by
looking at the type of the copied image: If it is eps, the original image
was in vector format, and metafile2eps.exe worked.


Georg
I was hasty in my response. In Adobe Reader X, under the Edit menu, 
there's the option Take a Snapshot. I assume this is the embedded tool 
referred to. When I copy a figure from the pdf and then go to paste it 
into LyX I get asked first to save the file, always as an .emf file 
although that can be changed to .png if I wish. The first one I paste 
into LyX reproduces the copied figure. Copying and pasting other figures 
(after saving in .emf format) generally insert into LyX  figures that 
are about 25 times too big. I have to scale to about 4% for the Adobe 
-- LyX -- Adobe round trip to reproduce a figure about the size of the 
original. But this doesn't happen always and seems to depend on whether 
I've saved a file at some point as .png (which seems to paste at the 
right size). So, it works for a one-off, but clearly not flawlessly for 
a number of copy-pastes.


Andrew


Re: Lyx2.1 problem with metafile2eps converter

2014-05-13 Thread aparsloe


On 13/05/2014 7:46 a.m., Georg Baum wrote:

aparsloe wrote:


On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:

Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images
from adobe reader with the embedded tool and paste directly on lyx
(ctrl+V)... I have a error message "Can not open Metafle to EPS converter
printer" (without "i" on "Metafle" :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe
the same error occur... Any idea ?

Is the virtual printer installed which is used by metafile2eps.exe? Maybe
something wnet wrong during installation.


I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the
copy and paste works without problems, so this looks like a problem at
your end rather than with LyX.

Also for copying vector images? metafile2eps.exe is not used for bitmap
images or text. You can easily see whether a vector imagtes was copied by
looking at the type of the copied image: If it is eps, the original image
was in vector format, and metafile2eps.exe worked.


Georg
I was hasty in my response. In Adobe Reader X, under the Edit menu, 
there's the option Take a Snapshot. I assume this is the "embedded tool" 
referred to. When I copy a figure from the pdf and then go to paste it 
into LyX I get asked first to save the file, always as an .emf file 
although that can be changed to .png if I wish. The first one I paste 
into LyX reproduces the copied figure. Copying and pasting other figures 
(after saving in .emf format) generally insert into LyX  figures that 
are about 25 times too big. I have to scale to about 4% for the Adobe 
--> LyX --> Adobe round trip to reproduce a figure about the size of the 
original. But this doesn't happen always and seems to depend on whether 
I've saved a file at some point as .png (which seems to paste at the 
right size). So, it works for a one-off, but clearly not flawlessly for 
a number of copy-pastes.


Andrew


Re: Lyx2.1 problem with metafile2eps converter

2014-05-10 Thread aparsloe

On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:

Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images from adobe reader with the embedded 
tool and paste directly on lyx (ctrl+V)... I have a error message Can not open Metafle to EPS converter 
printer (without i on Metafle :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe the 
same error occur... Any idea ?

Thanks

Didier
I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the 
copy and paste works without problems, so this looks like a problem at 
your end rather than with LyX.


Andrew


Re: Lyx2.1 problem with metafile2eps converter

2014-05-10 Thread aparsloe

On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:

Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images from adobe reader with the embedded 
tool and paste directly on lyx (ctrl+V)... I have a error message Can not open Metafle to EPS converter 
printer (without i on Metafle :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe the 
same error occur... Any idea ?

Thanks

Didier
I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the 
copy and paste works without problems, so this looks like a problem at 
your end rather than with LyX.


Andrew


Re: Lyx2.1 problem with metafile2eps converter

2014-05-10 Thread aparsloe

On 11/05/2014 8:31 a.m., didiergab...@free.fr wrote:

Hi,

I have problem wth lyx2.1 (on windows 7 64bits)... I often copy images from adobe reader with the embedded 
tool and paste directly on lyx (ctrl+V)... I have a error message "Can not open Metafle to EPS converter 
printer" (without "i" on "Metafle" :o)

When I try the conversion directly from Lyx2.1 dir\bin\metafile2eps.exe the 
same error occur... Any idea ?

Thanks

Didier
I've also got LyX2.1 on  64 bit Windows 7, and Adobe Reader X, and the 
copy and paste works without problems, so this looks like a problem at 
your end rather than with LyX.


Andrew


Re: Beamer in Lyx 2.1.0

2014-05-08 Thread aparsloe


On 8/05/2014 6:25 p.m., Jürgen Spitzmüller wrote:

2014-05-08 4:54 GMT+02:00 Julio Rojas:

You have quoted the behavior of other environments as the
reference for the Frame environment. If I am in a, for example,
Problem environment and I want to get out of it into the
standard environment, all I have to do is issue a couple of returns.


Could you describe this in detail? Which document class, what kind of 
Problem environment? If I use Problem from the Theorems module (or 
Theorem from Beamer itself or similar), multiple returns do not get me 
to Standard. The environment does not change. This is not to say that 
we could not implement this (I see this point), but I do not see the 
behavior now. Generally, Frame should not differ in behavior from 
other environments. It is implemented as all other environments.


Regards
Jürgen

Environments like LyX-Code, Quotation, Quote, Verse and the four list 
environments all  resolve to Standard on two returns. (But Verbatim 
doesn't. Perhaps it should?)


Andrew


Re: Beamer in Lyx 2.1.0

2014-05-08 Thread aparsloe


On 8/05/2014 6:25 p.m., Jürgen Spitzmüller wrote:

2014-05-08 4:54 GMT+02:00 Julio Rojas:

You have quoted the behavior of other environments as the
reference for the Frame environment. If I am in a, for example,
Problem environment and I want to get out of it into the
standard environment, all I have to do is issue a couple of returns.


Could you describe this in detail? Which document class, what kind of 
Problem environment? If I use Problem from the Theorems module (or 
Theorem from Beamer itself or similar), multiple returns do not get me 
to Standard. The environment does not change. This is not to say that 
we could not implement this (I see this point), but I do not see the 
behavior now. Generally, Frame should not differ in behavior from 
other environments. It is implemented as all other environments.


Regards
Jürgen

Environments like LyX-Code, Quotation, Quote, Verse and the four list 
environments all  resolve to Standard on two returns. (But Verbatim 
doesn't. Perhaps it should?)


Andrew


Re: Beamer in Lyx 2.1.0

2014-05-08 Thread aparsloe


On 8/05/2014 6:25 p.m., Jürgen Spitzmüller wrote:

2014-05-08 4:54 GMT+02:00 Julio Rojas:

You have quoted the behavior of other environments as the
reference for the "Frame" environment. If I am in a, for example,
"Problem" environment and I want to get out of it into the
standard environment, all I have to do is issue a couple of returns.


Could you describe this in detail? Which document class, what kind of 
"Problem" environment? If I use Problem from the Theorems module (or 
Theorem from Beamer itself or similar), multiple returns do not get me 
to Standard. The environment does not change. This is not to say that 
we could not implement this (I see this point), but I do not see the 
behavior now. Generally, Frame should not differ in behavior from 
other environments. It is implemented as all other environments.


Regards
Jürgen

Environments like LyX-Code, Quotation, Quote, Verse and the four list 
environments all  resolve to Standard on two returns. (But Verbatim 
doesn't. Perhaps it should?)


Andrew


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-23 Thread aparsloe


On 23/04/2014 10:45 p.m., Csikos Bela wrote:

aparsloe apars...@clear.net.nz írta:

On 23/04/2014 5:50 a.m., John Kane

Currently I am
running Ubuntu 13.10 with LyX 2.1.0. I seem to be having

[LONG SNIP]


I'm the writer of the ShortInsetNames module. I tried it with
2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 and
it doesn't, but it's easily fixed. Open the module in a text editor
and insert double quotes so that the relevant two lines look like:

Hello:

You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be 2.1.0rc1?

I don't see reference to 2.1.0 on the lyx site (main page and under recent 
news) and it was not announced in this list either.

bcsikos

I hope I'm not spoiling the party for the developers, but I downloaded 
from ftp://ftp.lyx.org/pub/lyx/bin/2.1.0/. I think it's the real 2.1.0 
rather than rc1.


And on the subject of the module, as Richard Heck pointed out on the 
developer's list, there is a bug in the layout2layout script. Another 
way of getting the ShortInsetNames module to work with 2.1.0 is to 
change the format  number from 35 to 48 (in a text editor); no double 
quotes needed.


Andrew


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-23 Thread aparsloe


On 23/04/2014 10:45 p.m., Csikos Bela wrote:

aparsloe apars...@clear.net.nz írta:

On 23/04/2014 5:50 a.m., John Kane

Currently I am
running Ubuntu 13.10 with LyX 2.1.0. I seem to be having

[LONG SNIP]


I'm the writer of the ShortInsetNames module. I tried it with
2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 and
it doesn't, but it's easily fixed. Open the module in a text editor
and insert double quotes so that the relevant two lines look like:

Hello:

You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be 2.1.0rc1?

I don't see reference to 2.1.0 on the lyx site (main page and under recent 
news) and it was not announced in this list either.

bcsikos

I hope I'm not spoiling the party for the developers, but I downloaded 
from ftp://ftp.lyx.org/pub/lyx/bin/2.1.0/. I think it's the real 2.1.0 
rather than rc1.


And on the subject of the module, as Richard Heck pointed out on the 
developer's list, there is a bug in the layout2layout script. Another 
way of getting the ShortInsetNames module to work with 2.1.0 is to 
change the format  number from 35 to 48 (in a text editor); no double 
quotes needed.


Andrew


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-23 Thread aparsloe


On 23/04/2014 10:45 p.m., Csikos Bela wrote:

aparsloe <apars...@clear.net.nz> írta:

On 23/04/2014 5:50 a.m., John Kane

Currently I am
running Ubuntu 13.10 with LyX 2.1.0. I seem to be having

[LONG SNIP]


I'm the writer of the ShortInsetNames module. I tried it with
2.1.0beta2 earlier today and it worked. I've now installed 2.1.0 and
it doesn't, but it's easily fixed. Open the module in a text editor
and insert double quotes so that the relevant two lines look like:

Hello:

You both mention lyx 2.1.0. Do you really mean 2.1.0 or would it be 2.1.0rc1?

I don't see reference to 2.1.0 on the lyx site (main page and under recent 
news) and it was not announced in this list either.

bcsikos

I hope I'm not spoiling the party for the developers, but I downloaded 
from ftp://ftp.lyx.org/pub/lyx/bin/2.1.0/. I think it's the real 2.1.0 
rather than rc1.


And on the subject of the module, as Richard Heck pointed out on the 
developer's list, there is a bug in the layout2layout script. Another 
way of getting the ShortInsetNames module to work with 2.1.0 is to 
change the format  number from 35 to 48 (in a text editor); no double 
quotes needed.


Andrew


Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread aparsloe


On 23/04/2014 5:50 a.m., John Kane wrote:
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be 
having some problems with some of the custom modules I usually load.

Actually I have two different problems
The first problem is that I seem to have lost the ability to use a 
custom module (ShortInsertNames ). Typically, I will have Natbibapa, 
ShortInsetNames, Rnw(knitr)  ToDo loaded. Now when I compile and even 
when I do Document  I am getting an error, “Error reading 
ShortInsertNames when I try to load ShortInsetNames. Both the ToDo and 
ShortInsetNames are in /home/john/.lyx.
Interestingly enough Short Label but not Short Ref appears in Custom 
Insets and will insert an Undefined field in the document and I can 
compile the document.
The second problem is that whenever I try to compile a document with 
RnW(knitr) loaded I get an error message saying
An error occurred while running: Rscript –verbose –no-save –no-restore 
/usr/share/lyx/scripts/lyxknitr.R 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.Rnw 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.tex

ISO-8859-15 /home/john/Lyx/
This was occuring before the upgrade to 2.1.0 but there was no problem 
with ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and 
when I open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup 
except I added some Brother printer drivers to my Windows 7 setup 
(it's a dual-boot machine).
I'd appreciate any suggestions for either problem. If I can get the 
blasted ShortInsetNames to work again I can perhaps move the 
Rnw(knitr) problem to the knitr group


I have attached a small example file.

Hullo John.

I'm the writer of the ShortInsetNames module. I tried it with 2.1.0beta2 
earlier today and it worked. I've now installed 2.1.0 and it doesn't, 
but it's easily fixed. Open the module in a text editor and insert 
double quotes so that the relevant two lines look like:


InsetLayout Flex:ShortLabel

and

InsetLayout Flex:ShortXRef

The module as you have it at present lacks the double quotes, which seem 
to have become necessary only in the last birth throes of 2.1.0.


Andrew






Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread aparsloe


On 23/04/2014 5:50 a.m., John Kane wrote:
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be 
having some problems with some of the custom modules I usually load.

Actually I have two different problems
The first problem is that I seem to have lost the ability to use a 
custom module (ShortInsertNames ). Typically, I will have Natbibapa, 
ShortInsetNames, Rnw(knitr)  ToDo loaded. Now when I compile and even 
when I do Document  I am getting an error, “Error reading 
ShortInsertNames when I try to load ShortInsetNames. Both the ToDo and 
ShortInsetNames are in /home/john/.lyx.
Interestingly enough Short Label but not Short Ref appears in Custom 
Insets and will insert an Undefined field in the document and I can 
compile the document.
The second problem is that whenever I try to compile a document with 
RnW(knitr) loaded I get an error message saying
An error occurred while running: Rscript –verbose –no-save –no-restore 
/usr/share/lyx/scripts/lyxknitr.R 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.Rnw 
/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/lists.footnotes.endnotes.tex

ISO-8859-15 /home/john/Lyx/
This was occuring before the upgrade to 2.1.0 but there was no problem 
with ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and 
when I open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup 
except I added some Brother printer drivers to my Windows 7 setup 
(it's a dual-boot machine).
I'd appreciate any suggestions for either problem. If I can get the 
blasted ShortInsetNames to work again I can perhaps move the 
Rnw(knitr) problem to the knitr group


I have attached a small example file.

Hullo John.

I'm the writer of the ShortInsetNames module. I tried it with 2.1.0beta2 
earlier today and it worked. I've now installed 2.1.0 and it doesn't, 
but it's easily fixed. Open the module in a text editor and insert 
double quotes so that the relevant two lines look like:


InsetLayout Flex:ShortLabel

and

InsetLayout Flex:ShortXRef

The module as you have it at present lacks the double quotes, which seem 
to have become necessary only in the last birth throes of 2.1.0.


Andrew






Re: Problems with custom modules after upgrade to 2.1.0

2014-04-22 Thread aparsloe


On 23/04/2014 5:50 a.m., John Kane wrote:
Currently I am running Ubuntu 13.10 with LyX 2.1.0. I seem to be 
having some problems with some of the custom modules I usually load.

Actually I have two different problems
The first problem is that I seem to have lost the ability to use a 
custom module (ShortInsertNames ). Typically, I will have Natbibapa, 
ShortInsetNames, Rnw(knitr) & ToDo loaded. Now when I compile and even 
when I do Document > I am getting an error, “Error reading 
ShortInsertNames when I try to load ShortInsetNames. Both the ToDo and 
ShortInsetNames are in /home/john/.lyx.
Interestingly enough Short Label but not Short Ref appears in Custom 
Insets and will insert an Undefined field in the document and I can 
compile the document.
The second problem is that whenever I try to compile a document with 
RnW(knitr) loaded I get an error message saying
An error occurred while running: Rscript –verbose –no-save –no-restore 
"/usr/share/lyx/scripts/lyxknitr.R" 
"/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.Rnw" 
"/tmp/lyx_tmpdir.qXaUOysc4933/lyx_tmpbuf4/""lists.footnotes.endnotes.tex"

ISO-8859-15 "/home/john/Lyx/"
This was occuring before the upgrade to 2.1.0 but there was no problem 
with ShortInsertNames before the upgrade. A look at 
/usr/share/lyx/scripts/lyxknitr.R says that that the file exists and 
when I open it, it looks fine.
The worst of it is, I cannot think of any changes I made to my setup 
except I added some Brother printer drivers to my Windows 7 setup 
(it's a dual-boot machine).
I'd appreciate any suggestions for either problem. If I can get the 
blasted ShortInsetNames to work again I can perhaps move the 
Rnw(knitr) problem to the knitr group


I have attached a small example file.

Hullo John.

I'm the writer of the ShortInsetNames module. I tried it with 2.1.0beta2 
earlier today and it worked. I've now installed 2.1.0 and it doesn't, 
but it's easily fixed. Open the module in a text editor and insert 
double quotes so that the relevant two lines look like:


InsetLayout "Flex:ShortLabel"

and

InsetLayout "Flex:ShortXRef"

The module as you have it at present lacks the double quotes, which seem 
to have become necessary only in the last "birth throes" of 2.1.0.


Andrew






Re: program list in LyX notes

2014-04-10 Thread aparsloe


On 10/04/2014 8:10 p.m., Wolfgang Engelmann wrote:

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually.

Edit  Paste Special  Plain text

which has the shortcut Ctrl+Shift+V (rather than just Ctrl+V) on my system.

Andrew

I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insertfileexternal material
such as is done for xfig would be the best solution.

Wolfgang





Re: program list in LyX notes

2014-04-10 Thread aparsloe


On 10/04/2014 8:10 p.m., Wolfgang Engelmann wrote:

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually.

Edit  Paste Special  Plain text

which has the shortcut Ctrl+Shift+V (rather than just Ctrl+V) on my system.

Andrew

I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insertfileexternal material
such as is done for xfig would be the best solution.

Wolfgang





Re: program list in LyX notes

2014-04-10 Thread aparsloe


On 10/04/2014 8:10 p.m., Wolfgang Engelmann wrote:

Hello,
I would like to insert the list of a program in a LyX note.
This program is used to create a vector graphic figure
(it uses pyxplot). It looks like e.g.

#J-K-ParameterLi-E
set nodisplay
reset
set size ratio 1.0
set width 5
set nokey
set term pdf
set output './Johnsson-Karlsson-ParameterLinksNE.pdf'
set xlabel '$c_{ref}$'
#more lines
plot [-10:10][-0.5:0.3] '--' with lines
#'--' uses the data set below and not an external one
-12 -0.44
-7.78 -0.44
-4. -0.3
0 0
2 0.1
4 0.16
10 0.16
END

How can I insert it in such a way, that the line structure is kept
after cut and paste copying it from a text editor into the LyX note?
As it is now, the line brake is not kept, so that I have to do that
manually.

Edit > Paste Special > Plain text

which has the shortcut Ctrl+Shift+V (rather than just Ctrl+V) on my system.

Andrew

I would also like to preserve the tabular structure of the
list of data, which LyX changes into one skip between the numbers
(would ctr skip be possible to preserve the skips without interfering
with the program?). So, with other words, a new type of notes in LyX
made for programs.

The reason is, that I would like to have the program and the data
directly in LyX, to have it available without searching for the file(s)
if changes in the program are needed.
Ideally, an insert as
insert>file>external material
such as is done for xfig would be the best solution.

Wolfgang





Re: Cursor movement bug in math insets with split views

2014-04-07 Thread aparsloe


On 7/04/2014 2:21 p.m., Richard Heck wrote:

On 04/06/2014 08:55 PM, aparsloe wrote:


On 7/04/2014 12:47 p.m., aparsloe wrote:
In a new document open a math inset and enter e=mc^2. Split the view 
into left and right views. In the right view ensure the cursor lies 
*outside* the math inset. Now in the left view try to put the cursor 
*with the mouse* between, say, m and c. I find the cursor 
remains stuck at the start of the inset (before the e). It does 
respond to the arrow keys.  However, if in the right view I place 
the cursor *inside* the math inset, then on the left the cursor once 
more responds to the mouse.


The problem is present for me in both 2.1.0beta2 and 2.0.7 on 
Windows 7, but it has been there for a year or more, including on a 
Windows Vista computer (with a different mouse) and earlier members 
of the 2.0.x series.


Andrew

I should have added that the left and right views behave differently 
and can't be interchanged to show the bug. If the cursor is placed 
outside the inset in the left view, it will respond to the mouse in 
the inset on the right. When the screen is split into upper and lower 
halves, the top half behaves like the left view and the bottom half 
like the right view.


Can't reproduce on Fedora 17 (a bit out of date, but Qt 4.8.4).

Richard
I've just checked on my older computer (Vista) which has rc1 installed. 
The problem is still there.  Also, in a long document with a split view, 
if the formula in the right view scrolls off screen (it seems to need to 
be about two lines off screen), mouse-driven cursor movement in the 
formula in the left view becomes available again.


(I've also put this on the user's list to see if someone else with a 
Windows machine can reproduce it.)


Andrew



Re: Cursor movement bug in math insets with split views

2014-04-07 Thread aparsloe


On 7/04/2014 2:21 p.m., Richard Heck wrote:

On 04/06/2014 08:55 PM, aparsloe wrote:


On 7/04/2014 12:47 p.m., aparsloe wrote:
In a new document open a math inset and enter e=mc^2. Split the view 
into left and right views. In the right view ensure the cursor lies 
*outside* the math inset. Now in the left view try to put the cursor 
*with the mouse* between, say, m and c. I find the cursor 
remains stuck at the start of the inset (before the e). It does 
respond to the arrow keys.  However, if in the right view I place 
the cursor *inside* the math inset, then on the left the cursor once 
more responds to the mouse.


The problem is present for me in both 2.1.0beta2 and 2.0.7 on 
Windows 7, but it has been there for a year or more, including on a 
Windows Vista computer (with a different mouse) and earlier members 
of the 2.0.x series.


Andrew

I should have added that the left and right views behave differently 
and can't be interchanged to show the bug. If the cursor is placed 
outside the inset in the left view, it will respond to the mouse in 
the inset on the right. When the screen is split into upper and lower 
halves, the top half behaves like the left view and the bottom half 
like the right view.


Can't reproduce on Fedora 17 (a bit out of date, but Qt 4.8.4).

Richard
I've just checked on my older computer (Vista) which has rc1 installed. 
The problem is still there.  Also, in a long document with a split view, 
if the formula in the right view scrolls off screen (it seems to need to 
be about two lines off screen), mouse-driven cursor movement in the 
formula in the left view becomes available again.


(I've also put this on the user's list to see if someone else with a 
Windows machine can reproduce it.)


Andrew



  1   2   >