summaryrefslogtreecommitdiff
path: root/info/drawing-with-metapost/src/multi-line-labels.mp
diff options
context:
space:
mode:
Diffstat (limited to 'info/drawing-with-metapost/src/multi-line-labels.mp')
-rw-r--r--info/drawing-with-metapost/src/multi-line-labels.mp23
1 files changed, 23 insertions, 0 deletions
diff --git a/info/drawing-with-metapost/src/multi-line-labels.mp b/info/drawing-with-metapost/src/multi-line-labels.mp
new file mode 100644
index 0000000000..497189ed16
--- /dev/null
+++ b/info/drawing-with-metapost/src/multi-line-labels.mp
@@ -0,0 +1,23 @@
+\documentclass[border=0mm]{standalone}
+\usepackage{luamplib}
+\begin{document}
+\mplibtextextlabel{enable}
+\begin{mplibcode}
+beginfig(1);
+label("\vbox{\hsize 4in It is a truth universally acknowledged,"
+ & " that a single man in possession of a good fortune,"
+ & " must be in want of a wife.\par}", origin);
+label(btex \vbox{\hsize 4in
+ It is a truth universally acknowledged,
+ that a single man in possession of a good fortune,
+ must be in want of a wife.
+ \par} etex, 128 down);
+label(btex
+ \begin{tabular}{c}
+ A way to get simple\\
+ two line labels
+ \end{tabular} etex, 256 down);
+endfig;
+\end{mplibcode}
+\end{document}
+