From 75d9e24f2bcef43300c5f86f0a4c6cf5a0739edd Mon Sep 17 00:00:00 2001 From: witiko <witiko@gmail.com> Date: Tue, 13 Jan 2015 21:06:27 +0100 Subject: [PATCH] Pdf metadata stamping added for \thesistitle and \thesisstudent. --- example.pdf | Bin 60952 -> 60973 bytes fit10.clo | 2 +- fit11.clo | 2 +- fit12.clo | 2 +- fithesis.cls | 14 ++++++++++---- fithesis.pdf | Bin 144262 -> 144262 bytes fithesis.raw.dtx | 15 +++++++++++---- 7 files changed, 24 insertions(+), 11 deletions(-) diff --git a/example.pdf b/example.pdf index aacaaa6b950671703e3909b6f6345650a60aba0f..4477ab5ea76d295c3832db7ae153e690063e9465 100644 GIT binary patch delta 420 zcmbPnhk5NC<_-HF$a*E_r7F1Or)uhlWR~QlY6K_d7UZNVlw_n9XBJOB{y>@0X!7d^ z0j!1wCMFh>9UjU-Seug{@^U-7xfvN4yO~+IS-7}5xtSX|J6al;nYp<dS(v!Enix3R zDcBHFGI{eGi~0+v&6oltj(*(itu)=kRmEwiD5v6duRO)_N1;7u_q1{LKai|wpSH1c z=hh$fymhbV>^+}4w{%W%eUany!noz@8+t$QXnNo%H~qsRUhxkLWuJdo%sls#?aiNd zmGQZ6Tm?*J9!fBlER?qWq@Eiu@s}$!SMCr)n?RsNcC1Kqhw`#|k3+i>dlF<8cWt{j z|A2&=NUqgUxw((z{XFNd^-bc^JfpBO<nS+(WfKpsxuk#X>_e9B6I!41?lMiA7`*PQ zySGMyYirlj(3}L{qkEo~<}6&X>Ha4*uNz@suYcn6+t|G+%l=wuL5J42kpElq;?J-B u%@=T7a$R9_^qqx`)ix`BKKsHxx9tD+B&A!EKfIOaG&SK;Rdw}u;{pI~4z-5> delta 423 zcmZ2`hk3>w<_-HFaA@j>WR~QlYD~WKK$+2S(!&4^10!QYGi?Jybpr!+O)h=k{1lhO zl2io^7b_zJLsJ7oLt`VblFbzldAXfkO)Q)Y44mDJ%uU?PES<~@j4d54%`FYhTrCY; z%q-3A6l@47nSA1nMg6(cW=sJRM?Y@%R+>Jg>xAl*=!pVF+B;kCbcP$6eU?(QX-a<} zYh-R{uvzT?`h)qk>F<jpk6V6M7cY@}Ui$0LM$2w*4!I|VjQUXpeDYC+Z1%S<=-pp@ z_x;50N7KxkRy-1L=UBiz_r)ap%;!oRnlT$oCHB5>51F{8)bNX9<Bmo3hp+J_2rQNe zTJ!UNVo!q4#<t);2Q@#woATx6Jqxu7heRfMU0v&+EF|fp{Ws?>PoH7`8l(JcXA=c2 zpE6Ao4>&N1EA{m0h{Ii7m8VzVa0pc0|FkqGIe2RP>1d0Cd|s>SqQj3dYTXEZdw7?v xt?B*S?!3!)95T%-=(c)Su>RQU%i-)N{xXLJDzBf+`c9tH*qBRI)z#mP3jqEKt7-rM diff --git a/fit10.clo b/fit10.clo index 30b9eb5..495f41b 100644 --- a/fit10.clo +++ b/fit10.clo @@ -49,7 +49,7 @@ %% %% The names of the source files used are shown above. %% -\ProvidesFile{fit10.clo}[2015/01/09 fithesis3 (size option)] +\ProvidesFile{fit10.clo}[2015/01/13 fithesis3 (size option)] \renewcommand{\normalsize}{\fontsize\@xpt{12}\selectfont% \abovedisplayskip 10\p@ plus2\p@ minus5\p@ diff --git a/fit11.clo b/fit11.clo index b63244f..b3f3d5f 100644 --- a/fit11.clo +++ b/fit11.clo @@ -49,7 +49,7 @@ %% %% The names of the source files used are shown above. %% -\ProvidesFile{fit11.clo}[2015/01/09 fithesis3 (size option)] +\ProvidesFile{fit11.clo}[2015/01/13 fithesis3 (size option)] \renewcommand{\normalsize}{\fontsize\@xipt{14}\selectfont% \abovedisplayskip 11\p@ plus3\p@ minus6\p@ diff --git a/fit12.clo b/fit12.clo index a19eaed..f943c71 100644 --- a/fit12.clo +++ b/fit12.clo @@ -49,7 +49,7 @@ %% %% The names of the source files used are shown above. %% -\ProvidesFile{fit12.clo}[2015/01/09 fithesis3 (size option)] +\ProvidesFile{fit12.clo}[2015/01/13 fithesis3 (size option)] \renewcommand{\normalsize}{\fontsize\@xiipt{14.5}\selectfont% \abovedisplayskip 12\p@ plus3\p@ minus7\p@ diff --git a/fithesis.cls b/fithesis.cls index 62eacd6..12bbbf3 100644 --- a/fithesis.cls +++ b/fithesis.cls @@ -50,7 +50,7 @@ %% The names of the source files used are shown above. %% \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{fithesis}[2015/01/09 fithesis3 version 0.3.1 MU thesis class] +\ProvidesClass{fithesis}[2015/01/13 fithesis3 version 0.3.2 MU thesis class] \ifx\clsclass\undefined \def\clsclass{rapport3} @@ -81,7 +81,7 @@ \hypersetup{pdfpagelabels} % Generate pdf page labels \hypersetup{pdftex} % PDF Metadata stamping \hypersetup{ - pdfcreator={fithesis3 v0.3.1 MU thesis class} + pdfcreator={fithesis3 v0.3.2 MU thesis class}, } \def\Scrreprtcls{scrreprt} @@ -174,8 +174,14 @@ \def\@thesislogopath{loga} % The loga directory by default \def\titlefont{\fontsize\@xxvpt{30}\selectfont} -\def\thesistitle#1{\gdef\@thesistitle{#1}} -\def\thesisstudent#1{\gdef\@thesisstudent{#1}} +\def\thesistitle#1{ + \hypersetup{pdftitle={#1}} + \gdef\@thesistitle{#1} +} +\def\thesisstudent#1{ + \hypersetup{pdfauthor={#1}} + \gdef\@thesisstudent{#1} +} \def\thesisyear#1{\gdef\@thesisyear{#1}} \def\thesisplaceyear{Brno, \@thesisyear} \def\thesissubtitle#1{\gdef\@thesissubtitle{#1}} diff --git a/fithesis.pdf b/fithesis.pdf index c6de1149018b9378fa0a4ef12d781341c59368c7..f5da3de46296e88e94e0cb0e9905cdce30f6d87f 100644 GIT binary patch delta 110 zcmZpB&e8UqqoIXy3)68?Rzm|56Z7e3M499u%<b<*nOMc0%`8nU%-r0Z42;dq4Ncq} gEu3AAT+JLU+#H=PU5uTa?G$VXDcNqW%jC}n0GxpwP5=M^ delta 110 zcmZpB&e8UqqoIXy3)68?Rs$nrL!;?uM499u%<b<*nOMc04P2d!&7CaV3=Iv9&0XD$ g4BcEDEiFwQP0byhoLwv}>=bMWDcNqW%jC}n0FfFT2mk;8 diff --git a/fithesis.raw.dtx b/fithesis.raw.dtx index 051a4e6..383f607 100644 --- a/fithesis.raw.dtx +++ b/fithesis.raw.dtx @@ -19,10 +19,11 @@ % and the derived files fithesis.cls, fit10.clo, fit11.clo, fit12.clo. % % History: +% 2015/01/13 v0.3.2 pdf metadata stamping added for \thesistitle and \thesisstudent [VN] % 2015/01/09 v0.3.1 documentation now uses babel and cmap packages [VN] % the entire file was transcoded into utf8 [VN] % \thesiscolor was replaced by color class option [VN] -% added metadata stamping support [VN] +% added pdf metadata stamping support [VN] % 2015/01/01 v0.3.0 fi logo is no longer special-cased (added eps and pdf) [VN] % \thesislogopath added to set the logo directory path [VN] % \thesiscolor added to enable colorful typo elements [VN] @@ -207,7 +208,7 @@ \hypersetup{pdfpagelabels} % Generate pdf page labels \hypersetup{pdftex} % PDF Metadata stamping \hypersetup{ - pdfcreator={fithesis3 v%%%version%%% MU thesis class} + pdfcreator={fithesis3 v%%%version%%% MU thesis class}, } \def\Scrreprtcls{scrreprt} @@ -300,8 +301,14 @@ \def\@thesislogopath{loga} % The loga directory by default \def\titlefont{\fontsize\@xxvpt{30}\selectfont} -\def\thesistitle#1{\gdef\@thesistitle{#1}} -\def\thesisstudent#1{\gdef\@thesisstudent{#1}} +\def\thesistitle#1{ + \hypersetup{pdftitle={#1}} + \gdef\@thesistitle{#1} +} +\def\thesisstudent#1{ + \hypersetup{pdfauthor={#1}} + \gdef\@thesisstudent{#1} +} \def\thesisyear#1{\gdef\@thesisyear{#1}} \def\thesisplaceyear{Brno, \@thesisyear} \def\thesissubtitle#1{\gdef\@thesissubtitle{#1}} -- GitLab