0

Can any one help me design something like this?. enter image description here

3
  • 3
    Welcome to TeX.SE! What have you tried so far?
    – Mensch
    Aug 30, 2021 at 22:35
  • I think this layout can be done with tikz-page.
    – vi pa
    Aug 31, 2021 at 20:42
  • Since i'm new to latex , i tried tikz but i couldn't. Aug 31, 2021 at 20:49

1 Answer 1

4

No need to use TikZ:

\documentclass[oneside]{book}
\usepackage{eso-pic}
\usepackage{forloop}

\usepackage{mwe}% <--- for testing purpose only

\newlength{\mytoph}
\setlength{\mytoph}{.75\paperheight}
\newlength{\mytopw}
\setlength{\mytopw}{.75\paperheight}
\newlength{\mytophincr}
\setlength{\mytophincr}{-1cm}
\newlength{\mytopwincr}
\setlength{\mytopwincr}{.8cm}
\newcounter{mycount}
\newsavebox{\myvertline}
\savebox{\myvertline}{%
    \color{cyan!30}\makebox[0cm][l]{\rule[\mytoph]{1cm}{\mytopw}}%
    \addtolength{\mytoph}{\mytophincr}%
    \setlength{\mytopw}{\mytopwincr}%
    \makebox[0cm][l]{\rule[\mytoph]{1cm}{\mytopw}}%
    \forloop{mycount}{0}{\value{mycount}<10}{%
      \addtolength{\mytophincr}{.05cm}%
      \addtolength{\mytopwincr}{-.08cm}%
      \addtolength{\mytoph}{\mytophincr}%
      \setlength{\mytopw}{\mytopwincr}%
      \makebox[0cm][l]{\rule[\mytoph]{1cm}{\mytopw}}%
    }%
}

\newlength{\whitegap}
\setlength{\whitegap}{.6cm}
\newlength{\bluew}
\setlength{\bluew}{.2cm}
\newsavebox{\myhorline}
\savebox{\myhorline}{%
    \color{cyan}%
    \forloop{mycount}{0}{\value{mycount}<5}{%
      \rule{\whitegap}{0cm}\rule{\bluew}{1cm}%
      \addtolength{\whitegap}{-.1cm}%
      \addtolength{\bluew}{.2cm}%
    }%
}

\newlength{\topgap}
\setlength{\topgap}{\paperwidth}
\addtolength{\topgap}{-1cm}
\AddToShipoutPictureBG{%
    \usebox{\myvertline}\rule{\topgap}{0cm}\usebox{\myvertline}%
    \hspace{-\topgap}\color{cyan}%
    \makebox[0cm][l]{\usebox{\myhorline}}\hspace{\paperwidth}\makebox[0cm][r]{\reflectbox{\usebox{\myhorline}}}%
}

\begin{document}
\blindtext[10]% <--- for testing purpose only
\end{document}

enter image description here

2
  • Thank you very much. Nov 22, 2021 at 6:49
  • @JackAlbert You're welcome!
    – CarLaTeX
    Nov 22, 2021 at 6:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .