I have two images next to each other. The source of these images should be in the footnotes.
So far I got this:
\begin{figure}[h!]
\centering
\includegraphics[width=6.5cm]{images/Oculus_Rift.jpg}
\includegraphics[width=6.5cm]{images/Oculus_Rift_Controller.jpg}
\caption[Oculus Rift]{Oculus Rift\footnotemark (links) und Oculus Touch\footnotemark (rechts)}
\label{img:oculusrift}
\end{figure}
\footnotetext{https://commons.wikimedia.org/wiki/File:Oculus-Rift-CV1-Headset-Front.jpg}
\footnotetext{https://de.m.wikipedia.org/wiki/Datei:Oculus-Rift-Touch-Controllers-Pair.jpg}
However the footnote numbers are not correct
As you can see there are two 3s instead of one 2 and one 3.
What should I do to solve this?
Related
I am using LaTeX for research with hexagonal chains and would like to know some ways to create the a horizontal hexagonal chain. So far I only have some going vertically; I have used code I received on here under a previous question but haven't figured out how to rotate the vertical chain of hexagons to make it horizontal.
Is it possible to use chemfig or tikz to create a chain similar to either of these?
Here is an example with the chemfig package
\documentclass{article}
\usepackage{chemfig}
\begin{document}
\begin{figure}
\centering
\chemfig{*6(--*6(--*6(-----)---)----)}
\caption{Chain of 3 hexagons}
\end{figure}
\end{document}
And the corresponding output
I would like to know what the best way is to split a long image over two pages in latex.
Since it is for a scientific journal I am not really allowed to use external packages.
My idea is currently to create two separate images and add them in latex, with only the last one getting the caption and the first one not included in the numeration.
Is there any way to force the two images to stay close together and not allow any text to be inserted inbetween them? I don't mind having the images placed in some random location but they should obviously not get separated.
Looking forward to some advice.
So I figured out how to do it, based on other answers I found here on stackoverflow:
Caption numbering for continuedfloat
Page Break between images
\begin{figure*}
\centering
\includegraphics[trim={0 41cm 0 0},clip,width=\textwidth]{Images.png}
\phantomcaption
\end{figure*}
\begin{figure*}
\ContinuedFloat
\centering
\includegraphics[trim={0 0 0 64cm},clip,width=\textwidth]{Images.png}
\caption{Lorem Ipsum}
\label{FIG}
\end{figure*}
I have been searching for some automated way of numbering the references on the same slide in beamer Madrid with biblatex. This works fine with \pause and \footcite{}. But when I have multiple bullets on the same slide (e.g. 5), and I want to cite for the last point, the problem is that the reference appears from the very first slide. I want that the reference appears only when the relevant slide appears (i.e. 5th one in this case)
\documentclass{beamer}
\mode<presentation>{\usetheme{Madrid}}
\usepackage[style=verbose]{biblatex}
\only<2->{...} etc. is one solution but I think it is a lot of manual work to update all numbers on the slide when, for instance, I need to remove (or add) one point with a reference.
Thanks.
You don't need to update any numbers if you use relative overlays instead of absolute numbers:
\documentclass{beamer}
\mode<presentation>{\usetheme{Madrid}}
\usepackage[style=verbose]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
\begin{frame}
\begin{itemize}[<+->]
\item ABC \only<.->{\footcite{knuth:ct:a}}
\item XYZ \only<.->{\footcite{knuth:ct:b}}
\end{itemize}
\end{frame}
\end{document}
In my document I talk about a calculation and then I do all the equations. So I would like to have those next to each other. Unfortunately some floats really make life difficult.
I have the folowing latex code:
[Some Paragraph]
\begin{table}
... This is a small table (4rows)
\end{table}
\begin{table}
... This table spans almost a page
\end{table}
\begin{figure}
... This figure spans half a page
\end{figure}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
THIS PARAGRAP REFERS TO THE CALCULATION BELOW AND SHOULD BE FOLLOWED IMMEDIATELY BY THE CALCULATION.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{align*}
... This is the CALCULATION.
\end{align*}
The result is that all the tables and figures slide between the PARAGRAPH and the CALCULATION.
I could fix every Figure with the [H] parameter but that's not what I really want to do. Instead I want to prevent anything from sliding between my PARAGRAPH and my CALCULATION
How is it possible to prevent floats from getting between a paragraph and an align?
I've been struggling with this. I wanted to insert an image and have it 'near' the text that discusses it, but have the text on that page wrap/flow around the image.
The image I've converted into eps format. I initially tried to use the figure environment (\begin{figure}...), but that merely placed the image at the top or bottom of the page without any text beside it, leaving a large portion of the page empty.
I did some digging on the web and identified the 'wrapfig' package, it seemed a likely solution, but I get a series of errors, and the image appears at the end of the document.
The errors:
Package wrapfig Warning: wrapfigure used inside a conflicting environment on input line 297.
Package wrapfig Warning: Stationary wrapfigure forced to float on input line 303.
Package wrapfig Warning: Stationary wrapfigure forced to float on input line 306.
Which continues for several lines.
What's odd is that one occasion, after compiling, the image appeared exactly where I wanted it, and then on the next it didn't.
[Added a minute or so later]
The latex code I have currently:
\begin{wrapfigure}{r}{0.2\textwidth}[h]
\begin{center}
\includegraphics[width=0.18\textwidth]{vec-perp.eps}
\end{center}
\caption{A}
\end{wrapfigure}
wrapfigure does not need the [h] specifier.
you need to include the wrapfigure package in your preamble:
\usepackage{wrapfig}
then, put the wrapfigure call above the text you want to wrap into, like this:
\begin{wrapfigure}{r or l}{width/height} \centering \includegraphics[width/height]{graphic.filename} \caption{foo} \end{wrapfigure}
a real world example:
\begin{wrapfigure}{r}{1.5in}
\centering
\includegraphics[width=1.5in]{smile.jpg}
\end{wrapfigure}
I just went through my document, commenting it out in sections, hoping to find the environment it was complaining about...in the process, I unintentionally introduced a blank line that I didn't have before. Apparently, the environment it was complaining about was the environment before the figure. I didn't have a blank line between the previous part, which was an itemize environment.
So...this, for example, is 'broken':
Ingredients for the Banana-Grape Bread Recipe
\begin{itemize}
\item Bananas
\item Grapes
\item Eggs
\end{itemize}
\begin{wrapfigure}{r}{0.2\textwidth}
\centering
\includegraphics[width=0.18\textwidth]{banana-grape.eps}
\caption{BananaGrape Bread}
\end{wrapfigure}
And inserting a empty line:
\end{itemize}
\begin{wrapfigure}{r}{0.2\textwidth}
Clears up my problems. Along the way I learned all sorts of things, yay! On the other hand, I'm pretty sure I don't have a clear understanding of environments yet. Time to spend some time reading, I reckon.