Text Formattinghyperref | Lowercase for Metadata

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
heavytull
Posts: 16
Joined: Wed Feb 08, 2012 9:38 pm

hyperref | Lowercase for Metadata

Post by heavytull »

I'm using hyperref package in a class file. To define its options such as "pdftitle" I'm using variables, but I would like to assign them lowercase only. The command \MakeLowercase does not work in such circumstances and returns an error such as:

Code: Select all

! Undefined control sequence.
\MakeLowercase ...owercaseUnsupportedInPdfStrings
I guess I can use another variable somewhere else in the file assigned with \MakeLowercase{\originalvariable}, \originalvariable being the variable containing case unchanged information. But is there any simpler solution?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

heavytull
Posts: 16
Joined: Wed Feb 08, 2012 9:38 pm

hyperref | Lowercase for Metadata

Post by heavytull »

I defined a new variable (newvar) as \def\@newvar{\MakeLowercase{\@originalvariable}} and used \@newvar to options of hyperref with \hypersetup. The result is the same and occurs with the same message.
Post Reply