社会人大学院に通うTeX初心者です。論文の投稿やスライド作成のためにTeXを使わなければならなくなりました。
OSはWindows7とWindows10です(マイクロソフト製品以外は使える環境にありません)。
TeXについては、阿部先生の「TeX インストーラ 3」を使って、W32TeXをインストールでき、TeXworks上からpdfLaTeXを使って、 論文が書けるようになりました(日本語・英語)。
今度は、発表用のスライドを作らなければならなくなったので、Beamerを使ってスライドを作ろうとしています。
ネットでいろいろ調べて以下のようなことをしました。
C:\w32tex\share\texmf-local\tex\latexの直下に、
beamer
pgf
xcolor
というフォルダをつくり、この中に、
latex-beamer-3.07.tar.gz
pgf-1.01.tar.gz
xcolor-2.00.tar.gz
から解凍した中身をそれぞれ入れました。
xcolorについてはコマンドプロンプトを使って
cd c:\usr\local\share\texmf\tex\latex\xcolor
latex xcolor.ins
として、insファイルをコンパイルしました。
そして、以下の文章をTeXworks上からpdfLaTeXを使って、 スライドにしようとしました。
\documentclass{beamer}
\title{はじめてのBeamer}
\author{高木貞治}
\date{\today}
\begin{document}
\maketitle
\begin{frame}{スライド}
スライドができたよ!やったね!
\end{frame}
\end{document}
すると以下のようなエラーメッセージが出力されました。
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./untitled-1.tex
LaTeX2e <2018-04-01> patch level 5
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamer.cls
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasercs.sty)
Document Class: beamer 2007/03/11 cvs version 3.07 A class for typesetting pres
entations (rcs-revision 1.70)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasemodes.sty
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasedecode.sty))
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbaseoptions.sty
(c:/w32tex/share/texmf-dist/tex/latex/graphics/keyval.sty))
(c:/w32tex/share/texmf-local/tex/latex/pgf/latex/pgf/basiclayer/pgfcore.sty
(c:/w32tex/share/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/w32tex/share/texmf-dist/tex/latex/graphics/graphics.sty
(c:/w32tex/share/texmf-dist/tex/latex/graphics/trig.sty)
(c:/w32tex/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)
(c:/w32tex/share/texmf-dist/tex/latex/graphics-def/pdftex.def)))
(c:/w32tex/share/texmf-local/tex/latex/pgf/latex/pgf/systemlayer/pgfsys.sty
(c:/w32tex/share/texmf-local/tex/latex/pgf/latex/pgf/utilities/pgfrcs.sty
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/utilities/pgfrcs.code.te
x))
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/systemlayer/pgfsys.code.
tex (c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/systemlayer/pgf.cfg)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/systemlayer/pgfsys-pdfte
x.def
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/systemlayer/pgfsys-commo
n-pdf.def)))
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/systemlayer/pgfsyssoftpa
th.code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/systemlayer/pgfsysprotoc
ol.code.tex)) (c:/w32tex/share/texmf-local/tex/latex/xcolor/xcolor.sty
(c:/w32tex/share/texmf-dist/tex/latex/graphics-cfg/color.cfg))
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcore.code.
tex
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcoremath.c
ode.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcorepoints
.code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcorepathco
nstruct.code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcorepathus
age.code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcorescopes
.code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcoregraphi
cstate.code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcoretransf
ormations.code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcorequick.
code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcoreobject
s.code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcorepathpr
ocessing.code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcorearrows
.code.tex)
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfcoreshade.
code.tex)))
(c:/w32tex/share/texmf-local/tex/latex/pgf/latex/pgf/basiclayer/pgfbaseimage.st
y
(c:/w32tex/share/texmf-local/tex/latex/pgf/generic/pgf/basiclayer/pgfbaseimage.
code.tex))
(c:/w32tex/share/texmf-local/tex/latex/pgf/latex/pgf/utilities/xxcolor.sty)
(c:/w32tex/share/texmf-dist/tex/latex/amsfonts/amssymb.sty
(c:/w32tex/share/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
(c:/w32tex/share/texmf-dist/tex/latex/geometry/geometry.sty
(c:/w32tex/share/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(c:/w32tex/share/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(c:/w32tex/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty)
(c:/w32tex/share/texmf-dist/tex/latex/geometry/geometry.cfg))
(c:/w32tex/share/texmf-dist/tex/latex/hyperref/hyperref.sty
(c:/w32tex/share/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(c:/w32tex/share/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(c:/w32tex/share/texmf-dist/tex/latex/oberdiek/auxhook.sty)
(c:/w32tex/share/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(c:/w32tex/share/texmf-dist/tex/latex/hyperref/pd1enc.def)
(c:/w32tex/share/texmf-dist/tex/latex/config/hyperref.cfg)
(c:/w32tex/share/texmf-dist/tex/latex/url/url.sty)
Package hyperref Warning: Option `pdfpagelabels' is turned off
(hyperref) because \thepage is undefined.
Package hyperref Message: Stopped early.
) (c:/w32tex/share/texmf-dist/tex/latex/hyperref/hpdftex.def
(c:/w32tex/share/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(c:/w32tex/share/texmf-dist/tex/latex/base/size11.clo)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasecompatibility.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasefont.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasemisc.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasetwoscreens.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbaseoverlay.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasetitle.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasesection.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbaseframe.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbaseverbatim.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbaseframesize.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbaseframecomponents.st
y) (c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasecolor.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasenotes.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasetoc.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasetemplates.sty
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbaseauxtemplates.sty
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbaseboxes.sty)))
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbaselocalstructure.sty
(c:/w32tex/share/texmf-dist/tex/latex/tools/enumerate.sty))
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasenavigation.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasetheorems.sty
(c:/w32tex/share/texmf-dist/tex/latex/translator/translator.sty)
(c:/w32tex/share/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/w32tex/share/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/w32tex/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/w32tex/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/w32tex/share/texmf-dist/tex/latex/amsmath/amsopn.sty))
(c:/w32tex/share/texmf-dist/tex/latex/amscls/amsthm.sty))
(c:/w32tex/share/texmf-local/tex/latex/beamer/base/beamerbasethemes.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/themes/theme/beamerthemedefault.s
ty
(c:/w32tex/share/texmf-local/tex/latex/beamer/themes/font/beamerfontthemedefaul
t.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/themes/color/beamercolorthemedefa
ult.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/themes/inner/beamerinnerthemedefa
ult.sty)
(c:/w32tex/share/texmf-local/tex/latex/beamer/themes/outer/beamerouterthemedefa
ult.sty))) (./untitled-1.aux)
(c:/w32tex/share/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (c:/w32tex/share/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(c:/w32tex/share/texmf-dist/tex/latex/oberdiek/grfext.sty)
(c:/w32tex/share/texmf-dist/tex/latex/config/epstopdf-sys.cfg))
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
! Undefined control sequence.
\Gm@lmargin ->\Geom@lmargin
l.5 \begin{document}
?
どこが悪いのかよくわかりません。
どこを直せば、Beamerを使ってスライドを書けるようになるでしょうか?ご教示いただければ幸いです。
なお、「TeX Live」にはBeamerが入っていて、最初から使えるといった記事を良く見かけますが、
私は「TeX インストーラ 3」を使って、W32TeXをインストールしてようやくTeXが使えるようになっています。「TeX Live」に置き換える作業は自分にはハードルが高すぎて困難なので、W32TeXの今の環境をそのまま使って、Beamerを使えるようになることが希望です。