4

Rewritten question. For my phd-project i need to quote screenplays. I would like to keep the screenplay layout in my thesis. I know there is the document class called screenplay.

Now i am wandering if it is generally possible to convert a document class into an "classic" environment, so that you can use all the useful stuff of one document class within another document class.

In my case I would like to write \begin{screenplay}...\end{screenplay} and include all the helpful devices from the screenplay document class within this environment. For example:

\begin{screenplay} 
\fadein 
\intslug[Tag]{Bantago Bay} 
... 
\end{screenplay} 
  • 2
    No, classes aren't complex environments and can't be converted to one. You might however put the required code from this class to an environment, so that the format and macros are only used inside the environment. – Martin Scharrer Aug 21 '11 at 13:21
  • @Martin Scharrer: Do i need to have an advanced knowledge of latex to do so? – Philip Aug 21 '11 at 13:33
  • 4
    @Philip The screenplay class isn't very complicated. The main thing you would need to do to adapt it to a package would be to remove all the titling and page layout stuff. So the core macros are from line 122 onwards, plus any of the lengths that are used in those commands (which are declared and set earlier in the code.). Do you feel comfortable around package code, or have you never looked inside one before? – Alan Munn Aug 21 '11 at 13:50
  • @Alan Munn: To be honest, i even didnt hear about that things ever before. I guess that i wouldnt be able to cope with that task. – Philip Aug 21 '11 at 14:26
7

Here's a package version of the screenplay class that can be used within any document class. It adds a new environment screenplay to wrap screenplay fragments in, and a couple of commands for customizing the font and spacing. (See the README file for details.) I have contacted the author of the screenplay class to see if he is interested in adding this to his distribution. If not, I will upload it to CTAN as a separate package.

Update

The package is now available on CTAN.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.