Re: Sorting of literature automatically?

2003-10-01 Thread Michael Logies
At 07:02 01.10.2003 +0200, Herbert Voß wrote:

I attached the file. It is working with
%\usepackage{cite}
and not working with
\usepackage{cite}
do not use spaces inside the keywords!
Herbert,

thanks. When I replace spaces by _ in my example file, {cite} is working. 
I consider this a real bug within Lyx. It should warn when using spaces if 
this is not an appropiate syntax for some Latex-macros.
I think it will be a lot of work replacing all spaces with an editor in my 
lyx-file.

Interesting is that hyperref for example has no problem with these spaces. 
Is there a general rule, that newer macros or packages can handle spaces?

Though {cite} would work now, it is stopped from working by hyperref, as I 
see in my example file.
Juergen pointed to http://www.dante.de/faq/de-tex-faq/html/makros3.html#47
Perhaps natbib with hypernat would work better? Has anyone an idea, whether 
this will work with spaces in the keywords of my references or not?

Thanks

Michael
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-10-01 Thread Andre Poenitz
On Wed, Oct 01, 2003 at 09:46:58AM +0200, Michael Logies wrote:
 At 07:02 01.10.2003 +0200, Herbert Voß wrote:
 
 I attached the file. It is working with
 %\usepackage{cite}
 and not working with
 \usepackage{cite}
 
 do not use spaces inside the keywords!
 
 Herbert,
 
 thanks. When I replace spaces by _ in my example file, {cite} is working.

You should even use '-' instead of '_' or ' ' to be really on the safe
side. '_' has usually a special meaning for TeX and there are rare
circumstances where it can be used with the 'ordinary meaning'.
Although \cite should be one of these places, not all TeX related
software is aware of that. So better don't use it.

 I consider this a real bug within Lyx.

It is really hard to 'fix' as TeX is far too complex to come up with a
rule 'char x is forbidden in place y'. 

 It should warn when using spaces if this is not an appropiate syntax
 for some Latex-macros.  I think it will be a lot of work replacing all
 spaces with an editor in my lyx-file.
 
 Interesting is that hyperref for example has no problem with these
 spaces.  Is there a general rule, that newer macros or packages can
 handle spaces?

Sort of, yes. Building robust (La)TeX macros is an art (a dark one, if
you ask me), so the casual package writer tends to miss a few corner
cases in the first fourhundred releases or so.

Andre'


Re: Sorting of literature automatically?

2003-10-01 Thread Herbert Voß
Andre Poenitz schrieb:

I consider this a real bug within Lyx.


It is really hard to 'fix' as TeX is far too complex to come up with a
rule 'char x is forbidden in place y'. 
no, not for keywords and labels, where LyX controls the
user input.
Herbert




Re: Sorting of literature automatically?

2003-10-01 Thread Andre Poenitz
On Wed, Oct 01, 2003 at 04:19:28PM +0200, Herbert Voß wrote:
 Andre Poenitz schrieb:
 
 I consider this a real bug within Lyx.
 
 
 It is really hard to 'fix' as TeX is far too complex to come up with a
 rule 'char x is forbidden in place y'. 
 
 no, not for keywords and labels, where LyX controls the
 user input.

LyX controls the user input, but after ERT, a non-empty preamble or any
non-standard style, all control is gone:


fancycite.sty:

\let\oldcite\cite
\def\cite{\catcode`z=1\oldcite}


Now use

\usepackage{fancycite}

and enter a citation containing the letter 'z'.

How should LyX know that this is 'forbidden'?

Andre' 


Re: Sorting of literature automatically?

2003-10-01 Thread Herbert Voß
Andre Poenitz schrieb:
On Wed, Oct 01, 2003 at 04:19:28PM +0200, Herbert Voß wrote:

Andre Poenitz schrieb:


I consider this a real bug within Lyx.


It is really hard to 'fix' as TeX is far too complex to come up with a
rule 'char x is forbidden in place y'. 
no, not for keywords and labels, where LyX controls the
user input.


LyX controls the user input, but after ERT, a non-empty preamble or any
non-standard style, all control is gone:
sure, that is significant to _all_ kinds programming
languages.
fancycite.sty:

\let\oldcite\cite
\def\cite{\catcode`z=1\oldcite}
Now use

\usepackage{fancycite}

and enter a citation containing the letter 'z'.

How should LyX know that this is 'forbidden'?
we are talking about (La)TeX and not some packages
and not ERT. In _LaTeX_ it is not a good idea to have spaces and/or
control characters in filesnames/labels/keywords.
Everything in this way is on users risk! If it works, fine
if not, c'est la vie ...
Herbert




Re: Sorting of literature automatically?

2003-10-01 Thread Michael Logies
At 16:52 01.10.2003 +0200, Herbert Voß wrote:

we are talking about (La)TeX and not some packages
and not ERT. In _LaTeX_ it is not a good idea to have spaces and/or
control characters in filesnames/labels/keywords.
Herbert,

it is even worse. It seems as if {natbib} doesn`t accept a german Umlaut in 
keywords.
What about a Umlaut in labels and filenames?

Thanks

Michael
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-10-01 Thread Michael Logies
At 02:03 29.09.2003 +0200, Michael Logies wrote:

Is there a way to sort these hints to the literature automatically 
ascending (Lyx 1.3.2 for Qt)?
After eliminating spaces and german umlaute from the keywords of the 
bibliographic entries, sorting is now working well with {cite} or {natbib}, 
{hypernat}.
{cite} tolerates Umlaute (but does not work with hyperref), {natbib} does 
not tolerate Umlaute, but works with hyperref.

Regards

M.

From my preamble:
%%% Sortiert die Literaturstellen aufsteigend im Text:
%% Erste Möglichkeit, geht nicht zusammen mit hyperref
%\usepackage{cite}
%% Zweite Möglichkeit, geht zusammen mit hyperref:
% Entweder so:
%\usepackage[numbers,sort]{natbib}
% Oder so:
\usepackage[numbers,sortcompress]{natbib}
\usepackage{hypernat}
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-10-01 Thread Herbert Voß
Michael Logies schrieb:
At 16:52 01.10.2003 +0200, Herbert Voß wrote:

we are talking about (La)TeX and not some packages
and not ERT. In _LaTeX_ it is not a good idea to have spaces and/or
control characters in filesnames/labels/keywords.


Herbert,

it is even worse. It seems as if {natbib} doesn`t accept a german Umlaut 
in keywords.
What about a Umlaut in labels and filenames?
yes, maybe problematic too. I have no working 1.3.X
here, but in 1.4 the problem is LyX, not LaTeX. I get
blah see section schön\ref{sec:sch=F6n}. and see schön
\citet{schn:1918}
both were inserted as schön

Herbert




Re: Sorting of literature automatically?

2003-10-01 Thread Michael Logies
At 07:02 01.10.2003 +0200, Herbert Voß wrote:

I attached the file. It is working with
%\usepackage{cite}
and not working with
\usepackage{cite}
do not use spaces inside the keywords!
Herbert,

thanks. When I replace spaces by _ in my example file, {cite} is working. 
I consider this a real bug within Lyx. It should warn when using spaces if 
this is not an appropiate syntax for some Latex-macros.
I think it will be a lot of work replacing all spaces with an editor in my 
lyx-file.

Interesting is that hyperref for example has no problem with these spaces. 
Is there a general rule, that newer macros or packages can handle spaces?

Though {cite} would work now, it is stopped from working by hyperref, as I 
see in my example file.
Juergen pointed to http://www.dante.de/faq/de-tex-faq/html/makros3.html#47
Perhaps natbib with hypernat would work better? Has anyone an idea, whether 
this will work with spaces in the keywords of my references or not?

Thanks

Michael
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-10-01 Thread Andre Poenitz
On Wed, Oct 01, 2003 at 09:46:58AM +0200, Michael Logies wrote:
 At 07:02 01.10.2003 +0200, Herbert Voß wrote:
 
 I attached the file. It is working with
 %\usepackage{cite}
 and not working with
 \usepackage{cite}
 
 do not use spaces inside the keywords!
 
 Herbert,
 
 thanks. When I replace spaces by _ in my example file, {cite} is working.

You should even use '-' instead of '_' or ' ' to be really on the safe
side. '_' has usually a special meaning for TeX and there are rare
circumstances where it can be used with the 'ordinary meaning'.
Although \cite should be one of these places, not all TeX related
software is aware of that. So better don't use it.

 I consider this a real bug within Lyx.

It is really hard to 'fix' as TeX is far too complex to come up with a
rule 'char x is forbidden in place y'. 

 It should warn when using spaces if this is not an appropiate syntax
 for some Latex-macros.  I think it will be a lot of work replacing all
 spaces with an editor in my lyx-file.
 
 Interesting is that hyperref for example has no problem with these
 spaces.  Is there a general rule, that newer macros or packages can
 handle spaces?

Sort of, yes. Building robust (La)TeX macros is an art (a dark one, if
you ask me), so the casual package writer tends to miss a few corner
cases in the first fourhundred releases or so.

Andre'


Re: Sorting of literature automatically?

2003-10-01 Thread Herbert Voß
Andre Poenitz schrieb:

I consider this a real bug within Lyx.


It is really hard to 'fix' as TeX is far too complex to come up with a
rule 'char x is forbidden in place y'. 
no, not for keywords and labels, where LyX controls the
user input.
Herbert




Re: Sorting of literature automatically?

2003-10-01 Thread Andre Poenitz
On Wed, Oct 01, 2003 at 04:19:28PM +0200, Herbert Voß wrote:
 Andre Poenitz schrieb:
 
 I consider this a real bug within Lyx.
 
 
 It is really hard to 'fix' as TeX is far too complex to come up with a
 rule 'char x is forbidden in place y'. 
 
 no, not for keywords and labels, where LyX controls the
 user input.

LyX controls the user input, but after ERT, a non-empty preamble or any
non-standard style, all control is gone:


fancycite.sty:

\let\oldcite\cite
\def\cite{\catcode`z=1\oldcite}


Now use

\usepackage{fancycite}

and enter a citation containing the letter 'z'.

How should LyX know that this is 'forbidden'?

Andre' 


Re: Sorting of literature automatically?

2003-10-01 Thread Herbert Voß
Andre Poenitz schrieb:
On Wed, Oct 01, 2003 at 04:19:28PM +0200, Herbert Voß wrote:

Andre Poenitz schrieb:


I consider this a real bug within Lyx.


It is really hard to 'fix' as TeX is far too complex to come up with a
rule 'char x is forbidden in place y'. 
no, not for keywords and labels, where LyX controls the
user input.


LyX controls the user input, but after ERT, a non-empty preamble or any
non-standard style, all control is gone:
sure, that is significant to _all_ kinds programming
languages.
fancycite.sty:

\let\oldcite\cite
\def\cite{\catcode`z=1\oldcite}
Now use

\usepackage{fancycite}

and enter a citation containing the letter 'z'.

How should LyX know that this is 'forbidden'?
we are talking about (La)TeX and not some packages
and not ERT. In _LaTeX_ it is not a good idea to have spaces and/or
control characters in filesnames/labels/keywords.
Everything in this way is on users risk! If it works, fine
if not, c'est la vie ...
Herbert




Re: Sorting of literature automatically?

2003-10-01 Thread Michael Logies
At 16:52 01.10.2003 +0200, Herbert Voß wrote:

we are talking about (La)TeX and not some packages
and not ERT. In _LaTeX_ it is not a good idea to have spaces and/or
control characters in filesnames/labels/keywords.
Herbert,

it is even worse. It seems as if {natbib} doesn`t accept a german Umlaut in 
keywords.
What about a Umlaut in labels and filenames?

Thanks

Michael
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-10-01 Thread Michael Logies
At 02:03 29.09.2003 +0200, Michael Logies wrote:

Is there a way to sort these hints to the literature automatically 
ascending (Lyx 1.3.2 for Qt)?
After eliminating spaces and german umlaute from the keywords of the 
bibliographic entries, sorting is now working well with {cite} or {natbib}, 
{hypernat}.
{cite} tolerates Umlaute (but does not work with hyperref), {natbib} does 
not tolerate Umlaute, but works with hyperref.

Regards

M.

From my preamble:
%%% Sortiert die Literaturstellen aufsteigend im Text:
%% Erste Möglichkeit, geht nicht zusammen mit hyperref
%\usepackage{cite}
%% Zweite Möglichkeit, geht zusammen mit hyperref:
% Entweder so:
%\usepackage[numbers,sort]{natbib}
% Oder so:
\usepackage[numbers,sortcompress]{natbib}
\usepackage{hypernat}
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-10-01 Thread Herbert Voß
Michael Logies schrieb:
At 16:52 01.10.2003 +0200, Herbert Voß wrote:

we are talking about (La)TeX and not some packages
and not ERT. In _LaTeX_ it is not a good idea to have spaces and/or
control characters in filesnames/labels/keywords.


Herbert,

it is even worse. It seems as if {natbib} doesn`t accept a german Umlaut 
in keywords.
What about a Umlaut in labels and filenames?
yes, maybe problematic too. I have no working 1.3.X
here, but in 1.4 the problem is LyX, not LaTeX. I get
blah see section schön\ref{sec:sch=F6n}. and see schön
\citet{schn:1918}
both were inserted as schön

Herbert




Re: Sorting of literature automatically?

2003-10-01 Thread Michael Logies
At 07:02 01.10.2003 +0200, Herbert Voß wrote:

I attached the file. It is working with
%\usepackage{cite}
and not working with
\usepackage{cite}
do not use spaces inside the keywords!
Herbert,

thanks. When I replace spaces by "_" in my example file, {cite} is working. 
I consider this a real bug within Lyx. It should warn when using spaces if 
this is not an appropiate syntax for some Latex-macros.
I think it will be a lot of work replacing all spaces with an editor in my 
lyx-file.

Interesting is that hyperref for example has no problem with these spaces. 
Is there a general rule, that newer macros or packages can handle spaces?

Though {cite} would work now, it is stopped from working by hyperref, as I 
see in my example file.
Juergen pointed to http://www.dante.de/faq/de-tex-faq/html/makros3.html#47
Perhaps natbib with hypernat would work better? Has anyone an idea, whether 
this will work with spaces in the keywords of my references or not?

Thanks

Michael
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-10-01 Thread Andre Poenitz
On Wed, Oct 01, 2003 at 09:46:58AM +0200, Michael Logies wrote:
> At 07:02 01.10.2003 +0200, Herbert Voß wrote:
> 
> >>I attached the file. It is working with
> >>%\usepackage{cite}
> >>and not working with
> >>\usepackage{cite}
> >
> >do not use spaces inside the keywords!
> 
> Herbert,
> 
> thanks. When I replace spaces by "_" in my example file, {cite} is working.

You should even use '-' instead of '_' or ' ' to be really on the safe
side. '_' has usually a special meaning for TeX and there are rare
circumstances where it can be used with the 'ordinary meaning'.
Although \cite should be one of these places, not all TeX related
software is aware of that. So better don't use it.

> I consider this a real bug within Lyx.

It is really hard to 'fix' as TeX is far too complex to come up with a
rule 'char x is forbidden in place y'. 

> It should warn when using spaces if this is not an appropiate syntax
> for some Latex-macros.  I think it will be a lot of work replacing all
> spaces with an editor in my lyx-file.
> 
> Interesting is that hyperref for example has no problem with these
> spaces.  Is there a general rule, that newer macros or packages can
> handle spaces?

Sort of, yes. Building robust (La)TeX macros is an art (a dark one, if
you ask me), so the casual package writer tends to miss a few corner
cases in the first fourhundred releases or so.

Andre'


Re: Sorting of literature automatically?

2003-10-01 Thread Herbert Voß
Andre Poenitz schrieb:

I consider this a real bug within Lyx.


It is really hard to 'fix' as TeX is far too complex to come up with a
rule 'char x is forbidden in place y'. 
no, not for keywords and labels, where LyX controls the
user input.
Herbert




Re: Sorting of literature automatically?

2003-10-01 Thread Andre Poenitz
On Wed, Oct 01, 2003 at 04:19:28PM +0200, Herbert Voß wrote:
> Andre Poenitz schrieb:
> 
> >>I consider this a real bug within Lyx.
> >
> >
> >It is really hard to 'fix' as TeX is far too complex to come up with a
> >rule 'char x is forbidden in place y'. 
> 
> no, not for keywords and labels, where LyX controls the
> user input.

LyX controls the user input, but after ERT, a non-empty preamble or any
non-standard style, all control is gone:


fancycite.sty:

\let\oldcite\cite
\def\cite{\catcode`z=1\oldcite}


Now use

\usepackage{fancycite}

and enter a citation containing the letter 'z'.

How should LyX know that this is 'forbidden'?

Andre' 


Re: Sorting of literature automatically?

2003-10-01 Thread Herbert Voß
Andre Poenitz schrieb:
On Wed, Oct 01, 2003 at 04:19:28PM +0200, Herbert Voß wrote:

Andre Poenitz schrieb:


I consider this a real bug within Lyx.


It is really hard to 'fix' as TeX is far too complex to come up with a
rule 'char x is forbidden in place y'. 
no, not for keywords and labels, where LyX controls the
user input.


LyX controls the user input, but after ERT, a non-empty preamble or any
non-standard style, all control is gone:
sure, that is significant to _all_ kinds programming
languages.
fancycite.sty:

\let\oldcite\cite
\def\cite{\catcode`z=1\oldcite}
Now use

\usepackage{fancycite}

and enter a citation containing the letter 'z'.

How should LyX know that this is 'forbidden'?
we are talking about (La)TeX and not some packages
and not ERT. In _LaTeX_ it is not a good idea to have spaces and/or
control characters in filesnames/labels/keywords.
Everything in this way is on users risk! If it works, fine
if not, c'est la vie ...
Herbert




Re: Sorting of literature automatically?

2003-10-01 Thread Michael Logies
At 16:52 01.10.2003 +0200, Herbert Voß wrote:

we are talking about (La)TeX and not some packages
and not ERT. In _LaTeX_ it is not a good idea to have spaces and/or
control characters in filesnames/labels/keywords.
Herbert,

it is even worse. It seems as if {natbib} doesn`t accept a german Umlaut in 
keywords.
What about a Umlaut in labels and filenames?

Thanks

Michael
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-10-01 Thread Michael Logies
At 02:03 29.09.2003 +0200, Michael Logies wrote:

Is there a way to sort these hints to the literature automatically 
ascending (Lyx 1.3.2 for Qt)?
After eliminating spaces and german umlaute from the keywords of the 
bibliographic entries, sorting is now working well with {cite} or {natbib}, 
{hypernat}.
{cite} tolerates Umlaute (but does not work with hyperref), {natbib} does 
not tolerate Umlaute, but works with hyperref.

Regards

M.

From my preamble:
%%% Sortiert die Literaturstellen aufsteigend im Text:
%% Erste Möglichkeit, geht nicht zusammen mit hyperref
%\usepackage{cite}
%% Zweite Möglichkeit, geht zusammen mit hyperref:
% Entweder so:
%\usepackage[numbers,sort]{natbib}
% Oder so:
\usepackage[numbers,sort]{natbib}
\usepackage{hypernat}
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-10-01 Thread Herbert Voß
Michael Logies schrieb:
At 16:52 01.10.2003 +0200, Herbert Voß wrote:

we are talking about (La)TeX and not some packages
and not ERT. In _LaTeX_ it is not a good idea to have spaces and/or
control characters in filesnames/labels/keywords.


Herbert,

it is even worse. It seems as if {natbib} doesn`t accept a german Umlaut 
in keywords.
What about a Umlaut in labels and filenames?
yes, maybe problematic too. I have no working 1.3.X
here, but in 1.4 the problem is LyX, not LaTeX. I get
blah see section schön\ref{sec:sch=F6n}. and see schön
\citet{schn:1918}
both were inserted as "schön"

Herbert




Re: Sorting of literature automatically?

2003-09-30 Thread Juergen Spitzmueller
Michael Logies wrote:
 \begin{thebibliography}{100}
 \bibitem{Aalen dependent survival}Aalen O. O., Bjertness E., Soonju T.:

Any strong reason why you don't use BibTeX?

Jürgen.


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 08:49 30.09.2003 +0200, Juergen Spitzmueller wrote:

Michael Logies wrote:
 \begin{thebibliography}{100}
 \bibitem{Aalen dependent survival}Aalen O. O., Bjertness E., Soonju T.:
Any strong reason why you don't use BibTeX?
Jürgen,

I did not want to struggle with another program. I am using Lyx Qt on 
Windows almost out of the box. I have experienced that any add-on might 
work or might not work...
I cut and paste most of my references from different databases into Lyx, 
and numbering of my references is changing automatically within Lyx without 
invoking another program. That`s already quite comfortable. I don`t think 
that I will have much more than 150 references (and I already have about 
120 in Lyx), so bibtex might be overkill.

Best regards

M.
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Angus Leeming
Michael Logies wrote:
 I cut and paste most of my references from different databases into
 Lyx, and numbering of my references is changing automatically within Lyx
 without invoking another program. That`s already quite comfortable. I
 don`t think that I will have much more than 150 references (and I already
 have about 120 in Lyx), so bibtex might be overkill.

I think you misunderstand. BibTeX is a database manager that allows you to 
keep all your references in a single database. (Or more if you choose of 
course.) No need _ever_ to cut and paste into LyX.

Of course, you have to generate the database in the first place. Sample 
entry below.

@String{JCI = {J.~Clin. Invest.}}

@article{Allen:etal85,
 author = {J.L. Allen and I.D. Frantz and J.J. Fredberg},
 title  = {Regional alveolar pressure during periodic flow: dual
  manifestations of gas inertia},
 journal = JCI,
 year   = 1985,
 volume = 76,
 pages  = {620-629}
}

Personally, I am quite happy managing my own database with emacs, but there 
are lots of frontends out there, eg pybliographer.

The point is that separating your references out into a database allows you 
to separate data from appearance. You can view the same data in different 
ways by choosing the bibtex style file to format it with.

Anyway, you have clearly invested considerable effort in your present 
scheme so you may well be unwilling to change. Fair enough.

Returning to your original question:
 these numbers are from the bibliography, typically looking like these
 from the tex-file, see below.
 My problem is, that \usepackage{cite} only results in a lot of question
 marks instead of correctly sorted numbers. Any idea?

What happens if you export you lyx file to tex and then run latex by hand 
multiple times (say 3 or 4). Does that resolve your question marks into 
citations?

-- 
Angus



Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 12:14 30.09.2003 +, Angus Leeming wrote:

The point is that separating your references out into a database allows you
to separate data from appearance. You can view the same data in different
ways by choosing the bibtex style file to format it with.
Angus,

I only want to write a thesis, perhaps one paper based on it. That`s it.
The way Lyx offers its references (insert/ citation reference) is very 
nice and allows comfortable handling of references when editing my text. I 
can`t see an advantage of using a reference manager.

What happens if you export you lyx file to tex and then run latex by hand
multiple times (say 3 or 4). Does that resolve your question marks into
citations?
Can you tell me how to run Latex manually (Miktex)? I was only using Lyx so 
far.

Thanks

Michael
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Dekel Tsur
On Tue, Sep 30, 2003 at 01:33:33PM +0200, Michael Logies wrote:
 At 12:14 30.09.2003 +, Angus Leeming wrote:
 
 The point is that separating your references out into a database allows you
 to separate data from appearance. You can view the same data in different
 ways by choosing the bibtex style file to format it with.
 
 Angus,
 
 I only want to write a thesis, perhaps one paper based on it. That`s it.
 The way Lyx offers its references (insert/ citation reference) is very 
 nice and allows comfortable handling of references when editing my text. I 
 can`t see an advantage of using a reference manager.

What happens when you want to delete a citation in the text ?
You need to manually search the text (perhaps loading the lyx file
into an external text editor) and check if there is another 
citation to the same document. If the answer is no, you should delete the
document entry in the bibliography, and if the answer is yes, you don't
delete it.
This is a lot of work, and with bibtex you don't need to do it.

PS: Does changing \usepackage{cite} into \usepackage{citesort} solves your
problem ?


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 16:51 30.09.2003 +0300, Dekel Tsur wrote:

What happens when you want to delete a citation in the text ?
You need to manually search the text (perhaps loading the lyx file
into an external text editor) and check if there is another
citation to the same document.
Hello Dekel,

I hoped that the option [pagebackref] from hyperref would take care of 
this, but hyperref is not working with this option so far (a lot of 
question marks instead of references (similiar to {cite}) and the PDF-File 
finishes after the first page of the bibliography). Without pagebackref 
it`s working fine.

PS: Does changing \usepackage{cite} into \usepackage{citesort} solves your
problem ?
No, Lyx does not finish dvipdfm then. It generates 46 error message, 
looking like this one:

Missing number, treated as zero.
 ...e{Windeler 2/96,Kerschbaum Geurtsen 1/98}
  %
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
Regards

Michael

--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 12:50 30.09.2003 +, Angus Leeming wrote:

You'll get a whole heap of output to screen about things like missing
references. This information is also posted in your_file.log. Have a quick
look at it. Subsequent runs of 'latex.exe your_file.tex' should resolve
the warnings about missing references. If you've run latex 4 times and
they are still present, then the problem really does lie elsewhere.
Angus,

thanks for your detailed description.
I started Latex four times on my file, but the error messages remain the 
same, example below.
Do you think it is a problem with Lyx and it`s Latex-output? Or a problem 
with {cite}?

Regards

Michael



LaTeX Warning: Citation `Windeler2/96' on page 4 undefined on input line 141.

LaTeX Warning: Citation `KerschbaumGeurtsen1/98' on page 4 undefined on input l
ine 141.
LaTeX Font Info:External font `cmex10' loaded for size
(Font)  7 on input line 145.
LaTeX Font Info:External font `cmex10' loaded for size
(Font)  5 on input line 145.
LaTeX Warning: Citation `Hickel98' on page 4 undefined on input line 158.

Overfull \hbox (2.56389pt too wide) in paragraph at lines 151--159
\T1/ppl/m/n/12 Kro-nen, Pro-the-sen) und auch plas-ti-schen Fül-lungs-ma-te-ria
-li-en im be-son-de-ren sind
 []
LaTeX Warning: Citation `Geurtsen1/96' on page 4 undefined on input line 162.

LaTeX Warning: Citation `Geurtsen9/95' on page 4 undefined on input line 162.

LaTeX Warning: Citation `KerschbaumGeurtsen1/99' on page 4 undefined on input l
ine 162.
LaTeX Warning: Citation `KerschbaumGeurtsen1/03' on page 4 undefined on input l
ine 162.
LaTeX Font Info:Try loading font information for T1+pcr on input line 221.
(C:\MikTex\texmf\tex\latex\psnfss\t1pcr.fd
File: t1pcr.fd 2001/06/04 font definitions for T1/pcr.
)
LaTeX Warning: Citation `Millenson1997' on page 4 undefined on input line 227.

LaTeX Warning: Citation `Bogackisurvivalposterior' on page 4 undefined on input
 line 227.
[4]

LaTeX Warning: Citation `Jokstad1998' on page 5 undefined on input line 246.

(...)
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 20:46 30.09.2003 +, Angus Leeming wrote:

Why not send a minimal LyX file demonstrating the problem.
Angus,

I attached the file. It is working with
%\usepackage{cite}
and not working with
\usepackage{cite}
Thanks

M.#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass scrartcl
\begin_preamble
%\usepackage{cite}
\end_preamble
\options openbib,bibtotocnumbered,idxtotoc,liststotoc
\language ngerman
\inputencoding auto
\fontscheme palatino
\graphics default
\paperfontsize 12
\spacing onehalf 
\papersize a4paper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 1
\paperorientation portrait
\leftmargin 3cm
\rightmargin 3cm
\secnumdepth 5
\tocdepth 5
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle headings

\layout Title
\pagebreak_bottom 
QED 
\begin_inset LatexCommand \cite{Altman Goodman 1994,Antes G persönliche M,Aalen 
dependent survival,Baghdadi ZD review 2002,Browning bonded amalgam}

\end_inset 


\layout Bibliography
\bibitem {Aalen dependent survival}

Aalen O.
 O., Bjertness E., Soonju T.: Analysis of dependent survival data applied to
 lifetimes of amalgam fillings.
 Stat.
 Med.
 
\bar under 
14
\bar default 
, 1819-29 (1995), Abstract: 
\begin_inset LatexCommand 
\htmlurl{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrievedb=PubMedlist_uids=7481213dopt=Abstract}

\end_inset 


\layout Bibliography
\bibitem {Altman Goodman 1994}

Altman D.
 G., Goodman, S.
 N.: Transfer of Technology From Statistical Journals to the Biomedical Literatur
e.
 Past Trends and Future Predictions.
 JAMA 
\bar under 
272
\bar default 
, 129-132 (1994).
 Zitiert nach der Veröffentlichung im Web: 
\begin_inset LatexCommand 
\htmlurl{http://www.ama-assn.org/public/peer/7_13_94/pv3108x.htm}

\end_inset 


\layout Bibliography
\bibitem {Antes G persönliche M}

Antes G.: Email vom 1.
 September 2003
\layout Bibliography
\bibitem {Baghdadi ZD review 2002}

Baghdadi Z.
 D.: Preservation-based approaches to restore posterior teeth with amalgam,
 resin or a combination of materials.
 Am.
 J.
 Dent.
 
\bar under 
15
\bar default 
, 54-65 (2002), 
\begin_inset LatexCommand 
\htmlurl{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrievedb=PubMedlist_uids=12074231dopt=Abstract}

\end_inset 


\layout Bibliography
\bibitem {Browning bonded amalgam}

Browning W.
 D., Johnson W.
 W., Gregory P.
 N.: Clinical performance of bonded amalgam restorations at 42 months.
 J.
 Am.
 Dent.
 Assoc.
 
\bar under 
131
\bar default 
, 607-11 (2000), Abstract: 
\begin_inset LatexCommand 
\htmlurl{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrievedb=PubMedlist_uids=10832254dopt=Abstract}

\end_inset 


\the_end
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)

Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 23:26 30.09.2003 +0300, Dekel Tsur wrote:

Perhaps the problem is that you use both hyperref and cite, which both
redifine the latex cite command.
Dekel,

no, the problems persists even without hyperref, see my example file.

Regards

M.
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Herbert Voß
Michael Logies schrieb:
At 20:46 30.09.2003 +, Angus Leeming wrote:

Why not send a minimal LyX file demonstrating the problem.


Angus,

I attached the file. It is working with
%\usepackage{cite}
and not working with
\usepackage{cite}
do not use spaces inside the keywords!

Herbert




Re: Sorting of literature automatically?

2003-09-30 Thread Juergen Spitzmueller
Michael Logies wrote:
 \begin{thebibliography}{100}
 \bibitem{Aalen dependent survival}Aalen O. O., Bjertness E., Soonju T.:

Any strong reason why you don't use BibTeX?

Jürgen.


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 08:49 30.09.2003 +0200, Juergen Spitzmueller wrote:

Michael Logies wrote:
 \begin{thebibliography}{100}
 \bibitem{Aalen dependent survival}Aalen O. O., Bjertness E., Soonju T.:
Any strong reason why you don't use BibTeX?
Jürgen,

I did not want to struggle with another program. I am using Lyx Qt on 
Windows almost out of the box. I have experienced that any add-on might 
work or might not work...
I cut and paste most of my references from different databases into Lyx, 
and numbering of my references is changing automatically within Lyx without 
invoking another program. That`s already quite comfortable. I don`t think 
that I will have much more than 150 references (and I already have about 
120 in Lyx), so bibtex might be overkill.

Best regards

M.
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Angus Leeming
Michael Logies wrote:
 I cut and paste most of my references from different databases into
 Lyx, and numbering of my references is changing automatically within Lyx
 without invoking another program. That`s already quite comfortable. I
 don`t think that I will have much more than 150 references (and I already
 have about 120 in Lyx), so bibtex might be overkill.

I think you misunderstand. BibTeX is a database manager that allows you to 
keep all your references in a single database. (Or more if you choose of 
course.) No need _ever_ to cut and paste into LyX.

Of course, you have to generate the database in the first place. Sample 
entry below.

@String{JCI = {J.~Clin. Invest.}}

@article{Allen:etal85,
 author = {J.L. Allen and I.D. Frantz and J.J. Fredberg},
 title  = {Regional alveolar pressure during periodic flow: dual
  manifestations of gas inertia},
 journal = JCI,
 year   = 1985,
 volume = 76,
 pages  = {620-629}
}

Personally, I am quite happy managing my own database with emacs, but there 
are lots of frontends out there, eg pybliographer.

The point is that separating your references out into a database allows you 
to separate data from appearance. You can view the same data in different 
ways by choosing the bibtex style file to format it with.

Anyway, you have clearly invested considerable effort in your present 
scheme so you may well be unwilling to change. Fair enough.

Returning to your original question:
 these numbers are from the bibliography, typically looking like these
 from the tex-file, see below.
 My problem is, that \usepackage{cite} only results in a lot of question
 marks instead of correctly sorted numbers. Any idea?

What happens if you export you lyx file to tex and then run latex by hand 
multiple times (say 3 or 4). Does that resolve your question marks into 
citations?

-- 
Angus



Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 12:14 30.09.2003 +, Angus Leeming wrote:

The point is that separating your references out into a database allows you
to separate data from appearance. You can view the same data in different
ways by choosing the bibtex style file to format it with.
Angus,

I only want to write a thesis, perhaps one paper based on it. That`s it.
The way Lyx offers its references (insert/ citation reference) is very 
nice and allows comfortable handling of references when editing my text. I 
can`t see an advantage of using a reference manager.

What happens if you export you lyx file to tex and then run latex by hand
multiple times (say 3 or 4). Does that resolve your question marks into
citations?
Can you tell me how to run Latex manually (Miktex)? I was only using Lyx so 
far.

Thanks

Michael
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Dekel Tsur
On Tue, Sep 30, 2003 at 01:33:33PM +0200, Michael Logies wrote:
 At 12:14 30.09.2003 +, Angus Leeming wrote:
 
 The point is that separating your references out into a database allows you
 to separate data from appearance. You can view the same data in different
 ways by choosing the bibtex style file to format it with.
 
 Angus,
 
 I only want to write a thesis, perhaps one paper based on it. That`s it.
 The way Lyx offers its references (insert/ citation reference) is very 
 nice and allows comfortable handling of references when editing my text. I 
 can`t see an advantage of using a reference manager.

What happens when you want to delete a citation in the text ?
You need to manually search the text (perhaps loading the lyx file
into an external text editor) and check if there is another 
citation to the same document. If the answer is no, you should delete the
document entry in the bibliography, and if the answer is yes, you don't
delete it.
This is a lot of work, and with bibtex you don't need to do it.

PS: Does changing \usepackage{cite} into \usepackage{citesort} solves your
problem ?


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 16:51 30.09.2003 +0300, Dekel Tsur wrote:

What happens when you want to delete a citation in the text ?
You need to manually search the text (perhaps loading the lyx file
into an external text editor) and check if there is another
citation to the same document.
Hello Dekel,

I hoped that the option [pagebackref] from hyperref would take care of 
this, but hyperref is not working with this option so far (a lot of 
question marks instead of references (similiar to {cite}) and the PDF-File 
finishes after the first page of the bibliography). Without pagebackref 
it`s working fine.

PS: Does changing \usepackage{cite} into \usepackage{citesort} solves your
problem ?
No, Lyx does not finish dvipdfm then. It generates 46 error message, 
looking like this one:

Missing number, treated as zero.
 ...e{Windeler 2/96,Kerschbaum Geurtsen 1/98}
  %
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)
Regards

Michael

--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 12:50 30.09.2003 +, Angus Leeming wrote:

You'll get a whole heap of output to screen about things like missing
references. This information is also posted in your_file.log. Have a quick
look at it. Subsequent runs of 'latex.exe your_file.tex' should resolve
the warnings about missing references. If you've run latex 4 times and
they are still present, then the problem really does lie elsewhere.
Angus,

thanks for your detailed description.
I started Latex four times on my file, but the error messages remain the 
same, example below.
Do you think it is a problem with Lyx and it`s Latex-output? Or a problem 
with {cite}?

Regards

Michael



LaTeX Warning: Citation `Windeler2/96' on page 4 undefined on input line 141.

LaTeX Warning: Citation `KerschbaumGeurtsen1/98' on page 4 undefined on input l
ine 141.
LaTeX Font Info:External font `cmex10' loaded for size
(Font)  7 on input line 145.
LaTeX Font Info:External font `cmex10' loaded for size
(Font)  5 on input line 145.
LaTeX Warning: Citation `Hickel98' on page 4 undefined on input line 158.

Overfull \hbox (2.56389pt too wide) in paragraph at lines 151--159
\T1/ppl/m/n/12 Kro-nen, Pro-the-sen) und auch plas-ti-schen Fül-lungs-ma-te-ria
-li-en im be-son-de-ren sind
 []
LaTeX Warning: Citation `Geurtsen1/96' on page 4 undefined on input line 162.

LaTeX Warning: Citation `Geurtsen9/95' on page 4 undefined on input line 162.

LaTeX Warning: Citation `KerschbaumGeurtsen1/99' on page 4 undefined on input l
ine 162.
LaTeX Warning: Citation `KerschbaumGeurtsen1/03' on page 4 undefined on input l
ine 162.
LaTeX Font Info:Try loading font information for T1+pcr on input line 221.
(C:\MikTex\texmf\tex\latex\psnfss\t1pcr.fd
File: t1pcr.fd 2001/06/04 font definitions for T1/pcr.
)
LaTeX Warning: Citation `Millenson1997' on page 4 undefined on input line 227.

LaTeX Warning: Citation `Bogackisurvivalposterior' on page 4 undefined on input
 line 227.
[4]

LaTeX Warning: Citation `Jokstad1998' on page 5 undefined on input line 246.

(...)
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 20:46 30.09.2003 +, Angus Leeming wrote:

Why not send a minimal LyX file demonstrating the problem.
Angus,

I attached the file. It is working with
%\usepackage{cite}
and not working with
\usepackage{cite}
Thanks

M.#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass scrartcl
\begin_preamble
%\usepackage{cite}
\end_preamble
\options openbib,bibtotocnumbered,idxtotoc,liststotoc
\language ngerman
\inputencoding auto
\fontscheme palatino
\graphics default
\paperfontsize 12
\spacing onehalf 
\papersize a4paper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 1
\paperorientation portrait
\leftmargin 3cm
\rightmargin 3cm
\secnumdepth 5
\tocdepth 5
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle headings

\layout Title
\pagebreak_bottom 
QED 
\begin_inset LatexCommand \cite{Altman Goodman 1994,Antes G persönliche M,Aalen 
dependent survival,Baghdadi ZD review 2002,Browning bonded amalgam}

\end_inset 


\layout Bibliography
\bibitem {Aalen dependent survival}

Aalen O.
 O., Bjertness E., Soonju T.: Analysis of dependent survival data applied to
 lifetimes of amalgam fillings.
 Stat.
 Med.
 
\bar under 
14
\bar default 
, 1819-29 (1995), Abstract: 
\begin_inset LatexCommand 
\htmlurl{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrievedb=PubMedlist_uids=7481213dopt=Abstract}

\end_inset 


\layout Bibliography
\bibitem {Altman Goodman 1994}

Altman D.
 G., Goodman, S.
 N.: Transfer of Technology From Statistical Journals to the Biomedical Literatur
e.
 Past Trends and Future Predictions.
 JAMA 
\bar under 
272
\bar default 
, 129-132 (1994).
 Zitiert nach der Veröffentlichung im Web: 
\begin_inset LatexCommand 
\htmlurl{http://www.ama-assn.org/public/peer/7_13_94/pv3108x.htm}

\end_inset 


\layout Bibliography
\bibitem {Antes G persönliche M}

Antes G.: Email vom 1.
 September 2003
\layout Bibliography
\bibitem {Baghdadi ZD review 2002}

Baghdadi Z.
 D.: Preservation-based approaches to restore posterior teeth with amalgam,
 resin or a combination of materials.
 Am.
 J.
 Dent.
 
\bar under 
15
\bar default 
, 54-65 (2002), 
\begin_inset LatexCommand 
\htmlurl{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrievedb=PubMedlist_uids=12074231dopt=Abstract}

\end_inset 


\layout Bibliography
\bibitem {Browning bonded amalgam}

Browning W.
 D., Johnson W.
 W., Gregory P.
 N.: Clinical performance of bonded amalgam restorations at 42 months.
 J.
 Am.
 Dent.
 Assoc.
 
\bar under 
131
\bar default 
, 607-11 (2000), Abstract: 
\begin_inset LatexCommand 
\htmlurl{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrievedb=PubMedlist_uids=10832254dopt=Abstract}

\end_inset 


\the_end
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)

Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 23:26 30.09.2003 +0300, Dekel Tsur wrote:

Perhaps the problem is that you use both hyperref and cite, which both
redifine the latex cite command.
Dekel,

no, the problems persists even without hyperref, see my example file.

Regards

M.
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Herbert Voß
Michael Logies schrieb:
At 20:46 30.09.2003 +, Angus Leeming wrote:

Why not send a minimal LyX file demonstrating the problem.


Angus,

I attached the file. It is working with
%\usepackage{cite}
and not working with
\usepackage{cite}
do not use spaces inside the keywords!

Herbert




Re: Sorting of literature automatically?

2003-09-30 Thread Juergen Spitzmueller
Michael Logies wrote:
> \begin{thebibliography}{100}
> \bibitem{Aalen dependent survival}Aalen O. O., Bjertness E., Soonju T.:

Any strong reason why you don't use BibTeX?

Jürgen.


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 08:49 30.09.2003 +0200, Juergen Spitzmueller wrote:

Michael Logies wrote:
> \begin{thebibliography}{100}
> \bibitem{Aalen dependent survival}Aalen O. O., Bjertness E., Soonju T.:
Any strong reason why you don't use BibTeX?
Jürgen,

I did not want to struggle with another program. I am using Lyx Qt on 
Windows almost out of the box. I have experienced that any add-on might 
work or might not work...
I "cut and paste" most of my references from different databases into Lyx, 
and numbering of my references is changing automatically within Lyx without 
invoking another program. That`s already quite comfortable. I don`t think 
that I will have much more than 150 references (and I already have about 
120 in Lyx), so bibtex might be overkill.

Best regards

M.
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Angus Leeming
Michael Logies wrote:
> I "cut and paste" most of my references from different databases into
> Lyx, and numbering of my references is changing automatically within Lyx
> without invoking another program. That`s already quite comfortable. I
> don`t think that I will have much more than 150 references (and I already
> have about 120 in Lyx), so bibtex might be overkill.

I think you misunderstand. BibTeX is a database manager that allows you to 
keep all your references in a single database. (Or more if you choose of 
course.) No need _ever_ to cut and paste into LyX.

Of course, you have to generate the database in the first place. Sample 
entry below.

@String{JCI = {J.~Clin. Invest.}}

@article{Allen:etal85,
 author = {J.L. Allen and I.D. Frantz and J.J. Fredberg},
 title  = {Regional alveolar pressure during periodic flow: dual
  manifestations of gas inertia},
 journal = JCI,
 year   = 1985,
 volume = 76,
 pages  = {620-629}
}

Personally, I am quite happy managing my own database with emacs, but there 
are lots of frontends out there, eg pybliographer.

The point is that separating your references out into a database allows you 
to separate data from appearance. You can view the same data in different 
ways by choosing the bibtex style file to format it with.

Anyway, you have clearly invested considerable effort in your present 
scheme so you may well be unwilling to change. Fair enough.

Returning to your original question:
> these numbers are from the bibliography, typically looking like these
> from the tex-file, see below.
> My problem is, that \usepackage{cite} only results in a lot of question
> marks instead of correctly sorted numbers. Any idea?

What happens if you export you lyx file to tex and then run latex by hand 
multiple times (say 3 or 4). Does that resolve your question marks into 
citations?

-- 
Angus



Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 12:14 30.09.2003 +, Angus Leeming wrote:

The point is that separating your references out into a database allows you
to separate data from appearance. You can view the same data in different
ways by choosing the bibtex style file to format it with.
Angus,

I only want to write a thesis, perhaps one paper based on it. That`s it.
The way Lyx offers its references ("insert"/ "citation reference") is very 
nice and allows comfortable handling of references when editing my text. I 
can`t see an advantage of using a reference manager.

What happens if you export you lyx file to tex and then run latex by hand
multiple times (say 3 or 4). Does that resolve your question marks into
citations?
Can you tell me how to run Latex manually (Miktex)? I was only using Lyx so 
far.

Thanks

Michael
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Dekel Tsur
On Tue, Sep 30, 2003 at 01:33:33PM +0200, Michael Logies wrote:
> At 12:14 30.09.2003 +, Angus Leeming wrote:
> 
> >The point is that separating your references out into a database allows you
> >to separate data from appearance. You can view the same data in different
> >ways by choosing the bibtex style file to format it with.
> 
> Angus,
> 
> I only want to write a thesis, perhaps one paper based on it. That`s it.
> The way Lyx offers its references ("insert"/ "citation reference") is very 
> nice and allows comfortable handling of references when editing my text. I 
> can`t see an advantage of using a reference manager.

What happens when you want to delete a citation in the text ?
You need to manually search the text (perhaps loading the lyx file
into an external text editor) and check if there is another 
citation to the same document. If the answer is no, you should delete the
document entry in the bibliography, and if the answer is yes, you don't
delete it.
This is a lot of work, and with bibtex you don't need to do it.

PS: Does changing \usepackage{cite} into \usepackage{citesort} solves your
problem ?


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 16:51 30.09.2003 +0300, Dekel Tsur wrote:

What happens when you want to delete a citation in the text ?
You need to manually search the text (perhaps loading the lyx file
into an external text editor) and check if there is another
citation to the same document.
Hello Dekel,

I hoped that the option [pagebackref] from hyperref would take care of 
this, but hyperref is not working with this option so far (a lot of 
question marks instead of references (similiar to {cite}) and the PDF-File 
finishes after the first page of the bibliography). Without pagebackref 
it`s working fine.

PS: Does changing \usepackage{cite} into \usepackage{citesort} solves your
problem ?
No, Lyx does not finish dvipdfm then. It generates 46 error message, 
looking like this one:

"Missing number, treated as zero.
 ...e{Windeler 2/96,Kerschbaum Geurtsen 1/98}
  %
A number should have been here; I inserted `0'.
(If you can't figure out why I needed to see a number,
look up `weird error' in the index to The TeXbook.)"
Regards

Michael

--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 12:50 30.09.2003 +, Angus Leeming wrote:

You'll get a whole heap of output to screen about things like missing
references. This information is also posted in your_file.log. Have a quick
look at it. Subsequent runs of 'latex.exe your_file.tex' should resolve
the warnings about missing references. If you've run latex 4 times and
they are still present, then the problem really does lie elsewhere.
Angus,

thanks for your detailed description.
I started Latex four times on my file, but the error messages remain the 
same, example below.
Do you think it is a problem with Lyx and it`s Latex-output? Or a problem 
with {cite}?

Regards

Michael



LaTeX Warning: Citation `Windeler2/96' on page 4 undefined on input line 141.

LaTeX Warning: Citation `KerschbaumGeurtsen1/98' on page 4 undefined on input l
ine 141.
LaTeX Font Info:External font `cmex10' loaded for size
(Font)  <7> on input line 145.
LaTeX Font Info:External font `cmex10' loaded for size
(Font)  <5> on input line 145.
LaTeX Warning: Citation `Hickel98' on page 4 undefined on input line 158.

Overfull \hbox (2.56389pt too wide) in paragraph at lines 151--159
\T1/ppl/m/n/12 Kro-nen, Pro-the-sen) und auch plas-ti-schen Fül-lungs-ma-te-ria
-li-en im be-son-de-ren sind
 []
LaTeX Warning: Citation `Geurtsen1/96' on page 4 undefined on input line 162.

LaTeX Warning: Citation `Geurtsen9/95' on page 4 undefined on input line 162.

LaTeX Warning: Citation `KerschbaumGeurtsen1/99' on page 4 undefined on input l
ine 162.
LaTeX Warning: Citation `KerschbaumGeurtsen1/03' on page 4 undefined on input l
ine 162.
LaTeX Font Info:Try loading font information for T1+pcr on input line 221.
(C:\MikTex\texmf\tex\latex\psnfss\t1pcr.fd
File: t1pcr.fd 2001/06/04 font definitions for T1/pcr.
)
LaTeX Warning: Citation `Millenson1997' on page 4 undefined on input line 227.

LaTeX Warning: Citation `Bogackisurvivalposterior' on page 4 undefined on input
 line 227.
[4]

LaTeX Warning: Citation `Jokstad1998' on page 5 undefined on input line 246.

(...)
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 20:46 30.09.2003 +, Angus Leeming wrote:

Why not send a minimal LyX file demonstrating the problem.
Angus,

I attached the file. It is working with
%\usepackage{cite}
and not working with
\usepackage{cite}
Thanks

M.#LyX 1.3 created this file. For more info see http://www.lyx.org/
\lyxformat 221
\textclass scrartcl
\begin_preamble
%\usepackage{cite}
\end_preamble
\options openbib,bibtotocnumbered,idxtotoc,liststotoc
\language ngerman
\inputencoding auto
\fontscheme palatino
\graphics default
\paperfontsize 12
\spacing onehalf 
\papersize a4paper
\paperpackage a4
\use_geometry 1
\use_amsmath 0
\use_natbib 0
\use_numerical_citations 1
\paperorientation portrait
\leftmargin 3cm
\rightmargin 3cm
\secnumdepth 5
\tocdepth 5
\paragraph_separation indent
\defskip medskip
\quotes_language english
\quotes_times 2
\papercolumns 1
\papersides 1
\paperpagestyle headings

\layout Title
\pagebreak_bottom 
QED 
\begin_inset LatexCommand \cite{Altman Goodman 1994,Antes G persönliche M,Aalen 
dependent survival,Baghdadi ZD review 2002,Browning bonded amalgam}

\end_inset 


\layout Bibliography
\bibitem {Aalen dependent survival}

Aalen O.
 O., Bjertness E., Soonju T.: Analysis of dependent survival data applied to
 lifetimes of amalgam fillings.
 Stat.
 Med.
 
\bar under 
14
\bar default 
, 1819-29 (1995), Abstract: 
\begin_inset LatexCommand 
\htmlurl{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve=PubMed_uids=7481213=Abstract}

\end_inset 


\layout Bibliography
\bibitem {Altman Goodman 1994}

Altman D.
 G., Goodman, S.
 N.: Transfer of Technology From Statistical Journals to the Biomedical Literatur
e.
 Past Trends and Future Predictions.
 JAMA 
\bar under 
272
\bar default 
, 129-132 (1994).
 Zitiert nach der Veröffentlichung im Web: 
\begin_inset LatexCommand 
\htmlurl{http://www.ama-assn.org/public/peer/7_13_94/pv3108x.htm}

\end_inset 


\layout Bibliography
\bibitem {Antes G persönliche M}

Antes G.: Email vom 1.
 September 2003
\layout Bibliography
\bibitem {Baghdadi ZD review 2002}

Baghdadi Z.
 D.: Preservation-based approaches to restore posterior teeth with amalgam,
 resin or a combination of materials.
 Am.
 J.
 Dent.
 
\bar under 
15
\bar default 
, 54-65 (2002), 
\begin_inset LatexCommand 
\htmlurl{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve=PubMed_uids=12074231=Abstract}

\end_inset 


\layout Bibliography
\bibitem {Browning bonded amalgam}

Browning W.
 D., Johnson W.
 W., Gregory P.
 N.: Clinical performance of bonded amalgam restorations at 42 months.
 J.
 Am.
 Dent.
 Assoc.
 
\bar under 
131
\bar default 
, 607-11 (2000), Abstract: 
\begin_inset LatexCommand 
\htmlurl{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve=PubMed_uids=10832254=Abstract}

\end_inset 


\the_end
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)

Re: Sorting of literature automatically?

2003-09-30 Thread Michael Logies
At 23:26 30.09.2003 +0300, Dekel Tsur wrote:

Perhaps the problem is that you use both hyperref and cite, which both
redifine the latex cite command.
Dekel,

no, the problems persists even without hyperref, see my example file.

Regards

M.
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-30 Thread Herbert Voß
Michael Logies schrieb:
At 20:46 30.09.2003 +, Angus Leeming wrote:

Why not send a minimal LyX file demonstrating the problem.


Angus,

I attached the file. It is working with
%\usepackage{cite}
and not working with
\usepackage{cite}
do not use spaces inside the keywords!

Herbert




Re: Sorting of literature automatically?

2003-09-29 Thread Juergen Spitzmueller
Michael Logies wrote:
 Is there a way to sort these hints to the literature automatically
 ascending (Lyx 1.3.2 for Qt)?

\usepackage{cite}
(in preamble). You can get the package here:
ftp://ftp.dante.de/tex-archive/macros/latex/contrib/cite/

also cf:
http://www.dante.de/faq/de-tex-faq/html/makros3.html#47

Jürgen.


Re: Sorting of literature automatically?

2003-09-29 Thread Michael Logies
At 09:20 29.09.2003 +0200, Herbert Voss wrote:

 Reviews: [45, 47, 57, 58, 64, 65, 66, 74, 81, 82, 89, 93, 100, 101, 103,
 104, 114, 115,
 116, 117, 122, 5, 51]

 Is there a way to sort these hints to the literature automatically
 ascending (Lyx 1.3.2 for Qt)?
\usepackage{cite} if these numbers are from the bibliography
Herbert, Jürgen,

these numbers are from the bibliography, typically looking like these from 
the tex-file, see below.
My problem is, that \usepackage{cite} only results in a lot of question 
marks instead of correctly sorted numbers. Any idea?

Thanks

Michael

\begin{thebibliography}{100}
\bibitem{Aalen dependent survival}Aalen O. O., Bjertness E., Soonju T.: 
Analysis of dependent survival
data applied to lifetimes of amalgam fillings. Stat. Med. \underbar{14},
1819-29 (1995), Abstract: 
\url{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrievedb=PubMedlist_uids=7481213dopt=Abstract}
\bibitem{Altman Goodman 1994}Altman D. G., Goodman, S. N.: Transfer of 
Technology From Statistical
Journals to the Biomedical Literature. Past Trends and Future Predictions.
JAMA \underbar{272}, 129-132 (1994). Zitiert nach der Veröffentlichung
im Web: \url{http://www.ama-assn.org/public/peer/7_13_94/pv3108x.htm}
\bibitem{Antes G persönliche M}Antes G.: Email vom 1. September 2003



or package texsort.sty (sttools), if it is a numerical list.

Herbert
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-29 Thread Juergen Spitzmueller
Michael Logies wrote:
 Is there a way to sort these hints to the literature automatically
 ascending (Lyx 1.3.2 for Qt)?

\usepackage{cite}
(in preamble). You can get the package here:
ftp://ftp.dante.de/tex-archive/macros/latex/contrib/cite/

also cf:
http://www.dante.de/faq/de-tex-faq/html/makros3.html#47

Jürgen.


Re: Sorting of literature automatically?

2003-09-29 Thread Michael Logies
At 09:20 29.09.2003 +0200, Herbert Voss wrote:

 Reviews: [45, 47, 57, 58, 64, 65, 66, 74, 81, 82, 89, 93, 100, 101, 103,
 104, 114, 115,
 116, 117, 122, 5, 51]

 Is there a way to sort these hints to the literature automatically
 ascending (Lyx 1.3.2 for Qt)?
\usepackage{cite} if these numbers are from the bibliography
Herbert, Jürgen,

these numbers are from the bibliography, typically looking like these from 
the tex-file, see below.
My problem is, that \usepackage{cite} only results in a lot of question 
marks instead of correctly sorted numbers. Any idea?

Thanks

Michael

\begin{thebibliography}{100}
\bibitem{Aalen dependent survival}Aalen O. O., Bjertness E., Soonju T.: 
Analysis of dependent survival
data applied to lifetimes of amalgam fillings. Stat. Med. \underbar{14},
1819-29 (1995), Abstract: 
\url{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrievedb=PubMedlist_uids=7481213dopt=Abstract}
\bibitem{Altman Goodman 1994}Altman D. G., Goodman, S. N.: Transfer of 
Technology From Statistical
Journals to the Biomedical Literature. Past Trends and Future Predictions.
JAMA \underbar{272}, 129-132 (1994). Zitiert nach der Veröffentlichung
im Web: \url{http://www.ama-assn.org/public/peer/7_13_94/pv3108x.htm}
\bibitem{Antes G persönliche M}Antes G.: Email vom 1. September 2003



or package texsort.sty (sttools), if it is a numerical list.

Herbert
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)


Re: Sorting of literature automatically?

2003-09-29 Thread Juergen Spitzmueller
Michael Logies wrote:
> Is there a way to sort these hints to the literature automatically
> ascending (Lyx 1.3.2 for Qt)?

\usepackage{cite}
(in preamble). You can get the package here:
ftp://ftp.dante.de/tex-archive/macros/latex/contrib/cite/

also cf:
http://www.dante.de/faq/de-tex-faq/html/makros3.html#47

Jürgen.


Re: Sorting of literature automatically?

2003-09-29 Thread Michael Logies
At 09:20 29.09.2003 +0200, Herbert Voss wrote:

> Reviews: [45, 47, 57, 58, 64, 65, 66, 74, 81, 82, 89, 93, 100, 101, 103,
> 104, 114, 115,
> 116, 117, 122, 5, 51]
>
> Is there a way to sort these hints to the literature automatically
> ascending (Lyx 1.3.2 for Qt)?
\usepackage{cite} if these numbers are from the bibliography
Herbert, Jürgen,

these numbers are from the bibliography, typically looking like these from 
the tex-file, see below.
My problem is, that \usepackage{cite} only results in a lot of question 
marks instead of correctly sorted numbers. Any idea?

Thanks

Michael

\begin{thebibliography}{100}
\bibitem{Aalen dependent survival}Aalen O. O., Bjertness E., Soonju T.: 
Analysis of dependent survival
data applied to lifetimes of amalgam fillings. Stat. Med. \underbar{14},
1819-29 (1995), Abstract: 
\url{http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve=PubMed_uids=7481213=Abstract}
\bibitem{Altman Goodman 1994}Altman D. G., Goodman, S. N.: Transfer of 
Technology From Statistical
Journals to the Biomedical Literature. Past Trends and Future Predictions.
JAMA \underbar{272}, 129-132 (1994). Zitiert nach der Veröffentlichung
im Web: \url{http://www.ama-assn.org/public/peer/7_13_94/pv3108x.htm}
\bibitem{Antes G persönliche M}Antes G.: Email vom 1. September 2003



or package texsort.sty (sttools), if it is a numerical list.

Herbert
--
http://www.logies.de/ (u. a. _die_ Mailingliste für die Dentalbranche)
PGP-key (RSA/IDEA) kommt mit angeforderter Empfangsbestätigung (return receipt)