cht電腦資訊文書排版TeX
adm Find login register

begin{figure}

神經囍囍

joined: 2008-01-07
posted: 25
promoted: 1
bookmarked: 0
神經囍囍
1subject: begin{figure}Promote 0 Bookmark 02008-01-15quote  

請問,這樣有錯嗎 ?

因為他說:

! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.36 \end{frame}

原檔在  

http://neuro.ohbi.net/lab/latex/beamer_utf8/figure.tex

http://neuro.ohbi.net/lab/latex/beamer_utf8/figure.pdf

http://neuro.ohbi.net/lab/latex/beamer_utf8/figure.log

謝謝

%%%%%%%%%%%%%%%%%%%%


% neuro: utf8

\documentclass[cjk]{beamer} % <== good

\usepackage{CJK}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{graphics}
% \usepackage{hyperref}
% \usepackage{beamerthemesplit}
\usepackage{colortbl}
\usepackage{amssymb}
%\usepackage{calc}
%\usepackage{ulem}
%\usetheme{Warsaw}
%\colorlet{structure}{red!65!black}
\beamertemplateshadingbackground{blue!15}{yellow!15}


\begin{document}
\begin{CJK}{UTF8}{nkai}


%%%
\begin{frame}[t,c]
\frametitle{4. 睡眠功能的理論}
\begin{figure}
\includegraphics[width=6cm, keepaspectratio]{wamsley_f5.jpg} \hspace*{\fill} \\
\caption{2. 基本睡眠法則 (Muzur, 2005)\\
腺嘌呤---腹側前視核(VLPO)系統,與光---上視叉(SCN)系統,影響清醒與 NREMS 間的轉換;\\\
而體溫---前視前下視丘(POAH)系統控制 NREMS 與 REMS 間的轉換.\\
外界刺激可從 NREMS 及 REMS 促進清醒.\\}
\end{figure}
\end{frame}

 

\end{CJK}
\end{document}

 %%%%%%%%%%%%%%%5

 

 

本人已不在此站活動

joined: 2007-09-19
posted: 4946
promoted: 325
bookmarked: 206
歸隱山林
2subject: Promote 0 Bookmark 02008-01-15quote  

請參考他的說明文件(beameruserguide.pdf): 12.6 Figures and Tables 這個章節的說明。


神經囍囍

joined: 2008-01-07
posted: 25
promoted: 1
bookmarked: 0
神經囍囍
3subject: Promote 0 Bookmark 02008-01-15quote  


感謝指示... ^_^

但,

12.6 figure and table 說

\begin{frame}
\begin{figure}
\pgfuseimage{muzur_f1.jpg}
% \includegraphics[width=9cm, keepaspectratio]{muzur_f1.jpg} \hspace*{\fill} \\
\caption{1. REMS 時之肌無張力階梯. (Muzur, 2005)}
\end{figure}
\end{frame}

我照上面用,結果會看不到圖.

跑時反應說:

! Package pgf Error: Undefined image "muzur_f1.jpg".

See the pgf package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.274 \end{frame}

? ! Interruption.
\GenericError  ...
                                                  \endgroup
l.274 \end{frame}

 

若...

\begin{frame}
\begin{figure}
%\pgfuseimage{muzur_f1.jpg}
\includegraphics[width=9cm, keepaspectratio]{muzur_f1.jpg} \hspace*{\fill} \\
\caption{1. REMS 時之肌無張力階梯. (Muzur, 2005)}
\end{figure}
\end{frame}

這樣才看得到圖,但跑時他說

[9] <muzur_f1.jpg, id=648, 401.5pt x 323.2075pt> <use muzur_f1.jpg> [10 <./muzu
r_f1.jpg>]
! Missing $ inserted.
<inserted text>
                $
l.298 \end{frame}

怪怪....

謝謝

 

本人已不在此站活動

joined: 2007-09-19
posted: 4946
promoted: 325
bookmarked: 206
歸隱山林
4subject: Promote 0 Bookmark 02008-01-15quote  

你要先看一下 pgf package 要怎麼使用。

原來用 includegraphics 也可以,問題是出在你那個 caption,不要去手動換行(換行指令也下錯了),讓他自行去排版就可以了。

BTW,使用 LaTeX 做 presentation 是很好,不過他的難度比較高,如果你對基本 LaTeX 排版本就不熟悉的話,問題會更多。presentattion 有許多方案,請參考:

http://www.miwie.org/presentations/


神經囍囍

joined: 2008-01-07
posted: 25
promoted: 1
bookmarked: 0
神經囍囍
5subject: Promote 0 Bookmark 02008-01-15quote  


> 你要先看一下 pgf package 要怎麼使用。

ok, 謝謝指點, 去看了.

原來要

\pgfdeclareimage[width=9cm]{muzur_f1}{muzur_f1}

\begin{frame}
\begin{figure}
\pgfuseimage{muzur_f1}
%\includegraphics[width=9cm, keepaspectratio]{muzur_f1.jpg} \hspace*{\fill} \\
\caption{1. REMS 時之肌無張力階梯. (Muzur, 2005)}
\end{figure}
\end{frame}

 

這樣就有了 :)

謝謝~ :)

 

cht電腦資訊文書排版TeX
adm Find login register
views:16645