Changes

Jump to navigation Jump to search
218 bytes added ,  19:38, 21 November 2021
LMTX automatic prerrolling
\stoptext
</texcode>
 
It’s important to note that ConTeXt LMTX expands macros in bookmarks and document metadata fields.
== Explanation ==
This will open the document with the bookmarks for chapters and sections visible (read as: and open up the chapter bookmarks)
If your titles contain TeX commands or braces, you can choose to expand macros in bookmarks(not required in LMTX):
<texcode>
</texcode>
If you want the same document metadata(again, not required in LMTX), you can expand macros here, too:
<texcode>
== Prevent certain characters from appearing in pdf headers ==
To ignore certain TeX commands in {{cmd|setupinteraction}} add them to {{cmd|simplifiedcommands}}. For example, to ignore {{cmd|quad}} in <code>pdfauthor</code>, use the following(again, this is default in LMTX):
<texcode>
function document.transfer_metadata(name)
local main_doc = lpdf.epdf.load(name)
lpdf.addtocatalog("Lang", lpdf.unicode(main_doc.Catalog.Lang), lpdf.string(main_doc.Catalog.Lang)) lpdf.addtoinfo("Title", lpdfcontext.unicode(setupinteraction{ title = main_doc.Info.Title))} lpdf.addtoinfo("Subject", lpdfcontext.unicode(setupinteraction{ subtitle = main_doc.Info.Subject))} lpdf.addtoinfo("Author", lpdfcontext.unicode(setupinteraction{ author = main_doc.Info.Author))}
lpdf.epdf.unload(name)
end
139

edits

Navigation menu