Skip to main content

Questions tagged [ampersand]

{ampersand} is specifically about the usage of the ampersand character (&).

Filter by
Sorted by
Tagged with
1 vote
0 answers
33 views

How to pass a tl or seq containing & to a function?

I am using CSVsimple to make a catalogue of products, each having a variable sized table with different header. So first I scan the file for header-names, save these in variables and then later feed ...
Fibecker's user avatar
5 votes
2 answers
275 views

Multi-line equations in 'aligned' environment with ampersand (&) inside \left-\right parenthesis

I know how to use the ampersand in align and aligned environments to write multi-line equations. In this case I need to use \left[ and \right] to contain an expression on the first line, and I want ...
Simone's user avatar
  • 51
2 votes
1 answer
98 views

Struggle with & symbol

I'm facing a problem that I don't understand the issue. I want to type the "&" symbol in latex. detexify says just to use \& and I did, but this weird symbol was what printed: I don'...
Peyman's user avatar
  • 131
1 vote
1 answer
151 views

Resolving tikzcd/externalize/align incompatibilities

I've been trying to follow the insights from the following posts: Are the TikZ libraries cd and external incompatible with one another? How to avoid redefining ampersand & globally? Use & ...
DaftWullie's user avatar
3 votes
3 answers
2k views

Create a table within newenvironment using tblr

I've set up a (3 column) table using the tblr environment and would like to put this in a new environment. Then be able to add additional rows to the table with something like \name{person's name &...
SockPile's user avatar
0 votes
1 answer
197 views

Italic ampersand displayed weirdly?

I want an italic ampersand, yet it looks weird to me: \documentclass{article} \begin{document} \textit{\&} \end{document} I just want an ampersand in italics, yet it should still look like ...
Hermi's user avatar
  • 244
5 votes
1 answer
272 views

Why do I have to redefine ampersand in tabular?

I want to print the numbers 0,1,...,n-1 in a tabular environment. My first attempt resulted in the error Incomplete \iffalse; all text was ignored after line 19.. By "hiding" & (...
László Battha's user avatar
1 vote
2 answers
459 views

How to have tikzcd inside align?

With the gathered subsidiary environment, the code \newcommand{\id}{\mathrm{id}} \[\begin{gathered} \text{if $g$ is a left-inverse of $f$, then } \begin{tikzcd} A\ar[r, "f&...
Atom's user avatar
  • 665
0 votes
1 answer
116 views

Can the ampersand command be aliased with newcommand without issue?

In order to facilitate authoring LaTeX fragments within XML (where <, >, and & are reserved characters), the PreTeXt specification allows for the use of \lt, \gt, and \amp within math ...
Steven Clontz's user avatar
2 votes
1 answer
361 views

Replacing "and" by "&" (ampersand) for \parencite in authoryear-icomp

I currently use the authoryear-icomp style with the biblatex package. By default, the citations are done as follows: using \citeauthor{Butler.2012}: Butler and Ekdahl using \parencite{Butler.2012}: (...
TiMauzi's user avatar
  • 851
0 votes
2 answers
280 views

Overriding the ampersand (&) in Spanish APA

I'm currently struggling with the APA citation system in Spanish. I need to use "y" or "e" instead of "&". As you can see in my MWE, in spite of using the Spanish ...
killthepixelnow's user avatar
3 votes
1 answer
223 views

How to avoid redefining ampersand & globally?

In my attempt to make my library zx-calculus based on tikz & tikzcd compatible with tikz externalize (to save compilation time), I've basically been using this solution https://tex.stackexchange....
tobiasBora's user avatar
  • 8,844
12 votes
2 answers
347 views

Variable number of arguments: generate alignment characters

I'm trying to define a command \letin that should produce something that looks as follows. Note that it should support a variable number of "let" arguments and a single "in" ...
Safron's user avatar
  • 360
1 vote
1 answer
231 views

Ampersand (for matrix align) still appear in math mode in minted, listings?

Here is the tex code \documentclass{article} \usepackage{amsmath,amsthm} \usepackage{mathtools} \usepackage{listings} \usepackage{minted} \begin{document} \begin{minted}[escapeinside=||,mathescape=...
ydhhat's user avatar
  • 157
1 vote
1 answer
227 views

Ampersand in Glossary- how to escape it?

I have a specific problem with the use of "&" in the glossary. In my text, I have: \gls{CUT\&RUN} to define it as a glossary item. And I try to write the new glossary item ...
bsbt's user avatar
  • 13
1 vote
0 answers
131 views

How can I substitute an ampersand in LuaLaTeX?

I am trying to use Lua to substitute the default ampersand for a swashy one. Fontforge tells me the glyph's name is 'ampersand', and the swashy version is 'u0026.da'. However, I can't get the swash ...
ezgranet's user avatar
  • 574
1 vote
1 answer
107 views

CMR italic ampersand in Libertine environment

I tried to use the code provided in this thread to use the Computer Modern italics' ampersand in a document typesetted in Libertine. However this only works in the "body" of the text but not ...
Mogu's user avatar
  • 321
0 votes
0 answers
40 views

Unable to properly align equations

I've got a system of equations that I can't seem to be able to properly aligned. I've attached an image of how I want to align the equations - all the red points aligned together, and all the blue ...
John's user avatar
  • 101
6 votes
5 answers
418 views

TikZ matrix fails inside makebox or framebox

I want to draw a framebox around a TikZ picture. But it won't compile. I try makebox instead of framebox, but the problem persists. Here is a MWE. pdflatex will raise Undefined control sequence \pgf@...
Tianren Liu's user avatar
2 votes
1 answer
404 views

amsmath alignment referring to equal sign or ampersand?

I am wondering why the aligned environment aligns the equations on the right to the equal sign, and not to the ampersand given in the code before Nu and Sh. This code actually produces the output I ...
Gruniok's user avatar
  • 21
3 votes
1 answer
954 views

change ampersand character used by \url

For normal text, I replaced the ampersand symbol with some thing different, specifically a scaled ampersand taken from a different font (because reasons). Perhaps the less lazy method would have been ...
Hagen von Eitzen's user avatar
5 votes
2 answers
239 views

Using & in Command with align

I have written a small command: \newcommand{\LH}[1]{ \underset{\text{\enquote{$#1$}}}{\overset{\text{L' H}} {=\joinrel=\joinrel=}} } For using L' Hospitals Rule. The whole text needs three === and I ...
Mattis's user avatar
  • 53
0 votes
1 answer
381 views

Ampersand, bibtex

I used to use {\rm \&} for ampersands in the bibliography, but it is deprecated, and leads to an error with scrbook document class. If I remove the "\rm" it looks like this: But what I ...
Christian's user avatar
  • 503
3 votes
3 answers
142 views

Fix a problem with surrounding braces in the splitting of an over-long set definition

Consider the following example: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsmath, amsthm, amssymb, mathtools, thmtools, unicode-math} \begin{document} \begin{equation*} ...
0xbadf00d's user avatar
  • 523
3 votes
1 answer
818 views

Tikzcd with Beamer: extremely simple code results in & ampersand catcode error

\documentclass{beamer} \usepackage{amsmath} \usepackage{tikz-cd} \begin{document} \begin{frame}[fragile, t]{My slides} \only<1>{ \begin{equation*} \begin{tikzcd} a \end{tikzcd} \end{equation*}...
Concu Bine's user avatar
2 votes
1 answer
2k views

Using the author names and ampersand symbol (&) instead of the words "et al." in the text for style apa

I want to use the author names and ampersand symbols (&) instead of the word "and" in text for style apa, so e.g. Maji, Biswas & Roy (2001) instead of Maji et al. (2001) and (Maji, Biswas &...
Burak's user avatar
  • 45
0 votes
1 answer
170 views

Using the `stackrel` package with `&` within the `align` environment

It appears that the stackrel package and the align environment are incompatible. The following example illustrates: \documentclass{amsart} \usepackage{scalerel} \begin{document} \...
Leo Simon's user avatar
  • 2,209
2 votes
2 answers
649 views

Ampersand in Biber Sourcemap

I use Mendeley to create my bib-files and then \usepackage[style=authoryear,backend=biber]{biblatex} to create my citations. As I have some URLs, I also use DeclareSourcemap (as suggested in this ...
David's user avatar
  • 123
5 votes
3 answers
420 views

Use array-meaningful ampersand to change column in foreach loop

I wish to loop over this code: \begin{tabular}{l*{8}c} first column & column a & column b & column c & column d & column e & column f & ...
iago-lito's user avatar
  • 1,472
5 votes
1 answer
3k views

Ampersand symbol in \textit

I need this exact symbol of & but when I try to put it into \textit{}, it outputs a very different version of this symbol. How do I achieve this symbol & in \textit{}?
Hung Hoang's user avatar
0 votes
1 answer
477 views

Include & in label

Here is a MWE to illustrate a problem I encounter when I try to include an & in a label. Any ideas how to fix this? \documentclass[14pt,a4paper]{extreport} \usepackage[latin9]{inputenc} \...
stegzzz's user avatar
  • 121
0 votes
0 answers
135 views

(AUTHOR1 & AUTHOR2, YEAR)

I'm using abntex2cite and when I write \cite{...} with a reference that has two authors, the result is (AUTHOR1; AUTHOR2, YEAR). What can I do to appear (AUTHOR1 & AUTHOR2, YEAR)? I've already ...
Celougly's user avatar
2 votes
3 answers
698 views

Usage of ampersand

I am trying to convert a linear program into standard form, but I can't use & to make the equality sign and inequality sign in the same column. The following gives some error if I try to add more ...
smallish's user avatar
10 votes
4 answers
3k views

Box around tikz-cd diagram, without ampersand replacement

Problem statement: I'd like to put a box around a tikz-cd diagram, without needing to use ampersand replacement. Using \fbox seems to require ampersand replacement. Demonstration: The following ...
David Spivak's user avatar
3 votes
1 answer
2k views

Ampersand conflict when using align inside table

I am trying to use an align environment inside a tabular environment. Whenever I use an & character inside the align environment, there seems to be a conflict, i.e., the following works \...
wimi's user avatar
  • 1,968
5 votes
1 answer
451 views

How to use "&" in a "spanish-english" document

I am writing my thesis in Spanish, but i have 2 chapters in English. What I need is: Use "&" in all references in both languages. My problem is that all my chapters (English and Spanish) are ...
Juan Espinosa's user avatar
3 votes
2 answers
610 views

Doubt indentation in align environment

Is there a way to do the following? \begin{align*} a&=b +c +d\\ &=c \end{align*} The problem is b+c+d is an extremely long equation so I want to linebreak after d and I want to put on the ...
postasguest's user avatar
4 votes
1 answer
853 views

Alignment Marker (&) Inside \boxed

I have noticed that I get errors when trying to box an entire equation in the align environment. I get similar errors if I try to put the entire equation inside big parenthesis using \left( and \right)...
Nukesub's user avatar
  • 617
0 votes
1 answer
65 views

Using the "indevr" font with XeLaTeX

I plan to use the Indevr font (for typing Samskrit) which can be found at the bottom of this page: http://www.pratyatosa.com/?P=41 For some reason "&" and "_" symbols are not being rendered by ...
C.S.'s user avatar
  • 1,379
0 votes
1 answer
438 views

tikzcd arrow with array in label

\documentclass{amsart} \usepackage{tikz} \usetikzlibrary{cd} \begin{document} \[ \begin{tikzcd} \left< x, y \right> \ar[r, "{{\left( \begin{array}{cc} a & b \\ c & d \end{array} \...
Robert Bruner's user avatar
2 votes
1 answer
2k views

Natbib agsm - comma and ampersand

I am writing my dissertation and I must use a Harvard style bibliography. I am using natbib and agsm. The problem I have is the following: if I want to cite a book that has only 2 authors either I do ...
Agnese Sonego's user avatar
1 vote
1 answer
799 views

Ampersand, &, inside a theorem?

When I try to write the symbol "&" inside a theorem it looks different than I want it to. Is there a way to get the symbol inside the theorem? Here is what I get: Here is the code: \...
user119615's user avatar
5 votes
2 answers
3k views

Stylized epsilon ampersand

I know in the written form, ampersands have a fair amount of variation beyond the standard &. One I have seen and used frequently is what we will call the epsilon ampersand. I was curious if ...
Math Fart's user avatar
1 vote
1 answer
100 views

Make a \code{...} macro that nerfs as many special chars as possible

This is related to Simplify the use of ampersand & in glossaries description, but having read those answers and tried something based on them, I'm finding it still doesn't work for my case. ...
Quuxplusone's user avatar
6 votes
2 answers
2k views

Ampersand inside new command, tabular environment

I'm trying to define a macro for table headers but unfortunately I'm far from a TeX expert. I should split a list that is delimited with ampersands, format the entries and concatenate it again with ...
CrisX's user avatar
  • 63
2 votes
2 answers
78 views

Says misaligned &. Not sure why

\[ P\{\text{ever enter}\ j\rvert \text{start in}\ i\} = P\bigg\{\bigcup_{n=0}^{\infty} \{X_n = j \bigg\rvert X_0 = i \bigg\} & \leq \sum_{n=0}^{\infty} P\{X_n = j \rvert X_0 = i\} & = \sum_{n=...
Adrian's user avatar
  • 31
3 votes
1 answer
578 views

Simplify the use of ampersand & in glossaries description

I use the ampersand in the body of my these when I need to say "and"… often, you can imagine! After open my document, I use: makeampletter \def\makeampletter{\catcode`\&11\relax} If I need to ...
Zouib's user avatar
  • 857
8 votes
2 answers
540 views

Suppress ampersand in external text

I am going to create a number of letters by using the datatool package to import data from external files. Everything works smoothly except getting the company names correct as these may contain ...
Jesper's user avatar
  • 125
1 vote
1 answer
329 views

How to change ampersand's font in formula?

I have the formula, which contains ampersand symbol: $x_1\&x_2$ But ampersand symbol is too bold. How to fix it? \usepackage[main=russian,english]{babel} % Загружает пакет ...
Gikas's user avatar
  • 113
2 votes
2 answers
1k views

How to keep ampersand in a different font?

\documentclass[a4paper,12pt]{article} \usepackage{amsmath} \usepackage[T1]{fontenc} \usepackage[math]{iwona} %nice font \renewcommand{\mathsterling}{\textrm{\textsterling}} \usepackage{hyperref} \...
Chen Stats Yu's user avatar