0

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 seemingly endorsed by the tex.SX community, as I have seen it being used multiple times in different questions) or writing it as \{x\in A \colon P(x) \}. This is the way LaTeX-companion proceeds.)

4
  • 7
    This is either a duplicate of or heavily related to tex.stackexchange.com/q/37789 – cgnieder Apr 11 '16 at 19:09
  • A more general input would be \set{x \in A\given P(x)}, which would let you decide afterwards the look you want. Not answering the question, but would definitely help in case you need to change the output at the end. If you don't like that whole input, just defining \def\given{:} would be enough \{x\in A\given P(x)\} and you can change the definition whenever you want \def\given{\colon}, or even \def\given{\mid}. – Manuel Apr 11 '16 at 19:12
  • I'd prefer :, but others prefer \colon: just be consistent. – egreg Apr 11 '16 at 19:57
  • Thanks for all the info (@Manuel nice/elegant idea, thanks!). Weird how I missed the duplicate question, usually I try not to post question that already have an answer. – l7ll7 Apr 13 '16 at 10:56

Browse other questions tagged or ask your own question.