Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manus til teknikere #21

Open
Mortal opened this issue May 22, 2016 · 1 comment
Open

Manus til teknikere #21

Mortal opened this issue May 22, 2016 · 1 comment

Comments

@Mortal
Copy link
Contributor

Mortal commented May 22, 2016

Revyteknik kunne godt tænke sig et manus hvor numrene har mikrofonfarver i stedet for rolleforkortelser.

@Mortal
Copy link
Contributor Author

Mortal commented May 22, 2016

Her er en måde at få bestemte rolleforkortelser til at være highlightet i rød:

\makeatletter
\let\origReplik\Replik
\def\Replik[#1]{%
  % Start på replik som normal revy-TeX:
  \origReplik[#1]%
  % Hvis makroen \highlightNAVN er defineret, så kør den:
  \ifcsname highlight#1\endcsname%
    \csname highlight#1\endcsname%
  \fi%
}
\makeatother

% Pak ind i {} for at \renewcommand og \newcommand kun virker midlertidigt:
{
  % Highlight replikker som S og Y siger
  % Start fra side 1:
  \setcounter{page}{1}
  % Skriv "S+Y n" på side n:
  \renewcommand{\thepage}{S+Y \arabic{page}}
  % Gør S's og Y's replikker røde:
  \newcommand{\highlightS}{\color{red}}
  \newcommand{\highlightY}{\color{red}}
  % Indsæt manuskriptet og afslut siden:
  \input{kk31}\newpage
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant