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 managed to successfully hack mathspec to use parentheses () and brackets [] from the specified font via e.g.

\DeclareMathSymbol{]}{\mathord}{\eu@DigitsArabic@symfont}{`]}

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
1  
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
add comment

1 Answer 1

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:

\DeclareMathDelimiter{\lbrace}{\mathopen}{operators}{"28}
                                         {largesymbols}{"00}

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.

References

share|improve this answer
add comment

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.