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

structured beamer

神經囍囍

joined: 2008-01-07
posted: 25
promoted: 1
bookmarked: 0
神經囍囍
1subject: structured beamerPromote 0 Bookmark 02008-01-10quote  


請教 beamer tex 檔可以 拆開來 合起來 嗎?

譬如

\include header.tex

\include paper1.tex

\include paper2.tex

\include thanks.tex

 

謝謝

本人已不在此站活動

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

原則上可以,但一般沒有必要,因為 slide 通常不會有太多的內容,所以並無實益。

ps. TeX 版在這裡喔!o_O
 http://hyperrate.com/dir.php?eid=150

ps.我把整串討論搬到 TeX 版來好了。


edited: 2
神經囍囍

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


ok, 試設了一個 structured 的 一組 beamer, 但 跑下去說:

$ pdflatex structureal <enter>


This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
entering extended mode
(./structureall.tex
LaTeX2e <2003/12/01>
Babel <v3.8d> and hyphenation patterns for american, french, german, ngerman, b
ahasa, basque, bulgarian, catalan, croatian, czech, danish, dutch, esperanto, e
stonian, finnish, greek, icelandic, irish, italian, latin, magyar, norsk, polis
h, portuges, romanian, russian, serbian, slovak, slovene, spanish, swedish, tur
kish, ukrainian, nohyphenation, loaded.
\@input{s.aux}
(/usr/share/texmf/tex/latex/tools/s.tex File ignored
)

! LaTeX Error: Missing \begin{document}.

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

l.4 \include st
               ructurehead.tex

Overfull \hbox (20.0pt too wide) in paragraph at lines 4--5
[]

! LaTeX Error: The font size command \normalsize is not defined:
               there is probably something wrong with the class file.

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

l.5 \include s
              tructuretitle.tex
[1]
\@input{s.aux}
(/usr/share/texmf/tex/latex/tools/s.tex File ignored
)

! LaTeX Error: Missing \begin{document}.

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

l.5 \include st
               ructuretitle.tex

Overfull \hbox (20.0pt too wide) in paragraph at lines 5--6
[]

! LaTeX Error: The font size command \normalsize is not defined:
               there is probably something wrong with the class file.

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

l.13 \include s
               tructurefooter.tex
[2]
\@input{s.aux}
(/usr/share/texmf/tex/latex/tools/s.tex File ignored
)

! LaTeX Error: Missing \begin{document}.

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

l.13 \include st
                ructurefooter.tex
)
*

Overfull \hbox (20.0pt too wide) in paragraph at lines 13--0
[]
(Please type a command or say `\end')
*\end

*\end
! TeX capacity exceeded, sorry [input stack size=1500].
\end #1->\csname end#1
                      \endcsname \@checkend {#1}\expandafter \endgroup \if@e...
<*> \end

!  ==> Fatal error occurred, the output PDF file is not finished!
Transcript written on structureall.log.

 

話說

structureall.tex 在  http://neuro.ohbi.net/lab/latex/beamer_utf8/structureall.tex

其餘各檔均同 path , 包括 structureall.log

內容

% structureall.tex
% neuro: utf8

\include  structurehead.tex
\include  structuretitle.tex

%\include  strutcurepaper1.tex
%\include strutcurepaper2.tex
%\include strutcurepaper3.tex
%\include structurepaper4.tex
%\include structurepaper5.tex

\include  structurefooter.tex
% end of structureall.tex

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

% structurehead.tex
% neuro: utf8
\documentclass[cjk]{beamer} % <== good
\usepackage{CJK}
\usepackage[latin1]{inputenc}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{graphics}
\usepackage{colortbl}
\usepackage{amssymb}
\beamertemplateshadingbackground{blue!15}{yellow!15}
\begin{document}
\begin{CJK}{UTF8}{nkai}
% end of structurehead.tex

 

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

 

% structuretitle.tex
% neuro: utf8
%%%%%%%%%%%%

\begin{CJK}{UTF8}{nkai}

\title[作夢 與 睡眠生理現象 的關係]{作夢 與 睡眠生理現象 的關係}
\subtitle{REMS}
\author[黃學仁]{\begin{small}Neuro\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}

%%%%%%
%\begin{frame}
%\tableofcontents
%\end{frame}

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

\begin{frame}
\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{frame}

% end of structuretitle.tex

 

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

 

% structurefooter.tex
%%%%%%%%%%%%%
\end{CJK}
\end{document}
% end of structurefooter.tex

 

請問,看得出哪裡該改錯嗎?

他說 沒看到 \begin{document}

所以, 他沒有真的 \include 那些檔進去.

\include filename.tex 這樣寫對嗎?

或 \include file_name.tex 也可以嗎(有 underline)?

 

謝謝
 

 

本人已不在此站活動

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

你的主文件需要依一般完整 LaTeX 格式的寫法,副文件則不必。


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