Re: Lyx on Retina - works!

2013-07-02 Thread Rainer M Krug
James Sutherland james.sutherl...@utah.edu writes:

 Before I switch to a macports installation of LyX, can someone confirm that
 the fonts show up properly (not blurred) as they do in the binary
 installation?

I *think* they were also blurry, but I mainly looked at the font and
icon sizes. I am not using Macports anymore as I switched to homwbrew,
which unfortunately has no recipe for LyX. 

Why don't you just try it out? Removing macports and all installations
from macports is documented here:

https://www.macports.org/guide/#installing.macports.uninstalling

And it works.

Cheers,

Rainer


 Thanks,
 James



 On Wed, Jun 19, 2013 at 5:14 AM, Rainer M Krug rai...@krugs.de wrote:

 Hi

 I wasn't aware that this is working now, but I installed LyX on a
 Macbook Pro Retina via Macports, and it runs and it is normal size.

 Great.

 Cheers,

 Rainer

 --
 Rainer M. Krug

 email: RMKrugatgmaildotcom

#secure method=pgpmime mode=sign

-- 
Rainer M. Krug

email: RMKrugatgmaildotcom



Multiple citations

2013-07-02 Thread Elena
Hi everybody,

I'm having some troubles with multiple citations in Lyx.

When I have to cite more than one bibliographic note per time, what I see in
the PDF is the first citation extended and the other ones just as the first
author's letter..

For example, if I cite Me et al, 2000; You et al, 2001; Them and al, 2009,
what I get is (Me and al, 2000, Y, T).

Can you help me? 
Tnks! 



Re: Multiple citations

2013-07-02 Thread Liviu Andronic
Hello,


On Tue, Jul 2, 2013 at 3:18 PM, Elena serr...@gmail.com wrote:
 Hi everybody,

 I'm having some troubles with multiple citations in Lyx.

 When I have to cite more than one bibliographic note per time, what I see in
 the PDF is the first citation extended and the other ones just as the first
 author's letter..

 For example, if I cite Me et al, 2000; You et al, 2001; Them and al, 2009,
 what I get is (Me and al, 2000, Y, T).

Could you provide us with a very small example of a LyX file and .bib
file that reproduce the issue? This way we can better investigate what
goes wrong.

Liviu


Re: Multiple citations

2013-07-02 Thread Elena Serioli
Ok, I created a little example, with a general father document, a
Chapter 1 and a Bibliography..

If you create a pdf of the general document I'll see that the second
citation isn't extended..


2013/7/2 Liviu Andronic landronim...@gmail.com

 Hello,


 On Tue, Jul 2, 2013 at 3:18 PM, Elena serr...@gmail.com wrote:
  Hi everybody,
 
  I'm having some troubles with multiple citations in Lyx.
 
  When I have to cite more than one bibliographic note per time, what I
 see in
  the PDF is the first citation extended and the other ones just as the
 first
  author's letter..
 
  For example, if I cite Me et al, 2000; You et al, 2001; Them and al,
 2009,
  what I get is (Me and al, 2000, Y, T).
 
 Could you provide us with a very small example of a LyX file and .bib
 file that reproduce the issue? This way we can better investigate what
 goes wrong.

 Liviu



example bibliogr.lyx
Description: Binary data


example chapt1.lyx
Description: Binary data


example general document.lyx
Description: Binary data


KOMA Script Letter 2: Continuation Page Headings

2013-07-02 Thread Rich Shepard

  In multipage business letters here in the US all continuation pages should
have a header in the upper left of the page containing

Addressee's Name
Date as shown on page 1
Page number

  While I thought that the KOMA-Script Letter 2 configuration I use had this
capability and how to do this was worked out years ago I don't have a record
of how to do this in my saved messages and I am not finding the solution in
my Web searches.

  Please point me to a resource that explains how to add this continuation
page header.

Thanks in advance,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



Re: psfragfig

2013-07-02 Thread Michael Bach

Hi Julien,

On 5/19/13 11:55 PM, Julien Rioux wrote:

On 28/10/2012 6:01 AM, Michael Bach wrote:

Ok, although I did not solve this in terms of LyX configuration: Just a
quick notice for sake of completeness and in case someone is plagued by
this issue and might be happy to find this.

On 10/26/12 12:29 PM, Michael Bach wrote:

Now when I try to compile the document, I see the line:
=== pstool: begin processing ===
Error exporting to format
pdf2/Users/Shared/LyX/lyx-2.0.4/src/support/Systemcall.cpp(273):
Systemcall: 'pdflatex -synctex=-1 -shell-escape  skriptum.tex'
finished with exit code 1

in the messages pane and get the error:
I can't write on file `figures/EulerExplizit-pstool.tex'.

Now I assume that the external command from pstool is run inside the
temporary LyX directory and it thus cannot find the figures/ folder to
write the .tex file to...


AFAIK, LyX does not copy the .eps and .tex psfrag files to the temporary
directory, because it does not parse the ERT for the psfragfig macro. I
decided to reference the files under figures/ directly with absolute
paths to the source dir. This does work via openout_any = a in
texmf.cnf but then compiling foreign documents does not feel secure
anymore...

I read the LyX Customization manual under 'Copier' for a better
solution, but could not find a reference to the LyX temporary directory
and have no clue how to best solve this in terms of LyX policy.

Michael




The way I use psfrag is to insert the .eps into LyX using the standard
way from the Insert menu, and put the psfrag code in ERT in the LyX
document. This way, LyX handles the copying of the .eps file correctly.
You obviously need the correct \usepackage line added to your preamble
in document settings.



Thanks for your comment. I somehow missed your answer after all this time...

I get how you mentioned the inclusion of the .eps file - I remember 
trying that initially. I also assume you mean `\usepackage{pstool}' as 
correct preamble line(?). However, I do not know what you mean by 
'psfrag code'.


Am I missing something?

Michael



Re: psfragfig

2013-07-02 Thread Julien Rioux
On Tue, Jul 2, 2013 at 2:50 PM, Michael Bach pha...@gmail.com wrote:

 Hi Julien,

 On 5/19/13 11:55 PM, Julien Rioux wrote:

 On 28/10/2012 6:01 AM, Michael Bach wrote:

 Ok, although I did not solve this in terms of LyX configuration: Just a
 quick notice for sake of completeness and in case someone is plagued by
 this issue and might be happy to find this.

 On 10/26/12 12:29 PM, Michael Bach wrote:

 Now when I try to compile the document, I see the line:
 === pstool: begin processing ===
 Error exporting to format
 pdf2/Users/Shared/LyX/lyx-2.0.**4/src/support/Systemcall.cpp(**273):
 Systemcall: 'pdflatex -synctex=-1 -shell-escape  skriptum.tex'
 finished with exit code 1

 in the messages pane and get the error:
 I can't write on file `figures/EulerExplizit-pstool.**tex'.

 Now I assume that the external command from pstool is run inside the
 temporary LyX directory and it thus cannot find the figures/ folder to
 write the .tex file to...

  AFAIK, LyX does not copy the .eps and .tex psfrag files to the
 temporary
 directory, because it does not parse the ERT for the psfragfig macro. I
 decided to reference the files under figures/ directly with absolute
 paths to the source dir. This does work via openout_any = a in
 texmf.cnf but then compiling foreign documents does not feel secure
 anymore...

 I read the LyX Customization manual under 'Copier' for a better
 solution, but could not find a reference to the LyX temporary directory
 and have no clue how to best solve this in terms of LyX policy.

 Michael



 The way I use psfrag is to insert the .eps into LyX using the standard
 way from the Insert menu, and put the psfrag code in ERT in the LyX
 document. This way, LyX handles the copying of the .eps file correctly.
 You obviously need the correct \usepackage line added to your preamble
 in document settings.


 Thanks for your comment. I somehow missed your answer after all this
 time...


Well, it took me quite some time to answer in the first place...


 I get how you mentioned the inclusion of the .eps file - I remember trying
 that initially. I also assume you mean `\usepackage{pstool}' as correct
 preamble line(?). However, I do not know what you mean by 'psfrag code'.


Actually, I just use \usepackage{psfrag} directly (\usepackage{pstool}
isn't necessary for pdf output via ps2pdf). The psfrag code that I refer to
is the content of the .tex file generated by matlabfrag alongside the .eps
file. I would be copy-pasting the content of the .tex file into an ERT, but
you could also input the .tex file via InsertFileChild Doc. What this
accomplishes corresponds to what is described at the beginning of section
4.2 of the matlabfrag userguide.pdf manual. If you need to use pdflatex,
you'll need the \usepackage{pstool} instead, but then I don't know how to
help you!

Hope this helps a bit more,
Cheers,
Julien


 Am I missing something?

 Michael




Change all instances of an environment

2013-07-02 Thread Sykledust
I just discovered the 'program listing' inset after writing
 a quite large document containing a lot of programming code.
For this I just used a typewriter font, and for blocks of code 
I used the Quote environment to have it indented.
I would now like to change all instances of the Quote 
paragraphs to program listing floats and all other instances 
of typewriter font use to inline program listings.
I tried to use advanced find  replace with the 
regular expression .* but without luck.

All suggestions are appreciated



Re: Multiple citations

2013-07-02 Thread Julien Rioux

On 02/07/2013 11:17 AM, Elena Serioli wrote:

Ok, I created a little example, with a general father document, a
Chapter 1 and a Bibliography..

If you create a pdf of the general document I'll see that the second
citation isn't extended..


2013/7/2 Liviu Andronic landronim...@gmail.com
mailto:landronim...@gmail..com

Hello,


On Tue, Jul 2, 2013 at 3:18 PM, Elena serr...@gmail.com
mailto:serr...@gmail.com wrote:
  Hi everybody,
 
  I'm having some troubles with multiple citations in Lyx.
 
  When I have to cite more than one bibliographic note per time,
what I see in
  the PDF is the first citation extended and the other ones just as
the first
  author's letter..
 
  For example, if I cite Me et al, 2000; You et al, 2001; Them and
al, 2009,
  what I get is (Me and al, 2000, Y, T).
 
Could you provide us with a very small example of a LyX file and .bib
file that reproduce the issue? This way we can better investigate what
goes wrong.

Liviu




Hi,
Thanks for providing a small example. The problem is that you need to 
define the label correctly, according to the natbib style, in exactly 
the form Authors(2013). See the attached, corrected and simplified 
example.


Cheers,
Julien


example corrected.lyx
Description: application/lyx


Re: Change all instances of an environment

2013-07-02 Thread Scott Kostyshak
On Tue, Jul 2, 2013 at 5:34 PM, Sykledust sykled...@gmail.com wrote:
 I just discovered the 'program listing' inset after writing
  a quite large document containing a lot of programming code.
 For this I just used a typewriter font, and for blocks of code
 I used the Quote environment to have it indented.
 I would now like to change all instances of the Quote
 paragraphs to program listing floats and all other instances
 of typewriter font use to inline program listings.
 I tried to use advanced find  replace with the
 regular expression .* but without luck.

 All suggestions are appreciated

You'd probably have better luck just doing a find replace on the .lyx
file directly. Make one change manually in LyX to see what you want to
change to and then sed the rest. Of course make backups and be
careful.

Scott


Re: KOMA Script Letter 2: Continuation Page Headings

2013-07-02 Thread Julien Rioux

On 02/07/2013 11:17 AM, Rich Shepard wrote:

   In multipage business letters here in the US all continuation pages
should
have a header in the upper left of the page containing

Addressee's Name
Date as shown on page 1
Page number

   While I thought that the KOMA-Script Letter 2 configuration I use had
this
capability and how to do this was worked out years ago I don't have a
record
of how to do this in my saved messages and I am not finding the solution in
my Web searches.

   Please point me to a resource that explains how to add this continuation
page header.

Thanks in advance,

Rich



Hi Rich,

I could find this thread about it, where it seems that a solution was 
reached: 
http://lyx.475766.n2.nabble.com/Koma-Letter-2-Components-Sequence-td477936.html


Cheers,
Julien



Re: Change all instances of an environment

2013-07-02 Thread Sykledust
Scott Kostyshak skostysh at princeton.edu writes:

 
 On Tue, Jul 2, 2013 at 5:34 PM, Sykledust sykledust at gmail.com wrote:
  I just discovered the 'program listing' inset after writing
   a quite large document containing a lot of programming code.
  For this I just used a typewriter font, and for blocks of code
  I used the Quote environment to have it indented.
  I would now like to change all instances of the Quote
  paragraphs to program listing floats and all other instances
  of typewriter font use to inline program listings.
  I tried to use advanced find  replace with the
  regular expression .* but without luck.
 
  All suggestions are appreciated
 
 You'd probably have better luck just doing a find replace on the .lyx
 file directly. Make one change manually in LyX to see what you want to
 change to and then sed the rest. Of course make backups and be
 careful.
 
 Scott
 
 

In fact I had a go with that also, but it actually seems simpler 
to manually do the formatting Inside LyX since I have to replace 
multiple sequential instances of
\begin_layout Quote 
Code here
\end_layout
with a single program listing inset... 
For the non-block code it could perhaps be a feasible approach, 
but then I thought I'd ask here first just to make sure that there 
isn't a sollution similar to how sections can be promoted and 
demoted through the outline.



Re: KOMA Script Letter 2: Continuation Page Headings

2013-07-02 Thread Rich Shepard

On Tue, 2 Jul 2013, Julien Rioux wrote:

I could find this thread about it, where it seems that a solution was 
reached: 
http://lyx.475766.n2.nabble.com/Koma-Letter-2-Components-Sequence-td477936.html


Julien,

  Thanks very much! I thought I had solved this before but I did not find
that stored tread in my Web searches.

  The changes in LyX over the past 5 years means I need to modify the
solution that worked then. Now, the 'toname' comes out right justified
rather than left justified but the date and page number are on the left.
I'll work on fixing this over the next couple of days.

Much appreciated,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



Re: Change all instances of an environment

2013-07-02 Thread Steve Litt
On Tue, 2 Jul 2013 21:34:46 + (UTC)
Sykledust sykled...@gmail.com wrote:

 I just discovered the 'program listing' inset after writing
  a quite large document containing a lot of programming code.
 For this I just used a typewriter font, and for blocks of code 
 I used the Quote environment to have it indented.
 I would now like to change all instances of the Quote 
 paragraphs to program listing floats and all other instances 
 of typewriter font use to inline program listings.
 I tried to use advanced find  replace with the 
 regular expression .* but without luck.

The preceding is perhaps the most confusing sentence I've ever read.
But assuming you want to change the appearance of all instances of the
Quote environment, you can revise the appearance of Quote within a
layout file.

See http://www.troubleshooters.com/linux/lyx/index.htm

Thanks,

SteveT

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


Re: psfragfig

2013-07-02 Thread Michael Bach

On 7/2/13 11:44 PM, Julien Rioux wrote:

On Tue, Jul 2, 2013 at 2:50 PM, Michael Bach pha...@gmail.com
mailto:pha...@gmail.com wrote:

Hi Julien,

On 5/19/13 11:55 PM, Julien Rioux wrote:

On 28/10/2012 6:01 AM, Michael Bach wrote:

Ok, although I did not solve this in terms of LyX
configuration: Just a
quick notice for sake of completeness and in case someone is
plagued by
this issue and might be happy to find this.

On 10/26/12 12:29 PM, Michael Bach wrote:

Now when I try to compile the document, I see the line:
=== pstool: begin processing ===
Error exporting to format

pdf2/Users/Shared/LyX/lyx-2.0.__4/src/support/Systemcall.cpp(__273):
Systemcall: 'pdflatex -synctex=-1 -shell-escape
  skriptum.tex'
finished with exit code 1

in the messages pane and get the error:
I can't write on file `figures/EulerExplizit-pstool.__tex'.

Now I assume that the external command from pstool is
run inside the
temporary LyX directory and it thus cannot find the
figures/ folder to
write the .tex file to...

AFAIK, LyX does not copy the .eps and .tex psfrag files to
the temporary
directory, because it does not parse the ERT for the
psfragfig macro. I
decided to reference the files under figures/ directly with
absolute
paths to the source dir. This does work via openout_any = a in
texmf.cnf but then compiling foreign documents does not feel
secure
anymore...

I read the LyX Customization manual under 'Copier' for a
better
solution, but could not find a reference to the LyX
temporary directory
and have no clue how to best solve this in terms of LyX policy.

Michael



The way I use psfrag is to insert the .eps into LyX using the
standard
way from the Insert menu, and put the psfrag code in ERT in the LyX
document. This way, LyX handles the copying of the .eps file
correctly.
You obviously need the correct \usepackage line added to your
preamble
in document settings.


Thanks for your comment. I somehow missed your answer after all this
time...


Well, it took me quite some time to answer in the first place...

I get how you mentioned the inclusion of the .eps file - I remember
trying that initially. I also assume you mean `\usepackage{pstool}'
as correct preamble line(?). However, I do not know what you mean by
'psfrag code'.


Actually, I just use \usepackage{psfrag} directly (\usepackage{pstool}
isn't necessary for pdf output via ps2pdf). The psfrag code that I refer
to is the content of the .tex file generated by matlabfrag alongside the
.eps file.


I read some more about the technologies and packages involved. I did not 
fully grasp the bare psfrag since I used the pstools psfragfig magic 
before, thanks for explanation.



I would be copy-pasting the content of the .tex file into an
ERT, but you could also input the .tex file via InsertFileChild Doc.


I tried this \input approach, placed before/after the graphics include 
but it did not work with pdflatex.



What this accomplishes corresponds to what is described at the beginning
of section 4.2 of the matlabfrag userguide.pdf manual. If you need to
use pdflatex, you'll need the \usepackage{pstool} instead, but then I
don't know how to help you!



I then tried to use the psfrag together with auto-pst-pdf to get to pdf, 
but pdftex process runs with 100% CPU for 10 minutes and then dies.


So I am back to pstool with absolute paths and an openany_out=a 
pdflatex ... command. This ERT approach is not as neat (e.g. no 
preview!) as the other figure handling in LyX, but at least it works.


Thanks for your thoughts on this!

Michael





Re: Lyx on Retina - works!

2013-07-02 Thread Rainer M Krug
James Sutherland james.sutherl...@utah.edu writes:

 Before I switch to a macports installation of LyX, can someone confirm that
 the fonts show up properly (not blurred) as they do in the binary
 installation?

I *think* they were also blurry, but I mainly looked at the font and
icon sizes. I am not using Macports anymore as I switched to homwbrew,
which unfortunately has no recipe for LyX. 

Why don't you just try it out? Removing macports and all installations
from macports is documented here:

https://www.macports.org/guide/#installing.macports.uninstalling

And it works.

Cheers,

Rainer


 Thanks,
 James



 On Wed, Jun 19, 2013 at 5:14 AM, Rainer M Krug rai...@krugs.de wrote:

 Hi

 I wasn't aware that this is working now, but I installed LyX on a
 Macbook Pro Retina via Macports, and it runs and it is normal size.

 Great.

 Cheers,

 Rainer

 --
 Rainer M. Krug

 email: RMKrugatgmaildotcom

#secure method=pgpmime mode=sign

-- 
Rainer M. Krug

email: RMKrugatgmaildotcom



Multiple citations

2013-07-02 Thread Elena
Hi everybody,

I'm having some troubles with multiple citations in Lyx.

When I have to cite more than one bibliographic note per time, what I see in
the PDF is the first citation extended and the other ones just as the first
author's letter..

For example, if I cite Me et al, 2000; You et al, 2001; Them and al, 2009,
what I get is (Me and al, 2000, Y, T).

Can you help me? 
Tnks! 



Re: Multiple citations

2013-07-02 Thread Liviu Andronic
Hello,


On Tue, Jul 2, 2013 at 3:18 PM, Elena serr...@gmail.com wrote:
 Hi everybody,

 I'm having some troubles with multiple citations in Lyx.

 When I have to cite more than one bibliographic note per time, what I see in
 the PDF is the first citation extended and the other ones just as the first
 author's letter..

 For example, if I cite Me et al, 2000; You et al, 2001; Them and al, 2009,
 what I get is (Me and al, 2000, Y, T).

Could you provide us with a very small example of a LyX file and .bib
file that reproduce the issue? This way we can better investigate what
goes wrong.

Liviu


Re: Multiple citations

2013-07-02 Thread Elena Serioli
Ok, I created a little example, with a general father document, a
Chapter 1 and a Bibliography..

If you create a pdf of the general document I'll see that the second
citation isn't extended..


2013/7/2 Liviu Andronic landronim...@gmail.com

 Hello,


 On Tue, Jul 2, 2013 at 3:18 PM, Elena serr...@gmail.com wrote:
  Hi everybody,
 
  I'm having some troubles with multiple citations in Lyx.
 
  When I have to cite more than one bibliographic note per time, what I
 see in
  the PDF is the first citation extended and the other ones just as the
 first
  author's letter..
 
  For example, if I cite Me et al, 2000; You et al, 2001; Them and al,
 2009,
  what I get is (Me and al, 2000, Y, T).
 
 Could you provide us with a very small example of a LyX file and .bib
 file that reproduce the issue? This way we can better investigate what
 goes wrong.

 Liviu



example bibliogr.lyx
Description: Binary data


example chapt1.lyx
Description: Binary data


example general document.lyx
Description: Binary data


KOMA Script Letter 2: Continuation Page Headings

2013-07-02 Thread Rich Shepard

  In multipage business letters here in the US all continuation pages should
have a header in the upper left of the page containing

Addressee's Name
Date as shown on page 1
Page number

  While I thought that the KOMA-Script Letter 2 configuration I use had this
capability and how to do this was worked out years ago I don't have a record
of how to do this in my saved messages and I am not finding the solution in
my Web searches.

  Please point me to a resource that explains how to add this continuation
page header.

Thanks in advance,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



Re: psfragfig

2013-07-02 Thread Michael Bach

Hi Julien,

On 5/19/13 11:55 PM, Julien Rioux wrote:

On 28/10/2012 6:01 AM, Michael Bach wrote:

Ok, although I did not solve this in terms of LyX configuration: Just a
quick notice for sake of completeness and in case someone is plagued by
this issue and might be happy to find this.

On 10/26/12 12:29 PM, Michael Bach wrote:

Now when I try to compile the document, I see the line:
=== pstool: begin processing ===
Error exporting to format
pdf2/Users/Shared/LyX/lyx-2.0.4/src/support/Systemcall.cpp(273):
Systemcall: 'pdflatex -synctex=-1 -shell-escape  skriptum.tex'
finished with exit code 1

in the messages pane and get the error:
I can't write on file `figures/EulerExplizit-pstool.tex'.

Now I assume that the external command from pstool is run inside the
temporary LyX directory and it thus cannot find the figures/ folder to
write the .tex file to...


AFAIK, LyX does not copy the .eps and .tex psfrag files to the temporary
directory, because it does not parse the ERT for the psfragfig macro. I
decided to reference the files under figures/ directly with absolute
paths to the source dir. This does work via openout_any = a in
texmf.cnf but then compiling foreign documents does not feel secure
anymore...

I read the LyX Customization manual under 'Copier' for a better
solution, but could not find a reference to the LyX temporary directory
and have no clue how to best solve this in terms of LyX policy.

Michael




The way I use psfrag is to insert the .eps into LyX using the standard
way from the Insert menu, and put the psfrag code in ERT in the LyX
document. This way, LyX handles the copying of the .eps file correctly.
You obviously need the correct \usepackage line added to your preamble
in document settings.



Thanks for your comment. I somehow missed your answer after all this time...

I get how you mentioned the inclusion of the .eps file - I remember 
trying that initially. I also assume you mean `\usepackage{pstool}' as 
correct preamble line(?). However, I do not know what you mean by 
'psfrag code'.


Am I missing something?

Michael



Re: psfragfig

2013-07-02 Thread Julien Rioux
On Tue, Jul 2, 2013 at 2:50 PM, Michael Bach pha...@gmail.com wrote:

 Hi Julien,

 On 5/19/13 11:55 PM, Julien Rioux wrote:

 On 28/10/2012 6:01 AM, Michael Bach wrote:

 Ok, although I did not solve this in terms of LyX configuration: Just a
 quick notice for sake of completeness and in case someone is plagued by
 this issue and might be happy to find this.

 On 10/26/12 12:29 PM, Michael Bach wrote:

 Now when I try to compile the document, I see the line:
 === pstool: begin processing ===
 Error exporting to format
 pdf2/Users/Shared/LyX/lyx-2.0.**4/src/support/Systemcall.cpp(**273):
 Systemcall: 'pdflatex -synctex=-1 -shell-escape  skriptum.tex'
 finished with exit code 1

 in the messages pane and get the error:
 I can't write on file `figures/EulerExplizit-pstool.**tex'.

 Now I assume that the external command from pstool is run inside the
 temporary LyX directory and it thus cannot find the figures/ folder to
 write the .tex file to...

  AFAIK, LyX does not copy the .eps and .tex psfrag files to the
 temporary
 directory, because it does not parse the ERT for the psfragfig macro. I
 decided to reference the files under figures/ directly with absolute
 paths to the source dir. This does work via openout_any = a in
 texmf.cnf but then compiling foreign documents does not feel secure
 anymore...

 I read the LyX Customization manual under 'Copier' for a better
 solution, but could not find a reference to the LyX temporary directory
 and have no clue how to best solve this in terms of LyX policy.

 Michael



 The way I use psfrag is to insert the .eps into LyX using the standard
 way from the Insert menu, and put the psfrag code in ERT in the LyX
 document. This way, LyX handles the copying of the .eps file correctly.
 You obviously need the correct \usepackage line added to your preamble
 in document settings.


 Thanks for your comment. I somehow missed your answer after all this
 time...


Well, it took me quite some time to answer in the first place...


 I get how you mentioned the inclusion of the .eps file - I remember trying
 that initially. I also assume you mean `\usepackage{pstool}' as correct
 preamble line(?). However, I do not know what you mean by 'psfrag code'.


Actually, I just use \usepackage{psfrag} directly (\usepackage{pstool}
isn't necessary for pdf output via ps2pdf). The psfrag code that I refer to
is the content of the .tex file generated by matlabfrag alongside the .eps
file. I would be copy-pasting the content of the .tex file into an ERT, but
you could also input the .tex file via InsertFileChild Doc. What this
accomplishes corresponds to what is described at the beginning of section
4.2 of the matlabfrag userguide.pdf manual. If you need to use pdflatex,
you'll need the \usepackage{pstool} instead, but then I don't know how to
help you!

Hope this helps a bit more,
Cheers,
Julien


 Am I missing something?

 Michael




Change all instances of an environment

2013-07-02 Thread Sykledust
I just discovered the 'program listing' inset after writing
 a quite large document containing a lot of programming code.
For this I just used a typewriter font, and for blocks of code 
I used the Quote environment to have it indented.
I would now like to change all instances of the Quote 
paragraphs to program listing floats and all other instances 
of typewriter font use to inline program listings.
I tried to use advanced find  replace with the 
regular expression .* but without luck.

All suggestions are appreciated



Re: Multiple citations

2013-07-02 Thread Julien Rioux

On 02/07/2013 11:17 AM, Elena Serioli wrote:

Ok, I created a little example, with a general father document, a
Chapter 1 and a Bibliography..

If you create a pdf of the general document I'll see that the second
citation isn't extended..


2013/7/2 Liviu Andronic landronim...@gmail.com
mailto:landronim...@gmail..com

Hello,


On Tue, Jul 2, 2013 at 3:18 PM, Elena serr...@gmail.com
mailto:serr...@gmail.com wrote:
  Hi everybody,
 
  I'm having some troubles with multiple citations in Lyx.
 
  When I have to cite more than one bibliographic note per time,
what I see in
  the PDF is the first citation extended and the other ones just as
the first
  author's letter..
 
  For example, if I cite Me et al, 2000; You et al, 2001; Them and
al, 2009,
  what I get is (Me and al, 2000, Y, T).
 
Could you provide us with a very small example of a LyX file and .bib
file that reproduce the issue? This way we can better investigate what
goes wrong.

Liviu




Hi,
Thanks for providing a small example. The problem is that you need to 
define the label correctly, according to the natbib style, in exactly 
the form Authors(2013). See the attached, corrected and simplified 
example.


Cheers,
Julien


example corrected.lyx
Description: application/lyx


Re: Change all instances of an environment

2013-07-02 Thread Scott Kostyshak
On Tue, Jul 2, 2013 at 5:34 PM, Sykledust sykled...@gmail.com wrote:
 I just discovered the 'program listing' inset after writing
  a quite large document containing a lot of programming code.
 For this I just used a typewriter font, and for blocks of code
 I used the Quote environment to have it indented.
 I would now like to change all instances of the Quote
 paragraphs to program listing floats and all other instances
 of typewriter font use to inline program listings.
 I tried to use advanced find  replace with the
 regular expression .* but without luck.

 All suggestions are appreciated

You'd probably have better luck just doing a find replace on the .lyx
file directly. Make one change manually in LyX to see what you want to
change to and then sed the rest. Of course make backups and be
careful.

Scott


Re: KOMA Script Letter 2: Continuation Page Headings

2013-07-02 Thread Julien Rioux

On 02/07/2013 11:17 AM, Rich Shepard wrote:

   In multipage business letters here in the US all continuation pages
should
have a header in the upper left of the page containing

Addressee's Name
Date as shown on page 1
Page number

   While I thought that the KOMA-Script Letter 2 configuration I use had
this
capability and how to do this was worked out years ago I don't have a
record
of how to do this in my saved messages and I am not finding the solution in
my Web searches.

   Please point me to a resource that explains how to add this continuation
page header.

Thanks in advance,

Rich



Hi Rich,

I could find this thread about it, where it seems that a solution was 
reached: 
http://lyx.475766.n2.nabble.com/Koma-Letter-2-Components-Sequence-td477936.html


Cheers,
Julien



Re: Change all instances of an environment

2013-07-02 Thread Sykledust
Scott Kostyshak skostysh at princeton.edu writes:

 
 On Tue, Jul 2, 2013 at 5:34 PM, Sykledust sykledust at gmail.com wrote:
  I just discovered the 'program listing' inset after writing
   a quite large document containing a lot of programming code.
  For this I just used a typewriter font, and for blocks of code
  I used the Quote environment to have it indented.
  I would now like to change all instances of the Quote
  paragraphs to program listing floats and all other instances
  of typewriter font use to inline program listings.
  I tried to use advanced find  replace with the
  regular expression .* but without luck.
 
  All suggestions are appreciated
 
 You'd probably have better luck just doing a find replace on the .lyx
 file directly. Make one change manually in LyX to see what you want to
 change to and then sed the rest. Of course make backups and be
 careful.
 
 Scott
 
 

In fact I had a go with that also, but it actually seems simpler 
to manually do the formatting Inside LyX since I have to replace 
multiple sequential instances of
\begin_layout Quote 
Code here
\end_layout
with a single program listing inset... 
For the non-block code it could perhaps be a feasible approach, 
but then I thought I'd ask here first just to make sure that there 
isn't a sollution similar to how sections can be promoted and 
demoted through the outline.



Re: KOMA Script Letter 2: Continuation Page Headings

2013-07-02 Thread Rich Shepard

On Tue, 2 Jul 2013, Julien Rioux wrote:

I could find this thread about it, where it seems that a solution was 
reached: 
http://lyx.475766.n2.nabble.com/Koma-Letter-2-Components-Sequence-td477936.html


Julien,

  Thanks very much! I thought I had solved this before but I did not find
that stored tread in my Web searches.

  The changes in LyX over the past 5 years means I need to modify the
solution that worked then. Now, the 'toname' comes out right justified
rather than left justified but the date and page number are on the left.
I'll work on fixing this over the next couple of days.

Much appreciated,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
http://www.appl-ecosys.com Voice: 503-667-4517  Fax: 503-667-8863



Re: Change all instances of an environment

2013-07-02 Thread Steve Litt
On Tue, 2 Jul 2013 21:34:46 + (UTC)
Sykledust sykled...@gmail.com wrote:

 I just discovered the 'program listing' inset after writing
  a quite large document containing a lot of programming code.
 For this I just used a typewriter font, and for blocks of code 
 I used the Quote environment to have it indented.
 I would now like to change all instances of the Quote 
 paragraphs to program listing floats and all other instances 
 of typewriter font use to inline program listings.
 I tried to use advanced find  replace with the 
 regular expression .* but without luck.

The preceding is perhaps the most confusing sentence I've ever read.
But assuming you want to change the appearance of all instances of the
Quote environment, you can revise the appearance of Quote within a
layout file.

See http://www.troubleshooters.com/linux/lyx/index.htm

Thanks,

SteveT

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


Re: psfragfig

2013-07-02 Thread Michael Bach

On 7/2/13 11:44 PM, Julien Rioux wrote:

On Tue, Jul 2, 2013 at 2:50 PM, Michael Bach pha...@gmail.com
mailto:pha...@gmail.com wrote:

Hi Julien,

On 5/19/13 11:55 PM, Julien Rioux wrote:

On 28/10/2012 6:01 AM, Michael Bach wrote:

Ok, although I did not solve this in terms of LyX
configuration: Just a
quick notice for sake of completeness and in case someone is
plagued by
this issue and might be happy to find this.

On 10/26/12 12:29 PM, Michael Bach wrote:

Now when I try to compile the document, I see the line:
=== pstool: begin processing ===
Error exporting to format

pdf2/Users/Shared/LyX/lyx-2.0.__4/src/support/Systemcall.cpp(__273):
Systemcall: 'pdflatex -synctex=-1 -shell-escape
  skriptum.tex'
finished with exit code 1

in the messages pane and get the error:
I can't write on file `figures/EulerExplizit-pstool.__tex'.

Now I assume that the external command from pstool is
run inside the
temporary LyX directory and it thus cannot find the
figures/ folder to
write the .tex file to...

AFAIK, LyX does not copy the .eps and .tex psfrag files to
the temporary
directory, because it does not parse the ERT for the
psfragfig macro. I
decided to reference the files under figures/ directly with
absolute
paths to the source dir. This does work via openout_any = a in
texmf.cnf but then compiling foreign documents does not feel
secure
anymore...

I read the LyX Customization manual under 'Copier' for a
better
solution, but could not find a reference to the LyX
temporary directory
and have no clue how to best solve this in terms of LyX policy.

Michael



The way I use psfrag is to insert the .eps into LyX using the
standard
way from the Insert menu, and put the psfrag code in ERT in the LyX
document. This way, LyX handles the copying of the .eps file
correctly.
You obviously need the correct \usepackage line added to your
preamble
in document settings.


Thanks for your comment. I somehow missed your answer after all this
time...


Well, it took me quite some time to answer in the first place...

I get how you mentioned the inclusion of the .eps file - I remember
trying that initially. I also assume you mean `\usepackage{pstool}'
as correct preamble line(?). However, I do not know what you mean by
'psfrag code'.


Actually, I just use \usepackage{psfrag} directly (\usepackage{pstool}
isn't necessary for pdf output via ps2pdf). The psfrag code that I refer
to is the content of the .tex file generated by matlabfrag alongside the
.eps file.


I read some more about the technologies and packages involved. I did not 
fully grasp the bare psfrag since I used the pstools psfragfig magic 
before, thanks for explanation.



I would be copy-pasting the content of the .tex file into an
ERT, but you could also input the .tex file via InsertFileChild Doc.


I tried this \input approach, placed before/after the graphics include 
but it did not work with pdflatex.



What this accomplishes corresponds to what is described at the beginning
of section 4.2 of the matlabfrag userguide.pdf manual. If you need to
use pdflatex, you'll need the \usepackage{pstool} instead, but then I
don't know how to help you!



I then tried to use the psfrag together with auto-pst-pdf to get to pdf, 
but pdftex process runs with 100% CPU for 10 minutes and then dies.


So I am back to pstool with absolute paths and an openany_out=a 
pdflatex ... command. This ERT approach is not as neat (e.g. no 
preview!) as the other figure handling in LyX, but at least it works.


Thanks for your thoughts on this!

Michael





Re: Lyx on Retina - works!

2013-07-02 Thread Rainer M Krug
James Sutherland  writes:

> Before I switch to a macports installation of LyX, can someone confirm that
> the fonts show up properly (not blurred) as they do in the binary
> installation?

I *think* they were also blurry, but I mainly looked at the font and
icon sizes. I am not using Macports anymore as I switched to homwbrew,
which unfortunately has no recipe for LyX. 

Why don't you just try it out? Removing macports and all installations
from macports is documented here:

https://www.macports.org/guide/#installing.macports.uninstalling

And it works.

Cheers,

Rainer


> Thanks,
> James
>
>
>
> On Wed, Jun 19, 2013 at 5:14 AM, Rainer M Krug  wrote:
>
>> Hi
>>
>> I wasn't aware that this is working now, but I installed LyX on a
>> Macbook Pro Retina via Macports, and it runs and it is normal size.
>>
>> Great.
>>
>> Cheers,
>>
>> Rainer
>>
>> --
>> Rainer M. Krug
>>
>> email: RMKruggmailcom
>>
<#secure method=pgpmime mode=sign>

-- 
Rainer M. Krug

email: RMKruggmailcom



Multiple citations

2013-07-02 Thread Elena
Hi everybody,

I'm having some troubles with multiple citations in Lyx.

When I have to cite more than one bibliographic note per time, what I see in
the PDF is the first citation extended and the other ones just as the first
author's letter..

For example, if I cite Me et al, 2000; You et al, 2001; Them and al, 2009,
what I get is (Me and al, 2000, Y, T).

Can you help me? 
Tnks! 



Re: Multiple citations

2013-07-02 Thread Liviu Andronic
Hello,


On Tue, Jul 2, 2013 at 3:18 PM, Elena  wrote:
> Hi everybody,
>
> I'm having some troubles with multiple citations in Lyx.
>
> When I have to cite more than one bibliographic note per time, what I see in
> the PDF is the first citation extended and the other ones just as the first
> author's letter..
>
> For example, if I cite Me et al, 2000; You et al, 2001; Them and al, 2009,
> what I get is (Me and al, 2000, Y, T).
>
Could you provide us with a very small example of a LyX file and .bib
file that reproduce the issue? This way we can better investigate what
goes wrong.

Liviu


Re: Multiple citations

2013-07-02 Thread Elena Serioli
Ok, I created a little example, with a general "father" document, a
"Chapter 1" and a Bibliography..

If you create a pdf of the general document I'll see that the second
citation isn't extended..


2013/7/2 Liviu Andronic 

> Hello,
>
>
> On Tue, Jul 2, 2013 at 3:18 PM, Elena  wrote:
> > Hi everybody,
> >
> > I'm having some troubles with multiple citations in Lyx.
> >
> > When I have to cite more than one bibliographic note per time, what I
> see in
> > the PDF is the first citation extended and the other ones just as the
> first
> > author's letter..
> >
> > For example, if I cite Me et al, 2000; You et al, 2001; Them and al,
> 2009,
> > what I get is (Me and al, 2000, Y, T).
> >
> Could you provide us with a very small example of a LyX file and .bib
> file that reproduce the issue? This way we can better investigate what
> goes wrong.
>
> Liviu
>


example bibliogr.lyx
Description: Binary data


example chapt1.lyx
Description: Binary data


example general document.lyx
Description: Binary data


KOMA Script Letter 2: Continuation Page Headings

2013-07-02 Thread Rich Shepard

  In multipage business letters here in the US all continuation pages should
have a header in the upper left of the page containing

Addressee's Name
Date as shown on page 1
Page number

  While I thought that the KOMA-Script Letter 2 configuration I use had this
capability and how to do this was worked out years ago I don't have a record
of how to do this in my saved messages and I am not finding the solution in
my Web searches.

  Please point me to a resource that explains how to add this continuation
page header.

Thanks in advance,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
 Voice: 503-667-4517  Fax: 503-667-8863



Re: psfragfig

2013-07-02 Thread Michael Bach

Hi Julien,

On 5/19/13 11:55 PM, Julien Rioux wrote:

On 28/10/2012 6:01 AM, Michael Bach wrote:

Ok, although I did not solve this in terms of LyX configuration: Just a
quick notice for sake of completeness and in case someone is plagued by
this issue and might be happy to find this.

On 10/26/12 12:29 PM, Michael Bach wrote:

Now when I try to compile the document, I see the line:
=== pstool: begin processing ===
Error exporting to format
pdf2/Users/Shared/LyX/lyx-2.0.4/src/support/Systemcall.cpp(273):
Systemcall: 'pdflatex -synctex=-1 -shell-escape  "skriptum.tex"'
finished with exit code 1

in the messages pane and get the error:
I can't write on file `figures/EulerExplizit-pstool.tex'.

Now I assume that the external command from pstool is run inside the
temporary LyX directory and it thus cannot find the figures/ folder to
write the .tex file to...


AFAIK, LyX does not copy the .eps and .tex psfrag files to the temporary
directory, because it does not parse the ERT for the psfragfig macro. I
decided to reference the files under figures/ directly with absolute
paths to the source dir. This does work via "openout_any = a" in
texmf.cnf but then compiling foreign documents does not feel secure
anymore...

I read the LyX "Customization" manual under 'Copier' for a better
solution, but could not find a reference to the LyX temporary directory
and have no clue how to best solve this in terms of LyX policy.

Michael




The way I use psfrag is to insert the .eps into LyX using the standard
way from the Insert menu, and put the psfrag code in ERT in the LyX
document. This way, LyX handles the copying of the .eps file correctly.
You obviously need the correct \usepackage line added to your preamble
in document settings.



Thanks for your comment. I somehow missed your answer after all this time...

I get how you mentioned the inclusion of the .eps file - I remember 
trying that initially. I also assume you mean `\usepackage{pstool}' as 
correct preamble line(?). However, I do not know what you mean by 
'psfrag code'.


Am I missing something?

Michael



Re: psfragfig

2013-07-02 Thread Julien Rioux
On Tue, Jul 2, 2013 at 2:50 PM, Michael Bach  wrote:

> Hi Julien,
>
> On 5/19/13 11:55 PM, Julien Rioux wrote:
>
>> On 28/10/2012 6:01 AM, Michael Bach wrote:
>>
>>> Ok, although I did not solve this in terms of LyX configuration: Just a
>>> quick notice for sake of completeness and in case someone is plagued by
>>> this issue and might be happy to find this.
>>>
>>> On 10/26/12 12:29 PM, Michael Bach wrote:
>>>
 Now when I try to compile the document, I see the line:
 === pstool: begin processing ===
 Error exporting to format
 pdf2/Users/Shared/LyX/lyx-2.0.**4/src/support/Systemcall.cpp(**273):
 Systemcall: 'pdflatex -synctex=-1 -shell-escape  "skriptum.tex"'
 finished with exit code 1

 in the messages pane and get the error:
 I can't write on file `figures/EulerExplizit-pstool.**tex'.

 Now I assume that the external command from pstool is run inside the
 temporary LyX directory and it thus cannot find the figures/ folder to
 write the .tex file to...

  AFAIK, LyX does not copy the .eps and .tex psfrag files to the
>>> temporary
>>> directory, because it does not parse the ERT for the psfragfig macro. I
>>> decided to reference the files under figures/ directly with absolute
>>> paths to the source dir. This does work via "openout_any = a" in
>>> texmf.cnf but then compiling foreign documents does not feel secure
>>> anymore...
>>>
>>> I read the LyX "Customization" manual under 'Copier' for a better
>>> solution, but could not find a reference to the LyX temporary directory
>>> and have no clue how to best solve this in terms of LyX policy.
>>>
>>> Michael
>>>
>>>
>>>
>> The way I use psfrag is to insert the .eps into LyX using the standard
>> way from the Insert menu, and put the psfrag code in ERT in the LyX
>> document. This way, LyX handles the copying of the .eps file correctly.
>> You obviously need the correct \usepackage line added to your preamble
>> in document settings.
>>
>>
> Thanks for your comment. I somehow missed your answer after all this
> time...
>
>
Well, it took me quite some time to answer in the first place...


> I get how you mentioned the inclusion of the .eps file - I remember trying
> that initially. I also assume you mean `\usepackage{pstool}' as correct
> preamble line(?). However, I do not know what you mean by 'psfrag code'.
>
>
Actually, I just use \usepackage{psfrag} directly (\usepackage{pstool}
isn't necessary for pdf output via ps2pdf). The psfrag code that I refer to
is the content of the .tex file generated by matlabfrag alongside the .eps
file. I would be copy-pasting the content of the .tex file into an ERT, but
you could also input the .tex file via "Insert>File>Child Doc". What this
accomplishes corresponds to what is described at the beginning of section
4.2 of the matlabfrag userguide.pdf manual. If you need to use pdflatex,
you'll need the \usepackage{pstool} instead, but then I don't know how to
help you!

Hope this helps a bit more,
Cheers,
Julien


> Am I missing something?
>
> Michael
>
>


Change all instances of an environment

2013-07-02 Thread Sykledust
I just discovered the 'program listing' inset after writing
 a quite large document containing a lot of programming code.
For this I just used a typewriter font, and for blocks of code 
I used the Quote environment to have it indented.
I would now like to change all instances of the Quote 
paragraphs to program listing floats and all other instances 
of typewriter font use to inline program listings.
I tried to use advanced find & replace with the 
regular expression ".*" but without luck.

All suggestions are appreciated



Re: Multiple citations

2013-07-02 Thread Julien Rioux

On 02/07/2013 11:17 AM, Elena Serioli wrote:

Ok, I created a little example, with a general "father" document, a
"Chapter 1" and a Bibliography..

If you create a pdf of the general document I'll see that the second
citation isn't extended..


2013/7/2 Liviu Andronic >

Hello,


On Tue, Jul 2, 2013 at 3:18 PM, Elena > wrote:
 > Hi everybody,
 >
 > I'm having some troubles with multiple citations in Lyx.
 >
 > When I have to cite more than one bibliographic note per time,
what I see in
 > the PDF is the first citation extended and the other ones just as
the first
 > author's letter..
 >
 > For example, if I cite Me et al, 2000; You et al, 2001; Them and
al, 2009,
 > what I get is (Me and al, 2000, Y, T).
 >
Could you provide us with a very small example of a LyX file and .bib
file that reproduce the issue? This way we can better investigate what
goes wrong.

Liviu




Hi,
Thanks for providing a small example. The problem is that you need to 
define the label correctly, according to the natbib style, in exactly 
the form "Authors(2013)". See the attached, corrected and simplified 
example.


Cheers,
Julien


example corrected.lyx
Description: application/lyx


Re: Change all instances of an environment

2013-07-02 Thread Scott Kostyshak
On Tue, Jul 2, 2013 at 5:34 PM, Sykledust  wrote:
> I just discovered the 'program listing' inset after writing
>  a quite large document containing a lot of programming code.
> For this I just used a typewriter font, and for blocks of code
> I used the Quote environment to have it indented.
> I would now like to change all instances of the Quote
> paragraphs to program listing floats and all other instances
> of typewriter font use to inline program listings.
> I tried to use advanced find & replace with the
> regular expression ".*" but without luck.
>
> All suggestions are appreciated

You'd probably have better luck just doing a find replace on the .lyx
file directly. Make one change manually in LyX to see what you want to
change to and then sed the rest. Of course make backups and be
careful.

Scott


Re: KOMA Script Letter 2: Continuation Page Headings

2013-07-02 Thread Julien Rioux

On 02/07/2013 11:17 AM, Rich Shepard wrote:

   In multipage business letters here in the US all continuation pages
should
have a header in the upper left of the page containing

Addressee's Name
Date as shown on page 1
Page number

   While I thought that the KOMA-Script Letter 2 configuration I use had
this
capability and how to do this was worked out years ago I don't have a
record
of how to do this in my saved messages and I am not finding the solution in
my Web searches.

   Please point me to a resource that explains how to add this continuation
page header.

Thanks in advance,

Rich



Hi Rich,

I could find this thread about it, where it seems that a solution was 
reached: 
http://lyx.475766.n2.nabble.com/Koma-Letter-2-Components-Sequence-td477936.html


Cheers,
Julien



Re: Change all instances of an environment

2013-07-02 Thread Sykledust
Scott Kostyshak  princeton.edu> writes:

> 
> On Tue, Jul 2, 2013 at 5:34 PM, Sykledust  gmail.com> wrote:
> > I just discovered the 'program listing' inset after writing
> >  a quite large document containing a lot of programming code.
> > For this I just used a typewriter font, and for blocks of code
> > I used the Quote environment to have it indented.
> > I would now like to change all instances of the Quote
> > paragraphs to program listing floats and all other instances
> > of typewriter font use to inline program listings.
> > I tried to use advanced find & replace with the
> > regular expression ".*" but without luck.
> >
> > All suggestions are appreciated
> 
> You'd probably have better luck just doing a find replace on the .lyx
> file directly. Make one change manually in LyX to see what you want to
> change to and then sed the rest. Of course make backups and be
> careful.
> 
> Scott
> 
> 

In fact I had a go with that also, but it actually seems simpler 
to manually do the formatting Inside LyX since I have to replace 
multiple sequential instances of
\begin_layout Quote 
Code here
\end_layout
with a single program listing inset... 
For the non-block code it could perhaps be a feasible approach, 
but then I thought I'd ask here first just to make sure that there 
isn't a sollution similar to how sections can be promoted and 
demoted through the outline.



Re: KOMA Script Letter 2: Continuation Page Headings

2013-07-02 Thread Rich Shepard

On Tue, 2 Jul 2013, Julien Rioux wrote:

I could find this thread about it, where it seems that a solution was 
reached: 
http://lyx.475766.n2.nabble.com/Koma-Letter-2-Components-Sequence-td477936.html


Julien,

  Thanks very much! I thought I had solved this before but I did not find
that stored tread in my Web searches.

  The changes in LyX over the past 5 years means I need to modify the
solution that worked then. Now, the 'toname' comes out right justified
rather than left justified but the date and page number are on the left.
I'll work on fixing this over the next couple of days.

Much appreciated,

Rich

--
Richard B. Shepard, Ph.D.  |  Have knowledge, will travel.
Applied Ecosystem Services, Inc.   |
 Voice: 503-667-4517  Fax: 503-667-8863



Re: Change all instances of an environment

2013-07-02 Thread Steve Litt
On Tue, 2 Jul 2013 21:34:46 + (UTC)
Sykledust  wrote:

> I just discovered the 'program listing' inset after writing
>  a quite large document containing a lot of programming code.
> For this I just used a typewriter font, and for blocks of code 
> I used the Quote environment to have it indented.
> I would now like to change all instances of the Quote 
> paragraphs to program listing floats and all other instances 
> of typewriter font use to inline program listings.
> I tried to use advanced find & replace with the 
> regular expression ".*" but without luck.

The preceding is perhaps the most confusing sentence I've ever read.
But assuming you want to change the appearance of all instances of the
Quote environment, you can revise the appearance of Quote within a
layout file.

See http://www.troubleshooters.com/linux/lyx/index.htm

Thanks,

SteveT

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


Re: psfragfig

2013-07-02 Thread Michael Bach

On 7/2/13 11:44 PM, Julien Rioux wrote:

On Tue, Jul 2, 2013 at 2:50 PM, Michael Bach > wrote:

Hi Julien,

On 5/19/13 11:55 PM, Julien Rioux wrote:

On 28/10/2012 6:01 AM, Michael Bach wrote:

Ok, although I did not solve this in terms of LyX
configuration: Just a
quick notice for sake of completeness and in case someone is
plagued by
this issue and might be happy to find this.

On 10/26/12 12:29 PM, Michael Bach wrote:

Now when I try to compile the document, I see the line:
=== pstool: begin processing ===
Error exporting to format

pdf2/Users/Shared/LyX/lyx-2.0.__4/src/support/Systemcall.cpp(__273):
Systemcall: 'pdflatex -synctex=-1 -shell-escape
  "skriptum.tex"'
finished with exit code 1

in the messages pane and get the error:
I can't write on file `figures/EulerExplizit-pstool.__tex'.

Now I assume that the external command from pstool is
run inside the
temporary LyX directory and it thus cannot find the
figures/ folder to
write the .tex file to...

AFAIK, LyX does not copy the .eps and .tex psfrag files to
the temporary
directory, because it does not parse the ERT for the
psfragfig macro. I
decided to reference the files under figures/ directly with
absolute
paths to the source dir. This does work via "openout_any = a" in
texmf.cnf but then compiling foreign documents does not feel
secure
anymore...

I read the LyX "Customization" manual under 'Copier' for a
better
solution, but could not find a reference to the LyX
temporary directory
and have no clue how to best solve this in terms of LyX policy.

Michael



The way I use psfrag is to insert the .eps into LyX using the
standard
way from the Insert menu, and put the psfrag code in ERT in the LyX
document. This way, LyX handles the copying of the .eps file
correctly.
You obviously need the correct \usepackage line added to your
preamble
in document settings.


Thanks for your comment. I somehow missed your answer after all this
time...


Well, it took me quite some time to answer in the first place...

I get how you mentioned the inclusion of the .eps file - I remember
trying that initially. I also assume you mean `\usepackage{pstool}'
as correct preamble line(?). However, I do not know what you mean by
'psfrag code'.


Actually, I just use \usepackage{psfrag} directly (\usepackage{pstool}
isn't necessary for pdf output via ps2pdf). The psfrag code that I refer
to is the content of the .tex file generated by matlabfrag alongside the
.eps file.


I read some more about the technologies and packages involved. I did not 
fully grasp the bare psfrag since I used the pstools psfragfig magic 
before, thanks for explanation.



I would be copy-pasting the content of the .tex file into an
ERT, but you could also input the .tex file via "Insert>File>Child Doc".


I tried this \input approach, placed before/after the graphics include 
but it did not work with pdflatex.



What this accomplishes corresponds to what is described at the beginning
of section 4.2 of the matlabfrag userguide.pdf manual. If you need to
use pdflatex, you'll need the \usepackage{pstool} instead, but then I
don't know how to help you!



I then tried to use the psfrag together with auto-pst-pdf to get to pdf, 
but pdftex process runs with 100% CPU for 10 minutes and then dies.


So I am back to pstool with absolute paths and an "openany_out=a 
pdflatex ..." command. This ERT approach is not as neat (e.g. no 
preview!) as the other figure handling in LyX, but at least it works.


Thanks for your thoughts on this!

Michael