Re: Errors when using apacite for bibliography

2012-11-23 Thread Ray Rashif
On 23 November 2012 02:58, Florian flor...@phpws.org wrote:
 Hi there,

 I would need some help with apacite, as I do not seem to get it working. I
 use LyX 2.0.5 on Windows 7.

Try enabling Default citation style in preferences and then in
preamble save the following:

% Workaround for APA style (must turn off natbib first)
\usepackage{apacite}
\usepackage[authoryear]{natbib}


--
GPG/PGP ID: C0711BF1


Changing from \pmatrix to \matrix

2012-11-23 Thread Fabio Stumbo


I wrote a \pmatrix, then I changed my idea and I want a simple \matrix: 
is there a way to switch from the previous environment to the desired one 
without rewriting or copy/paste the matrix? I have not been able to do it, 
nor to find help on the docs... :-(


Thanks a lot

Fabio


Re: Errors when using apacite for bibliography

2012-11-23 Thread Florian

On Fri, 23 Nov 2012 18:09:30 +0800
 Ray Rashif schivmeis...@gmail.com wrote:

Try enabling Default citation style in preferences and then in
preamble save the following:

% Workaround for APA style (must turn off natbib first)
\usepackage{apacite}
\usepackage[authoryear]{natbib}


Thanks, this seems to resolve the problem.

Best, Florian



Re: AW: LyX 1.6.7: Track changes in pdf

2012-11-23 Thread Evert-Jan
Jannick Asmus jannick.news at gmail.com writes:

 
 Jürgen Spitzmüller wrote:
  Jannick Asmus wrote:
  is it possible to indicate changes of the document in track mode in
  the pdf by a vertical bar in the margin area?
 
  With pdflatex output:
 
  \usepackage[pdftex]{changebar}
  \renewcommand{\lyxadded}[3]{{\cbstart\color{lyxadded}{}#3\cbend}}
  \renewcommand{\lyxdeleted}[3]{{\cbstart\color{lyxdeleted}\sout{#3}\cbend}}
 
 Thx for your quick reply!
 
 It works pretty well ... except for changes in headings where some nasty
 bracket error in some section code shows up. I can very well live with
 that, as with these lines in the preamble any floating text can be 
 tracked
 as expected in the pdf.
 
 Best wishes,
 J.
 
 

Hi Jurgen,

I tried the code you supplied by putting it in the latex preamble
of my lyx document. Lyx complained about not finding the proper sty file,
so I figured I needed to install changebar.sty,
and used the MikTex package manager to do that.

Once that hurdle was taken, I got the next error.
My document has a caption as part of a change,
and there seemed to be some bracket mismatch (extra }).
So this seems to be related to the error reported by Jannick.
The headers seem to be doing OK now, I did not get any error in those. 
Should I report the caption error somewhere? Please advise.

After I accepted the change in the caption,
Lyx did not complain anymore, and nice changebars appeared in 
the right margin.

However, it so happens that I use marginal notes in my document,
and they also use the right-hand margin.
The change bars now go straight through the marginal notes. 
Is it possible to use the left-hand margin for the change bars?

Many thanks,

Evert-Jan



Re: AW: LyX 1.6.7: Track changes in pdf

2012-11-23 Thread Jürgen Spitzmüller
Evert-Jan wrote:
 Once that hurdle was taken, I got the next error.
 My document has a caption as part of a change,
 and there seemed to be some bracket mismatch (extra }).
 So this seems to be related to the error reported by Jannick.
 The headers seem to be doing OK now, I did not get any error in those. 
 Should I report the caption error somewhere? Please advise.

Yes, please:
http://www.lyx.org/trac/wiki/BugTrackerHome

Please also provide a small example file showing the error.

 However, it so happens that I use marginal notes in my document,
 and they also use the right-hand margin.
 The change bars now go straight through the marginal notes. 
 Is it possible to use the left-hand margin for the change bars?

Try
\usepackage[pdftex,outerbars]{changebar}

Jürgen


complex renewcommand \cite

2012-11-23 Thread Andreas Paeffgen
I want to get a different \cite command in the document. If i put  
\renewcommand{\cite}{\texorpdfstring{\cite{%}}{} } in the preamble i 
get an emergency stop.


If i use the expandet command in an ERT, it works. See the attached test.lyx

test.lyx
Description: Binary data



Any suggestions what i do wrong? I need only one variable. the last {} 
should be empty all the time.


\texorpdfstring{\cite{Gilbert}}{}
This is the text in ERT and this works.

Andreas

Re: Errors when using apacite for bibliography

2012-11-23 Thread Ray Rashif
On 23 November 2012 02:58, Florian flor...@phpws.org wrote:
 Hi there,

 I would need some help with apacite, as I do not seem to get it working. I
 use LyX 2.0.5 on Windows 7.

Try enabling Default citation style in preferences and then in
preamble save the following:

% Workaround for APA style (must turn off natbib first)
\usepackage{apacite}
\usepackage[authoryear]{natbib}


--
GPG/PGP ID: C0711BF1


Changing from \pmatrix to \matrix

2012-11-23 Thread Fabio Stumbo


I wrote a \pmatrix, then I changed my idea and I want a simple \matrix: 
is there a way to switch from the previous environment to the desired one 
without rewriting or copy/paste the matrix? I have not been able to do it, 
nor to find help on the docs... :-(


Thanks a lot

Fabio


Re: Errors when using apacite for bibliography

2012-11-23 Thread Florian

On Fri, 23 Nov 2012 18:09:30 +0800
 Ray Rashif schivmeis...@gmail.com wrote:

Try enabling Default citation style in preferences and then in
preamble save the following:

% Workaround for APA style (must turn off natbib first)
\usepackage{apacite}
\usepackage[authoryear]{natbib}


Thanks, this seems to resolve the problem.

Best, Florian



Re: AW: LyX 1.6.7: Track changes in pdf

2012-11-23 Thread Evert-Jan
Jannick Asmus jannick.news at gmail.com writes:

 
 Jürgen Spitzmüller wrote:
  Jannick Asmus wrote:
  is it possible to indicate changes of the document in track mode in
  the pdf by a vertical bar in the margin area?
 
  With pdflatex output:
 
  \usepackage[pdftex]{changebar}
  \renewcommand{\lyxadded}[3]{{\cbstart\color{lyxadded}{}#3\cbend}}
  \renewcommand{\lyxdeleted}[3]{{\cbstart\color{lyxdeleted}\sout{#3}\cbend}}
 
 Thx for your quick reply!
 
 It works pretty well ... except for changes in headings where some nasty
 bracket error in some section code shows up. I can very well live with
 that, as with these lines in the preamble any floating text can be 
 tracked
 as expected in the pdf.
 
 Best wishes,
 J.
 
 

Hi Jurgen,

I tried the code you supplied by putting it in the latex preamble
of my lyx document. Lyx complained about not finding the proper sty file,
so I figured I needed to install changebar.sty,
and used the MikTex package manager to do that.

Once that hurdle was taken, I got the next error.
My document has a caption as part of a change,
and there seemed to be some bracket mismatch (extra }).
So this seems to be related to the error reported by Jannick.
The headers seem to be doing OK now, I did not get any error in those. 
Should I report the caption error somewhere? Please advise.

After I accepted the change in the caption,
Lyx did not complain anymore, and nice changebars appeared in 
the right margin.

However, it so happens that I use marginal notes in my document,
and they also use the right-hand margin.
The change bars now go straight through the marginal notes. 
Is it possible to use the left-hand margin for the change bars?

Many thanks,

Evert-Jan



Re: AW: LyX 1.6.7: Track changes in pdf

2012-11-23 Thread Jürgen Spitzmüller
Evert-Jan wrote:
 Once that hurdle was taken, I got the next error.
 My document has a caption as part of a change,
 and there seemed to be some bracket mismatch (extra }).
 So this seems to be related to the error reported by Jannick.
 The headers seem to be doing OK now, I did not get any error in those. 
 Should I report the caption error somewhere? Please advise.

Yes, please:
http://www.lyx.org/trac/wiki/BugTrackerHome

Please also provide a small example file showing the error.

 However, it so happens that I use marginal notes in my document,
 and they also use the right-hand margin.
 The change bars now go straight through the marginal notes. 
 Is it possible to use the left-hand margin for the change bars?

Try
\usepackage[pdftex,outerbars]{changebar}

Jürgen


complex renewcommand \cite

2012-11-23 Thread Andreas Paeffgen
I want to get a different \cite command in the document. If i put  
\renewcommand{\cite}{\texorpdfstring{\cite{%}}{} } in the preamble i 
get an emergency stop.


If i use the expandet command in an ERT, it works. See the attached test.lyx

test.lyx
Description: Binary data



Any suggestions what i do wrong? I need only one variable. the last {} 
should be empty all the time.


\texorpdfstring{\cite{Gilbert}}{}
This is the text in ERT and this works.

Andreas

Re: Errors when using apacite for bibliography

2012-11-23 Thread Ray Rashif
On 23 November 2012 02:58, Florian  wrote:
> Hi there,
>
> I would need some help with apacite, as I do not seem to get it working. I
> use LyX 2.0.5 on Windows 7.

Try enabling Default citation style in preferences and then in
preamble save the following:

% Workaround for APA style (must turn off natbib first)
\usepackage{apacite}
\usepackage[authoryear]{natbib}


--
GPG/PGP ID: C0711BF1


Changing from \pmatrix to \matrix

2012-11-23 Thread Fabio Stumbo


I wrote a \pmatrix, then I changed my idea and I want a simple \matrix: 
is there a way to switch from the previous environment to the desired one 
without rewriting or copy/paste the matrix? I have not been able to do it, 
nor to find help on the docs... :-(


Thanks a lot

Fabio


Re: Errors when using apacite for bibliography

2012-11-23 Thread Florian

On Fri, 23 Nov 2012 18:09:30 +0800
 Ray Rashif  wrote:

Try enabling Default citation style in preferences and then in
preamble save the following:

% Workaround for APA style (must turn off natbib first)
\usepackage{apacite}
\usepackage[authoryear]{natbib}


Thanks, this seems to resolve the problem.

Best, Florian



Re: AW: LyX 1.6.7: Track changes in pdf

2012-11-23 Thread Evert-Jan
Jannick Asmus  gmail.com> writes:

> 
> Jürgen Spitzmüller wrote:
> > Jannick Asmus wrote:
> >> is it possible to indicate changes of the document in track mode in
> >> the pdf by a vertical bar in the margin area?
> >
> > With pdflatex output:
> >
> > \usepackage[pdftex]{changebar}
> > \renewcommand{\lyxadded}[3]{{\cbstart\color{lyxadded}{}#3\cbend}}
> > \renewcommand{\lyxdeleted}[3]{{\cbstart\color{lyxdeleted}\sout{#3}\cbend}}
> 
> Thx for your quick reply!
> 
> It works pretty well ... except for changes in headings where some nasty
> bracket error in some "section" code shows up. I can very well live with
> that, as with these lines in the preamble any floating text can be 
> tracked
> as expected in the pdf.
> 
> Best wishes,
> J.
> 
> 

Hi Jurgen,

I tried the code you supplied by putting it in the "latex preamble"
of my lyx document. Lyx complained about not finding the proper sty file,
so I figured I needed to install changebar.sty,
and used the MikTex package manager to do that.

Once that hurdle was taken, I got the next error.
My document has a caption as part of a change,
and there seemed to be some bracket mismatch (extra }).
So this seems to be related to the error reported by Jannick.
The headers seem to be doing OK now, I did not get any error in those. 
Should I report the caption error somewhere? Please advise.

After I accepted the change in the caption,
Lyx did not complain anymore, and nice changebars appeared in 
the right margin.

However, it so happens that I use marginal notes in my document,
and they also use the right-hand margin.
The change bars now go straight through the marginal notes. 
Is it possible to use the left-hand margin for the change bars?

Many thanks,

Evert-Jan



Re: AW: LyX 1.6.7: Track changes in pdf

2012-11-23 Thread Jürgen Spitzmüller
Evert-Jan wrote:
> Once that hurdle was taken, I got the next error.
> My document has a caption as part of a change,
> and there seemed to be some bracket mismatch (extra }).
> So this seems to be related to the error reported by Jannick.
> The headers seem to be doing OK now, I did not get any error in those. 
> Should I report the caption error somewhere? Please advise.

Yes, please:
http://www.lyx.org/trac/wiki/BugTrackerHome

Please also provide a small example file showing the error.

> However, it so happens that I use marginal notes in my document,
> and they also use the right-hand margin.
> The change bars now go straight through the marginal notes. 
> Is it possible to use the left-hand margin for the change bars?

Try
\usepackage[pdftex,outerbars]{changebar}

Jürgen


complex renewcommand \cite

2012-11-23 Thread Andreas Paeffgen
I want to get a different \cite command in the document. If i put  
\renewcommand{\cite}{\texorpdfstring{\cite{%}}{} } in the preamble i 
get an emergency stop.


If i use the expandet command in an ERT, it works. See the attached test.lyx

test.lyx
Description: Binary data



Any suggestions what i do wrong? I need only one variable. the last {} 
should be empty all the time.


\texorpdfstring{\cite{Gilbert}}{}
This is the text in ERT and this works.

Andreas