Text FormattingBuild theatre script

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
ginosap
Posts: 2
Joined: Tue Oct 06, 2015 6:23 am

Build theatre script

Post by ginosap »

Good morning.
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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by Johannes_B »

Welcome,

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}
or maybe even better:

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.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
ginosap
Posts: 2
Joined: Tue Oct 06, 2015 6:23 am

Re: Build theatre script

Post by ginosap »

Great!
Thanks.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Build theatre script

Post by Johannes_B »

The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply