Re: [Bug] LyX 1.5.6 ignores amsmath settings when adding \iint

2008-10-12 Thread Georg Baum
Guy Rutenberg wrote:

 Hi,
 
 
 On Sat, Oct 11, 2008 at 11:26 PM, Uwe Stöhr
 [EMAIL PROTECTED] wrote:
 
 OK, I used the default esint package math option, therefore I couldn't
 see this. I don't know exactly, but remember that we only turn off
 automatically detection of the amssymb package but not the amsmath
 package to keep documents compilable.

If this is the case it is a bug IMHO. In earlier versions of LyX, if the
user set the ams math switch to off, amsmath was not loaded at all, even if
that would make the document uncompilable. The reason for this behaviour
was to solve problems like the one reported. There are a couple of commands
in amsmath that are also provided by other packages, and in some cases
those other packages are wanted.

 Is there a way to completly turn off the amsmath detection? If there isn't
 a gui option to do it, is there a simple way to disable it in the code?

You can probably comment it out in LaTeXFeatures.cpp.

 BTW is this behaivior expected to remain in future versions of LyX?

I hope not, it would be a bug IMHO.


Georg



RE: Solved: Bibtex Problem

2008-10-12 Thread Daniel Herzig
Thank you for your quick answers! Tracing the problem I really found a syntax 
error in my database. Somehow confused by diacritic latex commands I used 
\.v{S} instead of \v{S} in one of the new entries, what somehow stopped lyx 
reading this and the following references. I removed it and now happily use 
all the references re-copied from my second database with only one.
works perfectly.

Daniel

---BeginMessage---
Hi,

I've got a problem inserting bibtex entries into my masterthesis.
I added a new entry into my bibtex database (using kbibtex). Within the 
program it shows up, but in the citation insert dialogue inside lyx it 
won't . It's a standard entry, and i already have a literature list added in 
the end of my document (that lists the other inserted citations 
beautifully) - is there maybe a database limit that lyx can handle?
(my database has about a hundred entries, that shouldn't be too much)

thanks in advance,
daniel
---End Message---


spellchecking problem…

2008-10-12 Thread macnews
Hello,

I have a problem using spellchecking in Lyx (1.6.0rc3 and also in 1.5.4)
with OSX. I have installed th recent version of cocoAspell (2.0.4). I also
installed a german dictionary into the proper folder (Library - Application
Support - cocoAspell). After that I activated the languages in the
sytem-preferences. Lyx seems to recognize the dictionaries, as I could
choose them in the language-menu.
Every time (regardless of the language I choose) I run the spellchecker I
get the following message:

»Das Rechtschreibprogramm konnte nicht gestartet werden
Error: The file /usr/local/lib/aspell-0.60/english can not be opened for
reading.«

I tried to change setting both in the documents-window and in the general
preferences – without success. What could be the problem here? Does anybody
have a working spellchecking configuration for a german dictionary?

Best*
Jess


RE: Bibtex Problem

2008-10-12 Thread Daniel Herzig
Thank you, the problem was a syntax error... using a diacritic latex command 
not properly!

Daniel



Hi,

I've got a problem inserting bibtex entries into my masterthesis.
I added a new entry into my bibtex database (using kbibtex). Within the 
program it shows up, but in the citation insert dialogue inside lyx it 
won't . It's a standard entry, and i already have a literature list added in 
the end of my document (that lists the other inserted citations 
beautifully) - is there maybe a database limit that lyx can handle?
(my database has about a hundred entries, that shouldn't be too much)

thanks in advance,
daniel
---BeginMessage---
Hi,

I've got a problem inserting bibtex entries into my masterthesis.
I added a new entry into my bibtex database (using kbibtex). Within the 
program it shows up, but in the citation insert dialogue inside lyx it 
won't . It's a standard entry, and i already have a literature list added in 
the end of my document (that lists the other inserted citations 
beautifully) - is there maybe a database limit that lyx can handle?
(my database has about a hundred entries, that shouldn't be too much)

thanks in advance,
daniel
---End Message---


Fwd: spellchecking problem…

2008-10-12 Thread jezZiFeR
Hello,

I have a problem using spellchecking in Lyx (1.6.0rc3 and also in 1.5.4)
with OSX. I have installed th recent version of cocoAspell (2.0.4). I also
installed a german dictionary into the proper folder (Library - Application
Support - cocoAspell). After that I activated the languages in the
sytem-preferences. Lyx seems to recognize the dictionaries, as I could
choose them in the language-menu.
Every time (regardless of the language I choose) I run the spellchecker I
get the following message:

»Das Rechtschreibprogramm konnte nicht gestartet werden
Error: The file /usr/local/lib/aspell-0.60/english can not be opened for
reading.«

I tried to change setting both in the documents-window and in the general
preferences – without success. What could be the problem here? Does anybody
have a working spellchecking configuration for a german dictionary?

Best*
Jess


Re: [Bug] LyX 1.5.6 ignores amsmath settings when adding \iint

2008-10-12 Thread Uwe Stöhr

Georg Baum schrieb:


I don't know exactly, but remember that we only turn off
automatically detection of the amssymb package but not the amsmath
package to keep documents compilable.


If this is the case it is a bug IMHO. In earlier versions of LyX, if the
user set the ams math switch to off, amsmath was not loaded at all, even if
that would make the document uncompilable. The reason for this behaviour
was to solve problems like the one reported. There are a couple of commands
in amsmath that are also provided by other packages, and in some cases
those other packages are wanted.


OK, then it is really a bug: http://bugzilla.lyx.org/show_bug.cgi?id=5350
I fixed it now for LyX 1.6.0.

regards Uwe


Re: [Bug] LyX 1.5.6 ignores amsmath settings when adding \iint

2008-10-12 Thread Guy Rutenberg
Hi

On Sun, Oct 12, 2008 at 2:52 PM, Uwe Stöhr [EMAIL PROTECTED] wrote:

 OK, then it is really a bug: http://bugzilla.lyx.org/show_bug.cgi?id=5350
 I fixed it now for LyX 1.6.0.

 regards Uwe


Thanks Uwe, I've checked both the svn version of 1.6.0 and 1.5.7 and it
worked.



Guy


Re: Import utf8 latex on MacOS

2008-10-12 Thread Dmitrii Dimandt


On Oct 11, 2008, at 7:11 PM, Andre Poenitz wrote:


On Thu, Oct 09, 2008 at 02:20:36PM +0300, Dmitrii Dimandt wrote:

Hi all

I have a LaTeX file created with TexMate and saved with
UTF8(recommended)

When I import this file into Lyx, I get anything but cyrillic in my
text: http://images.dmitriid.com/misc/tex/lyx.png (top of  
screenshot is
what it shouldve looked like and bottom of the picture is what it  
looks

like in Lyx)

My settings for Lyx are:
Default language: English
Language package: \usepackage[english,russian]{babel}
TeX encoding: T2A

And for the document I tried everything: language Russian, default
encoding, utf8 - nothing works :(

I know that this issue has supposedly been fixed in 1.5.6, but here  
I am

on 1.5.6 and importing utf8-encoded LaTeX files doesn't work :(

I guess there's a misunderstanding between Texmate, MacOS and Lyx on
what utf8 actually means :) I hope there's somebody who has this  
figured

out. Anyone? Help?


Can you send me a .tex file that LyX failed to import?

Andre'



sure. This is a minimal doc. I'll give it here and I'll attach it as  
well.


\documentclass[a4paper]{article}

\usepackage[T2A]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\usepackage[english,russian]{babel}


\begin{document}

Нажмите Ctrl-Alt-Del для достижения нирваны  
(Press Ctrl-Alt-Del to reach nirvana)


\end{document}



main2.tex
Description: Binary data




Make sure to save it as UTF8 under MacOS

Strange Bibtex behavior

2008-10-12 Thread knauslists
Hello,

I ran into a strange problem with bibtex while editing my thesis in Lyx. Maybe 
it is not really a problem with lyx but I'm no latex/bibtex expert by far and 
so maybe users of this list can give me a hint.

My problem is:

I use author-year citations with my own nat-bib based bibtex style (created 
with custombib).
I have two citations from the same author, in the same journal issue and from 
the same year. These are made unique by automatically adding an a or b at the 
end of the year, e.g.

Knaus (2008) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008) Another new hypothesis. Journal. Issue 1. p. 20-30

should be coverted to

Knaus (2008a) Introduction. Journal. Issue 1.  p. 1-12
Knaus (2008b) Another new hypothesis. Journal. Issue 1. p. 20-30

but gets converted to

Knaus (2008b) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008a) Another new hypothesis. Journal. Issue 1. p. 20-30

Probably there is something in the bst file which sorts the addition of a's and 
b's according to the alphabetical order of the title which is generally o.k. 
but if it's in the same journal issue it should be sorted numerically according 
to the pages.
How do I get this? (I have looked into the bst file, but it is so long ago that 
I created it...)
Do I have to change something in the .bst file or do I have to add some special 
bibtex trick to the preamble of my Lyx file?

I have attached my bst file.



Ist Ihr [EMAIL PROTECTED] noch frei?
Jetzt prüfen und kostenlose E-Mail-Adresse sichern!
http://email.freenet.de/dienste/emailoffice/produktuebersicht/basic/mail/index.html?pid=6829



lincup.bst
Description: 


Re: Strange Bibtex behavior

2008-10-12 Thread rgheck

[EMAIL PROTECTED] wrote:

Hello,

I ran into a strange problem with bibtex while editing my thesis in Lyx. Maybe 
it is not really a problem with lyx but I'm no latex/bibtex expert by far and 
so maybe users of this list can give me a hint.

My problem is:

I use author-year citations with my own nat-bib based bibtex style (created 
with custombib).
I have two citations from the same author, in the same journal issue and from 
the same year. These are made unique by automatically adding an a or b at the 
end of the year, e.g.

Knaus (2008) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008) Another new hypothesis. Journal. Issue 1. p. 20-30

should be coverted to

Knaus (2008a) Introduction. Journal. Issue 1.  p. 1-12
Knaus (2008b) Another new hypothesis. Journal. Issue 1. p. 20-30

but gets converted to

Knaus (2008b) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008a) Another new hypothesis. Journal. Issue 1. p. 20-30

Probably there is something in the bst file which sorts the addition of a's and 
b's according to the alphabetical order of the title which is generally o.k. 
but if it's in the same journal issue it should be sorted numerically according 
to the pages.
How do I get this? (I have looked into the bst file, but it is so long ago that 
I created it...)
Do I have to change something in the .bst file or do I have to add some special 
bibtex trick to the preamble of my Lyx file?

  
It's the bst file that handles this. The presort routine assigns a sort 
key to each entry, and then they are sorted according to those keys. 
It's a pretty basic routine. What you get is not much more than author, 
year, and title, though you get a bit more in some cases.


So you need to fiddle with the presort routine and include the page 
numbers in the key. This will be kind of tricky to get, as the obvious 
thing to do will get the wrong result with something like: pp. 34-60 vs 
pp. 124-50. The latter is lexically before the former, so you'd need to 
normalize somehow so the former would be 036, or something like that. 
(Surely, the end pages don't matter.) You can look at the n.dashify 
routine for ideas how to do that.


rh



Re: Strange Bibtex behavior

2008-10-12 Thread rgheck

rgheck wrote:

[EMAIL PROTECTED] wrote:

Hello,

I ran into a strange problem with bibtex while editing my thesis in 
Lyx. Maybe it is not really a problem with lyx but I'm no 
latex/bibtex expert by far and so maybe users of this list can give 
me a hint.


My problem is:

I use author-year citations with my own nat-bib based bibtex style 
(created with custombib).
I have two citations from the same author, in the same journal issue 
and from the same year. These are made unique by automatically adding 
an a or b at the end of the year, e.g.


Knaus (2008) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008) Another new hypothesis. Journal. Issue 1. p. 20-30

should be coverted to

Knaus (2008a) Introduction. Journal. Issue 1.  p. 1-12
Knaus (2008b) Another new hypothesis. Journal. Issue 1. p. 20-30

but gets converted to

Knaus (2008b) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008a) Another new hypothesis. Journal. Issue 1. p. 20-30

Probably there is something in the bst file which sorts the addition 
of a's and b's according to the alphabetical order of the title which 
is generally o.k. but if it's in the same journal issue it should be 
sorted numerically according to the pages.
How do I get this? (I have looked into the bst file, but it is so 
long ago that I created it...)
Do I have to change something in the .bst file or do I have to add 
some special bibtex trick to the preamble of my Lyx file?


  
It's the bst file that handles this. The presort routine assigns a 
sort key to each entry, and then they are sorted according to those 
keys. It's a pretty basic routine. What you get is not much more than 
author, year, and title, though you get a bit more in some cases.


So you need to fiddle with the presort routine and include the page 
numbers in the key. This will be kind of tricky to get, as the obvious 
thing to do will get the wrong result with something like: pp. 34-60 
vs pp. 124-50. The latter is lexically before the former, so you'd 
need to normalize somehow so the former would be 036, or something 
like that. (Surely, the end pages don't matter.) You can look at the 
n.dashify routine for ideas how to do that.



This kind of thing will work for normalzing...but I've not tested it.

FUNCTION {n.normalize}
{
   't :=
   t 'save :=
   0 'num :=
   { t empty$ not }
   {
   t #1 #1 substring$ - =
   { '' t := }
   {
   t #1 #1 substring$
   t #2 global.max$ substring$ 't :=
   num #1 + 'num :=
   }
   if$
   }
 while$
   #5 'norml :=
   { norml num  }
   { '0' save * 'save := }
   while$
   save
}



Export not working?

2008-10-12 Thread Mitchell Mebane
I've installed LyX 1.6.0-rc3 (the bundle) on Windows and have been 
playing around with it.  I just tried exporting a document to PDF, but I 
don't think it's working properly.  I was confused at first about not 
getting a file dialog asking me to save the file, but I found in the 
user's guide that The resulting files are placed in the directory of 
your LyX-file.  However, this definitely isn't the case!  I don't seem 
to get any result.


I even tried copying my LyX file to C:\a.lyx (to eliminate the 
possibility of filename/path issues) and opening it from there, but 
export still seems to do absolutely nothing.  Is this a bug I should 
report, or am I doing/understanding something wrong?  I've tried PDF 
(pdflatex) and also exporting as Plain text.


--Mitchell


Metadata?

2008-10-12 Thread itsme213
Is there any way to associate user-defined metadata (such as tags) with lyx 
elements? e.g. can I say paragraph 1 is hero and paragraph 2 is villain?

Is there a way to get this metadata in any of the outputs e.g. as role=... 
in docbook or class=... in xhtml?

Thanks -- Sophie 





Re: [Bug] LyX 1.5.6 ignores amsmath settings when adding \iint

2008-10-12 Thread Georg Baum
Guy Rutenberg wrote:

 Hi,
 
 
 On Sat, Oct 11, 2008 at 11:26 PM, Uwe Stöhr
 [EMAIL PROTECTED] wrote:
 
 OK, I used the default esint package math option, therefore I couldn't
 see this. I don't know exactly, but remember that we only turn off
 automatically detection of the amssymb package but not the amsmath
 package to keep documents compilable.

If this is the case it is a bug IMHO. In earlier versions of LyX, if the
user set the ams math switch to off, amsmath was not loaded at all, even if
that would make the document uncompilable. The reason for this behaviour
was to solve problems like the one reported. There are a couple of commands
in amsmath that are also provided by other packages, and in some cases
those other packages are wanted.

 Is there a way to completly turn off the amsmath detection? If there isn't
 a gui option to do it, is there a simple way to disable it in the code?

You can probably comment it out in LaTeXFeatures.cpp.

 BTW is this behaivior expected to remain in future versions of LyX?

I hope not, it would be a bug IMHO.


Georg



RE: Solved: Bibtex Problem

2008-10-12 Thread Daniel Herzig
Thank you for your quick answers! Tracing the problem I really found a syntax 
error in my database. Somehow confused by diacritic latex commands I used 
\.v{S} instead of \v{S} in one of the new entries, what somehow stopped lyx 
reading this and the following references. I removed it and now happily use 
all the references re-copied from my second database with only one.
works perfectly.

Daniel

---BeginMessage---
Hi,

I've got a problem inserting bibtex entries into my masterthesis.
I added a new entry into my bibtex database (using kbibtex). Within the 
program it shows up, but in the citation insert dialogue inside lyx it 
won't . It's a standard entry, and i already have a literature list added in 
the end of my document (that lists the other inserted citations 
beautifully) - is there maybe a database limit that lyx can handle?
(my database has about a hundred entries, that shouldn't be too much)

thanks in advance,
daniel
---End Message---


spellchecking problem…

2008-10-12 Thread macnews
Hello,

I have a problem using spellchecking in Lyx (1.6.0rc3 and also in 1.5.4)
with OSX. I have installed th recent version of cocoAspell (2.0.4). I also
installed a german dictionary into the proper folder (Library - Application
Support - cocoAspell). After that I activated the languages in the
sytem-preferences. Lyx seems to recognize the dictionaries, as I could
choose them in the language-menu.
Every time (regardless of the language I choose) I run the spellchecker I
get the following message:

»Das Rechtschreibprogramm konnte nicht gestartet werden
Error: The file /usr/local/lib/aspell-0.60/english can not be opened for
reading.«

I tried to change setting both in the documents-window and in the general
preferences – without success. What could be the problem here? Does anybody
have a working spellchecking configuration for a german dictionary?

Best*
Jess


RE: Bibtex Problem

2008-10-12 Thread Daniel Herzig
Thank you, the problem was a syntax error... using a diacritic latex command 
not properly!

Daniel



Hi,

I've got a problem inserting bibtex entries into my masterthesis.
I added a new entry into my bibtex database (using kbibtex). Within the 
program it shows up, but in the citation insert dialogue inside lyx it 
won't . It's a standard entry, and i already have a literature list added in 
the end of my document (that lists the other inserted citations 
beautifully) - is there maybe a database limit that lyx can handle?
(my database has about a hundred entries, that shouldn't be too much)

thanks in advance,
daniel
---BeginMessage---
Hi,

I've got a problem inserting bibtex entries into my masterthesis.
I added a new entry into my bibtex database (using kbibtex). Within the 
program it shows up, but in the citation insert dialogue inside lyx it 
won't . It's a standard entry, and i already have a literature list added in 
the end of my document (that lists the other inserted citations 
beautifully) - is there maybe a database limit that lyx can handle?
(my database has about a hundred entries, that shouldn't be too much)

thanks in advance,
daniel
---End Message---


Fwd: spellchecking problem…

2008-10-12 Thread jezZiFeR
Hello,

I have a problem using spellchecking in Lyx (1.6.0rc3 and also in 1.5.4)
with OSX. I have installed th recent version of cocoAspell (2.0.4). I also
installed a german dictionary into the proper folder (Library - Application
Support - cocoAspell). After that I activated the languages in the
sytem-preferences. Lyx seems to recognize the dictionaries, as I could
choose them in the language-menu.
Every time (regardless of the language I choose) I run the spellchecker I
get the following message:

»Das Rechtschreibprogramm konnte nicht gestartet werden
Error: The file /usr/local/lib/aspell-0.60/english can not be opened for
reading.«

I tried to change setting both in the documents-window and in the general
preferences – without success. What could be the problem here? Does anybody
have a working spellchecking configuration for a german dictionary?

Best*
Jess


Re: [Bug] LyX 1.5.6 ignores amsmath settings when adding \iint

2008-10-12 Thread Uwe Stöhr

Georg Baum schrieb:


I don't know exactly, but remember that we only turn off
automatically detection of the amssymb package but not the amsmath
package to keep documents compilable.


If this is the case it is a bug IMHO. In earlier versions of LyX, if the
user set the ams math switch to off, amsmath was not loaded at all, even if
that would make the document uncompilable. The reason for this behaviour
was to solve problems like the one reported. There are a couple of commands
in amsmath that are also provided by other packages, and in some cases
those other packages are wanted.


OK, then it is really a bug: http://bugzilla.lyx.org/show_bug.cgi?id=5350
I fixed it now for LyX 1.6.0.

regards Uwe


Re: [Bug] LyX 1.5.6 ignores amsmath settings when adding \iint

2008-10-12 Thread Guy Rutenberg
Hi

On Sun, Oct 12, 2008 at 2:52 PM, Uwe Stöhr [EMAIL PROTECTED] wrote:

 OK, then it is really a bug: http://bugzilla.lyx.org/show_bug.cgi?id=5350
 I fixed it now for LyX 1.6.0.

 regards Uwe


Thanks Uwe, I've checked both the svn version of 1.6.0 and 1.5.7 and it
worked.



Guy


Re: Import utf8 latex on MacOS

2008-10-12 Thread Dmitrii Dimandt


On Oct 11, 2008, at 7:11 PM, Andre Poenitz wrote:


On Thu, Oct 09, 2008 at 02:20:36PM +0300, Dmitrii Dimandt wrote:

Hi all

I have a LaTeX file created with TexMate and saved with
UTF8(recommended)

When I import this file into Lyx, I get anything but cyrillic in my
text: http://images.dmitriid.com/misc/tex/lyx.png (top of  
screenshot is
what it shouldve looked like and bottom of the picture is what it  
looks

like in Lyx)

My settings for Lyx are:
Default language: English
Language package: \usepackage[english,russian]{babel}
TeX encoding: T2A

And for the document I tried everything: language Russian, default
encoding, utf8 - nothing works :(

I know that this issue has supposedly been fixed in 1.5.6, but here  
I am

on 1.5.6 and importing utf8-encoded LaTeX files doesn't work :(

I guess there's a misunderstanding between Texmate, MacOS and Lyx on
what utf8 actually means :) I hope there's somebody who has this  
figured

out. Anyone? Help?


Can you send me a .tex file that LyX failed to import?

Andre'



sure. This is a minimal doc. I'll give it here and I'll attach it as  
well.


\documentclass[a4paper]{article}

\usepackage[T2A]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\usepackage[english,russian]{babel}


\begin{document}

Нажмите Ctrl-Alt-Del для достижения нирваны  
(Press Ctrl-Alt-Del to reach nirvana)


\end{document}



main2.tex
Description: Binary data




Make sure to save it as UTF8 under MacOS

Strange Bibtex behavior

2008-10-12 Thread knauslists
Hello,

I ran into a strange problem with bibtex while editing my thesis in Lyx. Maybe 
it is not really a problem with lyx but I'm no latex/bibtex expert by far and 
so maybe users of this list can give me a hint.

My problem is:

I use author-year citations with my own nat-bib based bibtex style (created 
with custombib).
I have two citations from the same author, in the same journal issue and from 
the same year. These are made unique by automatically adding an a or b at the 
end of the year, e.g.

Knaus (2008) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008) Another new hypothesis. Journal. Issue 1. p. 20-30

should be coverted to

Knaus (2008a) Introduction. Journal. Issue 1.  p. 1-12
Knaus (2008b) Another new hypothesis. Journal. Issue 1. p. 20-30

but gets converted to

Knaus (2008b) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008a) Another new hypothesis. Journal. Issue 1. p. 20-30

Probably there is something in the bst file which sorts the addition of a's and 
b's according to the alphabetical order of the title which is generally o.k. 
but if it's in the same journal issue it should be sorted numerically according 
to the pages.
How do I get this? (I have looked into the bst file, but it is so long ago that 
I created it...)
Do I have to change something in the .bst file or do I have to add some special 
bibtex trick to the preamble of my Lyx file?

I have attached my bst file.



Ist Ihr [EMAIL PROTECTED] noch frei?
Jetzt prüfen und kostenlose E-Mail-Adresse sichern!
http://email.freenet.de/dienste/emailoffice/produktuebersicht/basic/mail/index.html?pid=6829



lincup.bst
Description: 


Re: Strange Bibtex behavior

2008-10-12 Thread rgheck

[EMAIL PROTECTED] wrote:

Hello,

I ran into a strange problem with bibtex while editing my thesis in Lyx. Maybe 
it is not really a problem with lyx but I'm no latex/bibtex expert by far and 
so maybe users of this list can give me a hint.

My problem is:

I use author-year citations with my own nat-bib based bibtex style (created 
with custombib).
I have two citations from the same author, in the same journal issue and from 
the same year. These are made unique by automatically adding an a or b at the 
end of the year, e.g.

Knaus (2008) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008) Another new hypothesis. Journal. Issue 1. p. 20-30

should be coverted to

Knaus (2008a) Introduction. Journal. Issue 1.  p. 1-12
Knaus (2008b) Another new hypothesis. Journal. Issue 1. p. 20-30

but gets converted to

Knaus (2008b) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008a) Another new hypothesis. Journal. Issue 1. p. 20-30

Probably there is something in the bst file which sorts the addition of a's and 
b's according to the alphabetical order of the title which is generally o.k. 
but if it's in the same journal issue it should be sorted numerically according 
to the pages.
How do I get this? (I have looked into the bst file, but it is so long ago that 
I created it...)
Do I have to change something in the .bst file or do I have to add some special 
bibtex trick to the preamble of my Lyx file?

  
It's the bst file that handles this. The presort routine assigns a sort 
key to each entry, and then they are sorted according to those keys. 
It's a pretty basic routine. What you get is not much more than author, 
year, and title, though you get a bit more in some cases.


So you need to fiddle with the presort routine and include the page 
numbers in the key. This will be kind of tricky to get, as the obvious 
thing to do will get the wrong result with something like: pp. 34-60 vs 
pp. 124-50. The latter is lexically before the former, so you'd need to 
normalize somehow so the former would be 036, or something like that. 
(Surely, the end pages don't matter.) You can look at the n.dashify 
routine for ideas how to do that.


rh



Re: Strange Bibtex behavior

2008-10-12 Thread rgheck

rgheck wrote:

[EMAIL PROTECTED] wrote:

Hello,

I ran into a strange problem with bibtex while editing my thesis in 
Lyx. Maybe it is not really a problem with lyx but I'm no 
latex/bibtex expert by far and so maybe users of this list can give 
me a hint.


My problem is:

I use author-year citations with my own nat-bib based bibtex style 
(created with custombib).
I have two citations from the same author, in the same journal issue 
and from the same year. These are made unique by automatically adding 
an a or b at the end of the year, e.g.


Knaus (2008) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008) Another new hypothesis. Journal. Issue 1. p. 20-30

should be coverted to

Knaus (2008a) Introduction. Journal. Issue 1.  p. 1-12
Knaus (2008b) Another new hypothesis. Journal. Issue 1. p. 20-30

but gets converted to

Knaus (2008b) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008a) Another new hypothesis. Journal. Issue 1. p. 20-30

Probably there is something in the bst file which sorts the addition 
of a's and b's according to the alphabetical order of the title which 
is generally o.k. but if it's in the same journal issue it should be 
sorted numerically according to the pages.
How do I get this? (I have looked into the bst file, but it is so 
long ago that I created it...)
Do I have to change something in the .bst file or do I have to add 
some special bibtex trick to the preamble of my Lyx file?


  
It's the bst file that handles this. The presort routine assigns a 
sort key to each entry, and then they are sorted according to those 
keys. It's a pretty basic routine. What you get is not much more than 
author, year, and title, though you get a bit more in some cases.


So you need to fiddle with the presort routine and include the page 
numbers in the key. This will be kind of tricky to get, as the obvious 
thing to do will get the wrong result with something like: pp. 34-60 
vs pp. 124-50. The latter is lexically before the former, so you'd 
need to normalize somehow so the former would be 036, or something 
like that. (Surely, the end pages don't matter.) You can look at the 
n.dashify routine for ideas how to do that.



This kind of thing will work for normalzing...but I've not tested it.

FUNCTION {n.normalize}
{
   't :=
   t 'save :=
   0 'num :=
   { t empty$ not }
   {
   t #1 #1 substring$ - =
   { '' t := }
   {
   t #1 #1 substring$
   t #2 global.max$ substring$ 't :=
   num #1 + 'num :=
   }
   if$
   }
 while$
   #5 'norml :=
   { norml num  }
   { '0' save * 'save := }
   while$
   save
}



Export not working?

2008-10-12 Thread Mitchell Mebane
I've installed LyX 1.6.0-rc3 (the bundle) on Windows and have been 
playing around with it.  I just tried exporting a document to PDF, but I 
don't think it's working properly.  I was confused at first about not 
getting a file dialog asking me to save the file, but I found in the 
user's guide that The resulting files are placed in the directory of 
your LyX-file.  However, this definitely isn't the case!  I don't seem 
to get any result.


I even tried copying my LyX file to C:\a.lyx (to eliminate the 
possibility of filename/path issues) and opening it from there, but 
export still seems to do absolutely nothing.  Is this a bug I should 
report, or am I doing/understanding something wrong?  I've tried PDF 
(pdflatex) and also exporting as Plain text.


--Mitchell


Metadata?

2008-10-12 Thread itsme213
Is there any way to associate user-defined metadata (such as tags) with lyx 
elements? e.g. can I say paragraph 1 is hero and paragraph 2 is villain?

Is there a way to get this metadata in any of the outputs e.g. as role=... 
in docbook or class=... in xhtml?

Thanks -- Sophie 





Re: [Bug] LyX 1.5.6 ignores amsmath settings when adding \iint

2008-10-12 Thread Georg Baum
Guy Rutenberg wrote:

> Hi,
> 
> 
> On Sat, Oct 11, 2008 at 11:26 PM, Uwe Stöhr
> <[EMAIL PROTECTED]> wrote:
> 
>> OK, I used the default esint package math option, therefore I couldn't
>> see this. I don't know exactly, but remember that we only turn off
>> automatically detection of the amssymb package but not the amsmath
>> package to keep documents compilable.

If this is the case it is a bug IMHO. In earlier versions of LyX, if the
user set the ams math switch to off, amsmath was not loaded at all, even if
that would make the document uncompilable. The reason for this behaviour
was to solve problems like the one reported. There are a couple of commands
in amsmath that are also provided by other packages, and in some cases
those other packages are wanted.

> Is there a way to completly turn off the amsmath detection? If there isn't
> a gui option to do it, is there a simple way to disable it in the code?

You can probably comment it out in LaTeXFeatures.cpp.

> BTW is this behaivior expected to remain in future versions of LyX?

I hope not, it would be a bug IMHO.


Georg



RE: Solved: Bibtex Problem

2008-10-12 Thread Daniel Herzig
Thank you for your quick answers! Tracing the problem I really found a syntax 
error in my database. Somehow confused by diacritic latex commands I used 
\.v{S} instead of \v{S} in one of the new entries, what somehow stopped lyx 
reading this and the following references. I removed it and now happily use 
all the references re-copied from my second database with only one.
works perfectly.

Daniel

--- Begin Message ---
Hi,

I've got a problem inserting bibtex entries into my masterthesis.
I added a new entry into my bibtex database (using kbibtex). Within the 
program it shows up, but in the citation insert dialogue inside lyx it 
won't . It's a standard entry, and i already have a literature list added in 
the end of my document (that lists the other inserted citations 
beautifully) - is there maybe a database limit that lyx can handle?
(my database has about a hundred entries, that shouldn't be too much)

thanks in advance,
daniel
--- End Message ---


spellchecking problem…

2008-10-12 Thread macnews
Hello,

I have a problem using spellchecking in Lyx (1.6.0rc3 and also in 1.5.4)
with OSX. I have installed th recent version of cocoAspell (2.0.4). I also
installed a german dictionary into the proper folder (Library -> Application
Support -> cocoAspell). After that I activated the languages in the
sytem-preferences. Lyx seems to recognize the dictionaries, as I could
choose them in the language-menu.
Every time (regardless of the language I choose) I run the spellchecker I
get the following message:

»Das Rechtschreibprogramm konnte nicht gestartet werden
Error: The file "/usr/local/lib/aspell-0.60/english" can not be opened for
reading.«

I tried to change setting both in the documents-window and in the general
preferences – without success. What could be the problem here? Does anybody
have a working spellchecking configuration for a german dictionary?

Best*
Jess


RE: Bibtex Problem

2008-10-12 Thread Daniel Herzig
Thank you, the problem was a syntax error... using a diacritic latex command 
not properly!

Daniel



Hi,

I've got a problem inserting bibtex entries into my masterthesis.
I added a new entry into my bibtex database (using kbibtex). Within the 
program it shows up, but in the citation insert dialogue inside lyx it 
won't . It's a standard entry, and i already have a literature list added in 
the end of my document (that lists the other inserted citations 
beautifully) - is there maybe a database limit that lyx can handle?
(my database has about a hundred entries, that shouldn't be too much)

thanks in advance,
daniel
--- Begin Message ---
Hi,

I've got a problem inserting bibtex entries into my masterthesis.
I added a new entry into my bibtex database (using kbibtex). Within the 
program it shows up, but in the citation insert dialogue inside lyx it 
won't . It's a standard entry, and i already have a literature list added in 
the end of my document (that lists the other inserted citations 
beautifully) - is there maybe a database limit that lyx can handle?
(my database has about a hundred entries, that shouldn't be too much)

thanks in advance,
daniel
--- End Message ---


Fwd: spellchecking problem…

2008-10-12 Thread jezZiFeR
Hello,

I have a problem using spellchecking in Lyx (1.6.0rc3 and also in 1.5.4)
with OSX. I have installed th recent version of cocoAspell (2.0.4). I also
installed a german dictionary into the proper folder (Library -> Application
Support -> cocoAspell). After that I activated the languages in the
sytem-preferences. Lyx seems to recognize the dictionaries, as I could
choose them in the language-menu.
Every time (regardless of the language I choose) I run the spellchecker I
get the following message:

»Das Rechtschreibprogramm konnte nicht gestartet werden
Error: The file "/usr/local/lib/aspell-0.60/english" can not be opened for
reading.«

I tried to change setting both in the documents-window and in the general
preferences – without success. What could be the problem here? Does anybody
have a working spellchecking configuration for a german dictionary?

Best*
Jess


Re: [Bug] LyX 1.5.6 ignores amsmath settings when adding \iint

2008-10-12 Thread Uwe Stöhr

Georg Baum schrieb:


I don't know exactly, but remember that we only turn off
automatically detection of the amssymb package but not the amsmath
package to keep documents compilable.


If this is the case it is a bug IMHO. In earlier versions of LyX, if the
user set the ams math switch to off, amsmath was not loaded at all, even if
that would make the document uncompilable. The reason for this behaviour
was to solve problems like the one reported. There are a couple of commands
in amsmath that are also provided by other packages, and in some cases
those other packages are wanted.


OK, then it is really a bug: http://bugzilla.lyx.org/show_bug.cgi?id=5350
I fixed it now for LyX 1.6.0.

regards Uwe


Re: [Bug] LyX 1.5.6 ignores amsmath settings when adding \iint

2008-10-12 Thread Guy Rutenberg
Hi

On Sun, Oct 12, 2008 at 2:52 PM, Uwe Stöhr <[EMAIL PROTECTED]> wrote:

> OK, then it is really a bug: http://bugzilla.lyx.org/show_bug.cgi?id=5350
> I fixed it now for LyX 1.6.0.
>
> regards Uwe
>

Thanks Uwe, I've checked both the svn version of 1.6.0 and 1.5.7 and it
worked.



Guy


Re: Import utf8 latex on MacOS

2008-10-12 Thread Dmitrii Dimandt


On Oct 11, 2008, at 7:11 PM, Andre Poenitz wrote:


On Thu, Oct 09, 2008 at 02:20:36PM +0300, Dmitrii Dimandt wrote:

Hi all

I have a LaTeX file created with TexMate and saved with
"UTF8(recommended)"

When I import this file into Lyx, I get anything but cyrillic in my
text: http://images.dmitriid.com/misc/tex/lyx.png (top of  
screenshot is
what it shouldve looked like and bottom of the picture is what it  
looks

like in Lyx)

My settings for Lyx are:
Default language: English
Language package: \usepackage[english,russian]{babel}
TeX encoding: T2A

And for the document I tried everything: language Russian, default
encoding, utf8 - nothing works :(

I know that this issue has supposedly been fixed in 1.5.6, but here  
I am

on 1.5.6 and importing utf8-encoded LaTeX files doesn't work :(

I guess there's a misunderstanding between Texmate, MacOS and Lyx on
what utf8 actually means :) I hope there's somebody who has this  
figured

out. Anyone? Help?


Can you send me a .tex file that LyX failed to import?

Andre'



sure. This is a minimal doc. I'll give it here and I'll attach it as  
well.


\documentclass[a4paper]{article}

\usepackage[T2A]{fontenc}
\usepackage[utf8x]{inputenc}
\usepackage{ucs}
\usepackage[english,russian]{babel}


\begin{document}

Нажмите Ctrl-Alt-Del для достижения нирваны  
(Press Ctrl-Alt-Del to reach nirvana)


\end{document}



main2.tex
Description: Binary data




Make sure to save it as UTF8 under MacOS

Strange Bibtex behavior

2008-10-12 Thread knauslists
Hello,

I ran into a strange problem with bibtex while editing my thesis in Lyx. Maybe 
it is not really a problem with lyx but I'm no latex/bibtex expert by far and 
so maybe users of this list can give me a hint.

My problem is:

I use author-year citations with my own nat-bib based bibtex style (created 
with custombib).
I have two citations from the same author, in the same journal issue and from 
the same year. These are made unique by automatically adding an a or b at the 
end of the year, e.g.

Knaus (2008) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008) Another new hypothesis. Journal. Issue 1. p. 20-30

should be coverted to

Knaus (2008a) Introduction. Journal. Issue 1.  p. 1-12
Knaus (2008b) Another new hypothesis. Journal. Issue 1. p. 20-30

but gets converted to

Knaus (2008b) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008a) Another new hypothesis. Journal. Issue 1. p. 20-30

Probably there is something in the bst file which sorts the addition of a's and 
b's according to the alphabetical order of the title which is generally o.k. 
but if it's in the same journal issue it should be sorted numerically according 
to the pages.
How do I get this? (I have looked into the bst file, but it is so long ago that 
I created it...)
Do I have to change something in the .bst file or do I have to add some special 
bibtex trick to the preamble of my Lyx file?

I have attached my bst file.



Ist Ihr [EMAIL PROTECTED] noch frei?
Jetzt prüfen und kostenlose E-Mail-Adresse sichern!
http://email.freenet.de/dienste/emailoffice/produktuebersicht/basic/mail/index.html?pid=6829



lincup.bst
Description: 


Re: Strange Bibtex behavior

2008-10-12 Thread rgheck

[EMAIL PROTECTED] wrote:

Hello,

I ran into a strange problem with bibtex while editing my thesis in Lyx. Maybe 
it is not really a problem with lyx but I'm no latex/bibtex expert by far and 
so maybe users of this list can give me a hint.

My problem is:

I use author-year citations with my own nat-bib based bibtex style (created 
with custombib).
I have two citations from the same author, in the same journal issue and from 
the same year. These are made unique by automatically adding an a or b at the 
end of the year, e.g.

Knaus (2008) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008) Another new hypothesis. Journal. Issue 1. p. 20-30

should be coverted to

Knaus (2008a) Introduction. Journal. Issue 1.  p. 1-12
Knaus (2008b) Another new hypothesis. Journal. Issue 1. p. 20-30

but gets converted to

Knaus (2008b) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008a) Another new hypothesis. Journal. Issue 1. p. 20-30

Probably there is something in the bst file which sorts the addition of a's and 
b's according to the alphabetical order of the title which is generally o.k. 
but if it's in the same journal issue it should be sorted numerically according 
to the pages.
How do I get this? (I have looked into the bst file, but it is so long ago that 
I created it...)
Do I have to change something in the .bst file or do I have to add some special 
bibtex trick to the preamble of my Lyx file?

  
It's the bst file that handles this. The presort routine assigns a sort 
key to each entry, and then they are sorted according to those keys. 
It's a pretty basic routine. What you get is not much more than author, 
year, and title, though you get a bit more in some cases.


So you need to fiddle with the presort routine and include the page 
numbers in the key. This will be kind of tricky to get, as the obvious 
thing to do will get the wrong result with something like: pp. 34-60 vs 
pp. 124-50. The latter is lexically before the former, so you'd need to 
normalize somehow so the former would be "036", or something like that. 
(Surely, the end pages don't matter.) You can look at the n.dashify 
routine for ideas how to do that.


rh



Re: Strange Bibtex behavior

2008-10-12 Thread rgheck

rgheck wrote:

[EMAIL PROTECTED] wrote:

Hello,

I ran into a strange problem with bibtex while editing my thesis in 
Lyx. Maybe it is not really a problem with lyx but I'm no 
latex/bibtex expert by far and so maybe users of this list can give 
me a hint.


My problem is:

I use author-year citations with my own nat-bib based bibtex style 
(created with custombib).
I have two citations from the same author, in the same journal issue 
and from the same year. These are made unique by automatically adding 
an a or b at the end of the year, e.g.


Knaus (2008) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008) Another new hypothesis. Journal. Issue 1. p. 20-30

should be coverted to

Knaus (2008a) Introduction. Journal. Issue 1.  p. 1-12
Knaus (2008b) Another new hypothesis. Journal. Issue 1. p. 20-30

but gets converted to

Knaus (2008b) Introduction. Journal. Issue 1. p. 1-12
Knaus (2008a) Another new hypothesis. Journal. Issue 1. p. 20-30

Probably there is something in the bst file which sorts the addition 
of a's and b's according to the alphabetical order of the title which 
is generally o.k. but if it's in the same journal issue it should be 
sorted numerically according to the pages.
How do I get this? (I have looked into the bst file, but it is so 
long ago that I created it...)
Do I have to change something in the .bst file or do I have to add 
some special bibtex trick to the preamble of my Lyx file?


  
It's the bst file that handles this. The presort routine assigns a 
sort key to each entry, and then they are sorted according to those 
keys. It's a pretty basic routine. What you get is not much more than 
author, year, and title, though you get a bit more in some cases.


So you need to fiddle with the presort routine and include the page 
numbers in the key. This will be kind of tricky to get, as the obvious 
thing to do will get the wrong result with something like: pp. 34-60 
vs pp. 124-50. The latter is lexically before the former, so you'd 
need to normalize somehow so the former would be "036", or something 
like that. (Surely, the end pages don't matter.) You can look at the 
n.dashify routine for ideas how to do that.



This kind of thing will work for normalzing...but I've not tested it.

FUNCTION {n.normalize}
{
   't :=
   t 'save :=
   0 'num :=
   { t empty$ not }
   {
   t #1 #1 substring$ "-" =
   { '' t := }
   {
   t #1 #1 substring$
   t #2 global.max$ substring$ 't :=
   num #1 + 'num :=
   }
   if$
   }
 while$
   #5 'norml :=
   { norml num > }
   { '0' save * 'save := }
   while$
   save
}



Export not working?

2008-10-12 Thread Mitchell Mebane
I've installed LyX 1.6.0-rc3 (the bundle) on Windows and have been 
playing around with it.  I just tried exporting a document to PDF, but I 
don't think it's working properly.  I was confused at first about not 
getting a file dialog asking me to save the file, but I found in the 
user's guide that "The resulting files are placed in the directory of 
your LyX-file."  However, this definitely isn't the case!  I don't seem 
to get any result.


I even tried copying my LyX file to C:\a.lyx (to eliminate the 
possibility of filename/path issues) and opening it from there, but 
export still seems to do absolutely nothing.  Is this a bug I should 
report, or am I doing/understanding something wrong?  I've tried PDF 
(pdflatex) and also exporting as Plain text.


--Mitchell


Metadata?

2008-10-12 Thread itsme213
Is there any way to associate user-defined metadata (such as tags) with lyx 
elements? e.g. can I say paragraph 1 is "hero" and paragraph 2 is "villain"?

Is there a way to get this metadata in any of the outputs e.g. as "role=..." 
in docbook or "class=..." in xhtml?

Thanks -- Sophie