发布时间:2012-06-06 14:09:47
文章类别:页面设置
原文地址:http://blog.sina.com.cn/s/blog_5e16f1770102eq3s.html

QQ群:91940767/145316219/141877998/80300084/194770436
淘宝店:http://latexstudio.taobao.com
技巧续篇:http://latexstudio.net/
常见数学公式问题集下载

Title page with TikZ

选自:http://tex.stackexchange.com/questions/9402/use-tikz-to-draw-frontpage/9407#9407

http://tex.stackexchange.com/questions/9808/title-page-using-tikz

代码节选:

\documentclass[a4paper]{article}

\usepackage{tikz}
\usepackage{lipsum}

\begin{document}

\begin{tikzpicture}[remember picture,overlay]

\coordinate [below=2.5cm] (midpoint) at (current page.north);

\node [name=colourbar,
anchor=base,
fill=blue!40,
text = white,
minimum width=\paperwidth,
minimum height=1cm] at (midpoint) {\huge{\textsc{School Name}}};

% Define the point where the logo will go
\coordinate [right=4cm] (logo) at (colourbar.west);

% Set coordinate system origin
\begin{scope}[shift=(logo)]
% Draw the outline
\filldraw [white,draw=red] (2.3,0.85) -- (-2,0.85) -- (-2.8,-0.85) -- (2.3,-0.85) --cycle;
% Include the logo
\node {\includegraphics[width=4cm]{logo}};
\end{scope}

\end{tikzpicture}

\section{Normal stuff starts here}
\lipsum

\end{document}

点赞(0)

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部