Page LayoutMargin Formatting

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
pete_81
Posts: 1
Joined: Thu Feb 17, 2011 2:29 pm

Margin Formatting

Post by pete_81 »

Hi all,
This is my first post here but I regularly read the forum contents but haven't found a solution as yet to the following formatting issue(s).

I'm looking to create a single sided LaTeX report (\documentclass[11pt, a4paper, oneside]{report}) with the right margin containing three things:
  1. A coloured stripe, about 1cm thick from top to bottom of the page. I'm thinking the easiest way is to form this as a jpg, and then insert it into the margin, but am not sure of the commands and the packages to use in the preamble.
  2. The margin I'd also like to contain the chapter title. Rotating 90deg is easy enough (I think) but how to insert items to the margin. Specifically, the chaptername and sectionname, which can be obtained through '\thesection'.

    I guess what I'm looking for is the simple commands to modify and insert any item into the right margin...
  3. The page number: yes, I know that I can use any formatting of page, but wondering how I can specifically set this to form upright numbers, but for page numbers >9, format it vertically i.e. for page 10, the page number in the output file would look like this:
    1
    0
    when run through pdflatex.
I've used the fancyhdr package frequently and assume my answer lies within it, but am unsure what to input.

I attach a screen print of the Word version of what I'm trying to do - the colour bar to the right and page 15 formatted as required. This file is the MS Word version of what I'm looking to generate through editing the margins in LaTeX - the colour bar on the right of the page (could be a picture), the chapter within the margin, rotated by 90deg and the page number formatting to be vertical (but not rotated) - see the description for more details.


Any help greatly appreciated!
Pete.
Attachments
The desired result of the page layout.
The desired result of the page layout.
margin-format.jpg (21.38 KiB) Viewed 942 times

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

Post Reply