150

Use the hyperref package, included in pretty much every latex distribution these days. \usepackage[pdftex, pdfauthor={Your Name}, pdftitle={The Title}, pdfsubject={The Subject}, pdfkeywords={Some Keywords}, pdfproducer={Latex with hyperref, or other system}, pdfcreator={pdflatex, or ...


42

Use the \pdfinfo macro, where the contents are given in PDF notation: \pdfinfo{ /Author (Nicola Talbot) /Title (Creating a PDF document using PDFLaTeX) /CreationDate (D:20040502195600) /Subject (PDFLaTeX) /Keywords (PDF;LaTeX) } (Source: http://theoval.cmp.uea.ac.uk/~nlct/latex/pdfdoc/pdfdoc/pdfdoc.html)


33

As others have already answered, I like to use hyperref. However, as my documents often have \author and \title commands I do not want to repeat myself in the package parameters. Luckily, hyperref also has a parameter for that. If you want it to read the information from your \author and similar tags, simply include it like this: \usepackage[pdfusetitle]{...


25

As egreg notes, rights information is not part of the document information directory. But it can be included in the document's extensible metadata profile. Here are two solutions that work with Adobe Acrobat and pdflatex. I don't know if you will see the metadata in the same place as you do with Acrobat; PDF XChange Viewer is a Windows app and I have a ...


24

Package hyperref hyperref encodes correctly, but the options should be set after hyperref is loaded. Otherwise LaTeX expands the options the hard way and hyperref will only see the expanded garbage. \usepackage{hyperref} \hypersetup{ pdfauthor={Erwin Schrödinger}, } Extended example: \documentclass{article} \usepackage[utf8]{inputenc}% utf8, for ...


23

PDF information entries Additional entries can be set by hyperref, e.g.: \hypersetup{ pdfinfo={ User={John Doe}, % ... }, } Some PDF viewers are not able to show non-standard entries, but others do (AFAIK newer AR/Win versions). Adding data to the PDF data structures A key value pair can be put into a dictionary, e.g.: \pdfcatalog{/User (...


19

This is caused by the hyperref package. It's not needed in your example, so you could just delete it. However, if your whole document does need hyperref, you can use \hypersetup to include the information. \documentclass[twocolumn]{article} \usepackage[colorlinks,linkcolor=black,anchorcolor=black,citecolor=black]{hyperref} \title{Zombie Paranoia in the ...


17

To download the most current version of this system, run git clone https://github.com/vermiculus/imdb-tex.git && make install && make demo It's a lot of fun to see how versatile LaTeX is in this respect; I can imagine a version of this script that incorporates the movie poster as well. A complete, compilable example is below; it will ...


16

It is a bug in package pdfx. PDF/A uses PDF version 1.4. The default for pdfTeX is 1.5 nowadays that allows object stream compression that is not available in 1.4. Package pdfx sets version 1.4, but forgets about \pdfobjcompresslevel. Then pdfTeX complains, if the first object is written to the PDF file. Workaround and solution by using package pdf14 right ...


15

Use \hypersetup to set up strings: \documentclass[12pt,a4paper]{mwrep} \usepackage{polski} \usepackage[utf8]{inputenc} \usepackage[hidelinks,unicode]{hyperref} \hypersetup{pdftitle=Some title żźćąęśćół} \begin{document} Text \end{document} This is recommended at the hyperref manual.


15

Package hyperref Package hyperref supports the setting of arbitrary keys in the PDF information dictionary (see manual): \documentclass{article} \usepackage{hyperref} \hypersetup{ pdfinfo={ RecordOffice={my office}, AccessionNumber={42}, } } \begin{document} Hello World. \end{document} However, these keys are not standardized, thus most ...


15

pdfTeX, LuaTeX \pdflastximageages, see the answer of Symbol 1. Remarks: \pdfximage cannot be used in DVI mode. LuaTeX The number of pages can also be retrieved via the epdf Lua library: \documentclass{article} \newcommand*{\pdfnumberofpages}[1]{% \directlua{% local doc = epdf.open("\luatexluaescapestring{#1}") local pages if (doc) then ...


15

Academicons has TeX package at https://ctan.org/pkg/academicons which is supported by ORCiD. You may also download SVG or PNG icons from ORCiD website, https://orcid.org/trademark-and-id-display-guidelines Example: Add following in Document SetUp section of tex file. Second line will define ORCiD recommended color for icon. \usepackage{academicons} \...


15

\documentclass{article} \usepackage[pdftitle=Title,pdfauthor=Me,pdfdisplaydoctitle]{hyperref} \begin{document} The title is shown. \end{document}


14

There are at least two ways of doing this. Option 1: During production of the LaTeX document and using the hyperref package. In the manual it mentions you can set the following document property information: Title field (via pdftitle) Author field (via pdfauthor) Subject field (via pdfsubject) Creator field (via pdfcreator) Producer field (via pdfproducer) ...


14

There are really two questions here: how to define the interface and how to implement it. I'll only tackle the former, because the implementation would require several hours' work. First you have to decide whether using non standard commands, say \Title and \Author instead of \title and \author. There are many classes around and different realizations. For ...


14

LuaTeX is ideal for such tasks. LuaTeX has a socket library, that can be used to fetch data from urls. In ConTeXt, almost all file related commands (\readfile, \typefile, \externalimage, etc) can fetch data from URLs as well. However, for getting IMDB ratings, it is easier to use an API rather than parse data from the HTML page. One unofficial API from IMDB ...


13

Indeed \pdfinfo does not work in combination with hyperref Try the following \hypersetup{pdfauthor={Author},% pdftitle={Your Title},% pdfsubject={Whatever},% pdfkeywords={one, two},% pdfproducer={LaTeX},% pdfcreator={pdfLaTeX} }


13

This is a working but basic answer; it's somewhat involved. Also, I am not a programmer by any definition, nor an Os X expert. Surely there are better ways to achieve the same effect. At the end of the answer, there's a link where you can download a copy of the app described in the post. Background In Os X, any directory with an extension can be a "...


13

After \tracingmacros1 with option pages=last-1, it seems like pdfpages uses a feature of pdf(la)tex to get the number. \documentclass{minimal} \begin{document} \pdfximage{test-29.pdf} \the\pdflastximagepages\ pages \end{document}


12

From my reading of OP's question, it sounds like he's asking, if Latex as an overall collection of software/ utilities were made by one person or group, why would they choose to put PDF titling in hyperref, a package seemingly with the more concise goal of providing hyper referencing? So, the best answer might be to point out that Latex is a collections of ...


12

You can change the Creator and Producer fields with hyperref: \documentclass{article} \usepackage{hyperref} \hypersetup{ pdfcreator={Hello}, pdfproducer={World} } \begin{document} Hello World \end{document} The third field is more interesting and requires more investigation. It certainly can be seen inside the PDF file, but Evince and pdfinfo ...


12

According to the documentation of hyperref, \hypersetup{ pdfinfo={ Author={Tizio Sempronio}, Title={Creating a PDF document using PDFLaTeX}, CreationDate={D:20040502195600}, ModDate={...}, Keywords={PDF;LaTeX}, } } should work.


12

You can use the visualization depends on=<expr>\as<macro> key for to make another variable available. If you set visualization depends on=\thisrow{w2}\as\wtwo, the content of the w2 column will be available as a macro called \wtwo: \begin{filecontents*}{temp.dat} x y w1 w2 1 1 2 4 2 2 1 3 3 3 4 2 4 4 3 1 \end{filecontents*} \documentclass[10pt,...


12

pdfTeX The TeX compiler pdfTeX already sets some keys as default: /Producer (pdfTeX-1.40.15) /Creator (TeX) /CreationDate (D:20140506215840+02'00') /ModDate (D:20140506215840+02'00') /Trapped /False /PTEX.Fullbanner (This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) kpathsea version 6.2.0) Some of these entries can be overwritten via \pdfinfo ...


12

The macros I propose just show the information for the document class and the packages, so only those with extension .cls or .sty, discarding the other files. \documentclass{article} \usepackage{xparse,l3regex,longtable,array} \listfiles % initialize \AtEndDocument{\printfilelist} \ExplSyntaxOn \NewDocumentCommand{\printfilelist}{} { \cleardoublepage ...


12

Quick and dirty expl3 implementation: First you load the CSV file with \LoadCSV{<label>}{<file>}. This command will open the file and load the contents of the CSV into <label>. The contents of the file are read verbatim (all catcodes are other (12), except for spaces (10)). Then you get a field with \GetCSV{<label>}{<line>}{&...


11

The main reference should be the "PDF Reference book", fourth edition, that on page 714 lists the known entry types for the document information dictionary: Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate, Trapped On page 713 it says Note: Although viewer applications can store custom metadata in the document information ...


11

The documentation of pdfx is pretty clear on how metadata should be inserted, see Section 2.1: As mentioned above, standards compliant PDF documents need XMP metadata to be included. In order to create XMP in the prescribed XML format, a simple data file holding the meta information of the document needs to be created either through a program or by hand. ...


Only top voted, non community-wiki answers of a minimum length are eligible