On 16.07.04, Elver Loho wrote:
> Hi.
> 
> There are two different kinds of screenplays in this world. One is the... 
> screenplay. And the other is the shooting script. The former is what a 
> screenwriter writes, sells and what the actors get. The latter is based on 
> the former and includes technical information such as camera angles, scene 
> numbers, notes about sound, lighting, the scene, etc.
> 
> I would like to write both at the same time, but then later export versions 
> with and without the extra information. Is there a way to do it? 

If I understand you right, this could be done with a the "ifthenelse"
package. 

My *untested* concept includes:

In the "screenplay-director.layout" file define a new layout
"Direction", with the latex type

  LatexType     Command
  LatexName     \ifthenelse{\boolean{description}}{}

and

  Preamble
     \usepackage{ifthen}       % Bedingte Ausgabe
     \newboolean{description}  % Description style? TRUE|FALSE
     \setboolean{description}{false} % default is director style
  EndPreamble


Then, a simple ERT, saying  
  \setboolean{description}{true}
would skip paragraphs formatted as Direction. Instead of the ERT, you
could even define this as a Layout of its own with

Layout SkipDirections
  LatexType     Command
  LatexName     \setboolean{description}


This will need a bit of fiddeling, but I think it can be done...

> to have two PDF export functions -- one that would export a version
> where the "Director" lines are ignored and one where the "Director"
> lines are still there.

Of course, you will not get two export alternatives in the menu, but
have to write "false" or "true" in the SkipDirections paragraph.

 
> The only problem that I can think of is that the "Description" style makes 
> sure that there is no page break between it and the former INT/EXT line. I 
> don't know how it does this, but I'd like if there was a way to make sure 
> that when a non-technical version is exported and the "Director" lines 
> between INT/EXT and the "Description" lines are ignored, that the 
> "Description" lines would still hug the INT/EXT line and make sure that there 
> is no page break between those.

I did not get this correctly. Maybe this can be done by nesting the
Director layout. Does the current screenplay layout take care of it (no
pagebreak between INT/EXT and content of scene)?

Günter


-- 
G.Milde at web.de

Reply via email to