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
how to disable babel shorthands?
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
 
Oleg Paraschenko  
View profile  
 More options Oct 4 2005, 10:46 am
Newsgroups: comp.text.tex
From: "Oleg Paraschenko" <ole...@gmail.com>
Date: 4 Oct 2005 07:46:38 -0700
Local: Tues, Oct 4 2005 10:46 am
Subject: how to disable babel shorthands?
Hello,

is it possible to disable babel's shorthands? I found the
"\shorthandoff{chars}" command, but:

* I should know all the shorthands characters in advance, and
* If I provide a non-shorthand character, then I get an error in
terminal.

I generate LaTeX-files automatically, and I'd like to avoid hard-coding
all the language-shorthands mapping into the script. Any better ideas?

Thank you.

--
Oleg Paraschenko  olpa@ http://uucode.com/
http://uucode.com/blog/  Generative Programming, XML, TeX, Scheme


 
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.
Morten Høgholm  
View profile  
 More options Oct 4 2005, 11:01 am
Newsgroups: comp.text.tex
From: Morten Høgholm <morten.hoegh...@gmail.com>
Date: Tue, 04 Oct 2005 17:01:39 +0200
Local: Tues, Oct 4 2005 11:01 am
Subject: Re: how to disable babel shorthands?
On Tue, 04 Oct 2005 16:46:38 +0200, Oleg Paraschenko <ole...@gmail.com>  
wrote:

> Hello,

> is it possible to disable babel's shorthands? I found the
> "\shorthandoff{chars}" command, but:

> * I should know all the shorthands characters in advance, and
> * If I provide a non-shorthand character, then I get an error in
> terminal.

> I generate LaTeX-files automatically, and I'd like to avoid hard-coding
> all the language-shorthands mapping into the script. Any better ideas?

The following doesn't really disable them but it does make them expand to  
the harmless representation of the character in question. Is that what you  
want?

\makeatletter
\def\active@prefix#1#2{%
   \ifx\protect\@typeset@protect
     \string#1%
   \else
     \ifx\protect\@unexpandable@protect
       \noexpand#1%
     \else
       \protect#1%
     \fi
   \fi}
\makeatother

--
Morten


 
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.
Oleg Paraschenko  
View profile  
 More options Oct 4 2005, 11:46 am
Newsgroups: comp.text.tex
From: "Oleg Paraschenko" <ole...@gmail.com>
Date: 4 Oct 2005 08:46:22 -0700
Local: Tues, Oct 4 2005 11:46 am
Subject: Re: how to disable babel shorthands?
Hello Morten,

thanks for the suggestion. I've finally implemented a solution, which
is also based on hooking babel internals:

[lessbabel.sty]
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{lessbabel}[2005/10/04 Babel without shorthands]

\DeclareOption*{\PassOptionsToPackage{\CurrentOption}{babel}}
\ProcessOptions\relax
\RequirePackage{babel}

\def\bbl@activate#1{}
[/lessbabel.sty]

My documents now use

\usepackage[english,german]{lessbabel}

instead of

\usepackage[english,german]{babel}

--
Oleg Paraschenko  olpa@ http://uucode.com/
http://uucode.com/blog/  Generative Programming, XML, TeX, Scheme


 
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 »