Questions tagged [shorthands]

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

Filter by
Sorted by
Tagged with
1 vote
1 answer
61 views

Difference between "= and "- in babel-swedish

Is there a difference between the two shorthands "= and "- defined by babel-swedish? While they evidently are defined differently, I fail to find a difference in their descriptions or a case ...
Fredrik P's user avatar
  • 1,386
1 vote
1 answer
59 views

Deactivate Special Character Conversion with quotation marks

Having this in TeX: \documentclass{article} \usepackage[ngerman]{babel} \usepackage{csquotes} \begin{document} "Error"\\ "Server" \end{document} compiles to Ërror" SServer&...
flymg's user avatar
  • 179
1 vote
1 answer
86 views

Why does typing two commas not convert into German opening quotation marks?

I read in another question that it is possible to use the shorthand of typing two commas, which should then compile into opening German quotation marks. Here is a minimal working example: \...
TiMauzi's user avatar
  • 841
1 vote
0 answers
138 views

Activate "ibidtracker" and "idemtracker" in footnotes only (authortitle-dw style)

I am using the bibliography style authortitle-dw and am trying to figure out whether it is possible to activate "ibidtracker" and "idemtracker" in footnotes only. I am using ...
klalbi's user avatar
  • 35
2 votes
0 answers
42 views

pdflatex + soulutf8 + German shorthands = eaten up ASCII chars

Feeding \documentclass{article} \pagestyle{empty} \usepackage[ngerman]{babel} \usepackage[x11names]{xcolor} \usepackage{soulutf8} %%% See http://tex.stackexchange.com/a/426036 \usepackage{letltxmacro} ...
user avatar
1 vote
1 answer
144 views

LuaTeX - " + a/e/i/o/u turning into umlauts

I have an issue where any vowel gets turned into an umlaut within a regular paragraph, without commands being used. "apple" gets turned into äpple", "Question?" Anwser. gets ...
Arthur's user avatar
  • 13
3 votes
1 answer
94 views

\AtBeginEnvironment{tikzcd} hasn't any effect

Several babel modules (e.g. the ngerman one) make active the " character, and this is the source of troubles with the tikz-cd package and the tikz' babel library may be not enough (see e.g. this ...
Denis Bitouzé's user avatar
1 vote
1 answer
79 views

Prevent babel shorthands from interfering with catcode changes

I want to write an XML-like key-value-parser for LaTeX. That is, kv-pairs are separated by spaces, and values are separated from keys by = and encapsulated by double qoutes. The following minimal ...
Lupino's user avatar
  • 2,772
0 votes
1 answer
123 views

Biblatex-chicago first time full citation, then shorthand (authordate)

I have to use authordate in my project, unless it's legal entries such as congressional hearings. In that case, I am supposed to reference it in full the first time, and use the shorthand afterwards. ...
SC W's user avatar
  • 35
1 vote
1 answer
297 views

How can I automatically do \shorthandoff in all inline listings with pandoc?

To get proper French punctuation in pandoc with babel, I followed the advice in https://tex.stackexchange.com/a/505068/17868 which requires enabling shorthands in babel. However, as I found out, when ...
Fuhrmanator's user avatar
2 votes
1 answer
329 views

How to declare shorthand key for section/subsection?

I am now writing a file with many section, subsection, subsubsections. I wish to declare a new shorthand for this. Perhaps something like: \s, \ss, \sss for section, subsection, susubsection, and ...
Bryan Shih's user avatar
2 votes
1 answer
127 views

getting German babel shortcuts to work with biblatex without autolang=langname

I want to use babel language shortcuts in bibtex entries. This seems to be imposible unless autolang=langname is used. But if I use this setting, the item uses the German Hrsg instead of ed. With the ...
Stefan Müller's user avatar
2 votes
2 answers
159 views

Wrong labeldate using biblatex authoryear style and shorthands

I have a bibliography with multiple works by the same author, which were also published in the same year. I am using Biblatex's authoryear style, so, as expected, I get Author (2020a) and Author (...
Larissa's user avatar
  • 33
4 votes
2 answers
137 views

ifthen + [ngerman]babel + pgfplots + axis + text height = ☇

Continuing [ngerman]babel + pgfplots + axis + text height = ☇ and feeding \RequirePackage{ifthen} \newboolean{techrep} \setboolean{techrep}{true} \documentclass{article} \usepackage[ngerman]{babel} \...
user avatar
1 vote
1 answer
213 views

polyglossia: babel hyphenation shorthands for English?

I usually write in German, and I'm used to using various babel shorthands, e.g. "= for an explicit hyphen that does not keep a word from being hyphenated elsewhere. I've found that while these work ...
chsk's user avatar
  • 3,667
2 votes
1 answer
708 views

List of babel shorthands

Is it possible to find list of shorthands in general? I am using package babel with "czech" option, and as much as I love that it works great for me, pretty often I hit upon errors when working with ...
Tomáš Kruliš's user avatar
0 votes
1 answer
101 views

Bibliography shortening automation tool?

Is there some tool (disciple-specific or general) which takes as input a .bib file and shortens the entries, as much as possible? e.g. Replacing given names with initials ("Smith, John" -> "Smith, J."...
einpoklum's user avatar
  • 12.3k
2 votes
1 answer
42 views

Bibliographic macro that selectively modifies quotation fails on Babel shorthands

I use the code as in the following MWE: \documentclass{article} \usepackage[english]{babel} \useshorthands*{"} \defineshorthand{"-}{\texorpdfstring{\babelhyphen{repeat}}{\discretionary{-}{-}{-}}} \...
Peter's user avatar
  • 998
2 votes
2 answers
195 views

Babel shorthands do not expand correctly after a temporary switch to other language. Bug?

I cannot better describe the problem than by the MWE below. Steps for reproduction: Create a bi-lingual article with Babel (here: american and ngerman) Add the Babel shorthands for the German ...
nagmat84's user avatar
  • 1,115
1 vote
1 answer
236 views

Babel shorthands not working with `beamer` class (quotation mark not recognized as active character)

For the German language the babel package defines a set of shorthand commands that I use quite often. They all start with a quotation mark (") which is redefined as an active character. In detail, I'm ...
nagmat84's user avatar
  • 1,115
10 votes
6 answers
1k views

How can I replace every global instance of "x[2]" with "x_2"

Thanks to Bruno for suggesting that for my specific case, where my results come from Mathematica, it's simply much easier to change the output in there using trivial replacement rules. However, this ...
Brad's user avatar
  • 155
2 votes
1 answer
148 views

Is it possible to abbreviate a given set of necessary commands in the preamble?

I wonder if it is possible to abbreviate a given set of commands in the preamble? For example, is it possible give a one-line code that abbreviates the commands from \documentclass to \usepackage{}? ...
Yes's user avatar
  • 1,639
0 votes
1 answer
70 views

pdf_tex not found

I am writing my PhD in Polish. I use pdf_tex files for inserting images. This is the file which is working fine \documentclass[oneside, 12pt]{book} \usepackage[top=2.5cm, bottom=2.5cm, left=2.5cm, ...
janekpel's user avatar
0 votes
1 answer
217 views

Use of \NoAutoSpacing inside a macro

I would like to locally deactivate the colon character (made active by babel package used with frenchb option). But it appears to not work within a macro: \documentclass{article} \usepackage[frenchb]{...
Tobard's user avatar
  • 1,189
4 votes
1 answer
165 views

Kerning of pairs with LuaTeX for babel shorthands

I want to make use of the pairwise kerning of this answer: https://tex.stackexchange.com/a/370469/75284 using fonts.handlers.otf.addfeature to adjust the kerning of character pairs with the hyphen -. ...
lblb's user avatar
  • 3,454
46 votes
7 answers
150k views

Is there a short hand command to write derivatives?

Every time I want to write an (ordinary) derivative I have to use frac, like this: \frac{\mathrm{d}^2 \omega}{\mathrm{d}\theta^2} Or using \partial for partial derivatives. Is there a package or a ...
SuperCiocia's user avatar
3 votes
1 answer
318 views

How do you print a regular-entry + a shorthand-entry in a bibliography?

I would like to print shorthands in the bibliography as separate entries, using biblatex. My bibliography.bib contains this: @Collection{Pauly1894--1980, editor = {August Pauly and Georg ...
Kubo's user avatar
  • 368
0 votes
1 answer
377 views

Customizing biblatex lists of abbreviations: separate lists for different authors

Is it possible to use biblatex's \printshorthands to achieve the following two effects? I would like to have three separate lists of abbreviations, for the three authors whose works are most ...
ss1789's user avatar
  • 559
1 vote
1 answer
78 views

Shorthand for deep enumitem

I am trying to make an outline that may need to go 5 layers deep. In doing my research, I found this which allowed for lists to go 9 layers deep apparently. In testing it out I found that this works, ...
Jeff's user avatar
  • 113
2 votes
1 answer
151 views

Moving biblatex-chicago shorthand list to frontmatter

The MWE below produces a shorthand list as expected. % !TEX TS-program = xelatexmk \documentclass{memoir} \usepackage[% notes,annotation,backref=true, block=space,refsection=chapter, ...
K.G. Feuerherm's user avatar
5 votes
3 answers
985 views

How to get/suppress french spacing before punctuation in `\href`

Attention I have already a possible answer and will add it soon. I thought it would be useful to have a solution about it on the site. (Other answers are naturally welcome too). Question How to ...
Ulrike Fischer's user avatar
2 votes
1 answer
483 views

Reset \shorthandwidth at \newrefsection

Edit Found the answer, see below. Edit 2 Unfortunately, my solution to invoke \setlength{\shorthandwidth}{0pt} directly after \newrefsection does not work as expected – it just sets \shorthandwidthto ...
kmbkrkn's user avatar
  • 250
3 votes
1 answer
185 views

TikZ: Interference between polyglossia and `quotes` library

When setting the language for polyglossia to German, one runs into trouble with the quotes library from TikZ: Handing over a label to the angle pic as suggested on page 511 in the pgfmanual fails when ...
FlorianL's user avatar
  • 1,659
4 votes
1 answer
448 views

Biblatex: clear the extrayear field for some references only

It's my first time asking a question, so I hope I'm making myself clear... I want to cite the same reference twice, once in the author-year style, and once using a shorthand, and to print two ...
Alaya's user avatar
  • 43
3 votes
1 answer
78 views

How can I redefine germanb.ldf-shorthand "| for italics only?

germanb.ldf defines the very useful shorthand "| as \declare@shorthand{german}{"|}{% \textormath{\penalty\@M\discretionary{-}{}{\kern.03em}% \allowhyphens}{}} to be used by \usepackage[...
Alexander Wittmann's user avatar
2 votes
1 answer
195 views

Why does my user-defined Babel shorthand containing tipa not work?

Why does this not work? \documentclass{scrartcl} \usepackage{tipa} \usepackage[ngerman]{babel} \useshorthands*{:} \defineshorthand{:a}{a\textipa{:}} \begin{document} Some text. :a Some more text. ...
sgf's user avatar
  • 561
4 votes
2 answers
1k views

Babel: Add german language shorthands

I want to use the German language shorthands provided by babel with other languages; the main language of the document is German. In following MWE the shorthands "= and /"" don't work when the ...
FredFisch's user avatar
  • 883
0 votes
1 answer
540 views

Creating custom shortcut in Texstudio

For some reason, keyboard's quotation mark (") does not work properly in Texstudio. Since i am using csquote package i would like to create a custom shortcut for the command \textquote. However, i ...
Yorgos's user avatar
  • 2,694
1 vote
1 answer
147 views

Using " as shortcut with babel

I try to use " as a shortcut by using \catcode`\"=13 \newcommand*{"}[1]{^{(#1)}} I have to use babel[german] but the package destroys with my shortcut. Is ther any way to prevent this or do I have ...
meneken17's user avatar
  • 193
3 votes
1 answer
352 views

Using Babel-like shorthands in ConTeXt

I'm new to ConTeXt, and I feel very excited about its capabilities. But as soon as I've tried to make a handsome document in Russian, I've learned that ConTeXt doesn't seem to provide Babel-shorthands ...
The_Keeper's user avatar
0 votes
0 answers
46 views

Separate defintions, lemmas proofs from the body of a book?

as you know in latex it is possible to create a list of shortcuts (like formulas) and call that inside the body of a document/book. I was wandering if it is possible to do a similar stuff with ...
user8469759's user avatar
3 votes
1 answer
122 views

biblatex and \filteror to produce a combined list of abbreviations

My end goal is to try and produce a combined list of abbreviations from a number of fields. (I'm happy to hear if I'm going about this in the wrong way.) Note too that I realise that my implementation ...
David Purton's user avatar
  • 25.9k
14 votes
1 answer
247 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 ...
musarithmia's user avatar
  • 12.5k
2 votes
1 answer
2k 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, ...
Roberto Gozzoli's user avatar
4 votes
1 answer
388 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 ...
johlie's user avatar
  • 283
2 votes
1 answer
345 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 ...
topskip's user avatar
  • 37k
1 vote
1 answer
784 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 ...
Sarah's user avatar
  • 13
4 votes
1 answer
7k 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.
Dion's user avatar
  • 696
2 votes
1 answer
272 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 invoked....
Andreï V. Kostyrka's user avatar
1 vote
1 answer
108 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} ...
Raphael's user avatar
  • 5,993