Texmaker and TeXstudio ⇒ page numbering when using includegraphicsfullpage
page numbering when using includegraphicsfullpage
What can I do to get the page numbers on the pages before a graphic?
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
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
page numbering when using includegraphicsfullpage
includegraphicsfullpage
, where is it defined?page numbering when using includegraphicsfullpage
Code: Select all
\newcommand{\includegraphicsfullpage}[1]{%
\newpage
\bgroup
\thispagestyle{empty}%
\hoffset=-1in
\voffset=-1in
\topmargin=0pt
\headheight=0pt
\headsep=0pt
\hsize=\paperwidth
\@colht\paperheight
\evensidemargin=0pt
\oddsidemargin=0pt
\parskip=0pt
\parindent=0pt
\hspace{6mm}\includegraphics[width=0.65\paperwidth,height=0.65\paperheight]{#1}
\newpage
\egroup}
Code: Select all
\usepackage{fullpagegraphic}
Code: Select all
\pagenumbering{arabic}
Code: Select all
\begin{figure}
\includegraphicsfullpage{picture.jpg}
\end{figure}
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
page numbering when using includegraphicsfullpage
figure
environment, where you clearly don't want one. Code: Select all
\documentclass{article}
\usepackage{graphicx}
\usepackage{blindtext}
\makeatletter
\newcommand{\includegraphicsfullpage}[1]{%
\newpage
\bgroup
\thispagestyle{empty}%
\hoffset=-1in
\voffset=-1in
\topmargin=0pt
\headheight=0pt
\headsep=0pt
\hsize=\paperwidth
\@colht\paperheight
\evensidemargin=0pt
\oddsidemargin=0pt
\parskip=0pt
\parindent=0pt
\hspace{6mm}\includegraphics[width=0.65\paperwidth,height=0.65\paperheight]{#1}
\newpage
\egroup}
\makeatother
\begin{document}
\blindtext
\includegraphicsfullpage{example-image-a}
\end{document}
page numbering when using includegraphicsfullpage
http://stackoverflow.com/questions/1673 ... whole-page
and inserted in the declaration part the line
Code: Select all
\usepackage{floatpag}
the line
Code: Select all
\thispagestyle{empty}
Code: Select all
\floatpagestyle{empty}
the picture does not get a page number. How can I get a page numbering on the picture page?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
page numbering when using includegraphicsfullpage
I don't even know what you are trying to achieve.
Re: page numbering when using includegraphicsfullpage
MWE:
Code: Select all
\documentclass[a4paper]{book}
\usepackage{graphicx}
\pagenumbering{roman}
\begin{document}
\pagenumbering{roman}
hello, world
\newpage
\includegraphics[height=0.5\paperheight,keepaspectratio]{page1.png} \newline
\includegraphics[height=0.5\paperheight,keepaspectratio]{page2.png} \newline
\end{document}
Re: page numbering when using includegraphicsfullpage
Code: Select all
\newline
Replacing
Code: Select all
\newline
Code: Select all
\newpage