所以我试图设计一本书的封面,但我必须在封面上列出一些项目,但我不知道为什么它不能像代码那样进行编译。
这就是结果
但我需要将以下项目放在这样的列表中
为什么复选标记没有出现?
这是代码:
\documentclass{article}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{ shapes.geometric }
\usetikzlibrary{calc}
\usepackage{anyfontsize}
\usepackage{amsfonts}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}[remember picture,overlay]
\fill[BrickRed] (current page.south west) rectangle (current page.north east);
\foreach \i in {2.5,...,22}
{
\node[rounded corners,BrickRed!60,draw,regular polygon,regular polygon sides=6, minimum size=\i cm,ultra thick] at ($(current page.west)+(2.5,-5)$) {} ;
}
\foreach \i in {0.5,...,22}
{
\node[rounded corners,BrickRed!60,draw,regular polygon,regular polygon sides=6, minimum size=\i cm,ultra thick] at ($(current page.north west)+(2.5,0)$) {} ;
}
\foreach \i in {0.5,...,22}
{
\node[rounded corners,BrickRed!90,draw,regular polygon,regular polygon sides=6, minimum size=\i cm,ultra thick] at ($(current page.north east)+(0,-9.5)$) {} ;
}
\foreach \i in {21,...,6}
{
\node[BrickRed!85,rounded corners,draw,regular polygon,regular polygon sides=6, minimum size=\i cm,ultra thick] at ($(current page.south east)+(-0.2,-0.45)$) {} ;
}
\node[left,BrickRed!5,minimum width=0.625*\paperwidth,minimum height=3cm, rounded corners] at ($(current page.north east)+(0,-9.5)$)
{
{\fontsize{25}{30} \selectfont \bfseries 100 Thrilling Math Problems}
};
\node[left,BrickRed!10,minimum width=0.625*\paperwidth,minimum height=2cm, rounded corners] at ($(current page.north east)+(0,-11)$)
{
{\huge \textit{Both Textual and Video Solutions}}
};
\node[left,BrickRed!5,minimum width=0.625*\paperwidth,minimum height=2cm, rounded corners] at ($(current page.north east)+(1,-13)$)
{
{\fontsize{25}{30} \textsc{By Kowshiq Kattamuri}}
};
\node[left,BrickRed!5,minimum width=0.625*\paperwidth,minimum height=2cm, rounded corners] at ($(current page.north east)+(1,-16)$)
{
\begin{itemize}
\item [\checkmark] Jee Advanced
\item [\checkmark] ISI
\item [\checkmark] CMI
\item [\checkmark] KVPY
\item [\checkmark] IOQM
\end{itemize}
};
\node[rounded corners,fill=BrickRed!70,text =BrickRed!5,regular polygon,regular polygon sides=6, minimum size=2.5 cm,inner sep=0,ultra thick] at ($(current page.west)+(2.5,-5)$) {\LARGE \bfseries };
\end{tikzpicture}
\end{document}
答案1
您可以使用text width=<length>
允许节点内的换行,然后使用align=right
将文本对齐到右侧。
\documentclass{article}
\usepackage{newpxtext}
\usepackage{amsfonts}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{ shapes.geometric }
\usetikzlibrary{calc}
\usepackage{anyfontsize}
\newcommand{\KKcheckmark}{\enspace\textcolor{Green!60}{\checkmark}}
\begin{document}
\pagestyle{empty}
\begin{tikzpicture}[remember picture,overlay]
\fill[BrickRed] (current page.south west) rectangle (current page.north east);
\node[rounded corners,fill=BrickRed!70,text =BrickRed!5,regular polygon,regular polygon sides=6, minimum size=2.5 cm,inner sep=0,ultra thick] at ($(current page.west)+(2.5,-5)$) {\LARGE \bfseries };
\foreach \i in {2.5,...,22}
{
\node[rounded corners,BrickRed!60,draw,regular polygon,regular polygon sides=6, minimum size=\i cm,ultra thick] at ($(current page.west)+(2.5,-5)$) {} ;
}
\foreach \i in {0.5,...,22}
{
\node[rounded corners,BrickRed!60,draw,regular polygon,regular polygon sides=6, minimum size=\i cm,ultra thick] at ($(current page.north west)+(2.5,0)$) {} ;
}
\foreach \i in {0.5,...,22}
{
\node[rounded corners,BrickRed!90,draw,regular polygon,regular polygon sides=6, minimum size=\i cm,ultra thick] at ($(current page.north east)+(0,-9.5)$) {} ;
}
\foreach \i in {21,...,6}
{
\node[BrickRed!85,rounded corners,draw,regular polygon,regular polygon sides=6, minimum size=\i cm,ultra thick] at ($(current page.south east)+(-0.2,-0.45)$) {} ;
}
\node[left, BrickRed!5, text width=0.625*\paperwidth, align=right, minimum height=3cm, rounded corners] at ($(current page.north east)+(-1,-9.5)$)
{
{\fontsize{25}{30} \selectfont \bfseries 100 Thrilling Math Problems}
};
\node[left,BrickRed!10, text width=0.625*\paperwidth, align=right, minimum height=2cm, rounded corners] at ($(current page.north east)+(-1,-11)$)
{
{\huge \textit{Both Textual and Video Solutions}}
};
\node[left, BrickRed!5, text width=0.625*\paperwidth, align=right, minimum height=2cm, rounded corners] at ($(current page.north east)+(-1,-13)$)
{
{\fontsize{25}{30} \textsc{By Kowshiq Kattamuri}}
};
\node[left, BrickRed!5, text width=0.625*\paperwidth, align=right, minimum height=2cm, rounded corners] at ($(current page.north east)+(-1,-19)$)
{
\LARGE
Jee Advanced\KKcheckmark\\
ISI\KKcheckmark\\
CMI\KKcheckmark\\
KVPY\KKcheckmark\\
IOQM\KKcheckmark\\
};
\end{tikzpicture}
\end{document}