GeneralWarnings with devanagari and hyperref package

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
chimanrao
Posts: 8
Joined: Mon Mar 01, 2010 8:39 am

Warnings with devanagari and hyperref package

Post by chimanrao »

hi
For the code snippet below, I am getting a bunch of warnings for every chapter, The general structure of the warnings is as follows:

Package Hyperref warning: Token not allowed in pdf string. How do I get rid of these warnings. If I remove the devanagari package, the warnings go away, but I need the devanagari package.

Code: Select all

\documentclass[10pt,a4paper,openany]{book}
\usepackage[pdftex]{hyperref}
\usepackage{dev}
\begin{document}


\chapter{Test}
Test
\end{document}
Regards
Chimanrao

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Warnings with devanagari and hyperref package

Post by localghost »

Your code works fine for me as is. Perhaps a matter of outdated packages. Add the \listfiles command as very first line and compare.

Code: Select all

 *File List*
    book.cls    2007/10/19 v1.4h Standard LaTeX document class
    bk10.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
hyperref.sty    2009/10/09 v6.79a Hypertext links for LaTeX
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
   ifpdf.sty    2009/04/10 v2.0 Provides the ifpdf switch (HO)
  ifvtex.sty    2008/11/04 v1.4 Switches for detecting VTeX and its modes (HO)
 ifxetex.sty    2009/01/23 v0.5 Provides ifxetex conditional
 hycolor.sty    2009/10/02 v1.5 Code for color options of hyperref/bookmark (HO)
xcolor-patch.sty    2009/10/02 xcolor patch
  pd1enc.def    2009/10/09 v6.79a Hyperref: PDFDocEncoding definition (HO)
etexcmds.sty    2007/12/12 v1.2 Prefix for e-TeX command names (HO)
infwarerr.sty    2007/09/09 v1.2 Providing info/warning/message (HO)
hyperref.cfg    2002/06/06 v1.2 hyperref configuration of TeXLive
kvoptions.sty    2009/08/13 v3.4 Keyval support for LaTeX options (HO)
kvsetkeys.sty    2009/07/30 v1.5 Key value parser with default handler support (HO)
     url.sty    2006/04/12  ver 3.3  Verb mode for urls, etc.
  bitset.sty    2007/09/28 v1.0 Data type bit set (HO)
 intcalc.sty    2007/09/27 v1.1 Expandable integer calculations (HO)
bigintcalc.sty    2007/11/11 v1.1 Expandable big integer calculations (HO)
pdftexcmds.sty    2009/09/23 v0.6 LuaTeX support for pdfTeX utility functions (HO)
ifluatex.sty    2009/04/17 v1.2 Provides the ifluatex switch (HO)
 ltxcmds.sty    2009/08/05 v1.0 Some LaTeX kernel commands for general use (HO)
atbegshi.sty    2008/07/31 v1.9 At begin shipout hook (HO)
 hpdftex.def    2009/10/09 v6.79a Hyperref driver for pdfTeX
     dev.sty    2008/03/09 v2.15 LaTeX macros for Velthuis Devanagari
devanagari.sty    2008/03/09 v2.15 LaTeX macros for Velthuis Devanagari
dvngcite.sty    2008/03/09 v2.15 Extension for citations in the nagari text
    cite.sty    2009/08/29  v 5.2
     udn.fd
 nameref.sty    2007/05/29 v2.31 Cross-referencing by name of section
refcount.sty    2008/08/11 v3.1 Data extraction from references (HO)
devanagari-xmpl.out
devanagari-xmpl.out
 ***********
Driver options like pdftex are not necessary.


Best regards
Thorsten
chimanrao
Posts: 8
Joined: Mon Mar 01, 2010 8:39 am

Re: Warnings with devanagari and hyperref package

Post by chimanrao »

Thanks a lot.
Looks like I had a very old version of dev and devanagiri package in my miktex installation.
Upgraded with the latest version from here
http://www.ctan.org/tex-archive/languag ... /velthuis/

Thanks again.
Chimanrao
Post Reply