Text FormattingPage numbering location and headers

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
etp94
Posts: 16
Joined: Sat Sep 03, 2016 11:55 pm

Page numbering location and headers

Post by etp94 »

Johannes_B wrote:I'm not sure i understand. You want to get apa appearance without using the apa6 class, that takes care of it? Or do you see the page numbers not at the top right corner?


PS: APA really is something completely insane. Not the institution, but the APA-style.
Totally agree, I've a digital circuit design which has to be described on my thesis, I don't think that apa style can fit my project without losing important information.

But my institute loves apa, so I'll try to keep some apa characteristics, like fonts, numbering location, margin size, tables and figure styles... but I need chapters!!!

So yes! I want to get apa appearence without using apa6 class, in order to keep using chapters, what I need is to put the page numbering at the top right corner.

Thanks for replying! :)

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

etp94
Posts: 16
Joined: Sat Sep 03, 2016 11:55 pm

Page numbering location and headers

Post by etp94 »

Johannes_B wrote:I'm not sure i understand. You want to get apa appearance without using the apa6 class, that takes care of it? Or do you see the page numbers not at the top right corner?


PS: APA really is something completely insane. Not the institution, but the APA-style.
I do not like apa style, but my institute love it, and I need to use chapters!, I understand that apa class does not permit chapters, thats why I want to keep some text formatting in apa fashion but without using the class.

My question is how to put page numbering at the top right corner of the page?

Thanks for reading! :)
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Page numbering location and headers

Post by Johannes_B »

Sorry for the very late reply, i temporariy lost internet connection.

The default headings pagestyle already sets the page number at the top of the page. An alternative to customice the headers and footers would be fancyhdr.

Code: Select all

\documentclass[12pt,openany]{report}
\usepackage[document]{ragged2e}
\usepackage{parskip} %Enable white horizontal line between paragraphs
\usepackage[T1]{fontenc}
\usepackage{mathtools}
\usepackage{color}
\usepackage{authblk}

\usepackage[margin=1in,head=14.5pt,showframe]{geometry} % 1 inch margin
\usepackage{blindtext} %Show how the frames are doing

\setlength\RaggedRightParindent{0.5in} %Half inc indent


%\usepackage{fancyhdr}
%\pagestyle{fancy}
%\fancyhead[LE,RO]{\thepage}
%\fancyfoot{}
\pagestyle{headings}
\begin{document}
\blinddocument
\end{document}
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply