Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am currently using delimiters (brackets, [ and ], to be precise) as symbols in math equations. Of course, the compilator considers the brackets as delimiters, and the spacing is thus not very pleasant. See for example

$a=]_ib$

against a more aesthetically pleasing (but very ad-hoc)

$a=\ ]_i\,b$

Is there a way to define a command that will print [ and ] as regular symbols (and so add spacing accordingly)?

Before anyones points me to this question, the correct answer in this case was to reverse the order of delimiters. I would like to define them so they are not delimiters at all. I still use regular brackets as delimiters sometimes, so defining a new command would be better (symbols brackets always have an index).

Thanks!

share|improve this question

2 Answers 2

up vote 4 down vote accepted

A math symbol can be turned into an ordinary symbol by just enclosing it in braces. So

$a = {]}_{i}b$

should do what you want. Perhaps you should define your own command:

\newcommand{\orbrack}{{]}}

and type

$a = \orbrack_{i}b$
share|improve this answer
    
Now I feel stupid... Thanks! –  user37673 Apr 29 at 9:55

One method i used to introduce a value þ as a variable is to use a mathbox, eg

\newcommand{\zq}{\mbox{\th}}

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.