Message Boards Message Boards

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

Multiple line text input in Graphics

Posted 1 year ago

Hello,

I want to have a single text input that is displayed on multiple lines. For example,

Graphics[Text[A,B]]

to display

A

B.

instead of

AB

Should be really simple but I can't find the right syntax.

POSTED BY: Ethan Welch
3 Replies

One more way:

Text["A\nB"]
POSTED BY: Henrik Schachner

Yoou can simply use Column:

Text[Column[{A,B}]]
POSTED BY: Gianluca Gorni

Another way if A and B are symbols representing strings:

Text[A<>"\n"<>B]
POSTED BY: Gareth Russell
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