Linked Questions

1
vote
0answers
87 views

\colon vs : in class terms

Resuming Using \colon or : in formulas? and Set notation: \colon vs :, let us take a look into Knuth's TeXbook on p. 174: $\{\,x\mid x>5\,\}$ { x | x > 5 } $\{\,x:x>5\,\}$ { x : x &...
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
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.
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 ...
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 ...
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]{...
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 ...
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 ...
1
vote
0answers
85 views

Modify `\funcdef` macro to use `pgfkeys` instead of `keyval`

I attempted to modify the \funcdef macro from egreg's solution from A macro adding or removing parenthesis automatically to use pgfkeys, but am running into some difficulty (probably related to some ...
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 ...
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 ...
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 ...
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
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} ...
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:& \...

15 30 50 per page