Linked Questions

12
votes
1answer
1k views

What spacing around colon in function notation? [duplicate]

Is there some standard for which spacing is to be preferred in the f: X -> Y notation for a function? Three possibilities: $f \colon X \to Y$ \\ $f: X \to Y$ \\ $f \mathpunct{:} X \to Y$ The ...
1
vote
1answer
3k views

Why are \colon and \mathpunct{:} not equivalent? [duplicate]

According to this answer, \colon is of type \mathpunct. But in the MWE below, the outputs of the two lines are not identical. Why not? \documentclass{article} \usepackage{amsmath} \begin{document} ...
0
votes
0answers
315 views

Set notation: \colon vs : [duplicate]

Does the definitive way to write the colon, when writing sets in the form \{x\in A : P(x) \} exist and if there is one, which is it? (Two approaches exist. Either writing it as I just did (this is ...
1
vote
0answers
139 views

How to typeset a math function from and to a domain [duplicate]

Possible Duplicate: Using \colon or : in formulas? Currently I use f\colon A \to B to define a function map. I do not know whether this is better than f:A \to B What's the best way? ...
46
votes
2answers
13k views

How to change default for spacing around binary relations?

In TeX and LaTeX, the math binary relations (like =, \parallel, <, \le ...) have a default (rubber-length) spacing to either side, which is too large for my liking. How can reduce it?
2
votes
3answers
5k views

How to write notation of "set of real numbers" in LaTex? [duplicate]

How to write this maths symbol below: I search in enter link description here, but it said \R and $\R$ but is not working.
3
votes
0answers
7k views

function definition: $\to$ plus $\mapsto$ [closed]

I know that one should use $f\colon A\to B$ instead of $f: A\to B$ Now I am wondering how one should write the declaration of domain and codomain of a function (i.e. f: A --> B) together with the ...
7
votes
1answer
660 views

\typecolon is a \mathbin; it should be \mathrel

In unimath-symbols.pdf, the open colon ⦂ (U+02982), called the Z notation type colon, is declared as \mathbin. As far as I know, you use this type colon as demonstrated in the following example. The ...
5
votes
1answer
287 views

Equation alignment creating unwanted space

I am defining some text in a align, but no matter how i place the & symbol to create the alignment i get a space between the first chars. \begin{align*} H_0:& \text{Something.}\\ H_1:& \...
3
votes
2answers
459 views

Customize counter using tcolorbox?

By now I've spend a lot of hours to find a way to customize the "Counter" inside tcolorbox package. I wanted to put a definition in a tcolorbox as below. In order to get this formation for ...
2
votes
3answers
557 views

Forcing LaTeX to adjust ':' spacing to match \colon

As discussed here, mathematical functions should be defined using \colon, while set definitions should be done using :. My problem is that I define functions about twenty times more often that I ...
1
vote
1answer
465 views

Customising enumerate lists - Problem with adding colon

I am trying to add a colon after item number in enumerated list but this produces an error. Here is my normal MWE: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc}% \usepackage[T1]{...
4
votes
0answers
283 views

Where does not TeX make correct spacing and formatting in math formulas automatically?

I am writing book with a lot of math formulas. I am interested to print them correctly according to typography rules, Knuth's recommendations or AMS-society's recommendations. I saw in this question ...
4
votes
1answer
62 views

Spacing in \colon

Following this question the consistent way to write a function is f\colon A\to B, but if I want to write a cospan like the following \documentclass[border=1mm]{standalone} \usepackage{mathtools} \...
2
votes
2answers
88 views

How do I change the way the colon is typeset?

In math, I exclusively use the colon : for punctuation, i.e. in the sense of \colon (compare this question). Hence I would like to change the way : is being typeset, so that it resembles \colon. Is ...

15 30 50 per page