How can I automatically have a space added before \to iff there is a [ before it?
It's just that
$f\colon]a;b[\to[c;d]$
looks awfully bad...
Thanks!
How can I automatically have a space added before \to iff there is a [ before it?
It's just that
$f\colon]a;b[\to[c;d]$
looks awfully bad...
Thanks!
] is a mathclose by default but you need it to be a mathopen:
\documentclass{article}
\begin{document}
$f\colon]a;b[\to[c;d]$
$f\colon\mathopen]a;b\mathclose[\to[c;d]$
\end{document}
f\colon\mathopen]a;b\mathclose[\to[c;d] instead of f\colon\mathopen{]}a;b\mathclose{[}\to[c;d]? (The same thing as in your answer to another question)
– user227621
Nov 06 '20 at 09:54
\toto includebeing automatically printed as
– Jan 26 '18 at 07:49\newcommand\myto{[~\to}or similar? (it has to be inside math or to be defined as \newcommand\myto{$[~\to$} to be in math mode by itself) (Yiu can redefine it to using\defor\renewcommandinstead of\newcommand) – koleygr Jan 26 '18 at 07:54[\todue to readability.... – Jan 26 '18 at 08:02]\to– Jan 26 '18 at 08:25f\colon\mathopen]a;b\mathclose[\to[c;d]– egreg Jan 26 '18 at 09:05intervalpackage. – egreg Jan 26 '18 at 09:22