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}
Related
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}
I'm trying to customize my itemize list in a Beamer slide using the noitemsep and topsep settings available in the enumitem package. However, using enumitem with Beamer causes the bullet points to disappear (images attached below). I also came to know that enumitem isn't really compatible with Beamer, and should not be used alongside the enumerate package, but I can't figure out what alternatives are available for my use case.
When I don't use enumitem
\begin{frame}
\begin{itemize}
\item Apples
\item Oranges
\item Bananas
\end{itemize}
\end{frame}
Output (contains bullet points):
When I use enumitem:
\usepackage{enumitem}
\begin{frame}
\begin{itemize}[noitemsep]
\item Apples
\item Oranges
\item Bananas
\end{itemize}
\end{frame}
Output (the bullets have disappeared):
Any hints regarding what settings I should use with enumitem when using Beamer, or what other alternative packages I can use (which is more compatible with Beamer) which can fulfill my objective, would be greatly appreciated.
Don't use enumitem with beamer, it is not compatible.
You can adjust the spacing in various ways, either locally or globally.
\documentclass{beamer}
\begin{document}
\begin{frame}
text
\vskip-1ex
\begin{itemize}
\addtolength{\itemsep}{-1ex}
\item Apples
\item Oranges
\item Bananas
\end{itemize}
\end{frame}
\end{document}
\documentclass{beamer}
\usepackage{xpatch}
\xpatchcmd{\itemize}
{\def\makelabel}
{%
\addtolength{\itemsep}{-1ex}%
\def\makelabel%
}
{}
{}
\BeforeBeginEnvironment{itemize}{\vskip-1ex}
\begin{document}
\begin{frame}
text
\begin{itemize}
\item Apples
\item Oranges
\item Bananas
\end{itemize}
\end{frame}
\end{document}
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}
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}
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.