citation problem with publication from same author, same year

2008-08-31 Thread Benjamin Hentschel

Hello everyone,

this is my first post here and I hope it's ok to ask. I already did an  
intensive search on the internet regarding my question but I somehow  
can't find any pages that are related.


I have a problem with the implementation of a BibTex library in Lyx/ 
Latex. The problem occurs when I name publications from the same  
author and the same year with a,b,c etc.


So I want it to occur like this in the Document: (Tanaka 2001b) but  
after having the file compiled to a pdf the outcome is somewhat like  
this (Tanaka 001b).  For some reason the citation only refers to the  
last four letters in the field year so the first number is not  
written in the pdf.


I use natbib with apa-style and set \bibpunct[: ]{(}{)}{}{}{ }{} to  
make the citation more customlike


Does anyone experienced a similar problem? If yes, can you could give  
me some advice?


Thanks, ben


Re: citation problem with publication from same author, same year

2008-08-31 Thread Florin Oprina
In the bibtex file, do you have the year filed as 2001a, 2001b? That's not
necessary, entries by the same author and w/ the same year will be
automatically appended a, b, etc. by bibtex!


On Sun, Aug 31, 2008 at 3:54 PM, Benjamin Hentschel [EMAIL PROTECTED]
 wrote:

 Hello everyone,

 this is my first post here and I hope it's ok to ask. I already did an
 intensive search on the internet regarding my question but I somehow can't
 find any pages that are related.

 I have a problem with the implementation of a BibTex library in Lyx/Latex.
 The problem occurs when I name publications from the same author and the
 same year with a,b,c etc.

 So I want it to occur like this in the Document: (Tanaka 2001b) but after
 having the file compiled to a pdf the outcome is somewhat like this (Tanaka
 001b).  For some reason the citation only refers to the last four letters in
 the field year so the first number is not written in the pdf.

 I use natbib with apa-style and set \bibpunct[: ]{(}{)}{}{}{ }{} to make
 the citation more customlike

 Does anyone experienced a similar problem? If yes, can you could give me
 some advice?

 Thanks, ben



Re: Help with importing a latex file generated from texmacs

2008-08-31 Thread Marc Mertens
Hello,

thanks for your help, I followed your advice and replaced theorem with 
thm, corollary with cor etc.. . As for environments I use use for the moment 
just enumerate instead of enumeratealpha etc. using for the moment emacs to 
do these replacements I have something better in lyx now. For my real 
conversion I still have a problem left, texmacs creates also some macros like 
\newcommand{\nin}{\not\in}
\newcommand{\nni}{\not\ni}
\newcommand{\tmop}[1]{\ensuremath{\operatorname{#1}}}
\newcommand{\tmsamp}[1]{\textsf{#1}}
\newcommand{\tmtextbf}[1]{{\bfseries{#1}}}
\newcommand{\tmtextit}[1]{{\itshape{#1}}}
\newcommand{\tmtexttt}[1]{{\ttfamily{#1}}}
\newcommand{\um}{-}

that is not shown correctly in lyx once imported, can you give me some hints 
how to solve this.  Please not that I'm not a latex specialist (but I can 
guess from the above that something like \tmop{and} should be expanded in 
\ensuremath{\operatorname{and}} ). Does there exist some way that these 
substitutions are made automatically or should I write code that does this 
before doing the import in lyx.


Thanks a lot in advance

Marc
On Wednesday 27 August 2008 23:45, rgheck wrote:
 rgheck wrote:
  Marc Mertens wrote:
  Hello,
 
   I'm considering to switch from texmacs to lyx but I don't want
  to loose my old documents, to this end I tried to export my documents
  from texmacs to latex format and use the import function of lyx to
  import it in .lyx format. I I do this then I see that macros that are
  added by texmacs to the latex file are not used in lyx, having as
  effect that texmacs theorem, proposition , enumerations etc .. are
  not rendered correctly when I view them in lyx. If I use 'latex' to
  generate a .dvi file from the exported .tex file from texmacs then
  everything is rendered in the correct way.
 
  Right. The conversion is done by a program tex2lyx that does not
  recognize the environments you are using. The things it does recognize
  are detailed in the manpage for the program.
 
 Is there a way to import latex files containing macros in lyx
  (more specifically latex generated by texmacs).
 
  Yeah, improve tex2lyx. ;-)
 
  Seriously, the only way to do this (other than manually) would be to
  write some kind of program that does the conversion.

 Actually, there is a bit more you can do here. If you change the
 document class from letter to amsbook, say, then LyX will convert the
 proof environment: This is because amsbook defines that environment, so
 LyX knows about it. Similarly, if you change theorem to thm---which
 is how it is done in amsmath.inc---then LyX will also convert that. Same
 goes for proposition -- prop. So that's another option.

 rh


Re: Lyx dies

2008-08-31 Thread Jürgen Spitzmüller
E. Kaplan wrote:
 I am using Lyx 1.5.5 under Kubuntu (Linux) 8.04 on a Dell PC.  It was
 working fine, until I (stupidly) installed the new KDE 4.1.  Now Lyx
 opens up and /immediately /dies.  When I do it from the terminal, I get
 an error message telling me that I have discovered a bug in Lyx (which I
 reported to Bugzilla).  The odd thing is that even after I purged my
 system of KDE4 (went back to KDE 3.5), Lyx still dies immediately after
 opening.  I removed Lyx and re-installed it, but the sudden death
 persists.  I am reduced to using Lyx under XP, which I detest.
 What do I do?

We had a similar problem, but this is supposed to be fixed as of LyX 1.5.5.

Could you run LyX with a debugger and post its output here? In the console, 
type:

- gdb lyx
- run
- (after it crashed): bt

Jürgen


Re: nomenclature not printed with 1.5.6

2008-08-31 Thread Jürgen Spitzmüller
G. Milde wrote:
 did anyone else observe that since the switch to 1.5.6, the nomenclature is
 missing in the output?

 Or is this a special issue for me and my settings? How could I find out
 what is missing? (The nomenclature is printed if I export to LaTeX and run
 latex filename
  makeindex filename.nlo -s nomencl.ist -o filename.nls
  latex filename
 by hand.

 Attached a minimal example.

Have a look at Preferences-Output-LaTeX. If the Makeindex Command 
is texindy [...], change it to makeindex -c -q. The problem is that the 
nomencl package relies of makeindex and fails with xindy.

This will be fixed in 1.5.7 and 1.6, where the nomencl and index converters 
are separated.

Jürgen


Re: No new page for bibliography

2008-08-31 Thread rgheck

Louis A. Turk wrote:

How can I stop the bibliography from starting on a new page when using
the memoir class?

  
See section 10.6 of the manual for memoir (memman.pdf). As there 
explained, the bibliography heading is produced by the \bibsection 
command, which by default sets the bibliography as an unnumbered 
chapter, which of course starts on a new page. So you need to 
\renewcommand{\bibsection}, as there explained.


rh



Re: citation problem with publication from same author, same year

2008-08-31 Thread rgheck

Florin Oprina wrote:

In the bibtex file, do you have the year filed as 2001a, 2001b? That's not
necessary, entries by the same author and w/ the same year will be
automatically appended a, b, etc. by bibtex!

  
And bibtex will automatically ignore anything after the first four 
characters


rh


On Sun, Aug 31, 2008 at 3:54 PM, Benjamin Hentschel [EMAIL PROTECTED]
  

wrote:



  

Hello everyone,

this is my first post here and I hope it's ok to ask. I already did an
intensive search on the internet regarding my question but I somehow can't
find any pages that are related.

I have a problem with the implementation of a BibTex library in Lyx/Latex.
The problem occurs when I name publications from the same author and the
same year with a,b,c etc.

So I want it to occur like this in the Document: (Tanaka 2001b) but after
having the file compiled to a pdf the outcome is somewhat like this (Tanaka
001b).  For some reason the citation only refers to the last four letters in
the field year so the first number is not written in the pdf.

I use natbib with apa-style and set \bibpunct[: ]{(}{)}{}{}{ }{} to make
the citation more customlike

Does anyone experienced a similar problem? If yes, can you could give me
some advice?

Thanks, ben




  




Re: Help with importing a latex file generated from texmacs

2008-08-31 Thread rgheck

Marc Mertens wrote:

Hello,

thanks for your help, I followed your advice and replaced theorem with 
thm, corollary with cor etc.. . As for environments I use use for the moment 
just enumerate instead of enumeratealpha etc. using for the moment emacs to 
do these replacements I have something better in lyx now. For my real 
conversion I still have a problem left, texmacs creates also some macros like 
\newcommand{\nin}{\not\in}

\newcommand{\nni}{\not\ni}
\newcommand{\tmop}[1]{\ensuremath{\operatorname{#1}}}
\newcommand{\tmsamp}[1]{\textsf{#1}}
\newcommand{\tmtextbf}[1]{{\bfseries{#1}}}
\newcommand{\tmtextit}[1]{{\itshape{#1}}}
\newcommand{\tmtexttt}[1]{{\ttfamily{#1}}}
\newcommand{\um}{-}

that is not shown correctly in lyx once imported, can you give me some hints 
how to solve this.  Please not that I'm not a latex specialist (but I can 
guess from the above that something like \tmop{and} should be expanded in 
\ensuremath{\operatorname{and}} ). Does there exist some way that these 
substitutions are made automatically or should I write code that does this 
before doing the import in lyx.


  
Some of these are clearly macros for use in math. For these, after the 
import, you can just create appropriate math macros, as detailed in 
section 5.6. of the User Guide. Then they'll show up correctly, I think.


I don't myself understand the point of \tmsamp. It looks like it's just 
an alias for \textsf, and the same goes for \tmtextbf, etc. So I'd just 
search-replace those. As for \um, the same should do, more or less, 
though you might want to check where this is turning up.


rh


Re: 1.6.0 rc1 minor bug

2008-08-31 Thread Marcelo Acuña

  Hello,
   In Preferences I try to change color of inline
 completation.
   This option no work.
 
 are you sure you have set both inline completion and
 non-unique inline completion colors?
 
 pavel

 Yes! You are right. I don´t see non-unique inline completion
 Excuse me
 Marcelo


  Yahoo! Cocina
Recetas prácticas y comida saludable
http://ar.mujer.yahoo.com/cocina/


Re: opening Math help crashes lyx 1.6rc1

2008-08-31 Thread Pavel Sanda

 On Aug 29, 2008, at 9:05 AM, James Sutherland wrote:

 Every time I open the Math document in the Help menu, LyX 1.6rc1 crashes.  
 All of the other help documents open without any problem.

 This occurs on Mac.  I haven't been able to check on other platforms.  Can 
 anyone confirm this on other platforms?

 James


 I just tried this with 1.6rc2.  The problem persists there (on Mac).

this is just being discussed on devel list.
pavel


scaling xfig previews

2008-08-31 Thread curtis osterhoudt
Hi, LyXers, 

   I've noticed that in the 1.6.0svn versions (for example, today's revision 
26278), the External Material dialog (when inserting a figure, e.g.) gives the 
tab LaTeX and LyX Options. In this tab, there is the Show in LyX and 
resultant Scale on Screen option, where I usually have a scale less than 100% 
chosen. However, in the recent builds, this scale doesn't seem to do anything 
(everything shows up at 100%). Is there something I can change to enable the 
actual scaling?

   Thanks, 
  C.O.

 /
Down with categorical imperative!
[EMAIL PROTECTED]
/



  

pdfpages and filenames

2008-08-31 Thread Stephen Buonopane
 In LyX 1.4 I used to be able to just use the filename with the  
includepdf command in ERT, \includepdf{myfile}


In LyX 1.5.5 it seems that I need to put the full pathname and  
filename, \includepdf{\very\long\path\myfile}
which is inconvenient because the pathname is very long and some of  
the directories may contain spaces.


If I export to latex and compile outside of lyx the  
\includepdf{myfile} works fine.

Any way to just use \includepdf{myfile} in LyX 1.5.5?

thanks
steve



citation problem with publication from same author, same year

2008-08-31 Thread Benjamin Hentschel

Hello everyone,

this is my first post here and I hope it's ok to ask. I already did an  
intensive search on the internet regarding my question but I somehow  
can't find any pages that are related.


I have a problem with the implementation of a BibTex library in Lyx/ 
Latex. The problem occurs when I name publications from the same  
author and the same year with a,b,c etc.


So I want it to occur like this in the Document: (Tanaka 2001b) but  
after having the file compiled to a pdf the outcome is somewhat like  
this (Tanaka 001b).  For some reason the citation only refers to the  
last four letters in the field year so the first number is not  
written in the pdf.


I use natbib with apa-style and set \bibpunct[: ]{(}{)}{}{}{ }{} to  
make the citation more customlike


Does anyone experienced a similar problem? If yes, can you could give  
me some advice?


Thanks, ben


Re: citation problem with publication from same author, same year

2008-08-31 Thread Florin Oprina
In the bibtex file, do you have the year filed as 2001a, 2001b? That's not
necessary, entries by the same author and w/ the same year will be
automatically appended a, b, etc. by bibtex!


On Sun, Aug 31, 2008 at 3:54 PM, Benjamin Hentschel [EMAIL PROTECTED]
 wrote:

 Hello everyone,

 this is my first post here and I hope it's ok to ask. I already did an
 intensive search on the internet regarding my question but I somehow can't
 find any pages that are related.

 I have a problem with the implementation of a BibTex library in Lyx/Latex.
 The problem occurs when I name publications from the same author and the
 same year with a,b,c etc.

 So I want it to occur like this in the Document: (Tanaka 2001b) but after
 having the file compiled to a pdf the outcome is somewhat like this (Tanaka
 001b).  For some reason the citation only refers to the last four letters in
 the field year so the first number is not written in the pdf.

 I use natbib with apa-style and set \bibpunct[: ]{(}{)}{}{}{ }{} to make
 the citation more customlike

 Does anyone experienced a similar problem? If yes, can you could give me
 some advice?

 Thanks, ben



Re: Help with importing a latex file generated from texmacs

2008-08-31 Thread Marc Mertens
Hello,

thanks for your help, I followed your advice and replaced theorem with 
thm, corollary with cor etc.. . As for environments I use use for the moment 
just enumerate instead of enumeratealpha etc. using for the moment emacs to 
do these replacements I have something better in lyx now. For my real 
conversion I still have a problem left, texmacs creates also some macros like 
\newcommand{\nin}{\not\in}
\newcommand{\nni}{\not\ni}
\newcommand{\tmop}[1]{\ensuremath{\operatorname{#1}}}
\newcommand{\tmsamp}[1]{\textsf{#1}}
\newcommand{\tmtextbf}[1]{{\bfseries{#1}}}
\newcommand{\tmtextit}[1]{{\itshape{#1}}}
\newcommand{\tmtexttt}[1]{{\ttfamily{#1}}}
\newcommand{\um}{-}

that is not shown correctly in lyx once imported, can you give me some hints 
how to solve this.  Please not that I'm not a latex specialist (but I can 
guess from the above that something like \tmop{and} should be expanded in 
\ensuremath{\operatorname{and}} ). Does there exist some way that these 
substitutions are made automatically or should I write code that does this 
before doing the import in lyx.


Thanks a lot in advance

Marc
On Wednesday 27 August 2008 23:45, rgheck wrote:
 rgheck wrote:
  Marc Mertens wrote:
  Hello,
 
   I'm considering to switch from texmacs to lyx but I don't want
  to loose my old documents, to this end I tried to export my documents
  from texmacs to latex format and use the import function of lyx to
  import it in .lyx format. I I do this then I see that macros that are
  added by texmacs to the latex file are not used in lyx, having as
  effect that texmacs theorem, proposition , enumerations etc .. are
  not rendered correctly when I view them in lyx. If I use 'latex' to
  generate a .dvi file from the exported .tex file from texmacs then
  everything is rendered in the correct way.
 
  Right. The conversion is done by a program tex2lyx that does not
  recognize the environments you are using. The things it does recognize
  are detailed in the manpage for the program.
 
 Is there a way to import latex files containing macros in lyx
  (more specifically latex generated by texmacs).
 
  Yeah, improve tex2lyx. ;-)
 
  Seriously, the only way to do this (other than manually) would be to
  write some kind of program that does the conversion.

 Actually, there is a bit more you can do here. If you change the
 document class from letter to amsbook, say, then LyX will convert the
 proof environment: This is because amsbook defines that environment, so
 LyX knows about it. Similarly, if you change theorem to thm---which
 is how it is done in amsmath.inc---then LyX will also convert that. Same
 goes for proposition -- prop. So that's another option.

 rh


Re: Lyx dies

2008-08-31 Thread Jürgen Spitzmüller
E. Kaplan wrote:
 I am using Lyx 1.5.5 under Kubuntu (Linux) 8.04 on a Dell PC.  It was
 working fine, until I (stupidly) installed the new KDE 4.1.  Now Lyx
 opens up and /immediately /dies.  When I do it from the terminal, I get
 an error message telling me that I have discovered a bug in Lyx (which I
 reported to Bugzilla).  The odd thing is that even after I purged my
 system of KDE4 (went back to KDE 3.5), Lyx still dies immediately after
 opening.  I removed Lyx and re-installed it, but the sudden death
 persists.  I am reduced to using Lyx under XP, which I detest.
 What do I do?

We had a similar problem, but this is supposed to be fixed as of LyX 1.5.5.

Could you run LyX with a debugger and post its output here? In the console, 
type:

- gdb lyx
- run
- (after it crashed): bt

Jürgen


Re: nomenclature not printed with 1.5.6

2008-08-31 Thread Jürgen Spitzmüller
G. Milde wrote:
 did anyone else observe that since the switch to 1.5.6, the nomenclature is
 missing in the output?

 Or is this a special issue for me and my settings? How could I find out
 what is missing? (The nomenclature is printed if I export to LaTeX and run
 latex filename
  makeindex filename.nlo -s nomencl.ist -o filename.nls
  latex filename
 by hand.

 Attached a minimal example.

Have a look at Preferences-Output-LaTeX. If the Makeindex Command 
is texindy [...], change it to makeindex -c -q. The problem is that the 
nomencl package relies of makeindex and fails with xindy.

This will be fixed in 1.5.7 and 1.6, where the nomencl and index converters 
are separated.

Jürgen


Re: No new page for bibliography

2008-08-31 Thread rgheck

Louis A. Turk wrote:

How can I stop the bibliography from starting on a new page when using
the memoir class?

  
See section 10.6 of the manual for memoir (memman.pdf). As there 
explained, the bibliography heading is produced by the \bibsection 
command, which by default sets the bibliography as an unnumbered 
chapter, which of course starts on a new page. So you need to 
\renewcommand{\bibsection}, as there explained.


rh



Re: citation problem with publication from same author, same year

2008-08-31 Thread rgheck

Florin Oprina wrote:

In the bibtex file, do you have the year filed as 2001a, 2001b? That's not
necessary, entries by the same author and w/ the same year will be
automatically appended a, b, etc. by bibtex!

  
And bibtex will automatically ignore anything after the first four 
characters


rh


On Sun, Aug 31, 2008 at 3:54 PM, Benjamin Hentschel [EMAIL PROTECTED]
  

wrote:



  

Hello everyone,

this is my first post here and I hope it's ok to ask. I already did an
intensive search on the internet regarding my question but I somehow can't
find any pages that are related.

I have a problem with the implementation of a BibTex library in Lyx/Latex.
The problem occurs when I name publications from the same author and the
same year with a,b,c etc.

So I want it to occur like this in the Document: (Tanaka 2001b) but after
having the file compiled to a pdf the outcome is somewhat like this (Tanaka
001b).  For some reason the citation only refers to the last four letters in
the field year so the first number is not written in the pdf.

I use natbib with apa-style and set \bibpunct[: ]{(}{)}{}{}{ }{} to make
the citation more customlike

Does anyone experienced a similar problem? If yes, can you could give me
some advice?

Thanks, ben




  




Re: Help with importing a latex file generated from texmacs

2008-08-31 Thread rgheck

Marc Mertens wrote:

Hello,

thanks for your help, I followed your advice and replaced theorem with 
thm, corollary with cor etc.. . As for environments I use use for the moment 
just enumerate instead of enumeratealpha etc. using for the moment emacs to 
do these replacements I have something better in lyx now. For my real 
conversion I still have a problem left, texmacs creates also some macros like 
\newcommand{\nin}{\not\in}

\newcommand{\nni}{\not\ni}
\newcommand{\tmop}[1]{\ensuremath{\operatorname{#1}}}
\newcommand{\tmsamp}[1]{\textsf{#1}}
\newcommand{\tmtextbf}[1]{{\bfseries{#1}}}
\newcommand{\tmtextit}[1]{{\itshape{#1}}}
\newcommand{\tmtexttt}[1]{{\ttfamily{#1}}}
\newcommand{\um}{-}

that is not shown correctly in lyx once imported, can you give me some hints 
how to solve this.  Please not that I'm not a latex specialist (but I can 
guess from the above that something like \tmop{and} should be expanded in 
\ensuremath{\operatorname{and}} ). Does there exist some way that these 
substitutions are made automatically or should I write code that does this 
before doing the import in lyx.


  
Some of these are clearly macros for use in math. For these, after the 
import, you can just create appropriate math macros, as detailed in 
section 5.6. of the User Guide. Then they'll show up correctly, I think.


I don't myself understand the point of \tmsamp. It looks like it's just 
an alias for \textsf, and the same goes for \tmtextbf, etc. So I'd just 
search-replace those. As for \um, the same should do, more or less, 
though you might want to check where this is turning up.


rh


Re: 1.6.0 rc1 minor bug

2008-08-31 Thread Marcelo Acuña

  Hello,
   In Preferences I try to change color of inline
 completation.
   This option no work.
 
 are you sure you have set both inline completion and
 non-unique inline completion colors?
 
 pavel

 Yes! You are right. I don´t see non-unique inline completion
 Excuse me
 Marcelo


  Yahoo! Cocina
Recetas prácticas y comida saludable
http://ar.mujer.yahoo.com/cocina/


Re: opening Math help crashes lyx 1.6rc1

2008-08-31 Thread Pavel Sanda

 On Aug 29, 2008, at 9:05 AM, James Sutherland wrote:

 Every time I open the Math document in the Help menu, LyX 1.6rc1 crashes.  
 All of the other help documents open without any problem.

 This occurs on Mac.  I haven't been able to check on other platforms.  Can 
 anyone confirm this on other platforms?

 James


 I just tried this with 1.6rc2.  The problem persists there (on Mac).

this is just being discussed on devel list.
pavel


scaling xfig previews

2008-08-31 Thread curtis osterhoudt
Hi, LyXers, 

   I've noticed that in the 1.6.0svn versions (for example, today's revision 
26278), the External Material dialog (when inserting a figure, e.g.) gives the 
tab LaTeX and LyX Options. In this tab, there is the Show in LyX and 
resultant Scale on Screen option, where I usually have a scale less than 100% 
chosen. However, in the recent builds, this scale doesn't seem to do anything 
(everything shows up at 100%). Is there something I can change to enable the 
actual scaling?

   Thanks, 
  C.O.

 /
Down with categorical imperative!
[EMAIL PROTECTED]
/



  

pdfpages and filenames

2008-08-31 Thread Stephen Buonopane
 In LyX 1.4 I used to be able to just use the filename with the  
includepdf command in ERT, \includepdf{myfile}


In LyX 1.5.5 it seems that I need to put the full pathname and  
filename, \includepdf{\very\long\path\myfile}
which is inconvenient because the pathname is very long and some of  
the directories may contain spaces.


If I export to latex and compile outside of lyx the  
\includepdf{myfile} works fine.

Any way to just use \includepdf{myfile} in LyX 1.5.5?

thanks
steve



citation problem with publication from same author, same year

2008-08-31 Thread Benjamin Hentschel

Hello everyone,

this is my first post here and I hope it's ok to ask. I already did an  
intensive search on the internet regarding my question but I somehow  
can't find any pages that are related.


I have a problem with the implementation of a BibTex library in Lyx/ 
Latex. The problem occurs when I name publications from the same  
author and the same year with a,b,c etc.


So I want it to occur like this in the Document: (Tanaka 2001b) but  
after having the file compiled to a pdf the outcome is somewhat like  
this (Tanaka 001b).  For some reason the citation only refers to the  
last four letters in the field "year" so the first number is not  
written in the pdf.


I use natbib with apa-style and set "\bibpunct[: ]{(}{)}{}{}{ }{}" to  
make the citation more customlike


Does anyone experienced a similar problem? If yes, can you could give  
me some advice?


Thanks, ben


Re: citation problem with publication from same author, same year

2008-08-31 Thread Florin Oprina
In the bibtex file, do you have the "year" filed as 2001a, 2001b? That's not
necessary, entries by the same author and w/ the same year will be
automatically appended a, b, etc. by bibtex!


On Sun, Aug 31, 2008 at 3:54 PM, Benjamin Hentschel <[EMAIL PROTECTED]
> wrote:

> Hello everyone,
>
> this is my first post here and I hope it's ok to ask. I already did an
> intensive search on the internet regarding my question but I somehow can't
> find any pages that are related.
>
> I have a problem with the implementation of a BibTex library in Lyx/Latex.
> The problem occurs when I name publications from the same author and the
> same year with a,b,c etc.
>
> So I want it to occur like this in the Document: (Tanaka 2001b) but after
> having the file compiled to a pdf the outcome is somewhat like this (Tanaka
> 001b).  For some reason the citation only refers to the last four letters in
> the field "year" so the first number is not written in the pdf.
>
> I use natbib with apa-style and set "\bibpunct[: ]{(}{)}{}{}{ }{}" to make
> the citation more customlike
>
> Does anyone experienced a similar problem? If yes, can you could give me
> some advice?
>
> Thanks, ben
>


Re: Help with importing a latex file generated from texmacs

2008-08-31 Thread Marc Mertens
Hello,

thanks for your help, I followed your advice and replaced theorem with 
thm, corollary with cor etc.. . As for environments I use use for the moment 
just enumerate instead of enumeratealpha etc. using for the moment emacs to 
do these replacements I have something better in lyx now. For my real 
conversion I still have a problem left, texmacs creates also some macros like 
\newcommand{\nin}{\not\in}
\newcommand{\nni}{\not\ni}
\newcommand{\tmop}[1]{\ensuremath{\operatorname{#1}}}
\newcommand{\tmsamp}[1]{\textsf{#1}}
\newcommand{\tmtextbf}[1]{{\bfseries{#1}}}
\newcommand{\tmtextit}[1]{{\itshape{#1}}}
\newcommand{\tmtexttt}[1]{{\ttfamily{#1}}}
\newcommand{\um}{-}

that is not shown correctly in lyx once imported, can you give me some hints 
how to solve this.  Please not that I'm not a latex specialist (but I can 
guess from the above that something like \tmop{and} should be expanded in 
\ensuremath{\operatorname{and}} ). Does there exist some way that these 
substitutions are made automatically or should I write code that does this 
before doing the import in lyx.


Thanks a lot in advance

Marc
On Wednesday 27 August 2008 23:45, rgheck wrote:
> rgheck wrote:
> > Marc Mertens wrote:
> >> Hello,
> >>
> >>  I'm considering to switch from texmacs to lyx but I don't want
> >> to loose my old documents, to this end I tried to export my documents
> >> from texmacs to latex format and use the import function of lyx to
> >> import it in .lyx format. I I do this then I see that macros that are
> >> added by texmacs to the latex file are not used in lyx, having as
> >> effect that texmacs theorem, proposition , enumerations etc .. are
> >> not rendered correctly when I view them in lyx. If I use 'latex' to
> >> generate a .dvi file from the exported .tex file from texmacs then
> >> everything is rendered in the correct way.
> >
> > Right. The conversion is done by a program tex2lyx that does not
> > recognize the environments you are using. The things it does recognize
> > are detailed in the manpage for the program.
> >
> >>Is there a way to import latex files containing macros in lyx
> >> (more specifically latex generated by texmacs).
> >
> > Yeah, improve tex2lyx. ;-)
> >
> > Seriously, the only way to do this (other than manually) would be to
> > write some kind of program that does the conversion.
>
> Actually, there is a bit more you can do here. If you change the
> document class from letter to amsbook, say, then LyX will convert the
> proof environment: This is because amsbook defines that environment, so
> LyX knows about it. Similarly, if you change "theorem" to "thm"---which
> is how it is done in amsmath.inc---then LyX will also convert that. Same
> goes for proposition --> prop. So that's another option.
>
> rh


Re: Lyx dies

2008-08-31 Thread Jürgen Spitzmüller
E. Kaplan wrote:
> I am using Lyx 1.5.5 under Kubuntu (Linux) 8.04 on a Dell PC.  It was
> working fine, until I (stupidly) installed the new KDE 4.1.  Now Lyx
> opens up and /immediately /dies.  When I do it from the terminal, I get
> an error message telling me that I have discovered a bug in Lyx (which I
> reported to Bugzilla).  The odd thing is that even after I purged my
> system of KDE4 (went back to KDE 3.5), Lyx still dies immediately after
> opening.  I removed Lyx and re-installed it, but the sudden death
> persists.  I am reduced to using Lyx under XP, which I detest.
> What do I do?

We had a similar problem, but this is supposed to be fixed as of LyX 1.5.5.

Could you run LyX with a debugger and post its output here? In the console, 
type:

- "gdb lyx"
- "run"
- (after it crashed): "bt"

Jürgen


Re: nomenclature not printed with 1.5.6

2008-08-31 Thread Jürgen Spitzmüller
G. Milde wrote:
> did anyone else observe that since the switch to 1.5.6, the nomenclature is
> missing in the output?
>
> Or is this a special issue for me and my settings? How could I find out
> what is missing? (The nomenclature is printed if I export to LaTeX and run
> latex filename
>  makeindex filename.nlo -s nomencl.ist -o filename.nls
>  latex filename
> by hand.
>
> Attached a minimal example.

Have a look at Preferences->Output->LaTeX. If the "Makeindex Command" 
is "texindy [...]", change it to "makeindex -c -q". The problem is that the 
nomencl package relies of makeindex and fails with xindy.

This will be fixed in 1.5.7 and 1.6, where the nomencl and index converters 
are separated.

Jürgen


Re: No new page for bibliography

2008-08-31 Thread rgheck

Louis A. Turk wrote:

How can I stop the bibliography from starting on a new page when using
the memoir class?

  
See section 10.6 of the manual for memoir (memman.pdf). As there 
explained, the bibliography heading is produced by the \bibsection 
command, which by default sets the bibliography as an unnumbered 
chapter, which of course starts on a new page. So you need to 
\renewcommand{\bibsection}, as there explained.


rh



Re: citation problem with publication from same author, same year

2008-08-31 Thread rgheck

Florin Oprina wrote:

In the bibtex file, do you have the "year" filed as 2001a, 2001b? That's not
necessary, entries by the same author and w/ the same year will be
automatically appended a, b, etc. by bibtex!

  
And bibtex will automatically ignore anything after the first four 
characters


rh


On Sun, Aug 31, 2008 at 3:54 PM, Benjamin Hentschel <[EMAIL PROTECTED]
  

wrote:



  

Hello everyone,

this is my first post here and I hope it's ok to ask. I already did an
intensive search on the internet regarding my question but I somehow can't
find any pages that are related.

I have a problem with the implementation of a BibTex library in Lyx/Latex.
The problem occurs when I name publications from the same author and the
same year with a,b,c etc.

So I want it to occur like this in the Document: (Tanaka 2001b) but after
having the file compiled to a pdf the outcome is somewhat like this (Tanaka
001b).  For some reason the citation only refers to the last four letters in
the field "year" so the first number is not written in the pdf.

I use natbib with apa-style and set "\bibpunct[: ]{(}{)}{}{}{ }{}" to make
the citation more customlike

Does anyone experienced a similar problem? If yes, can you could give me
some advice?

Thanks, ben




  




Re: Help with importing a latex file generated from texmacs

2008-08-31 Thread rgheck

Marc Mertens wrote:

Hello,

thanks for your help, I followed your advice and replaced theorem with 
thm, corollary with cor etc.. . As for environments I use use for the moment 
just enumerate instead of enumeratealpha etc. using for the moment emacs to 
do these replacements I have something better in lyx now. For my real 
conversion I still have a problem left, texmacs creates also some macros like 
\newcommand{\nin}{\not\in}

\newcommand{\nni}{\not\ni}
\newcommand{\tmop}[1]{\ensuremath{\operatorname{#1}}}
\newcommand{\tmsamp}[1]{\textsf{#1}}
\newcommand{\tmtextbf}[1]{{\bfseries{#1}}}
\newcommand{\tmtextit}[1]{{\itshape{#1}}}
\newcommand{\tmtexttt}[1]{{\ttfamily{#1}}}
\newcommand{\um}{-}

that is not shown correctly in lyx once imported, can you give me some hints 
how to solve this.  Please not that I'm not a latex specialist (but I can 
guess from the above that something like \tmop{and} should be expanded in 
\ensuremath{\operatorname{and}} ). Does there exist some way that these 
substitutions are made automatically or should I write code that does this 
before doing the import in lyx.


  
Some of these are clearly macros for use in math. For these, after the 
import, you can just create appropriate math macros, as detailed in 
section 5.6. of the User Guide. Then they'll show up correctly, I think.


I don't myself understand the point of \tmsamp. It looks like it's just 
an alias for \textsf, and the same goes for \tmtextbf, etc. So I'd just 
search-replace those. As for \um, the same should do, more or less, 
though you might want to check where this is turning up.


rh


Re: 1.6.0 rc1 minor bug

2008-08-31 Thread Marcelo Acuña

> > Hello,
> >  In Preferences I try to change color of inline
> completation.
> >  This option no work.
> 
> are you sure you have set both inline completion and
> non-unique inline completion colors?
> 
> pavel

 Yes! You are right. I don´t see "non-unique inline completion"
 Excuse me
 Marcelo


  Yahoo! Cocina
Recetas prácticas y comida saludable
http://ar.mujer.yahoo.com/cocina/


Re: opening Math help crashes lyx 1.6rc1

2008-08-31 Thread Pavel Sanda
>
> On Aug 29, 2008, at 9:05 AM, James Sutherland wrote:
>
>> Every time I open the Math document in the Help menu, LyX 1.6rc1 crashes.  
>> All of the other help documents open without any problem.
>>
>> This occurs on Mac.  I haven't been able to check on other platforms.  Can 
>> anyone confirm this on other platforms?
>>
>> James
>
>
> I just tried this with 1.6rc2.  The problem persists there (on Mac).

this is just being discussed on devel list.
pavel


scaling xfig previews

2008-08-31 Thread curtis osterhoudt
Hi, LyXers, 

   I've noticed that in the 1.6.0svn versions (for example, today's revision 
26278), the External Material dialog (when inserting a figure, e.g.) gives the 
tab LaTeX and LyX Options. In this tab, there is the "Show in LyX" and 
resultant "Scale on Screen" option, where I usually have a scale less than 100% 
chosen. However, in the recent builds, this scale doesn't seem to do anything 
(everything shows up at 100%). Is there something I can change to enable the 
actual scaling?

   Thanks, 
  C.O.

 /
Down with categorical imperative!
[EMAIL PROTECTED]
/



  

pdfpages and filenames

2008-08-31 Thread Stephen Buonopane
 In LyX 1.4 I used to be able to just use the filename with the  
includepdf command in ERT, \includepdf{myfile}


In LyX 1.5.5 it seems that I need to put the full pathname and  
filename, \includepdf{\very\long\path\myfile}
which is inconvenient because the pathname is very long and some of  
the directories may contain spaces.


If I export to latex and compile outside of lyx the  
\includepdf{myfile} works fine.

Any way to just use \includepdf{myfile} in LyX 1.5.5?

thanks
steve