I want to add two filled rectangle()red,blue in title page. How i can place the red rectangle above the blue one. The red rectangle is smaller than blue.
Asked
Active
Viewed 104 times
1 Answers
0
Kindly add a minimal working example so that we can understand what you need. Anyhow, as far I understood is, you have some title and you need to place some rectangle above (or below). Here is the simple solution using tikz.
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{titlepage}
\centering
\begin{tikzpicture}
\draw[color = blue, fill] (0,0) rectangle (2,2);
\draw[color = red, fill] (0,2.1) rectangle (2,3);
\end{tikzpicture}
\huge \textbf{Do you want the title Here ?}
\end{titlepage}
\end{document}
Output:
David
- 1,964
-
@tovino HI tovino.. Welcome. Always add a minimal working example which explains your effort in doing the same(or atleast document class with
\begin{document} \end{document}). Then you will get your answer immediately in this site, most of the time. – David Jun 20 '18 at 11:01 -
@tovino upvote if it solve your question. Thats the way to thank the people who answers your question. – David Jun 20 '18 at 11:07

\documentclassand ending with\end{document}. – Bobyandbob Jun 20 '18 at 07:01