Graphics, Figures & TablesHow to insert a frame for a page in latex?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Andrea Chandler
Posts: 1
Joined: Wed Mar 20, 2019 6:37 am

How to insert a frame for a page in latex?

Post by Andrea Chandler »

I want to create a frame for page in latex , But i'm new to latex and i don't know how i do that .

Can you please help me ?

Andrea,
https://consumerepic.com
Last edited by Andrea Chandler on Wed Mar 27, 2019 12:54 am, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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?

Post by Stefan Kottwitz »

Hi Andrea,

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}
Stefan
LaTeX.org admin
Post Reply