Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shorthands]

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

1
vote
1answer
25 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
64 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
57 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
30 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
69 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 -. ...
9
votes
2answers
5k 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
106 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
139 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
41 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
82 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
367 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
125 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
96 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
186 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
50 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[...
1
vote
1answer
70 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. ...
3
votes
2answers
572 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
323 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
90 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
231 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
37 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
95 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
202 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
1k 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
183 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
169 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
313 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
2k 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
210 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
82 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
82 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
800 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
772 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
151 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
2k 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
613 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
1k 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
151 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} \begin{...
2
votes
1answer
161 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 \usepackage[ngerman]{...
4
votes
1answer
658 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 \defineshorthand{"=}{\...
4
votes
1answer
401 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 ...
6
votes
1answer
281 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.
10
votes
2answers
517 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
245 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
234 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
480 views

Shortcuts using double quotes in combination with mathspec

Note: I cannot specificly tell which version of which of the two conflicting packages fixed the issue, but as of 2016 mathpec and polyglossia no longer show the issue. Basically, I have encountered ...
2
votes
1answer
325 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
2k 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} \usepackage[english,...
15
votes
2answers
805 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 ...