Using itemize inside of equations - latex

I want to use an item list inside of an equation, so the whole list only gets referenced as a whole equation.
If I just use itemize and put my equations in each of the items I will get a reference for each of the equations instead of all of them. Think of it as you wanted to write down some properties of some function and want to reference the properties in general.
The following examples are not working like they should:
\begin{document}
\begin{itemize}
\item[(i)] $Bla$
\item[(ii)] $Bla bla$
\item[(iii)] $Bla bla bla$
\end{itemize}
\end{document}
Theres just no reference at all.
\begin{document}
\begin{equation}
\begin{itemize}
\item equation1
\item euqation2
\end{itemize}
\end{equation}
\end{document}
This just gives an error, because itemize is used inside an equation.
Hope someone can help with that.

Based on https://tex.stackexchange.com/a/225100 you could something like this:
\documentclass{article}
\usepackage{mathtools}
\newcounter{mysubequations}
\renewcommand{\themysubequations}{(\roman{mysubequations})}
\newcommand{\mysubnumber}{\refstepcounter{mysubequations}\themysubequations}
\begin{document}
\begin{equation}
\begin{aligned}\setcounter{mysubequations}{0}
\mysubnumber\quad &equation1\\
\mysubnumber\quad &equation2\\
\mysubnumber\quad &equation3\\
\end{aligned}
\label{key}
\end{equation}
\ref{key}
\end{document}

Related

Equation and bulleted list

I would like create an bulleted list that contain and equation, how can I do? I have tru this but is not working and it gives me error. The package is already present in the code
\usepackage{amsmath}
\begin{itemize}
\begin{align*}
\item X_i it is a ...
\end{align*}
\end{itemize}
This is my base:
https://it.overleaf.com/latex/templates/template-lucas/tnzgmxxqppwh
Your items seem to be mainly normal text, so I suggest to use inline math for the math parts:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{itemize}
\item $X_i$ it is a ...
\end{itemize}
\end{document}

combination/matrix in latex

I am trying the write something below in latex and what I am trying seems not working well.
\documentclass[10pt,english,8pt]{beamer}
\usepackage{amsmath}
\begin{document}
\begin{frame}
\begin{itemize}
\item Observation equation:
$\begin{pmatrix}
PD_{s,t}\\
RR_{s,t}
\end{pmatrix} = \binom(\gamma_{1}\gamma_{2}) = bla
\end{itemize}
\end{frame}
\end{document}
The syntax \binom(...) is wrong. \binom is a macro with two mandatory arguments, so you need to write \binom{...}{...}.
Some other comments:
the closing $ is missing
personally I would use the pmatrix in both cases to get a more uniform result
combining the 10pt and 8pt class options makes not much sense, they are mutually exclusive. Decide which of the two options you want and then use only this option, not both
you don't need to load amsmath, beamer loads it automatically
\documentclass[english,8pt]{beamer}
\begin{document}
\begin{frame}
\begin{itemize}
\item Observation equation:
$\begin{pmatrix}
PD_{s,t}\\
RR_{s,t}
\end{pmatrix} = \binom{\gamma_{1}}{\gamma_{2}} = bla
$
\end{itemize}
\end{frame}
\end{document}

Tagged text (much like the tagged equation)

I know how to introduce a tagged equation:
\begin{equation}
\tag{P}
x = 1 + 2
\end{equation}
Is there a simple way to achieve the same but with the regular text instead of math formulas. Mainly I'd like to have the same layout and the tag. Something like
\begin{equation}
\tag{P}
\text{some text}
\end{equation}
is not what I need because in this case there are no line breaks in case if the text is large enough.
You can have line breaks with your approach if you add something like a parbox or minipage:
\documentclass{article}
\usepackage{amsmath}
\usepackage{lipsum}
\makeatletter
\newcommand{\fleqnon}{\#fleqntrue}
\makeatother
\begin{document}
\lipsum[1]
{\fleqnon\begin{equation}
\tag{P}
\text{\parbox{.91\textwidth}{\lipsum[2]}}
\label{foo}
\end{equation}}
\lipsum[1]
\ref{foo}
\end{document}

Aligning numbered paragraphs

I am trying to cross reference some numbered paragraphs. I am using \numpar but the first one always is off aligned. (\item didn't work)
Here is what I did:
\section{First section}
\subsection*{Subsection1}
\numpar\label{A1} blablabla1
\numpar\label{A2} blablabla2
\numpar\label{A3} blablabla3
\section{Second section}
Statement \ref{A2} = 2 must be true.
which results in:
I need all numbers to be aligned without affecting on unnumbered paragraphs. I am open to other commands instead of \numpar if any. Any advice is appreciated.
Why don't you use enumerate? It is done for that kind of problem.
\documentclass{article}
\begin{document}
\section{First section}
\subsection*{Subsection1}
\begin{enumerate}
\item \label{A1} blablabla1
\item \label{A2} blablabla2
\item \label{A3} blablabla3
\end{enumerate}
\section{Second section}
Statement \ref{A2} = 2 must be true.
\end{document}
If required, you can customize the appearance with the enumitem package.
For instance, to increase the indentation, load the package, and start enumerate with :
\begin{enumerate}[leftmargin=3cm]`
Many options in the enumitem package and it can certainly fit your needs.
Edit:
Note that \item will indent anything that is after it. If you dont want this behavior, close the enumerate before your paragraph. Then you can restart the enumerate, but you must take care of the item numbering (see below).
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\section{First section}
\subsection*{Subsection1}
\begin{enumerate}
\item \label{A1} blablabla1
This paragraph will be indented
\end{enumerate}
But this one will not.
\begin{enumerate}\setcounter{enumi}{1}
% This insures that item numbering will be coherent
% set it to the value of the last item
% If using the enumitem package, there is a simpler way with 'resume'
% \begin{enumerate}[resume]
\item \label{A2} blablabla2
\item \label{A3} blablabla3
\end{enumerate}
And another non indented par
\section{Second section}
Statement \ref{A2} = 2 must be true.
\end{document}

Latex Includegrapichs and itemized linespace

I want to make a \newline after the \item[L1] to make it seem like a header to the picture and not on the bottom left side. Help?
\section{Labbuppgifter}
\begin{itemize}
\item[L1]
\includegraphics[width = 0.6\linewidth]{L1.jpg}
\end{itemize}
\end{document}
Use \mbox{} to set a blank entry for \item[L1], followed by a paragraph break (an empty line) and then you can set your image.
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\section{A section}
\begin{itemize}
\item[L1] \mbox{}
\includegraphics[width = 0.6\linewidth]{example-image}
\end{itemize}
\end{document}
Of course, there are multiple other ways of achieving this. More detail in the question might provide more specific solutions.

Resources