From c08522abcc873f8d446b26afb1e6e4db523aa102 Mon Sep 17 00:00:00 2001 From: Xavier Danaux Date: Fri, 7 Dec 2012 01:48:21 -0500 Subject: [PATCH] Added a macro to control what is visible upon opening compiled pdfs --- CHANGELOG | 5 +++++ moderncv.cls | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index b149e82..b6b7975 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,9 @@ version 1.3.0 (xx xxx 201x) + - added a macro (\pdfpagemode) to control what is visible upon opening compiled + pdfs (assuming pdf reader support), as suggested by U. Stöhr. + Possible values include: "UseNone" (only the document), "UseThumbs" (show + thumbnails), "UseOutlines" (show bookmarks) and "FullScreen" (open in + fullscreen mode). - added a 3rd, fully optional (can be omitted or left blank) argument to \address to specify a country, as requested on launchpad (launchpad bug #1063995). diff --git a/moderncv.cls b/moderncv.cls index f7c3844..10e1982 100644 --- a/moderncv.cls +++ b/moderncv.cls @@ -120,6 +120,7 @@ %\fi % hyper links (hyperref is loaded at the end of the preamble to pass options required by loaded packages such as CJK) +\newcommand*\pdfpagemode{UseNone}% do not show thumbnails or bookmarks on opening (on supporting browsers); set \pdfpagemode to "UseOutlines" to show bookmarks \RequirePackage{url} \urlstyle{tt} \AtEndPreamble{ @@ -129,7 +130,7 @@ breaklinks, baseurl = http://, pdfborder = 0 0 0, - pdfpagemode = UseNone, + pdfpagemode = \pdfpagemode, pdfstartpage = 1, pdfcreator = {\LaTeX{} with 'moderncv' package}, % pdfproducer = {\LaTeX{}},% will/should be set automatically to the correct TeX engine used