10

I'm trying to use \cdotas a dummy for a function argument in the following expression

C(\cdot\mid\mathcal{F}_{t-1}) 

However, the above produces more space to the right of the dot than to the left. I'd like the spacing to be symmetrical. I've tried using {}on either side but haven't been able to get the desired result.

3
  • This question is quite similar. Maybe it answers your question too. Commented Aug 17, 2015 at 8:45
  • 1
    The trouble is not with \cdot but with \mid, which is a relation. You would get equal (but small) spacing using {\mid}, but I wouldn't suggest that. Isn't C(\,\cdot\mid\mathcal{F}_{t-1}) enough? Commented Aug 17, 2015 at 8:45
  • That is better but still not perfectly symmetrical. Perhaps it would be better to use an alternative to \mid that isn't a relation. I'm just not sure such a thing exists. Commented Aug 17, 2015 at 8:48

1 Answer 1

17

Since you want to use the blank next either between an opening atom (the open parenthesis) and a relation atom (\mid) or between a relation atom and a closing atom, you can define \blank to be a relation symbol:

\documentclass{article} \newcommand{\blank}{\mathrel{\;\cdot\;}} \begin{document} $C(\blank \mid F_{t-1})$ $C(x \mid \blank)$ \end{document} 

The trick is that TeX doesn't add space in cases

Open Rel Rel

or

Rel Rel Close

enter image description here

3
  • If \blank is to be used in a different context, such as “blank+x”, then {\blank}+x should do. Commented Aug 17, 2015 at 9:10
  • Why not just make the widened \cdot an ord here? Then it would be in the same category as x. Commented Aug 20, 2015 at 12:10
  • @AndrewSwann The spacing would be asymmetric. It would be right if instead of \mid a comma was used. Commented Aug 20, 2015 at 15:12

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.