Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

My chapter title is "{some special symbol} some text" and that special symbol does not show up properly in the sidebar clickable menu (in the compiled pdf file) as well as in the page header. I was wondering if it is possible to remove that symbol from the side and the header while keeping it in the ToC and in the chapter title?

Sample pdf: http://www.scribd.com/doc/118926256/sample-pdf

Problem: the customized progress bar shows up in the sidebar as text, the EightFlowerPetalRemoved symbol shows up in the page header as letter Y. Both progress bar and the special symbol show up properly in TOC and the chapter page.

Code:

\documentclass{memoir}  

\usepackage{type1cm}  
\usepackage[unicode]{hyperref} % clickable TOC
\usepackage{ifthen}            % ifthen command
\usepackage{hieroglf}
\usepackage{colortbl}
\usepackage{pifont}
\usepackage{tikz}
\usepackage{progressbar}
\usepackage{bbding}
\usepackage{MnSymbol}
\usepackage{rotating}
\usepackage{newcent}
\usepackage{color,calc}

\newcommand{\threeS}{\progressbar[subdivisions=5, linecolor=blue, tickscolor=blue, filledcolor=gray, emptycolor=white, heightr=0.7, width=1.2em, rou=0.3]{0.6}}

\begin{document}

\tableofcontents*

\chapter{\threeS \EightFlowerPetalRemoved chapter title}

insert a long text here so it spans to the next page....

\end{document}
share|improve this question
    
Wellcome to tex.se!!! Can you please give some more information about that special symbol you are trying to include in your document? It would also be very convinient if you coul a sample of your code! –  Thanos Jan 4 '13 at 8:37
    
Welcome to TeX.sx! Please add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. –  Vivi Jan 4 '13 at 9:10
    
I've added the sample pdf and the latex code. –  TMV Jan 4 '13 at 9:16

1 Answer 1

up vote 3 down vote accepted

The symbol macros need \protect for the table of contents and the headers. Only the second symbol is available in Unicode, thus the first can be removed for the bookmarks with \texorpdfstring. The new option psdextra of hyperref supports \EightFlowerPetalRemoved directly. Also I recommend package bookmark to get the bookmarks faster updated:

\usepackage[unicode,psdextra]{hyperref}[2012/08/13]
\usepackage{bookmark}

\chapter{%
  \texorpdfstring{\protect\threeS}{}%
  \protect\EightFlowerPetalRemoved
  chapter title}
share|improve this answer
    
Thank you very much, that works exactly the way I wanted :) –  TMV Jan 4 '13 at 9:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.