2
votes
1answer
56 views

How to use \StrBefore in \chapter with optional argument

I want to trim the chapter titles in toc up to first dot. \documentclass{book} \usepackage{xstring} \newcommand{\chap}[1]{% \chapter[\StrBefore{#1}{.}]{#1} } \begin{document} \chap{Some title. ...
2
votes
1answer
317 views

XeLaTeX - Devanagari page numbers in \tableofcontents [duplicate]

Possible Duplicate: How to get devanagari numerals in latex or xetex I am using XeLaTeX (XeTeX, Version 3.1415926-2.4-0.9998 on TeX Live 2012/W32TeX). I want Devanagari (Indic) page ...