Math & ScienceResizable \prec and \succ

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
meznaric
Posts: 10
Joined: Mon Aug 10, 2009 7:17 pm

Resizable \prec and \succ

Post by meznaric »

The symbols \prec and \succ cannot be used with \right and \left commands. However, I would like them to be in some way automatically resizable in the math environments just like the delimiters (like parentheses etc) are. If anybody knows of a piece of code that lets you do this I would be very grateful.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Resizable \prec and \succ

Post by localghost »

These are simple relation symbols. I wonder about the reason why they should be scalable because I don't see any sense in that.

As far as I know it would need special font metrics to generate scalable versions of these symbols.


Best regards and welcome to the board
Thorsten
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Resizable \prec and \succ

Post by frabjous »

It's not quite the same as having \left and \right, but perhaps you could try the \mathlarger and \mathsmaller commands from the relsize package.
meznaric
Posts: 10
Joined: Mon Aug 10, 2009 7:17 pm

Re: Resizable \prec and \succ

Post by meznaric »

Thanks for the answers. The reason I need to be able to resize \succ and \prec in this way is because I want to use them sort of like parentheses in a special notation. So if I have a fraction inside of these symbols I don't want them to look small - instead I want them to be stretched in the same way as normal brackets would be.

I checked the relsize package and what it does is that it allows you to change the mathematical symbols from say \textstyle to \displaystyle. However, the instructions refer to a package that you can use to size mathematical symbols called exscale. The problem with this package is that it just implements scaling of mathematical symbols with commands like \large etc. It does not change scaling to work with \left and \right.
Post Reply