Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
problem with hyperref and language switch in optional arguments
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Uwe Stöhr  
View profile  
 More options Feb 10, 10:57 pm
Newsgroups: comp.text.tex
From: Uwe Stöhr <uwesto...@web.de>
Date: Sat, 11 Feb 2012 04:57:48 +0100
Local: Fri, Feb 10 2012 10:57 pm
Subject: problem with hyperref and language switch in optional arguments
I have the following problem that this won't compile:

\documentclass[ngerman,english]{report}
\usepackage{babel}
\usepackage{hyperref}

\begin{document}
hello
\chapter[\selectlanguage{ngerman}Fehler]{Fehler}
\selectlanguage{english}
error

\end{document}

But if I remove the hyperref call, it compiles fine.
I know that changing the language withing  an optional argument is no good idea, the question is
nevertheless why it fails when hyperref comes into play.

Is this a bug in hyperref?

thanks and regards
Uwe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Heiko Oberdiek  
View profile  
 More options Feb 11, 12:00 am
Newsgroups: comp.text.tex
From: Heiko Oberdiek <heiko.oberd...@googlemail.com>
Date: Sat, 11 Feb 2012 06:00:10 +0100
Local: Sat, Feb 11 2012 12:00 am
Subject: Re: problem with hyperref and language switch in optional arguments

\selectlanguage breaks in the bookmarks.

\pdfstringdefDisableCommands{%
  \renewcommand*{\selectlanguage}[1]{}%

}

Why don't you use \foreignlanguage?

--
Heiko Oberdiek


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Uwe Stöhr  
View profile  
 More options Feb 11, 9:20 pm
Newsgroups: comp.text.tex
From: Uwe Stöhr <uwesto...@web.de>
Date: Sun, 12 Feb 2012 03:20:30 +0100
Local: Sat, Feb 11 2012 9:20 pm
Subject: Re: problem with hyperref and language switch in optional arguments
Am 11.02.2012 06:00, schrieb Heiko Oberdiek:

> \selectlanguage breaks in the bookmarks.

> \pdfstringdefDisableCommands{%
>    \renewcommand*{\selectlanguage}[1]{}%
> }

> Why don't you use \foreignlanguage?

Good question. \foreignlanguage works and I will use this now.

(I also think that using a different language in a short title than in the full section heading but
a got this from a LyX user so people use this.)

thanks and regards
Uwe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »