原文鏈接:http://hi.baidu.com/jerry_916/blog/item/b8f9f396c4dedf6054fb9661.html Beamer相關(guān)資料Slides和Presentation的重要性就不必說了。 A Beamer Quickstart (推薦) :http://heather.cs./~matloff/beamer.html A practical guide to beamer: http://faq.ktug./wiki/uploads/beamer_guide.pdf 黃正華老師的總結(jié): http://bbs./viewthread.php?tid=27695&extra=&page=1 Beamer的在線教程: http://www.math./~rouben/beamer/quickstart.html Beamer的安裝:http://dsec.math.pku.edu.cn/~yuhj/wiki/TeXSlides.html#sec-1 一個(gè)即刻上手的模板:http://www./forums/index.php?showtopic=1638 推薦一個(gè)好的Beamer模板庫(kù)-非常簡(jiǎn)潔: http://www.math./www/tex/beamer_template.jsp Beamer Tips: http://xueruini./publish/TeX/Beamer.html 用 Beamer 做相冊(cè): http://linux.cs./~clark/nb/archives/2008-02-03T23_32_45.php Beamer的安裝配置 1、下載beamer:http:///projects/latex-beamer/ 下載pgf:http:///projects/pgf/ 下載xcolor:http:///projects/xcolor/ 2、解壓到各自文件夾beamer、pgf、xcolor 3、將beamer、pgf、xcolor復(fù)制到TeXHOME\ctex\localtextmf\tex\latex,并刪除 TeXHOME/texmf/tex/latex/ 下的beamer、pgf、xcolor 4、進(jìn)入TeXHOME\tex\localtextmf\tex\latex\xcolor,用“記事本”打開 xcolor.ins,啟動(dòng)cmd,定位到這個(gè)文件夾 5、 運(yùn)行命令: `latex xcolor.ins',`latex xcolor.dtx',`latex xcolor.dtx',`makeindex -s gind.ist xcolor.idx',`latex xcolor.dtx',`latex xcolor.dtx' (這些命令在xcolor.ins文件里都寫出來了) 6、測(cè)試安裝是否成功,運(yùn)行命令:`latex xcolor1.tex', `latex xcolor1.tex' 7、然后運(yùn)行 WinEdt 的 Accessories 菜單下 MikTex options 的 refresh now 即可。 注意事項(xiàng): 當(dāng)beamer做幻燈片時(shí),需要使用 \usepackage[square, authoryear, comma]{natbib} 和 \citep{xxx} 做文章引用。因?yàn)橛?natbib 和 citep 才能在beamer下很好的顯示 square bracket。另外,做幻燈時(shí),推薦用 \bibliographystyle{authordate1}。這樣方便通過引用標(biāo)記(作者+年份)看到該引文的分量。 Beamer Template 使用方式http://www.math./www/tex/beamer_template.jsp Download mathas_theme.zip 解壓縮到 C:\texmf\tex\latex\beamer\themes 目錄 於 Dos 指令 shell(cmd) 下執(zhí)行 initexmf --dump 及 initexmf --update-fndb 下載 mathas-template.zip , 解壓縮 (包含 mathas_templates.tex, mathas_4_16.tex, five icons) 增加圖檔時(shí), 按滑鼠右鍵, 儲(chǔ)存 jpg 圖檔(與 math_template.tex 同一目錄) 於文件中選擇 theme \mode { %\usetheme{IAS_sidebar} % only a simple left side bar \usetheme{IAS_sidebar2_10pt} % only a simple side bar %\usetheme{IAS_sidebar2_11pt} % As above only changed to fit 11pt fonts. ...... \setbeamercovered{transparent} } 引用圖檔設(shè)定(filename.jpg 不需填入副檔名) \pgfdeclareimage[height=0.8cm]{institution-logo}{filename} 需要製作 table of contents, 必須 compiler 兩次
在使用beamer 制作PPT時(shí),發(fā)現(xiàn)了很多有意思的設(shè)置,匯總?cè)缦? 1. 默認(rèn)定理環(huán)境是不顯示編號(hào)的,通過導(dǎo)言區(qū)使用開始使用定理編號(hào)\setbeamertemplate{theorems}[numbered]
2.圖和 表格的標(biāo)題顯示標(biāo)號(hào) \setbeamertemplate{caption}[numbered]
3. 取消導(dǎo)航條 \setbeamertemplate{navigation symbols}{}
4. 使用 metapost 動(dòng)畫 \usepackage{xmpmulti} \DeclareGraphicsRule{*}{mps}{*}{}
5. 通過使用如下 命令使得一段不編譯 6. 改變 列表標(biāo)號(hào)計(jì)數(shù)器 \begin{enumerate} \addtocounter{enumi}{3} 改變列表標(biāo)號(hào)計(jì)數(shù)器 ...... \end{enumerate}
7. 項(xiàng)目列表 \begin{enumerate} \item 直接顯示,帶編號(hào) \item<4-> 顯示為第四張,帶編號(hào) \item<4->[] 顯示為第四張,不帶編號(hào) \item<4->[在這里輸入你的符號(hào)] 顯示為第四張,帶編號(hào)“在這里輸入你的符號(hào)” %可以在[]內(nèi)隨意定義符號(hào) \item<4->[在這里輸入你的符號(hào)] 顯示為第四張,帶編號(hào)“在這里輸入你的符號(hào)” \item<-4>[在這里輸入你的符號(hào)] 顯示為第四張,帶編號(hào)“在這里輸入你的符號(hào)”,然后該條目隱藏 ...... \end{enumerate}
8. 以下代碼用以整體縮小表格 \usepackage{graphicx} %Put this in the preamble. ..... \newsavebox{\tablebox} \begin{lrbox}{\tablebox} \begin{tabular}{||l||l||l||l||} \hline\hline{\textbf{Geographic Location}} & {\textbf{Site}} & {\textbf{IP Address}} & {\textbf{Top Level Directory}} \\ \hline\hline United States & \tt ftp.shsu.edu & 192.92.115.10 & \it /tex-archive\\ \hline\hline England & \tt ftp.tex.ac.uk & 131.151.79.32 & \it /tex-archive\\ \hline\hline Germany & \tt ftp.uni-stuttgart.de & 129.69.8.13 & \it /tex-archive\\ \hline\hline \end{tabular} \end{lrbox}
然后 \scalebox{0.5}{\usebox{\tablebox}}
或者 \resizebox{0.8\textwidth}{!}{\usebox{\tablebox}}
9 使用beamer制作幻燈片時(shí),若用 pdf
latex編譯,一定編譯兩次,才可以使得標(biāo)簽正確顯示;pdflatex支持除eps以外的各種格式的圖片,插圖方式與 論文一樣。 10. 將圖、表標(biāo)題等使用中文(\renewcommand\contentsname{目\ 錄} \renewcommand\listfigurename{插圖目錄} \renewcommand\listtablename{表格目錄} %\renewcommand\abstractname{摘\ 要} %err undefined %\renewcommand\refname{參考文獻(xiàn)} %article類型 \renewcommand\bibname{參\ 考\ 文\ 獻(xiàn)} %book類型 \renewcommand\indexname{索\ 引} \renewcommand\figurename{圖} \renewcommand\tablename{表} \renewcommand\partname{部分}
11 使用如下命令定制定理等,顯示“定理”等,編號(hào)按照節(jié)標(biāo)題獨(dú)立編號(hào) \newtheorem{mythl}{\hei 引理}[section] \newtheorem{mytht}{\hei 定理}[section] \newtheorem{mythr}{\hei 注}[section] \newtheorem{mythc}{\hei 推論}[section] \newtheorem{mythd}{\hei 定義}[section] \newtheorem{mytha}{\hei 公理} \newtheorem{mythp}{\hei 命題} \newtheorem{mythe}{\hei 練習(xí)} \newtheorem{myli}{\hei 例}[section]
例如定理,代碼為: \begin{mytht} ....... \end{mytht}
12. 定義顏色 \definecolor{beamer@blendedred}{rgb}{0.7,0.2,0.2} % use structure theme to change \definecolor{beamer@blendedblue}{rgb}{0.2,0.2,0.7} % use structure theme to change
設(shè)定 結(jié)構(gòu) 的前景色 \setbeamercolor{structure}{fg=beamer@blendedred}
13.使用繼承方式來批量改變block標(biāo)題顏色和block主干顏色,利用“<顏色>!<數(shù)字>!<顏色>”來進(jìn)行混合 \setbeamercolor{block title}{use=structure,fg=structure.fg,bg=structure.fg!20!bg} \setbeamercolor{block title alerted}{use=alerted text,fg=alerted text.fg,bg=alerted text.fg!20!bg} \setbeamercolor{block title example}{use=example text,fg=example text.fg,bg=example text.fg!20!bg} \setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!50!bg} \setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!50!bg} \setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!50!bg} \setbeamercolor{titlelike}{parent=structure,bg=white!90!red}
14.設(shè)置使用襯線字體做正文(默認(rèn)全是無襯線,按這個(gè)設(shè)置,僅標(biāo)題是無襯線) \usefonttheme[stillsansseriflarge,stillsansserifsmall]{serif}
15.設(shè)置半透明化尚未出現(xiàn)的內(nèi)容(方便提醒自己下面要講什么) \setbeamercovered{transparent}
16.取消導(dǎo)航條 \setbeamertemplate{navigation symbols}{}
17.以下命令中通過選擇show或者h(yuǎn)ide控制相應(yīng)節(jié)的顯示 \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/hide]
18. 同一個(gè)位置動(dòng)態(tài)顯示兩個(gè)block,用下面方法 \begin{frame} \only<1>{\begin{itemize} \item item1 \item item2 \end{itemize}} \only<2>{\begin{itemize} \item item3 \item item4 \end{itemize}} \end{frame}
19. 利用\onslide<2-> 可以將某個(gè)段落實(shí)現(xiàn)在按順序出現(xiàn),< >的用法參見 \item< >,呵呵 20.加入動(dòng)畫的命令,不過還沒試驗(yàn),等我試了再說\begin{frame}{平板壓實(shí)的應(yīng)用\ding{223} 亨特機(jī)} \vskip-.2cm \includemovie[poster,text=(Hunter Machinery),mouse,repeat]{11cm}{7.4cm}{./image/pro.swf} \end{frame}
|