TransWikia.com

Why the horizontal spacing is removed in a subsection when using special characters?

TeX - LaTeX Asked by guillermo edgardo on March 31, 2021

I’m trying to add a special symbol to a subsection of the document, but it appears from what read online "PDF standard doesn’t support special symbols in bookmarks". I found the answer and someone suggested to use texorpdfstring{}. It worked, but I also wanted the symbol to be displayed in the bold letter so used the bm{} package. It works but when I compile it removes space from the next characters as shown in the image below. Any help would be appreciated.

Code

section{Case 1 texorpdfstring{bm{$alpha}$} is kept constant}

enter image description here

One Answer

Your problem is the commande texorpdfstring take two arguments, So you should be add the {} at the last of the command to make you sure that the rest of the command not combined with the text in the section, like the suggestion below.

section{Case 1 texorpdfstring{bm{$alpha$}}{} is kept constant}

Result :

enter image description here

Good luck

Correct answer by BOSKRI Abdelkarim on March 31, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP