I'm trying to make use of this solution to get list of problems.
I'm using XeTeX, and if I use non-english as a problem name -- hyperref's links to problem in "List of problems" doesn't work.
Here's a MWE:
\documentclass{book}
% =====================
%% XeTeX customization:
\usepackage{fontspec} % enagles loading of OpenType fonts
\usepackage{polyglossia} % support for languages
% fonts:
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} % without this XeLaTeX won't turn "--" into dashes
\setmainfont{Arial}
\setsansfont{Arial}
\setromanfont{Arial}
\setmonofont{DejaVu Sans Mono}
% Russian/English document:
\usepackage{xecyr}
\newfontfamily\cyrillicfont{Arial}
\setmainlanguage{russian}
\setdefaultlanguage{russian}
\setotherlanguage{english}
% =======================
%% hyperref and ntheorem:
\usepackage[hyperref]{ntheorem}
\theoremlisttype{all}
\makeatletter
\newtheoremstyle{problem}
{\item[\hskip\labelsep \theorem@headerfont ##1\ ##2\theorem@separator]}%
{\item[\hskip\labelsep \theorem@headerfont ##1\ ##2\theorem@separator]}
\makeatother
\theoremstyle{problem}
\newtheorem{Задача}{Задача}[chapter]
\usepackage{hyperref}
\begin{document}
\chapter*{List of problems}
\listtheorems{Задача}
\chapter{foo}
\begin{Задача}[Short foo name]
Foo!
\end{Задача}
\chapter{bar}
\begin{Задача}[Short bar name]
Bar!
\end{Задача}
\end{document}
It needs to be compiled with xelatex. I want to get clickable list of problems.
I tried to add some options to hyperref:
\hypersetup{xetex,
unicode=true,
pdfencoding=unicode,
bookmarks={true},
}
it doesn't work.
Edit:
Versions:
ntheorem 1.31
hyperref 6.82q
polyglossia 1.2.1
xecyr 1.0
Complete compile log is here.
Edit 2:
Here's thm file on request of egreg:
\contentsline {Задача}{{Задача}{1.{1}}{Short foo name}}{3}{Задача.1.1}
\contentsline {Задача}{{Задача}{2.{1}}{Short bar name}}{5}{Задача.2.1}
With the solution I posted below the same file is
\contentsline {problem}{{Задача}{1.{1}}{Short foo name}}{3}{problem.1.1}
\contentsline {problem}{{Задача}{2.{1}}{Short bar name}}{5}{problem.2.1}
texlive2012 quantal package. Are You sure You get clickable links in list of problems? – Adobe Feb 17 '13 at 19:02ntheorem1.33,hyperref6.83m,polyglossia1.2.1,xecyr1.0; in particular, version 1.32 ofntheoremdid something about lists of theorems. – egreg Feb 17 '13 at 19:18ntheoremandhyperref-- and it doesn't work. New compile log. – Adobe Feb 17 '13 at 19:43nthe.thm, that is, the file generated for the list of theorems. – egreg Feb 17 '13 at 20:46\texorpdf{...}{...}help to create links that work? – vonbrand Feb 18 '13 at 01:41