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
0
votes
0answers
37 views

Getting two \cite-options for one entry: “normal” and “shorthand”

I'm relatively new to LaTeX, but I managed to get a bibliography with biblatex' style authoryear-comp while creating the bib.file automatically with Citavi. My question is quite specific, and I didn't ...
0
votes
1answer
42 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. ...
0
votes
1answer
95 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 ...
2
votes
1answer
45 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 ...
2
votes
1answer
38 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 ...
2
votes
2answers
59 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 (...
4
votes
2answers
125 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} \...
1
vote
1answer
63 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 ...
1
vote
1answer
127 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 ...
0
votes
1answer
50 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."...
2
votes
1answer
37 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{-}{-}{-}}} \...
1
vote
2answers
58 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 ...
1
vote
1answer
90 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 ...
10
votes
6answers
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 ...
2
votes
1answer
106 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{}? ...
0
votes
1answer
64 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, ...
0
votes
1answer
99 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]{...
4
votes
1answer
111 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 -. ...
29
votes
7answers
44k 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 ...
3
votes
1answer
189 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 ...
0
votes
1answer
219 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 ...
1
vote
1answer
54 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, ...
2
votes
1answer
113 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, ...
5
votes
3answers
592 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 ...
2
votes
1answer
246 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 ...
3
votes
1answer
150 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 ...
4
votes
1answer
348 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 ...
3
votes
1answer
64 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[...
2
votes
1answer
157 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. ...
4
votes
2answers
830 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 ...
0
votes
1answer
430 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 ...
1
vote
1answer
116 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 ...
3
votes
1answer
269 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 ...
0
votes
0answers
43 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 ...
3
votes
1answer
115 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 ...
14
votes
1answer
220 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 ...
2
votes
1answer
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, ...
4
votes
1answer
265 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 ...
2
votes
1answer
243 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 ...
1
vote
1answer
431 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 ...
4
votes
1answer
4k 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
239 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....
1
vote
1answer
89 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
91 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}\...
1
vote
1answer
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 }
8
votes
2answers
787 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} \...
4
votes
1answer
167 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 ...
7
votes
1answer
3k 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 ';'): \documentclass[french]{...
3
votes
1answer
909 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 ...
1
vote
1answer
2k 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 ...