Text FormattingPlacing text with tabs, aligning or with tables without numbering

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Placing text with tabs, aligning or with tables without numbering

Post by Ijon Tichy »

Es_dutch wrote:\item[Hypothesis 3a:] \lipsum[1]
Ijon Tichy wrote:if you intend to do the labeling of the list yourself instead of automatically, you should try my first solution.
The first solution was the usage of the KOMA-Script environment labeling. And please read the manual of the used package.

However you can indeed change the automatic label of the hyphothesis environment:

Code: Select all

\documentclass{article}
\usepackage{lipsum}
\usepackage{enumitem}
\newlist{hypothesis}{enumerate}{2}
\setlist[hypothesis]{label={Hypothesis~\arabic{*}:},labelsep=1em,leftmargin=*}
\begin{document}
\lipsum[1]
\begin{hypothesis}[label={Hypothesis~3\alph{*}:}]
\item\lipsum[1]
\item\lipsum[2]
\item\lipsum[3]
\end{hypothesis}
\end{document}
Or define a subhypothesis environment.

Alternatively you could also do the labeling of the hypothesis environment manually, but change the leftmargin value suitable.

Code: Select all

\documentclass{article}
\usepackage{lipsum}
\usepackage{enumitem}
\newlist{hypothesis}{enumerate}{2}
\setlist[hypothesis]{label={Hypothesis~\arabic{*}:},labelsep=1em,leftmargin=*}
\usepackage{showframe}
\begin{document}
\lipsum[1]
\begin{hypothesis}[leftmargin=7.5em]
\item[Hypothesis 3a:] \lipsum[1]
\item[Hypothesis 3b:] \lipsum[2]
\item[Hypothesis 3c:] \lipsum[3]
\end{hypothesis}
\end{document}
So once again: Please read the manual of the used package!
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Es_dutch
Posts: 8
Joined: Fri Apr 24, 2020 9:35 pm

Placing text with tabs, aligning or with tables without numbering

Post by Es_dutch »

Thank you for your reply and sharing your knowledge with me.
I will read the documents of the packages! I tried your first solution and it works so thank you.
Post Reply