Graphics, Figures & Tables ⇒ How to insert a frame for a page in latex?
-
- Posts: 1
- Joined: Wed Mar 20, 2019 6:37 am
How to insert a frame for a page in latex?
Can you please help me ?
Andrea,
https://consumerepic.com
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10334
- Joined: Mon Mar 10, 2008 9:44 pm
How to insert a frame for a page in latex?
welcome to the forum!
Here is an example using TikZ. It should be compiled 2 or 3 times, since in the first run it checks the page dimensions internally:
Code: Select all
\documentclass{article}
\usepackage{geometry}
\usepackage{tikz}
\usetikzlibrary{calc}
\usepackage{blindtext}
\begin{document}
\tikz[overlay, remember picture]
\draw ($(current page.north west) + (2cm,-2cm)$)
rectangle ($(current page.south east) + (-2cm,2cm)$);
\blindtext[5]
\end{document}