Text FormattingFramebox customization

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Roton
Posts: 5
Joined: Wed Aug 12, 2015 9:58 pm

Framebox customization

Post by Roton »

Hi,

I am trying to use \framebox to be the width of the page or a fixed width so all of my boxes in the document are the same width. I also want to colour the box grey.

\section{\centerline{\framebox[1.7\width]{HEADING}}}

Can anyone please help, thanks.

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply