CTAN Comprehensive TeX Archive Network

Direc­tory graphics/pgf/contrib/tikz-page

README.md

Tikz page

Small macro to help build­ing nice and com­plex page lay­out ma­te­ri­als.

Build

You can build the whole pack­age us­ing the make com­mand.

In­stal­la­tion

To in­stall the tkiz-page pack­age copy its di­rec­tory to ei­ther to:

  • $TEXHOME/tex/latex/
  • $TEXMFHOME/tex/latex/
  • ~/texmf/tex/latex/
  • ~/Library/texmf/tex/latex/

Usage

A sim­ple page:

\documentclass{article}
\usepackage{tikz-page}
\usepackage{lipsum}
\newcommand{\tikzpagelayout}{
  \tpshowframes
  \tikzpageputanchors
}
\pagestyle{plain}
\begin{document}
\lipsum
\end{document}

A more com­plex doc­u­ment:

\documentclass{article}
\usepackage{tikz-page}
\usepackage{lipsum}
\definecolor{halfgray}{gray}{0.55}
\newcommand\anglei{-45}
\newcommand\angleii{45}
\newcommand\angleiii{225}
\newcommand\angleiv{135}
\newcommand{\tikzpagelayout}{
  \tpflip{
    \coordinate (aux1) at ([yshift=-15pt]page.northeast);
    \coordinate (aux2) at ([yshift=-410pt]page.northeast);
    \coordinate (aux3) at ([xshift=-4.5cm]page.northeast);
    \coordinate (aux4) at ([yshift=-150pt]page.northeast);
  }{
    \coordinate (aux1) at ([yshift=-15pt]page.northwest);
    \coordinate (aux2) at ([yshift=-410pt]page.northwest);
    \coordinate (aux3) at ([xshift=4.5cm]page.northwest);
    \coordinate (aux4) at ([yshift=-150pt]page.northwest);
    \renewcommand\anglei{-135}
    \renewcommand\angleii{135}
    \renewcommand\angleiii{-45}
    \renewcommand\angleiv{45}
  }
  \begin{scope}[halfgray!40,line width=12pt,rounded corners=12pt]
    \draw (aux1) -- coordinate (a) ++(\angleiii:5) -- ++(\anglei:5.1) coordinate (b);
    \draw[shorten <= -10pt] (aux3) -- (a) -- (aux1);
    \draw[opacity=0.6,halfgray,shorten <= -10pt] (b) -- ++(\angleiii:2.2) -- ++(\anglei:2.2);
  \end{scope}
  \draw[halfgray,line width=8pt,rounded corners=8pt,shorten <= -10pt]
  (aux4) -- ++(\angleiii:0.8) -- ++(\anglei:0.8);
  \begin{scope}[halfgray!70,line width=6pt,rounded corners=8pt]
    \draw[shorten <= -10pt] (aux2) -- ++(\angleiii:3) coordinate[pos=0.45] (c) -- ++(\anglei:3.1);
    \draw (aux2) -- (c) -- ++(\angleiv:2.5) -- ++(\angleii:2.5) -- ++(\anglei:2.5) coordinate[pos=0.3] (d);   
    \draw (d) -- +(\angleii:1);
  \end{scope}
}
\pagestyle{plain}
\begin{document}
\lipsum
\end{document}

See tikz-page.pdf for fur­ther help.

Ex­am­ple

tikz example

Li­cense

This pro­gram is free soft­ware. It comes with­out any war­ranty, to the ex­tent per­mit­ted by ap­pli­ca­ble law. You can re­dis­tribute it and/or mod­ify it un­der the terms of the Do What The Fuck You Want To Public Li­cense, Ver­sion 2, as pub­lished by Sam Ho­ce­var. See http://sam.zoy.org/wtfpl/COPYING for more de­tails.

This file may be dis­tributed and/or mod­i­fied un­der the con­di­tions of the Project Public Li­cense, ei­ther ver­sion 1.3c of this li­cense or (at your op­tion) any later ver­sion. The lat­est ver­sion of this li­cense is in:

http://www.la­tex-project.org/lppl.txt

and ver­sion 1.3c or later is part of all dis­tri­bu­tions of ver­sion 2006/05/20 or later.

Down­load the con­tents of this pack­age in one zip archive (560.6k).

tikz-page – Small macro to help build­ing nice and com­plex lay­out ma­te­ri­als

The pack­age pro­vides a small macro to help build­ing nice and com­plex lay­out ma­te­ri­als.

Pack­agetikz-page
Re­pos­i­toryhttps://github.com/re­nard/tikz-page/
Ver­sion1.0
Li­censesThe Project Public Li­cense 1.3
Copy­right2016 S├ębastien Gross
Main­tainerS├ębastien Gross
Con­tained inTeX Live as tikz-page
MiKTeX as tikz-page
TopicsPGF TikZ
...
Guest Book Sitemap Contact Contact Author