summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-08-01 21:34:40 +0000
committerKarl Berry <karl@freefriends.org>2017-08-01 21:34:40 +0000
commit7ba0b2e501e4b5d83a48295804d3570ef3407f8a (patch)
tree84ceb1534f87b41ff6aca6b306fed3b33466ecb2 /Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty
parentb26f035ced2518fea3f81bb1c8bd54de090262df (diff)
novel (1aug17)
git-svn-id: svn://tug.org/texlive/trunk@44933 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty')
-rw-r--r--Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty38
1 files changed, 30 insertions, 8 deletions
diff --git a/Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty b/Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty
index 996abd35c2a..615f74e35b3 100644
--- a/Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty
+++ b/Master/texmf-dist/tex/lualatex/novel/novel-pdfx.sty
@@ -24,7 +24,7 @@
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesFile{novel-pdfx.sty}
- [2017/07/26 v1.32 LaTeX file (PDF/X support for novel class)]
+ [2017/07/31 v1.34 LaTeX file (PDF/X support for novel class)]
% This package supports, and is part of, class `novel'.
% No support for anything but LuaLaTeX.
@@ -33,6 +33,9 @@
%% This file is loaded \AtEndPreamble.
%%
+%% Novel Tracking messages in this file begin with 11.
+\NDB{11.0 in novel-pdfx.sty.}
+
%
% Hyperref options for PDF/X with LuaTeX:
@@ -42,12 +45,14 @@
pdfpagelabels=true,pageanchor=false,pdfstartview=}
%
\RequirePackage[\pdfx@pdfX@opts@luatex]{hyperref}
+\NDB{11.1 in novel-pdfx.sty.}
%
\hypersetup{pdfencoding=auto}
\expandafter\ifx\csname KV@Hyp@psdextra\endcsname\relax\else
\hypersetup{psdextra}
\fi
\Hy@bookmarksfalse
+\NDB{11.2 in novel-pdfx.sty.}
%
\newif \if@gottitle \@gottitlefalse % refers to PDF File Data
% Was \title{} called prior to this step? If so:
@@ -61,6 +66,7 @@
before using \string\SetPDFX.^^J}
\fi
\fi
+\NDB{11.3 in novel-pdfx.sty.}
%
\if@gottitle\else
\ClassWarning{novel}{Your file has been compiled without standard^^J %
@@ -76,7 +82,7 @@
\edef\pdfcreationdate{\pdfcreationdate}%
\let\pdfx@mdfivesum\pdf@mdfivesum
%
-
+\NDB{11.4 in novel-pdfx.sty.}
@@ -105,6 +111,7 @@
\FPmul{\my@THnum}{\my@THnum}{0.99626401}
\FPround{\my@THnum}{\my@THnum}{3}
%
+\NDB{11.5 in novel-pdfx.sty.}
\FPsub{\my@TWorigin}{\my@MWnum}{\my@TWnum}
\FPmul{\my@TWorigin}{\my@TWorigin}{0.5}
\FPround{\my@TWorigin}{\my@TWorigin}{3}
@@ -121,6 +128,7 @@
\FPclip{\my@THorigin}{\my@THorigin}
\FPclip{\my@THcorner}{\my@THcorner}
%
+\NDB{11.6 in novel-pdfx.sty.}
\newcommand\novel@CropBox{%
\if@cropview%
/CropBox[\my@TWorigin\space\my@THorigin\space\my@TWcorner\space\my@THcorner]%
@@ -128,10 +136,12 @@
/CropBox[0\space0\space\my@MWnum\space\my@MHnum]%
\fi%
}
+\NDB{11.7 in novel-pdfx.sty.}
%
\newcommand\novel@TrimBox{%
/TrimBox[\my@TWorigin\space\my@THorigin\space\my@TWcorner\space\my@THcorner]%
}
+\NDB{11.8 in novel-pdfx.sty.}
%
% New in version 1.2: BleedBox, only for cover art. Same size as MediaBox.
\newcommand\novel@BleedBox{%
@@ -139,12 +149,14 @@
/BleedBox[0\space0\space\my@MWnum\space\my@MHnum]%
\else\fi%
}
+\NDB{11.9 in novel-pdfx.sty.}
%
\begingroup\edef\next{%
\endgroup\pdfpageattr{\novel@CropBox^^J\novel@BleedBox^^J\novel@TrimBox}}\next
%
%% End calculate and specify TrimBox.
+\NDB{11.10 in novel-pdfx.sty.}
%% DISABLE HYPERLINKS AND BOOKMARKS
@@ -179,12 +191,9 @@
Reason: The grid and text are in layers. No layers allowed.^^J}%
\fi
}{}
-
-
-
-
%% End disable hyperlinks and bookmarks.
+\NDB{11.11 in novel-pdfx.sty.}
%% GENERAL PDF INTERNAL METADATA PREPARATION
@@ -196,6 +205,7 @@
%
%% End general PDF in internal metadata preparation.
+\NDB{11.12 in novel-pdfx.sty.}
%% PREPARATION OF XMP METADATA
@@ -220,6 +230,7 @@
\def\pad@cxxviii{\pad@lxiv\pad@lxiv}
\def\pad@cclvi{\pad@cxxviii\pad@cxxviii}
\def\pad@dxii{\pad@cclvi\pad@cclvi}
+\NDB{11.13 in novel-pdfx.sty.}
%
% Frankly, I am not sure if all this rigamarole is necessary, but it works!
% Here, portions of XMP code are prepared. Later, they will be inserted
@@ -243,11 +254,13 @@
\pad@vi</dc:creator>^^J
}
}
+\NDB{11.14 in novel-pdfx.sty.}
%
\def\@documentID{uuid:\xmp@docid}
\def\@instanceID{uuid:\xmp@instid}
%
\def\@pdfVersion{1.\the\pdfminorversion}
+\NDB{11.15 in novel-pdfx.sty.}
%
\ifpdfx@isOFF
\gdef\@verconfString{}%
@@ -259,6 +272,7 @@
\fi
}
\fi
+\NDB{11.16 in novel-pdfx.sty.}
%
\ifpdfx@isOFF
\gdef\@pdfidString{}%
@@ -267,6 +281,7 @@
\pad@vi<pdfxid:GTS_PDFXVersion>\@PDFXversion</pdfxid:GTS_PDFXVersion>^^J
}
\fi
+\NDB{11.17 in novel-pdfx.sty.}
%
\ifthenelse{\equal{\@novelApplication}{} \OR \equal{\@novelApplication}{ }}{
\gdef\@applicationString{}%
@@ -279,6 +294,7 @@
}{
\gdef\@producerString{\pad@vi<pdf:Producer>\@novelProducer</pdf:Producer>^^J}%
}
+\NDB{11.18 in novel-pdfx.sty.}
%
% Calculation of Dates and Times, which must be in a specific format.
% Each time you process to PDF, the current date/time is used,
@@ -328,6 +344,7 @@
%
%% End Prepare XMP metadata.
+\NDB{11.19 in novel-pdfx.sty.}
%% WRITE THE XMP METADATA, UNLESS PDF/X IS OFF OR NO TITLE
@@ -367,6 +384,7 @@
%
%% End write the XMP metadata.
+\NDB{11.20 in novel-pdfx.sty.}
%% PREPARE PDF /INFO METADATA
@@ -395,6 +413,7 @@
\endgroup
\fi
}
+\NDB{11.21 in novel-pdfx.sty.}
% Now, massage the metadata:
\@infotopdfstring{\@infotitle}{\@title}
\@infotopdfstring{\@infoauthor}{\@author}
@@ -409,6 +428,7 @@
%
%% End prepare PDF /Info.
+\NDB{11.22 in novel-pdfx.sty.}
%% WRITE THE OUTPUT INTENT, UNLESS PDFX IS OFF.
@@ -470,6 +490,7 @@
%
%% End write the output intent.
+\NDB{11.23 in novel-pdfx.sty.}
%% DISABLE HYPERREF OPTIONS
@@ -487,11 +508,12 @@
%
%% End disable hyperref options.
+\NDB{11.24 in novel-pdfx.sty.}
%% PREPARE PDF/Info
%% -----------------------------------------------------------------------------
-%% The \novel@PDFinfo command is called \AtBeginDocument.
+%% The \novel@PDFinfo command is used AtBeginDocument in novel.cls.
%
\gdef\@novelPDFinfo{ % rather than \PDF@FinishDoc
\if@gottitle
@@ -522,7 +544,7 @@
%
%% End prepare PDF/Info.
-
+\NDB{11.25 in novel-pdfx.sty.}
%%