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.

I'm trying to use the bibleref package together with [french]{babel}, and failing. The bibleref documentation warns that it doesn't play nice, and that you might have to make colons non-active with babel.

How do I do that?

I've tried using \shorthandoff{:} but it doesn't seem to help. Forgetting about babel would make my life much harder to have proper French rules.

To be more specific, here is the error I'm getting when calling pdflatex on my file:

Runaway argument?
5:21) 
! Paragraph ended before \@bibleverse was complete.
<to be read again> 
                   \par 
l.73 

? 
share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Either use \shorthandoff{:} after \begin{document} or enclose it within \AtBeginDocument in the preamble:

\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[french]{babel}

\AtBeginDocument{\shorthandoff{:}}

\usepackage{bibleref}

\begin{document}

\bibleverse{Exod}(20:17)

\end{document}
share|improve this answer
    
Thank you very much! What are the consequences on babel of doing this? –  ℝaphink Apr 4 '11 at 7:52
    
@Raphink: My guess is that babel does not automatically add a space before colons (which seems to be the norm in French typography). –  lockstep Apr 4 '11 at 8:07
    
Would it be a good idea to write a new command like \newcommand{\bbibleverse}[2]{\shorthandoff{:}\bibleverse{#1}#2\shorthandon{:}} ? –  ℝaphink Apr 4 '11 at 8:24
    
@Raphink: Maybe -- I don't know what \bibleref does and what adverse effects might emerge. Another possibility is to define a new babel shorthand that copies the default defintion of : and to use the new shorthand in the text. –  lockstep Apr 4 '11 at 8:46
add comment

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.