TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I managed to successfully hack mathspec to use parentheses () and brackets [] from the specified font via e.g.


Obviously, I'd like to do the same thing with braces {}, but \DeclareMathSymbol{\{}... causes XeLaTeX to throw the following error:

! Latex Error: Command '\{' already defined.

I was half-expecting this to happen all along to be honest. Does anyone know how to make this work?

share|improve this question
Could you please add a minimal working example (MWE) that illustrates your problem? (I.e. what font are you trying to use? Does it provide large math delimiters?) I have tried to answer some of your question in lieu of this information. – mforbes May 8 '12 at 2:33
@mforbes Sorry, I guess I could've been clearer with my question. No, the font doesn't provide large delimiters which is why I thought I shouldn't use \DeclareMathDelimiter. I'm just looking to replace the basic-sized ones. Relevant code: \usepackage{eulervm} \usepackage{mathspec} \setmathfont(Digits)[Numbers={Lining,Proportional}]{Optima nova LT Pro} I've hacked mathspec.sty itself to include brackets as "Digits". – Saran May 8 '12 at 10:42
If you really want to use \DeclareMathSymbol, you can always just \let\lbrace\relax, but I still think you should use \DeclareMathDelimiter: LaTeX needs to know what to do in the case of delimiters: maybe fallback to Euler? I must admit I am having difficulty doing that though. \DeclareMathDelimiter will automatically set the symbol too. – mforbes May 8 '12 at 19:19

If you want to modify the delimiters, you should use \DeclareMathDelimiter instead of \DeclaraMathSymbol so that you can specify both the small and large symbols.

Here is a simple example that changes the left brace to a left parenthesis:


You will need to figure out the slots that contain the appropriate small and large version of the symbol in your desired font if it does not follow a standard encoding.


share|improve this answer
How do I find the correct slots? – Henri Menke Jan 3 '15 at 12:10
@HenriMenke The only way I know is either to look in a *.sty file (see this question) or to just try cycling though the characters to see what they look like. – mforbes Jan 3 '15 at 19:17

Your Answer


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.