emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* in LaTeX, how to start page numbering after TOC?
@ 2014-01-23  5:43 Peter Salazar
  2014-01-23  8:26 ` Eric S Fraga
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Salazar @ 2014-01-23  5:43 UTC (permalink / raw)
  To: org-mode

[-- Attachment #1: Type: text/plain, Size: 385 bytes --]

In export to LaTeX/PDF, has anyone had success in suppressing page
numbering on the cover page and the Table of Contents, such that the first
text section appears as Page 1?

I tried adding this at the beginning of my document, but it had no effect:

#+LATEX_CMD: \cleardoublepage
#+LATEX_CMD: \pagestyle{headings}
#+LATEX_CMD: \setcounter{page}{1}
#+LATEX_CMD: \pagenumbering{arabic}

[-- Attachment #2: Type: text/html, Size: 514 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: in LaTeX, how to start page numbering after TOC?
  2014-01-23  5:43 in LaTeX, how to start page numbering after TOC? Peter Salazar
@ 2014-01-23  8:26 ` Eric S Fraga
  0 siblings, 0 replies; 2+ messages in thread
From: Eric S Fraga @ 2014-01-23  8:26 UTC (permalink / raw)
  To: Peter Salazar; +Cc: org-mode

Peter Salazar <cycleofsong@gmail.com> writes:

> In export to LaTeX/PDF, has anyone had success in suppressing page
> numbering on the cover page and the Table of Contents, such that the first
> text section appears as Page 1?
>
> I tried adding this at the beginning of my document, but it had no effect:
>
> #+LATEX_CMD: \cleardoublepage
> #+LATEX_CMD: \pagestyle{headings}
> #+LATEX_CMD: \setcounter{page}{1}
> #+LATEX_CMD: \pagenumbering{arabic}

I don't know the CMD specification.  You probably should use
#+LATEX_HEADER instead.

Regardless, the issue is that those LaTeX commands affect the
/following/ pages only.  To change the style for the /current/ page, in
LaTeX, you need to use \thispagestyle as well as \pagestyle.  You
probably should not have the cleardoublepage command either.

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.1, Org release_8.2.4-322-gece429

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-23  9:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-23  5:43 in LaTeX, how to start page numbering after TOC? Peter Salazar
2014-01-23  8:26 ` Eric S Fraga

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).