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 [ampersand]

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

2
votes
1answer
42 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 &...
0
votes
1answer
40 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} \...
1
vote
1answer
88 views

Ampersand in Sourcemap for BibTex

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 ...
5
votes
3answers
102 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 & ...
4
votes
1answer
406 views

Ampersand 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{}?
0
votes
1answer
81 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} \...
0
votes
0answers
41 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 ...
1
vote
3answers
205 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 ...
10
votes
4answers
574 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 ...
1
vote
1answer
406 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 \...
5
votes
1answer
199 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 ...
2
votes
2answers
78 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 ...
3
votes
1answer
190 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)...
0
votes
1answer
50 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 ...
0
votes
1answer
182 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} \...
2
votes
1answer
473 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 ...
1
vote
1answer
252 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: \...
6
votes
2answers
1k 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 ...
0
votes
1answer
49 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. ...
5
votes
2answers
935 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 ...
2
votes
2answers
67 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=...
3
votes
1answer
272 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 ...
8
votes
2answers
300 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 ...
1
vote
1answer
145 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} % Загружает пакет ...
2
votes
1answer
407 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} \...
1
vote
0answers
98 views

How to change “and” to ampersand, & in citations using BibDesk? [duplicate]

So I have TeXShop for mac, and this comes with BibDesk. Have used BibDesk to create a database with all my references in, and am using this with TeXShop in my LaTeX document. My advisor wants me to ...
3
votes
2answers
1k views

Ampersand symbol algorithm environment

How to make a "normal" looking ampersand symbol within the algorithm environment? I'm using \& but this results in a strange looking character as shown below: Here is a minimal example how I use ...
8
votes
3answers
625 views

Changing the alignment character (default: &) in tabular-like environments

I want to define a simple tabular environment that treats spaces as the column separators. So something like a b c d should be treated as a & b & c & d. I've tried using \StrSubstitute but ...
2
votes
1answer
928 views

Escaping ampersand inside of a variable within \multicolumn text

I am using PHP to generate a Tex file, and am passing several variables into a template file to be rendered. I want to create a table with several columns, but with a header that spans those columns. ...
5
votes
1answer
515 views

Beamer and ampersands (XeLaTeX)

There are some known problems with ampersands and beamer (as discussed here, for instance), but I haven't been able to find a good reference... Anyway, the concrete problem I have is with tables (...
3
votes
2answers
1k views

How to underline in math mode with ampersand anchor?

When I use the ampersand & in align for positioning I loose the underline function. Is there a (simple) way of underlining the last math line completely? \documentclass[14pt,a4paper,headlines=6,...
1
vote
1answer
1k views

Adding the character & in LaTeX table [duplicate]

My question is easy but I currently haven't the response. How can I add the "&" as a normal char inside a table row? If I try to use $&$, I have an error.
6
votes
1answer
214 views

Optional arguments and &

I defined a simple diagram environment with \usepackage{tikz-cd} \newenvironment{diagram} { \begin{equation}\begin{tikzcd} } { \end{tikzcd}\end{equation} } and it worked fine. In particular ...
11
votes
3answers
1k views

Using & in macro abstracting a tabular's row

I am attempting to create a macro for table rows. This will allow me to change the order of the columns in the future, without having to change the order of the columns in every single row. I have ...
2
votes
3answers
2k views

Using “and” instead of ampersand in natbib in-text citations (“\citet”)

My bibliography compiles well, excerpt that for multiple authors with in text citations, an '&' is displayed, instead of a required 'and'. All solutions on this site I've found so far have failed. ...
6
votes
1answer
169 views

Redefine @ for tabular inter-column specification within \makeatletter \makeatother

I need to use a tabular with a @ inter-column specification within a \makeatletter and \makeatother environment. I. e. I something like \makeatletter %code that uses @ as letter \begin{tabular}{c@{}c}...
4
votes
2answers
837 views

Why does horizontal space after ampersand becomes less?

Why does the space after the equals sign becomes less if I use the lower code, i.e., if I put ampersand after equals sign? \begin{align*} A&=B \end{align*} \begin{align*} A=&B \end{align*}
2
votes
1answer
399 views

ConTeXt: Substitute em-dash for double-hyphens

Background I am trying to substitute an em-dash for double-hyphens (--) whenever they occur in user-generated text. The fonts that I am using (Chivo and Gentium Basic) result in double-hyphens added ...
74
votes
4answers
26k views

What does a double ampersand (&&) mean in LaTeX?

I've seen several answers that use the double ampersand, but I can't figure out exactly what it does. I tried this out: \begin{align*} \frac{3x + y}{7} &= 9 & \text{given} \\ 3x + y &...
11
votes
3answers
592 views

Cannot use ampersand as argument in user defined command with optional arguments

I'm trying to produce a command for an equation that may or may not be used inside an align element, and therefore sometimes needs a & next to the = to align the equation. I therefore defined the ...
3
votes
2answers
462 views

Using a bib key containing an ampersand (e.g 2000A&AS..143..391S) in table?

I am currently stuck with this issue. The following is a typical .bibtex entry of a paper that I need to reference: @ARTICLE{1996A&A...307L..41V, author = {{Vink}, J. and {Kaastra}, J.~S. and ...
11
votes
1answer
1k views

Change how to enter a matrix in Latex

In Matlab I can create a matrix by typing A = [1 2 3; 4 5 6; 7 8 9], for this the space is a delimiter between the entries of the matrix. I am wondering if there is a package which makes it possible ...
5
votes
2answers
506 views

Transforming string into tabular row

Trying to have a command converting a string into a (tabular) row, where each cell of the row is (a function of) each character of the string. (\tilerow is my attempt, \tiletext is just for debugging)....
14
votes
2answers
6k views

What does ampersand equals mean?

On the wikipedia page: http://en.wikipedia.org/wiki/LaTeX, the first example is \begin{align} E &= mc^2 \\ m &= \frac{m_0}{\sqrt{1-\frac{v^2}{c^2}}} \end{align} ...
88
votes
1answer
282k views

How do I use '&' literally in LaTeX? [duplicate]

Possible Duplicate: How to look up a symbol? Escape character in LaTeX In the itemize environment, how do I use the ampersand symbol & without LaTeX trying to use it as a command?
1
vote
1answer
517 views

Small font size for ampersand

I want & symbol in small font size. But \small{\&} produces italicized ampersand symbol like here. How can I get the small fontsize & symbol? Edit: figured out that, the italics was ...
13
votes
1answer
742 views

Using tikzcd in newcommand (for inline arrows)

I’m using tikz-cd for diagrams, and have a medium-sized diagram that I want to re-use several times. However, when I try using a definition like: \newcommand{\myarrow}{$\begin{tikzcd} A \ar{r} & ...
2
votes
0answers
192 views

tikz matrix and beamer [duplicate]

Possible Duplicate: Unknown error using tikz matrix of nodes in beamer I would put the following figure in a beamer slide I tried with [ampersand replacement=\&] but it does not work \...
11
votes
2answers
1k views

Substitute italic ampersand with alternative ampersand in Linux Libertine O

Based in this answer I want to create a command \amper that uses the alternative ampersand of Linux Libertine O and leaves the regular \& alone. The problem with the MWE below is that hyperref ...
7
votes
2answers
689 views

Replacing ampersands in argument

I am trying to define a command which takes as an argument a string containing ampersands, and replaces every ampersand by a space. Following the ideas in Replacing characters in argument strings, I ...