latex/beamer/\345\233\263\343\201\256\346\214\277\345\205\245.md
... ...
@@ -1,5 +1,31 @@
1
-https://tex.stackexchange.com/questions/232259/adding-captions-to-aligned-images-in-beamer
1
+[Adding captions to aligned images in beamer - TeX - LaTeX Stack Exchange](https://tex.stackexchange.com/questions/232259/adding-captions-to-aligned-images-in-beamer)
2
+```latex
3
+\documentclass{beamer}
2 4
5
+\begin{document}
6
+
7
+\begin{frame}
8
+
9
+\begin{columns}[onlytextwidth]
10
+\begin{column}{.45\textwidth}
11
+\begin{figure}
12
+ \includegraphics[width=\textwidth]{example-image-a}
13
+ \caption{First image}
14
+\end{figure}
15
+\end{column}
16
+\hfill
17
+\begin{column}{.45\textwidth}
18
+\begin{figure}
19
+ \includegraphics[width=\textwidth]{example-image-b}
20
+ \caption{Second image}
21
+\end{figure}
22
+\end{column}
23
+\end{columns}
24
+
25
+\end{frame}
26
+
27
+\end{document}
28
+```
3 29
しかし図の下に`??`がひっくり返ったものが入ってしまう…
4 30
5 31
→追記: 治った.`\includegraphics[width=\textwidth]`が`\includegraphics[width=\textwidth>]`になっていた…
... ...
\ No newline at end of file