TransWikia.com

Provided Definition and Example with an Outdent/Aligned text

TeX - LaTeX Asked on September 27, 2021

I am not sure what to even search or how to describe what I’m trying to do here. I’m trying to do a definition-example type of thing. Here’s an example:

enter image description here

For the Term definition part, I am using paragraph{} and subparagraph{} type thing, with the Term part in the brackets. If anyone has a better idea for that, please let me know.

My big issue is with the example part. I have no idea how to make the text line up on the right (for the first example). There’s my first question.

The second is with the second example that I gave, namely with the dialogue. I was going to use the information in this post to make the dialogue. However, I have no idea how to put the Example: part in and have the dialogue indented in the proper fashion.

I have a feeling that these have to do with the minipage package, but I have so little experience with it, I have no idea how I’d do this.

Additional information:

  • I may want to include multiple examples (and multiple types of examples) under a single term.
  • The document is organized by section-subsection organization, including paragraphs and subparagraphs, so indentation might change for different terms.

Another example could be something like this:
enter image description here
where the term is on the left and all of the text is aligned on the right. But again, I have no idea how to make that kind of "outdented" and aligned text on one side, regardless of what is on the left.

By the way, these were all made in MS word because I can’t figure out how to render like this in LaTeX.

One Answer

The description environment fit my needs using an article doument class.

See this link, suggested by @leandriis above, which pointed me to the right package: the enumitem package. Documentation can be found here.

Correct answer by Publius on September 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP