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
0 answers
79 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 ...
user avatar
  • 35
2 votes
0 answers
36 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
80 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 ...
user avatar
  • 13
1 vote
0 answers
45 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 ...
user avatar
1 vote
1 answer
62 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 ...
user avatar
  • 2,315
0 votes
1 answer
66 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. ...
user avatar
  • 35
1 vote
1 answer
208 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 ...
user avatar
2 votes
1 answer
100 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 ...
user avatar
2 votes
1 answer
67 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 ...
user avatar
2 votes
2 answers
108 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 (...
user avatar
  • 33
4 votes
2 answers
130 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
132 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 ...
user avatar
  • 3,307
2 votes
1 answer
314 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 ...
user avatar
0 votes
1 answer
72 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."...
user avatar
  • 11.3k
2 votes
1 answer
40 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{-}{-}{-}}} \...
user avatar
  • 988
1 vote
2 answers
101 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 ...
user avatar
  • 1,025
1 vote
1 answer
159 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 ...
user avatar
  • 1,025
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 ...
user avatar
  • 155
2 votes
1 answer
117 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{}? ...
user avatar
  • 1,549
0 votes
1 answer
68 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, ...
user avatar
0 votes
1 answer
145 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]{...
user avatar
  • 1,056
4 votes
1 answer
129 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 -. ...
user avatar
  • 3,224
38 votes
7 answers
86k 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 ...
user avatar
3 votes
1 answer
236 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 ...
user avatar
  • 616
0 votes
1 answer
294 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 ...
user avatar
  • 559
1 vote
1 answer
58 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, ...
user avatar
  • 113
2 votes
1 answer
135 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, ...
user avatar
5 votes
3 answers
775 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 ...
user avatar
2 votes
1 answer
368 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 ...
user avatar
  • 240
3 votes
1 answer
171 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 ...
user avatar
  • 1,567
4 votes
1 answer
403 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 ...
user avatar
  • 43
3 votes
1 answer
70 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[...
user avatar
2 votes
1 answer
167 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. ...
user avatar
  • 551
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 ...
user avatar
  • 863
0 votes
1 answer
461 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 ...
user avatar
  • 2,604
1 vote
1 answer
139 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 ...
user avatar
  • 173
3 votes
1 answer
300 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 ...
user avatar
0 votes
0 answers
44 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 ...
user avatar
3 votes
1 answer
118 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 ...
user avatar
  • 23.6k
14 votes
1 answer
228 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 ...
user avatar
  • 11.8k
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, ...
user avatar
4 votes
1 answer
311 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 ...
user avatar
  • 283
2 votes
1 answer
280 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 ...
user avatar
  • 35.9k
1 vote
1 answer
630 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 ...
user avatar
  • 13
4 votes
1 answer
5k 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.
user avatar
  • 696
2 votes
1 answer
246 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....
user avatar
1 vote
1 answer
98 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} ...
user avatar
  • 5,553
2 votes
0 answers
99 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 \declare@shorthand{german}{"|}{\textormath{\penalty\@M\discretionary{-}{}{\kern.03em}\...
user avatar
1 vote
1 answer
2k 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 }
user avatar
  • 4,530
8 votes
2 answers
806 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} \...
user avatar
  • 103