Re: running cygwin or unix script from within lyx

2011-05-16 Thread Venable
On Sun, May 15, 2011 at 9:06 PM, Richard Heck rgh...@comcast.net wrote:

 On 05/15/2011 08:48 PM, Venable wrote:

 Hi all,

 I have written a couple of cygwin scripts to automate some time-consuming
 repetitive tasks and would like to be able to run these from within LyX, for
 example via a keyboard shortcut or a customized button on a toolbar. Is this
 sort of thing possible? If so, does anyone have advice on how to set it up?

 As an example, I like to use the pdfpages package to include external
 pdfs. However, I often use relative paths (e.g. when collaborating with
 co-authors on Dropbox and the like), and as we know LyX cannot handle this
 because of all the copying to temporary directories and so on that LyX
 prefers. So, I've written a very simple script to export the lyx file to tex
 and then compile using miktex. It would be great if I didn't have to fire up
 CygWin and type in the command and filename - rather, I'd prefer to
 designate a keyboard shortcut or menu option within LyX that would tell
 cygwin to run the script and pass it the current filename.

  The only real way to do this, so far as I know, is to define a converter
 that will call your script. This converter might, for example, replace
 pdflatex as a LaTeX--PDF converter. There are a number of ways to do this,
 so the best way will depend on the details.

 rh


Dear Richard,

Thanks a lot for this comment. What are some of the alternative ways to
define a converter, and what are the sort of details that would be useful to
know in deciding?

This particular task is incredibly simple (export to tex, compile), and I'm
not necessarily wedded to using CygWin, that's just what I happen to be most
comfortable with.


Re: running cygwin or unix script from within lyx

2011-05-16 Thread Venable
On Sun, May 15, 2011 at 9:06 PM, Richard Heck rgh...@comcast.net wrote:

 On 05/15/2011 08:48 PM, Venable wrote:

 Hi all,

 I have written a couple of cygwin scripts to automate some time-consuming
 repetitive tasks and would like to be able to run these from within LyX, for
 example via a keyboard shortcut or a customized button on a toolbar. Is this
 sort of thing possible? If so, does anyone have advice on how to set it up?

 As an example, I like to use the pdfpages package to include external
 pdfs. However, I often use relative paths (e.g. when collaborating with
 co-authors on Dropbox and the like), and as we know LyX cannot handle this
 because of all the copying to temporary directories and so on that LyX
 prefers. So, I've written a very simple script to export the lyx file to tex
 and then compile using miktex. It would be great if I didn't have to fire up
 CygWin and type in the command and filename - rather, I'd prefer to
 designate a keyboard shortcut or menu option within LyX that would tell
 cygwin to run the script and pass it the current filename.

  The only real way to do this, so far as I know, is to define a converter
 that will call your script. This converter might, for example, replace
 pdflatex as a LaTeX--PDF converter. There are a number of ways to do this,
 so the best way will depend on the details.

 rh


Dear Richard,

Thanks a lot for this comment. What are some of the alternative ways to
define a converter, and what are the sort of details that would be useful to
know in deciding?

This particular task is incredibly simple (export to tex, compile), and I'm
not necessarily wedded to using CygWin, that's just what I happen to be most
comfortable with.


Re: running cygwin or unix script from within lyx

2011-05-16 Thread Venable
On Sun, May 15, 2011 at 9:06 PM, Richard Heck <rgh...@comcast.net> wrote:

> On 05/15/2011 08:48 PM, Venable wrote:
>
>> Hi all,
>>
>> I have written a couple of cygwin scripts to automate some time-consuming
>> repetitive tasks and would like to be able to run these from within LyX, for
>> example via a keyboard shortcut or a customized button on a toolbar. Is this
>> sort of thing possible? If so, does anyone have advice on how to set it up?
>>
>> As an example, I like to use the pdfpages package to include external
>> pdfs. However, I often use relative paths (e.g. when collaborating with
>> co-authors on Dropbox and the like), and as we know LyX cannot handle this
>> because of all the copying to temporary directories and so on that LyX
>> prefers. So, I've written a very simple script to export the lyx file to tex
>> and then compile using miktex. It would be great if I didn't have to fire up
>> CygWin and type in the command and filename - rather, I'd prefer to
>> designate a keyboard shortcut or menu option within LyX that would tell
>> cygwin to run the script and pass it the current filename.
>>
>>  The only real way to do this, so far as I know, is to define a converter
> that will call your script. This converter might, for example, replace
> pdflatex as a LaTeX-->PDF converter. There are a number of ways to do this,
> so the best way will depend on the details.
>
> rh
>

Dear Richard,

Thanks a lot for this comment. What are some of the alternative ways to
define a converter, and what are the sort of details that would be useful to
know in deciding?

This particular task is incredibly simple (export to tex, compile), and I'm
not necessarily wedded to using CygWin, that's just what I happen to be most
comfortable with.


running cygwin or unix script from within lyx

2011-05-15 Thread Venable
Hi all,

I have written a couple of cygwin scripts to automate some time-consuming
repetitive tasks and would like to be able to run these from within LyX, for
example via a keyboard shortcut or a customized button on a toolbar. Is this
sort of thing possible? If so, does anyone have advice on how to set it up?

As an example, I like to use the pdfpages package to include external pdfs.
However, I often use relative paths (e.g. when collaborating with co-authors
on Dropbox and the like), and as we know LyX cannot handle this because of
all the copying to temporary directories and so on that LyX prefers. So,
I've written a very simple script to export the lyx file to tex and then
compile using miktex. It would be great if I didn't have to fire up CygWin
and type in the command and filename - rather, I'd prefer to designate a
keyboard shortcut or menu option within LyX that would tell cygwin to run
the script and pass it the current filename.

Many thanks in advance for any advice and please let me know if the question
needs clarifying, or if there is a different, better way.


running cygwin or unix script from within lyx

2011-05-15 Thread Venable
Hi all,

I have written a couple of cygwin scripts to automate some time-consuming
repetitive tasks and would like to be able to run these from within LyX, for
example via a keyboard shortcut or a customized button on a toolbar. Is this
sort of thing possible? If so, does anyone have advice on how to set it up?

As an example, I like to use the pdfpages package to include external pdfs.
However, I often use relative paths (e.g. when collaborating with co-authors
on Dropbox and the like), and as we know LyX cannot handle this because of
all the copying to temporary directories and so on that LyX prefers. So,
I've written a very simple script to export the lyx file to tex and then
compile using miktex. It would be great if I didn't have to fire up CygWin
and type in the command and filename - rather, I'd prefer to designate a
keyboard shortcut or menu option within LyX that would tell cygwin to run
the script and pass it the current filename.

Many thanks in advance for any advice and please let me know if the question
needs clarifying, or if there is a different, better way.


running cygwin or unix script from within lyx

2011-05-15 Thread Venable
Hi all,

I have written a couple of cygwin scripts to automate some time-consuming
repetitive tasks and would like to be able to run these from within LyX, for
example via a keyboard shortcut or a customized button on a toolbar. Is this
sort of thing possible? If so, does anyone have advice on how to set it up?

As an example, I like to use the pdfpages package to include external pdfs.
However, I often use relative paths (e.g. when collaborating with co-authors
on Dropbox and the like), and as we know LyX cannot handle this because of
all the copying to temporary directories and so on that LyX prefers. So,
I've written a very simple script to export the lyx file to tex and then
compile using miktex. It would be great if I didn't have to fire up CygWin
and type in the command and filename - rather, I'd prefer to designate a
keyboard shortcut or menu option within LyX that would tell cygwin to run
the script and pass it the current filename.

Many thanks in advance for any advice and please let me know if the question
needs clarifying, or if there is a different, better way.


Re: Reducing indentation of enumerated lists

2010-12-13 Thread Venable
On Mon, Dec 13, 2010 at 11:38 AM, Paul Rubin ru...@msu.edu wrote:
 Assuming you want to do this for all enumerations, add the following to your
 preamble:

 \usepackage{enumitem}
 \setenumerate{leftmargin=*}

 This of course assumes that you have the enumitem package installed.

 /Paul



Thanks Paul, this worked beautifully.


Re: Reducing indentation of enumerated lists

2010-12-13 Thread Venable
On Mon, Dec 13, 2010 at 11:38 AM, Paul Rubin ru...@msu.edu wrote:
 Assuming you want to do this for all enumerations, add the following to your
 preamble:

 \usepackage{enumitem}
 \setenumerate{leftmargin=*}

 This of course assumes that you have the enumitem package installed.

 /Paul



Thanks Paul, this worked beautifully.


Re: Reducing indentation of enumerated lists

2010-12-13 Thread Venable
On Mon, Dec 13, 2010 at 11:38 AM, Paul Rubin  wrote:
> Assuming you want to do this for all enumerations, add the following to your
> preamble:
>
> \usepackage{enumitem}
> \setenumerate{leftmargin=*}
>
> This of course assumes that you have the enumitem package installed.
>
> /Paul
>
>

Thanks Paul, this worked beautifully.


Reducing indentation of enumerated lists

2010-12-12 Thread Venable
Hi LyX users,

I would like to reduce the indentation of an enumerated list so that
the number is flush with the left margin of the regular text, and the
text within the list is indented by the same amount relative to the
number as it is now.

That is, i just want to move things to the left a bit, leaving the
right margin as is. A crude stick-figure drawing follows:

Current:

Regular text
__1.__First line of enumerated text.

What I'd like:

Regular text
1.__First line of enumerated text.


Is this possible?

Thanks in advance.


Reducing indentation of enumerated lists

2010-12-12 Thread Venable
Hi LyX users,

I would like to reduce the indentation of an enumerated list so that
the number is flush with the left margin of the regular text, and the
text within the list is indented by the same amount relative to the
number as it is now.

That is, i just want to move things to the left a bit, leaving the
right margin as is. A crude stick-figure drawing follows:

Current:

Regular text
__1.__First line of enumerated text.

What I'd like:

Regular text
1.__First line of enumerated text.


Is this possible?

Thanks in advance.


Reducing indentation of enumerated lists

2010-12-12 Thread Venable
Hi LyX users,

I would like to reduce the indentation of an enumerated list so that
the number is flush with the left margin of the regular text, and the
text within the list is indented by the same amount relative to the
number as it is now.

That is, i just want to move things to the left a bit, leaving the
right margin as is. A crude stick-figure drawing follows:

Current:

Regular text
__1.__First line of enumerated text.

What I'd like:

Regular text
1.__First line of enumerated text.


Is this possible?

Thanks in advance.


Re: PDF output question

2010-12-11 Thread Venable
On Sat, Dec 11, 2010 at 1:24 PM, Liviu Andronic landronim...@gmail.com wrote:
 On Sat, Dec 11, 2010 at 7:15 PM, Nikos Chantziaras rea...@arcor.de wrote:
 http://dl.dropbox.com/u/14591540/newfile1.pdf

 I see.  Those are indeed bitmap fonts and not recommended for PDFs (or
 anything else, actually.)  I guess your TeX installation is missing the
 scalable version of the Computer Modern fonts.

 My guess is that you're using default fonts, and LyX in default
 configuration will use bitmap fonts (long story). Try to change
 Document  Settings  Fonts  Roman to Latin Modern or Palatino to get
 vector fonts. But I don't know if this would help you with the
 submission thingy.


This (bitmap as default) has always been puzzling to me. Even though
it's a small thing to correct, I've seen it be a barrier to adoption
by the less-technically-inclined. It seems like making a scalable font
the default would go a long way to making LyX just work out of the
box.

Of course, there is probably another side to the story.


Re: PDF output question

2010-12-11 Thread Venable
On Sat, Dec 11, 2010 at 1:24 PM, Liviu Andronic landronim...@gmail.com wrote:
 On Sat, Dec 11, 2010 at 7:15 PM, Nikos Chantziaras rea...@arcor.de wrote:
 http://dl.dropbox.com/u/14591540/newfile1.pdf

 I see.  Those are indeed bitmap fonts and not recommended for PDFs (or
 anything else, actually.)  I guess your TeX installation is missing the
 scalable version of the Computer Modern fonts.

 My guess is that you're using default fonts, and LyX in default
 configuration will use bitmap fonts (long story). Try to change
 Document  Settings  Fonts  Roman to Latin Modern or Palatino to get
 vector fonts. But I don't know if this would help you with the
 submission thingy.


This (bitmap as default) has always been puzzling to me. Even though
it's a small thing to correct, I've seen it be a barrier to adoption
by the less-technically-inclined. It seems like making a scalable font
the default would go a long way to making LyX just work out of the
box.

Of course, there is probably another side to the story.


Re: PDF output question

2010-12-11 Thread Venable
On Sat, Dec 11, 2010 at 1:24 PM, Liviu Andronic  wrote:
> On Sat, Dec 11, 2010 at 7:15 PM, Nikos Chantziaras  wrote:
>>> http://dl.dropbox.com/u/14591540/newfile1.pdf
>>
>> I see.  Those are indeed bitmap fonts and not recommended for PDFs (or
>> anything else, actually.)  I guess your TeX installation is missing the
>> scalable version of the Computer Modern fonts.
>>
> My guess is that you're using default fonts, and LyX in default
> configuration will use bitmap fonts (long story). Try to change
> Document > Settings > Fonts > Roman to Latin Modern or Palatino to get
> vector fonts. But I don't know if this would help you with the
> submission thingy.
>

This (bitmap as default) has always been puzzling to me. Even though
it's a small thing to correct, I've seen it be a barrier to adoption
by the less-technically-inclined. It seems like making a scalable font
the default would go a long way to making LyX "just work" out of the
box.

Of course, there is probably another side to the story.


Re: set relative path for temp-dir

2010-11-18 Thread Venable
On Thu, Nov 18, 2010 at 10:35 PM, RGH rgh...@comcast.net wrote:
 On 11/18/2010 06:54 PM, go2tob...@gmx.de wrote:

 Dear Lyx developers and users,
 thanks for your work concerning the new beta version. I have just enjoyed
 some of the new features.
 I have a small problem (win7,64bit, Lyx2.0beta):
 How can I set the temp-dir  to the same location, were the current file is
 located.
 in Lyx 1.6 I put in the options temp-dir: LyxTemp and thats it.
 I think Lyx always looks to
 Users\mynama\AppData\Local\Temp\lyx_tmpdir.
 when I put an absolute path in the options, it works.
 How can I set a relative path from current file for lyxtempdir?

 I use this to refer to an external file from ERT by using
  ../../../myfile.txt  in pgfplot for loading data for a data plot. Maybe
 there is another solution.


A somewhat clunky but effective (in my experience) workaround is:

1. Export your lyx document to .tex
2. Create the pdf (assuming that is your goal) in TeXworks or via the
command line.

This handles relative paths very well.

I wish this capacity were built into LyX. Perhaps there is some
difficulty I'm not anticipating.


Re: set relative path for temp-dir

2010-11-18 Thread Venable
On Thu, Nov 18, 2010 at 10:35 PM, RGH rgh...@comcast.net wrote:
 On 11/18/2010 06:54 PM, go2tob...@gmx.de wrote:

 Dear Lyx developers and users,
 thanks for your work concerning the new beta version. I have just enjoyed
 some of the new features.
 I have a small problem (win7,64bit, Lyx2.0beta):
 How can I set the temp-dir  to the same location, were the current file is
 located.
 in Lyx 1.6 I put in the options temp-dir: LyxTemp and thats it.
 I think Lyx always looks to
 Users\mynama\AppData\Local\Temp\lyx_tmpdir.
 when I put an absolute path in the options, it works.
 How can I set a relative path from current file for lyxtempdir?

 I use this to refer to an external file from ERT by using
  ../../../myfile.txt  in pgfplot for loading data for a data plot. Maybe
 there is another solution.


A somewhat clunky but effective (in my experience) workaround is:

1. Export your lyx document to .tex
2. Create the pdf (assuming that is your goal) in TeXworks or via the
command line.

This handles relative paths very well.

I wish this capacity were built into LyX. Perhaps there is some
difficulty I'm not anticipating.


Re: set relative path for temp-dir

2010-11-18 Thread Venable
On Thu, Nov 18, 2010 at 10:35 PM, RGH  wrote:
> On 11/18/2010 06:54 PM, go2tob...@gmx.de wrote:
>>
>> Dear Lyx developers and users,
>> thanks for your work concerning the new beta version. I have just enjoyed
>> some of the new features.
>> I have a small problem (win7,64bit, Lyx2.0beta):
>> How can I set the temp-dir  to the same location, were the current file is
>> located.
>> in Lyx 1.6 I put in the options temp-dir: "LyxTemp" and thats it.
>> I think Lyx always looks to
>> Users\mynama\AppData\Local\Temp\lyx_tmpdir.
>> when I put an absolute path in the options, it works.
>> How can I set a relative path from current file for lyxtempdir?
>>
>> I use this to refer to an external file from ERT by using
>>  ../../../myfile.txt  in pgfplot for loading data for a data plot. Maybe
>> there is another solution.
>>

A somewhat clunky but effective (in my experience) workaround is:

1. Export your lyx document to .tex
2. Create the pdf (assuming that is your goal) in TeXworks or via the
command line.

This handles relative paths very well.

I wish this capacity were built into LyX. Perhaps there is some
difficulty I'm not anticipating.


Re: Automating sequence of beamer exports to pdf

2010-11-14 Thread Venable
On Thu, Nov 11, 2010 at 5:30 PM, Jean-Marc Lasgouttes
lasgout...@lyx.org wrote:
 Can the \setbeameroption macro be called in the main document? If
 it can, you can define branches in your document (note, handout), and the
 name
 of the output file can be modified automatically.

 Also, can the handout option be passed afterwards as a macro?


Jean-Marc, thanks very much for your suggestion. Unfortunately I am
not familiar enough with macros and branches to know whether it would
work. Perhaps a more sophisticated LyX-er (or are these suggestions
for the .tex file?) will know.


Re: Automating sequence of beamer exports to pdf

2010-11-14 Thread Venable
On Thu, Nov 11, 2010 at 5:30 PM, Jean-Marc Lasgouttes
lasgout...@lyx.org wrote:
 Can the \setbeameroption macro be called in the main document? If
 it can, you can define branches in your document (note, handout), and the
 name
 of the output file can be modified automatically.

 Also, can the handout option be passed afterwards as a macro?


Jean-Marc, thanks very much for your suggestion. Unfortunately I am
not familiar enough with macros and branches to know whether it would
work. Perhaps a more sophisticated LyX-er (or are these suggestions
for the .tex file?) will know.


Re: Automating sequence of beamer exports to pdf

2010-11-14 Thread Venable
On Thu, Nov 11, 2010 at 5:30 PM, Jean-Marc Lasgouttes
 wrote:
> Can the \setbeameroption macro be called in the main document? If
> it can, you can define branches in your document (note, handout), and the
> name
> of the output file can be modified automatically.
>
> Also, can the handout option be passed afterwards as a macro?
>

Jean-Marc, thanks very much for your suggestion. Unfortunately I am
not familiar enough with macros and branches to know whether it would
work. Perhaps a more sophisticated LyX-er (or are these suggestions
for the .tex file?) will know.


Re: Automating sequence of beamer exports to pdf

2010-11-10 Thread Venable
Thank you both for your suggestions. I will do my best to implement
them in spite of my meager programming skills.

I have a couple of follow-up questions:

First, I was thinking about a variant to the procedure Richard
developed, in which the changes were made in tex files rather than the
LyX file. The virtue of this would be that, since I work in LyX, there
would be fewer files propagated and I would be less likely to edit the
wrong one in the future. So what I had in mind was something like the
following:

a. Work on the slides version in LyX, since as Richard points out
this is the baseline for the other two.

b. Export this to tex, make the handout and notes changes directly
in tex, and pdflatex all three versions from the command line or
within the script.

Does this seem like a good approach? Any problems I should anticipate?

Second, is there a way to get either of these approaches to run from a
keyboard shortcut within LyX? (For example, a function key.)

Many thanks again.


Fwd: Automating sequence of beamer exports to pdf

2010-11-10 Thread Venable

 First, I was thinking about a variant to the procedure Richard
 developed, in which the changes were made in tex files rather than the
 LyX file. The virtue of this would be that, since I work in LyX, there
 would be fewer files propagated and I would be less likely to edit the
 wrong one in the future. So what I had in mind was something like the
 following:

 a. Work on the slides version in LyX, since as Richard points out
 this is the baseline for the other two.

 b. Export this to tex, make the handout and notes changes directly
 in tex, and pdflatex all three versions from the command line or
 within the script.

 This works as long as what makes changes is a script and not your fingers on
 a keyboard. Well, I think this works.

Right, I should have been clearer. What I meant was that everything in
(b) would happen from a script.

 I don't know whether the elimination of
 Notes in the output happens at the LyX level or the LaTeX level. If the LaTeX
 level, then I'd imagine your plan works perfectly.


Whether or not notes appear is determined by the presence (or absence)
of a line in the preamble of the tex file.

If you want notes, you add
\setbeameroption{show notes}

If not, you erase this or comment it out.

This can be done in LyX by going to Document - Settings - LaTeX
Preamble and then place the line in the preamble. I usually put it
right under the \usetheme{} line but I'm not sure if this is required.

However, my thought was that it would be simpler to do this in the
.tex file that LyX generates, since these (I believe) are simpler
files. So the idea would be to have the script export from LyX to tex,
and then do something similar to what Richard's perl programs do to
change the preamble in the tex file.

Similarly for creating handouts - a perl script similar to Richard's
would change the purpose of the document from beamer (slides) to
handout. This could happen in LyX but it seems to me that it would be
more straightforward in tex.


Re: Automating sequence of beamer exports to pdf

2010-11-10 Thread Venable
Thank you both for your suggestions. I will do my best to implement
them in spite of my meager programming skills.

I have a couple of follow-up questions:

First, I was thinking about a variant to the procedure Richard
developed, in which the changes were made in tex files rather than the
LyX file. The virtue of this would be that, since I work in LyX, there
would be fewer files propagated and I would be less likely to edit the
wrong one in the future. So what I had in mind was something like the
following:

a. Work on the slides version in LyX, since as Richard points out
this is the baseline for the other two.

b. Export this to tex, make the handout and notes changes directly
in tex, and pdflatex all three versions from the command line or
within the script.

Does this seem like a good approach? Any problems I should anticipate?

Second, is there a way to get either of these approaches to run from a
keyboard shortcut within LyX? (For example, a function key.)

Many thanks again.


Fwd: Automating sequence of beamer exports to pdf

2010-11-10 Thread Venable

 First, I was thinking about a variant to the procedure Richard
 developed, in which the changes were made in tex files rather than the
 LyX file. The virtue of this would be that, since I work in LyX, there
 would be fewer files propagated and I would be less likely to edit the
 wrong one in the future. So what I had in mind was something like the
 following:

 a. Work on the slides version in LyX, since as Richard points out
 this is the baseline for the other two.

 b. Export this to tex, make the handout and notes changes directly
 in tex, and pdflatex all three versions from the command line or
 within the script.

 This works as long as what makes changes is a script and not your fingers on
 a keyboard. Well, I think this works.

Right, I should have been clearer. What I meant was that everything in
(b) would happen from a script.

 I don't know whether the elimination of
 Notes in the output happens at the LyX level or the LaTeX level. If the LaTeX
 level, then I'd imagine your plan works perfectly.


Whether or not notes appear is determined by the presence (or absence)
of a line in the preamble of the tex file.

If you want notes, you add
\setbeameroption{show notes}

If not, you erase this or comment it out.

This can be done in LyX by going to Document - Settings - LaTeX
Preamble and then place the line in the preamble. I usually put it
right under the \usetheme{} line but I'm not sure if this is required.

However, my thought was that it would be simpler to do this in the
.tex file that LyX generates, since these (I believe) are simpler
files. So the idea would be to have the script export from LyX to tex,
and then do something similar to what Richard's perl programs do to
change the preamble in the tex file.

Similarly for creating handouts - a perl script similar to Richard's
would change the purpose of the document from beamer (slides) to
handout. This could happen in LyX but it seems to me that it would be
more straightforward in tex.


Re: Automating sequence of beamer exports to pdf

2010-11-10 Thread Venable
Thank you both for your suggestions. I will do my best to implement
them in spite of my meager programming skills.

I have a couple of follow-up questions:

First, I was thinking about a variant to the procedure Richard
developed, in which the changes were made in tex files rather than the
LyX file. The virtue of this would be that, since I work in LyX, there
would be fewer files propagated and I would be less likely to edit the
wrong one in the future. So what I had in mind was something like the
following:

a. Work on the "slides" version in LyX, since as Richard points out
this is the baseline for the other two.

b. Export this to tex, make the "handout" and "notes" changes directly
in tex, and pdflatex all three versions from the command line or
within the script.

Does this seem like a good approach? Any problems I should anticipate?

Second, is there a way to get either of these approaches to run from a
keyboard shortcut within LyX? (For example, a function key.)

Many thanks again.


Fwd: Automating sequence of beamer exports to pdf

2010-11-10 Thread Venable
>>
>> First, I was thinking about a variant to the procedure Richard
>> developed, in which the changes were made in tex files rather than the
>> LyX file. The virtue of this would be that, since I work in LyX, there
>> would be fewer files propagated and I would be less likely to edit the
>> wrong one in the future. So what I had in mind was something like the
>> following:
>>
>> a. Work on the "slides" version in LyX, since as Richard points out
>> this is the baseline for the other two.
>>
>> b. Export this to tex, make the "handout" and "notes" changes directly
>> in tex, and pdflatex all three versions from the command line or
>> within the script.
>
> This works as long as what "makes changes" is a script and not your fingers on
> a keyboard. Well, I think this works.

Right, I should have been clearer. What I meant was that everything in
(b) would happen from a script.

> I don't know whether the elimination of
> Notes in the output happens at the LyX level or the LaTeX level. If the LaTeX
> level, then I'd imagine your plan works perfectly.
>

Whether or not notes appear is determined by the presence (or absence)
of a line in the preamble of the tex file.

If you want notes, you add
\setbeameroption{show notes}

If not, you erase this or comment it out.

This can be done in LyX by going to Document - Settings - LaTeX
Preamble and then place the line in the preamble. I usually put it
right under the \usetheme{} line but I'm not sure if this is required.

However, my thought was that it would be simpler to do this in the
.tex file that LyX generates, since these (I believe) are simpler
files. So the idea would be to have the script export from LyX to tex,
and then do something similar to what Richard's perl programs do to
change the preamble in the tex file.

Similarly for creating handouts - a perl script similar to Richard's
would change the purpose of the document from beamer (slides) to
handout. This could happen in LyX but it seems to me that it would be
more straightforward in tex.


Automating sequence of beamer exports to pdf

2010-11-08 Thread Venable
Hi all,

I frequently want to produce three almost-identical PDF versions of
the same underlying set of beamer slides:

presentation-notes.pdf, which is a handout (specify handout in
Document Settings - Class Options - Custom field) but in which I
include various noteitems to myself (Document Settings - LaTeX
Preamble: \setbeameroption{show notes})

presentation-handout.pdf, which, like the notes, is in handout form
but suppresses the notes, i.e. comments out or removes
\setbeameroption{show notes} from the preamble

presentation-slides.pdf which also has no note items but is not a
handout  (specify handout in Document Settings - Class Options -
Custom field).

This is somewhat tedious to do by hand - save-as, change name, change
the preamble, change the purpose in the Document Class, save again,
export to pdf - and I have made a few version control mistakes.

Is it possible to automate this via a command sequence, module or some
sort of script?

I have fiddled around but have been stymied by (a) the paucity of
simple, annotated examples of LFUN command sequences, scripts and the
like and (b) my own incompetence. Primarily the latter.

Many thanks in advance.


Re: Automating sequence of beamer exports to pdf

2010-11-08 Thread Venable
Minor correction:

On Mon, Nov 8, 2010 at 3:38 PM, Venable venabl...@gmail.com wrote:
 Hi all,

 I frequently want to produce three almost-identical PDF versions of
 the same underlying set of beamer slides:

 presentation-notes.pdf, which is a handout (specify handout in
 Document Settings - Class Options - Custom field) but in which I
 include various noteitems to myself (Document Settings - LaTeX
 Preamble: \setbeameroption{show notes})

 presentation-handout.pdf, which, like the notes, is in handout form
 but suppresses the notes, i.e. comments out or removes
 \setbeameroption{show notes} from the preamble



presentation-slides.pdf, which also has no note items but is not a
handout (specify beamer in Document Settings - Class Options - Custom
field).


 This is somewhat tedious to do by hand - save-as, change name, change
 the preamble, change the purpose in the Document Class, save again,
 export to pdf - and I have made a few version control mistakes.

 Is it possible to automate this via a command sequence, module or some
 sort of script?

 I have fiddled around but have been stymied by (a) the paucity of
 simple, annotated examples of LFUN command sequences, scripts and the
 like and (b) my own incompetence. Primarily the latter.

 Many thanks in advance.


Apologies for the typo.


Automating sequence of beamer exports to pdf

2010-11-08 Thread Venable
Hi all,

I frequently want to produce three almost-identical PDF versions of
the same underlying set of beamer slides:

presentation-notes.pdf, which is a handout (specify handout in
Document Settings - Class Options - Custom field) but in which I
include various noteitems to myself (Document Settings - LaTeX
Preamble: \setbeameroption{show notes})

presentation-handout.pdf, which, like the notes, is in handout form
but suppresses the notes, i.e. comments out or removes
\setbeameroption{show notes} from the preamble

presentation-slides.pdf which also has no note items but is not a
handout  (specify handout in Document Settings - Class Options -
Custom field).

This is somewhat tedious to do by hand - save-as, change name, change
the preamble, change the purpose in the Document Class, save again,
export to pdf - and I have made a few version control mistakes.

Is it possible to automate this via a command sequence, module or some
sort of script?

I have fiddled around but have been stymied by (a) the paucity of
simple, annotated examples of LFUN command sequences, scripts and the
like and (b) my own incompetence. Primarily the latter.

Many thanks in advance.


Re: Automating sequence of beamer exports to pdf

2010-11-08 Thread Venable
Minor correction:

On Mon, Nov 8, 2010 at 3:38 PM, Venable venabl...@gmail.com wrote:
 Hi all,

 I frequently want to produce three almost-identical PDF versions of
 the same underlying set of beamer slides:

 presentation-notes.pdf, which is a handout (specify handout in
 Document Settings - Class Options - Custom field) but in which I
 include various noteitems to myself (Document Settings - LaTeX
 Preamble: \setbeameroption{show notes})

 presentation-handout.pdf, which, like the notes, is in handout form
 but suppresses the notes, i.e. comments out or removes
 \setbeameroption{show notes} from the preamble



presentation-slides.pdf, which also has no note items but is not a
handout (specify beamer in Document Settings - Class Options - Custom
field).


 This is somewhat tedious to do by hand - save-as, change name, change
 the preamble, change the purpose in the Document Class, save again,
 export to pdf - and I have made a few version control mistakes.

 Is it possible to automate this via a command sequence, module or some
 sort of script?

 I have fiddled around but have been stymied by (a) the paucity of
 simple, annotated examples of LFUN command sequences, scripts and the
 like and (b) my own incompetence. Primarily the latter.

 Many thanks in advance.


Apologies for the typo.


Automating sequence of beamer exports to pdf

2010-11-08 Thread Venable
Hi all,

I frequently want to produce three almost-identical PDF versions of
the same underlying set of beamer slides:

presentation-notes.pdf, which is a handout (specify handout in
Document Settings - Class Options - Custom field) but in which I
include various noteitems to myself (Document Settings - LaTeX
Preamble: \setbeameroption{show notes})

presentation-handout.pdf, which, like the notes, is in handout form
but suppresses the notes, i.e. comments out or removes
\setbeameroption{show notes} from the preamble

presentation-slides.pdf which also has no note items but is not a
handout  (specify handout in Document Settings - Class Options -
Custom field).

This is somewhat tedious to do by hand - save-as, change name, change
the preamble, change the purpose in the Document Class, save again,
export to pdf - and I have made a few version control mistakes.

Is it possible to automate this via a command sequence, module or some
sort of script?

I have fiddled around but have been stymied by (a) the paucity of
simple, annotated examples of LFUN command sequences, scripts and the
like and (b) my own incompetence. Primarily the latter.

Many thanks in advance.


Re: Automating sequence of beamer exports to pdf

2010-11-08 Thread Venable
Minor correction:

On Mon, Nov 8, 2010 at 3:38 PM, Venable <venabl...@gmail.com> wrote:
> Hi all,
>
> I frequently want to produce three almost-identical PDF versions of
> the same underlying set of beamer slides:
>
> presentation-notes.pdf, which is a handout (specify handout in
> Document Settings - Class Options - Custom field) but in which I
> include various noteitems to myself (Document Settings - LaTeX
> Preamble: \setbeameroption{show notes})
>
> presentation-handout.pdf, which, like the notes, is in handout form
> but suppresses the notes, i.e. comments out or removes
> \setbeameroption{show notes} from the preamble
>
>

presentation-slides.pdf, which also has no note items but is not a
handout (specify beamer in Document Settings - Class Options - Custom
field).

>
> This is somewhat tedious to do by hand - save-as, change name, change
> the preamble, change the purpose in the Document Class, save again,
> export to pdf - and I have made a few version control mistakes.
>
> Is it possible to automate this via a command sequence, module or some
> sort of script?
>
> I have fiddled around but have been stymied by (a) the paucity of
> simple, annotated examples of LFUN command sequences, scripts and the
> like and (b) my own incompetence. Primarily the latter.
>
> Many thanks in advance.
>

Apologies for the typo.


Re: Windows Command Line

2010-11-04 Thread Venable
Thanks everyone, this is really useful.

Someone posted a while back about working on a book on LyX - this
would be a great topic to include.


Re: Windows Command Line

2010-11-04 Thread Venable
Thanks everyone, this is really useful.

Someone posted a while back about working on a book on LyX - this
would be a great topic to include.


Re: Windows Command Line

2010-11-04 Thread Venable
Thanks everyone, this is really useful.

Someone posted a while back about working on a book on LyX - this
would be a great topic to include.


Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Mon, Nov 1, 2010 at 3:05 PM, Richard Heck rgh...@comcast.net wrote:
 On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:

 Tim Wescott wrote:


 I want to be able to write Lyx documents, then convert them to pdf
 format from the command line -- this is for a moderately complex
 website, which I would like to generate using a makefile.

 Is there a way to do this from the command line?  I assume I have to do
 this:

 lyxinsert magic here  myfile.lyx


 juer...@linux-r4p5:~  lyx -help
 Usage: lyx [ command line switches ] [ name.lyx ... ]
 Command line switches (case sensitive):
 [...]
         -e [--export] fmt
                   where fmt is the export format of choice.
                   Look on Tools-Preferences-File formats-Format
                   to get an idea which parameters should be passed.
         -i [--import] fmt file.xxx
                   where fmt is the import format of choice
                   and file.xxx is the file to be imported.
         -f [--force-overwrite] what
                   where what is either `all', `main' or `none',
                   specifying whether all files, main file only, or no
 files,
                   respectively, are to be overwritten during a batch
 export.
                   Anything else is equivalent to `all', but is not
 consumed.
         -version        summarize version and build info
 Check the LyX man page for more details.

 So,

 lyx -e pdf2 myfile.lyx

 exports to PDF via pdflatex.



 And if you're wondering where pdf2 comes from, the answer is that this is
 the identifier LyX uses for that format. Look under ToolsPreferencesFile
 Formats and ...Converters for the various options.

 rh



I would very much like to learn more about running lyx from the command line.

Do these comments apply to Windows?

Are there any help documents with simple examples? I did not see
anything in the User Guide or Extended.

Many thanks in advance.


Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Wed, Nov 3, 2010 at 3:38 PM, Richard Heck rgh...@comcast.net wrote:
 On 11/03/2010 03:28 PM, Venable wrote:

 I would very much like to learn more about running lyx from the command
 line.

 Do these comments apply to Windows?



 Yes, though of course you have to use lyx.exe, etc.

 Are there any help documents with simple examples? I did not see
 anything in the User Guide or Extended.



 Just lyx.exe -help. Assuming LyX is in your path.

 Richard


Richard,

Thanks very much for your guidance. However, I fear I am such a novice
that even this is slightly over my head. For example:


C:\Users\MyNamelyx.exe -help
'lyx.exe' is not recognized as an internal or external command,
operable program or batch file.


... and I'm stuck.

Are there any simple resources on how to get started with the very basics?


Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Mon, Nov 1, 2010 at 3:05 PM, Richard Heck rgh...@comcast.net wrote:
 On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:

 Tim Wescott wrote:


 I want to be able to write Lyx documents, then convert them to pdf
 format from the command line -- this is for a moderately complex
 website, which I would like to generate using a makefile.

 Is there a way to do this from the command line?  I assume I have to do
 this:

 lyxinsert magic here  myfile.lyx


 juer...@linux-r4p5:~  lyx -help
 Usage: lyx [ command line switches ] [ name.lyx ... ]
 Command line switches (case sensitive):
 [...]
         -e [--export] fmt
                   where fmt is the export format of choice.
                   Look on Tools-Preferences-File formats-Format
                   to get an idea which parameters should be passed.
         -i [--import] fmt file.xxx
                   where fmt is the import format of choice
                   and file.xxx is the file to be imported.
         -f [--force-overwrite] what
                   where what is either `all', `main' or `none',
                   specifying whether all files, main file only, or no
 files,
                   respectively, are to be overwritten during a batch
 export.
                   Anything else is equivalent to `all', but is not
 consumed.
         -version        summarize version and build info
 Check the LyX man page for more details.

 So,

 lyx -e pdf2 myfile.lyx

 exports to PDF via pdflatex.



 And if you're wondering where pdf2 comes from, the answer is that this is
 the identifier LyX uses for that format. Look under ToolsPreferencesFile
 Formats and ...Converters for the various options.

 rh



I would very much like to learn more about running lyx from the command line.

Do these comments apply to Windows?

Are there any help documents with simple examples? I did not see
anything in the User Guide or Extended.

Many thanks in advance.


Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Wed, Nov 3, 2010 at 3:38 PM, Richard Heck rgh...@comcast.net wrote:
 On 11/03/2010 03:28 PM, Venable wrote:

 I would very much like to learn more about running lyx from the command
 line.

 Do these comments apply to Windows?



 Yes, though of course you have to use lyx.exe, etc.

 Are there any help documents with simple examples? I did not see
 anything in the User Guide or Extended.



 Just lyx.exe -help. Assuming LyX is in your path.

 Richard


Richard,

Thanks very much for your guidance. However, I fear I am such a novice
that even this is slightly over my head. For example:


C:\Users\MyNamelyx.exe -help
'lyx.exe' is not recognized as an internal or external command,
operable program or batch file.


... and I'm stuck.

Are there any simple resources on how to get started with the very basics?


Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Mon, Nov 1, 2010 at 3:05 PM, Richard Heck  wrote:
> On 11/01/2010 12:53 PM, Jürgen Spitzmüller wrote:
>>
>> Tim Wescott wrote:
>>
>>>
>>> I want to be able to write Lyx documents, then convert them to pdf
>>> format from the command line -- this is for a moderately complex
>>> website, which I would like to generate using a makefile.
>>>
>>> Is there a way to do this from the command line?  I assume I have to do
>>> this:
>>>
>>> lyx  myfile.lyx
>>>
>>
>> juer...@linux-r4p5:~>  lyx -help
>> Usage: lyx [ command line switches ] [ name.lyx ... ]
>> Command line switches (case sensitive):
>> [...]
>>         -e [--export] fmt
>>                   where fmt is the export format of choice.
>>                   Look on Tools->Preferences->File formats->Format
>>                   to get an idea which parameters should be passed.
>>         -i [--import] fmt file.xxx
>>                   where fmt is the import format of choice
>>                   and file.xxx is the file to be imported.
>>         -f [--force-overwrite] what
>>                   where what is either `all', `main' or `none',
>>                   specifying whether all files, main file only, or no
>> files,
>>                   respectively, are to be overwritten during a batch
>> export.
>>                   Anything else is equivalent to `all', but is not
>> consumed.
>>         -version        summarize version and build info
>> Check the LyX man page for more details.
>>
>> So,
>>
>> lyx -e pdf2 myfile.lyx
>>
>> exports to PDF via pdflatex.
>>
>>
>
> And if you're wondering where "pdf2" comes from, the answer is that this is
> the identifier LyX uses for that format. Look under Tools>Preferences>File
> Formats and ...>Converters for the various options.
>
> rh
>
>

I would very much like to learn more about running lyx from the command line.

Do these comments apply to Windows?

Are there any help documents with simple examples? I did not see
anything in the User Guide or Extended.

Many thanks in advance.


Re: Export Documents from Command Line

2010-11-03 Thread Venable
On Wed, Nov 3, 2010 at 3:38 PM, Richard Heck <rgh...@comcast.net> wrote:
> On 11/03/2010 03:28 PM, Venable wrote:
>>
>> I would very much like to learn more about running lyx from the command
>> line.
>>
>> Do these comments apply to Windows?
>>
>>
>
> Yes, though of course you have to use "lyx.exe", etc.
>
>> Are there any help documents with simple examples? I did not see
>> anything in the User Guide or Extended.
>>
>>
>
> Just "lyx.exe -help". Assuming LyX is in your path.
>
> Richard
>
>
Richard,

Thanks very much for your guidance. However, I fear I am such a novice
that even this is slightly over my head. For example:


C:\Users\MyName>lyx.exe -help
'lyx.exe' is not recognized as an internal or external command,
operable program or batch file.


... and I'm stuck.

Are there any simple resources on how to get started with the very basics?


Re: Arrows: boldface, negated diagonal?

2010-10-24 Thread Venable
On Sun, Oct 24, 2010 at 6:11 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 24.10.2010 22:05, schrieb Venable:

 First, I would like to include a boldface arrow. LyX allows me to
 select Edit - Math - Text Style - Math Bold Series, and I can see in
 the LaTeX source window that the markup is being applied (i.e.
 \mathbf{\downarrow}), but when I export to PDF the arrow is not
 discernibly bold.

 You have to use \boldsymbol as described in sec. 11.2 Bold Formulas of the
 Math manual that you find in LyX's Help menu.

 Second, I would like to know if there is a way to produce a negated
 diagonal arrow that uses a scalable font. There is a \nsearrow symbol
 in the mnsymbol package, but this appears to be a bitmap font and
 therefore quite ugly.

 You can negate everything using \not. So in your case type:
 \not\searrow

 (described in sec. 3.6 Negations of the Math manual)

 regards Uwe


Thank you, those both work beautifully -- and without the need for an
extra package!


Re: Arrows: boldface, negated diagonal?

2010-10-24 Thread Venable
On Sun, Oct 24, 2010 at 6:11 PM, Uwe Stöhr uwesto...@web.de wrote:
 Am 24.10.2010 22:05, schrieb Venable:

 First, I would like to include a boldface arrow. LyX allows me to
 select Edit - Math - Text Style - Math Bold Series, and I can see in
 the LaTeX source window that the markup is being applied (i.e.
 \mathbf{\downarrow}), but when I export to PDF the arrow is not
 discernibly bold.

 You have to use \boldsymbol as described in sec. 11.2 Bold Formulas of the
 Math manual that you find in LyX's Help menu.

 Second, I would like to know if there is a way to produce a negated
 diagonal arrow that uses a scalable font. There is a \nsearrow symbol
 in the mnsymbol package, but this appears to be a bitmap font and
 therefore quite ugly.

 You can negate everything using \not. So in your case type:
 \not\searrow

 (described in sec. 3.6 Negations of the Math manual)

 regards Uwe


Thank you, those both work beautifully -- and without the need for an
extra package!


Re: Arrows: boldface, negated diagonal?

2010-10-24 Thread Venable
On Sun, Oct 24, 2010 at 6:11 PM, Uwe Stöhr <uwesto...@web.de> wrote:
> Am 24.10.2010 22:05, schrieb Venable:
>
>> First, I would like to include a boldface arrow. LyX allows me to
>> select Edit - Math - Text Style - Math Bold Series, and I can see in
>> the LaTeX source window that the markup is being applied (i.e.
>> \mathbf{\downarrow}), but when I export to PDF the arrow is not
>> discernibly bold.
>
> You have to use \boldsymbol as described in sec. 11.2 "Bold Formulas" of the
> Math manual that you find in LyX's Help menu.
>
>> Second, I would like to know if there is a way to produce a negated
>> diagonal arrow that uses a scalable font. There is a \nsearrow symbol
>> in the mnsymbol package, but this appears to be a bitmap font and
>> therefore quite ugly.
>
> You can negate everything using \not. So in your case type:
> \not\searrow
>
> (described in sec. 3.6 "Negations" of the Math manual)
>
> regards Uwe
>

Thank you, those both work beautifully -- and without the need for an
extra package!


Re: BEAMER - \lyxframeend

2010-05-09 Thread Venable
I don't know if this is related to your problem but a recent update to
the geometry package caused some conflicts for beamer.

I had some problems with beamer a few days ago but went to
http://www.ctan.org/pub/tex-archive/macros/latex2e/contrib/beamer/base/
downloaded beamerbasecompatibility.sty (note that it was updated just
in February, whereas most of the rest of the package is from 2007)
and over-wrote the existing  beamerbasecompatibility.sty in MikTeX.

See
http://www.tug.org/pipermail/tex-live/2010-February/024834.html
and
http://www.tug.org/pipermail/tex-live/2010-February/thread.html#24927
for more details.

There's an alternative fix, which is to add some code before
\documentclass but I don't think this is possible in LyX (although you
could always export to straight latex and then add the code in
TeXworks or whatever). This alternative is discussed here
http://permalink.gmane.org/gmane.comp.tex.live/24852



As an aside, personally I prefer using ERT to add \begin{frame},
\frametitle{Your title here} and \end{frame} directly, instead of
using the lyxframe commands, since it leads to a purer latex output,
but this is just a matter of taste.


Re: BEAMER - \lyxframeend

2010-05-09 Thread Venable
I don't know if this is related to your problem but a recent update to
the geometry package caused some conflicts for beamer.

I had some problems with beamer a few days ago but went to
http://www.ctan.org/pub/tex-archive/macros/latex2e/contrib/beamer/base/
downloaded beamerbasecompatibility.sty (note that it was updated just
in February, whereas most of the rest of the package is from 2007)
and over-wrote the existing  beamerbasecompatibility.sty in MikTeX.

See
http://www.tug.org/pipermail/tex-live/2010-February/024834.html
and
http://www.tug.org/pipermail/tex-live/2010-February/thread.html#24927
for more details.

There's an alternative fix, which is to add some code before
\documentclass but I don't think this is possible in LyX (although you
could always export to straight latex and then add the code in
TeXworks or whatever). This alternative is discussed here
http://permalink.gmane.org/gmane.comp.tex.live/24852



As an aside, personally I prefer using ERT to add \begin{frame},
\frametitle{Your title here} and \end{frame} directly, instead of
using the lyxframe commands, since it leads to a purer latex output,
but this is just a matter of taste.


Re: BEAMER - \lyxframeend

2010-05-09 Thread Venable
I don't know if this is related to your problem but a recent update to
the geometry package caused some conflicts for beamer.

I had some problems with beamer a few days ago but went to
http://www.ctan.org/pub/tex-archive/macros/latex2e/contrib/beamer/base/
downloaded beamerbasecompatibility.sty (note that it was updated just
in February, whereas most of the rest of the package is from 2007)
and over-wrote the existing  beamerbasecompatibility.sty in MikTeX.

See
http://www.tug.org/pipermail/tex-live/2010-February/024834.html
and
http://www.tug.org/pipermail/tex-live/2010-February/thread.html#24927
for more details.

There's an alternative fix, which is to add some code before
\documentclass but I don't think this is possible in LyX (although you
could always export to straight latex and then add the code in
TeXworks or whatever). This alternative is discussed here
http://permalink.gmane.org/gmane.comp.tex.live/24852



As an aside, personally I prefer using ERT to add \begin{frame},
\frametitle{Your title here} and \end{frame} directly, instead of
using the lyxframe commands, since it leads to a "purer" latex output,
but this is just a matter of taste.


Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Venable
Jürgen Spitzmüller sp...@... writes:
 
 Which version of LyX exactly? LyX 1.6.5 included the following bug fix:
 
 - When using the PDF-Pages external inset, copy the included PDF file to
   the temporary directory, where LaTeX searches it (bug 6345).
 
 Jürgen
 
 

An alternate solution that I have found works for me is to export the LyX file
to LaTeX and then pdflatex using TeXworks.

HTH.

PS - LyX 1.6.5, MikTeX 2.8 (including TeXworks 0.3 r.514), Windows 7 Enterprise






Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Venable
Jürgen Spitzmüller sp...@... writes:
 
 Which version of LyX exactly? LyX 1.6.5 included the following bug fix:
 
 - When using the PDF-Pages external inset, copy the included PDF file to
   the temporary directory, where LaTeX searches it (bug 6345).
 
 Jürgen
 
 

An alternate solution that I have found works for me is to export the LyX file
to LaTeX and then pdflatex using TeXworks.

HTH.

PS - LyX 1.6.5, MikTeX 2.8 (including TeXworks 0.3 r.514), Windows 7 Enterprise






Re: Bizarre file not found error using pdfpages

2010-04-04 Thread Venable
Jürgen Spitzmüller  writes:
> 
> Which version of LyX exactly? LyX 1.6.5 included the following bug fix:
> 
> - When using the PDF-Pages external inset, copy the included PDF file to
>   the temporary directory, where LaTeX searches it (bug 6345).
> 
> Jürgen
> 
> 

An alternate solution that I have found works for me is to export the LyX file
to LaTeX and then pdflatex using TeXworks.

HTH.

PS - LyX 1.6.5, MikTeX 2.8 (including TeXworks 0.3 r.514), Windows 7 Enterprise






Error using -pdfpages- package with ERT and relative paths

2010-04-03 Thread Venable
Dear LyX users,

I am having some trouble using the -pdfpages- package to insert some
external PDFs into my LyX document.

Everything works fine when I use the Insert - File - External Material
menu option. However, for transparency and ease of reading, I would
prefer to use ERT and the -includepdf- command.

I am able to use the \includepdf command writing directly in LaTeX as
long as I specify the absolute path of the pdf to be included, e.g.
\includepdf{c:/research/dummy.pdf}
or
\includepdf{c:/research/dummy}
(whether the pdf extension is specified does not seem to matter)

For collaboration and for cross-project re-use, it would be very
useful if it were not necessary to specify the absolute path, but use
relative paths instead. For example, if the LyX document were in the
c:/research/ folder, it would be preferable to use just
\includepdf{dummy}

However, this does not seem to be possible.(1) As an example, I
imported the example tex file provided in the pdfpages documentation
(2) into LyX and attempted to export to PDF.

With File - Export - pdflatex, no pdf is created. When I click View
PDF, I get the following error message:

File does not exist:
C:/Users/MyName/AppData/Local/Temp/lyx_tempdir.Hp5404/lyx_tmpbuf1/pdf-ex.pdf

Does anyone have a suggestion on how to fix this?

Many thanks in advance.

PS

(1) This is a bit surprising, given that this (includepdf with only a
relative path) is what is created in LaTeX using the Include External
Document menu option and exporting to Plain TeX.

(2) Available at http://www-hep2.fzu.cz/tex/texmf-dist/doc/latex/pdfpages/

In fact, this is what is created using the Include External Document
menu option and exported to Plain TeX.


Re: Error using pdfpages package with ERT and relative paths

2010-04-03 Thread Venable

Venable venabl...@... writes:

 


Apologies for the near-repeat of the previous post. I googled the heck of this
problem and it seems yesterday's posts had not been captured yet.





Error using -pdfpages- package with ERT and relative paths

2010-04-03 Thread Venable
Dear LyX users,

I am having some trouble using the -pdfpages- package to insert some
external PDFs into my LyX document.

Everything works fine when I use the Insert - File - External Material
menu option. However, for transparency and ease of reading, I would
prefer to use ERT and the -includepdf- command.

I am able to use the \includepdf command writing directly in LaTeX as
long as I specify the absolute path of the pdf to be included, e.g.
\includepdf{c:/research/dummy.pdf}
or
\includepdf{c:/research/dummy}
(whether the pdf extension is specified does not seem to matter)

For collaboration and for cross-project re-use, it would be very
useful if it were not necessary to specify the absolute path, but use
relative paths instead. For example, if the LyX document were in the
c:/research/ folder, it would be preferable to use just
\includepdf{dummy}

However, this does not seem to be possible.(1) As an example, I
imported the example tex file provided in the pdfpages documentation
(2) into LyX and attempted to export to PDF.

With File - Export - pdflatex, no pdf is created. When I click View
PDF, I get the following error message:

File does not exist:
C:/Users/MyName/AppData/Local/Temp/lyx_tempdir.Hp5404/lyx_tmpbuf1/pdf-ex.pdf

Does anyone have a suggestion on how to fix this?

Many thanks in advance.

PS

(1) This is a bit surprising, given that this (includepdf with only a
relative path) is what is created in LaTeX using the Include External
Document menu option and exporting to Plain TeX.

(2) Available at http://www-hep2.fzu.cz/tex/texmf-dist/doc/latex/pdfpages/

In fact, this is what is created using the Include External Document
menu option and exported to Plain TeX.


Re: Error using pdfpages package with ERT and relative paths

2010-04-03 Thread Venable

Venable venabl...@... writes:

 


Apologies for the near-repeat of the previous post. I googled the heck of this
problem and it seems yesterday's posts had not been captured yet.





Error using -pdfpages- package with ERT and relative paths

2010-04-03 Thread Venable
Dear LyX users,

I am having some trouble using the -pdfpages- package to insert some
external PDFs into my LyX document.

Everything works fine when I use the Insert - File - External Material
menu option. However, for transparency and ease of reading, I would
prefer to use ERT and the -includepdf- command.

I am able to use the \includepdf command writing directly in LaTeX as
long as I specify the absolute path of the pdf to be included, e.g.
\includepdf{c:/research/dummy.pdf}
or
\includepdf{c:/research/dummy}
(whether the pdf extension is specified does not seem to matter)

For collaboration and for cross-project re-use, it would be very
useful if it were not necessary to specify the absolute path, but use
relative paths instead. For example, if the LyX document were in the
c:/research/ folder, it would be preferable to use just
\includepdf{dummy}

However, this does not seem to be possible.(1) As an example, I
imported the example tex file provided in the pdfpages documentation
(2) into LyX and attempted to export to PDF.

With File - Export - pdflatex, no pdf is created. When I click View
PDF, I get the following error message:

File does not exist:
C:/Users/MyName/AppData/Local/Temp/lyx_tempdir.Hp5404/lyx_tmpbuf1/pdf-ex.pdf

Does anyone have a suggestion on how to fix this?

Many thanks in advance.

PS

(1) This is a bit surprising, given that this (includepdf with only a
relative path) is what is created in LaTeX using the Include External
Document menu option and exporting to Plain TeX.

(2) Available at http://www-hep2.fzu.cz/tex/texmf-dist/doc/latex/pdfpages/

In fact, this is what is created using the Include External Document
menu option and exported to Plain TeX.


Re: Error using pdfpages package with ERT and relative paths

2010-04-03 Thread Venable

Venable <venabl...@...> writes:

> 


Apologies for the near-repeat of the previous post. I googled the heck of this
problem and it seems yesterday's posts had not been captured yet.





2 questions regarding float placement

2010-03-22 Thread Venable
Hi LyX-users,

I have 2 questions regarding the placement of floats and the numbers
assigned to them in cross-references.

The first is whether it is possible to have to order in which floats
are referred to in the text determine the order in which they appear
in the final document.

For example, suppose I have 2 tables, A and B, but I don't know
ex-ante which will logically appear first in my final document. I
would like for this to be automatically determined by the one that is
first referred to in the text. Is this possible?

Second, I would like to know how best to maintain consistency in table
and figure numbering between a paper and a corresponding Beamer
presentation.

That is, suppose I have a paper with three tables but in a brief
presentation only want to use the first and third of these. For
example, the second is just a variant on the first that is worth
including in a paper but not needed for a time-limited presentation.
It would be useful for the numbering in the presentation to match the
numbering in the paper, so as not to confuse people in the audience
who have a copy of the paper.

Thanks.


2 questions regarding float placement

2010-03-22 Thread Venable
Hi LyX-users,

I have 2 questions regarding the placement of floats and the numbers
assigned to them in cross-references.

The first is whether it is possible to have to order in which floats
are referred to in the text determine the order in which they appear
in the final document.

For example, suppose I have 2 tables, A and B, but I don't know
ex-ante which will logically appear first in my final document. I
would like for this to be automatically determined by the one that is
first referred to in the text. Is this possible?

Second, I would like to know how best to maintain consistency in table
and figure numbering between a paper and a corresponding Beamer
presentation.

That is, suppose I have a paper with three tables but in a brief
presentation only want to use the first and third of these. For
example, the second is just a variant on the first that is worth
including in a paper but not needed for a time-limited presentation.
It would be useful for the numbering in the presentation to match the
numbering in the paper, so as not to confuse people in the audience
who have a copy of the paper.

Thanks.


2 questions regarding float placement

2010-03-22 Thread Venable
Hi LyX-users,

I have 2 questions regarding the placement of floats and the numbers
assigned to them in cross-references.

The first is whether it is possible to have to order in which floats
are referred to in the text determine the order in which they appear
in the final document.

For example, suppose I have 2 tables, A and B, but I don't know
ex-ante which will logically appear first in my final document. I
would like for this to be automatically determined by the one that is
first referred to in the text. Is this possible?

Second, I would like to know how best to maintain consistency in table
and figure numbering between a paper and a corresponding Beamer
presentation.

That is, suppose I have a paper with three tables but in a brief
presentation only want to use the first and third of these. For
example, the second is just a variant on the first that is worth
including in a paper but not needed for a time-limited presentation.
It would be useful for the numbering in the presentation to match the
numbering in the paper, so as not to confuse people in the audience
who have a copy of the paper.

Thanks.


Re: Error exporting to plain LaTeX when doc includes pdf graphic

2009-11-28 Thread Venable
On Fri, Nov 27, 2009 at 6:22 PM, Paul Rubin ru...@msu.edu wrote:
 Venable wrote:
 Dear LyX users,

 I have recently started getting a strange error when I try to export a
 LyX file to plain LaTeX via File - Export - LaTeX (plain).

 When I attempt to export, an error message appears reading
 LyX: Cannot convert file
 No information for converting pdf format files to eps
 Define a converter in the preferences

 As one might expect, I have only seen this error occur when the
 document includes a pdf file as a graphic. However, the error seems
 strange since I am not trying to convert anything to eps, just create
 LaTeX code. Despite the error message, the LaTeX file actually is
 created and seems to be correct. However, it (a) is annoying and (b)
 leads me to think something else may be wrong, so I would like to fix
 it.

 First of all, does anyone have any insight into why LyX would ask for
 a PDF - EPS converter when the requested conversion is not to eps?

 Exporting to plain LaTeX, as opposed to LaTeX (pdflatex), implies an
 intent to generate a DVI file.  Since LaTeX can only include EPS
 graphics (not PDF) in DVI output, LyX helpfully converts your PDF
 graphics to EPS (or at least tries to).  Bear in mind that LyX must
 insert a path to the image file; the alternative would be for LyX to
 include a path to the PDF file, which would be doomed to failure when
 you ran LaTeX against the document.

 Pdflatex, in contrast, wants PDF files and cannot handle EPS files, so
 in your case compiling with pdflatex requires no conversions.


Thanks Paul, compiling with pdflatex (File - Export - LaTeX
(pdflatex)) went through with no error message, and the resulting tex
file looks great.


Re: Error exporting to plain LaTeX when doc includes pdf graphic

2009-11-28 Thread Venable
On Fri, Nov 27, 2009 at 6:22 PM, Paul Rubin ru...@msu.edu wrote:
 Venable wrote:
 Dear LyX users,

 I have recently started getting a strange error when I try to export a
 LyX file to plain LaTeX via File - Export - LaTeX (plain).

 When I attempt to export, an error message appears reading
 LyX: Cannot convert file
 No information for converting pdf format files to eps
 Define a converter in the preferences

 As one might expect, I have only seen this error occur when the
 document includes a pdf file as a graphic. However, the error seems
 strange since I am not trying to convert anything to eps, just create
 LaTeX code. Despite the error message, the LaTeX file actually is
 created and seems to be correct. However, it (a) is annoying and (b)
 leads me to think something else may be wrong, so I would like to fix
 it.

 First of all, does anyone have any insight into why LyX would ask for
 a PDF - EPS converter when the requested conversion is not to eps?

 Exporting to plain LaTeX, as opposed to LaTeX (pdflatex), implies an
 intent to generate a DVI file.  Since LaTeX can only include EPS
 graphics (not PDF) in DVI output, LyX helpfully converts your PDF
 graphics to EPS (or at least tries to).  Bear in mind that LyX must
 insert a path to the image file; the alternative would be for LyX to
 include a path to the PDF file, which would be doomed to failure when
 you ran LaTeX against the document.

 Pdflatex, in contrast, wants PDF files and cannot handle EPS files, so
 in your case compiling with pdflatex requires no conversions.


Thanks Paul, compiling with pdflatex (File - Export - LaTeX
(pdflatex)) went through with no error message, and the resulting tex
file looks great.


Re: Error exporting to plain LaTeX when doc includes pdf graphic

2009-11-28 Thread Venable
On Fri, Nov 27, 2009 at 6:22 PM, Paul Rubin <ru...@msu.edu> wrote:
> Venable wrote:
>> Dear LyX users,
>>
>> I have recently started getting a strange error when I try to export a
>> LyX file to plain LaTeX via File - Export - LaTeX (plain).
>>
>> When I attempt to export, an error message appears reading
>> LyX: Cannot convert file
>> No information for converting pdf format files to eps
>> Define a converter in the preferences
>>
>> As one might expect, I have only seen this error occur when the
>> document includes a pdf file as a graphic. However, the error seems
>> strange since I am not trying to convert anything to eps, just create
>> LaTeX code. Despite the error message, the LaTeX file actually is
>> created and seems to be correct. However, it (a) is annoying and (b)
>> leads me to think something else may be wrong, so I would like to fix
>> it.
>>
>> First of all, does anyone have any insight into why LyX would ask for
>> a PDF -> EPS converter when the requested conversion is not to eps?
>
> Exporting to plain LaTeX, as opposed to LaTeX (pdflatex), implies an
> intent to generate a DVI file.  Since LaTeX can only include EPS
> graphics (not PDF) in DVI output, LyX helpfully converts your PDF
> graphics to EPS (or at least tries to).  Bear in mind that LyX must
> insert a path to the image file; the alternative would be for LyX to
> include a path to the PDF file, which would be doomed to failure when
> you ran LaTeX against the document.
>
> Pdflatex, in contrast, wants PDF files and cannot handle EPS files, so
> in your case compiling with pdflatex requires no conversions.
>>

Thanks Paul, compiling with pdflatex (File - Export - LaTeX
(pdflatex)) went through with no error message, and the resulting tex
file looks great.


Error exporting to plain LaTeX when doc includes pdf graphic

2009-11-27 Thread Venable
Dear LyX users,

I have recently started getting a strange error when I try to export a
LyX file to plain LaTeX via File - Export - LaTeX (plain).

When I attempt to export, an error message appears reading
LyX: Cannot convert file
No information for converting pdf format files to eps
Define a converter in the preferences

As one might expect, I have only seen this error occur when the
document includes a pdf file as a graphic. However, the error seems
strange since I am not trying to convert anything to eps, just create
LaTeX code. Despite the error message, the LaTeX file actually is
created and seems to be correct. However, it (a) is annoying and (b)
leads me to think something else may be wrong, so I would like to fix
it.

First of all, does anyone have any insight into why LyX would ask for
a PDF - EPS converter when the requested conversion is not to eps?

Second, does anyone know what I should do to fix this problem? I
currently have two converters defined:
PDF (pdflatex) to EPS: pdftops -eps $$i $$o
PDF (ps2pdf) to EPS: pdf2ps $$i $$o

Minimal working (and non-working) examples below.

Other possibly relevant bits of information: I use LyX 1.6.4 on
Windows XP SP3, with MikTeX 2.8 (complete version); the file is
exported to pdf via pdflatex without any problems; this error started
some time (but not immediately) after I began using the -epstopdf-
package, however the error occurs with documents that do not include
this package nor include any eps files.

Many thanks.


-- lyx file that exports fine to both pdf and plain latex --
-- does not include a pdf graphic --
#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author 
\author 
\end_header

\begin_body

\begin_layout Standard
Hello world.
\end_layout

\end_body
\end_document



-- latex file created by the above lyx file
%% LyX 1.6.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}

\begin{document}
Hello world.
\end{document}


-- lyx file that exports fine to pdf but gives error message when
exporting to latex --
-- includes ability_levels_solution.pdf as a graphic (this is just a
file I have laying around, I don't think the particular PDF used
matters --
#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author 
\author 
\end_header

\begin_body

\begin_layout Standard
Hello world.
\end_layout

\begin_layout Standard
\begin_inset Graphics
filename ability_levels_solution.pdf

\end_inset


\end_layout

\end_body
\end_document


--- latex file created by the above lyx file (despite error message,
latex file created) ---
%% LyX 1.6.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}
\usepackage{babel}

\begin{document}
Hello world.

\includegraphics{ability_levels_solution}
\end{document}


Error exporting to plain LaTeX when doc includes pdf graphic

2009-11-27 Thread Venable
Dear LyX users,

I have recently started getting a strange error when I try to export a
LyX file to plain LaTeX via File - Export - LaTeX (plain).

When I attempt to export, an error message appears reading
LyX: Cannot convert file
No information for converting pdf format files to eps
Define a converter in the preferences

As one might expect, I have only seen this error occur when the
document includes a pdf file as a graphic. However, the error seems
strange since I am not trying to convert anything to eps, just create
LaTeX code. Despite the error message, the LaTeX file actually is
created and seems to be correct. However, it (a) is annoying and (b)
leads me to think something else may be wrong, so I would like to fix
it.

First of all, does anyone have any insight into why LyX would ask for
a PDF - EPS converter when the requested conversion is not to eps?

Second, does anyone know what I should do to fix this problem? I
currently have two converters defined:
PDF (pdflatex) to EPS: pdftops -eps $$i $$o
PDF (ps2pdf) to EPS: pdf2ps $$i $$o

Minimal working (and non-working) examples below.

Other possibly relevant bits of information: I use LyX 1.6.4 on
Windows XP SP3, with MikTeX 2.8 (complete version); the file is
exported to pdf via pdflatex without any problems; this error started
some time (but not immediately) after I began using the -epstopdf-
package, however the error occurs with documents that do not include
this package nor include any eps files.

Many thanks.


-- lyx file that exports fine to both pdf and plain latex --
-- does not include a pdf graphic --
#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author 
\author 
\end_header

\begin_body

\begin_layout Standard
Hello world.
\end_layout

\end_body
\end_document



-- latex file created by the above lyx file
%% LyX 1.6.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}

\begin{document}
Hello world.
\end{document}


-- lyx file that exports fine to pdf but gives error message when
exporting to latex --
-- includes ability_levels_solution.pdf as a graphic (this is just a
file I have laying around, I don't think the particular PDF used
matters --
#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author 
\author 
\end_header

\begin_body

\begin_layout Standard
Hello world.
\end_layout

\begin_layout Standard
\begin_inset Graphics
filename ability_levels_solution.pdf

\end_inset


\end_layout

\end_body
\end_document


--- latex file created by the above lyx file (despite error message,
latex file created) ---
%% LyX 1.6.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}
\usepackage{babel}

\begin{document}
Hello world.

\includegraphics{ability_levels_solution}
\end{document}


Error exporting to plain LaTeX when doc includes pdf graphic

2009-11-27 Thread Venable
Dear LyX users,

I have recently started getting a strange error when I try to export a
LyX file to plain LaTeX via File - Export - LaTeX (plain).

When I attempt to export, an error message appears reading
LyX: Cannot convert file
No information for converting pdf format files to eps
Define a converter in the preferences

As one might expect, I have only seen this error occur when the
document includes a pdf file as a graphic. However, the error seems
strange since I am not trying to convert anything to eps, just create
LaTeX code. Despite the error message, the LaTeX file actually is
created and seems to be correct. However, it (a) is annoying and (b)
leads me to think something else may be wrong, so I would like to fix
it.

First of all, does anyone have any insight into why LyX would ask for
a PDF -> EPS converter when the requested conversion is not to eps?

Second, does anyone know what I should do to fix this problem? I
currently have two converters defined:
PDF (pdflatex) to EPS: pdftops -eps $$i $$o
PDF (ps2pdf) to EPS: pdf2ps $$i $$o

Minimal working (and non-working) examples below.

Other possibly relevant bits of information: I use LyX 1.6.4 on
Windows XP SP3, with MikTeX 2.8 (complete version); the file is
exported to pdf via pdflatex without any problems; this error started
some time (but not immediately) after I began using the -epstopdf-
package, however the error occurs with documents that do not include
this package nor include any eps files.

Many thanks.


-- lyx file that exports fine to both pdf and plain latex --
-- does not include a pdf graphic --
#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header

\begin_body

\begin_layout Standard
Hello world.
\end_layout

\end_body
\end_document



-- latex file created by the above lyx file
%% LyX 1.6.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{babel}

\begin{document}
Hello world.
\end{document}


-- lyx file that exports fine to pdf but gives error message when
exporting to latex --
-- includes ability_levels_solution.pdf as a graphic (this is just a
file I have laying around, I don't think the particular PDF used
matters --
#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header

\begin_body

\begin_layout Standard
Hello world.
\end_layout

\begin_layout Standard
\begin_inset Graphics
filename ability_levels_solution.pdf

\end_inset


\end_layout

\end_body
\end_document


--- latex file created by the above lyx file (despite error message,
latex file created) ---
%% LyX 1.6.4 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{graphicx}
\usepackage{babel}

\begin{document}
Hello world.

\includegraphics{ability_levels_solution}
\end{document}


question regarding LyX's placement of hyperref

2009-10-30 Thread Venable
Dear LyX users,

I have a small question about the way LyX places hyperref among other
packages. From exporting LyX files to plain latex, it appears that LyX
does not place hyperref last among the packages, as recommended in the
hyperref manual. This is innocuous 99% of the time but has in my
experience caused problems for some more esoteric packages such as
bibentry or endfloat.

A simple workaround is to hand-code \usepackage{hyperref} (with
whatever options) into the LaTeX preamble rather than using the PDF
Properties pulldown menu. However, since the pulldown menu is very
convenient, I'm wondering if there's a way to customize LyX to place
hyperref in the right place.

Thanks.


question regarding LyX's placement of hyperref

2009-10-30 Thread Venable
Dear LyX users,

I have a small question about the way LyX places hyperref among other
packages. From exporting LyX files to plain latex, it appears that LyX
does not place hyperref last among the packages, as recommended in the
hyperref manual. This is innocuous 99% of the time but has in my
experience caused problems for some more esoteric packages such as
bibentry or endfloat.

A simple workaround is to hand-code \usepackage{hyperref} (with
whatever options) into the LaTeX preamble rather than using the PDF
Properties pulldown menu. However, since the pulldown menu is very
convenient, I'm wondering if there's a way to customize LyX to place
hyperref in the right place.

Thanks.


question regarding LyX's placement of hyperref

2009-10-30 Thread Venable
Dear LyX users,

I have a small question about the way LyX places hyperref among other
packages. From exporting LyX files to plain latex, it appears that LyX
does not place hyperref last among the packages, as recommended in the
hyperref manual. This is innocuous 99% of the time but has in my
experience caused problems for some more esoteric packages such as
bibentry or endfloat.

A simple workaround is to hand-code \usepackage{hyperref} (with
whatever options) into the LaTeX preamble rather than using the PDF
Properties pulldown menu. However, since the pulldown menu is very
convenient, I'm wondering if there's a way to customize LyX to place
hyperref in the right place.

Thanks.


Re: LyX crashes when I attempt to edit a URL

2009-08-31 Thread Venable
On Mon, Aug 31, 2009 at 9:53 AM, Uwe Stöhruwesto...@web.de wrote:
 Venable schrieb:

 I am having trouble with LyX crashing when I try to edit urls. I am
 able to edit them within ERT boxes but when I try to click on one that
 is in a little gray box (i.e. just the letters URL visible, not the
 entire URL, although the URL looks well-formed in the LaTeX preview
 window), LyX freezes and then crashes

 Can you please provide a small LyX example file to reproduce?

 regards Uwe


Yes, here is a small example (I am appending text rather than
attaching the file but certainly could attach if that is more useful)

[begin file lyx-url-crash.lyx]


#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\begin_preamble

\end_preamble
\use_default_options false
\language english
\inputencoding latin9
\font_roman times
\font_sans default
\font_typewriter default
\font_default_family rmdefault
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize 12
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\papersize default
\use_geometry true
\use_amsmath 2
\use_esint 0
\cite_engine natbib_authoryear
\use_bibtopic false
\paperorientation portrait
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author 
\author 
\end_header

\begin_body

\begin_layout Standard
Minimal example
\end_layout

\begin_layout Standard
Expanded link (blue
\begin_inset Quotes eld
\end_inset

URL
\begin_inset Quotes erd
\end_inset

 visible in gray box, url also visible in ERT box)
\end_layout

\begin_layout Standard
\noindent

\series bold
Course website:
\series default

\begin_inset Flex URL
status open

\begin_layout Plain Layout

http://www.yahoo.com
\end_layout

\end_inset


\end_layout

\begin_layout Standard
Crash-producing link (blue
\begin_inset Quotes eld
\end_inset

URL
\begin_inset Quotes erd
\end_inset

 visible in gray box, url itself is not visible in LyX but is visible in
 LaTeX Source window.
\end_layout

\begin_layout Standard
*
\emph on
World Development Indicators 2008: Poverty data
\emph default
, World Bank, December 2008.

\begin_inset Flex URL
status collapsed

\begin_layout Plain Layout

http://siteresources.worldbank.org/DATASTATISTICS/Resources/WDI08supplement1216.pdf
\end_layout

\end_inset


\end_layout

\end_body
\end_document



[end of file lyx-url-crash.lyx]

On Mon, Aug 31, 2009 at 9:53 AM, Uwe Stöhruwesto...@web.de wrote:
 Venable schrieb:

 I am having trouble with LyX crashing when I try to edit urls. I am
 able to edit them within ERT boxes but when I try to click on one that
 is in a little gray box (i.e. just the letters URL visible, not the
 entire URL, although the URL looks well-formed in the LaTeX preview
 window), LyX freezes and then crashes

 Can you please provide a small LyX example file to reproduce?

 regards Uwe



Re: LyX crashes when I attempt to edit a URL

2009-08-31 Thread Venable
On Mon, Aug 31, 2009 at 5:00 PM, Uwe Stöhruwesto...@web.de wrote:
 Venable schrieb:

 Yes, here is a small example (I am appending text rather than
 attaching the file but certainly could attach if that is more useful)

 Please attach. My mail client screwed the format up making it unusable.

 regards Uwe


Certainly.

Also, it occurs to me that a relevant detail may be that this file was
originally created in SWP, then exported to plain LaTex and imported
into LyX.

Many thanks.


lyx-url-crash.lyx
Description: Binary data


Re: LyX crashes when I attempt to edit a URL

2009-08-31 Thread Venable
On Mon, Aug 31, 2009 at 9:53 AM, Uwe Stöhruwesto...@web.de wrote:
 Venable schrieb:

 I am having trouble with LyX crashing when I try to edit urls. I am
 able to edit them within ERT boxes but when I try to click on one that
 is in a little gray box (i.e. just the letters URL visible, not the
 entire URL, although the URL looks well-formed in the LaTeX preview
 window), LyX freezes and then crashes

 Can you please provide a small LyX example file to reproduce?

 regards Uwe


Yes, here is a small example (I am appending text rather than
attaching the file but certainly could attach if that is more useful)

[begin file lyx-url-crash.lyx]


#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\begin_preamble

\end_preamble
\use_default_options false
\language english
\inputencoding latin9
\font_roman times
\font_sans default
\font_typewriter default
\font_default_family rmdefault
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize 12
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\papersize default
\use_geometry true
\use_amsmath 2
\use_esint 0
\cite_engine natbib_authoryear
\use_bibtopic false
\paperorientation portrait
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author 
\author 
\end_header

\begin_body

\begin_layout Standard
Minimal example
\end_layout

\begin_layout Standard
Expanded link (blue
\begin_inset Quotes eld
\end_inset

URL
\begin_inset Quotes erd
\end_inset

 visible in gray box, url also visible in ERT box)
\end_layout

\begin_layout Standard
\noindent

\series bold
Course website:
\series default

\begin_inset Flex URL
status open

\begin_layout Plain Layout

http://www.yahoo.com
\end_layout

\end_inset


\end_layout

\begin_layout Standard
Crash-producing link (blue
\begin_inset Quotes eld
\end_inset

URL
\begin_inset Quotes erd
\end_inset

 visible in gray box, url itself is not visible in LyX but is visible in
 LaTeX Source window.
\end_layout

\begin_layout Standard
*
\emph on
World Development Indicators 2008: Poverty data
\emph default
, World Bank, December 2008.

\begin_inset Flex URL
status collapsed

\begin_layout Plain Layout

http://siteresources.worldbank.org/DATASTATISTICS/Resources/WDI08supplement1216.pdf
\end_layout

\end_inset


\end_layout

\end_body
\end_document



[end of file lyx-url-crash.lyx]

On Mon, Aug 31, 2009 at 9:53 AM, Uwe Stöhruwesto...@web.de wrote:
 Venable schrieb:

 I am having trouble with LyX crashing when I try to edit urls. I am
 able to edit them within ERT boxes but when I try to click on one that
 is in a little gray box (i.e. just the letters URL visible, not the
 entire URL, although the URL looks well-formed in the LaTeX preview
 window), LyX freezes and then crashes

 Can you please provide a small LyX example file to reproduce?

 regards Uwe



Re: LyX crashes when I attempt to edit a URL

2009-08-31 Thread Venable
On Mon, Aug 31, 2009 at 5:00 PM, Uwe Stöhruwesto...@web.de wrote:
 Venable schrieb:

 Yes, here is a small example (I am appending text rather than
 attaching the file but certainly could attach if that is more useful)

 Please attach. My mail client screwed the format up making it unusable.

 regards Uwe


Certainly.

Also, it occurs to me that a relevant detail may be that this file was
originally created in SWP, then exported to plain LaTex and imported
into LyX.

Many thanks.


lyx-url-crash.lyx
Description: Binary data


Re: LyX crashes when I attempt to edit a URL

2009-08-31 Thread Venable
On Mon, Aug 31, 2009 at 9:53 AM, Uwe Stöhr<uwesto...@web.de> wrote:
> Venable schrieb:
>
>> I am having trouble with LyX crashing when I try to edit urls. I am
>> able to edit them within ERT boxes but when I try to click on one that
>> is in a little gray box (i.e. just the letters "URL" visible, not the
>> entire URL, although the URL looks well-formed in the LaTeX preview
>> window), LyX freezes and then crashes
>
> Can you please provide a small LyX example file to reproduce?
>
> regards Uwe
>

Yes, here is a small example (I am appending text rather than
attaching the file but certainly could attach if that is more useful)

[begin file lyx-url-crash.lyx]


#LyX 1.6.4 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\begin_preamble

\end_preamble
\use_default_options false
\language english
\inputencoding latin9
\font_roman times
\font_sans default
\font_typewriter default
\font_default_family rmdefault
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100

\graphics default
\paperfontsize 12
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\papersize default
\use_geometry true
\use_amsmath 2
\use_esint 0
\cite_engine natbib_authoryear
\use_bibtopic false
\paperorientation portrait
\leftmargin 1in
\topmargin 1in
\rightmargin 1in
\bottommargin 1in
\secnumdepth 3
\tocdepth 3
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header

\begin_body

\begin_layout Standard
Minimal example
\end_layout

\begin_layout Standard
Expanded link (blue
\begin_inset Quotes eld
\end_inset

URL
\begin_inset Quotes erd
\end_inset

 visible in gray box, url also visible in ERT box)
\end_layout

\begin_layout Standard
\noindent

\series bold
Course website:
\series default

\begin_inset Flex URL
status open

\begin_layout Plain Layout

http://www.yahoo.com
\end_layout

\end_inset


\end_layout

\begin_layout Standard
Crash-producing link (blue
\begin_inset Quotes eld
\end_inset

URL
\begin_inset Quotes erd
\end_inset

 visible in gray box, url itself is not visible in LyX but is visible in
 LaTeX Source window.
\end_layout

\begin_layout Standard
*
\emph on
World Development Indicators 2008: Poverty data
\emph default
, World Bank, December 2008.

\begin_inset Flex URL
status collapsed

\begin_layout Plain Layout

http://siteresources.worldbank.org/DATASTATISTICS/Resources/WDI08supplement1216.pdf
\end_layout

\end_inset


\end_layout

\end_body
\end_document



[end of file lyx-url-crash.lyx]

On Mon, Aug 31, 2009 at 9:53 AM, Uwe Stöhr<uwesto...@web.de> wrote:
> Venable schrieb:
>
>> I am having trouble with LyX crashing when I try to edit urls. I am
>> able to edit them within ERT boxes but when I try to click on one that
>> is in a little gray box (i.e. just the letters "URL" visible, not the
>> entire URL, although the URL looks well-formed in the LaTeX preview
>> window), LyX freezes and then crashes
>
> Can you please provide a small LyX example file to reproduce?
>
> regards Uwe
>


Re: LyX crashes when I attempt to edit a URL

2009-08-31 Thread Venable
On Mon, Aug 31, 2009 at 5:00 PM, Uwe Stöhr<uwesto...@web.de> wrote:
> Venable schrieb:
>
>> Yes, here is a small example (I am appending text rather than
>> attaching the file but certainly could attach if that is more useful)
>
> Please attach. My mail client screwed the format up making it unusable.
>
> regards Uwe
>

Certainly.

Also, it occurs to me that a relevant detail may be that this file was
originally created in SWP, then exported to plain LaTex and imported
into LyX.

Many thanks.


lyx-url-crash.lyx
Description: Binary data


LyX crashes when I attempt to edit a URL

2009-08-30 Thread Venable
Hi LyX users,

I use LyX 1.6.4 on Windows XP.

I am having trouble with LyX crashing when I try to edit urls. I am
able to edit them within ERT boxes but when I try to click on one that
is in a little gray box (i.e. just the letters URL visible, not the
entire URL, although the URL looks well-formed in the LaTeX preview
window), LyX freezes and then crashes with the following popup error
message:

LyX Software exception Detected
LyX has caught an exception, it will now attempt to save all unsaved
documents and exit.
Exception:bad allocation

AppName: lyx.exe AppVer: 0.0.0.0 ModName: lyx.exe
ModVer: 0.0.0.0  Offset: 4cd4

Any advice on how to fix this problem would be appreciated.


LyX crashes when I attempt to edit a URL

2009-08-30 Thread Venable
Hi LyX users,

I use LyX 1.6.4 on Windows XP.

I am having trouble with LyX crashing when I try to edit urls. I am
able to edit them within ERT boxes but when I try to click on one that
is in a little gray box (i.e. just the letters URL visible, not the
entire URL, although the URL looks well-formed in the LaTeX preview
window), LyX freezes and then crashes with the following popup error
message:

LyX Software exception Detected
LyX has caught an exception, it will now attempt to save all unsaved
documents and exit.
Exception:bad allocation

AppName: lyx.exe AppVer: 0.0.0.0 ModName: lyx.exe
ModVer: 0.0.0.0  Offset: 4cd4

Any advice on how to fix this problem would be appreciated.


LyX crashes when I attempt to edit a URL

2009-08-30 Thread Venable
Hi LyX users,

I use LyX 1.6.4 on Windows XP.

I am having trouble with LyX crashing when I try to edit urls. I am
able to edit them within ERT boxes but when I try to click on one that
is in a little gray box (i.e. just the letters "URL" visible, not the
entire URL, although the URL looks well-formed in the LaTeX preview
window), LyX freezes and then crashes with the following popup error
message:

LyX Software exception Detected
LyX has caught an exception, it will now attempt to save all unsaved
documents and exit.
Exception:bad allocation

AppName: lyx.exe AppVer: 0.0.0.0 ModName: lyx.exe
ModVer: 0.0.0.0  Offset: 4cd4

Any advice on how to fix this problem would be appreciated.


Re: Question about command sequences

2009-08-15 Thread Venable
Hi Pavel,

Thanks for the tip. I looked at http://wiki.lyx.org/LyX/LyxFunctions
but there was not much in the way of direction there. Could you
possibly give me a bit more insight?

On Sat, Aug 15, 2009 at 4:56 AM, Pavel Sandasa...@lyx.org wrote:
 Venable wrote:
 having the cursor
 appear in the frametitle field,

 try to look on LFUN_CHAR_LEFT and LFUN_REPEAT.
 pavel



Re: Question about command sequences

2009-08-15 Thread Venable
Hi Pavel,

Thanks for the tip. I looked at http://wiki.lyx.org/LyX/LyxFunctions
but there was not much in the way of direction there. Could you
possibly give me a bit more insight?

On Sat, Aug 15, 2009 at 4:56 AM, Pavel Sandasa...@lyx.org wrote:
 Venable wrote:
 having the cursor
 appear in the frametitle field,

 try to look on LFUN_CHAR_LEFT and LFUN_REPEAT.
 pavel



Re: Question about command sequences

2009-08-15 Thread Venable
Hi Pavel,

Thanks for the tip. I looked at http://wiki.lyx.org/LyX/LyxFunctions
but there was not much in the way of direction there. Could you
possibly give me a bit more insight?

On Sat, Aug 15, 2009 at 4:56 AM, Pavel Sanda<sa...@lyx.org> wrote:
> Venable wrote:
>> having the cursor
>> appear in the frametitle field,
>
> try to look on LFUN_CHAR_LEFT and LFUN_REPEAT.
> pavel
>


Question about command sequences

2009-08-14 Thread Venable
Dear Lyx-list,

I am trying to use Command Sequences to come up with a simple way to
create frames in Beamer without resorting to the use of \lyxframe{} or
repeated copying-and-pasting. My goal is to use a minimal number of
keystrokes to create plain LaTeX \begin{frame}, \frametitle{} and
\end{frame} commands, so as to be able to collaborate with non-LyX
users.

I have tried using Command Sequences and have run into a couple of
problems. My approach was to create two commands:

C-[ would insert the latex code to begin the frame and create a
placeholder for the frame title:
\begin{frame} \frametitle{}

C-] would insert the latex code to end the frame:
\end{frame}

(The choice of [ and ] was arbitrary.)

I created the following Command Sequences in the
Tools-Preferences-Editing dialog box:

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
This is assigned keyboard shortcut Crtl-[

and

command-sequence ert-insert; self-insert \end{frame}; inset-toggle;
This is assigned keyboard shortcut Ctrl-]

The second (end frame) works as expected. However, the first reverses
the order of the ERT boxes somehow, i.e. the resulting content is
\frametitle{} first followed by \begin{frame}.

Why is the order in which the commands appear reversed in this way?
This seems a little odd, although a simple workaround is to redefine
the sequence as

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
(Again, assigned to Ctrl-[ )

That works pretty well, but there is one small complication. I was
expecting the resulting LaTex code to be simply
\begin{frame} \frametitle{}

However, initially something else is inserted (at least, visible in
the preview window):
\inputencoding{latin1}\begin{frame}\inputencoding{latin9}\foreignlanguage{english}{\frametitle{}}

Once I save the file, close and reopen, the content of the preview
window is as expected (i.e. all that extraneous stuff is gone), so
perhaps this is not a big deal. However, it leads me to think I am
doing something wrong and in any event it would be nice to have the
code right from the start.

Can anyone point out what I am doing wrong or should be doing differently?

There are a few refinements I would like to attempt eventually (adding
the begin and end frame code with just one command, having the cursor
appear in the frametitle field, having the resulting material in the
LyX document mimic more closely what you get when you import from
LaTex, etc.) and I would welcome any suggestions along these lines,
but I would like to get this basic, sufficient code right first.

Many thanks.


Question about command sequences

2009-08-14 Thread Venable
Dear Lyx-list,

I am trying to use Command Sequences to come up with a simple way to
create frames in Beamer without resorting to the use of \lyxframe{} or
repeated copying-and-pasting. My goal is to use a minimal number of
keystrokes to create plain LaTeX \begin{frame}, \frametitle{} and
\end{frame} commands, so as to be able to collaborate with non-LyX
users.

I have tried using Command Sequences and have run into a couple of
problems. My approach was to create two commands:

C-[ would insert the latex code to begin the frame and create a
placeholder for the frame title:
\begin{frame} \frametitle{}

C-] would insert the latex code to end the frame:
\end{frame}

(The choice of [ and ] was arbitrary.)

I created the following Command Sequences in the
Tools-Preferences-Editing dialog box:

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
This is assigned keyboard shortcut Crtl-[

and

command-sequence ert-insert; self-insert \end{frame}; inset-toggle;
This is assigned keyboard shortcut Ctrl-]

The second (end frame) works as expected. However, the first reverses
the order of the ERT boxes somehow, i.e. the resulting content is
\frametitle{} first followed by \begin{frame}.

Why is the order in which the commands appear reversed in this way?
This seems a little odd, although a simple workaround is to redefine
the sequence as

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
(Again, assigned to Ctrl-[ )

That works pretty well, but there is one small complication. I was
expecting the resulting LaTex code to be simply
\begin{frame} \frametitle{}

However, initially something else is inserted (at least, visible in
the preview window):
\inputencoding{latin1}\begin{frame}\inputencoding{latin9}\foreignlanguage{english}{\frametitle{}}

Once I save the file, close and reopen, the content of the preview
window is as expected (i.e. all that extraneous stuff is gone), so
perhaps this is not a big deal. However, it leads me to think I am
doing something wrong and in any event it would be nice to have the
code right from the start.

Can anyone point out what I am doing wrong or should be doing differently?

There are a few refinements I would like to attempt eventually (adding
the begin and end frame code with just one command, having the cursor
appear in the frametitle field, having the resulting material in the
LyX document mimic more closely what you get when you import from
LaTex, etc.) and I would welcome any suggestions along these lines,
but I would like to get this basic, sufficient code right first.

Many thanks.


Question about command sequences

2009-08-14 Thread Venable
Dear Lyx-list,

I am trying to use Command Sequences to come up with a simple way to
create frames in Beamer without resorting to the use of \lyxframe{} or
repeated copying-and-pasting. My goal is to use a minimal number of
keystrokes to create plain LaTeX \begin{frame}, \frametitle{} and
\end{frame} commands, so as to be able to collaborate with non-LyX
users.

I have tried using Command Sequences and have run into a couple of
problems. My approach was to create two commands:

C-[ would insert the latex code to begin the frame and create a
placeholder for the frame title:
\begin{frame} \frametitle{}

C-] would insert the latex code to end the frame:
\end{frame}

(The choice of [ and ] was arbitrary.)

I created the following Command Sequences in the
Tools-Preferences-Editing dialog box:

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
This is assigned keyboard shortcut Crtl-[

and

command-sequence ert-insert; self-insert \end{frame}; inset-toggle;
This is assigned keyboard shortcut Ctrl-]

The second (end frame) works as expected. However, the first reverses
the order of the ERT boxes somehow, i.e. the resulting content is
\frametitle{} first followed by \begin{frame}.

Why is the order in which the commands appear reversed in this way?
This seems a little odd, although a simple workaround is to redefine
the sequence as

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
(Again, assigned to Ctrl-[ )

That works pretty well, but there is one small complication. I was
expecting the resulting LaTex code to be simply
\begin{frame} \frametitle{}

However, initially something else is inserted (at least, visible in
the preview window):
\inputencoding{latin1}\begin{frame}\inputencoding{latin9}\foreignlanguage{english}{\frametitle{}}

Once I save the file, close and reopen, the content of the preview
window is as expected (i.e. all that extraneous stuff is gone), so
perhaps this is not a big deal. However, it leads me to think I am
doing something wrong and in any event it would be nice to have the
code right from the start.

Can anyone point out what I am doing wrong or should be doing differently?

There are a few refinements I would like to attempt eventually (adding
the begin and end frame code with just one command, having the cursor
appear in the frametitle field, having the resulting material in the
LyX document mimic more closely what you get when you import from
LaTex, etc.) and I would welcome any suggestions along these lines,
but I would like to get this basic, sufficient code right first.

Many thanks.


Re: Step bullet item lists in Beamer

2009-08-10 Thread Venable
Gentlemen,

Thank you very much for all the time and attention you have paid to my question.

I have tried using Command Sequences to address this problem. My idea
was to create two commands:

C-[ would insert the latex code to begin the frame and create a
placeholder for the frame title:
\begin{frame} \frametitle{}

C-] would insert the latex code to end the frame:
\end{frame}

(The choice of [ and ] was arbitrary.)

I created the following Command Sequences in the
Tools-Preferences-Editing dialog box:

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
This is assigned keyboard shortcut Crtl-[

and

command-sequence ert-insert; self-insert \end{frame}; inset-toggle;
This is assigned keyboard shortcut Ctrl-]

The second (end frame) works as expected. The first reverses the order
of the ERT boxes somehow, i.e. the resulting content is \frametitle{}
first followed by \begin{frame}. This seems a little odd - perhaps I
am doing something wrong - but is not a big deal, I just redefined the
sequence as
command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
(Again, assigned to Ctrl-[ )

That works pretty well, but there is one small complication. I was
expecting the resulting LaTex code to be simply
\begin{frame} \frametitle{}

However, initially something else is inserted (at least, visible in
the preview window):
\inputencoding{latin1}\begin{frame}\inputencoding{latin9}\foreignlanguage{english}{\frametitle{}}

Once I save the file, close and reopen, the content of the preview
window is as expected (i.e. all that extraneous stuff is gone), so
perhaps this is not a big deal. However, it leads me to think I am
doing something wrong and in any event it would be nice to have the
code right from the start. Can anyone point out what I am doing wrong
or should be doing differently?

There are a few refinements I would like to attempt eventually (adding
the begin and end frame code with just one command, having the cursor
appear in the frametitle field, having the resulting material in the
LyX document mimic more closely what you get when you import from
LaTex, etc.) but I would like to get this basic, sufficient code right
first. Any suggestions are most welcome.


Re: Step bullet item lists in Beamer

2009-08-10 Thread Venable
Gentlemen,

Thank you very much for all the time and attention you have paid to my question.

I have tried using Command Sequences to address this problem. My idea
was to create two commands:

C-[ would insert the latex code to begin the frame and create a
placeholder for the frame title:
\begin{frame} \frametitle{}

C-] would insert the latex code to end the frame:
\end{frame}

(The choice of [ and ] was arbitrary.)

I created the following Command Sequences in the
Tools-Preferences-Editing dialog box:

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
This is assigned keyboard shortcut Crtl-[

and

command-sequence ert-insert; self-insert \end{frame}; inset-toggle;
This is assigned keyboard shortcut Ctrl-]

The second (end frame) works as expected. The first reverses the order
of the ERT boxes somehow, i.e. the resulting content is \frametitle{}
first followed by \begin{frame}. This seems a little odd - perhaps I
am doing something wrong - but is not a big deal, I just redefined the
sequence as
command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
(Again, assigned to Ctrl-[ )

That works pretty well, but there is one small complication. I was
expecting the resulting LaTex code to be simply
\begin{frame} \frametitle{}

However, initially something else is inserted (at least, visible in
the preview window):
\inputencoding{latin1}\begin{frame}\inputencoding{latin9}\foreignlanguage{english}{\frametitle{}}

Once I save the file, close and reopen, the content of the preview
window is as expected (i.e. all that extraneous stuff is gone), so
perhaps this is not a big deal. However, it leads me to think I am
doing something wrong and in any event it would be nice to have the
code right from the start. Can anyone point out what I am doing wrong
or should be doing differently?

There are a few refinements I would like to attempt eventually (adding
the begin and end frame code with just one command, having the cursor
appear in the frametitle field, having the resulting material in the
LyX document mimic more closely what you get when you import from
LaTex, etc.) but I would like to get this basic, sufficient code right
first. Any suggestions are most welcome.


Re: Step bullet item lists in Beamer

2009-08-10 Thread Venable
Gentlemen,

Thank you very much for all the time and attention you have paid to my question.

I have tried using Command Sequences to address this problem. My idea
was to create two commands:

C-[ would insert the latex code to begin the frame and create a
placeholder for the frame title:
\begin{frame} \frametitle{}

C-] would insert the latex code to end the frame:
\end{frame}

(The choice of [ and ] was arbitrary.)

I created the following Command Sequences in the
Tools-Preferences-Editing dialog box:

command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
This is assigned keyboard shortcut Crtl-[

and

command-sequence ert-insert; self-insert \end{frame}; inset-toggle;
This is assigned keyboard shortcut Ctrl-]

The second (end frame) works as expected. The first reverses the order
of the ERT boxes somehow, i.e. the resulting content is \frametitle{}
first followed by \begin{frame}. This seems a little odd - perhaps I
am doing something wrong - but is not a big deal, I just redefined the
sequence as
command-sequence ert-insert; self-insert \begin{frame}; inset-toggle;
ert-insert; self-insert \frametitle{}; inset-toggle;
(Again, assigned to Ctrl-[ )

That works pretty well, but there is one small complication. I was
expecting the resulting LaTex code to be simply
\begin{frame} \frametitle{}

However, initially something else is inserted (at least, visible in
the preview window):
\inputencoding{latin1}\begin{frame}\inputencoding{latin9}\foreignlanguage{english}{\frametitle{}}

Once I save the file, close and reopen, the content of the preview
window is as expected (i.e. all that extraneous stuff is gone), so
perhaps this is not a big deal. However, it leads me to think I am
doing something wrong and in any event it would be nice to have the
code right from the start. Can anyone point out what I am doing wrong
or should be doing differently?

There are a few refinements I would like to attempt eventually (adding
the begin and end frame code with just one command, having the cursor
appear in the frametitle field, having the resulting material in the
LyX document mimic more closely what you get when you import from
LaTex, etc.) but I would like to get this basic, sufficient code right
first. Any suggestions are most welcome.


Re: Step bullet item lists in Beamer

2009-08-08 Thread Venable
Thanks for the great suggestion, I will give that a try.

I am a bit of a LyX noob, so the following may be obvious as well,
but: will that export well to plain LaTeX? I have some collaborators
who I have not (yet!) been able to convince to move to LyX, so being
able to share documents is important to me.

Many thanks again, I really appreciate it.

On Fri, Aug 7, 2009 at 10:16 PM, rgheckrgh...@bobjweil.com wrote:
 On 08/07/2009 09:39 PM, Venable wrote:

 Dear LyX Users,

 I would like to use step bullet item lists in a Beamer presentation.
 This is fairly simple in SWP, since there is a Step Bullet List Item
 Item Tag available with a simple keyboard shortcut. Does a similar
 function exist in LyX? If not, is it possible to customize either LyX
 itself or the .lyx file to create similar functionality?

 I suppose one workaround would be to add new environments to the LaTeX
 preamble (see below for excerpt from Portable LaTeX code created by
 SWP) and then add ERT (e.g. \begin{stepitemize}, \item, etc.).
 However, this seems a bit unwieldy.

 Many thanks for any suggestions. I apologize if the solution is
 obvious or has already been discussed. I searched a fair amount in the
 manuals and on the mailing list but did not find a solution. If I have
 missed something, please let me know.



 (new environment LaTeX code)
 \newenvironment{stepenumerate}{\begin{enumerate}[+-]}{\end{enumerate}}
 \newenvironment{stepitemize}{\begin{itemize}[+-]}{\end{itemize} }
 \newenvironment{stepenumeratewithalert}{\begin{enumerate}[+-|
 al...@+]}{\end{enumerate}}
 \newenvironment{stepitemizewithalert}{\begin{itemize}[+-|
 al...@+]}{\end{itemize} }



 I'm not terribly familiar with beamer, but so far as I can see this ought to
 be a pretty trivial layout. E.g.:

 Style StepEnumerate
    CopyStyle Enumerate
    Preamble

  \newenvironment{stepenumerate}{\begin{enumerate}[+-]}{\end{enumerate}}
    EndPreamble
 End

 Style StepItemize
    CopyStyle Itemize
    Preamble
        \newenvironment{stepitemize}{\begin{itemize}[+-]}{\end{itemize} }
    EndPreamble
 End

 You might want to tweak that a bit, of course, but that may be all it takes.
 If so, you might consider putting them into a module and adding it to the
 wiki.

 If some of this is opaque, look at chapter five of the Customization manual.

 rh




Re: Step bullet item lists in Beamer

2009-08-08 Thread Venable
Thanks, that works great.

It also exports nicely into LaTeX as you mentioned. As an aside, it
would be an improvement to LyX generally if LyX did not use this
lyxframe customization when creating Beamer documents, since it
makes interoperability less convenient than it could be. For example,
SWP users can use Plain LaTeX files that contain lyxframe commands,
since the command definition is automatically exported in the
.tex-file preamble, but it is somewhat awkward since the lyxframe and
other commands are unfamiliar to SWP. Similarly, LyX users who receive
Beamer tex-files created either directly in LaTeX code or via another
GUI (such as SWP) could be tripped up by all the resulting ERT and so
on. However, perhaps the -lyxframe- stuff is necessary for reasons
that are unknown to this novice, and anyway this feels like a
discussion for another thread.

Again, many thanks to both of you. This is very helpful.


Re: Step bullet item lists in Beamer

2009-08-08 Thread Venable
Thanks for the great suggestion, I will give that a try.

I am a bit of a LyX noob, so the following may be obvious as well,
but: will that export well to plain LaTeX? I have some collaborators
who I have not (yet!) been able to convince to move to LyX, so being
able to share documents is important to me.

Many thanks again, I really appreciate it.

On Fri, Aug 7, 2009 at 10:16 PM, rgheckrgh...@bobjweil.com wrote:
 On 08/07/2009 09:39 PM, Venable wrote:

 Dear LyX Users,

 I would like to use step bullet item lists in a Beamer presentation.
 This is fairly simple in SWP, since there is a Step Bullet List Item
 Item Tag available with a simple keyboard shortcut. Does a similar
 function exist in LyX? If not, is it possible to customize either LyX
 itself or the .lyx file to create similar functionality?

 I suppose one workaround would be to add new environments to the LaTeX
 preamble (see below for excerpt from Portable LaTeX code created by
 SWP) and then add ERT (e.g. \begin{stepitemize}, \item, etc.).
 However, this seems a bit unwieldy.

 Many thanks for any suggestions. I apologize if the solution is
 obvious or has already been discussed. I searched a fair amount in the
 manuals and on the mailing list but did not find a solution. If I have
 missed something, please let me know.



 (new environment LaTeX code)
 \newenvironment{stepenumerate}{\begin{enumerate}[+-]}{\end{enumerate}}
 \newenvironment{stepitemize}{\begin{itemize}[+-]}{\end{itemize} }
 \newenvironment{stepenumeratewithalert}{\begin{enumerate}[+-|
 al...@+]}{\end{enumerate}}
 \newenvironment{stepitemizewithalert}{\begin{itemize}[+-|
 al...@+]}{\end{itemize} }



 I'm not terribly familiar with beamer, but so far as I can see this ought to
 be a pretty trivial layout. E.g.:

 Style StepEnumerate
    CopyStyle Enumerate
    Preamble

  \newenvironment{stepenumerate}{\begin{enumerate}[+-]}{\end{enumerate}}
    EndPreamble
 End

 Style StepItemize
    CopyStyle Itemize
    Preamble
        \newenvironment{stepitemize}{\begin{itemize}[+-]}{\end{itemize} }
    EndPreamble
 End

 You might want to tweak that a bit, of course, but that may be all it takes.
 If so, you might consider putting them into a module and adding it to the
 wiki.

 If some of this is opaque, look at chapter five of the Customization manual.

 rh




Re: Step bullet item lists in Beamer

2009-08-08 Thread Venable
Thanks, that works great.

It also exports nicely into LaTeX as you mentioned. As an aside, it
would be an improvement to LyX generally if LyX did not use this
lyxframe customization when creating Beamer documents, since it
makes interoperability less convenient than it could be. For example,
SWP users can use Plain LaTeX files that contain lyxframe commands,
since the command definition is automatically exported in the
.tex-file preamble, but it is somewhat awkward since the lyxframe and
other commands are unfamiliar to SWP. Similarly, LyX users who receive
Beamer tex-files created either directly in LaTeX code or via another
GUI (such as SWP) could be tripped up by all the resulting ERT and so
on. However, perhaps the -lyxframe- stuff is necessary for reasons
that are unknown to this novice, and anyway this feels like a
discussion for another thread.

Again, many thanks to both of you. This is very helpful.


Re: Step bullet item lists in Beamer

2009-08-08 Thread Venable
Thanks for the great suggestion, I will give that a try.

I am a bit of a LyX noob, so the following may be obvious as well,
but: will that export well to plain LaTeX? I have some collaborators
who I have not (yet!) been able to convince to move to LyX, so being
able to share documents is important to me.

Many thanks again, I really appreciate it.

On Fri, Aug 7, 2009 at 10:16 PM, rgheck<rgh...@bobjweil.com> wrote:
> On 08/07/2009 09:39 PM, Venable wrote:
>>
>> Dear LyX Users,
>>
>> I would like to use step bullet item lists in a Beamer presentation.
>> This is fairly simple in SWP, since there is a "Step Bullet List Item"
>> Item Tag available with a simple keyboard shortcut. Does a similar
>> function exist in LyX? If not, is it possible to customize either LyX
>> itself or the .lyx file to create similar functionality?
>>
>> I suppose one workaround would be to add new environments to the LaTeX
>> preamble (see below for excerpt from Portable LaTeX code created by
>> SWP) and then add ERT (e.g. \begin{stepitemize}, \item, etc.).
>> However, this seems a bit unwieldy.
>>
>> Many thanks for any suggestions. I apologize if the solution is
>> obvious or has already been discussed. I searched a fair amount in the
>> manuals and on the mailing list but did not find a solution. If I have
>> missed something, please let me know.
>>
>>
>>
>> (new environment LaTeX code)
>> \newenvironment{stepenumerate}{\begin{enumerate}[<+->]}{\end{enumerate}}
>> \newenvironment{stepitemize}{\begin{itemize}[<+->]}{\end{itemize} }
>> \newenvironment{stepenumeratewithalert}{\begin{enumerate}[<+-|
>> al...@+>]}{\end{enumerate}}
>> \newenvironment{stepitemizewithalert}{\begin{itemize}[<+-|
>> al...@+>]}{\end{itemize} }
>>
>>
>
> I'm not terribly familiar with beamer, but so far as I can see this ought to
> be a pretty trivial layout. E.g.:
>
> Style StepEnumerate
>    CopyStyle Enumerate
>    Preamble
>
>  \newenvironment{stepenumerate}{\begin{enumerate}[<+->]}{\end{enumerate}}
>    EndPreamble
> End
>
> Style StepItemize
>    CopyStyle Itemize
>    Preamble
>        \newenvironment{stepitemize}{\begin{itemize}[<+->]}{\end{itemize} }
>    EndPreamble
> End
>
> You might want to tweak that a bit, of course, but that may be all it takes.
> If so, you might consider putting them into a module and adding it to the
> wiki.
>
> If some of this is opaque, look at chapter five of the Customization manual.
>
> rh
>
>


Re: Step bullet item lists in Beamer

2009-08-08 Thread Venable
Thanks, that works great.

It also exports nicely into LaTeX as you mentioned. As an aside, it
would be an improvement to LyX generally if LyX did not use this
"lyxframe" customization when creating Beamer documents, since it
makes interoperability less convenient than it could be. For example,
SWP users can use Plain LaTeX files that contain lyxframe commands,
since the command definition is automatically exported in the
.tex-file preamble, but it is somewhat awkward since the lyxframe and
other commands are unfamiliar to SWP. Similarly, LyX users who receive
Beamer tex-files created either directly in LaTeX code or via another
GUI (such as SWP) could be tripped up by all the resulting ERT and so
on. However, perhaps the -lyxframe- stuff is necessary for reasons
that are unknown to this novice, and anyway this feels like a
discussion for another thread.

Again, many thanks to both of you. This is very helpful.


Step bullet item lists in Beamer

2009-08-07 Thread Venable
Dear LyX Users,

I would like to use step bullet item lists in a Beamer presentation.
This is fairly simple in SWP, since there is a Step Bullet List Item
Item Tag available with a simple keyboard shortcut. Does a similar
function exist in LyX? If not, is it possible to customize either LyX
itself or the .lyx file to create similar functionality?

I suppose one workaround would be to add new environments to the LaTeX
preamble (see below for excerpt from Portable LaTeX code created by
SWP) and then add ERT (e.g. \begin{stepitemize}, \item, etc.).
However, this seems a bit unwieldy.

Many thanks for any suggestions. I apologize if the solution is
obvious or has already been discussed. I searched a fair amount in the
manuals and on the mailing list but did not find a solution. If I have
missed something, please let me know.



(new environment LaTeX code)
\newenvironment{stepenumerate}{\begin{enumerate}[+-]}{\end{enumerate}}
\newenvironment{stepitemize}{\begin{itemize}[+-]}{\end{itemize} }
\newenvironment{stepenumeratewithalert}{\begin{enumerate}[+-|
al...@+]}{\end{enumerate}}
\newenvironment{stepitemizewithalert}{\begin{itemize}[+-|
al...@+]}{\end{itemize} }


Step bullet item lists in Beamer

2009-08-07 Thread Venable
Dear LyX Users,

I would like to use step bullet item lists in a Beamer presentation.
This is fairly simple in SWP, since there is a Step Bullet List Item
Item Tag available with a simple keyboard shortcut. Does a similar
function exist in LyX? If not, is it possible to customize either LyX
itself or the .lyx file to create similar functionality?

I suppose one workaround would be to add new environments to the LaTeX
preamble (see below for excerpt from Portable LaTeX code created by
SWP) and then add ERT (e.g. \begin{stepitemize}, \item, etc.).
However, this seems a bit unwieldy.

Many thanks for any suggestions. I apologize if the solution is
obvious or has already been discussed. I searched a fair amount in the
manuals and on the mailing list but did not find a solution. If I have
missed something, please let me know.



(new environment LaTeX code)
\newenvironment{stepenumerate}{\begin{enumerate}[+-]}{\end{enumerate}}
\newenvironment{stepitemize}{\begin{itemize}[+-]}{\end{itemize} }
\newenvironment{stepenumeratewithalert}{\begin{enumerate}[+-|
al...@+]}{\end{enumerate}}
\newenvironment{stepitemizewithalert}{\begin{itemize}[+-|
al...@+]}{\end{itemize} }


Step bullet item lists in Beamer

2009-08-07 Thread Venable
Dear LyX Users,

I would like to use step bullet item lists in a Beamer presentation.
This is fairly simple in SWP, since there is a "Step Bullet List Item"
Item Tag available with a simple keyboard shortcut. Does a similar
function exist in LyX? If not, is it possible to customize either LyX
itself or the .lyx file to create similar functionality?

I suppose one workaround would be to add new environments to the LaTeX
preamble (see below for excerpt from Portable LaTeX code created by
SWP) and then add ERT (e.g. \begin{stepitemize}, \item, etc.).
However, this seems a bit unwieldy.

Many thanks for any suggestions. I apologize if the solution is
obvious or has already been discussed. I searched a fair amount in the
manuals and on the mailing list but did not find a solution. If I have
missed something, please let me know.



(new environment LaTeX code)
\newenvironment{stepenumerate}{\begin{enumerate}[<+->]}{\end{enumerate}}
\newenvironment{stepitemize}{\begin{itemize}[<+->]}{\end{itemize} }
\newenvironment{stepenumeratewithalert}{\begin{enumerate}[<+-|
al...@+>]}{\end{enumerate}}
\newenvironment{stepitemizewithalert}{\begin{itemize}[<+-|
al...@+>]}{\end{itemize} }