hyperref and beamer: Meta Data | 'pdftitle' not Working
- I want to generate a
beamer
presentation and I want some meta data in the PDF document. - I therefore use a basic template but the
pdftitle
tag is not recognized (not shown in the PDF properties, see the German "Titel" in the screenshot). - This seems simple enough - I am afraid, that I do not see the obvious.
documentclass{beamer}
usepackage{hyperref}
hypersetup{
pdftitle = {pdftitle}, % <-- Missing in PDF
pdfauthor = {pdfauthor},
pdfsubject = {pdfsubject},
pdfkeywords = {keyword1 keyword2},
}
begin{document}
begin{frame}
frametitle{Test}
Test
end{frame}
end{document}
beamer hyperref
add a comment |
- I want to generate a
beamer
presentation and I want some meta data in the PDF document. - I therefore use a basic template but the
pdftitle
tag is not recognized (not shown in the PDF properties, see the German "Titel" in the screenshot). - This seems simple enough - I am afraid, that I do not see the obvious.
documentclass{beamer}
usepackage{hyperref}
hypersetup{
pdftitle = {pdftitle}, % <-- Missing in PDF
pdfauthor = {pdfauthor},
pdfsubject = {pdfsubject},
pdfkeywords = {keyword1 keyword2},
}
begin{document}
begin{frame}
frametitle{Test}
Test
end{frame}
end{document}
beamer hyperref
2
Try thebeamer
optionusepdftitle=false
.
– moewe
22 hours ago
@moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.
– Dr. Manuel Kuehner
22 hours ago
1
You could also give atitle
:title{PDFtitle}
– moewe
22 hours ago
add a comment |
- I want to generate a
beamer
presentation and I want some meta data in the PDF document. - I therefore use a basic template but the
pdftitle
tag is not recognized (not shown in the PDF properties, see the German "Titel" in the screenshot). - This seems simple enough - I am afraid, that I do not see the obvious.
documentclass{beamer}
usepackage{hyperref}
hypersetup{
pdftitle = {pdftitle}, % <-- Missing in PDF
pdfauthor = {pdfauthor},
pdfsubject = {pdfsubject},
pdfkeywords = {keyword1 keyword2},
}
begin{document}
begin{frame}
frametitle{Test}
Test
end{frame}
end{document}
beamer hyperref
- I want to generate a
beamer
presentation and I want some meta data in the PDF document. - I therefore use a basic template but the
pdftitle
tag is not recognized (not shown in the PDF properties, see the German "Titel" in the screenshot). - This seems simple enough - I am afraid, that I do not see the obvious.
documentclass{beamer}
usepackage{hyperref}
hypersetup{
pdftitle = {pdftitle}, % <-- Missing in PDF
pdfauthor = {pdfauthor},
pdfsubject = {pdfsubject},
pdfkeywords = {keyword1 keyword2},
}
begin{document}
begin{frame}
frametitle{Test}
Test
end{frame}
end{document}
beamer hyperref
beamer hyperref
edited 22 hours ago
Dr. Manuel Kuehner
asked 22 hours ago
Dr. Manuel KuehnerDr. Manuel Kuehner
9,23432769
9,23432769
2
Try thebeamer
optionusepdftitle=false
.
– moewe
22 hours ago
@moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.
– Dr. Manuel Kuehner
22 hours ago
1
You could also give atitle
:title{PDFtitle}
– moewe
22 hours ago
add a comment |
2
Try thebeamer
optionusepdftitle=false
.
– moewe
22 hours ago
@moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.
– Dr. Manuel Kuehner
22 hours ago
1
You could also give atitle
:title{PDFtitle}
– moewe
22 hours ago
2
2
Try the
beamer
option usepdftitle=false
.– moewe
22 hours ago
Try the
beamer
option usepdftitle=false
.– moewe
22 hours ago
@moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.
– Dr. Manuel Kuehner
22 hours ago
@moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.
– Dr. Manuel Kuehner
22 hours ago
1
1
You could also give a
title
: title{PDFtitle}
– moewe
22 hours ago
You could also give a
title
: title{PDFtitle}
– moewe
22 hours ago
add a comment |
1 Answer
1
active
oldest
votes
By default beamer
tries to figure out the pdftitle
automatically from the title
command (similarly the pdfauthor
is set from the author
command). In the example there is no title
and author
.
The automatic is implemented in a way that pdftitle
is always overwritten with the information (or absence of information) from title
at begin{document}
. If title
has not been set at that point, the pdftitle
will be empty. In particular that means that title
needs to be set before begin{document}
to have any influence on the metadata. If it is issued later, the metadata does not change. The implementation for pdfauthor
is slightly different, it is overwritten at the point where author
is executed. In particular the pdfauthor
is not overwritten if there is no author
command.
Option 1 Provide title
and author
information before begin{document}
.
title{pdftitle}
author{pdfauthor}
% before begin{document}!
Option 2 Disable the automatic generation of PDF metadata from title
and author
by setting the class option
usepdftitle=false
and manage the metadata on your own.
Addition: If I placetitle{pdftitle}
afterbegin{document}
then the tag is not visible in the PDF properties anymore.
– Dr. Manuel Kuehner
21 hours ago
1
@Dr.ManuelKuehner Indeed, thepdftitle
is set in the commandbeamer@firstminutepatches
at or shortly beforebegin{document}
. If you issuetitle
afterbegin{document}
it is too late.pdfauthor
is different. It is really set at the moment you executeauthor
.
– moewe
21 hours ago
Thanks for the explanation. I guess that is the reason why I failed to solve this by myself. In my real document this is also the case and I did not notice the importance of that until now.
– Dr. Manuel Kuehner
21 hours ago
Could you add this to your answer or am I allowed to do so?
– Dr. Manuel Kuehner
21 hours ago
1
@Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.
– moewe
21 hours ago
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478361%2fhyperref-and-beamer-meta-data-pdftitle-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
By default beamer
tries to figure out the pdftitle
automatically from the title
command (similarly the pdfauthor
is set from the author
command). In the example there is no title
and author
.
The automatic is implemented in a way that pdftitle
is always overwritten with the information (or absence of information) from title
at begin{document}
. If title
has not been set at that point, the pdftitle
will be empty. In particular that means that title
needs to be set before begin{document}
to have any influence on the metadata. If it is issued later, the metadata does not change. The implementation for pdfauthor
is slightly different, it is overwritten at the point where author
is executed. In particular the pdfauthor
is not overwritten if there is no author
command.
Option 1 Provide title
and author
information before begin{document}
.
title{pdftitle}
author{pdfauthor}
% before begin{document}!
Option 2 Disable the automatic generation of PDF metadata from title
and author
by setting the class option
usepdftitle=false
and manage the metadata on your own.
Addition: If I placetitle{pdftitle}
afterbegin{document}
then the tag is not visible in the PDF properties anymore.
– Dr. Manuel Kuehner
21 hours ago
1
@Dr.ManuelKuehner Indeed, thepdftitle
is set in the commandbeamer@firstminutepatches
at or shortly beforebegin{document}
. If you issuetitle
afterbegin{document}
it is too late.pdfauthor
is different. It is really set at the moment you executeauthor
.
– moewe
21 hours ago
Thanks for the explanation. I guess that is the reason why I failed to solve this by myself. In my real document this is also the case and I did not notice the importance of that until now.
– Dr. Manuel Kuehner
21 hours ago
Could you add this to your answer or am I allowed to do so?
– Dr. Manuel Kuehner
21 hours ago
1
@Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.
– moewe
21 hours ago
add a comment |
By default beamer
tries to figure out the pdftitle
automatically from the title
command (similarly the pdfauthor
is set from the author
command). In the example there is no title
and author
.
The automatic is implemented in a way that pdftitle
is always overwritten with the information (or absence of information) from title
at begin{document}
. If title
has not been set at that point, the pdftitle
will be empty. In particular that means that title
needs to be set before begin{document}
to have any influence on the metadata. If it is issued later, the metadata does not change. The implementation for pdfauthor
is slightly different, it is overwritten at the point where author
is executed. In particular the pdfauthor
is not overwritten if there is no author
command.
Option 1 Provide title
and author
information before begin{document}
.
title{pdftitle}
author{pdfauthor}
% before begin{document}!
Option 2 Disable the automatic generation of PDF metadata from title
and author
by setting the class option
usepdftitle=false
and manage the metadata on your own.
Addition: If I placetitle{pdftitle}
afterbegin{document}
then the tag is not visible in the PDF properties anymore.
– Dr. Manuel Kuehner
21 hours ago
1
@Dr.ManuelKuehner Indeed, thepdftitle
is set in the commandbeamer@firstminutepatches
at or shortly beforebegin{document}
. If you issuetitle
afterbegin{document}
it is too late.pdfauthor
is different. It is really set at the moment you executeauthor
.
– moewe
21 hours ago
Thanks for the explanation. I guess that is the reason why I failed to solve this by myself. In my real document this is also the case and I did not notice the importance of that until now.
– Dr. Manuel Kuehner
21 hours ago
Could you add this to your answer or am I allowed to do so?
– Dr. Manuel Kuehner
21 hours ago
1
@Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.
– moewe
21 hours ago
add a comment |
By default beamer
tries to figure out the pdftitle
automatically from the title
command (similarly the pdfauthor
is set from the author
command). In the example there is no title
and author
.
The automatic is implemented in a way that pdftitle
is always overwritten with the information (or absence of information) from title
at begin{document}
. If title
has not been set at that point, the pdftitle
will be empty. In particular that means that title
needs to be set before begin{document}
to have any influence on the metadata. If it is issued later, the metadata does not change. The implementation for pdfauthor
is slightly different, it is overwritten at the point where author
is executed. In particular the pdfauthor
is not overwritten if there is no author
command.
Option 1 Provide title
and author
information before begin{document}
.
title{pdftitle}
author{pdfauthor}
% before begin{document}!
Option 2 Disable the automatic generation of PDF metadata from title
and author
by setting the class option
usepdftitle=false
and manage the metadata on your own.
By default beamer
tries to figure out the pdftitle
automatically from the title
command (similarly the pdfauthor
is set from the author
command). In the example there is no title
and author
.
The automatic is implemented in a way that pdftitle
is always overwritten with the information (or absence of information) from title
at begin{document}
. If title
has not been set at that point, the pdftitle
will be empty. In particular that means that title
needs to be set before begin{document}
to have any influence on the metadata. If it is issued later, the metadata does not change. The implementation for pdfauthor
is slightly different, it is overwritten at the point where author
is executed. In particular the pdfauthor
is not overwritten if there is no author
command.
Option 1 Provide title
and author
information before begin{document}
.
title{pdftitle}
author{pdfauthor}
% before begin{document}!
Option 2 Disable the automatic generation of PDF metadata from title
and author
by setting the class option
usepdftitle=false
and manage the metadata on your own.
edited 21 hours ago
answered 22 hours ago
moewemoewe
93.1k10115351
93.1k10115351
Addition: If I placetitle{pdftitle}
afterbegin{document}
then the tag is not visible in the PDF properties anymore.
– Dr. Manuel Kuehner
21 hours ago
1
@Dr.ManuelKuehner Indeed, thepdftitle
is set in the commandbeamer@firstminutepatches
at or shortly beforebegin{document}
. If you issuetitle
afterbegin{document}
it is too late.pdfauthor
is different. It is really set at the moment you executeauthor
.
– moewe
21 hours ago
Thanks for the explanation. I guess that is the reason why I failed to solve this by myself. In my real document this is also the case and I did not notice the importance of that until now.
– Dr. Manuel Kuehner
21 hours ago
Could you add this to your answer or am I allowed to do so?
– Dr. Manuel Kuehner
21 hours ago
1
@Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.
– moewe
21 hours ago
add a comment |
Addition: If I placetitle{pdftitle}
afterbegin{document}
then the tag is not visible in the PDF properties anymore.
– Dr. Manuel Kuehner
21 hours ago
1
@Dr.ManuelKuehner Indeed, thepdftitle
is set in the commandbeamer@firstminutepatches
at or shortly beforebegin{document}
. If you issuetitle
afterbegin{document}
it is too late.pdfauthor
is different. It is really set at the moment you executeauthor
.
– moewe
21 hours ago
Thanks for the explanation. I guess that is the reason why I failed to solve this by myself. In my real document this is also the case and I did not notice the importance of that until now.
– Dr. Manuel Kuehner
21 hours ago
Could you add this to your answer or am I allowed to do so?
– Dr. Manuel Kuehner
21 hours ago
1
@Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.
– moewe
21 hours ago
Addition: If I place
title{pdftitle}
after begin{document}
then the tag is not visible in the PDF properties anymore.– Dr. Manuel Kuehner
21 hours ago
Addition: If I place
title{pdftitle}
after begin{document}
then the tag is not visible in the PDF properties anymore.– Dr. Manuel Kuehner
21 hours ago
1
1
@Dr.ManuelKuehner Indeed, the
pdftitle
is set in the command beamer@firstminutepatches
at or shortly before begin{document}
. If you issue title
after begin{document}
it is too late. pdfauthor
is different. It is really set at the moment you execute author
.– moewe
21 hours ago
@Dr.ManuelKuehner Indeed, the
pdftitle
is set in the command beamer@firstminutepatches
at or shortly before begin{document}
. If you issue title
after begin{document}
it is too late. pdfauthor
is different. It is really set at the moment you execute author
.– moewe
21 hours ago
Thanks for the explanation. I guess that is the reason why I failed to solve this by myself. In my real document this is also the case and I did not notice the importance of that until now.
– Dr. Manuel Kuehner
21 hours ago
Thanks for the explanation. I guess that is the reason why I failed to solve this by myself. In my real document this is also the case and I did not notice the importance of that until now.
– Dr. Manuel Kuehner
21 hours ago
Could you add this to your answer or am I allowed to do so?
– Dr. Manuel Kuehner
21 hours ago
Could you add this to your answer or am I allowed to do so?
– Dr. Manuel Kuehner
21 hours ago
1
1
@Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.
– moewe
21 hours ago
@Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.
– moewe
21 hours ago
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478361%2fhyperref-and-beamer-meta-data-pdftitle-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
2
Try the
beamer
optionusepdftitle=false
.– moewe
22 hours ago
@moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.
– Dr. Manuel Kuehner
22 hours ago
1
You could also give a
title
:title{PDFtitle}
– moewe
22 hours ago