我对 LaTeX 和 的使用还不熟悉dramatist
,所以我认为我在这里犯了一些非常粗鲁的错误。
我尝试获取一些dramatist
代码示例并进行复制粘贴,但仍然遇到问题。下面是我的代码,来自此网站上的另一个示例,我从契诃夫戏剧中转储了一些数据。我的问题是,我没有得到预期的结果\act
(\DramPer
没有出现幕标题和剧中人物列表)。
使用此代码,我得到一个只有“作者/标题/日期”的空白文档。如果我将和行\DramPer
作为\act
注释(%\DramPer
),我就会得到我的文本。
我错过了什么?
LaTeX 代码
% !TEX TS-program = pdflatex
% !TEX encoding = UTF-8 Unicode
% This is a simple template for a LaTeX document using the "article" class.
% See "book", "report", "letter" for other types of document.
\documentclass[a4paper,11pt]{memoir} % use larger type; default would be 10pt
\usepackage[utf8]{inputenc} % set input encoding (not needed with XeLaTeX)
%%% Examples of Article customizations
% These packages are optional, depending whether you want the features they provide.
% See the LaTeX Companion or other references for full information.
%%% PAGE DIMENSIONS
% \usepackage{geometry} % to change the page dimensions
% \geometry{a4paper} % or letterpaper (US) or a5paper or....
% \geometry{margin=2in} % for example, change the margins to 2 inches all round
% \geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information
%%% PACKAGES
\usepackage{dramatist}
%%% HEADERS & FOOTERS
%%% SECTION TITLE APPEARANCE
%%% ToC (table of contents) APPEARANCE
%%% END Article customizations
%%% The "real" document content comes below...
\title{Brief Article}
\author{The Author}
%\date{} % Activate to display a given date or no date (if empty),
% otherwise the current date is printed
\begin{document}
\maketitle
\Character[RANEVSKAÏA, LIOUBOV ANDREEVNA.]{Lioubov}{Liouba}
\Character[ANIA, sa fille.]{ANIA}{Ania}
\Character[ANIA, sa fille, dix-sept ans.]{ANIA}{Ania}
\Character[VARIA, sa fille adoptive, vingt-cinq ans.]{VARIA}{Varia}
\Character[GAEV, LEONID ANDREEVITCH, frère de Ranevskaïa.]{GAEV}{Gaev}
\Character[LOPARINE, IERMOLAÏ ALEXEEVITCH.]{LOPAKHINE}{Lop}
\Character[TROFIMOV, PIOTR SERGUEEVITCH, étudiant.]{TROFIMOV}{trof}
\Character[SIMEONOV PICHTCHIK, BORIS BORISSOVITCH, Propriétaire terrien.]{PICHTCHIK}{Pich}
\Character[CHARLOTTA IVANOVNA, Gouvernante.]{CHARLOTTA}{Char}
\Character[EPIRODOV, SEMIONE PANTELEEVITCH, Employé.]{EPIKHODOV}{Epi}
\Character[DOUNICHA, La bonne.]{DOUNIACHA}{Doun}
\Character[FIRS, Laquais, vieillard de quatre-ving-sept ans.]{FIRS}{Firs}
\Character[IACHA, Jeune laquais.]{IACHA}{Iacha}
\Character[Un passant.]{UN PASSANT}{Passant}
\Character[Le chef de gare.]{Le Chef de gare}{Lechefdegare}
\Character[Le receveur des postes.]{receveur}{Postes}
\Character[Des invités, des domestiques.]{invités}{invdom}
\DramPer
\act
\StageDirConf{\itshape\centering}{\par}
\StageDir{
\begin{flushleft} Une chambre qu'on appelle toujours la chambre des enfants. L'une des portes donne sur la chambre d'Ania. Le point du jour, juste avant le lever du soleil. On est déjà en mai, les cerisiers sont en fleurs mais il fait froid, le brouillard du matin couvre la cerisaie. Les fenêtres de la chambre sont fermées.
\end{flushleft}
}
\StageDir{
\begin{flushleft}Entrent Douniacha, tenant une bougie à la main, et Lopakhine, un livre à la main.
\end{flushleft}}
\begin{drama}
\Lopspeaks --But are you really well, father?
You look so pale.
\end{drama}
\end{document}
编译结果
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/W32TeX) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./sansnom-2.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 9 languages loaded.
(d:/TEXLIVE/texmf-dist/tex/latex/memoir/memoir.cls
Document Class: memoir 2015/03/05 v3.7c configurable book, report, article document class
(d:/TEXLIVE/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(d:/TEXLIVE/texmf-dist/tex/latex/ifetex/ifetex.sty
(d:/TEXLIVE/texmf-dist/tex/plain/ifetex/ifetex.tex))
(d:/TEXLIVE/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(d:/TEXLIVE/texmf-dist/tex/generic/oberdiek/ifluatex.sty)
(d:/TEXLIVE/texmf-dist/tex/latex/etex-pkg/etex.sty)
(d:/TEXLIVE/texmf-dist/tex/latex/memoir/mem11.clo)
(d:/TEXLIVE/texmf-dist/tex/latex/memoir/mempatch.sty))
(d:/TEXLIVE/texmf-dist/tex/latex/base/inputenc.sty
(d:/TEXLIVE/texmf-dist/tex/latex/base/utf8.def
(d:/TEXLIVE/texmf-dist/tex/latex/base/t1enc.dfu)
(d:/TEXLIVE/texmf-dist/tex/latex/base/ot1enc.dfu)
(d:/TEXLIVE/texmf-dist/tex/latex/base/omsenc.dfu)))
(d:/TEXLIVE/texmf-dist/tex/latex/dramatist/dramatist.sty
(d:/TEXLIVE/texmf-dist/tex/latex/tools/xspace.sty)
Package dramatist Warning:
********************************************************
* No Configuration file found, using default settings. *
********************************************************
.
) (./sansnom-2.aux) [1{d:/TEXLIVE/texmf-var/fonts/map/pdftex/updmap/pdftex.map}
] [2] [3] [4] [5] (./sansnom-2.aux) )<d:/TEXLIVE/texmf-dist/fonts/type1/public/
amsfonts/cm/cmcsc10.pfb><d:/TEXLIVE/texmf-dist/fonts/type1/public/amsfonts/cm/c
mr10.pfb><d:/TEXLIVE/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb><d:/TE
XLIVE/texmf-dist/fonts/type1/public/amsfonts/cm/cmr17.pfb><d:/TEXLIVE/texmf-dis
t/fonts/type1/public/amsfonts/cm/cmti10.pfb>
Output written on sansnom-2.pdf (5 pages, 69154 bytes).
SyncTeX written on sansnom-2.synctex.gz.
Transcript written on sansnom-2.log.
答案1
好的,所以@Akira Kakuto 得到了它:\DramPer和\行为命令添加空白页,而\场景或者\部分没有。我只是没注意到……抱歉,谢谢大家的回答。
没有这些命令的布局仅适合一页。