我是乳胶新手,想要创建一个如下所示的标题页:
\documentclass[landscape]{article}
\usepackage[table,xcdraw,dvipsnames]{xcolor}
\usepackage{color}
\usepackage{fix-cm}
\usepackage{tikz}
\colorlet{bgcolor1}{Dandelion!50!White!30!}
\newcommand\myfont[2]{\fontsize{#1}{#2}\selectfont}
\begin{document}
\begin{tikzpicture}[remember picture,overlay,line width=30mm]
\draw [draw=bgcolor1,fill=bgcolor1]
(current page.north west) rectangle (\paperwidth,1);
\node[xshift=.7\paperwidth,yshift=1.8cm,text=NavyBlue,font=\myfont{40}{48}] {Text Text Text Text};
\node[yshift=.5cm,xshift=-5cm] at (current page.center)
[text width=20cm,text=MidnightBlue,font=\myfont{50}{60},above right]{Text Text Text Text Text};
\node[yshift=.5cm,xshift=4cm] at (current page.south west)
[text width=6cm,text=black,font=\Large,above right]{This is a draft blah blah blah blurb random text};
\end{tikzpicture}
\end{document}
我尝试创建了一个非常粗糙的标题页,看起来不太像这样。有人能帮我找到看起来像示例的东西吗?
答案1
我相信您可以从这里拿到它....这使用了 tikzpagenodes。
\documentclass[landscape]{article}
\usepackage[svgnames]{xcolor}
\usepackage{tikz}
\usepackage{tikzpagenodes}
\begin{document}
\begin{tikzpicture}[remember picture,overlay,shift={(current page.south)}]
\fill[LightYellow] rectangle(0.5\paperwidth,\paperheight);
\node[xshift=1in,yshift=2in,right]{\Huge\bfseries Example subsubtitle};
\end{tikzpicture}
\begin{tikzpicture}[remember picture,overlay,shift={(current page.north west)}]
\fill[LightBlue,yshift=-3in] rectangle(\paperwidth,1.5in);
\end{tikzpicture}
\end{document}