Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: LaTeX page numbering

  1. #11
    Join Date
    Mar 2007
    Location
    BC, Canada
    Beans
    358
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: LaTeX page numbering

    Found this thread which gives a solution

    http://lists.debian.org/debian-tetex.../msg00122.html

    Basically insert \thispagestyle{empty} after the \maketitle

  2. #12
    Join Date
    Jun 2005
    Location
    Madrid
    Beans
    212
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: LaTeX page numbering

    Wow, it does work, indeed. Thank you very much!

  3. #13
    Join Date
    Jun 2005
    Location
    Madrid
    Beans
    212
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: LaTeX page numbering

    As Josephus has told me below, it gets solved by adding "\thispagestyle{empty}" after "\maketitle".

  4. #14
    Join Date
    Jun 2005
    Location
    Madrid
    Beans
    212
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: LaTeX page numbering

    As josephus has told me below, it gets solved by adding "\thispagestyle{empty}" after "\maketitle".

  5. #15
    Join Date
    Sep 2005
    Beans
    463
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: LaTeX page numbering

    Just tried it out this morning and it does work! Great tip, thanks josephus!

  6. #16
    Join Date
    Nov 2005
    Beans
    14

    Re: LaTeX page numbering

    Code:
    \documentclass[a4paper]{report}
    \usepackage[utf8]{inputenc}
    \usepackage[spanish]{babel}
    \usepackage{url}
    \pagestyle{empty}
    
    \title{Documentación sobre DHCP}
    \author{Me}
    
    \begin{document}
    \maketitle
    \thispagestyle{empty}
    \tableofcontents
    \thispagestyle{empty}
    
    \chapter{Antecedentes}
    \section{ARP}
    \textit{Address Resolution Protocol} es el protocolo utilizado para encontrar la dirección del nivel de enlace, generalmente la dirección MAC, de un equipo cuando solo se conoce su dirección IP u otra dirección \end{document}
    I still get a page number on every page after the first two pages. Is this a bug in latex?

  7. #17
    Join Date
    Mar 2007
    Location
    Finland
    Beans
    256
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: LaTeX page numbering

    I still get a page number on every page after the first two pages. Is this a bug in latex?
    It seems that also the "chapter" command also makes the page numbers appear. See this link for some solutions http://www.tex.ac.uk/cgi-bin/texfaq2html?label=nopageno.

  8. #18
    Join Date
    Nov 2006
    Beans
    186

    Re: LaTeX page numbering

    Quote Originally Posted by NikoC View Post
    I was looking for arguments for the \maketitle command, but no luck so far... it appears that the package uses \pagestyle to generate the pagenumber...
    No, LaTeX's default is to number all pages. Adding \pagestyle{empty} in the preamble (before \begin{document}) turns this off for the whole document. Adding it elsewhere in the document turns the page number off from that point onwards. But in both cases it may get reset by some other command: some packages may turn it on after a new \chapter, for example, and \maketitle invokes \thispagestyle{plain}, which includes a page number.

    You also put the \title, \author, and \date commands in the preamble. They will work here, but it's more normal nowadays to put them immediately after \begin{document}.

    In either case, no titling will appear unless you use \maketitle. Until you do, the title, author, and date are simply memorised and not displayed, because many document packages require other commands to make titling work (eg \submissiondate, \subtitle, \journalname, etc).

    The point about \maketitle is that in the article document class it applies \thispagestyle{plain}, and this is what is causing the page number to appear. If you add \thispagestyle{empty} after your \maketitle, the page number goes away *for that page*.

    ///Peter

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •