我在 simpleslide 和 MWE 中放置多个作者姓名时遇到问题
\usemodule[simpleslides]
[style=Rounded,color=red,
font=Helvetica]
\setupTitle
[ title={TSP\\(Travelling Salesman Problem)},
author={Hirwanto, Novariza Eka Putri, Maya Arum Oktavia, Zara Shelli Meirosa, Sisca Aprila, Dian Nosy Antika, Nani Kurniasih, Dewy Aryani Ruspitasari, Donna Widya Yolanda,Nina Oktariana, Irma Padeta, Dian Ayu Ningtias,Delfa Anesia, Ayu Widya Pratiwi,Fitria Wulandari, Indah Pertiwi, Mareza Yolanda Umar,Revi, Yuri},
date={Date of presentation},
]
\starttext
\placeTitle
\SlideTitle {The first slide}
Write whatever you want.
\SlideTitle {The second slide}
Continue writing.
\stoptext
我运行我的代码,结果如下
如何将作者姓名放置在居中的标题中,如下所示:
我不知道如何编辑我的简单幻灯片。
答案1
simpleslides 的设计目标是让创建新样式变得简单。因此,现有样式的设计并未考虑定制。因此,调整现有样式与创建新样式的工作量大致相同(只要您了解基本的 ConTeXt 环境,创建新样式就不难)。
beforeauthor
为了获得您想要的设计,我会更改...afterauthor
和beforedate
...的参数afterdate
,并调整默认的 MP 背景。
\usemodule[simpleslides]
[
style=Rounded,
color=red,
font=Helvetica,
]
\defineframedtext
[authorframe]
[
width=0.85\textwidth,
frame=off,
overlay=none,
before=,
after=,
]
\definenarrower
[datenarrower]
[
before={\blank[2cm]},
left={9cm},
default=left,
]
\setupTitle
[
before={\blank[force,0.2cm]},
authorstyle={\switchtobodyfont[12pt]},
authorcolor=black,
beforeauthor=\startauthorframe,
afterauthor=\stopauthorframe,
beforedate={\startdatenarrower},
afterdate={\stopdatenarrower},
]
% Copied from simpleslides-s-Rounded.tex
\startuniqueMPgraphic{simpleslides:MP:title}
StartPage ;
save a,b,c,d;
numeric a,b,c,d;
a = 4cm ; b = 3cm ;
c = 8cm ; d = .7cm ;
save p; path p[] ;
p[1] = ulcorner Page -- ulcorner Page shifted (PaperWidth/2,0) --
llcorner Page shifted (PaperWidth/2,0) -- llcorner Page -- cycle ;
fill Page withcolor \MPcolor{simpleslides:backgroundcolor} ;
fill p[1] withcolor \MPcolor{simpleslides:contrastcolor} ;
z1 = ulcorner Page shifted (PaperWidth/2,-b) ;
z2 = z1 shifted (-c,0) ;
z3 = z2 shifted (0,-a) ;
z4 = z3 shifted (c,0) ;
z5 = z2 shifted (-1.5cm,-a/2) ;
p[2] = z1 -- z2 .. z5 .. z3 -- z4 -- cycle ;
fill p[2] withcolor \MPcolor{simpleslides:backgroundcolor} ;
z6 = llcorner Page shifted (PaperWidth/2,0) ;
z7 = 1/2[z6,z4] ;
z8 = z7 shifted (-.75*b,d/2) ;
z9 = z8 shifted (0,-d) ;
z10 = z9 shifted (1.3*c,0) ;
z11 = z10 shifted (0,d) ;
z12 = z10 shifted (d/2,d/2) ;
p[3] = (z8 -- z9 -- z10 .. z12 .. z11 -- cycle) shifted (0, -PaperHeight/4 + d) ; % AM: Shift added
fill p[3] withcolor \MPcolor{simpleslides:textcolor} ;
StopPage ;
\stopuniqueMPgraphic
\setupTitle
[
title={TSP\\(Travelling Salesman Problem)},
author={Hirwanto, Novariza Eka Putri, Maya Arum Oktavia, Zara Shelli Meirosa,
Sisca Aprila, Dian Nosy Antika, Nani Kurniasih, Dewy Aryani Ruspitasari, Donna
Widya Yolanda,Nina Oktariana, Irma Padeta, Dian Ayu Ningtias,Delfa Anesia, Ayu
Widya Pratiwi,Fitria Wulandari, Indah Pertiwi, Mareza Yolanda Umar,Revi, Yuri},
date={Date of presentation},
]
这使: