Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
Hi

I am using article(beamer) and presentation(beamer) and I have two questions:

1) When I export the lyx file, it obviously overwrites the one with
the other. I therefore have to export the article(beamer), rename it,
change the document class to presentation(beamer), export it again and
preferably rename it as well to make sure that I don't overwrite it
again after I changed the document class to presentation(beamer). Is
there a way of automatically adding _article when the article is
selected and _presentation when presentation is selected?

2) following that, is there a way of creating both at the same time?
Effectively exporting, renaming, changing, exporting, renaming as a
script which is executed when I export?

Thanks,

Rainer

-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris

Rainer:
 1) When I export the lyx file, it obviously overwrites the one with
 the other. I therefore have to export the article(beamer), rename it,
 change the document class to presentation(beamer), export it again and
 preferably rename it as well to make sure that I don't overwrite it
 again after I changed the document class to presentation(beamer). Is
 there a way of automatically adding _article when the article is
 selected and _presentation when presentation is selected?

 2) following that, is there a way of creating both at the same time?
 Effectively exporting, renaming, changing, exporting, renaming as a
 script which is executed when I export?

Hi Rainer!

Ehm... I am curious: do you use the same document to export once as an
article and once as a presentation? If so, how does it work?

If not, then what's the big deal of giving different names (as one
should do) to your documents (article != presentation).

Kind regards, Nikos



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Micha Feigin
On Wed, 01 Jul 2009 11:22:20 +0200
Nikos Alexandris nikos.alexand...@felis.uni-freiburg.de wrote:

 
 Rainer:
  1) When I export the lyx file, it obviously overwrites the one with
  the other. I therefore have to export the article(beamer), rename it,
  change the document class to presentation(beamer), export it again and
  preferably rename it as well to make sure that I don't overwrite it
  again after I changed the document class to presentation(beamer). Is
  there a way of automatically adding _article when the article is
  selected and _presentation when presentation is selected?
 
  2) following that, is there a way of creating both at the same time?
  Effectively exporting, renaming, changing, exporting, renaming as a
  script which is executed when I export?
 
 Hi Rainer!
 
 Ehm... I am curious: do you use the same document to export once as an
 article and once as a presentation? If so, how does it work?
 
 If not, then what's the big deal of giving different names (as one
 should do) to your documents (article != presentation).
 

The whole idea behind article and presentation mode beamer is that you can have
both versions in the same file. I find it more useful for printed slides vs.
presented slides though then article and presentation in the same file.

The OP's question though I don't know how to answer, I have the same problem
when using branches to have an exercise and solutions in the same file and
print it once with the solution and once without.

 Kind regards, Nikos
 


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 11:35 AM, Nikos
Alexandrisnikos.alexand...@felis.uni-freiburg.de wrote:

 Rainer:
  1) When I export the lyx file, it obviously overwrites the one with
  the other. I therefore have to export the article(beamer), rename it,
  change the document class to presentation(beamer), export it again and
  preferably rename it as well to make sure that I don't overwrite it
  again after I changed the document class to presentation(beamer). Is
  there a way of automatically adding _article when the article is
  selected and _presentation when presentation is selected?

  2) following that, is there a way of creating both at the same time?
  Effectively exporting, renaming, changing, exporting, renaming as a
  script which is executed when I export?

 Nikos:
  Hi Rainer!
 
  Ehm... I am curious: do you use the same document to export once as an
  article and once as a presentation? If so, how does it work?

 Rainer:
 Yes. I have two document classes /layouts ( presentation(beamer) and
 article(beamer) ) and this is the only difference in the two files.
 When I export it with the article(beamer) class, it is printed as an
 article, with all ArticleMode insets. When I change it to
 presentation(beamer) I get a presentation with everything.
 This is extremely convenient, as I can keep the presentation and the
 handout in one document / lyx file (which is one of the advantages of
 beamer).

 This sounds like eXtremely convenient. I never thought of this possible.
 If you don't mind to share some small example file, I would appreciate
 you help a lot.

 Actually I will right away try to change a beamer presentation I have to
 article(beamer) and see if it is exported without problems.

The only problem I encountered were:
1) presentations I created earliuer, had problems with the paper size.
I copied the content simply into a new document of class
presentation(beamer) and then the article(beamer) also worked.
2)Some (I found only one) options for beamer seem to be causing
problems: the one I found is beamerdefaultoverlayspecification. If you
add the following to the preamble, it works:
\onlypresentation{
  \beamerdefaultoverlayspecification{+-}
}
Effectively, they are only evaluated for presentations.

Otherwise: straight forward. Try it out: if it does not work, I can
send a small example.



  If not, then what's the big deal of giving different names (as one
  should do) to your documents (article != presentation).


 (are you using R as well?)
 Obviously - different documents == different nlyx files == different names
 at least when they are in the same directory. If they are in different
 directories, that is not a problem.


 Yes, I use R as well :-)

 Great piece of information. We should cc to the list, don't you think
 so?

Yes - sorry. Replied accidently only to you. I'll send it to the list as well.


 Thanks, Nikos







-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris
Micha F:
...

 The whole idea behind article and presentation mode beamer is that you can 
 have
 both versions in the same file. I find it more useful for printed slides vs.
 presented slides though then article and presentation in the same file.
 
 The OP's question though I don't know how to answer, I have the same problem
 when using branches to have an exercise and solutions in the same file and
 print it once with the solution and once without.

I was not well-informed on that. Thanks for the additional info.

Nikos



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris

Nikos:
   I am curious: do you use the same document to export once as an
   article and once as a presentation? If so, how does it work?


Rainer:
  Yes. I have two document classes /layouts ( presentation(beamer) and
  article(beamer) ) and this is the only difference in the two files.
...
  This is extremely convenient, as I can keep the presentation and the
  handout in one document / lyx file (which is one of the advantages of
  beamer).


Nikos:
  Actually I will right away try to change a beamer presentation I have to
  article(beamer) and see if it is exported without problems.


So, I unsuccessfully tried the following:

  1. to _only_ change the document class

  2. create new lyx file, copy presentation content over and define
class [1]

  3. create new lyx file, copy presentation content and Preamble over,
then define class [2]

Seems like attempts 2. and 3. give errors of minor importance that can
be easily resolved but I don't have free-time now.


Rainer:
 The only problem I encountered were:
 1) presentations I created earliuer, had problems with the paper size.
 I copied the content simply into a new document of class
 presentation(beamer) and then the article(beamer) also worked.
 2)Some (I found only one) options for beamer seem to be causing
 problems: the one I found is beamerdefaultoverlayspecification. If you
 add the following to the preamble, it works:
 \onlypresentation{
   \beamerdefaultoverlayspecification{+-}
 }
 Effectively, they are only evaluated for presentations.
 
 Otherwise: straight forward. Try it out: if it does not work, I can
 send a small example.

(
A small sample file is always very useful :-)
)

Nikos

[1] http://www.imageshack.gr/view.php?file=ancqyxxti7s52rcmyokl.png
[2] http://www.imageshack.gr/view.php?file=f5ukffgppfci9m6kyxu8.png



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote:

 2) following that, is there a way of creating both at the same time?
 Effectively exporting, renaming, changing, exporting, renaming as a
 script which is executed when I export?

My approach to do this is to include the beamer presentation as a child to 
another document, which is of article (beamer) class. That way, I get the 
presentation by viewing the presentation document only, and the article by 
viewing the master (article) file. The only annoying thing is that LyX spits 
a warning about differing text classes every time I view the master. The 
good news, though, is that you can disable this warning as of forthcoming 
LyX 1.6.4.

There are some caveats:
* the preamble content of the presentation, if any, must be copied to the 
article preamble as well.
* the article must include an empty frame (this is to trigger some internal 
preamble code)

See the attached example article file. It includes the beamer template that 
ships with LyX. You might have to adjust the path in the include inset.

HTH,
Jürgen


beamer-article.lyx
Description: application/lyx


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 11:55 AM, Jürgen Spitzmüllersp...@lyx.org wrote:
 Rainer M Krug wrote:

 2) following that, is there a way of creating both at the same time?
 Effectively exporting, renaming, changing, exporting, renaming as a
 script which is executed when I export?

 My approach to do this is to include the beamer presentation as a child to
 another document, which is of article (beamer) class. That way, I get the
 presentation by viewing the presentation document only, and the article by
 viewing the master (article) file. The only annoying thing is that LyX spits
 a warning about differing text classes every time I view the master. The
 good news, though, is that you can disable this warning as of forthcoming
 LyX 1.6.4.

 There are some caveats:
 * the preamble content of the presentation, if any, must be copied to the
 article preamble as well.
 * the article must include an empty frame (this is to trigger some internal
 preamble code)

This is an interesting approach. So you have a presentation, with all
the article fields and everything in it. You compile the presentation,
by compiling the presentation with document class
presentation(beamer), and the article with the master document
(document class: article(beamer)), which does contain only the
presentation as child document and an EndFrame.
Nice workaround.

One could include the preamble as an include as well, I guess?




 See the attached example article file. It includes the beamer template that
 ships with LyX. You might have to adjust the path in the include inset.

 HTH,
 Jürgen







-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote:

 One could include the preamble as an include as well, I guess?

Yes. Actually, I have setup (for my lectures) two style files, a beamer-
article.sty and a beamer-presentation.sty, which include a common subset 
(not everything in the presentation is relevant for the article, and vice 
versa) plus some specific settings for both products (for instance, I want 
sans serif TIPA fonts in the presentation, but serif in the article).

Another helpful thing is branches: If you define a branch in the 
presentation only, it will be ignored by the article. Thus you can just 
branch stuff you don't want in the article. Vice versa, you can define a 
branch article which is disabled in the presentation. This is a nice 
extension to the available article/presentation modes of beamer.

Jürgen




Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris

  (
  A small sample file is always very useful :-)
  )
 
 Here it is. Just change the document class from presentation(beamer)
 to asticle(beamer) and it should work.

Thanks!



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 12:29 PM, Jürgen Spitzmüllersp...@lyx.org wrote:
 Rainer M Krug wrote:

 One could include the preamble as an include as well, I guess?

 Yes. Actually, I have setup (for my lectures) two style files, a beamer-
 article.sty and a beamer-presentation.sty, which include a common subset
 (not everything in the presentation is relevant for the article, and vice
 versa) plus some specific settings for both products (for instance, I want
 sans serif TIPA fonts in the presentation, but serif in the article).

 Another helpful thing is branches: If you define a branch in the
 presentation only, it will be ignored by the article. Thus you can just
 branch stuff you don't want in the article. Vice versa, you can define a
 branch article which is disabled in the presentation. This is a nice
 extension to the available article/presentation modes of beamer.

 Jürgen





Thanks a lot - this sounds really interesting - I'll look into your suggestions.

In addition: in the master document, I just added the presentation as
input... and it worked - no EndFrame or anything.

Cheers,

Rainer

-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 12:29 PM, Jürgen Spitzmüllersp...@lyx.org wrote:
 Rainer M Krug wrote:

 One could include the preamble as an include as well, I guess?

 Yes. Actually, I have setup (for my lectures) two style files, a beamer-
 article.sty and a beamer-presentation.sty, which include a common subset
 (not everything in the presentation is relevant for the article, and vice
 versa) plus some specific settings for both products (for instance, I want
 sans serif TIPA fonts in the presentation, but serif in the article).

 Another helpful thing is branches: If you define a branch in the
 presentation only, it will be ignored by the article. Thus you can just
 branch stuff you don't want in the article. Vice versa, you can define a
 branch article which is disabled in the presentation. This is a nice
 extension to the available article/presentation modes of beamer.

 Jürgen





Thanks a lot - this sounds really interesting - I'll look into your suggestions.

In addition: in the master document, I just added the presentation as
input... and it worked - no EndFrame or anything.

Cheers,

Rainer

-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote:

 In addition: in the master document, I just added the presentation as
 input... and it worked - no EndFrame or anything.

I see. Actually, it is also expected to work theoretically. It just didn't 
work for me sometimes, for unknown reasons, so I just got used to the extra 
frame.

Jürgen




Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
Hi

I am using article(beamer) and presentation(beamer) and I have two questions:

1) When I export the lyx file, it obviously overwrites the one with
the other. I therefore have to export the article(beamer), rename it,
change the document class to presentation(beamer), export it again and
preferably rename it as well to make sure that I don't overwrite it
again after I changed the document class to presentation(beamer). Is
there a way of automatically adding _article when the article is
selected and _presentation when presentation is selected?

2) following that, is there a way of creating both at the same time?
Effectively exporting, renaming, changing, exporting, renaming as a
script which is executed when I export?

Thanks,

Rainer

-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris

Rainer:
 1) When I export the lyx file, it obviously overwrites the one with
 the other. I therefore have to export the article(beamer), rename it,
 change the document class to presentation(beamer), export it again and
 preferably rename it as well to make sure that I don't overwrite it
 again after I changed the document class to presentation(beamer). Is
 there a way of automatically adding _article when the article is
 selected and _presentation when presentation is selected?

 2) following that, is there a way of creating both at the same time?
 Effectively exporting, renaming, changing, exporting, renaming as a
 script which is executed when I export?

Hi Rainer!

Ehm... I am curious: do you use the same document to export once as an
article and once as a presentation? If so, how does it work?

If not, then what's the big deal of giving different names (as one
should do) to your documents (article != presentation).

Kind regards, Nikos



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Micha Feigin
On Wed, 01 Jul 2009 11:22:20 +0200
Nikos Alexandris nikos.alexand...@felis.uni-freiburg.de wrote:

 
 Rainer:
  1) When I export the lyx file, it obviously overwrites the one with
  the other. I therefore have to export the article(beamer), rename it,
  change the document class to presentation(beamer), export it again and
  preferably rename it as well to make sure that I don't overwrite it
  again after I changed the document class to presentation(beamer). Is
  there a way of automatically adding _article when the article is
  selected and _presentation when presentation is selected?
 
  2) following that, is there a way of creating both at the same time?
  Effectively exporting, renaming, changing, exporting, renaming as a
  script which is executed when I export?
 
 Hi Rainer!
 
 Ehm... I am curious: do you use the same document to export once as an
 article and once as a presentation? If so, how does it work?
 
 If not, then what's the big deal of giving different names (as one
 should do) to your documents (article != presentation).
 

The whole idea behind article and presentation mode beamer is that you can have
both versions in the same file. I find it more useful for printed slides vs.
presented slides though then article and presentation in the same file.

The OP's question though I don't know how to answer, I have the same problem
when using branches to have an exercise and solutions in the same file and
print it once with the solution and once without.

 Kind regards, Nikos
 


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 11:35 AM, Nikos
Alexandrisnikos.alexand...@felis.uni-freiburg.de wrote:

 Rainer:
  1) When I export the lyx file, it obviously overwrites the one with
  the other. I therefore have to export the article(beamer), rename it,
  change the document class to presentation(beamer), export it again and
  preferably rename it as well to make sure that I don't overwrite it
  again after I changed the document class to presentation(beamer). Is
  there a way of automatically adding _article when the article is
  selected and _presentation when presentation is selected?

  2) following that, is there a way of creating both at the same time?
  Effectively exporting, renaming, changing, exporting, renaming as a
  script which is executed when I export?

 Nikos:
  Hi Rainer!
 
  Ehm... I am curious: do you use the same document to export once as an
  article and once as a presentation? If so, how does it work?

 Rainer:
 Yes. I have two document classes /layouts ( presentation(beamer) and
 article(beamer) ) and this is the only difference in the two files.
 When I export it with the article(beamer) class, it is printed as an
 article, with all ArticleMode insets. When I change it to
 presentation(beamer) I get a presentation with everything.
 This is extremely convenient, as I can keep the presentation and the
 handout in one document / lyx file (which is one of the advantages of
 beamer).

 This sounds like eXtremely convenient. I never thought of this possible.
 If you don't mind to share some small example file, I would appreciate
 you help a lot.

 Actually I will right away try to change a beamer presentation I have to
 article(beamer) and see if it is exported without problems.

The only problem I encountered were:
1) presentations I created earliuer, had problems with the paper size.
I copied the content simply into a new document of class
presentation(beamer) and then the article(beamer) also worked.
2)Some (I found only one) options for beamer seem to be causing
problems: the one I found is beamerdefaultoverlayspecification. If you
add the following to the preamble, it works:
\onlypresentation{
  \beamerdefaultoverlayspecification{+-}
}
Effectively, they are only evaluated for presentations.

Otherwise: straight forward. Try it out: if it does not work, I can
send a small example.



  If not, then what's the big deal of giving different names (as one
  should do) to your documents (article != presentation).


 (are you using R as well?)
 Obviously - different documents == different nlyx files == different names
 at least when they are in the same directory. If they are in different
 directories, that is not a problem.


 Yes, I use R as well :-)

 Great piece of information. We should cc to the list, don't you think
 so?

Yes - sorry. Replied accidently only to you. I'll send it to the list as well.


 Thanks, Nikos







-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris
Micha F:
...

 The whole idea behind article and presentation mode beamer is that you can 
 have
 both versions in the same file. I find it more useful for printed slides vs.
 presented slides though then article and presentation in the same file.
 
 The OP's question though I don't know how to answer, I have the same problem
 when using branches to have an exercise and solutions in the same file and
 print it once with the solution and once without.

I was not well-informed on that. Thanks for the additional info.

Nikos



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris

Nikos:
   I am curious: do you use the same document to export once as an
   article and once as a presentation? If so, how does it work?


Rainer:
  Yes. I have two document classes /layouts ( presentation(beamer) and
  article(beamer) ) and this is the only difference in the two files.
...
  This is extremely convenient, as I can keep the presentation and the
  handout in one document / lyx file (which is one of the advantages of
  beamer).


Nikos:
  Actually I will right away try to change a beamer presentation I have to
  article(beamer) and see if it is exported without problems.


So, I unsuccessfully tried the following:

  1. to _only_ change the document class

  2. create new lyx file, copy presentation content over and define
class [1]

  3. create new lyx file, copy presentation content and Preamble over,
then define class [2]

Seems like attempts 2. and 3. give errors of minor importance that can
be easily resolved but I don't have free-time now.


Rainer:
 The only problem I encountered were:
 1) presentations I created earliuer, had problems with the paper size.
 I copied the content simply into a new document of class
 presentation(beamer) and then the article(beamer) also worked.
 2)Some (I found only one) options for beamer seem to be causing
 problems: the one I found is beamerdefaultoverlayspecification. If you
 add the following to the preamble, it works:
 \onlypresentation{
   \beamerdefaultoverlayspecification{+-}
 }
 Effectively, they are only evaluated for presentations.
 
 Otherwise: straight forward. Try it out: if it does not work, I can
 send a small example.

(
A small sample file is always very useful :-)
)

Nikos

[1] http://www.imageshack.gr/view.php?file=ancqyxxti7s52rcmyokl.png
[2] http://www.imageshack.gr/view.php?file=f5ukffgppfci9m6kyxu8.png



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote:

 2) following that, is there a way of creating both at the same time?
 Effectively exporting, renaming, changing, exporting, renaming as a
 script which is executed when I export?

My approach to do this is to include the beamer presentation as a child to 
another document, which is of article (beamer) class. That way, I get the 
presentation by viewing the presentation document only, and the article by 
viewing the master (article) file. The only annoying thing is that LyX spits 
a warning about differing text classes every time I view the master. The 
good news, though, is that you can disable this warning as of forthcoming 
LyX 1.6.4.

There are some caveats:
* the preamble content of the presentation, if any, must be copied to the 
article preamble as well.
* the article must include an empty frame (this is to trigger some internal 
preamble code)

See the attached example article file. It includes the beamer template that 
ships with LyX. You might have to adjust the path in the include inset.

HTH,
Jürgen


beamer-article.lyx
Description: application/lyx


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 11:55 AM, Jürgen Spitzmüllersp...@lyx.org wrote:
 Rainer M Krug wrote:

 2) following that, is there a way of creating both at the same time?
 Effectively exporting, renaming, changing, exporting, renaming as a
 script which is executed when I export?

 My approach to do this is to include the beamer presentation as a child to
 another document, which is of article (beamer) class. That way, I get the
 presentation by viewing the presentation document only, and the article by
 viewing the master (article) file. The only annoying thing is that LyX spits
 a warning about differing text classes every time I view the master. The
 good news, though, is that you can disable this warning as of forthcoming
 LyX 1.6.4.

 There are some caveats:
 * the preamble content of the presentation, if any, must be copied to the
 article preamble as well.
 * the article must include an empty frame (this is to trigger some internal
 preamble code)

This is an interesting approach. So you have a presentation, with all
the article fields and everything in it. You compile the presentation,
by compiling the presentation with document class
presentation(beamer), and the article with the master document
(document class: article(beamer)), which does contain only the
presentation as child document and an EndFrame.
Nice workaround.

One could include the preamble as an include as well, I guess?




 See the attached example article file. It includes the beamer template that
 ships with LyX. You might have to adjust the path in the include inset.

 HTH,
 Jürgen







-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote:

 One could include the preamble as an include as well, I guess?

Yes. Actually, I have setup (for my lectures) two style files, a beamer-
article.sty and a beamer-presentation.sty, which include a common subset 
(not everything in the presentation is relevant for the article, and vice 
versa) plus some specific settings for both products (for instance, I want 
sans serif TIPA fonts in the presentation, but serif in the article).

Another helpful thing is branches: If you define a branch in the 
presentation only, it will be ignored by the article. Thus you can just 
branch stuff you don't want in the article. Vice versa, you can define a 
branch article which is disabled in the presentation. This is a nice 
extension to the available article/presentation modes of beamer.

Jürgen




Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris

  (
  A small sample file is always very useful :-)
  )
 
 Here it is. Just change the document class from presentation(beamer)
 to asticle(beamer) and it should work.

Thanks!



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 12:29 PM, Jürgen Spitzmüllersp...@lyx.org wrote:
 Rainer M Krug wrote:

 One could include the preamble as an include as well, I guess?

 Yes. Actually, I have setup (for my lectures) two style files, a beamer-
 article.sty and a beamer-presentation.sty, which include a common subset
 (not everything in the presentation is relevant for the article, and vice
 versa) plus some specific settings for both products (for instance, I want
 sans serif TIPA fonts in the presentation, but serif in the article).

 Another helpful thing is branches: If you define a branch in the
 presentation only, it will be ignored by the article. Thus you can just
 branch stuff you don't want in the article. Vice versa, you can define a
 branch article which is disabled in the presentation. This is a nice
 extension to the available article/presentation modes of beamer.

 Jürgen





Thanks a lot - this sounds really interesting - I'll look into your suggestions.

In addition: in the master document, I just added the presentation as
input... and it worked - no EndFrame or anything.

Cheers,

Rainer

-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 12:29 PM, Jürgen Spitzmüllersp...@lyx.org wrote:
 Rainer M Krug wrote:

 One could include the preamble as an include as well, I guess?

 Yes. Actually, I have setup (for my lectures) two style files, a beamer-
 article.sty and a beamer-presentation.sty, which include a common subset
 (not everything in the presentation is relevant for the article, and vice
 versa) plus some specific settings for both products (for instance, I want
 sans serif TIPA fonts in the presentation, but serif in the article).

 Another helpful thing is branches: If you define a branch in the
 presentation only, it will be ignored by the article. Thus you can just
 branch stuff you don't want in the article. Vice versa, you can define a
 branch article which is disabled in the presentation. This is a nice
 extension to the available article/presentation modes of beamer.

 Jürgen





Thanks a lot - this sounds really interesting - I'll look into your suggestions.

In addition: in the master document, I just added the presentation as
input... and it worked - no EndFrame or anything.

Cheers,

Rainer

-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote:

 In addition: in the master document, I just added the presentation as
 input... and it worked - no EndFrame or anything.

I see. Actually, it is also expected to work theoretically. It just didn't 
work for me sometimes, for unknown reasons, so I just got used to the extra 
frame.

Jürgen




Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
Hi

I am using article(beamer) and presentation(beamer) and I have two questions:

1) When I export the lyx file, it obviously overwrites the one with
the other. I therefore have to export the article(beamer), rename it,
change the document class to presentation(beamer), export it again and
preferably rename it as well to make sure that I don't overwrite it
again after I changed the document class to presentation(beamer). Is
there a way of automatically adding _article when the article is
selected and _presentation when presentation is selected?

2) following that, is there a way of creating both at the same time?
Effectively exporting, renaming, changing, exporting, renaming as a
script which is executed when I export?

Thanks,

Rainer

-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris

Rainer:
> 1) When I export the lyx file, it obviously overwrites the one with
> the other. I therefore have to export the article(beamer), rename it,
> change the document class to presentation(beamer), export it again and
> preferably rename it as well to make sure that I don't overwrite it
> again after I changed the document class to presentation(beamer). Is
> there a way of automatically adding _article when the article is
> selected and _presentation when presentation is selected?

> 2) following that, is there a way of creating both at the same time?
> Effectively exporting, renaming, changing, exporting, renaming as a
> script which is executed when I export?

Hi Rainer!

Ehm... I am curious: do you use the "same" document to export once as an
article and once as a presentation? If so, how does it work?

If not, then what's the big deal of giving different names (as one
should do) to your documents (article != presentation).

Kind regards, Nikos



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Micha Feigin
On Wed, 01 Jul 2009 11:22:20 +0200
Nikos Alexandris  wrote:

> 
> Rainer:
> > 1) When I export the lyx file, it obviously overwrites the one with
> > the other. I therefore have to export the article(beamer), rename it,
> > change the document class to presentation(beamer), export it again and
> > preferably rename it as well to make sure that I don't overwrite it
> > again after I changed the document class to presentation(beamer). Is
> > there a way of automatically adding _article when the article is
> > selected and _presentation when presentation is selected?
> 
> > 2) following that, is there a way of creating both at the same time?
> > Effectively exporting, renaming, changing, exporting, renaming as a
> > script which is executed when I export?
> 
> Hi Rainer!
> 
> Ehm... I am curious: do you use the "same" document to export once as an
> article and once as a presentation? If so, how does it work?
> 
> If not, then what's the big deal of giving different names (as one
> should do) to your documents (article != presentation).
> 

The whole idea behind article and presentation mode beamer is that you can have
both versions in the same file. I find it more useful for printed slides vs.
presented slides though then article and presentation in the same file.

The OP's question though I don't know how to answer, I have the same problem
when using branches to have an exercise and solutions in the same file and
print it once with the solution and once without.

> Kind regards, Nikos
> 


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 11:35 AM, Nikos
Alexandris wrote:
>
> Rainer:
>> >> 1) When I export the lyx file, it obviously overwrites the one with
>> >> the other. I therefore have to export the article(beamer), rename it,
>> >> change the document class to presentation(beamer), export it again and
>> >> preferably rename it as well to make sure that I don't overwrite it
>> >> again after I changed the document class to presentation(beamer). Is
>> >> there a way of automatically adding _article when the article is
>> >> selected and _presentation when presentation is selected?
>
>> >> 2) following that, is there a way of creating both at the same time?
>> >> Effectively exporting, renaming, changing, exporting, renaming as a
>> >> script which is executed when I export?
>
> Nikos:
>> > Hi Rainer!
>> >
>> > Ehm... I am curious: do you use the "same" document to export once as an
>> > article and once as a presentation? If so, how does it work?
>
> Rainer:
>> Yes. I have two document classes /layouts ( presentation(beamer) and
>> article(beamer) ) and this is the only difference in the two files.
>> When I export it with the article(beamer) class, it is printed as an
>> article, with all ArticleMode insets. When I change it to
>> presentation(beamer) I get a presentation with everything.
>> This is extremely convenient, as I can keep the presentation and the
>> handout in one document / lyx file (which is one of the advantages of
>> beamer).
>
> This sounds like eXtremely convenient. I never thought of this possible.
> If you don't mind to share some small example file, I would appreciate
> you help a lot.
>
> Actually I will right away try to change a beamer presentation I have to
> article(beamer) and see if it is exported without problems.

The only problem I encountered were:
1) presentations I created earliuer, had problems with the paper size.
I copied the content simply into a new document of class
presentation(beamer) and then the article(beamer) also worked.
2)Some (I found only one) options for beamer seem to be causing
problems: the one I found is beamerdefaultoverlayspecification. If you
add the following to the preamble, it works:
\only{
  \beamerdefaultoverlayspecification{<+->}
}
Effectively, they are only evaluated for presentations.

Otherwise: straight forward. Try it out: if it does not work, I can
send a small example.

>
>
>> > If not, then what's the big deal of giving different names (as one
>> > should do) to your documents (article != presentation).
>
>
>> (are you using R as well?)
>> Obviously - different documents == different nlyx files == different names
>> at least when they are in the same directory. If they are in different
>> directories, that is not a problem.
>
>
> Yes, I use R as well :-)
>
> Great piece of information. We should cc to the list, don't you think
> so?

Yes - sorry. Replied accidently only to you. I'll send it to the list as well.

>
> Thanks, Nikos
>
>





-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris
Micha F:
...

> The whole idea behind article and presentation mode beamer is that you can 
> have
> both versions in the same file. I find it more useful for printed slides vs.
> presented slides though then article and presentation in the same file.
> 
> The OP's question though I don't know how to answer, I have the same problem
> when using branches to have an exercise and solutions in the same file and
> print it once with the solution and once without.

I was not well-informed on that. Thanks for the additional info.

Nikos



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris

Nikos:
> >> > I am curious: do you use the "same" document to export once as an
> >> > article and once as a presentation? If so, how does it work?


Rainer:
> >> Yes. I have two document classes /layouts ( presentation(beamer) and
> >> article(beamer) ) and this is the only difference in the two files.
...
> >> This is extremely convenient, as I can keep the presentation and the
> >> handout in one document / lyx file (which is one of the advantages of
> >> beamer).


Nikos:
> > Actually I will right away try to change a beamer presentation I have to
> > article(beamer) and see if it is exported without problems.


So, I unsuccessfully tried the following:

  1. to _only_ change the document class

  2. create new lyx file, copy presentation content over and define
class [1]

  3. create new lyx file, copy presentation content and Preamble over,
then define class [2]

Seems like attempts 2. and 3. give errors of minor importance that can
be easily resolved but I don't have free-time now.


Rainer:
> The only problem I encountered were:
> 1) presentations I created earliuer, had problems with the paper size.
> I copied the content simply into a new document of class
> presentation(beamer) and then the article(beamer) also worked.
> 2)Some (I found only one) options for beamer seem to be causing
> problems: the one I found is beamerdefaultoverlayspecification. If you
> add the following to the preamble, it works:
> \only{
>   \beamerdefaultoverlayspecification{<+->}
> }
> Effectively, they are only evaluated for presentations.
> 
> Otherwise: straight forward. Try it out: if it does not work, I can
> send a small example.

(
A small sample file is always very useful :-)
)

Nikos

[1] http://www.imageshack.gr/view.php?file=ancqyxxti7s52rcmyokl.png
[2] http://www.imageshack.gr/view.php?file=f5ukffgppfci9m6kyxu8.png



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote:

> 2) following that, is there a way of creating both at the same time?
> Effectively exporting, renaming, changing, exporting, renaming as a
> script which is executed when I export?

My approach to do this is to include the beamer presentation as a child to 
another document, which is of "article (beamer)" class. That way, I get the 
presentation by viewing the presentation document only, and the article by 
viewing the master (article) file. The only annoying thing is that LyX spits 
a warning about differing text classes every time I view the master. The 
good news, though, is that you can disable this warning as of forthcoming 
LyX 1.6.4.

There are some caveats:
* the preamble content of the presentation, if any, must be copied to the 
article preamble as well.
* the article must include an empty frame (this is to trigger some internal 
preamble code)

See the attached example article file. It includes the beamer template that 
ships with LyX. You might have to adjust the path in the include inset.

HTH,
Jürgen


beamer-article.lyx
Description: application/lyx


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 11:55 AM, Jürgen Spitzmüller wrote:
> Rainer M Krug wrote:
>
>> 2) following that, is there a way of creating both at the same time?
>> Effectively exporting, renaming, changing, exporting, renaming as a
>> script which is executed when I export?
>
> My approach to do this is to include the beamer presentation as a child to
> another document, which is of "article (beamer)" class. That way, I get the
> presentation by viewing the presentation document only, and the article by
> viewing the master (article) file. The only annoying thing is that LyX spits
> a warning about differing text classes every time I view the master. The
> good news, though, is that you can disable this warning as of forthcoming
> LyX 1.6.4.
>
> There are some caveats:
> * the preamble content of the presentation, if any, must be copied to the
> article preamble as well.
> * the article must include an empty frame (this is to trigger some internal
> preamble code)

This is an interesting approach. So you have a presentation, with all
the article fields and everything in it. You compile the presentation,
by compiling the presentation with document class
presentation(beamer), and the article with the master document
(document class: article(beamer)), which does contain only the
presentation as child document and an EndFrame.
Nice workaround.

One could include the preamble as an include as well, I guess?



>
> See the attached example article file. It includes the beamer template that
> ships with LyX. You might have to adjust the path in the include inset.
>
> HTH,
> Jürgen
>






-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote:

> One could include the preamble as an include as well, I guess?

Yes. Actually, I have setup (for my lectures) two style files, a beamer-
article.sty and a beamer-presentation.sty, which include a common subset 
(not everything in the presentation is relevant for the article, and vice 
versa) plus some specific settings for both products (for instance, I want 
sans serif TIPA fonts in the presentation, but serif in the article).

Another helpful thing is branches: If you define a branch in the 
presentation only, it will be ignored by the article. Thus you can just 
"branch" stuff you don't want in the article. Vice versa, you can define a 
branch "article" which is disabled in the presentation. This is a nice 
extension to the available article/presentation modes of beamer.

Jürgen




Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Nikos Alexandris

> > (
> > A small sample file is always very useful :-)
> > )
> 
> Here it is. Just change the document class from presentation(beamer)
> to asticle(beamer) and it should work.

Thanks!



Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 12:29 PM, Jürgen Spitzmüller wrote:
> Rainer M Krug wrote:
>
>> One could include the preamble as an include as well, I guess?
>
> Yes. Actually, I have setup (for my lectures) two style files, a beamer-
> article.sty and a beamer-presentation.sty, which include a common subset
> (not everything in the presentation is relevant for the article, and vice
> versa) plus some specific settings for both products (for instance, I want
> sans serif TIPA fonts in the presentation, but serif in the article).
>
> Another helpful thing is branches: If you define a branch in the
> presentation only, it will be ignored by the article. Thus you can just
> "branch" stuff you don't want in the article. Vice versa, you can define a
> branch "article" which is disabled in the presentation. This is a nice
> extension to the available article/presentation modes of beamer.
>
> Jürgen
>
>
>


Thanks a lot - this sounds really interesting - I'll look into your suggestions.

In addition: in the master document, I just added the presentation as
input... and it worked - no EndFrame or anything.

Cheers,

Rainer

-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Rainer M Krug
On Wed, Jul 1, 2009 at 12:29 PM, Jürgen Spitzmüller wrote:
> Rainer M Krug wrote:
>
>> One could include the preamble as an include as well, I guess?
>
> Yes. Actually, I have setup (for my lectures) two style files, a beamer-
> article.sty and a beamer-presentation.sty, which include a common subset
> (not everything in the presentation is relevant for the article, and vice
> versa) plus some specific settings for both products (for instance, I want
> sans serif TIPA fonts in the presentation, but serif in the article).
>
> Another helpful thing is branches: If you define a branch in the
> presentation only, it will be ignored by the article. Thus you can just
> "branch" stuff you don't want in the article. Vice versa, you can define a
> branch "article" which is disabled in the presentation. This is a nice
> extension to the available article/presentation modes of beamer.
>
> Jürgen
>
>
>


Thanks a lot - this sounds really interesting - I'll look into your suggestions.

In addition: in the master document, I just added the presentation as
input... and it worked - no EndFrame or anything.

Cheers,

Rainer

-- 
Rainer M. Krug, Centre of Excellence for Invasion Biology,
Stellenbosch University, South Africa


Re: Using article(beamer) and presentation(beamer) at the same time

2009-07-01 Thread Jürgen Spitzmüller
Rainer M Krug wrote:

> In addition: in the master document, I just added the presentation as
> input... and it worked - no EndFrame or anything.

I see. Actually, it is also expected to work theoretically. It just didn't 
work for me sometimes, for unknown reasons, so I just got used to the extra 
frame.

Jürgen