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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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