@akikomahima

Are you sure you want to delete the question?

If your question is resolved, you may close it.

Leaving a resolved question undeleted may help others!

We hope you find it useful!

LaTeX 図の挿入

解決したいこと

LaTeX(Beamer)で、スライドに図を挿入したいのですが、大きさが調節できず、図が画面から見切れてしまいます。
図をスライドの半分くらいの大きさにするにはどうしたらよいでしょうか。

発生している問題・エラー

以下の図を挿入したいのですが、
figure.png
出力すると、このようになってしまいます。
画像2.png

該当するソースコード

\documentclass[11pt, dvipdfmx, jarticle]{beamer}

\usetheme{Boadilla}
\usefonttheme{professionalfonts}
\mathversion{bold}
\renewcommand{\kanjifamilydefault}{\gtdefault}
\setbeamertemplate{navigation symbols}{}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx}

\begin{document}

\begin{frame}
\includegraphics{figure.png}\\
\includegraphics[width=0.5\textwidth, height=0.5\textheight]{figure.png}
\end{frame}

\end{document}

解決方法をご存じの方がいらっしゃいましたら、ご教授頂けると幸いです。よろしくお願いいたします。

0 likes

2Answer

Comments

  1. @akikomahima

    Questioner

    コメントありがとうございます。
    \includegraphicsにscale=0.5オプションを追加してみましたが、出力結果は変わりませんで、やはり画面から見切れてしまいます。

  2. そうなんですか。

    scale=0.5オプションを追加した\includegraphicsの行を見せてもらえますか。
    また、使用されているPCのOS(バージョン)と LaTeX のバージョンも教えてもらえますか。

scale=0.5オプションを追加した行は以下のようになっております。
\includegraphics[width=0.5\textwidth, height=0.5\textheight, scale=0.5]{figure.png}

使用しているパソコンのバージョンは23H2 (OS ビルド 22631.4460)です。
また、LaTeXのバージョンは20200520.0となっております。

何度もすみません。よろしくお願いいたします。

0Like

Comments

  1. \includegraphics[scale=0.5]{figure.png}

    何度もすみませんが、
    scaleオプションだけを試してもらえますか。

  2. @akikomahima

    Questioner

    \includegraphics[scale=0.5]{figure.png}
    こちらも試しましたが、出力結果は変わらずでした。

Your answer might help someone💌