Latex Includegrapichs and itemized linespace - latex

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.

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}

avoiding transparent caption in beamer/latex

I am trying to insert a figure but its caption is transparent in the current page. how to prevent this? many thanks in advance.
\documentclass{beamer}
\usetheme{Ilmenau}
\setbeamercovered{transparent}
\setbeamercolor*{item}{fg=blue}
\usepackage{caption}
\captionsetup{font=scriptsize,labelfont=scriptsize}
\usepackage{hyperref}
\hypersetup{urlcolor=blue}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\title{DNA - Computing}
\author{Aleyna Acikyol \& Alina Grahic
}
\begin{document}
\begin{frame}[plain]
\maketitle
\end{frame}
%5 FOTO
\begin{frame}{Probleme heutiger Computer (3)}
%\begin{enumerate}
% \item \textcolor{blue}{Transistoren:}
\begin{itemize}
\item \textcolor{blue}{Transistoren:}
\begin{itemize}
\item kleiner geht nicht
\item Ausgleich mit Multicores /Multiprozessorsysteme
\end{itemize}
\end{itemize}
\pause
\begin{figure}
%\begin{itemize}
\begin{columns}
\column{0.50\linewidth}
\centering
\includegraphics[height=3cm, width=3cm]{./5.jpg}\caption{diverse Datenträger im Privatgebrauch}
\column{0.50\linewidth}
\centering
\includegraphics[height=3cm, width=3cm]{./5.2.jpg}\caption{Data Centre, Cloud}
\end{columns}
%\end{itemize}
\end{figure}
%\end{enumerate}
\end{frame}
\end{document}
It looks like
The caption is transparent because you are using \setbeamercovered{transparent}. You have two options to avoid the transparent caption:
immediately show the images and caption by avoid the \pause in front of them
switching to \setbeamercovered{invisible} either temporarily or for the whole presentation to delay the images and caption to the next overlay:
\documentclass{beamer}
\usetheme{Ilmenau}
\setbeamercovered{transparent}
\setbeamercolor*{item}{fg=blue}
\setbeamerfont{caption}{size=\scriptsize}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\title{DNA - Computing}
\author{Aleyna Acikyol \& Alina Grahic
}
\begin{document}
\begin{frame}[plain]
\maketitle
\end{frame}
%5 FOTO
\begin{frame}
\frametitle{Probleme heutiger Computer (3)}
%\begin{enumerate}
% \item \textcolor{blue}{Transistoren:}
\begin{itemize}
\item \textcolor{blue}{Transistoren:}
\begin{itemize}
\item kleiner geht nicht
\item Ausgleich mit Multicores /Multiprozessorsysteme
\end{itemize}
\end{itemize}
{
\setbeamercovered{invisible}
\pause
\begin{figure}
%\begin{itemize}
\begin{columns}
\column{0.50\linewidth}
\centering
\includegraphics[height=3cm, width=3cm]{example-image-duck}\caption{diverse Datenträger im Privatgebrauch}
\column{0.50\linewidth}
\centering
\includegraphics[height=3cm, width=3cm]{example-image-duck}\caption{Data Centre, Cloud}
\end{columns}
%\end{itemize}
\end{figure}
%\end{enumerate}
}
\end{frame}
\end{document}
Some other comments:
you don't need \usepackage{hyperref}, beamer already loads it
I'd be wary to use \hypersetup{urlcolor=blue} with beamer, this can lead to strange alternations to the carefully constructed colour themes of beamer in places one would never expect
If your tex distribution was updated within the last 5 years or so, you don't need \usepackage[utf8]{inputenc}, that's now the default
If you just want to change the font size of the caption, you don't actually need the caption package, beamer has its own mechanism to control the size of captions
Instead of \begin{frame}{...} I would use \frametitle{...}. That's much more flexible and powerful
If you specify both the width and height of your images, they will end up distorted. Please consider adding the keepaspectratio option to avoid this
to avoid manually repeating the same frame title several times ("Probleme heutiger Computer (3)") you could use overlays and add the slide in frame counter to the frametitle

Using itemize inside of equations

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}

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}

Resources