Text Formatting ⇒ Alignment
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
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Alignment
align
-environment provided by amsmath. But somehow i sense you just want to number your equation. You can have the equation number on the left using the option
leqno
.
Code: Select all
\documentclass[leqno]{article}
\usepackage{mathtools}%loads amsmath and provides some patches
\usepackage{blindtext}
\begin{document}
\blindtext
\begin{equation}
\frac{1}{2} = 0.5
\end{equation}
\blindtext
\begin{gather}
\frac{1}{2} = 6 \\
\frac{1}{3} = 4 \label{eq:thirdb12}\\
\frac{1}{4} = 3 \\
\frac{1}{6} = 2
\end{gather}
See \eqref{eq:thirdb12}
\end{document}
Re: Alignment
Also, how do you make it so that there's lower case roman numeral letters on the left, and then regular text on the right, and also it indents so that the text won't go under the roman numeral?
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Alignment
Code: Select all
\documentclass{article}
\usepackage{enumitem}
\usepackage{blindtext}
\begin{document}
\begin{enumerate}[label=\roman*]
\item i am an item
\item i am another one
\item i am a very long one \blindtext
\end{enumerate}
\end{document}
Please, please, read some introductory material. For example LaTeX for complete novices by Nicola Talbot.
This gives you a good starting point.
For further questions, please be more specific and try to run a basic google search.
Re: Alignment
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Alignment
Re: Alignment
Thanks!
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Alignment
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
Alignment
Code: Select all
\documentclass{article}
\usepackage{enumitem}
\usepackage{blindtext}
\begin{document}
\begin{enumerate}[label=(\roman*),align=left]
\item i am an item
\item i am another one
\item i am a very long one \blindtext
\end{enumerate}
\end{document}
-
- Posts: 3
- Joined: Wed Sep 24, 2014 9:15 am
Alignment
Code: Select all
\documentclass{article}
\usepackage{lipsum}
\newcommand\textbox[1]{%
\parbox{.333\textwidth}{#1}%
}
\begin{document}
\noindent Left longer sample simple text\hfill Center?\hfill Right
\noindent\textbox{Left longer sample text\hfill}\textbox{\hfil Center\hfil}\textbox{\hfill Right}
\noindent\lipsum[2]
\end{document}