é£æ¥ã®çæã®æããçæçã«æãã¦ãã¾ãã§çæã®æãã®ãããªæãçæã«ãªã£ã¦ãã¾ããç¹ã«ä»å¹´ã®å¤ã¯çæãçæçã«æãçæã«ãªã£ã¦ãã¦ããæãæããçæã¾ã§ãã¨ããçæçãªè¨ãä¼ãã®éãâ¦â¦ï¼ä¸ç¥ï¼â¦â¦ããã ãã¾âï¼
ä»æ¥ã¯ãçãããå¾ ã¡ããã®ãï¾ ï¾ï¾ï½¶ã®æ¥ï¼
— æZRï¼ããããðï¼ (@zr_tex8r) 2024å¹´8æ7æ¥
âð¥°#ï¾ ï¾ï¾ï½¶ #ã®æ¥ â¤â pic.twitter.com/N8zrM8LbfZ
ã¨ããããã§ãå¤ã®æãã«ãè² ããã«ä»å¹´ããããã ãã¾âã®æ¥ãããã£ã¦ãã¾ããï¼
âã§åé¡è§£æ±ºããªã話
ãã¦ãããã¾ã§ãããã ãã¾âã®æ¥ãã®ãã¿ã§ã¯ãâã®å§åçãªåé¡è§£æ±ºè½åãã¿ã¦ãã¾ããããã¾æ¯éã¨ã解決ãããåé¡ã¨ããã°ããã¡ããããã®å¤ã®æãðãã§ããããã£ããâã®åãåãã¦ã¹ãã¼ãã«è§£æ±ºãããã¨ãããã§ããâ¦â¦
ãç¥è¦ã
— æZRï¼ããããðï¼ (@zr_tex8r) 2024å¹´7æ27æ¥
å¤ãããã£ã¯ã½æãðã®ã¯âLaTeXã«é¢ããåé¡âã§ã¯ãªãã®ã§ãããã ãã¾âãç¨ãã¦æ¬è³ªçã«è§£æ±ºããã®ã¯å°é£ð§#TeX #ï¾ ï¾ï¾ï½¶ #ããããð
ããããð
ã¨ã¯ãã£ã¦ããâã¯ããã ãã¾ãªã®ã§ãè¦ã¦ãã¦æ¶¼ãããããªãã¨ã¯ç¢ºãã§ãããããããããããå¥ã«å ¨ç¶æ¶¼ãããã§ãªããã¨ãã人ãããããããã¾ããããããã§ããç´ æµðããªãã¨ã¯ééãããã¾ãããã¨ããããã§ãä»å¹´ã¯åé¡è§£æ±ºã®æ¹ã¯ãã§ãããä¼ã¿ãã¦ãç´ æµðãªâç»åãã¤ããããã¨ã«é¢å¿ãåãã¦ã¿ã¾ãããã
scsnowmanã§ã¨ã«ããâç»åãã話
ãã¦ãç´ æµðãªâç»åãã¤ãããæ¹æ³ã¨ãã£ã¦çã£å ã«æãæµ®ãã¶ã®ã¯ããã¯ãLaTeXã®scsnowmanããã±ã¼ã¸ã§ããð
scsnowmanãå©ç¨ããã¨ç°¡åã«ã¤ãã¤ããªâãæç»ã§ãã¾ãã
% pdfLaTeXææ¸ % standaloneã¯ã©ã¹ãç¨ããã®ã§, tikzpictureç°å¢ã® % "ä¸èº«"ã ããææ¸ã¨ãã¦åºåããã. \documentclass{standalone} \usepackage[svgnames]{xcolor}% SVGã®è²åãå©ç¨ãã \usepackage{tikz} \usepackage{scsnowman}% ããã ãã¾â \begin{document} % 72dpiã§ããããããç»åã«å¤æããéã« % "TikZ座æ¨ã®1åä½ï¼1ãã¯ã»ã«" % ã«ãªãããã«, åä½ã1bpã«è¨å®ãã. \begin{tikzpicture}[x=1bp, y=1bp] % ç»åã®å¤§ãããå¼·å¶çã«æå®ãã(480bpÃ270bp) \useasboundingbox (0,0) rectangle (480,270); % ãã¨ã¯èªç±ã« \scsnowman ããã ãð \node at ( 80,135) {\scsnowman[scale=18, hat, buttons, arms, muffler=Red, snow]}; \node at (240,135) {\scsnowman[scale=18, hat, buttons, arms, muffler=Blue, sweat, mouthshape=tight]}; \node at (400,135) {\scsnowman[scale=18, hat, buttons, arms, muffler=Green, snow]}; \end{tikzpicture} \end{document}
ç´ æµð
ãã®ããã«scsnowmanã¯ç´ æ´ãããããã±ã¼ã¸ã§ããããã§ããæ©è½ä¸è¶³ãªã¨ãããããã¾ããæ¨å¹´ã®ãTeX & LaTeX Advent Calendarãã®è¨äºã§ã¯ãèæ¯ã®ããããã¼ã®âç»åãscsnowmanã§ã¤ããã®ã¯é£ãããã¨ãã話ããã¾ãããããã¦ããã®è§£æ±ºçã®1ã¤ã¨ãã¦æä½ã®âãscsnowman-libãã¨ããã©ã¤ãã©ãªã®è©±ããã¾ããã
- scsnowman-libã©ã¤ãã©ãªï¼GitHub/zr-tex8rï¼
ãã®è¨äºã«ãããèæ¯ã®ããããã¼ã®âç»åãã®ä¾ãåæ²ãã¦ããã¾ãã
% pdfLaTeXææ¸ \documentclass{standalone} \usepackage[svgnames]{xcolor} \usepackage{tikz,scsnowman}% ããã ãã¾â % zrextraã©ã¤ãã©ãªãèªã¿è¾¼ãã§å¡ãã¤ã¶ãã®è²ãæå®ãã \usescsnowmanlibrary{zrextra} \sczrextrasetup{bodyfill=White, snowfill=White} \begin{document} \begin{tikzpicture}[x=1bp, y=1bp] \useasboundingbox (0,0) rectangle (480,360); \fill[DarkGreen] (0,0) rectangle (480,40); \fill[SkyBlue!5] (0,40) rectangle (480,360); \shade[top color=SkyBlue!65, bottom color=SkyBlue!5] (0,180) rectangle (480,360); \node at (232,248) {\scsnowman[scale=64, shape=zrextra, muffler=Red, hat=Green, buttons=RoyalBlue, arms=Brown, snow=SkyBlue]}; \end{tikzpicture} \end{document}
scsnowman-libã®ã©ã¤ãã©ãªç¾¤ã«ã¯ãã©ã£ãã®ZRæ°ðãâç»åãã¤ããã«ããã£ã¦ä»ã¾ã§å¿ è¦ã«ãªã£ãã¤ãã¤ããªæ©è½ããéãããã¦ãã¾ããæ¬è¨äºã§ã¯scsnowman-libãå©ç¨ãã¦ãã£ã¨ãã£ã¨å¤æ§ãªâç»åãã¤ããæ¹æ³ã解説ãã¦ããã¾ãã
scsnowman-libã§ã¤ãã¤ãâç»åãã話
â»scsnowman-libã®ã¤ã³ã¹ãã¼ã«æ¹æ³ããã³âåä½åçâï¼ããã ãã¾å®ç¾©ãã¡ã¤ã«ï¼ã®èª¬æã¯ã¢ããã³ãã«ã¬ã³ãã¼ã®è¨äºã«æ¸ããã¦ããã®ã§ãã¡ããåç §ãã¦ãã ããã
å¡ãã¤ã¶ããâã§ç»åããæ¹æ³
ã¾ãã¯ãèæ¯ã®ããç»åã§å¿ è¦ã¨ãªããå¡ãã¤ã¶ããâããä¾ã«ãã¦ãscsnowman-libã®å ¨è¬çãªä½¿ãæ¹ãæ¹ãã¦èª¬æãã¾ãã
scsnowman-libã¯è¤æ°ã®ã©ã¤ãã©ãªï¼ããã ãã¾å®ç¾©ãã¡ã¤ã«ï¼ã®éã¾ãã§ãããä»åå¿
è¦ã«ãªãã®ã¯ããã®ä¸ã§æãåºæ¬çãªzrextraã©ã¤ãã©ãªã§ããscsnowmanã®ã©ã¤ãã©ãªãèªã¿è¾¼ãã«ã¯\usescsnowmanlibrary
ã¨ããï¼scsnowmanããã±ã¼ã¸ã®ï¼å½ä»¤ã使ãã¾ãã
% zrextraã¨ããã©ã¤ãã©ãªãèªã¿è¾¼ã \usescsnowmanlibrary{zrextra}
ã©ã¤ãã©ãªï¼ããã ãã¾å®ç¾©ãã¡ã¤ã«ï¼ãèªã¿è¾¼ãã¨æ°ããâã®ãå½¢ç¶ããå®ç¾©ããã¾ãã\scsnowman
å½ä»¤ã®ãªãã·ã§ã³ã®ãã©ã¡ã¿ã®ä¸ã§shape
ãã¼ãæå®ããã¨ããã®æ°ããå½¢ç¶ããã¤âãæç»ã§ãã¾ããzrextraã®æ©è½ãæå¹ã«ããâãã¤ã¾ããzrextraã®å½¢ç¶ã®âããæç»ããå ´åã¯shape=zrextra
ãæå®ãããã¨ã«ãªãã¾ãã
% zrextraã®å½¢ç¶ã®âãæç»ãã \snowman[shape=zrextra,«ä»ã®ãã©ã¡ã¿Â»...]
scsnowman-libã®ã©ã¤ãã©ãªã®å
±éä»æ§1ã¨ãã¦ãã©ã¤ãã©ãªã«ç¹æã®ãã©ã¡ã¿ã¯\sczrextrasetup
ã¨ããå½ä»¤ã§æå®ãã¾ã2ã
\sczrextrasetup{«ãã¼Â»=«å¤Â»,...}
ï¼ scsnowman-libã®ã©ã¤ãã©ãªã«ã¤ãã¦ãã©ã¤ãã©ãªã«ç¹æã®ãã©ã¡ã¿ãè¨å®ããã\sczrextrareset
ï¼ ãã©ã¡ã¿ã®è¨å®å¤ãæ¢å®å¤ã«æ»ãã
scsnowman-libã®å ±éä»æ§ã¨ãã¦ã¯æ¬¡ã®ãã©ã¡ã¿ãã¼ãåå¨ãã¾ããã¤ã¾ãããããã®ãã©ã¡ã¿ã¯ãzrextraãã¯ããã¨ããscsnowman-libã®å ¨ã¦ã®ã©ã¤ãã©ãªã§ä½¿ç¨ã§ãã¾ãã
bodyfill=«è²Â»|false
ï¼ âã®ä½ã®å¡ãã¤ã¶ãã®è²ãæå®ãããfalse
ãæå®ããå ´åã¯å¡ãã¤ã¶ããããªããï¼»æ¢å®å¤ï¼false
ï¼½snowfill=«è²Â»|false
ï¼ éªçã®å¡ãã¤ã¶ãã®è²ãæå®ãããfalse
ãæå®ããå ´åã¯å¡ãã¤ã¶ããããªããï¼»æ¢å®å¤ï¼false
ï¼½
â»è²ã¯xcolorã®è²å¼ã§æå®ããï¼scsnowmanã§ã®è²æå®ã¨åãï¼ãboldness=«å®æ°Â»
ï¼ ç·ã®å¤ªããæå®ãããå®æ°ã®å¤ã¯æ¨æºã«å¯¾ããåçã表ããï¼»æ¢å®å¤ï¼1
ï¼½bold=«çå½å¤Â»
ï¼bold=true
ã¯boldness=1.6
ã¨ç価ã§ãbold=false
æå®ã¯boldness=1
ã¨ç価ã
ã¾ã¨ããã¨ãä½ãéªçãå¡ãã¤ã¶ããâãæç»ããã«ã¯ä»¥ä¸ã®è¦é ã§å½ä»¤ãå®è¡ããã°ãããã¨ã«ãªãã¾ãã
% ããªã¢ã³ãã«ã§ \usepackage{scsnowman} % ããã ãã¾â \usescsnowmanlibrary{zrextra} % æ¡å¼µããã ãã¾â \sczrextrasetup{bodyfill=«ä½ã®å¡ãã¤ã¶ãã®è²Â»,snowfill=«éªçã®å¡ãã¤ã¶ãã®è²Â»}% å°ç¨ãã©ã¡ã¿ % ææ¸æ¬ä½ä¸ã§ \snowman[shape=zrextra,«ä»ã®ãã©ã¡ã¿Â»...]% "å½¢ç¶"ãæå®ãã
æ©éãéãèæ¯è²ãæå®ãã¦æ¶¼ããããªâãæãã¦ã¿ã¾ãããï¼ð
% pdfLaTeXææ¸ \documentclass{standalone} \usepackage[svgnames]{xcolor} \usepackage{tikz,scsnowman} \colorlet{coolhat}{blue!80!green!75!black} \colorlet{coolmuffler}{blue!50!green} \colorlet{coolarms}{green!30!black!50} \colorlet{coolsnow}{blue!80!green!40} % zrextraã©ã¤ãã©ãªãèªã¿è¾¼ã \usescsnowmanlibrary{zrextra} % zrextraç¹æã®ãã©ã¡ã¿ã®è¨å® \sczrextrasetup{% bodyfill=white, % ä½ã®å¡ãã¤ã¶ãã®è² snowfill=coolsnow!30} % éªçã®å¡ãã¤ã¶ãã®è² \begin{document} \begin{tikzpicture}[x=1bp, y=1bp] \fill[blue!80!green!40, use as bounding box] (0,0) rectangle (320,240); \node at (160,120) {\scsnowman[scale=24, shape=zrextra,% "zrextraã®% pdfLaTeXææ¸ \documentclass{standalone} \usepackage[svgnames]{xcolor} \usepackage{tikz,scsnowman} \colorlet{coolhat}{blue!80!green!75!black} \colorlet{coolmuffler}{blue!50!green} \colorlet{coolarms}{green!30!black!50} \colorlet{coolsnow}{blue!80!green!40} % zrextraã©ã¤ãã©ãªãèªã¿è¾¼ã \usescsnowmanlibrary{zrextra} % zrextraç¹æã®ãã©ã¡ã¿ã®è¨å® \sczrextrasetup{% bodyfill=white, % ä½ã®å¡ãã¤ã¶ãã®è² snowfill=coolsnow!30} % éªçã®å¡ãã¤ã¶ãã®è² \begin{document} \begin{tikzpicture}[x=1bp,y=1bp] \fill[blue!80!green!40, use as bounding box] (0,0) rectangle (320,240); \node at (160,120) {\scsnowman[scale=24, shape=zrextra,% "zrextraã®â"ã«ããã snow=coolsnow,% ããã¯éªçã®è¼ªéã®è² muffler=coolmuffler, hat=coolhat, arms=coolarms]}; \end{tikzpicture} \end{document} "ã«ããã snow=coolsnow,% ããã¯éªçã®è¼ªéã®è² muffler=coolmuffler, hat=coolhat, arms=coolarms]}; \end{tikzpicture} \end{document}
ãããã¢æ¶¼ãããã§ç´ æµð
太ç·ã®âã§ç»åããæ¹æ³
scsnowman-libã®ãã©ã¡ã¿ã«ã¯bodyfill
ã¨snowfill
ã®ä»ã«boldness
ã¨bold
ãããã¾ããããã¯âãæãã¨ãã®ç·ã®å¤ªããå¤æ´ãããã®ã§ãã
æ°å¤ã表è¨ããã¨ãã«ãç´ æµã«ããããã«ã8ãã®ä»£ããã«âãæ¸ããã¨ãããããã¾ãï¼ããã¾ãããðï¼ãããã®å ´åã«ã¯ç·ã太ããã¦ããã¨ã8ãã£ã½ãè¦ããããããããã¾ããã
% XeLaTeXææ¸; æåã³ã¼ãã¯UTF-8 \documentclass[margin=10pt]{standalone} \usepackage{fontspec} \setmainfont{Harano Aji Gothic} \usepackage{xcolor,scsnowman} \colorlet{coolblue}{blue!80!green!75!black} \colorlet{coolgreen}{blue!50!green} \usescsnowmanlibrary{zrextra}% æ¡å¼µããã ãã¾â \sczrextrasetup{% zrextraç¹æã®ãã©ã¡ã¿ã®è¨å® boldness=2} % ç·ã®å¤ªãã2åã«ãã \newcommand*\mySnowman[1]{% \scsnowman[shape=zrextra, scale=1.35, adjustbaseline, muffler=#1]} \begin{document} \fontsize{50}{50}\selectfont\strut \textcolor{coolblue}{2024}\,å¹´% \mySnowman{coolblue}æ\mySnowman{coolgreen}æ¥% \end{document}
ãããã¢ã8ãã£ã½ãã¦ç´ æµï¼å¤åðï¼
å¡ãã¤ã¶ããªãâã§ç»åããæ¹æ³
scsnowmanã®ããã¼ã®âã§ã¯å¸½å(hat
)ããã¿ã³(buttons
)ã¯å¿
ãå¡ãã¤ã¶ããã¾ããä½ã®è²ã®è©±ã¨ã¯éã«ã帽åããã¿ã³ãå¡ãã¤ã¶ããªãâãæãããå ´åã¯scsnowmanã§ã¯å¯¾å¿ã§ãã¾ããã
zrnofillã©ã¤ãã©ãªãå©ç¨ããã¨ã帽åã¨ãã¿ã³ãå¡ãã¤ã¶ããªãâããæç»ã§ãã¾ããzrnofillãscsnowman-libã®ã©ã¤ãã©ãªã®ä¸ç¨®ãªã®ã§ä½¿ãæ¹ã¯å ã»ã©è¿°ã¹ãéãã§ããè¦ããã«zrextraã®ã¨ãããzrnofillã«å¤ããã¨ã帽åã¨ãã¿ã³ãå¡ãã¤ã¶ãããªããªãã¾ãã
â»zrnofillã®âã§ã帽åã¨ãã¿ã³ä»¥å¤ã®ãã®ï¼ããã©ã¼ãªã©ï¼ã®å¡ãã¤ã¶ãã¯å¤ããã¾ããã
% ããªã¢ã³ãã«ã§ \usepackage{scsnowman} % ããã ãã¾â \usescsnowmanlibrary{zrnofill} % å¡ãã¤ã¶ããªãâ \sczrextrasetup{«ç¹æãã©ã¡ã¿Â»...} % ææ¸æ¬ä½ä¸ã§ \snowman[shape=zrnofill,«ä»ã®ãã©ã¡ã¿Â»...]% "å½¢ç¶"ãzrnofillã«
zrnofillã®ä½¿ç¨ä¾ã¨ãã¦ããå£ã«æããè½æ¸ããã®ãããªâã®ç»åãã¤ãã£ã¦ã¿ã¾ãã
\documentclass{standalone} \usepackage[svgnames]{xcolor} \usepackage{tikz,xcolor,scsnowman} \usetikzlibrary{patterns} \usescsnowmanlibrary{zrnofill}% å¡ãã¤ã¶ããªãâ % scsnowman-libã®ãã©ã¡ã¿è¨å®ã¯zrnofillã§ã使ãã \sczrextrasetup{bold}% ç·ã太ããã \colorlet{k}{black} \definecolor{mybrick0}{rgb}{0.60,0.30,0.10} \definecolor{mygray0}{rgb}{0.60,0.40,0.40} \definecolor{mywhite0}{rgb}{1.00,0.90,0.70} \colorlet{mybrick}{mybrick0!75!k} \colorlet{mygray}{mygray0!75!k} \colorlet{mywhite}{mywhite0!85!k} \begin{document} \begin{tikzpicture}[x=1bp, y=1bp] \shade[top color=mybrick!80!k, bottom color=mybrick, shading angle=60, use as bounding box] (0,0) rectangle (320,180); \pattern[pattern color=mygray, pattern=bricks] (0,0) rectangle (320,180); \node[rotate=15, text=mywhite] at (160,90) {% \scsnowman[scale=14, shape=zrnofill, arms, buttons, hat]}; \end{tikzpicture} \end{document}
ãã§ããéã£ãæãã§ç´ æµð
zrnofillã®ä»ã®ä½¿ãæ¹ã¨ãã¦ããã©ã®ãã£ã½ãâãã¤ãããã¨ãããã®ãããã¾ãããã©ã®ããã©ã³ãã®ï¼ç¡è¡¨æ ã§æåãªï¼âã¯å¸½åãå¡ãã¤ã¶ããã¦ãã¾ããã
ãã©ã®ããã©ã³ãã¯ãCID+8218ã¨ããããã§ããâº#ãã©ã³ã #ï¾ ï¾ï¾ï½¶ pic.twitter.com/flOwZ31H35
— æZRï¼ããããðï¼ (@zr_tex8r) 2023å¹´8æ4æ¥
ããã©ã®ããã©ã³ãã®âããã§ãã好ãã ãã©ããã®ããã«èª²éããã¾ã§ã§ããªããã¨ãã人ã¯ãzrnofillã使ãã¨âããã£ã½ããã¤âãã¤ããã¾ãð
% LuaLaTeXææ¸; æåã³ã¼ãã¯UTF-8 \documentclass[margin=10pt]{standalone} \usepackage{luatexja} \usepackage{scsnowman} \usescsnowmanlibrary{zrnofill}% å¡ãã¤ã¶ããªãâ \sczrextrasetup{boldness=1.15}% ç·ãå°ã太ããã \newcommand*\mySnowman[1]{% \scsnowman[shape=zrextra, scale=1.35, adjustbaseline, muffler=#1]} \begin{document} \fontsize{50}{50}\selectfont\strut ãã©ã®ãã®% \scsnowman[shape=zrnofill, adjustbaseline, hat, mouthshape=tight]% ã§ãï¼éãï¼ã \end{document}
ãã©ã®ãã£ã½ãã¦ç´ æµð
ãã§ããå¾®ç¬ãâã§ç»åããæ¹æ³
ãã©ã®ããã©ã³ãã¨ããã°ããè§ã´ã·ãã¯W0ã®âã¯å°ãå¾®ç¬ãã§ãããã¨ãã話ãããã¾ãã
ãã©ã®ãè§ã´ã·ãã¯W0ï½W9ãä¸åã«ä¸¦ã¹ã¦ã¿ã¦ä»ããæ°ã¥ããã®ã ããã©ï¼ãã©ã®ãè§ã´ã·ãã¯ã®ããã ãã¾ã£ã¦ï¼W0ã ãä»ã¨ãã¶ã¤ã³ãéãï¼å¸½åãé»ãã¦ï¼å£ãå°ãç¬é¡æ°å³ã«ãªã£ã¦ãããªãããã ããã¶ã¤ã³ãéãã®ã ããâ¦â¦ãéçºè ã®ã¤ã¼ã¹ã¿ã¼ã¨ãã°!? pic.twitter.com/jEW7WI3STE
— Yusuke Terada (@doraTeX) 2016å¹´10æ4æ¥
ããã©ã®ãè§ã´ã·ãã¯W0ã®âããã§ãã好ãã ãã©(ryãã¨ãã人ã¯ãzrslightã©ã¤ãã©ãªãæç¨ããããã¾ãããããã¯ãå°ãå¾®ç¬ãã§ããâããæãããã®ã©ã¤ãã©ãªã§ãã
â»åºæ¬çãªä½¿ãæ¹ã¯zrextraãzrnofillã¨åããªã®ã§ããã以éã®ã©ã¤ãã©ãªç´¹ä»ã§ã¯çç¥ãã¾ãã
% pdfLaTeXææ¸ \documentclass{standalone} \usepackage{tikz,scsnowman} % ãã¡ããã©ã¤ãã©ãªã¯è¤æ°ä½µç¨å¯è½ \usescsnowmanlibrary{zrnofill}% å¡ãã¤ã¶ããªãâ \usescsnowmanlibrary{zrslight}% å°ãå¾®ç¬ãã§ããâ \sczrextrasetup{boldness=1.15}% å°ãç·ã太ããã \usepackage{sourcesanspro} \begin{document} % ãã©ã³ãã Source Sans Pro Light ã«ãã \sffamily\fontseries{l}\selectfont \color{blue!90!green!50!black}% æåã®è² \begin{tikzpicture}[x=1bp, y=1bp] \fill[green!50!cyan!20, use as bounding box] (0,0) rectangle (480,270); \node[scale=6] at (90,170) {CID+}; % ãã©ã®ãè§ã´ã·ãã¯ã®W0ã£ã½ãâ \node at (190,147) {\scsnowman[scale=14, shape=zrslight, hat]};% å½¢ç¶ãzrslightã«ãã \node[scale=12] at (290,135) {21}; % ãã©ã®ãè§ã´ã·ãã¯ã®W0以å¤ã£ã½ãâ \node at (390,147) {\scsnowman[scale=14, shape=zrnofill, hat, mouthshape=tight]};% zrnofillã«ãã \end{tikzpicture} \end{document}
ãã©ã®ãè§ã´ã·ãã¯W0ã£ã½ãã¦ç´ æµðð
ãµã³ã¿çãªâã§ç»åããæ¹æ³
zrsantaã©ã¤ãã©ãªãå©ç¨ããã¨ã帽åããµã³ã¿å¸½ã«ãªã£ã¦ããâããæç»ã§ãã¾ã3ã
â»ãzrsataã®å½¢ç¶ã®âã§ã¯å¸½åããµã³ã¿å¸½ã§ããããããªã®ã§ããµã³ã¿å¸½ã®è²ãæå®ãããã©ã¡ã¿ã¯hat
ã§ãã
% pdfLaTeXææ¸ \documentclass{standalone} \usepackage[svgnames]{xcolor} \usepackage{tikz,scsnowman} \usescsnowmanlibrary{zrsanta}% ãµã³ã¿çãªâ \sczrextrasetup{bodyfill=White} \begin{document} \begin{tikzpicture}[x=1bp, y=1bp] \fill[DarkGreen, use as bounding box] (0,0) rectangle (400,400); \node at (200,200) {\scsnowman[scale=45, shape=zrsanta, hat=Red, % ããã¯ãµã³ã¿å¸½ã«é¢ããè¨å® muffler=Red, arms=DarkOrange, buttons=Green]}; \end{tikzpicture} \end{document}
ã¯ãªã¹ãã¹ã£ã½ãã¦ãããã¢ç´ æµð
åãæ²ããâã§ç»åããæ¹æ³
zrsobbingã©ã¤ãã©ãªãå©ç¨ããã¨ãåãæ²ããâããæç»ã§ãã¾ãã
zrsobbingã©ã¤ãã©ãªã¯scsnowman-libã®å
±éã®ãã®ã«å ãã¦ä»¥ä¸ã®ãã©ã¡ã¿ããã¡ã¾ãã
â»bodyfill
ãªã©ã®scsnowman-libã®å
±éãã©ã¡ã¿ã使ç¨å¯è½ã§ãã
sobbingmouthfill=«è²Â»
ï¼ éããå£ã®ä¸ã®è²ã
ã¾ããzrsobbingã®å½¢ç¶ã®âã§ã¯sweat
ã§æ±ã®ä»£ããã«æ¶ãæããã¾ãã
æè¿ã®ãããã ãã¾ã®æ¥ãã¯ãã¿ãæ«é²ãã人ãå°ãªãã¦âãæ²ããã§ãããããããªãã®ã§ãzrsobbingã§åãæ²ããâãæãã¦ã¿ã¾ãããã
% pdfLaTeXææ¸ \documentclass{standalone} \usepackage[svgnames]{xcolor} \usepackage{tikz,scsnowman} \usescsnowmanlibrary{zrsobbing}% åãæ²ããâ \sczrextrasetup{bodyfill=white} \begin{document}% \begin{tikzpicture}[x=1bp, y=1bp] \fill[Yellow!10, use as bounding box] (0,0) rectangle (480,270); \node at (240,135) {\scsnowman[scale=32, shape=zrsobbing, sweat=SkyBlue, % ããã¯æ¶ã«é¢ããè¨å® hat=Green, muffler=Red, buttons=RoyalBlue, arms=Brown]}; \end{tikzpicture} \end{document}
æ²ãããã ãã©ç´ æµð
太ã¾ããâã§ç»åããæ¹æ³
zrmassyã©ã¤ãã©ãªãå©ç¨ããã¨ã太ã¾ããâããæç»ã§ãã¾ããåç´ã«\scalebox
ãªã©ã§æ¨ªæ¹åã«ä¼¸é·ããã®ã¨ã¯ç°ãªããç·ã®å¤ªããå¤ãããªãã®ã§ãèªç¶ãªæç»ãå¾ããã¾ãã
zrmassyã©ã¤ãã©ãªã¯scsnowman-libã®å ±éã®ãã®ã«å ãã¦ä»¥ä¸ã®ãã©ã¡ã¿ããã¡ã¾ãã
massy=«å®æ°Â»
ï¼ æ¨ªå¹ ã®æ¨æºã«å¯¾ããåçã
ç«å·»ã«ã¤ãã¦è§£èª¬ãã¦ããâãzrmassyã§æãã¦ã¿ã¾ãããã
% XeLaTeXææ¸; æåã³ã¼ãã¯UTF-8 \documentclass{standalone} \usepackage[svgnames]{xcolor} \usepackage{tikz,scsnowman} \usepackage{fontspec} \setmainfont{mplus-1p-bold.ttf}% M+ 1p [LetterSpace=-2, AutoFakeBold=6] \usescsnowmanlibrary{zrmassy}% 太ã¾ããâ \sczrextrasetup{bodyfill=White, massyscale=1.44}% ããªã太ã¾ãã \newcommand*{\cMessage}{% å¼·ãç«å·»ã ã¨æ¯ç§100mè¿ã風ã\\ å¹ãã ããã¯åãé£ã¶ãããã®å¼·ã} \begin{document} \begin{tikzpicture}[x=1bp, y=1bp, mytext/.style={xscale=1.6, yscale=2.2, align=left}] \useasboundingbox (0,0) rectangle (480,360); \fill[SkyBlue!5] (0,40) rectangle (480,360); \shade[top color=SkyBlue!65, bottom color=SkyBlue!5] (0,200) rectangle (480,360); \node at (240,200) {\scsnowman[scale=42, shape=zrmassy, muffler=Red, hat=Green, arms=Brown, buttons=RoyalBlue, mouthshape=tight]}; \fill[DarkGreen] (0,0) rectangle (480,60); \node[mytext, text=Black, font={\bfseries}] at (240,30) {\cMessage}; \node[mytext, text=Yellow!40, font={\mdseries}] at (240,30) {\cMessage}; \end{tikzpicture} \end{document}
ããã«ã太ã¾ãããã©ç´ æµï¼å¤åðï¼
ã¾ã¨ã
ã¨ããããã§çããã涼ããããªâç»åã§ãã®å¤ã®çæãå¹ãé£ã°ãã¾ãããï¼ï¼ç¡çð¥ï¼ ãããç¡çã§ããç´ æµðãªç»åãã²ãããçºãã¦çæãå¿ãã¦ãã¾ãã¾ãããï¼ï¼ç¡çð¥ï¼
- ãã ããscsnowman-libã®ã©ã¤ãã©ãªç¾¤ã®ä¸ã«ã¯âå¤ãè¨è¨âã«ãªã£ã¦ãããã®ï¼ä¾ãã°zrboldãzrsymmetricï¼ãããããããã¯å ±éä»æ§ã«å¾ãã¾ããããã®è¨äºã§ã¯å ±éä»æ§ã«å¾ãâæ°ããè¨è¨âã®ã©ã¤ãã©ãªã ããåãæ±ããã®ã¨ãã¾ãã↩
-
ã©ã¤ãã©ãªãã
\scsnowman
å½ä»¤ã®ãã©ã¡ã¿ï¼ãªãã·ã§ã³ï¼ãæ°ããè¨ããããã¨ã¯ã§ããªãã®ã§ãå¥ã®å°ç¨ã®å½ä»¤ãç¨æãã¦ãã¾ãããªãããããã®å½ä»¤ã«ããå°ç¨ãã©ã¡ã¿è¨å®ã¯å±æçï¼ã°ã«ã¼ãã³ã°ã«å¾ãï¼ã§ãã↩ - zrchristmasã¨ããã©ã¤ãã©ãªãããã¾ãããããã¯âå¤ãè¨è¨âã®ãã®ã§ãã↩