附 B - 其他样例¶
切换至日间模式以获得更好的显示效果
这里是一些综合运用的样例
提示框¶
其实是复刻 Collapsible Blocks 。
$ \def\notew{200pt} \def\noteh{44pt} \def\notetitlepos{24pt} \def\notetitleh{20pt} \def\noteSetT#1{ \def\notetitle{\textsf{\textbf{#1}}} } % 标题如果不是两字则需要调整 \def\notetitleoffest{37pt} \def\noteNote{ \def\notech{\kern{-1.5pt}✒\kern{0.5pt}} \noteSetT{注意} \def\notelcol{#448AFF}\def\notetcol{#ECF3FF} } \def\noteAbstract{ \def\notech{\kern{-2pt}\char"d83d\char"ddd2\kern{1.5pt}} \noteSetT{摘要} \def\notelcol{#00B0FF}\def\notetcol{#E5F7FF} } \def\noteInfo{ \def\notech{\kern{2pt}\bf{i}\kern{5.5pt}} \noteSetT{信息} \def\notelcol{#00B8D4}\def\notetcol{#E5F8FB} } \def\noteTip{ \def\notech{\kern{-5pt}\char"d83d\char"dca1} \noteSetT{提示} \def\notelcol{#00BFA5}\def\notetcol{#E5F8F6} } \def\noteOk{ \def\notech{\kern{-2.0pt}\bf{√}\kern{2.4pt}} \noteSetT{示例\kern{-0.5pt}} \def\notelcol{#00C853}\def\notetcol{#E5F9ED} } \def\noteQ{ \def\notech{\kern{0.5pt}\textbf{?}\kern{4.5pt}} \noteSetT{问题} \def\notelcol{#64DD17}\def\notetcol{#EFFCE7} } \def\noteWarn{ \def\notech{\kern{-1pt}⚠\kern{2.8pt}} \noteSetT{警告} \def\notelcol{#FF9100}\def\notetcol{#FFF4E5} } \def\noteFail{ \def\notech{\kern{-2.4pt}\Large\bf{×}\kern{1.6pt}} \noteSetT{失败} \def\notelcol{#FF5252}\def\notetcol{#FFEDED} } \def\noteDanger{ \def\notech{\kern{-5pt}⚡} \noteSetT{危险} \def\notelcol{#FF1744}\def\notetcol{#FFE7EC} } \def\noteBug{ \def\notech{\kern{-4.5pt}\char"d83d\char"dc1e\kern{-0.5pt}} \noteSetT{错误} \def\notelcol{#F50057}\def\notetcol{#FEE5EE} } \def\noteCite{ \def\notech{\kern{1pt}\textbf{"}\kern{3.2pt}} \noteSetT{引述} \def\notelcol{#9E9E9E}\def\notetcol{#F5F5F5} } \noteCite \def\noteinfo{} \def\drawnote{ % 画框和阴影 \color{\notelcol} \rule{2pt}{\noteh} \color{\notetcol} \rule[\notetitlepos]{\notew}{\notetitleh} \color{#e8e8e8}\rule{0.5pt}{\noteh} \color{#f5f5f5}\rule{0.5pt}{\noteh} \color{#fafafa}\rule{0.5pt}{\noteh} \kern{-\notew}\kern{-1.5pt} \def\drawx#1#2{\color{#1}\rule[#2]{\notew}{0pt}\kern{-\notew}} \drawx{#bfbfbf}{0pt} \drawx{#d6d6d6}{-0.5pt} \drawx{#ececec}{-1.0pt} \drawx{#f8f8f8}{-1.5pt} \color{black} % 画标题 \raisebox{\notetitlepos}{ \raisebox{6pt}{ \kern{-1pt} \color{\notelcol}\large{\notech} \raisebox{1.5pt}{ \color{#404040}\footnotesize \kern{-4pt}\notetitle } } } \kern{-\notetitleoffest}%如果在下一个行内公式写文字,则该数值只需要设为极大值即可 % 也这里在这里直接放置内容,但需要使用 raisebox \raisebox{10pt}{ \footnotesize \sf{其实是复刻 Collapsible Blocks。} } }% note 结束 \noteNote\drawnote\newline \noteAbstract\drawnote\newline \noteInfo\drawnote\newline \noteTip\drawnote\newline \noteOk\drawnote\newline \noteQ\drawnote\newline \noteWarn\drawnote\newline \noteFail\drawnote\newline \noteDanger\drawnote\newline \noteBug\drawnote\newline \noteCite\drawnote\newline $
$
\def\notew{200pt}
\def\noteh{44pt}
\def\notetitlepos{24pt}
\def\notetitleh{20pt}
\def\noteSetT#1{
\def\notetitle{\textsf{\textbf{#1}}}
}
% 标题如果不是两字则需要调整
\def\notetitleoffest{37pt}
\def\noteNote{
\def\notech{\kern{-1.5pt}✒\kern{0.5pt}}
\noteSetT{注意}
\def\notelcol{#448AFF}\def\notetcol{#ECF3FF}
}
\def\noteAbstract{
\def\notech{\kern{-2pt}\char"d83d\char"ddd2\kern{1.5pt}}
\noteSetT{摘要}
\def\notelcol{#00B0FF}\def\notetcol{#E5F7FF}
}
\def\noteInfo{
\def\notech{\kern{2pt}\bf{i}\kern{5.5pt}}
\noteSetT{信息}
\def\notelcol{#00B8D4}\def\notetcol{#E5F8FB}
}
\def\noteTip{
\def\notech{\kern{-5pt}\char"d83d\char"dca1}
\noteSetT{提示}
\def\notelcol{#00BFA5}\def\notetcol{#E5F8F6}
}
\def\noteOk{
\def\notech{\kern{-2.0pt}\bf{√}\kern{2.4pt}}
\noteSetT{示例\kern{-0.5pt}}
\def\notelcol{#00C853}\def\notetcol{#E5F9ED}
}
\def\noteQ{
\def\notech{\kern{0.5pt}\textbf{?}\kern{4.5pt}}
\noteSetT{问题}
\def\notelcol{#64DD17}\def\notetcol{#EFFCE7}
}
\def\noteWarn{
\def\notech{\kern{-1pt}⚠\kern{2.8pt}}
\noteSetT{警告}
\def\notelcol{#FF9100}\def\notetcol{#FFF4E5}
}
\def\noteFail{
\def\notech{\kern{-2.4pt}\Large\bf{×}\kern{1.6pt}}
\noteSetT{失败}
\def\notelcol{#FF5252}\def\notetcol{#FFEDED}
}
\def\noteDanger{
\def\notech{\kern{-5pt}⚡}
\noteSetT{危险}
\def\notelcol{#FF1744}\def\notetcol{#FFE7EC}
}
\def\noteBug{
\def\notech{\kern{-4.5pt}\char"d83d\char"dc1e\kern{-0.5pt}}
\noteSetT{错误}
\def\notelcol{#F50057}\def\notetcol{#FEE5EE}
}
\def\noteCite{
\def\notech{\kern{1pt}\textbf{"}\kern{3.2pt}}
\noteSetT{引述}
\def\notelcol{#9E9E9E}\def\notetcol{#F5F5F5}
}
\noteCite
\def\noteinfo{}
\def\drawnote{
% 画框和阴影
\color{\notelcol}
\rule{2pt}{\noteh}
\color{\notetcol}
\rule[\notetitlepos]{\notew}{\notetitleh}
\color{#e8e8e8}\rule{0.5pt}{\noteh}
\color{#f5f5f5}\rule{0.5pt}{\noteh}
\color{#fafafa}\rule{0.5pt}{\noteh}
\kern{-\notew}\kern{-1.5pt}
\def\drawx#1#2{\color{#1}\rule[#2]{\notew}{0pt}\kern{-\notew}}
\drawx{#bfbfbf}{0pt}
\drawx{#d6d6d6}{-0.5pt}
\drawx{#ececec}{-1.0pt}
\drawx{#f8f8f8}{-1.5pt}
\color{black}
% 画标题
\raisebox{\notetitlepos}{
\raisebox{6pt}{
\kern{-1pt}
\color{\notelcol}\large{\notech}
\raisebox{1.5pt}{
\color{#404040}\footnotesize
\kern{-4pt}\notetitle
}
}
}
\kern{-\notetitleoffest}%如果在下一个行内公式写文字,则该数值只需要设为极大值即可
% 也这里在这里直接放置内容,但需要使用 raisebox
\raisebox{10pt}{
\footnotesize
\sf{其实是复刻 Collapsible Blocks。}
}
}% note 结束
\noteNote\drawnote\newline
\noteAbstract\drawnote\newline
\noteInfo\drawnote\newline
\noteTip\drawnote\newline
\noteOk\drawnote\newline
\noteQ\drawnote\newline
\noteWarn\drawnote\newline
\noteFail\drawnote\newline
\noteDanger\drawnote\newline
\noteBug\drawnote\newline
\noteCite\drawnote\newline
$
伪窗口¶
\(\kern{10pt}\) $\def\w{200pt}\def\h{64pt} \def\titleoffest{54pt} \def\arcoffest{57.7pt} \def\drawx#1{\color{#1}\rule[-3pt]{0.5pt}{\h}} \drawx{#fafafa}\drawx{#f7f7f7} \drawx{#efefef} \color{#bebebe} \rule[-3pt]{0.5pt}{\h}\kern{-1.2pt} \raisebox{\arcoffest}{◜}\kern{-5pt} \rule[\h]{\w}{0pt} \raisebox{\titleoffest}{\kern{-10pt}\color{#202020}{\large×}} \kern{-4.5pt}\raisebox{\arcoffest}{◝}\kern{-1pt} \rule[-3pt]{0.5pt}{\h}\kern{-\w} \kern{-6.9pt}\raisebox{-6pt}{◟}\kern{-5pt} \rule[-6pt]{\w}{0pt}\kern{-4.3pt} \raisebox{-6pt}{◞}\kern{-0.5pt} \drawx{#e8e8e8}\drawx{#f5f5f5} \drawx{#fafafa} \kern{-\w}\kern{-5pt} \def\drawx#1#2{\color{#1}\rule[#2]{\w}{0pt}\kern{-\w}} \drawx{#bfbfbf}{-6pt} \drawx{#d6d6d6}{-6.5pt} \drawx{#ececec}{-7pt} \drawx{#f8f8f8}{-7.5pt} % \raisebox{\titleoffest} {\kern{9pt}\color{#404040}\tiny\textsf{一个伪窗口}} \kern{-\w} $ \(\kern{2pt}\) \(%删去了不必要的内容 \color{#00B8D4} \rule{2pt}{44pt} \color{#E5F8FB} \rule[24pt]{190pt}{20pt} \color{#e8e8e8}\rule{0.5pt}{44pt} \color{#f5f5f5}\rule{0.5pt}{44pt} \color{#fafafa}\rule{0.5pt}{44pt} \kern{-190pt}\kern{-1.5pt} \color{#bfbfbf}\rule[0pt]{190pt}{0pt}\kern{-190pt} \color{#d6d6d6}\rule[-0.5pt]{190pt}{0pt}\kern{-190pt} \color{#ececec}\rule[-1pt]{190pt}{0pt}\kern{-190pt} \color{#f8f8f8}\rule[-1.5pt]{190pt}{0pt}\kern{-190pt} \color{black} \raisebox{24pt}{ \raisebox{6pt}{ \kern{-1pt} \color{#00B8D4}\large{\kern{2pt}\bf{i}\kern{5.5pt}} \raisebox{1.5pt}{ \color{#404040}\footnotesize \kern{-4pt}\sf\bf{这是一个嵌套到伪窗口上方的信息} }}}\kern{-200pt}\). \(\kern{4pt}\raisebox{10pt}{\footnotesize\sf{伪嵌套 2:}}\) $ \def\w{130pt} \def\h{18pt} \color{#E4E7E8} \rule[3pt]{0.1pt}{\h}\kern{-0.5pt} \rule[21pt]{\w}{0pt} \rule[3pt]{0.1pt}{\h}\kern{-\w} \color{#0067C0} \rule[3pt]{\w}{0.5pt}\kern{-\w} \color{#616161} \raisebox{10.2pt} {\scriptsize\sf\kern{5pt}这是一个伪文本框 } $
$\kern{10pt}$
$\def\w{200pt}\def\h{64pt}
\def\titleoffest{54pt}
\def\arcoffest{57.7pt}
\def\drawx#1{\color{#1}\rule[-3pt]{0.5pt}{\h}}
\drawx{#fafafa}\drawx{#f7f7f7}
\drawx{#efefef}
\color{#bebebe}
\rule[-3pt]{0.5pt}{\h}\kern{-1.2pt}
\raisebox{\arcoffest}{◜}\kern{-5pt}
\rule[\h]{\w}{0pt}
\raisebox{\titleoffest}{\kern{-10pt}\color{#202020}{\large×}}
\kern{-4.5pt}\raisebox{\arcoffest}{◝}\kern{-1pt}
\rule[-3pt]{0.5pt}{\h}\kern{-\w}
\kern{-6.9pt}\raisebox{-6pt}{◟}\kern{-5pt}
\rule[-6pt]{\w}{0pt}\kern{-4.3pt}
\raisebox{-6pt}{◞}\kern{-0.5pt}
\drawx{#e8e8e8}\drawx{#f5f5f5}
\drawx{#fafafa}
\kern{-\w}\kern{-5pt}
\def\drawx#1#2{\color{#1}\rule[#2]{\w}{0pt}\kern{-\w}}
\drawx{#bfbfbf}{-6pt}
\drawx{#d6d6d6}{-6.5pt}
\drawx{#ececec}{-7pt}
\drawx{#f8f8f8}{-7.5pt}
%
\raisebox{\titleoffest}
{\kern{9pt}\color{#404040}\tiny\textsf{一个伪窗口}}
\kern{-\w}
$
$\kern{2pt}$
$%删去了不必要的内容
\color{#00B8D4}
\rule{2pt}{44pt}
\color{#E5F8FB}
\rule[24pt]{190pt}{20pt}
\color{#e8e8e8}\rule{0.5pt}{44pt}
\color{#f5f5f5}\rule{0.5pt}{44pt}
\color{#fafafa}\rule{0.5pt}{44pt}
\kern{-190pt}\kern{-1.5pt}
\color{#bfbfbf}\rule[0pt]{190pt}{0pt}\kern{-190pt}
\color{#d6d6d6}\rule[-0.5pt]{190pt}{0pt}\kern{-190pt}
\color{#ececec}\rule[-1pt]{190pt}{0pt}\kern{-190pt}
\color{#f8f8f8}\rule[-1.5pt]{190pt}{0pt}\kern{-190pt}
\color{black}
\raisebox{24pt}{ \raisebox{6pt}{ \kern{-1pt}
\color{#00B8D4}\large{\kern{2pt}\bf{i}\kern{5.5pt}}
\raisebox{1.5pt}{ \color{#404040}\footnotesize
\kern{-4pt}\sf\bf{这是一个嵌套到伪窗口上方的信息}
}}}\kern{-200pt}$.
$\kern{4pt}\raisebox{10pt}{\footnotesize\sf{伪嵌套 2:}}$
$
\def\w{130pt}
\def\h{18pt}
\color{#E4E7E8}
\rule[3pt]{0.1pt}{\h}\kern{-0.5pt}
\rule[21pt]{\w}{0pt}
\rule[3pt]{0.1pt}{\h}\kern{-\w}
\color{#0067C0}
\rule[3pt]{\w}{0.5pt}\kern{-\w}
\color{#616161}
\raisebox{10.2pt}
{\scriptsize\sf\kern{5pt}这是一个伪文本框
}
$
心形曲线¶
$$
\color{#ccc}\rule[144pt]{288pt}{0pt}\kern{-144pt}\rule{80sp}{256pt}\kern{-144pt}\color{red}\kern{16pt}\raisebox{176pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{21.44pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{197.44pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{8.41pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{205.85pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{6.16pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{212pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.93pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{216.94pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.1pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{221.05pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.49pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{224.54pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.99pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{227.53pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.57pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{230.09pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.20pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{232.29pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.86pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{234.15pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.56pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{235.7pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.27pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{236.97pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{0.99pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{237.96pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{0.73pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{238.69pt}{$\rule{4pt}{0pt}$}\raisebox{239.16pt}{$\rule{4pt}{0pt}$}\raisebox{239.33pt}{$\rule{4pt}{0pt}$}\raisebox{239.02pt}{$\rule{4pt}{0pt}$}\raisebox{238.45pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{0.57pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{237.6pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{0.85pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{236.46pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.14pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{235.02pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.44pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{233.26pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.77pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{231.14pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.12pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{228.62pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.52pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{225.66pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.96pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{222.18pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.48pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{218.07pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.1pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{213.15pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.91pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{207.12pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{6.04pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{199.2pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{7.91pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{184pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{15.2pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{184pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{15.2pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{199.2pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{7.91pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{207.12pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{6.04pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{213.15pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.91pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{218.07pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.1pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{222.18pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.48pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{225.66pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.96pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{228.62pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.52pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{231.14pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.12pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{233.26pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.77pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{235.02pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.44pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{236.46pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.14pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{237.6pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{0.85pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{238.45pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{0.57pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{239.02pt}{$\rule{4pt}{0pt}$}\raisebox{239.33pt}{$\rule{4pt}{0pt}$}\raisebox{239.16pt}{$\rule{4pt}{0pt}$}\raisebox{238.69pt}{$\rule{4pt}{0pt}$}\raisebox{237.96pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{0.73pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{236.97pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{0.99pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{235.7pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.27pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{234.15pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.56pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{232.29pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.86pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{230.09pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.20pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{227.53pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.57pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{224.54pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.99pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{221.05pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.49pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{216.94pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.1pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{212pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.93pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{205.85pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{6.16pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{197.44pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{8.41pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{176pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{21.44pt}\kern{-4pt}}}\kern{2pt}$}\kern{-272pt}\color{green}\kern{16pt}\raisebox{153.83pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{22.17pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{144.57pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{9.26pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{137.44pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{7.13pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{131.4pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{6.04pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{126.05pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{5.35pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{121.19pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.87pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{116.67pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.52pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{112.43pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.24pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{108.39pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.03pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{104.52pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.87pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{100.79pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.73pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{97.16pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.63pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{93.61pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.55pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{90.12pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.49pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{86.68pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.44pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{83.26pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.42pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{79.85pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.4pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{76.44pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.41pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{73.01pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.43pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{69.55pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.46pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{66.04pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.51pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{62.46pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.58pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{58.78pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.67pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{55.00pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.79pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{51.07pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.93pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{46.95pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.12pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{42.6pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.35pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{37.93pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.67pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{32.83pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{5.1pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{27.07pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{5.76pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{20.1pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{6.96pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{8pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{12.1pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{8pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{12.1pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{20.1pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{6.96pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{27.07pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{5.76pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{32.83pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{5.1pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{37.93pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.67pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{42.6pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.35pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{46.95pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.12pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{51.07pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.93pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{55.00pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.79pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{58.78pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.67pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{62.46pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.58pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{66.04pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.51pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{69.55pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.46pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{73.01pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.43pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{76.44pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.41pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{79.85pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.4pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{83.26pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.42pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{86.68pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.44pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{90.12pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.49pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{93.61pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.55pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{97.16pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.63pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{100.79pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.73pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{104.52pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.87pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{108.39pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.03pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{112.43pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.24pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{116.67pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.52pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{121.19pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.87pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{126.05pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{5.35pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{131.4pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{6.04pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{137.44pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{7.13pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{144.57pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{9.26pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{153.83pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{22.17pt}\kern{-4pt}}}\kern{2pt}$}\kern{16pt}\\
\color{black}
\begin{cases}
x=16\sin^3(t)\\
y=13\cos(t)-5\cos(2t)-2\cos(3t)-\cos(4t)
\end{cases}\\
\Rightarrow
\begin{cases}
t(x)&=\arcsin((\dfrac{x}{16})^{\frac{1}{3}})\\
\textcolor{red}{\rule[3pt]{10pt}{1pt}\ }
f(x)&=13\cos(t(x))-5\cos(2t(x))-2\cos(3t(x))-\cos(4t(x))\\
\textcolor{green}{\rule[2pt]{10pt}{1pt}\ }
g(x)&=-13\cos(t(x))-5\cos(2t(x))+2\cos(3t(x))-\cos(4t(x))
\end{cases}
$$
心形部分代码由 生成器(已停止更新) 制作。
€€£ Logo¶
$$
\color{#069}
\raisebox{60pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{16.99pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{76.99pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{6.68pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{83.68pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{4.88pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{88.55pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.90pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{92.45pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.24pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{95.69pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.75pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{98.44pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.36pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{100.8pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.03pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{102.83pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.75pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{104.58pt}{$\kern{2pt}\cancel{\phantom{\rule{4.00pt}{1.50pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{106.08pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.27pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{107.35pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.06pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{108.42pt}{$\kern{2pt}\cancel{\phantom{\rule{4.00pt}{0.87pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{109.29pt}{$\kern{2pt}\cancel{\phantom{\rule{4.00pt}{0.68pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{109.97pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{0.5pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{110.48pt}{$\rule{4pt}{0pt}$}\raisebox{110.81pt}{$\rule{4.00pt}{0pt}$}\raisebox{110.98pt}{$\rule{4pt}{0pt}$}\raisebox{110.81pt}{$\rule{4pt}{0pt}$}\raisebox{110.48pt}{$\rule{4.00pt}{0pt}$}\raisebox{109.97pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{0.5pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{109.29pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{0.68pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{108.42pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{0.87pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{107.35pt}{$\kern{2pt}\bcancel{\phantom{\rule{4.00pt}{1.06pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{106.08pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.27pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{104.58pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.50pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{102.83pt}{$\kern{2pt}\bcancel{\phantom{\rule{4.00pt}{1.75pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{100.8pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.03pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{98.44pt}{$\kern{2pt}\bcancel{\phantom{\rule{4.00pt}{2.36pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{95.69pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.75pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{92.45pt}{$\kern{2pt}\bcancel{\phantom{\rule{4.00pt}{3.24pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{88.55pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.90pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{83.68pt}{$\kern{2pt}\bcancel{\phantom{\rule{4.00pt}{4.88pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{76.99pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{6.68pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{60pt}{$\kern{2pt}\bcancel{\phantom{\rule{4.00pt}{16.99pt}\kern{-4pt}}}\kern{2pt}$}\kern{-140pt}\raisebox{43pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{16.99pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{36.32pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{6.68pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{31.45pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{4.88pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{27.55pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.90pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{24.3pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{3.24pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{21.56pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.75pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{19.20pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.36pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{17.17pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{2.03pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{15.42pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.75pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{13.92pt}{$\kern{2pt}\bcancel{\phantom{\rule{4.00pt}{1.50pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{12.65pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.27pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{11.58pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{1.06pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{10.71pt}{$\kern{2pt}\bcancel{\phantom{\rule{4.00pt}{0.87pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{10.03pt}{$\kern{2pt}\bcancel{\phantom{\rule{4.00pt}{0.68pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{9.52pt}{$\kern{2pt}\bcancel{\phantom{\rule{4pt}{0.5pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{9.19pt}{$\rule{4pt}{0pt}$}\raisebox{9.02pt}{$\rule{4.00pt}{0pt}$}\raisebox{9.02pt}{$\rule{4pt}{0pt}$}\raisebox{9.02pt}{$\rule{4pt}{0pt}$}\raisebox{9.19pt}{$\rule{4.00pt}{0pt}$}\raisebox{9.52pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{0.5pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{10.03pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{0.68pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{10.71pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{0.87pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{11.58pt}{$\kern{2pt}\cancel{\phantom{\rule{4.00pt}{1.06pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{12.65pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.27pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{13.92pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{1.50pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{15.42pt}{$\kern{2pt}\cancel{\phantom{\rule{4.00pt}{1.75pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{17.17pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.03pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{19.2pt}{$\kern{2pt}\cancel{\phantom{\rule{4.00pt}{2.36pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{21.56pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{2.75pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{24.3pt}{$\kern{2pt}\cancel{\phantom{\rule{4.00pt}{3.24pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{27.55pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{3.90pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{31.45pt}{$\kern{2pt}\cancel{\phantom{\rule{4.00pt}{4.88pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{36.32pt}{$\kern{2pt}\cancel{\phantom{\rule{4pt}{6.68pt}\kern{-4pt}}}\kern{2pt}$}\raisebox{43pt}{$\kern{2pt}\cancel{\phantom{\rule{4.00pt}{16.99pt}\kern{-4pt}}}\kern{2pt}$}\\[-103pt]
\Large中\raisebox{4pt}{国}
\raisebox{8pt}{收钱}
\raisebox{4pt}协会\\[3pt]
\Huge¥\\[1pt]
\kern{4pt}€\kern{6pt}\raisebox{-5pt}€\raisebox{-1pt}£
$$
为了防止被 D,说一下, €€£ 团里那个就是我画的:洛谷-画了个协会标志
像素画 - 钟¶
$\newcommand{\x}{0}\newcommand{\bitsize}{0.4mm}\newcommand{\b}[1]{\color{#1}\rule[-\x mm]{\bitsize}{\bitsize}}\newcommand{\bw}{\bitsize}\newcommand {\w}{4.800000000000001mm}\newcommand{\rx}[1]{\renewcommand{\x}{#1}}\newcommand{\k}{\kern{-\w}} \b{#5f3523}\b{#835b4a}\b{#5f3523}\b{#5f3523}\b{#402114}\b{#402114}\b{#5f3523}\b{#5f3523}\b{#5f3523}\b{#402114}\b{#5f3523}\b{#402114}\k\rx{0.0}\b{#402114}\b{#5f3523}\b{#402114}\b{#33190e}\b{#33190e}\b{#33190e}\b{#402114}\b{#402114}\b{#402114}\b{#33190e}\b{#402114}\b{#33190e}\k\rx{0.4}\b{#ffffff}\b{#ffffff}\b{#ffffff}\b{#b4652a}\b{#d39632}\b{#d39632}\b{#d39632}\b{#d39632}\b{#b4652a}\b{#ffffff}\b{#ffffff}\b{#ffffff}\k\rx{0.8}\b{#ffffff}\b{#ffffff}\b{#b4652a}\b{#f5cc27}\b{#fed639}\b{#ffec4f}\b{#ffec4f}\b{#fed639}\b{#d39632}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{1.2}\b{#ffffff}\b{#ffffff}\b{#d39632}\b{#fed639}\b{#ffec4f}\b{#fff68d}\b{#ffec4f}\b{#ffec4f}\b{#fed639}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{1.6}\b{#ffffff}\b{#ffffff}\b{#d39632}\b{#fed639}\b{#fff68d}\b{#fff68d}\b{#ffec4f}\b{#ffec4f}\b{#fed639}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{2.0}\b{#ffffff}\b{#ffffff}\b{#d39632}\b{#fed639}\b{#fff68d}\b{#fff68d}\b{#ffec4f}\b{#ffec4f}\b{#fed639}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{2.4}\b{#ffffff}\b{#ffffff}\b{#b4652a}\b{#fed639}\b{#fff68d}\b{#fff68d}\b{#ffec4f}\b{#ffec4f}\b{#fed639}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{2.8}\b{#ffffff}\b{#ffffff}\b{#d39632}\b{#fff68d}\b{#feffbd}\b{#feffbd}\b{#fff68d}\b{#fff68d}\b{#fff68d}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{3.2}\b{#ffffff}\b{#ffffff}\b{#b4652a}\b{#d39632}\b{#fed639}\b{#fed639}\b{#fed639}\b{#fed639}\b{#d39632}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{3.6}\b{#ffffff}\b{#d39632}\b{#fff68d}\b{#feffbd}\b{#feffbd}\b{#feffbd}\b{#feffbd}\b{#fff68d}\b{#fff68d}\b{#fff68d}\b{#b4652a}\b{#ffffff}\k\rx{4.0}\b{#ffffff}\b{#b4652a}\b{#fed639}\b{#ffec4f}\b{#fed639}\b{#fed639}\b{#fed639}\b{#ffec4f}\b{#ffec4f}\b{#d39632}\b{#9c4f16}\b{#ffffff}\k\rx{4.4}\b{#ffffff}\b{#ffffff}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{4.8} \kern{4.8mm} $
$\newcommand{\x}{0}\newcommand{\bitsize}{0.4mm}\newcommand{\b}[1]{\color{#1}\rule[-\x mm]{\bitsize}{\bitsize}}\newcommand{\bw}{\bitsize}\newcommand {\w}{4.800000000000001mm}\newcommand{\rx}[1]{\renewcommand{\x}{#1}}\newcommand{\k}{\kern{-\w}}
\b{#5f3523}\b{#835b4a}\b{#5f3523}\b{#5f3523}\b{#402114}\b{#402114}\b{#5f3523}\b{#5f3523}\b{#5f3523}\b{#402114}\b{#5f3523}\b{#402114}\k\rx{0.0}\b{#402114}\b{#5f3523}\b{#402114}\b{#33190e}\b{#33190e}\b{#33190e}\b{#402114}\b{#402114}\b{#402114}\b{#33190e}\b{#402114}\b{#33190e}\k\rx{0.4}\b{#ffffff}\b{#ffffff}\b{#ffffff}\b{#b4652a}\b{#d39632}\b{#d39632}\b{#d39632}\b{#d39632}\b{#b4652a}\b{#ffffff}\b{#ffffff}\b{#ffffff}\k\rx{0.8}\b{#ffffff}\b{#ffffff}\b{#b4652a}\b{#f5cc27}\b{#fed639}\b{#ffec4f}\b{#ffec4f}\b{#fed639}\b{#d39632}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{1.2}\b{#ffffff}\b{#ffffff}\b{#d39632}\b{#fed639}\b{#ffec4f}\b{#fff68d}\b{#ffec4f}\b{#ffec4f}\b{#fed639}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{1.6}\b{#ffffff}\b{#ffffff}\b{#d39632}\b{#fed639}\b{#fff68d}\b{#fff68d}\b{#ffec4f}\b{#ffec4f}\b{#fed639}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{2.0}\b{#ffffff}\b{#ffffff}\b{#d39632}\b{#fed639}\b{#fff68d}\b{#fff68d}\b{#ffec4f}\b{#ffec4f}\b{#fed639}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{2.4}\b{#ffffff}\b{#ffffff}\b{#b4652a}\b{#fed639}\b{#fff68d}\b{#fff68d}\b{#ffec4f}\b{#ffec4f}\b{#fed639}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{2.8}\b{#ffffff}\b{#ffffff}\b{#d39632}\b{#fff68d}\b{#feffbd}\b{#feffbd}\b{#fff68d}\b{#fff68d}\b{#fff68d}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{3.2}\b{#ffffff}\b{#ffffff}\b{#b4652a}\b{#d39632}\b{#fed639}\b{#fed639}\b{#fed639}\b{#fed639}\b{#d39632}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{3.6}\b{#ffffff}\b{#d39632}\b{#fff68d}\b{#feffbd}\b{#feffbd}\b{#feffbd}\b{#feffbd}\b{#fff68d}\b{#fff68d}\b{#fff68d}\b{#b4652a}\b{#ffffff}\k\rx{4.0}\b{#ffffff}\b{#b4652a}\b{#fed639}\b{#ffec4f}\b{#fed639}\b{#fed639}\b{#fed639}\b{#ffec4f}\b{#ffec4f}\b{#d39632}\b{#9c4f16}\b{#ffffff}\k\rx{4.4}\b{#ffffff}\b{#ffffff}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#9c4f16}\b{#ffffff}\b{#ffffff}\k\rx{4.8}
\kern{4.8mm}
$
from PIL import Image
# 用于生成简单的图片的 KaTeX 表达方式(长*宽必须小于 234,大于会导致渲染失败)
path=input("图片路径: ")
img=Image.open(path)
img.convert('RGB')
data=img.getdata()
w=img.size[0]
h=img.size[1]
def hex_col(pos):
return '#'+format(data[pos][0],'x').zfill(2)+format(data[pos][1],'x').zfill(2)+format(data[pos][2],'x').zfill(2)
bitw=float(input('每像素大小(mm): '))
print(
"$\\newcommand{\\x}{0}\\newcommand{\\bitsize}{"+str(bitw)+
"mm}\\newcommand{\\b}[1]{\\color{#1}\\rule[-\\x mm]{\\bitsize}{\\bitsize}}\\newcommand{\\bw}{\\bitsize}\\newcommand {\\w}{"+
str(bitw*w)+
"mm}\\newcommand{\\rx}[1]{\\renewcommand{\\x}{#1}}\\newcommand{\\k}{\kern{-\\w}}")
res=''
cnt=0
for i in range(w*h):
res+='\\b{'+hex_col(i)+'}'
cnt+=1
if((i+1)%w==0):
res+='\\k\\rx{'+str(round((i//w)*bitw,1))+'}'
res+='$'
print(res)
洛谷-做题情况¶
$ \def\title{\textbf{\color{#e67e22}HanPi} 的贺题情况} \def\valA{5} \def\valB{71} \def\valC{107} \def\valD{110} \def\valE{44} \def\valF{26} \def\valG{11} \def\valH{1} \def\valI{3} \def\outnum#1{\kern{1pt}\tiny\sf^{#1题}} \def\strip#1#2{ {\color{#2} \LARGE\bullet \kern{-3.7pt} \rule[1px]{#1}{6.15pt} \kern{-3.7pt} \LARGE\bullet}%\kern{-#1}\kern{-5.9pt} } \def\tmp{\rule[-65pt]{20000sp}{65pt}\kern{-20000sp} \rule{20000sp}{65pt}\kern{-20000sp}\kern{50pt}} \def\cb{\color{black}\tiny} \raisebox{74pt}{\textsf{\title}\kern{-114514pt}} \kern{64pt} \color{#EEEDED} \tmp\kern{5pt}\tmp\tmp\tmp\tmp \large\color{black}\kern{-326pt} \def\make#1#2#3{\tiny\sf{#1} &\ \strip{#2 pt}{#3} \outnum{#2}\newline} \def\sepch#1{\raisebox{0.5pt}{\textbf{#1}}} \begin{array}{ll} \make{未评定}{\valA}{#BFBFBF} \make{入门}{\valB}{#FE4C61} \make{普及-}{\valC}{#F39C11} \make{普及\sepch/提高-}{\valD}{#FFC116} \make{普及\sepch{+/}提高}{\valE}{#52C41A} \make{提高\sepch{+/}省选-}{\valF}{#3498db} \make{省选\sepch/NOI-}{\valG}{#9D3DCF} \make{NOI\sepch/NOI\sepch{+/}CTSC}{\valH}{#0E1D69} \make{写挂了}{\valI}{#996600} \end{array} $
$
\def\title{\textbf{\color{#e67e22}HanPi} 的贺题情况}
\def\valA{5}
\def\valB{71}
\def\valC{107}
\def\valD{110}
\def\valE{44}
\def\valF{26}
\def\valG{11}
\def\valH{1}
\def\valI{3}
\def\outnum#1{\kern{1pt}\tiny\sf^{#1题}}
\def\strip#1#2{
{\color{#2}
\LARGE\bullet
\kern{-3.7pt}
\rule[1px]{#1}{6.15pt}
\kern{-3.7pt}
\LARGE\bullet}%\kern{-#1}\kern{-5.9pt}
}
\def\tmp{\rule[-65pt]{1sp}{65pt}\kern{-20000sp}
\rule{1sp}{65pt}\kern{-20000sp}\kern{50pt}}
\def\cb{\color{black}\tiny}
\raisebox{74pt}{\textsf{\title}\kern{-114514pt}}
\kern{64pt}
\color{#EEEDED}
\tmp\kern{5pt}\tmp\tmp\tmp\tmp
\large\color{black}\kern{-326pt}
\def\make#1#2#3{\tiny\sf{#1} & \strip{#2 pt}{#3} \outnum{#2}\\}
\def\sepch#1{\raisebox{0.5pt}{\textbf{#1}}}
\begin{array}{ll}
\make{未评定}{\valA}{#BFBFBF}
\make{入门}{\valB}{#FE4C61}
\make{普及-}{\valC}{#F39C11}
\make{普及\sepch/提高-}{\valD}{#FFC116}
\make{普及\sepch{+/}提高}{\valE}{#52C41A}
\make{提高\sepch{+/}省选-}{\valF}{#3498db}
\make{省选\sepch/NOI-}{\valG}{#9D3DCF}
\make{NOI\sepch/NOI\sepch{+/}CTSC}{\valH}{#0E1D69}
\make{写挂了}{\valI}{#996600}
\end{array}
$
洛谷-咕值信息¶
$ \def\title{\textbf{\color{#e67e22}HanPi} 的咕值信息} \def\valA{5} \def\valB{71} \def\valC{100} \def\valD{100} \def\valE{44} \def\outnum#1{\kern{1pt}\tiny\sf^{#1分}} \def\strip#1#2{ {\color{#2} \LARGE\bullet \kern{-3.7pt} \rule[1px]{#1}{6.15pt} \kern{-3.7pt} \LARGE\bullet}%\kern{-#1}\kern{-5.9pt} } \def\tmp{ \rule[-45pt]{20000sp}{45pt}\kern{-20000sp} \rule{20000sp}{45pt}\kern{-20000sp}\kern{50pt} } \def\cb{\color{black}\tiny} \raisebox{45pt}{\textsf{\title}\kern{-114514pt}} \kern{38pt} \color{EEEDED} \tmp\kern{5pt}\tmp\tmp \large\color{black}\kern{-200pt} \def\make#1#2#3{\tiny\textsf{#1} & \strip{#2 pt}{#3} \outnum{#2}\newline} \begin{array}{ll} \make{基础信用}{\valA}{52c41a} \make{练习情况}{\valB}{52c41a} \make{社区贡献}{\valC}{52c41a} \make{比赛情况}{\valD}{52c41a} \make{获得成就}{\valE}{52C41A} \end{array} $
$
\def\title{\textbf{\color{#e67e22}HanPi} 的咕值信息}
\def\valA{5}
\def\valB{71}
\def\valC{100}
\def\valD{100}
\def\valE{44}
\def\outnum#1{\kern{1pt}\tiny\sf^{#1分}}
\def\strip#1#2{
{\color{#2}
\LARGE\bullet
\kern{-3.7pt}
\rule[1px]{#1}{6.15pt}
\kern{-3.7pt}
\LARGE\bullet}%\kern{-#1}\kern{-5.9pt}
}
\def\tmp{
\rule[-45pt]{20000sp}{45pt}\kern{-20000sp}
\rule{20000sp}{45pt}\kern{-20000sp}\kern{50pt}
}
\def\cb{\color{black}\tiny}
\raisebox{45pt}{\textsf{\title}\kern{-114514pt}}
\kern{38pt}
\color{EEEDED}
\tmp\kern{5pt}\tmp\tmp
\large\color{black}\kern{-200pt}
\def\make#1#2#3{\tiny\textsf{#1} & \strip{#2 pt}{#3} \outnum{#2}\\}
\begin{array}{ll}
\make{基础信用}{\valA}{52c41a}
\make{练习情况}{\valB}{52c41a}
\make{社区贡献}{\valC}{52c41a}
\make{比赛情况}{\valD}{52c41a}
\make{获得成就}{\valE}{52C41A}
\end{array}
$