Re: Lyx from daily PPA install fails

2013-08-15 Thread Wolfgang Engelmann
Am Wednesday, 14. August 2013, 22:53:21 schrieb Paul Rubin:
 Wolfgang Engelmann engelmann at uni-tuebingen.de writes:
  apt get install lyx2.0
 
 If you need to install LyX 2.1 to open the document, this line should be
 
  apt get install lyx2.1



Thanks, Paul, but

with this line I get: lyx2.1 no package could be found

What is the corresponding /etc/sources.list of Debian for 
LinuxMint?
And what do I have to add to get the lyx2.1 packages downloaded?

Wolfgang
  
  at the last step I get an error
  error by fetching from
 
 http://ppa.launchpad.net/lyx-devel/daily/ubuntu/dists/debian/main/source
 /Sources
 
  404 Not Found
   
  Some index files could not be downloaded. Ignored or old onces used
  instead 
  I am using LinuxMint Cinnamon
 
 I just installed LyX 2.1, also on Mint 14 Cinnamon (64 bit).
 
  and need a newer version of (2.1..) since the lyx file was produced
  with
 
 it. Alternatively, where could I get a lyx2lyx to allow me to convert
 the 2.1 version to the 2.0.. version?
 
 If you can't get LyX 2.1 to install and care to send me the file (rubin
 at msu dot edu), I can try to export it to 2.0 format. No guarantee
 that works, for instance if it uses the new Beamer layout.
 
 Paul


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Citation style

2013-08-15 Thread Wolfgang Engelmann
I get this error:

! Package natbib Error: Bibliography not compatible with author-year 
citations.

Check the bibliography entries for non-compliant syntax,
or select author-year BibTeX style, e.g. plainnat

Where do I choose the proposed style?

In DocumentsettingBibliography 
I can't find it,
only default (numerical), Natbib style Author-year and numerical.

Do I have to do it via Latex-Preamble?

I use Linux Debian

Wolfgang


Re: 2.6.1beta0 and Beamer

2013-08-15 Thread Jürgen Spitzmüller
Dr Eberhard Lisse wrote:
 Jürgen,
 
 are there known issues transferring presentations from 2.06 to 2.6.1beta0?

No.

 If so, which are they? Because I a seem to have some and if they are
 known I don't need to trace them down to a minimal example and can just
 work on them with 2.0.6 for the time being.

If you could create minimal examples for each of them and file bugs on trac, 
that would be great.

In general, please make backups before importing to 2.1. The beamer layout 
changes were huge, so issues with complex documents are to be expected.

Thanks
Jürgen

 el




Re: 2.1.0beta1 beamer ui issues

2013-08-15 Thread Jürgen Spitzmüller
Am Donnerstag 01 August 2013, 09:43:45 schrieb Neal Becker:
 I'm trying out 2.1.0beta1.  Interested in beamer improvements.
 
 I'm finding the ui confusing.  I start off with a frame environment and put
 in a title.  I'd now expect to hit ret to put text into the frame.  ret is
 disabled.

Because you are inside the frame title argument.

 If I move over a space with left -, now I'm outside title and
 hit ret.  OK.  I seem to be inserting text in the frame.
 
 Now I want to try out block.  I choose 'block'.  It seems this block is now
 on a new frame - not inside the current frame.
 
 I don't see how to put the block in the current frame.

Edit  Increase List Depth or whatever shortcut this is on your box 
(Alt+Shift+Arrow right here).

I suggest you read the new beamer manual Joon already pointed to.

I agree that the UI changes are confusing in the beginning. Note that we tried 
to keep the UI changes as minimal as possible. However, the changes were 
necessary to fix many beamer bugs and restrictions caused by an ugly LaTeX 
hack that was only there to make the old UI possible.

Jürgen


Re: How to do conditional compilation from LyX?

2013-08-15 Thread Richard Heck

On 08/14/2013 10:16 PM, Steve Litt of Troubleshooters.Com wrote:

Hi all,

My Layout file, derived from the Book doc class, has the following code:


\ifx\stevelitt\undefined \else
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}
\thechapter: #1}}{}}
%\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\slshape\thesection :
#1}}} \renewcommand{\sectionmark}[1]{\markright{Steve Stiffler}}

\fancyhf{}
\fancyhf[OLH]{\rightmark}
\fancyhf[ERH]{\leftmark}
\fancyhf[ORH,ELH]{\thepage}

\fi


Ideally, what I'd like to do is set (or not set) command \stevelitt in
the LyX Document Preamble, but that doesn't work --- define it or not,
the layout code acts as if it's not defined. I suspect the reason is
that LyX places the code from the layout file earlier in the resultant
LaTeX file than the LyX document preamble, so \stevelitt is always
undefined *when the conditionally compiled code is encountered*.


Yes, that is correct.

Try wrapping the conditional code in \AtBeginDocument to defer its 
execution.



My ideal solution to this conditional compilation would be to simply
define a variable within the LyX file and have that work. I haven't
been able to do that. Uglier solutions, which I haven't tried yet,
would be to modify the layout with AWK just before the compilation, or
run the LaTeX command like:

latex \edef\stevelitt{$1}\input{myfile.latex}

Something I *haven't* been able to get to work is to put the
conditional code inside a command and just call the command from the
LyX LaTeX preamble. The conditional code gets arguments like #1 very
confused when it's placed inside a command.


I think in that case you may have to use ##1 or something, but I'd have 
to see the actual command.


Richard



Re: Citation style

2013-08-15 Thread Richard Heck

On 08/15/2013 06:47 AM, Wolfgang Engelmann wrote:


I get this error:

! Package natbib Error: Bibliography not compatible with author-year 
citations.


Check the bibliography entries for non-compliant syntax,

or select author-year BibTeX style, e.g. plainnat

Where do I choose the proposed style?



The style is chosen from a dialog you will get if you click on the 
bibliography inset itself.


Richard



Re: Citation style

2013-08-15 Thread Wolfgang Engelmann
Am Thursday, 15. August 2013, 15:18:04 schrieb Richard Heck:
 On 08/15/2013 06:47 AM, Wolfgang Engelmann wrote:
  I get this error:
  
  ! Package natbib Error: Bibliography not compatible with author-year
  citations.
  
  Check the bibliography entries for non-compliant syntax,
  
  or select author-year BibTeX style, e.g. plainnat
  
  Where do I choose the proposed style?
 
 The style is chosen from a dialog you will get if you click on the
 bibliography inset itself.

Thanks, Richard. 

If I choose vancouver (which is shown in the dropdown dialog) 

I get:
##
I'm skipping whatever remI'm skipping whatever remains of this command
Illegal, another \bibstyle command---line 1699 of file PBR-20130815A.20.aux
 : \bibstyle
 :  {vancouver}
I'm skipping whatever remains of this command
I found no style file---while reading file PBR-20130815A.20.aux
ains of this command
Illegal, another \bibstyle command---line 1699 of file PBR-20130815A.20.aux
 : \bibstyle
 :  {vancouver}
I'm skipping whatever remains of this command
I found no style file---while reading file PBR-20130815A.20.aux
###

and the references in the pdf output are shown as ???

What have I done wrongly? Do I have to remove the .aux file first, because 
lyx might have taken an older aux file? And where would I find this aux-file?

If I export the document as .tex and run latex on it 3 times and afterward 
bibtex, I get:



This is BibTeX, Version 0.99d (TeX Live 2012)
The top-level auxiliary file: PBR-20130815A.20.aux
I couldn't open style file srtnat.bst
---line 19 of file PBR-20130815A.20.aux
 : \bibstyle{srtnat
 : }

this is strange, I tried srtnat before, but in the current run used 
vancouver

continued error output:
I'm skipping whatever remains of this command
Illegal, another \bibstyle command---line 1699 of file PBR-20130815A.20.aux
 : \bibstyle
 :  {vancouver}
I'm skipping whatever remains of this command
I found no style file---while reading file PBR-20130815A.20.aux


Wolfgang


Test20130815_1249

2013-08-15 Thread Steve Litt
Let's see if Bluehost has extricated themselves from the
blacklists LyX-Users uses...


Re: How to do conditional compilation from LyX?

2013-08-15 Thread Steve Litt of Troubleshooters.Com
On Thu, 15 Aug 2013 09:17:08 -0400
Richard Heck rgh...@lyx.org wrote:

 On 08/14/2013 10:16 PM, Steve Litt of Troubleshooters.Com wrote:
  Hi all,
 
  My Layout file, derived from the Book doc class, has the following
  code:
 
  
  \ifx\stevelitt\undefined \else
  \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}
  \thechapter: #1}}{}}
  %\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\slshape\thesection
   :
  #1}}} \renewcommand{\sectionmark}[1]{\markright{Steve Stiffler}}
 
  \fancyhf{}
  \fancyhf[OLH]{\rightmark}
  \fancyhf[ERH]{\leftmark}
  \fancyhf[ORH,ELH]{\thepage}
 
  \fi
  
 
  Ideally, what I'd like to do is set (or not set) command \stevelitt
  in the LyX Document Preamble, but that doesn't work --- define it
  or not, the layout code acts as if it's not defined. I suspect the
  reason is that LyX places the code from the layout file earlier in
  the resultant LaTeX file than the LyX document preamble, so
  \stevelitt is always undefined *when the conditionally compiled
  code is encountered*.
 
 Yes, that is correct.
 
 Try wrapping the conditional code in \AtBeginDocument to defer its 
 execution.

Thanks Richard,

That would be incredibly cool if it works. Meanwhile, I already
implemented a different solution, which I'll describe in a different
email.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: How to do conditional compilation from LyX? SOLVED

2013-08-15 Thread Steve Litt of Troubleshooters.Com
On Wed, 14 Aug 2013 22:16:25 -0400
Steve Litt of Troubleshooters.Com stevel...@careersuccess.com wrote:

 Hi all,
 
 My Layout file, derived from the Book doc class, has the following
 code:
 
 
 \ifx\stevelitt\undefined \else
 \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}
 \thechapter: #1}}{}}
 %\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\slshape\thesection 
 :
 #1}}} \renewcommand{\sectionmark}[1]{\markright{Steve Stiffler}}
 
 \fancyhf{}
 \fancyhf[OLH]{\rightmark}
 \fancyhf[ERH]{\leftmark}
 \fancyhf[ORH,ELH]{\thepage}
 
 \fi
 

The ideal solution, and in fact my first attempt, would have been to
package the preceding \renewcommand and \fancyhf commands in their own
subroutine (command), and call that command from LyX's LaTeX preamble.
That makes *perfect* sense but doesn't work, because when you wrap the
\renewcommand commands within another command, the #1's involved change
from a prototype to a literal -- #1 of the enclosing command. That's
why I tried the conditional compile in the first place, but we all know
that didn't work because it comes earlier than LyX can set a var.

So I moved the \renewcommands outside of the subroutine, and assigned
them to otherwise meaningless commands \smark and \cmark, which can then
be assigned to \sectionmark and \chaptermark *inside the enclosing
command*. So the solution looks like this:

==
\newcommand{\cmark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}\thechapter:
 #1}}{}}
\newcommand{\smark}[1]{\markright{\MakeUppercase{\slshape\thesection : #1}}}

\newcommand{\setheader}[1]{%
  \let\chaptermark\cmark
  \let\sectionmark\smark
  \fancyhf{}
  \fancyhf[OLH]{\rightmark}
  \fancyhf[ERH]{\leftmark}
  \fancyhf[ORH,ELH]{\thepage}
}
==

So it sets \cmark and \smark regardless, but those are *used* only if
the \setheader command is run. Pretty cool, huh?

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Citation style

2013-08-15 Thread Wolfgang Engelmann
Am Thursday, 15. August 2013, 17:10:22 schrieb Wolfgang Engelmann:
 Am Thursday, 15. August 2013, 15:18:04 schrieb Richard Heck:
  On 08/15/2013 06:47 AM, Wolfgang Engelmann wrote:
   I get this error:
   
   ! Package natbib Error: Bibliography not compatible with author-year
   citations.
   
   Check the bibliography entries for non-compliant syntax,
   
   or select author-year BibTeX style, e.g. plainnat
   
   Where do I choose the proposed style?
  
  The style is chosen from a dialog you will get if you click on the
  bibliography inset itself.
 
 Thanks, Richard.
 
 If I choose vancouver (which is shown in the dropdown dialog)
 
 I get:
 ##
 I'm skipping whatever remI'm skipping whatever remains of this command
 Illegal, another \bibstyle command---line 1699 of file
 PBR-20130815A.20.aux
 
  : \bibstyle
  : 
  :  {vancouver}
 
 I'm skipping whatever remains of this command
 I found no style file---while reading file PBR-20130815A.20.aux
 ains of this command
 Illegal, another \bibstyle command---line 1699 of file
 PBR-20130815A.20.aux
 
  : \bibstyle
  : 
  :  {vancouver}
 
 I'm skipping whatever remains of this command
 I found no style file---while reading file PBR-20130815A.20.aux
 ###
 
 and the references in the pdf output are shown as ???
 
 What have I done wrongly? Do I have to remove the .aux file first,
 because lyx might have taken an older aux file? And where would I find
 this aux-file?
 
 If I export the document as .tex and run latex on it 3 times and
 afterward bibtex, I get:
 
 
 
 This is BibTeX, Version 0.99d (TeX Live 2012)
 The top-level auxiliary file: PBR-20130815A.20.aux
 I couldn't open style file srtnat.bst
 ---line 19 of file PBR-20130815A.20.aux
 
  : \bibstyle{srtnat
  : 
  : }
I am sorry, I just noticed that I forgot to remove 
\bibliographystyle{srtnat}
from the preamble. Removing it, gives me now the vancouver style in the 
bibliography,

but where do I determine the citation style in the book text? 

In DocumentsettingBibliography 
I find only default (numerical), Natbib style Author-year and numerical.
I do not want numerical, but need actually the citation style also in 
vancouver. How do I achieve this?

Wolfgang


 
 
 this is strange, I tried srtnat before, but in the current run used
 vancouver
 
 continued error output:
 I'm skipping whatever remains of this command
 Illegal, another \bibstyle command---line 1699 of file
 PBR-20130815A.20.aux
 
  : \bibstyle
  : 
  :  {vancouver}
 
 I'm skipping whatever remains of this command
 I found no style file---while reading file PBR-20130815A.20.aux
 
 
 Wolfgang


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Lyx from daily PPA install fails

2013-08-15 Thread Liviu Andronic
On Thu, Aug 15, 2013 at 9:44 AM, Wolfgang Engelmann
engelm...@uni-tuebingen.de wrote:

 Am Wednesday, 14. August 2013, 22:53:21 schrieb Paul Rubin:

  Wolfgang Engelmann engelmann at uni-tuebingen.de writes:

   apt get install lyx2.0

 

  If you need to install LyX 2.1 to open the document, this line should be

 

   apt get install lyx2.1







 Thanks, Paul, but



 with this line I get: lyx2.1 no package could be found



 What is the corresponding /etc/sources.list of Debian for

 LinuxMint?


Quick answer:
https://launchpad.net/~lyx-devel/+archive/daily

then click:
Technical details about this PPA


The PPAs are for Ubuntu, and I don't know if they're supposed to work
with Linux Mint. If it still doesn't work, you may also manually
download the relevant .deb from:
https://launchpad.net/~lyx-devel/+archive/daily/+packages

Regards,
Liviu


 And what do I have to add to get the lyx2.1 packages downloaded?



 Wolfgang

  

   at the last step I get an error

   error by fetching from

 

  http://ppa.launchpad.net/lyx-devel/daily/ubuntu/dists/debian/main/source

  /Sources

 

   404 Not Found

  

   Some index files could not be downloaded. Ignored or old onces used

   instead

   I am using LinuxMint Cinnamon

 

  I just installed LyX 2.1, also on Mint 14 Cinnamon (64 bit).

 

   and need a newer version of (2.1..) since the lyx file was produced

   with

 

  it. Alternatively, where could I get a lyx2lyx to allow me to convert

  the 2.1 version to the 2.0.. version?

 

  If you can't get LyX 2.1 to install and care to send me the file (rubin

  at msu dot edu), I can try to export it to 2.0 format. No guarantee

  that works, for instance if it uses the new Beamer layout.

 

  Paul





 --

 -

 Wolfgang Engelmann

 Schlossgartenstrasse 22

 D-72070 Tübingen

 Tel 07071 68325






-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Lyx from daily PPA install fails

2013-08-15 Thread Paul Rubin
Wolfgang Engelmann engelmann at uni-tuebingen.de writes:

 
 
 Am Wednesday, 14. August 2013, 22:53:21 schrieb Paul Rubin:
  Wolfgang Engelmann engelmann at uni-tuebingen.de writes:
   apt get install lyx2.0
  
  If you need to install LyX 2.1 to open the document, this line should be
  
   apt get install lyx2.1
  
  
  
 Thanks, Paul, but
  
 with this line I get: lyx2.1 no package could be found
  
 What is the corresponding /etc/sources.list of Debian for 
 LinuxMint?

This is what I have in Software Sources (Other Software tab):

http://ppa.launchpad.net/lyx-devel/daily/ubuntu quantal main
http://ppa.launchpad.net/lyx-devel/daily/ubuntu quantal main (Source Code)

The first is binary, the second obviously is source.

 And what do I have to add to get the lyx2.1 packages downloaded?

I ran exactly the following (in a terminal):

sudo add-apt-repository ppa:lyx-devel/daily
sudo apt-get update
sudo apt-get install lyx2.1

The 'lyx2.1' and 'lyx-common2.1' packages were installed. I don't believe
any other dependencies needed to be filled.

You said Mint Cinnamon but not the version. I'm using 14 (Nadia), which
forks Ubuntu 12.10 (Quantal). If you're on Mint 13, which forks Ubuntu 12.04
(Precise), it's possible that LyX 2.1 will not install due to
impossible-to-satisfy dependencies.

Paul







Re: Lyx from daily PPA install fails

2013-08-15 Thread Wolfgang Engelmann
Am Wednesday, 14. August 2013, 22:53:21 schrieb Paul Rubin:
 Wolfgang Engelmann engelmann at uni-tuebingen.de writes:
  apt get install lyx2.0
 
 If you need to install LyX 2.1 to open the document, this line should be
 
  apt get install lyx2.1



Thanks, Paul, but

with this line I get: lyx2.1 no package could be found

What is the corresponding /etc/sources.list of Debian for 
LinuxMint?
And what do I have to add to get the lyx2.1 packages downloaded?

Wolfgang
  
  at the last step I get an error
  error by fetching from
 
 http://ppa.launchpad.net/lyx-devel/daily/ubuntu/dists/debian/main/source
 /Sources
 
  404 Not Found
   
  Some index files could not be downloaded. Ignored or old onces used
  instead 
  I am using LinuxMint Cinnamon
 
 I just installed LyX 2.1, also on Mint 14 Cinnamon (64 bit).
 
  and need a newer version of (2.1..) since the lyx file was produced
  with
 
 it. Alternatively, where could I get a lyx2lyx to allow me to convert
 the 2.1 version to the 2.0.. version?
 
 If you can't get LyX 2.1 to install and care to send me the file (rubin
 at msu dot edu), I can try to export it to 2.0 format. No guarantee
 that works, for instance if it uses the new Beamer layout.
 
 Paul


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Citation style

2013-08-15 Thread Wolfgang Engelmann
I get this error:

! Package natbib Error: Bibliography not compatible with author-year 
citations.

Check the bibliography entries for non-compliant syntax,
or select author-year BibTeX style, e.g. plainnat

Where do I choose the proposed style?

In DocumentsettingBibliography 
I can't find it,
only default (numerical), Natbib style Author-year and numerical.

Do I have to do it via Latex-Preamble?

I use Linux Debian

Wolfgang


Re: 2.6.1beta0 and Beamer

2013-08-15 Thread Jürgen Spitzmüller
Dr Eberhard Lisse wrote:
 Jürgen,
 
 are there known issues transferring presentations from 2.06 to 2.6.1beta0?

No.

 If so, which are they? Because I a seem to have some and if they are
 known I don't need to trace them down to a minimal example and can just
 work on them with 2.0.6 for the time being.

If you could create minimal examples for each of them and file bugs on trac, 
that would be great.

In general, please make backups before importing to 2.1. The beamer layout 
changes were huge, so issues with complex documents are to be expected.

Thanks
Jürgen

 el




Re: 2.1.0beta1 beamer ui issues

2013-08-15 Thread Jürgen Spitzmüller
Am Donnerstag 01 August 2013, 09:43:45 schrieb Neal Becker:
 I'm trying out 2.1.0beta1.  Interested in beamer improvements.
 
 I'm finding the ui confusing.  I start off with a frame environment and put
 in a title.  I'd now expect to hit ret to put text into the frame.  ret is
 disabled.

Because you are inside the frame title argument.

 If I move over a space with left -, now I'm outside title and
 hit ret.  OK.  I seem to be inserting text in the frame.
 
 Now I want to try out block.  I choose 'block'.  It seems this block is now
 on a new frame - not inside the current frame.
 
 I don't see how to put the block in the current frame.

Edit  Increase List Depth or whatever shortcut this is on your box 
(Alt+Shift+Arrow right here).

I suggest you read the new beamer manual Joon already pointed to.

I agree that the UI changes are confusing in the beginning. Note that we tried 
to keep the UI changes as minimal as possible. However, the changes were 
necessary to fix many beamer bugs and restrictions caused by an ugly LaTeX 
hack that was only there to make the old UI possible.

Jürgen


Re: How to do conditional compilation from LyX?

2013-08-15 Thread Richard Heck

On 08/14/2013 10:16 PM, Steve Litt of Troubleshooters.Com wrote:

Hi all,

My Layout file, derived from the Book doc class, has the following code:


\ifx\stevelitt\undefined \else
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}
\thechapter: #1}}{}}
%\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\slshape\thesection :
#1}}} \renewcommand{\sectionmark}[1]{\markright{Steve Stiffler}}

\fancyhf{}
\fancyhf[OLH]{\rightmark}
\fancyhf[ERH]{\leftmark}
\fancyhf[ORH,ELH]{\thepage}

\fi


Ideally, what I'd like to do is set (or not set) command \stevelitt in
the LyX Document Preamble, but that doesn't work --- define it or not,
the layout code acts as if it's not defined. I suspect the reason is
that LyX places the code from the layout file earlier in the resultant
LaTeX file than the LyX document preamble, so \stevelitt is always
undefined *when the conditionally compiled code is encountered*.


Yes, that is correct.

Try wrapping the conditional code in \AtBeginDocument to defer its 
execution.



My ideal solution to this conditional compilation would be to simply
define a variable within the LyX file and have that work. I haven't
been able to do that. Uglier solutions, which I haven't tried yet,
would be to modify the layout with AWK just before the compilation, or
run the LaTeX command like:

latex \edef\stevelitt{$1}\input{myfile.latex}

Something I *haven't* been able to get to work is to put the
conditional code inside a command and just call the command from the
LyX LaTeX preamble. The conditional code gets arguments like #1 very
confused when it's placed inside a command.


I think in that case you may have to use ##1 or something, but I'd have 
to see the actual command.


Richard



Re: Citation style

2013-08-15 Thread Richard Heck

On 08/15/2013 06:47 AM, Wolfgang Engelmann wrote:


I get this error:

! Package natbib Error: Bibliography not compatible with author-year 
citations.


Check the bibliography entries for non-compliant syntax,

or select author-year BibTeX style, e.g. plainnat

Where do I choose the proposed style?



The style is chosen from a dialog you will get if you click on the 
bibliography inset itself.


Richard



Re: Citation style

2013-08-15 Thread Wolfgang Engelmann
Am Thursday, 15. August 2013, 15:18:04 schrieb Richard Heck:
 On 08/15/2013 06:47 AM, Wolfgang Engelmann wrote:
  I get this error:
  
  ! Package natbib Error: Bibliography not compatible with author-year
  citations.
  
  Check the bibliography entries for non-compliant syntax,
  
  or select author-year BibTeX style, e.g. plainnat
  
  Where do I choose the proposed style?
 
 The style is chosen from a dialog you will get if you click on the
 bibliography inset itself.

Thanks, Richard. 

If I choose vancouver (which is shown in the dropdown dialog) 

I get:
##
I'm skipping whatever remI'm skipping whatever remains of this command
Illegal, another \bibstyle command---line 1699 of file PBR-20130815A.20.aux
 : \bibstyle
 :  {vancouver}
I'm skipping whatever remains of this command
I found no style file---while reading file PBR-20130815A.20.aux
ains of this command
Illegal, another \bibstyle command---line 1699 of file PBR-20130815A.20.aux
 : \bibstyle
 :  {vancouver}
I'm skipping whatever remains of this command
I found no style file---while reading file PBR-20130815A.20.aux
###

and the references in the pdf output are shown as ???

What have I done wrongly? Do I have to remove the .aux file first, because 
lyx might have taken an older aux file? And where would I find this aux-file?

If I export the document as .tex and run latex on it 3 times and afterward 
bibtex, I get:



This is BibTeX, Version 0.99d (TeX Live 2012)
The top-level auxiliary file: PBR-20130815A.20.aux
I couldn't open style file srtnat.bst
---line 19 of file PBR-20130815A.20.aux
 : \bibstyle{srtnat
 : }

this is strange, I tried srtnat before, but in the current run used 
vancouver

continued error output:
I'm skipping whatever remains of this command
Illegal, another \bibstyle command---line 1699 of file PBR-20130815A.20.aux
 : \bibstyle
 :  {vancouver}
I'm skipping whatever remains of this command
I found no style file---while reading file PBR-20130815A.20.aux


Wolfgang


Test20130815_1249

2013-08-15 Thread Steve Litt
Let's see if Bluehost has extricated themselves from the
blacklists LyX-Users uses...


Re: How to do conditional compilation from LyX?

2013-08-15 Thread Steve Litt of Troubleshooters.Com
On Thu, 15 Aug 2013 09:17:08 -0400
Richard Heck rgh...@lyx.org wrote:

 On 08/14/2013 10:16 PM, Steve Litt of Troubleshooters.Com wrote:
  Hi all,
 
  My Layout file, derived from the Book doc class, has the following
  code:
 
  
  \ifx\stevelitt\undefined \else
  \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}
  \thechapter: #1}}{}}
  %\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\slshape\thesection
   :
  #1}}} \renewcommand{\sectionmark}[1]{\markright{Steve Stiffler}}
 
  \fancyhf{}
  \fancyhf[OLH]{\rightmark}
  \fancyhf[ERH]{\leftmark}
  \fancyhf[ORH,ELH]{\thepage}
 
  \fi
  
 
  Ideally, what I'd like to do is set (or not set) command \stevelitt
  in the LyX Document Preamble, but that doesn't work --- define it
  or not, the layout code acts as if it's not defined. I suspect the
  reason is that LyX places the code from the layout file earlier in
  the resultant LaTeX file than the LyX document preamble, so
  \stevelitt is always undefined *when the conditionally compiled
  code is encountered*.
 
 Yes, that is correct.
 
 Try wrapping the conditional code in \AtBeginDocument to defer its 
 execution.

Thanks Richard,

That would be incredibly cool if it works. Meanwhile, I already
implemented a different solution, which I'll describe in a different
email.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: How to do conditional compilation from LyX? SOLVED

2013-08-15 Thread Steve Litt of Troubleshooters.Com
On Wed, 14 Aug 2013 22:16:25 -0400
Steve Litt of Troubleshooters.Com stevel...@careersuccess.com wrote:

 Hi all,
 
 My Layout file, derived from the Book doc class, has the following
 code:
 
 
 \ifx\stevelitt\undefined \else
 \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}
 \thechapter: #1}}{}}
 %\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\slshape\thesection 
 :
 #1}}} \renewcommand{\sectionmark}[1]{\markright{Steve Stiffler}}
 
 \fancyhf{}
 \fancyhf[OLH]{\rightmark}
 \fancyhf[ERH]{\leftmark}
 \fancyhf[ORH,ELH]{\thepage}
 
 \fi
 

The ideal solution, and in fact my first attempt, would have been to
package the preceding \renewcommand and \fancyhf commands in their own
subroutine (command), and call that command from LyX's LaTeX preamble.
That makes *perfect* sense but doesn't work, because when you wrap the
\renewcommand commands within another command, the #1's involved change
from a prototype to a literal -- #1 of the enclosing command. That's
why I tried the conditional compile in the first place, but we all know
that didn't work because it comes earlier than LyX can set a var.

So I moved the \renewcommands outside of the subroutine, and assigned
them to otherwise meaningless commands \smark and \cmark, which can then
be assigned to \sectionmark and \chaptermark *inside the enclosing
command*. So the solution looks like this:

==
\newcommand{\cmark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}\thechapter:
 #1}}{}}
\newcommand{\smark}[1]{\markright{\MakeUppercase{\slshape\thesection : #1}}}

\newcommand{\setheader}[1]{%
  \let\chaptermark\cmark
  \let\sectionmark\smark
  \fancyhf{}
  \fancyhf[OLH]{\rightmark}
  \fancyhf[ERH]{\leftmark}
  \fancyhf[ORH,ELH]{\thepage}
}
==

So it sets \cmark and \smark regardless, but those are *used* only if
the \setheader command is run. Pretty cool, huh?

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Citation style

2013-08-15 Thread Wolfgang Engelmann
Am Thursday, 15. August 2013, 17:10:22 schrieb Wolfgang Engelmann:
 Am Thursday, 15. August 2013, 15:18:04 schrieb Richard Heck:
  On 08/15/2013 06:47 AM, Wolfgang Engelmann wrote:
   I get this error:
   
   ! Package natbib Error: Bibliography not compatible with author-year
   citations.
   
   Check the bibliography entries for non-compliant syntax,
   
   or select author-year BibTeX style, e.g. plainnat
   
   Where do I choose the proposed style?
  
  The style is chosen from a dialog you will get if you click on the
  bibliography inset itself.
 
 Thanks, Richard.
 
 If I choose vancouver (which is shown in the dropdown dialog)
 
 I get:
 ##
 I'm skipping whatever remI'm skipping whatever remains of this command
 Illegal, another \bibstyle command---line 1699 of file
 PBR-20130815A.20.aux
 
  : \bibstyle
  : 
  :  {vancouver}
 
 I'm skipping whatever remains of this command
 I found no style file---while reading file PBR-20130815A.20.aux
 ains of this command
 Illegal, another \bibstyle command---line 1699 of file
 PBR-20130815A.20.aux
 
  : \bibstyle
  : 
  :  {vancouver}
 
 I'm skipping whatever remains of this command
 I found no style file---while reading file PBR-20130815A.20.aux
 ###
 
 and the references in the pdf output are shown as ???
 
 What have I done wrongly? Do I have to remove the .aux file first,
 because lyx might have taken an older aux file? And where would I find
 this aux-file?
 
 If I export the document as .tex and run latex on it 3 times and
 afterward bibtex, I get:
 
 
 
 This is BibTeX, Version 0.99d (TeX Live 2012)
 The top-level auxiliary file: PBR-20130815A.20.aux
 I couldn't open style file srtnat.bst
 ---line 19 of file PBR-20130815A.20.aux
 
  : \bibstyle{srtnat
  : 
  : }
I am sorry, I just noticed that I forgot to remove 
\bibliographystyle{srtnat}
from the preamble. Removing it, gives me now the vancouver style in the 
bibliography,

but where do I determine the citation style in the book text? 

In DocumentsettingBibliography 
I find only default (numerical), Natbib style Author-year and numerical.
I do not want numerical, but need actually the citation style also in 
vancouver. How do I achieve this?

Wolfgang


 
 
 this is strange, I tried srtnat before, but in the current run used
 vancouver
 
 continued error output:
 I'm skipping whatever remains of this command
 Illegal, another \bibstyle command---line 1699 of file
 PBR-20130815A.20.aux
 
  : \bibstyle
  : 
  :  {vancouver}
 
 I'm skipping whatever remains of this command
 I found no style file---while reading file PBR-20130815A.20.aux
 
 
 Wolfgang


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Lyx from daily PPA install fails

2013-08-15 Thread Liviu Andronic
On Thu, Aug 15, 2013 at 9:44 AM, Wolfgang Engelmann
engelm...@uni-tuebingen.de wrote:

 Am Wednesday, 14. August 2013, 22:53:21 schrieb Paul Rubin:

  Wolfgang Engelmann engelmann at uni-tuebingen.de writes:

   apt get install lyx2.0

 

  If you need to install LyX 2.1 to open the document, this line should be

 

   apt get install lyx2.1







 Thanks, Paul, but



 with this line I get: lyx2.1 no package could be found



 What is the corresponding /etc/sources.list of Debian for

 LinuxMint?


Quick answer:
https://launchpad.net/~lyx-devel/+archive/daily

then click:
Technical details about this PPA


The PPAs are for Ubuntu, and I don't know if they're supposed to work
with Linux Mint. If it still doesn't work, you may also manually
download the relevant .deb from:
https://launchpad.net/~lyx-devel/+archive/daily/+packages

Regards,
Liviu


 And what do I have to add to get the lyx2.1 packages downloaded?



 Wolfgang

  

   at the last step I get an error

   error by fetching from

 

  http://ppa.launchpad.net/lyx-devel/daily/ubuntu/dists/debian/main/source

  /Sources

 

   404 Not Found

  

   Some index files could not be downloaded. Ignored or old onces used

   instead

   I am using LinuxMint Cinnamon

 

  I just installed LyX 2.1, also on Mint 14 Cinnamon (64 bit).

 

   and need a newer version of (2.1..) since the lyx file was produced

   with

 

  it. Alternatively, where could I get a lyx2lyx to allow me to convert

  the 2.1 version to the 2.0.. version?

 

  If you can't get LyX 2.1 to install and care to send me the file (rubin

  at msu dot edu), I can try to export it to 2.0 format. No guarantee

  that works, for instance if it uses the new Beamer layout.

 

  Paul





 --

 -

 Wolfgang Engelmann

 Schlossgartenstrasse 22

 D-72070 Tübingen

 Tel 07071 68325






-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Lyx from daily PPA install fails

2013-08-15 Thread Paul Rubin
Wolfgang Engelmann engelmann at uni-tuebingen.de writes:

 
 
 Am Wednesday, 14. August 2013, 22:53:21 schrieb Paul Rubin:
  Wolfgang Engelmann engelmann at uni-tuebingen.de writes:
   apt get install lyx2.0
  
  If you need to install LyX 2.1 to open the document, this line should be
  
   apt get install lyx2.1
  
  
  
 Thanks, Paul, but
  
 with this line I get: lyx2.1 no package could be found
  
 What is the corresponding /etc/sources.list of Debian for 
 LinuxMint?

This is what I have in Software Sources (Other Software tab):

http://ppa.launchpad.net/lyx-devel/daily/ubuntu quantal main
http://ppa.launchpad.net/lyx-devel/daily/ubuntu quantal main (Source Code)

The first is binary, the second obviously is source.

 And what do I have to add to get the lyx2.1 packages downloaded?

I ran exactly the following (in a terminal):

sudo add-apt-repository ppa:lyx-devel/daily
sudo apt-get update
sudo apt-get install lyx2.1

The 'lyx2.1' and 'lyx-common2.1' packages were installed. I don't believe
any other dependencies needed to be filled.

You said Mint Cinnamon but not the version. I'm using 14 (Nadia), which
forks Ubuntu 12.10 (Quantal). If you're on Mint 13, which forks Ubuntu 12.04
(Precise), it's possible that LyX 2.1 will not install due to
impossible-to-satisfy dependencies.

Paul







Re: Lyx from daily PPA install fails

2013-08-15 Thread Wolfgang Engelmann
Am Wednesday, 14. August 2013, 22:53:21 schrieb Paul Rubin:
> Wolfgang Engelmann  uni-tuebingen.de> writes:
> > apt get install lyx2.0
> 
> If you need to install LyX 2.1 to open the document, this line should be
> 
> > apt get install lyx2.1



Thanks, Paul, but

with this line I get: lyx2.1 no package could be found

What is the corresponding /etc/sources.list of Debian for 
LinuxMint?
And what do I have to add to get the lyx2.1 packages downloaded?

Wolfgang
> > 
> > at the last step I get an error
> > error by fetching from
> 
> http://ppa.launchpad.net/lyx-devel/daily/ubuntu/dists/debian/main/source
> /Sources
> 
> > 404 Not Found
> >  
> > Some index files could not be downloaded. Ignored or old onces used
> > instead 
> > I am using LinuxMint Cinnamon
> 
> I just installed LyX 2.1, also on Mint 14 Cinnamon (64 bit).
> 
> > and need a newer version of (2.1..) since the lyx file was produced
> > with
> 
> it. Alternatively, where could I get a lyx2lyx to allow me to convert
> the 2.1 version to the 2.0.. version?
> 
> If you can't get LyX 2.1 to install and care to send me the file (rubin
>  msu  edu), I can try to export it to 2.0 format. No guarantee
> that works, for instance if it uses the new Beamer layout.
> 
> Paul


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Citation style

2013-08-15 Thread Wolfgang Engelmann
I get this error:

! Package natbib Error: Bibliography not compatible with author-year 
citations.

Check the bibliography entries for non-compliant syntax,
or select author-year BibTeX style, e.g. plainnat

Where do I choose the proposed style?

In Document>setting>Bibliography 
I can't find it,
only default (numerical), Natbib style Author-year and numerical.

Do I have to do it via Latex-Preamble?

I use Linux Debian

Wolfgang


Re: 2.6.1beta0 and Beamer

2013-08-15 Thread Jürgen Spitzmüller
Dr Eberhard Lisse wrote:
> Jürgen,
> 
> are there known issues transferring presentations from 2.06 to 2.6.1beta0?

No.

> If so, which are they? Because I a seem to have some and if they are
> known I don't need to trace them down to a minimal example and can just
> work on them with 2.0.6 for the time being.

If you could create minimal examples for each of them and file bugs on trac, 
that would be great.

In general, please make backups before importing to 2.1. The beamer layout 
changes were huge, so issues with complex documents are to be expected.

Thanks
Jürgen

> el




Re: 2.1.0beta1 beamer ui issues

2013-08-15 Thread Jürgen Spitzmüller
Am Donnerstag 01 August 2013, 09:43:45 schrieb Neal Becker:
> I'm trying out 2.1.0beta1.  Interested in beamer improvements.
> 
> I'm finding the ui confusing.  I start off with a frame environment and put
> in a title.  I'd now expect to hit ret to put text into the frame.  ret is
> disabled.

Because you are inside the frame title argument.

> If I move over a space with left ->, now I'm outside title and
> hit ret.  OK.  I seem to be inserting text in the frame.
> 
> Now I want to try out block.  I choose 'block'.  It seems this block is now
> on a new frame - not inside the current frame.
> 
> I don't see how to put the block in the current frame.

Edit > Increase List Depth or whatever shortcut this is on your box 
(Alt+Shift+Arrow right here).

I suggest you read the new beamer manual Joon already pointed to.

I agree that the UI changes are confusing in the beginning. Note that we tried 
to keep the UI changes as minimal as possible. However, the changes were 
necessary to fix many beamer bugs and restrictions caused by an ugly LaTeX 
hack that was only there to make the old UI possible.

Jürgen


Re: How to do conditional compilation from LyX?

2013-08-15 Thread Richard Heck

On 08/14/2013 10:16 PM, Steve Litt of Troubleshooters.Com wrote:

Hi all,

My Layout file, derived from the Book doc class, has the following code:


\ifx\stevelitt\undefined \else
\renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}
\thechapter: #1}}{}}
%\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\slshape\thesection :
#1}}} \renewcommand{\sectionmark}[1]{\markright{Steve Stiffler}}

\fancyhf{}
\fancyhf[OLH]{\rightmark}
\fancyhf[ERH]{\leftmark}
\fancyhf[ORH,ELH]{\thepage}

\fi


Ideally, what I'd like to do is set (or not set) command \stevelitt in
the LyX Document Preamble, but that doesn't work --- define it or not,
the layout code acts as if it's not defined. I suspect the reason is
that LyX places the code from the layout file earlier in the resultant
LaTeX file than the LyX document preamble, so \stevelitt is always
undefined *when the conditionally compiled code is encountered*.


Yes, that is correct.

Try wrapping the conditional code in \AtBeginDocument to defer its 
execution.



My ideal solution to this conditional compilation would be to simply
define a variable within the LyX file and have that work. I haven't
been able to do that. Uglier solutions, which I haven't tried yet,
would be to modify the layout with AWK just before the compilation, or
run the LaTeX command like:

latex "\edef\stevelitt{$1}\input{myfile.latex}"

Something I *haven't* been able to get to work is to put the
conditional code inside a command and just call the command from the
LyX LaTeX preamble. The conditional code gets arguments like #1 very
confused when it's placed inside a command.


I think in that case you may have to use ##1 or something, but I'd have 
to see the actual command.


Richard



Re: Citation style

2013-08-15 Thread Richard Heck

On 08/15/2013 06:47 AM, Wolfgang Engelmann wrote:


I get this error:

! Package natbib Error: Bibliography not compatible with author-year 
citations.


Check the bibliography entries for non-compliant syntax,

or select author-year BibTeX style, e.g. plainnat

Where do I choose the proposed style?



The style is chosen from a dialog you will get if you click on the 
bibliography inset itself.


Richard



Re: Citation style

2013-08-15 Thread Wolfgang Engelmann
Am Thursday, 15. August 2013, 15:18:04 schrieb Richard Heck:
> On 08/15/2013 06:47 AM, Wolfgang Engelmann wrote:
> > I get this error:
> > 
> > ! Package natbib Error: Bibliography not compatible with author-year
> > citations.
> > 
> > Check the bibliography entries for non-compliant syntax,
> > 
> > or select author-year BibTeX style, e.g. plainnat
> > 
> > Where do I choose the proposed style?
> 
> The style is chosen from a dialog you will get if you click on the
> bibliography inset itself.

Thanks, Richard. 

If I choose vancouver (which is shown in the dropdown dialog) 

I get:
##
I'm skipping whatever remI'm skipping whatever remains of this command
Illegal, another \bibstyle command---line 1699 of file PBR-20130815A.20.aux
 : \bibstyle
 :  {vancouver}
I'm skipping whatever remains of this command
I found no style file---while reading file PBR-20130815A.20.aux
ains of this command
Illegal, another \bibstyle command---line 1699 of file PBR-20130815A.20.aux
 : \bibstyle
 :  {vancouver}
I'm skipping whatever remains of this command
I found no style file---while reading file PBR-20130815A.20.aux
###

and the references in the pdf output are shown as ???

What have I done wrongly? Do I have to remove the .aux file first, because 
lyx might have taken an older aux file? And where would I find this aux-file?

If I export the document as .tex and run latex on it 3 times and afterward 
bibtex, I get:



This is BibTeX, Version 0.99d (TeX Live 2012)
The top-level auxiliary file: PBR-20130815A.20.aux
I couldn't open style file srtnat.bst
---line 19 of file PBR-20130815A.20.aux
 : \bibstyle{srtnat
 : }

this is strange, I tried srtnat before, but in the current run used 
vancouver

continued error output:
I'm skipping whatever remains of this command
Illegal, another \bibstyle command---line 1699 of file PBR-20130815A.20.aux
 : \bibstyle
 :  {vancouver}
I'm skipping whatever remains of this command
I found no style file---while reading file PBR-20130815A.20.aux


Wolfgang


Test20130815_1249

2013-08-15 Thread Steve Litt
Let's see if Bluehost has extricated themselves from the
blacklists LyX-Users uses...


Re: How to do conditional compilation from LyX?

2013-08-15 Thread Steve Litt of Troubleshooters.Com
On Thu, 15 Aug 2013 09:17:08 -0400
Richard Heck  wrote:

> On 08/14/2013 10:16 PM, Steve Litt of Troubleshooters.Com wrote:
> > Hi all,
> >
> > My Layout file, derived from the Book doc class, has the following
> > code:
> >
> > 
> > \ifx\stevelitt\undefined \else
> > \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}
> > \thechapter: #1}}{}}
> > %\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\slshape\thesection
> >  :
> > #1}}} \renewcommand{\sectionmark}[1]{\markright{Steve Stiffler}}
> >
> > \fancyhf{}
> > \fancyhf[OLH]{\rightmark}
> > \fancyhf[ERH]{\leftmark}
> > \fancyhf[ORH,ELH]{\thepage}
> >
> > \fi
> > 
> >
> > Ideally, what I'd like to do is set (or not set) command \stevelitt
> > in the LyX Document Preamble, but that doesn't work --- define it
> > or not, the layout code acts as if it's not defined. I suspect the
> > reason is that LyX places the code from the layout file earlier in
> > the resultant LaTeX file than the LyX document preamble, so
> > \stevelitt is always undefined *when the conditionally compiled
> > code is encountered*.
> 
> Yes, that is correct.
> 
> Try wrapping the conditional code in \AtBeginDocument to defer its 
> execution.

Thanks Richard,

That would be incredibly cool if it works. Meanwhile, I already
implemented a different solution, which I'll describe in a different
email.

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: How to do conditional compilation from LyX?

2013-08-15 Thread Steve Litt of Troubleshooters.Com
On Wed, 14 Aug 2013 22:16:25 -0400
"Steve Litt of Troubleshooters.Com"  wrote:

> Hi all,
> 
> My Layout file, derived from the Book doc class, has the following
> code:
> 
> 
> \ifx\stevelitt\undefined \else
> \renewcommand{\chaptermark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}
> \thechapter: #1}}{}}
> %\renewcommand{\sectionmark}[1]{\markright{\MakeUppercase{\slshape\thesection 
> :
> #1}}} \renewcommand{\sectionmark}[1]{\markright{Steve Stiffler}}
> 
> \fancyhf{}
> \fancyhf[OLH]{\rightmark}
> \fancyhf[ERH]{\leftmark}
> \fancyhf[ORH,ELH]{\thepage}
> 
> \fi
> 

The ideal solution, and in fact my first attempt, would have been to
package the preceding \renewcommand and \fancyhf commands in their own
subroutine (command), and call that command from LyX's LaTeX preamble.
That makes *perfect* sense but doesn't work, because when you wrap the
\renewcommand commands within another command, the #1's involved change
from a prototype to a literal -- #1 of the enclosing command. That's
why I tried the conditional compile in the first place, but we all know
that didn't work because it comes earlier than LyX can set a var.

So I moved the \renewcommands outside of the subroutine, and assigned
them to otherwise meaningless commands \smark and \cmark, which can then
be assigned to \sectionmark and \chaptermark *inside the enclosing
command*. So the solution looks like this:

==
\newcommand{\cmark}[1]{\markboth{\MakeUppercase{\slshape\chaptername{}\thechapter:
 #1}}{}}
\newcommand{\smark}[1]{\markright{\MakeUppercase{\slshape\thesection : #1}}}

\newcommand{\setheader}[1]{%
  \let\chaptermark\cmark
  \let\sectionmark\smark
  \fancyhf{}
  \fancyhf[OLH]{\rightmark}
  \fancyhf[ERH]{\leftmark}
  \fancyhf[ORH,ELH]{\thepage}
}
==

So it sets \cmark and \smark regardless, but those are *used* only if
the \setheader command is run. Pretty cool, huh?

Thanks,

SteveT

Steve Litt*  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance


Re: Citation style

2013-08-15 Thread Wolfgang Engelmann
Am Thursday, 15. August 2013, 17:10:22 schrieb Wolfgang Engelmann:
> Am Thursday, 15. August 2013, 15:18:04 schrieb Richard Heck:
> > On 08/15/2013 06:47 AM, Wolfgang Engelmann wrote:
> > > I get this error:
> > > 
> > > ! Package natbib Error: Bibliography not compatible with author-year
> > > citations.
> > > 
> > > Check the bibliography entries for non-compliant syntax,
> > > 
> > > or select author-year BibTeX style, e.g. plainnat
> > > 
> > > Where do I choose the proposed style?
> > 
> > The style is chosen from a dialog you will get if you click on the
> > bibliography inset itself.
> 
> Thanks, Richard.
> 
> If I choose vancouver (which is shown in the dropdown dialog)
> 
> I get:
> ##
> I'm skipping whatever remI'm skipping whatever remains of this command
> Illegal, another \bibstyle command---line 1699 of file
> PBR-20130815A.20.aux
> 
>  : \bibstyle
>  : 
>  :  {vancouver}
> 
> I'm skipping whatever remains of this command
> I found no style file---while reading file PBR-20130815A.20.aux
> ains of this command
> Illegal, another \bibstyle command---line 1699 of file
> PBR-20130815A.20.aux
> 
>  : \bibstyle
>  : 
>  :  {vancouver}
> 
> I'm skipping whatever remains of this command
> I found no style file---while reading file PBR-20130815A.20.aux
> ###
> 
> and the references in the pdf output are shown as ???
> 
> What have I done wrongly? Do I have to remove the .aux file first,
> because lyx might have taken an older aux file? And where would I find
> this aux-file?
> 
> If I export the document as .tex and run latex on it 3 times and
> afterward bibtex, I get:
> 
> 
> 
> This is BibTeX, Version 0.99d (TeX Live 2012)
> The top-level auxiliary file: PBR-20130815A.20.aux
> I couldn't open style file srtnat.bst
> ---line 19 of file PBR-20130815A.20.aux
> 
>  : \bibstyle{srtnat
>  : 
>  : }
I am sorry, I just noticed that I forgot to remove 
\bibliographystyle{srtnat}
from the preamble. Removing it, gives me now the vancouver style in the 
bibliography,

but where do I determine the citation style in the book text? 

In Document>setting>Bibliography 
I find only default (numerical), Natbib style Author-year and numerical.
I do not want numerical, but need actually the citation style also in 
vancouver. How do I achieve this?

Wolfgang


> 
> 
> this is strange, I tried srtnat before, but in the current run used
> vancouver
> 
> continued error output:
> I'm skipping whatever remains of this command
> Illegal, another \bibstyle command---line 1699 of file
> PBR-20130815A.20.aux
> 
>  : \bibstyle
>  : 
>  :  {vancouver}
> 
> I'm skipping whatever remains of this command
> I found no style file---while reading file PBR-20130815A.20.aux
> 
> 
> Wolfgang


-- 
-
Wolfgang Engelmann
Schlossgartenstrasse 22
D-72070 Tübingen
Tel 07071 68325


Re: Lyx from daily PPA install fails

2013-08-15 Thread Liviu Andronic
On Thu, Aug 15, 2013 at 9:44 AM, Wolfgang Engelmann
 wrote:
>
> Am Wednesday, 14. August 2013, 22:53:21 schrieb Paul Rubin:
>
> > Wolfgang Engelmann  uni-tuebingen.de> writes:
>
> > > apt get install lyx2.0
>
> >
>
> > If you need to install LyX 2.1 to open the document, this line should be
>
> >
>
> > > apt get install lyx2.1
>
>
>
>
>
>
>
> Thanks, Paul, but
>
>
>
> with this line I get: lyx2.1 no package could be found
>
>
>
> What is the corresponding /etc/sources.list of Debian for
>
> LinuxMint?
>

Quick answer:
https://launchpad.net/~lyx-devel/+archive/daily

then click:
"Technical details about this PPA"


The PPAs are for Ubuntu, and I don't know if they're supposed to work
with Linux Mint. If it still doesn't work, you may also manually
download the relevant .deb from:
https://launchpad.net/~lyx-devel/+archive/daily/+packages

Regards,
Liviu


> And what do I have to add to get the lyx2.1 packages downloaded?
>
>
>
> Wolfgang
>
> > >
>
> > > at the last step I get an error
>
> > > error by fetching from
>
> >
>
> > http://ppa.launchpad.net/lyx-devel/daily/ubuntu/dists/debian/main/source
>
> > /Sources
>
> >
>
> > > 404 Not Found
>
> > >
>
> > > Some index files could not be downloaded. Ignored or old onces used
>
> > > instead
>
> > > I am using LinuxMint Cinnamon
>
> >
>
> > I just installed LyX 2.1, also on Mint 14 Cinnamon (64 bit).
>
> >
>
> > > and need a newer version of (2.1..) since the lyx file was produced
>
> > > with
>
> >
>
> > it. Alternatively, where could I get a lyx2lyx to allow me to convert
>
> > the 2.1 version to the 2.0.. version?
>
> >
>
> > If you can't get LyX 2.1 to install and care to send me the file (rubin
>
> >  msu  edu), I can try to export it to 2.0 format. No guarantee
>
> > that works, for instance if it uses the new Beamer layout.
>
> >
>
> > Paul
>
>
>
>
>
> --
>
> -
>
> Wolfgang Engelmann
>
> Schlossgartenstrasse 22
>
> D-72070 Tübingen
>
> Tel 07071 68325
>
>




-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail


Re: Lyx from daily PPA install fails

2013-08-15 Thread Paul Rubin
Wolfgang Engelmann  uni-tuebingen.de> writes:

> 
> 
> Am Wednesday, 14. August 2013, 22:53:21 schrieb Paul Rubin:
> > Wolfgang Engelmann  uni-tuebingen.de> writes:
> > > apt get install lyx2.0
> > 
> > If you need to install LyX 2.1 to open the document, this line should be
> > 
> > > apt get install lyx2.1
>  
>  
>  
> Thanks, Paul, but
>  
> with this line I get: lyx2.1 no package could be found
>  
> What is the corresponding /etc/sources.list of Debian for 
> LinuxMint?

This is what I have in "Software Sources" ("Other Software" tab):

http://ppa.launchpad.net/lyx-devel/daily/ubuntu quantal main
http://ppa.launchpad.net/lyx-devel/daily/ubuntu quantal main (Source Code)

The first is binary, the second obviously is source.

> And what do I have to add to get the lyx2.1 packages downloaded?

I ran exactly the following (in a terminal):

sudo add-apt-repository ppa:lyx-devel/daily
sudo apt-get update
sudo apt-get install lyx2.1

The 'lyx2.1' and 'lyx-common2.1' packages were installed. I don't believe
any other dependencies needed to be filled.

You said Mint Cinnamon but not the version. I'm using 14 (Nadia), which
forks Ubuntu 12.10 (Quantal). If you're on Mint 13, which forks Ubuntu 12.04
(Precise), it's possible that LyX 2.1 will not install due to
impossible-to-satisfy dependencies.

Paul