Message Boards Message Boards

0
|
473 Views
|
3 Replies
|
1 Total Likes
View groups...
Share
Share this post:

[Solved] How to adjust curly brackets or braces within Graphics Text

Posted 2 months ago

As you can see from the code below I haven’t found a proper way to adjust the length of the underbrace to fit the length of the base of the triangle.

If I increase its character size its length will be increased together with its thickness and the result is far from being harmonic. Is there another and more proper way to achieve this result? Thanks

    Graphics[{EdgeForm[Thick], White, Triangle@{{0, 0}, {3, 8}, {10, 0}}, 
      Text[Style[("︸"), Black, FontFamily -> "Vladimir Script", 
        FontWeight -> {Plain, Thin}, 250], {4.5, 1.5}]}]
POSTED BY: Jan Potocki
3 Replies
Posted 2 months ago

Hello

With your solution you underscript the whole graphics and not a brace within the graphics code. I want to add some note below the brace and this cannot be achieved with your code as shown below.

I saw a SpanMaxSize function in the MMA documentation but unfortunately not an single instance of how to use it.

Underscript[
 Graphics[{EdgeForm[Thick], White, Triangle@{{0, 0}, {3, 8}, {10, 0}},
   Text[Style[("c"), Black, Bold, 20], {5.5, -0.5}]}], Style[︸, 100]]

Can it be done ? Thanks

POSTED BY: Jan Potocki
Posted 2 months ago

Here are two ways (of very many):

Column[
 {Underscript[
   Graphics[{EdgeForm[Thick], White, Triangle@{{0, 0}, {3, 8}, {10, 0}}}, ImageSize -> 400],
   Style[\[UnderBrace], 100, FontFamily -> "Vladimir Script"]],
  Pane[Style["comment about triangle", Black, Bold, 20], 385, Alignment -> .2]}]

enter image description here

Graphics[
 {EdgeForm[Thick], White, Triangle@{{0, 0}, {3, 8}, {10, 0}}, 
  Text[Overscript[Pane[Style["comment about triangle", Black, Bold, 20], 385, Alignment -> .2], 
    Style[\[UnderBrace], Black, 100, FontFamily -> "Vladimir Script"]], {5, -.9}]},
 ImageSize -> 400]

enter image description here

POSTED BY: Eric Rimbey
Posted 2 months ago

Maybe try something like this (lots of parameters you can fiddle with here to get exactly what you want):

Underscript[
 Graphics[{EdgeForm[Thick], White, Triangle@{{0, 0}, {3, 8}, {10, 0}}}], 
 Style[\[UnderBrace], 100, FontFamily -> "Vladimir Script"]]

enter image description here

POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract