假期期间需要做点什么吗?输入此假期竞赛!
你的挑战是写一个happyholidays
类将以最具创意、最有趣和最令人印象深刻的方式编译以下输入文档。
\documentclass{happyholidays}
\begin{document}
\caroltitle{Deck the Halls}
\begin{carol}
Deck the halls with boughs of holly, \eol
\Falala. \eol
'Tis the season to be jolly, \eol
\Falala. \eol
Don we now our gay apparel, \eol
\Falala. \eol
Troll the ancient Yuletide carol, \eol
\Falala! \eol
\end{carol}
\illustration
\end{document}
如果你以前从未写过类,那么从这里开始吧。你需要创建文件happyholidays.cls
,其开头和结尾应类似以下内容:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{happyholidays}[2016/12/19 Stackexchange holiday challenge]
\LoadClass{article} % or a different class, or process options, etc.
% ...
\endinput
使用您选择的工具,您需要定义命令caroltitle
、carol
环境、命令\Falala
和\eol
和\illustration
。如果您不知道这首歌,副歌应该是“Fa la la la la, la la la la”。
以下是一些可以帮助您入门的想法:
- 使用 LaTeX 字体目录中的草书、黑体或大写字母字体(或更多!)
- 使用颜色!
- 也许:将 设置
\Falala
为与其他颜色不同的颜色,并编写宏以便包含标点符号
- 也许:将 设置
- 想想你可以用什么不同的方式定义
carol
:atabular
、apoem
或完全不同的东西 - 使用 Tikz 或其他 LaTeX 工具绘制插图
- 使用 MusiXTeX 记谱音乐作为插图
- 动画片
- 类别选项可以彻底改变布局、颜色、字体等。
答案1
一只鸭子为了避免成为圣诞烤肉而逃跑,它沿着队伍跳来跳去,帮助唱圣诞颂歌。幸运的是,它跑得足够快,并在最后一张幻灯片上与它的所有朋友见面。
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{happyholidays}[2016/12/19 Stackexchange holiday challenge]
\LoadClass{beamer}
\RequirePackage{phaistos}
\RequirePackage{stackengine}
\RequirePackage{tikz}
\RequirePackage{bbding}
\RequirePackage{cookingsymbols}
\RequirePackage{venturis}
\renewcommand*\familydefault{\sfdefault}
% creating the title page
\newcommand{\caroltitle}[1]{
\title{#1}
\titlepage
}
%remove navigation symbols
\setbeamertemplate{navigation symbols}{}
% Note: very bad idea to use frame in a custom environment
% will break for fragile frames ... but for the spirit of X-Mas
\newenvironment{carol}{\begin{frame}[plain]}
{\end{frame}}
% not really a duck, but close enough
\newcommand{\duck}{\textcolor{red!70!black}{\visible<+>{\PHdove}}}
% Jumps from line to line
\newcommand{\eol}{\duck\newline}
% and helps the singer along the refrain
\newcommand{\lalala}{%
\foreach \i in {1,...,4}{%
\Longstack{{\duck} \colorstring{green!40!black}{red!70!black}{la}}\hskip-7pt%
}
}
% refrain
\newcommand{\Falala}{%
\Longstack[l]{{\duck} \colorstring{green!40!black}{red!70!black}{Fa}}\hskip-7.5pt%
\lalala{},\lalala
}
% from http://tex.stackexchange.com/a/286126/36296
\newcommand\colorstring[3]{\def\colorA{#1}\def\colorB{#2}\colorstringhelp#3%
\relax\relax\relax}
\def\colorstringhelp#1#2#3\relax{\textcolor<.->{\colorA}{#1}\textcolor<.->{\colorB}{#2}%
\ifx\relax#3\else\colorstringhelp#3\relax\relax\fi}
% modified from http://tex.stackexchange.com/a/165087/36296
\pgfmathsetseed{\number\pdfrandomseed} % seed for random generator
\newcommand{\illustration}{%
\setbeamertemplate{background canvas}{}
\begin{frame}
\frametitle{HoHoHo! Merry X-MAS!}
\begin{tikzpicture}
% \useasboundingbox (0,0) rectangle (\the\paperwidth, \the\paperheight);
\foreach \i in {1,...,100} {
\pgfmathsetmacro{\x}{random(0,10000)/10000+0.2}%
\pgfmathsetmacro{\y}{random(0,10000)/10000-0.3}%
\pgfmathsetmacro{\r}{random(0,10000)/100}%
\rotatebox{\r}{
\pgftext[at=\pgfpoint{\x\paperwidth}{\y\paperheight}, left, base]{\textcolor{red!\i!black}{\Large\PHdove}}
}
};
\end{tikzpicture}
\end{frame}
}
% snow in the background
\setbeamertemplate{background canvas}{%
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle (\the\paperwidth, \the\paperheight);
\foreach \i in {1,...,100} {
\pgfmathsetmacro{\x}{random(0,10000)/10000}%
\pgfmathsetmacro{\y}{random(0,10000)/10000}%
\pgfmathsetmacro{\r}{random(0,10000)/5000}%
\rotatebox{\r}{
\pgftext[at=\pgfpoint{\x\paperwidth}{\y\paperheight},left,base]{\textcolor{gray!\i!white}{\SnowflakeChevron}}
}
};
\end{tikzpicture}
}
% Titlepage
\setbeamertemplate{title page}{%
\begin{frame}[plain]
\centering
\usebeamerfont{title}\inserttitle
\vskip1cm
\scalebox{3}{\color{red!70!black}\Huge\Oven~\color{green!40!black}\Large\PHdove}
\end{frame}
}
\endinput
现在乳胶中没有鸭子的问题终于解决了,我可以用真正的鸭子代替鸽子作为鸭子(警告:以下代码可能需要一段时间才能编译)
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{happyholidays}[2016/12/19 Stackexchange holiday challenge]
\LoadClass{beamer}
\RequirePackage{phaistos}
\RequirePackage{stackengine}
\RequirePackage{tikz}
\RequirePackage{bbding}
\RequirePackage{cookingsymbols}
\RequirePackage{tikzducks}
\RequirePackage{venturis}
\renewcommand*\familydefault{\sfdefault}
% creating the title page
\newcommand{\caroltitle}[1]{
\title{#1}
\titlepage
}
%remove navigation symbols
\setbeamertemplate{navigation symbols}{}
% Note: very bad idea to use frame in a custom environment
% will break for fragile frames ... but for the spirit of X-Mas
\newenvironment{carol}{\begin{frame}[plain]}
{\end{frame}}
% really a duck :)
\newcommand{\santa}{\visible<+>{\raisebox{-0.6em}{\begin{tikzpicture}[scale=0.3]
\duck
\end{tikzpicture}}}}
% Jumps from line to line
\newcommand{\eol}{\santa\newline}
% and helps the singer along the refrain
\newcommand{\lalala}{%
\foreach \i in {1,...,4}{%
\Longstack{{\santa} \colorstring{green!40!black}{red!70!black}{la}}\hskip-7pt%
}
}
% refrain
\newcommand{\Falala}{%
\Longstack[l]{{\santa} \colorstring{green!40!black}{red!70!black}{Fa}}\hskip-7.5pt%
\lalala{},\lalala
}
% from http://tex.stackexchange.com/a/286126/36296
\newcommand\colorstring[3]{\def\colorA{#1}\def\colorB{#2}\colorstringhelp#3%
\relax\relax\relax}
\def\colorstringhelp#1#2#3\relax{\textcolor<.->{\colorA}{#1}\textcolor<.->{\colorB}{#2}%
\ifx\relax#3\else\colorstringhelp#3\relax\relax\fi}
% modified from http://tex.stackexchange.com/a/165087/36296
\pgfmathsetseed{\number\pdfrandomseed} % seed for random generator
\newcommand{\illustration}{%
\setbeamertemplate{background canvas}{}
\begin{frame}
\frametitle{HoHoHo! Merry X-MAS!}
\centering
\begin{tikzpicture}[scale=3]
\duck
\fill[red!60!black]
(0.430,1.803) .. controls (0.590,2.174) and (0.837,2.065) ..
(1.118,1.954) .. controls (1.679,1.731) and (1.328,1.193) ..
(1.647,1.057) .. controls (1.638,1.255) and (1.745,2.104) ..
(1.168,2.270) .. controls (0.867,2.356) and (0.536,2.280) ..
(0.430,1.803) -- cycle;
\fill[white!80!brown]
(0.44,1.733) .. controls (0.211,2.299) and (1.082,2.188) ..
(1.456,1.759) .. controls (1.534,1.637) and (1.480,1.545) ..
(1.400,1.566) .. controls (1.265,1.714) and (0.577,2.267) ..
(0.44,1.733) -- cycle;
\fill[white!80!brown] (1.6,1.0) circle (0.17);
\end{tikzpicture}
\end{frame}
}
% snow in the background
\setbeamertemplate{background canvas}{%
\begin{tikzpicture}
\useasboundingbox (0,0) rectangle (\the\paperwidth, \the\paperheight);
\foreach \i in {1,...,100} {
\pgfmathsetmacro{\x}{random(0,10000)/10000}%
\pgfmathsetmacro{\y}{random(0,10000)/10000}%
\pgfmathsetmacro{\r}{random(0,10000)/5000}%
\rotatebox{\r}{
\pgftext[at=\pgfpoint{\x\paperwidth}{\y\paperheight},left,base]{\textcolor{gray!\i!white}{\SnowflakeChevron}}
}
};
\end{tikzpicture}
}
% Titlepage
\setbeamertemplate{title page}{%
\begin{frame}[plain]
\centering
\usebeamerfont{title}\inserttitle
\vskip1cm
\scalebox{3}{\color{red!70!black}\Huge\Oven~\color{green!40!black}}\raisebox{-0.4em}{\begin{tikzpicture}
\duck[magichat,magicwand]
\end{tikzpicture}}
\end{frame}
}
\endinput
答案2
当然,我的作品并不那么令人印象深刻,但它是一个有用的练习(我的第一堂 LaTeX 课!)。
非常高兴,溢出的单词完美地充当了树顶装饰。
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{happyholidays}[2016/12/19 Stackexchange holiday challenge]
\LoadClass{article} % or a different class, or process options, etc.
\RequirePackage{tgchorus}
\RequirePackage{color}
\RequirePackage{shapepar}
\RequirePackage{staves}
\newcommand{\caroltitle}[1]{\centering {\Large \textcolor{red}{#1}} \vspace{5mm}}
\newcommand{\Falala}{Fa la la la la, la la la la}
\newcommand{\eol}{\\}
\newcommand{\illustration}{\vspace{5mm} \centering \colorbox{blue}{{\color{white}\staveLXII \staveLXII \staveLXII}}}
\newcommand\xmastreeshape{
{0}
{0}b{0}\\
{4}t{-1}{2}\\
{4.01}t{-0.25}{0.5}\\
{5}t{-0.25}{0.5}\\
{5}e{0}
}
\newenvironment{carol}%
{\shapepar{\xmastreeshape}{}%
{}}
\endinput
答案3
这是happyholidays.cls
。根据 OP 的要求,已编辑,将“falalalala”后面的标点符号变为彩色,我通过采用\Falala
强制参数(即结束标点符号)来实现这一点。
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{happyholidays}[2016/12/19 Stackexchange holiday challenge]
\LoadClass{article} % or a different class, or process options, etc.
\RequirePackage{listofitems}[2016-11-18]
\RequirePackage{environ}
\RequirePackage{graphicx}
\RequirePackage{xcolor}
\def\caroltitle#1{\def\carolname{#1}{\Huge\scshape\centering#1\par\bigskip}}
\NewEnviron{carol}{%
\centering\setsepchar{\eol}%
\readlist\mycarol\BODY%
\foreachitem\phrase\in\mycarol{\phrase\par}%
}
\def\illustration{\bigskip\includegraphics[width=\textwidth]{"\carolname"}}
\def\Falala#1{%
\textcolor{red}{\itshape\bfseries Fa-la-la-la-la, la-la-la-la%
\upshape\mdseries#1}\smallskip}
\parindent0pt
\endinput
我使用了给定的输入文件
\documentclass{happyholidays}
\begin{document}
\caroltitle{Deck the Halls}
\begin{carol}
Deck the halls with boughs of holly, \eol
\Falala. \eol
'Tis the season to be jolly, \eol
\Falala. \eol
Don we now our gay apparel, \eol
\Falala. \eol
Troll the ancient Yuletide carol, \eol
\Falala! \eol
\end{carol}
\illustration
\end{document}
Deck The Halls.jpg
下载的 文件名来自http://www.guitarnoise.com/images/features/christmas-tree-decorations-1024x585.jpg
答案4
这个答案有点复杂。历史断言是基于维基百科。 我有 不是 已核实原始资料。因此,历史声明按原样提供,不保证或保证真实性。如果需要更正历史记录,请发表评论。
买者自负 ...
问题中发布的颂歌版本是 19 世纪的美国化版本。因此,它毫不奇怪地遭到了清教徒对酒精的怀疑。因此,原版中所有关于欢乐液体的提及均被删除。
我很不情愿地将这个混合版本包含在下面的文档中,但我建议颂歌者从更早的、不那么痛苦抑制的版本中寻找音乐灵感。
美国版本是托马斯·奥利芬特 15 年前提供的文字的清教版本。除了取消欢乐的饮料外,一个大厅显然对大西洋彼岸的人们来说也不够,所以他们从 1892 年开始更改了名称,并增加了要装饰的房间数量。
Oliphant 的文字是 1862 年的英国英语版本,与 Talhaiarn 的文字一起出版诺斯加兰,威尔士颂歌的原版。爱德华·琼斯的早期版本于 1794 年出版,但诺斯加兰年纪大了。
让事情更加复杂的是,这Fa la la ...
句话原来是威尔士人重复的一句歌词的变形版Fal lal lal ...
。谁知道会发生什么呢?那是……的混乱。此外,威尔士语版本用器乐叠句代替了第三个Fal lal lal ...
,显然必须再次以不同的方式呈现。
现在诺斯加兰与圣诞节毫无关系。这是威尔士的一个更古老的传统,至少在东南部,它与 Y Fari Lwyd(灰色母马)有关。这包括在 Nos Galan(新年前夕)来回竞争地唱诗。一组人走在街上,抬着一个装饰好的母马的头骨,头骨固定在一根杆子上,并固定好,以便下巴可以张开和闭合。这组人在门口唱歌以示进入,里面的人通过关闭的门用歌声回答。如果该组在比赛中获胜,门就会打开,流浪者们会得到饮料。当然,到现在为止,这已经是仪式化了,各组之间来回唱着标准的诗句,流浪者唱完最后一首诗以确保胜利。
不用说,门通常是酒吧的门。因此,即使英式英语版本已经将其含义改得面目全非,美式英语版本中去掉酒精一词也几乎不能被视为偶然。也就是说,1862 年的英语单词绝不是与之并列的威尔士语单词的翻译。相反,它们是旨在与同一种音乐一起演唱的英语单词,这种音乐比威尔士语和英语诗歌都更古老。
恐怕所有这些都需要对 MWE 进行一些修改。但是,原始 MWE 仍会产生输出。只是不太有趣。此外,MWE 包含虚假空格,我在下面的屏幕截图中已将其删除,但在左侧创建了一个白色边距。这是因为行尾未正确注释。
请注意,与所有好的类一样,happyholidays
当用户尝试使用已弃用的命令时,会发出警告。在这种情况下,\caroltitle{}
没有影响(可能除了虚假间距),并且该类会告诉您如何相应地更新代码。
这是没有虚假空格并使用该类的当前版本的替代 MWE happyholidays
。
\documentclass{happyholidays}
\begin{document}
\begin{carol}[lang=welsh, title=Nos Galan, year=1794, author=Edward Jones, dist=5mm, tikz={xshift=-15mm}]
O mor gynnes mynwes meinwen, \eol
\fallalla: \eol
O mor fwyn yw llwyn meillionen, \eol
\fallalla: \eol
O mor felus yw'r cusanau, \eol
\instrumentalflourish \eol
Gyda serch a mwynion eiriau \eol
\fallalla: \eol
\end{carol}
\begin{carol}[lang=welsh, title=Nos Galan, year=1862, author=Talhaiarn (John Jones), dist=5mm, tikz={xshift=-15mm}]
Goreu pleser ar nos galan, \eol
\fallalla: \eol
Tŷ{} a thân a theulu diddan, \eol
\fallalla: \eol
Calon lân a chwrw melyn, \eol
\instrumentalflourish \eol
Pennill mwyn a llais y delyn, \eol
\fallalla: \eol
\end{carol}
\begin{carol}[title=Deck the Hall, year=1862, author=Thomas Oliphant, tikz={xshift=-18.5mm}]
Deck the hall with boughs of holly, \eol
\Falala! \eol
'Tis the season to be jolly, \eol
\Falala! \eol
Fill the meadcup, drain the barrel, \eol
\Falala \eol
Troul the ancient Christmas carol, \eol
\Falala! \eol
\end{carol}
\begin{carol}[lang=american, title=Deck the Hall, year=1877, author=Puritanical Version, tikz={xshift=18.5mm}]
Deck the halls with boughs of holly, \eol
\Falala. \eol
'Tis the season to be jolly, \eol
\Falala. \eol
Don we now our gay apparel, \eol
Troll the ancient Yuletide carol, \eol
\Falala! \eol
\end{carol}
\begin{carol}[lang=american, author=Expansive Puritanical Version, dist=5mm, tikz={xshift=18.5mm}]
Deck the halls with boughs of holly, \eol
\Falala. \eol
'Tis the season to be jolly, \eol
\Falala. \eol
Don we now our gay apparel, \eol
\Falala. \eol
Troll the ancient Yuletide carol, \eol
\Falala! \eol
\end{carol}
\illustration
\end{document}
请注意,上述 MWE 将不是如果类中的字体包或默认输出编码发生更改,则编译。如果字符由字母和单独的重音组成,而不是使用预组合的字形,则代码无法容忍在此上下文中使用威尔士重音字符之一。据我所知,berenis
是标准发行版中唯一使用 pdfTeX 预组合字形的字体包。但是,如果使用 LuaTeX 或 XeTeX(未经测试)进行编译,它可能适用于其他字体。
继续回答的其他部分...(超出 SE 的大小限制)。
编辑
该课程的最新版本
对于.tex
上面发布的第二份文档。不幸的是,该类太大,甚至无法作为单独的答案发布。但是,您可以pic
通过应用以下补丁将该答案中的类版本转换为包含 s 的版本,如上所示:
--- happyholidays.cls 2016-12-26 04:46:36.782370097 +0000
+++ happyholidays.cls 2016-12-31 03:06:56.889200144 +0000
@@ -37,7 +37,7 @@
\RequirePackage[LY1,T1]{fontenc}
\RequirePackage{berenis}
\RequirePackage[utf8]{inputenc}
-\RequirePackage{wasysym}
+\RequirePackage{wasysym,linearb,phaistos}
% \NewDocumentCommand{\Cymraeg}{}{\selectlanguage{welsh}}
% \NewDocumentCommand{\Amercian}{}{\selectlanguage{american}}
@@ -147,13 +147,61 @@
% adapted from tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarybackgrounds.code.tex
\tikzset{%
on canfas layer/.style={%
- execute at begin scope={%
- \pgfonlayer{canfas}%
- \let\tikz@options=\pgfutil@empty%
- \tikzset{every on canfas layer/.try,#1}%
- \tikz@options%
- },
- execute at end scope={\endpgfonlayer}
+ execute at begin scope={%
+ \pgfonlayer{canfas}%
+ \let\tikz@options=\pgfutil@empty%
+ \tikzset{every on canfas layer/.try,#1}%
+ \tikz@options%
+ },
+ execute at end scope={\endpgfonlayer}
+ },
+ math y celyn/.store in=\mathycelyn,
+ math y celyn=10mm,
+ troi/.store in=\troiycelyn,
+ troi=0,
+ troi cyntaf/.store in=\troiygyntaf,
+ troi ail/.store in=\troiyrail,
+ troi cyntaf=-25,
+ troi ail=-65,
+ celyn/.pic={
+ \tikzset{
+ #1,
+ }%
+ \coordinate (o) at (0,0);
+ \begin{scope}[rotate=\troiycelyn]
+ \shade [draw=ForestGreen, postaction={fill=ForestGreen, blend mode=hard light}, left color=ForestGreen, right color=ForestGreen, middle color=white, shading angle={\troiycelyn-90}] (.05*\mathycelyn,0) coordinate (g2)
+ .. controls +(-.15*\mathycelyn,.5*\mathycelyn) and +(-.25*\mathycelyn,.05*\mathycelyn) .. ++(.6*\mathycelyn,.25*\mathycelyn) coordinate (a2)
+ .. controls +(-.1*\mathycelyn,.05*\mathycelyn) and +(-.25*\mathycelyn,-.1*\mathycelyn) .. ++(.05*\mathycelyn,.35*\mathycelyn) coordinate (b2)
+ .. controls +(-.2*\mathycelyn,.1*\mathycelyn) and +(-.35*\mathycelyn,-.1*\mathycelyn) .. ++(.1*\mathycelyn,.45*\mathycelyn) coordinate (c2)
+ .. controls +(-.25*\mathycelyn,.075*\mathycelyn) and +(-.4*\mathycelyn,-.15*\mathycelyn) .. ++(.075*\mathycelyn,.4*\mathycelyn) coordinate (ch2)
+ .. controls +(-.15*\mathycelyn,.05*\mathycelyn) and +(-.25*\mathycelyn,-.2*\mathycelyn) .. ++(-.05*\mathycelyn,.35*\mathycelyn) coordinate (d2)
+ .. controls +(-.2*\mathycelyn,.05*\mathycelyn) and +(-.45*\mathycelyn,-.3*\mathycelyn) .. ++(-.2*\mathycelyn,.5*\mathycelyn) coordinate (dd2)
+ .. controls +(-.5*\mathycelyn,-.25*\mathycelyn) and +(-.1*\mathycelyn,-.25*\mathycelyn) .. ++(-.5*\mathycelyn,.25*\mathycelyn) coordinate (e2)
+ .. controls +(-.075*\mathycelyn,-.05*\mathycelyn) and +(0,-.025*\mathycelyn) .. ++(-.125*\mathycelyn,.1*\mathycelyn) coordinate (p)
+ .. controls +(0,-.025*\mathycelyn) and +(.075*\mathycelyn,-.05*\mathycelyn) .. ++(-.125*\mathycelyn,-.1*\mathycelyn) coordinate (e1)
+ .. controls +(.1*\mathycelyn,-.25*\mathycelyn) and +(.5*\mathycelyn,-.25*\mathycelyn) .. ++(-.5*\mathycelyn,-.25*\mathycelyn) coordinate (dd1)
+ .. controls +(.45*\mathycelyn,-.3*\mathycelyn) and +(.2*\mathycelyn,.05*\mathycelyn) .. ++(-.2*\mathycelyn,-.5*\mathycelyn) coordinate (d1)
+ .. controls +(.25*\mathycelyn,-.2*\mathycelyn) and +(.15*\mathycelyn,.05*\mathycelyn) .. ++(-.05*\mathycelyn,-.35*\mathycelyn) coordinate (ch1)
+ .. controls +(.4*\mathycelyn,-.15*\mathycelyn) and +(.25*\mathycelyn,.075*\mathycelyn) .. ++(.075*\mathycelyn,-.4*\mathycelyn) coordinate (c1)
+ .. controls +(.35*\mathycelyn,-.1*\mathycelyn) and +(.2*\mathycelyn,.1*\mathycelyn) .. ++(.1*\mathycelyn,-.45*\mathycelyn) coordinate (b1)
+ .. controls +(.25*\mathycelyn,-.1*\mathycelyn) and +(.1*\mathycelyn,.05*\mathycelyn) .. ++(.05*\mathycelyn,-.35*\mathycelyn) coordinate (a1)
+ .. controls +(.25*\mathycelyn,.05*\mathycelyn) and +(.15*\mathycelyn,.5*\mathycelyn) .. ++(.6*\mathycelyn,-.25*\mathycelyn) coordinate (g1)
+ [bend left] to cycle
+ ;
+ % \foreach \i in {a,b,c,ch,d,dd,e,g} { \node [red, font=\tiny] at (\i 1) {\i 1}; \node [red, font=\tiny] at (\i 2) {\i 2}; }
+ \foreach \i in {a,b,c,ch,d,dd,e} \coordinate (\i 3) at (\i 1 -| o);
+ \draw [ForestGreen] (a3) [out=120, in=-130] to (b3) [out=50, in=-60] to (c3) [out=120, in=-130] to (ch3) [out=50, in=-55] to (d3) [out=125, in=-110] to (dd3) [out=70, in=-80] to (e3) \foreach \i in {b,c,ch,d} {(\i 1 -| dd1) [bend left] to (\i 3) [bend left] to (\i 2 -| dd2)};
+ \end{scope}
+ },
+ dau gelyn/.pic={
+ \tikzset{
+ #1,
+ }%
+ \pic {celyn={troi=\troiygyntaf}};
+ \pic {celyn={troi=\troiyrail}};
+ \shade [ball color=Crimson] (80:.15*\mathycelyn) circle (.1*\mathycelyn);
+ \shade [ball color=Crimson] (0,0) circle (.1*\mathycelyn);
+ \shade [ball color=Crimson] (20:.15*\mathycelyn) circle (.1*\mathycelyn);
},
}
@@ -199,7 +247,17 @@
]
\carol@collected
\scoped [on canfas layer] {
- \node [fit=(current bounding box.north west) (current bounding box.south east), fill=black] {};
+ \node (ddu) [fit=(current bounding box.north west) (current bounding box.south east), fill=black] {};
+ \begin{scope}[shift=(ddu.west)]
+ \begin{scope}[x=(ddu.east), y=(ddu.north west), inner sep=0pt]
+ \node [text=Silver, anchor=south west, font=\linbfamily, scale=5, opacity=.75, rotate=30] at (.065,.25) {\BPhorse};
+ \node [text=Silver, opacity=.5, anchor=north west, scale=5] at (.05,-.15) {\PHhide};
+ \node [text=Gold, font=\linbfamily, anchor=north west, scale=5] at (.2,-.25) {\BPcup};
+ \pic at (.875,.25) {dau gelyn};
+ \pic at (.85,-.75) {dau gelyn};
+% \draw [white] (0,0) grid (1,1);
+ \end{scope}
+ \end{scope}
}
\end{tikzpicture}%
}