Text Formatting ⇒ Build theatre script
Build theatre script
I am working to build a template for a theatre script.
I had an help to make this code and everything seems to work fine.
Problem: If I enter simple text, see example below Story text, the font remains attached to the last command (\sce).
How can I do to "reset" the font after elements?
Thank you.
Sorry for my English!
- Attachments
-
- tea.tex
- (3.29 KiB) Downloaded 272 times
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Build theatre script
i haven't looked closely what the example does, but the special markup for scene-titles is not resetting the font to normal. You can do this:
Code: Select all
\newcommand\sce[1]{\newpage\everypar{\hangindent=0\linewidth\hangafter=0}\parskip=0.5\baselineskip\fontsize{22pt}{24pt}\selectfont\raggedright{#1}\vskip\unoskip\normalfont\normalsize}
Code: Select all
\newcommand\sce[1]{\newpage\begingroup\everypar{\hangindent=0\linewidth\hangafter=0}\parskip=0.5\baselineskip\fontsize{22pt}{24pt}\selectfont\raggedright{#1}\vskip\unoskip\endgroup\normalfont\normalsize}
EDIT: Other commands are missing a proper font management as well.
PS: If you decide to have a List of scenes (something like a table of contents) later, bet set up your stuff in a different way. We can help you with that, if you want.
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm