{shorthands} is about the language-specific special active characters (e.g., for quotation marks and {hyphenation} characters) of the {babel} package.

learn more… | top users | synonyms

2
votes
0answers
30 views

How to define command like "| (german) for greek language? --: allowhyphens, noligature, minimal space

For my polutonikogreek documents I want to use commands/shortcuts like the "| of germanb.ldf, which is ...
0
votes
1answer
74 views

Define shorthand command

I use a lot of times the following code: \begin{gather} \begin{aligned} Math here \end{aligned} \end{gather} Is there a way to define a new shorthand command like the following: \SC { Math here } ...
5
votes
2answers
177 views

Error with chronology and babel packages : “! Paragraph ended before \pgffor@next was complete.”

I am trying to use the chronology package in a report that includes babel. My distribution : pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013/Debian) On below my MWE : \documentclass{article} ...
5
votes
1answer
65 views

Xindy and german babel shorthands “-, ”= etc

I'm using XeLaTeX, imakeidx and xindy, and I'd like to use shorthand like "- and "= in the index entries (soft and hard hyphen allowing hyphenation within component words, from [ngerman]babel). I ...
6
votes
1answer
236 views

Why \shorthandon and \shorthandoff cannot be embedded in other macros?

Surrounding \title macro with \shorthandon{;:!?} and \shorthandoff{;:!?} gives the expected result with babel's french language (space added before the '?', '!', ':' and ';'): ...
3
votes
1answer
150 views

Alternative for \DeclareMathOperator

I'm getting a little tired of defining all my mathematical operators with \DeclareMathOperator. Also it is rarely useful to have them as a macro. On the contrary it sometimes leads to macro name ...
0
votes
1answer
143 views

using csquotes' shorthands in English

Is there a special reason why csquotes' shorthands cannot be used in English text or am I overlooking something? The \enquote command works fine. It's true that English style quotes are amongst the ...
4
votes
1answer
76 views

Babel shorthands has a problem with \bm package

Using the babel command \useshorthands{"} prevents \bm package to work normally. \documentclass{report} \usepackage[T1]{fontenc} \usepackage[english]{babel} \useshorthands{"} \usepackage{bm} ...
2
votes
1answer
112 views

soul package does not work with user-defined language shorthands

Using \caps from the soul package with user-defined language shorthands generates an error. However, it works fine with language shorthands defined by babel itself, e.g. by using ...
4
votes
1answer
305 views

Hyphenation of words connected with a double/triple dash

I can't hyphenate the words Cam•bri•an--Or•do•vi•cian because they are connected with an endash. The same probably happens when using the emdash. I tried this ...
4
votes
1answer
154 views

babel: adding language shorthands to work inside glossaries

I added ngerman shorthands to my english babel as described here. But they do not work for glossaries, and probably in other macors as discussed here. I load all the acronyms as a separate file in the ...
2
votes
1answer
149 views

How do I discover the shorthands defined by babel in my language?

The reason I want to do it is that I want to set brazilian language in babel and I want to use xy-pic package, but I have to use it inside an environment in which the shorthands are off.
9
votes
2answers
194 views

What is the difference between \declare@shorthand and \defineshorthand in babel?

What is the difference between \declare@shorthand and \defineshorthand in babel (v.3.9)? Which of the two macros is preferable in a language definition file? babel.pdf manual (v.3.9) provides an ...
12
votes
2answers
168 views

Most concise way to make list items from each line break

How can I convert every line to a list item automatically? for example I want following become a list (without adding more characters): \begin{foo} Persian French Arabic Urdu \end{foo} Persian ...
6
votes
1answer
202 views

Is there any more convenient way to insert Math-mode Accents?

Is there any more convenient (concise) way to insert Math-mode Accents? For example is it possible to use a syntax like following: a\^ %instead of \hat{a} a\- %instead of \bar{a} a\~ %instead of ...
3
votes
1answer
190 views

Shortcuts using double quotes in combination with mathspec

Basically, I have encountered the same error as answered here and the workaround suggested by Andrey Vihrov reenables me to compile the document. The problem now is, that any shorthand defined by the ...
2
votes
1answer
216 views

using **xyz** instead of \foo{xyz}

How can I use **xyz** or another similar one instead of \foo{xyz} or \foo*{xyz}? note: question is updated to reflect my concern, question is general and is not depended on a special package. You ...
9
votes
3answers
687 views

babel's hyphenation-friendly hyphen "= in multiple languages

Why doesn't the hyphenation work with multiple languages? See code: \documentclass[a4paper]{report} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} ...
11
votes
2answers
366 views

Using breakable hyphen "= in \newcommand

I want to use a breakable hyphen "= in a command: \documentclass[a4paper]{article} \usepackage[ngerman]{babel} \newcommand{\TT}{Test"=Text } \begin{document} This is a test whether the hyphen in \TT ...
7
votes
1answer
632 views

Automatic hyphenation of compound words

When I was learning to drive a typewriter (shortly after the death of my pet sabre-tooth), I picked up the habit of using a double hyphen when splitting compound words, thus: The system has a ...
16
votes
1answer
641 views

babel shorthand "| doesn't work in macros

The package babel with the ngerman option (and most other languages as well, but not english) provides the shorthand "|, which prevents a ligature at the given position (see p. 81 of the babel ...
11
votes
1answer
593 views

“ with tipa and babel's ngerman / \shorthandoff{”} in a macro

TL;DR see below at "core problem" Problem I'm trying to solve a conflict between the packages tipa (Fonts and macros for IPA phonetics characters) and babel with the ngerman option. The problem ...
7
votes
3answers
587 views

Disable babel's shorthands

I want to disable babel's shorthands in my own sty file. But since I can use \shorthands{off} only inside the document environment, I struggle with this. Is there a way to disable babel's shorthands ...
19
votes
2answers
1k views

babel: Adding ngerman' s language shorthands to english as the main document language

The (n)german language option of the babel package provides various shorthands related to hyphenation, e.g. "-: "an explicit hyphen sign, allowing hyphenation in the rest of the word" (manual, section ...
8
votes
3answers
2k views

Problem with spanish babel package

I'm trying to use package amscd for a commutative diagram. Everything goes smoothly if I write: \documentclass{article} \usepackage[english]{babel} \usepackage{amscd} \begin{document} $\begin{CD} A ...