Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I want to create a new environment, which is like minipage, but can cross 2 or more lines as the image showed. I am trying to use several environment such as minipage, tabular, varwidth, but they all seemed can't expand from a line to another. I also like this environment has a regualr line height, and can expand width automatically based on the input inside. anyone can help here? thanks a lot!

Please see an example here.

Sorry I didn't make it clear. Here is an example - it's more like to compress a long sentence into an inline box but as 2 lines format, and meanwhile, this box can expand automatically if there is a lot of words inside.

share|improve this question
Welcome to TeX.sx! – hpesoj626 Jan 24 at 3:13
To me it is not clear at all what you're after. You can create an environment that allows for text to break at the text block boundary. Just don't wrap the contents in a block (like minipage, tabular, or the like). Can you describe a bit more what you're after? – Werner Jan 24 at 3:57

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.