{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

15
votes
1answer
138 views

"| shortcut no longer available in babel?

In the answers to this question, people recommend using the "babel shorthand" command "| to break the ligature in the word shelfful. Am I doing this wrong or is this command no longer available in ...
1
vote
1answer
96 views

no page break between shorthands and bibliography

I am using the following commands for my bibliography: \usepackage[style=verbose-ibid,firstinits=true,sorting=nty,sortcites=true, useprefix=false,isbn=false,maxnames=99,citetracker=true, ...
5
votes
1answer
45 views

How do I use shorthand from the first time with verbose-trad1

I am using biblatex, Biber, and style=verbose-trad1 for my LaTeX document. However, I would like, not to print the full title the first time, when using shorthands, but to have the shorthand ...
3
votes
1answer
47 views

Babel: two languages, active shorthands

I'd like to use multiple languages in my document (babel), and both ngerman and british should have the nice shorthands active ("` and "'). The british language environment should turn "` into “ and ...
2
votes
1answer
86 views

Multi-line (wrapped text) in bibliography labels using shorthand for CV

In my CV, I want to create a list of my publications. I managed to change the label of each entry to be the name of the conference using the shorthand field. However, for certain publications, there ...
3
votes
1answer
154 views

Handwritten Letters for Category Theory?

I'm studying category theory and I'd like to know which package I should use to get a handwritten style like this: Thanks.
2
votes
1answer
56 views

Command containing babel shorthand not expanding [duplicate]

Greetings to the distinguished gathering of TeXperts! My problem is: if a macro is defined with a babel shorthand containing the quote mark (") as an active character, it does not expand when ...
2
votes
1answer
47 views

Why does adding shorthands to language extras no longer work?

It used to be that this worked: \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage[main=american,ngerman]{babel} \addto\extrasamerican{\languageshorthands{ngerman}} \begin{document} ...
2
votes
0answers
45 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
167 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 } ...
6
votes
2answers
404 views

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

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
87 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
626 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
201 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
205 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
91 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
124 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
379 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
247 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 ...
3
votes
1answer
184 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
244 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
187 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
211 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 ...
4
votes
1answer
259 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
217 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
835 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} ...
13
votes
2answers
444 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
789 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 ...
18
votes
1answer
861 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
690 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 ...
8
votes
3answers
758 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 ...
20
votes
2answers
2k 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 ...
9
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 ...