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

Option pdfauthor has already been used

神經囍囍

joined: 2008-01-07
posted: 25
promoted: 1
bookmarked: 0
神經囍囍
1subject: Option pdfauthor has already been usedPromote 0 Bookmark 02008-01-15quote  


再請教 ...

% \usepackage{hyperref} % 所以沒用

\author[abc]{\begin{small}abc\end{small} AaBbCc}

跑下去說 :


Package hyperref Warning: Option `pdfauthor' has already been used,
(hyperref)                setting the option has no effect on input line 37.

 

不懂~,

它到底是要怎樣呢?

 

謝謝 ^_^

 

 

本人已不在此站活動

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

請提供完整的例子,不然會變成在猜謎。


神經囍囍

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


謝謝回覆

 

原 tex

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

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

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

 

utf_002.tex 如下

% neuro: utf8

\documentclass[cjk]{beamer} % <== good
%\documentclass[14pt]{beamer}
%\documentclass[cjk,slidestop,compress]{beamer}
%\documentclass[cjk,compress]{beamer}

%\usepackage[english]{babel}
\usepackage{CJK}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{graphics}
% \usepackage{hyperref}
%\usepackage[pdfauthor={Neuro}]{hyperref}
% \usepackage{beamerthemesplit}
\usepackage{colortbl}
\usepackage{amssymb}
%\usepackage{calc}
%\usepackage{ulem}
%\usetheme{Warsaw}
%\colorlet{structure}{red!65!black}
%\beamertemplateshadingbackground{yellow!100}{white}
\beamertemplateshadingbackground{blue!15}{yellow!15}
%\usetheme{Bergen}
%\usecolortheme{lily}
%\setbeamercolor{title}{fg=blue!80!black,bg=blud!20!white}


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

\title[作夢睡眠生理現象]{作夢 與 睡眠生理現象 的關係}
\subtitle{REMS}
\author[neuro]{\begin{small}Neuo\end{small} 黃學仁}
\institute[專科醫師]{
\begin{tabular}{r} 旁聽生\\外科專科醫師\\神經外科專科醫師\\ \texttt{neuroh@gmail.com}\\
\end{tabular}
}
%    \date{\today}
\date[政大心研]{2008 年 1 月 16 日\\ \begin{tiny}@政大心研\end{tiny}}

%%%%%%%%%%%%%%
\section{Title}
\begin{frame}
\titlepage
\end{frame}


%%%%%%%%%%%%%%%%%%%%%%
\section{5 papers}

\begin{frame}
%\begin{center}
\begin{enumerate}
\item Muzur, A. (2005).\\Toward an integrative theory of sleep and dreaming.\\ \textit{Journal of Theoretical Biology, 233}, 103-118.
\item Stenberg, D. (2007).\\Neuroanatomy and neurochemistry of sleep.\\ \textit{Cellular and Molecular Life Sciences, 64}, 1187-1204.
\item Lu, J., Sherman, D., Devor, M., Saper, B.S. (2006).\\A putative flip–flop switch for control of REM sleep.\\ \textit{Nature, 441}, 589-594.
\item Fuller, P.M., Saper, C.B., Lu, J., (2007).\\The pontine REM switch: past and present.\\ \textit{Journal Physiol, 584}, 735-741.
\item Luppi, P. (2007).\\Paradoxical (REM) sleep genesis:\ The switch from an aminergic–cholinergic to a GABAergic–glutamatergic hypothesis.\\ \textit{Journal of Physiology - Paris, 100}, 271-283.
\end{enumerate}
%\end{center}
\end{frame}

%%%%%%%%%%%%%%%%%%%%%%%%
\section{Muzur (2005)}

\begin{frame}[t,c] %%% 1-0
Muzur, A. (2005).
\\[0.4cm]
邁向整合的 睡眠與作夢 的理論.
\\[0.2cm]
Toward an integrative theory of sleep and dreaming.\\[0.4cm]
\textit{Journal of Theoretical Biology, 233}, 103-118.
\end{frame}


\CJKfamily{nsung}

%%%
\subsection{1. General Introduction}
\begin{frame}[t,c] %%% 1-1
%\begin{center}
\frametitle{1. 簡介}
\begin{itemize}
\item 作夢與睡眠 雖在時間上有重疊,但在功能上可能有不同.
\item 理論太多 (故本篇 試圖 review, 整合)
\end{itemize}
%\end{center}
\end{frame}


%%%
\subsection{2. Sleep Primer}
\begin{frame}[t,c]  %%% 1-2
\frametitle{2. 睡眠入門}
\begin{itemize}
\item 清醒(W)
\item 睡眠(S): (幾乎所有哺乳動物與鳥類, 分為 NREM 與 REM.)
 \begin{itemize}
 \item NREMS
  \begin{enumerate}
  \item stage I
  \item stage II
  \item stage III
  \item stage IV
  \end{enumerate}
 \item REMS
 \end{itemize}
\end{itemize}
end{frame}


\end{CJK}
\end{document}

本人已不在此站活動

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

我示範一個例子好了(見底下附件,utf_002p1.tex)。

需要注意的是:

  1. graphicx 本身就會載入 graphics,所以,不必兩個都載入。
  2. utf8 文件,如果中文的部份不在 CJK 環境內,請改用 CJKutf8 package。

title/author 要放到 preamble 區才會被 beamer 利用,轉用於 pdftitle/pdfauthor。用在本文區的話,他會認為 pdftitle/pdfauthor 是空白,所以會提出警告,而且將無 pdftitle/pdfauthor。

 


edited: 3
神經囍囍

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


非常感謝~ ^_^

原來要這樣用: 

\documentclass[unicode]{beamer}
\usepackage{CJKutf8}

另再加

\usepackage{graphicx}
\usepackage{colortbl}
\usepackage{amssymb}

我原來的那些寫法 都是抄來的,然後 trial \& error, 改得幾乎要去跳海了... 非常挫折

有前輩指點一下 真是暗夜明燈啊~

謝謝

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