3

I am not sure why I need to go into math mode to accomplish inline, bracketed, stacked text. Are there other options that I am missing?

example: inline, bracketed text

\documentclass[11pt]{article}
\usepackage{stackengine}
\begin{document}

La lettre représentative
$\left\{\Centerstack[l]{{d’un point} {d’une droite}}\right\},$
mise entre

\end{document}

Thanks in advance.

7
  • 2
    stretchy {} are a math mode feature so any solution witll use math mode internally, although of course it could be hidden so you do not explicitly use math mode markup in the document. you could of course use tabular for the central part you don't need any package here. – David Carlisle May 18 at 18:09
  • 1
    I agree with David. Your title maligns stackengine, when the issue is not stackengine (which stacks in text mode by default), but the need for stretchable braces in text mode. – Steven B. Segletes May 18 at 18:34
  • As far as I know, droite is feminine, so d’une droite. – egreg May 19 at 8:49
  • @egreg much appreciated! – Jeff Higgins May 19 at 11:37
  • @StevenB.Segletes I hope it wasn't so much my title which maligned stackengine as the opening line of my question. I have edited said line. No offense intended. – Jeff Higgins May 19 at 11:44
4

If it is something you use often, just absorb it into a macro definition.

\documentclass[11pt]{article}
\usepackage[usestackEOL]{stackengine}
\newcommand\textstack[1]{$\left\{\Centerstack[l]{#1}\right\}$}
\begin{document}

La lettre représentative
\textstack{d’un point\\d’un droite},
mise entre

\end{document}
4

You could use delarray to avoid explicit math markup, although any solution using stretchy delimiters will be using math internally.

enter image description here

\documentclass{article}

\usepackage{delarray}

\begin{document}


La lettre représentative
\begin{tabular}\{{@{}l@{}}\}d’un point\\d’un droite\end{tabular},
mise entre


\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.