hyperref and beamer: Meta Data | 'pdftitle' not Working












4
















  • 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}


enter image description here










share|improve this question




















  • 2





    Try the beamer option usepdftitle=false.

    – moewe
    Mar 8 at 8:09













  • @moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.

    – Dr. Manuel Kuehner
    Mar 8 at 8:11








  • 1





    You could also give a title: title{PDFtitle}

    – moewe
    Mar 8 at 8:11
















4
















  • 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}


enter image description here










share|improve this question




















  • 2





    Try the beamer option usepdftitle=false.

    – moewe
    Mar 8 at 8:09













  • @moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.

    – Dr. Manuel Kuehner
    Mar 8 at 8:11








  • 1





    You could also give a title: title{PDFtitle}

    – moewe
    Mar 8 at 8:11














4












4








4









  • 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}


enter image description here










share|improve this question

















  • 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}


enter image description here







beamer hyperref






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 8:14







Dr. Manuel Kuehner

















asked Mar 8 at 8:05









Dr. Manuel KuehnerDr. Manuel Kuehner

9,27432770




9,27432770








  • 2





    Try the beamer option usepdftitle=false.

    – moewe
    Mar 8 at 8:09













  • @moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.

    – Dr. Manuel Kuehner
    Mar 8 at 8:11








  • 1





    You could also give a title: title{PDFtitle}

    – moewe
    Mar 8 at 8:11














  • 2





    Try the beamer option usepdftitle=false.

    – moewe
    Mar 8 at 8:09













  • @moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.

    – Dr. Manuel Kuehner
    Mar 8 at 8:11








  • 1





    You could also give a title: title{PDFtitle}

    – moewe
    Mar 8 at 8:11








2




2





Try the beamer option usepdftitle=false.

– moewe
Mar 8 at 8:09







Try the beamer option usepdftitle=false.

– moewe
Mar 8 at 8:09















@moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.

– Dr. Manuel Kuehner
Mar 8 at 8:11







@moewe Awesome. Provide an answer (just the comment) and I accept. My Google-Fu was not good this time :(.

– Dr. Manuel Kuehner
Mar 8 at 8:11






1




1





You could also give a title: title{PDFtitle}

– moewe
Mar 8 at 8:11





You could also give a title: title{PDFtitle}

– moewe
Mar 8 at 8:11










1 Answer
1






active

oldest

votes


















7














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.






share|improve this answer


























  • Addition: If I place title{pdftitle} after begin{document} then the tag is not visible in the PDF properties anymore.

    – Dr. Manuel Kuehner
    Mar 8 at 8:41






  • 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
    Mar 8 at 8:44













  • 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
    Mar 8 at 8:48











  • Could you add this to your answer or am I allowed to do so?

    – Dr. Manuel Kuehner
    Mar 8 at 8:57






  • 1





    @Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.

    – moewe
    Mar 8 at 9:04












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
});


}
});














draft saved

draft discarded


















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









7














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.






share|improve this answer


























  • Addition: If I place title{pdftitle} after begin{document} then the tag is not visible in the PDF properties anymore.

    – Dr. Manuel Kuehner
    Mar 8 at 8:41






  • 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
    Mar 8 at 8:44













  • 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
    Mar 8 at 8:48











  • Could you add this to your answer or am I allowed to do so?

    – Dr. Manuel Kuehner
    Mar 8 at 8:57






  • 1





    @Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.

    – moewe
    Mar 8 at 9:04
















7














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.






share|improve this answer


























  • Addition: If I place title{pdftitle} after begin{document} then the tag is not visible in the PDF properties anymore.

    – Dr. Manuel Kuehner
    Mar 8 at 8:41






  • 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
    Mar 8 at 8:44













  • 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
    Mar 8 at 8:48











  • Could you add this to your answer or am I allowed to do so?

    – Dr. Manuel Kuehner
    Mar 8 at 8:57






  • 1





    @Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.

    – moewe
    Mar 8 at 9:04














7












7








7







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.






share|improve this answer















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.







share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 8 at 9:13

























answered Mar 8 at 8:14









moewemoewe

96.7k10118362




96.7k10118362













  • Addition: If I place title{pdftitle} after begin{document} then the tag is not visible in the PDF properties anymore.

    – Dr. Manuel Kuehner
    Mar 8 at 8:41






  • 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
    Mar 8 at 8:44













  • 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
    Mar 8 at 8:48











  • Could you add this to your answer or am I allowed to do so?

    – Dr. Manuel Kuehner
    Mar 8 at 8:57






  • 1





    @Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.

    – moewe
    Mar 8 at 9:04



















  • Addition: If I place title{pdftitle} after begin{document} then the tag is not visible in the PDF properties anymore.

    – Dr. Manuel Kuehner
    Mar 8 at 8:41






  • 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
    Mar 8 at 8:44













  • 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
    Mar 8 at 8:48











  • Could you add this to your answer or am I allowed to do so?

    – Dr. Manuel Kuehner
    Mar 8 at 8:57






  • 1





    @Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.

    – moewe
    Mar 8 at 9:04

















Addition: If I place title{pdftitle} after begin{document} then the tag is not visible in the PDF properties anymore.

– Dr. Manuel Kuehner
Mar 8 at 8:41





Addition: If I place title{pdftitle} after begin{document} then the tag is not visible in the PDF properties anymore.

– Dr. Manuel Kuehner
Mar 8 at 8:41




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
Mar 8 at 8:44







@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
Mar 8 at 8:44















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
Mar 8 at 8:48





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
Mar 8 at 8:48













Could you add this to your answer or am I allowed to do so?

– Dr. Manuel Kuehner
Mar 8 at 8:57





Could you add this to your answer or am I allowed to do so?

– Dr. Manuel Kuehner
Mar 8 at 8:57




1




1





@Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.

– moewe
Mar 8 at 9:04





@Dr.ManuelKuehner I edited the answer, if something is still unclear, feel free to edit it yourself.

– moewe
Mar 8 at 9:04


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Probability when a professor distributes a quiz and homework assignment to a class of n students.

Aardman Animations

Are they similar matrix