Page Layout ⇒ page numbering on multiple documents
Re: page numbering on multiple documents
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
Re: page numbering on multiple documents
Re: page numbering on multiple documents
Thank you! I have page numbers now! One quick question, I notice a problem in my table of contents, the page number listed for my figures section is off by 1, all the other numbers listed appear to be fine. Do you know why the count is off?
Re: page numbering on multiple documents
I also have another new question. I would post these questions in a new forum, but this thread has all of my code readily available and it seems to make sense to keep it going. I have a problem with my tables and figures sections adding a page, in Chapters 2 and 3. It seems as though it is happening because the first table/figure is too large to account for both the section header and the table/figure itself. How can I force it to fit onto the same page as the section header? Hopefully this question makes sense...
page numbering on multiple documents
Code: Select all
\section{...}\includegraphcs{...}
Re: page numbering on multiple documents
Thanks again, I appreciate your help very much! However, I'm not sure I understand how to apply your latest suggestion, how can I neglect setting the tabular environment if I want the table to be sideways? Currently, I use the rotating package and sidewaystable, is there another way to make the table sideways and not put it into a tabular environment?
Also, do you know why my TOC is incorrect?
Re: page numbering on multiple documents
Thanks forum!
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
page numbering on multiple documents
Code: Select all
\documentclass[12pt]{report}\usepackage[top=1in, bottom=1.1in, left=1.5in, right=1in]{geometry}%\linespread{2} % <<< Hence with it!\usepackage{lineno} % What for?\usepackage{graphicx}\usepackage{subfig} % What for?\usepackage[subfigure]{tocloft} % Without option when omitting subfig\usepackage{caption} % What for?\usepackage[latin1]{inputenc}\usepackage{rotating}\usepackage[doublespacing]{setspace} % <<< replaces line spreading\usepackage{amsfonts}\usepackage{amsmath}\usepackage{amssymb}\usepackage{wasysym} % What for?\usepackage{url} % What for?\usepackage{array} % What for?\usepackage{booktabs}\usepackage{natbib}\usepackage{fancyhdr}\renewcommand{\cftchapfont}{Chapter }\renewcommand{\familydefault}{\sfdefault}\begin{document}\include{signature}\include{title}\include{copyright}% \clearpage % <<< Hence with it!\pagenumbering{roman}\addcontentsline{toc}{section}{Acknowledgements}\include{acknowledgements}\addcontentsline{toc}{section}{Dedication}\include{dedication}\addcontentsline{toc}{section}{Abstract}\include{abstract}%\pagenumbering{roman}%\setcounter{page}{5}\tableofcontents
Code: Select all
\newpage% \clearpage % <<< Hence with it!\section{Figures}
Code: Select all
\clearpage \input{filename} \clearpage
Another point (but not problem related) is that you are loading many packages which you don't really use. The most succinctly example is the setspace package. Instead of using its doublespacing option you do line spreading (see code above). Another similar example for inconsequential usage is the booktabs package. Other packages are loaded but not used. So, think about cleaning up your preamble thoroughly.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: page numbering on multiple documents
However, even after cleaning up my preamble in my main file, I still have the same problems. I am not sure why the TOC count is off, it does not appear to be an issue with \clearpage. I commented out the \clearpage command everywhere you have suggested, but this did not do anything.
Also, I am not sure how to rotate my figures/tables -and- their respective captions without using the sidewaysfigure/table command. I understand this does not accept any placement parameters like normal floats do, so how do I rotate both the figure/table and the caption -and- avoid the blank page being inserted?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: page numbering on multiple documents
- Attachments
-
- thesis.pdf
- The resulting output after modifications.
- (204.5 KiB) Downloaded 405 times
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10