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 274 times

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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