小男孩‘自慰网亚洲一区二区,亚洲一级在线播放毛片,亚洲中文字幕av每天更新,黄aⅴ永久免费无码,91成人午夜在线精品,色网站免费在线观看,亚洲欧洲wwwww在线观看

分享

Beamer學(xué)習(xí)筆記(1)——Beamer常見設(shè)置匯總

 LibraryPKU 2021-12-15

原文鏈接: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模板庫-非常簡潔: 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)
  1. \setbeamertemplate{theorems}[numbered]

2.圖和 表格的標(biāo)題顯示標(biāo)號(hào)
  1. \setbeamertemplate{caption}[numbered]  

3. 取消導(dǎo)航條
  1. \setbeamertemplate{navigation symbols}{}

4. 使用 metapost 動(dòng)畫
  1. \usepackage{xmpmulti}

  2. \DeclareGraphicsRule{*}{mps}{*}{}  

5. 通過使用如下 命令使得一段不編譯
  1. \iffalse

  2.    ....

  3.     \fi

6.  改變 列表標(biāo)號(hào)計(jì)數(shù)器
  1.   \begin{enumerate}

  2.    \addtocounter{enumi}{3} 改變列表標(biāo)號(hào)計(jì)數(shù)器

  3.      ......

  4.   \end{enumerate}

7. 項(xiàng)目列表
  1.   \begin{enumerate}

  2.    \item  直接顯示,帶編號(hào)

  3.    \item<4->  顯示為第四張,帶編號(hào)

  4.    \item<4->[]  顯示為第四張,不帶編號(hào)

  5.    \item<4->[在這里輸入你的符號(hào)]  顯示為第四張,帶編號(hào)“在這里輸入你的符號(hào)”  %可以在[]內(nèi)隨意定義符號(hào)

  6.    \item<4->[在這里輸入你的符號(hào)]  顯示為第四張,帶編號(hào)“在這里輸入你的符號(hào)”

  7.    \item<-4>[在這里輸入你的符號(hào)]  顯示為第四張,帶編號(hào)“在這里輸入你的符號(hào)”,然后該條目隱藏

  8.      ......

  9.   \end{enumerate}

8. 以下代碼用以整體縮小表格
  1. \usepackage{graphicx} %Put this in the preamble.

  2. .....

  3. \newsavebox{\tablebox}

  4. \begin{lrbox}{\tablebox}

  5. \begin{tabular}{||l||l||l||l||}

  6.    \hline\hline{\textbf{Geographic Location}} &

  7. {\textbf{Site}} &

  8. {\textbf{IP Address}} &

  9. {\textbf{Top Level Directory}} \\

  10.   \hline\hline

  11. United States & \tt ftp.shsu.edu & 192.92.115.10 & \it /tex-archive\\

  12.   \hline\hline

  13. England & \tt ftp.tex.ac.uk & 131.151.79.32 & \it /tex-archive\\

  14.   \hline\hline

  15. Germany & \tt ftp.uni-stuttgart.de & 129.69.8.13 & \it /tex-archive\\

  16.    \hline\hline

  17. \end{tabular}

  18. \end{lrbox}

然后
  1. \scalebox{0.5}{\usebox{\tablebox}}

或者
  1. \resizebox{0.8\textwidth}{!}{\usebox{\tablebox}}

9 使用beamer制作幻燈片時(shí),若用 pdf latex編譯,一定編譯兩次,才可以使得標(biāo)簽正確顯示;pdflatex支持除eps以外的各種格式的圖片,插圖方式與 論文一樣。

10. 將圖、表標(biāo)題等使用中文
  1. \renewcommand\contentsname{目\ 錄}

  2. \renewcommand\listfigurename{插圖目錄}

  3. \renewcommand\listtablename{表格目錄}

  4. %\renewcommand\abstractname{摘\ 要}  %err undefined

  5. %\renewcommand\refname{參考文獻(xiàn)}         %article類型

  6. \renewcommand\bibname{參\ 考\ 文\ 獻(xiàn)}    %book類型

  7. \renewcommand\indexname{索\ 引}

  8. \renewcommand\figurename{圖}

  9. \renewcommand\tablename{表}

  10. \renewcommand\partname{部分}

11 使用如下命令定制定理等,顯示“定理”等,編號(hào)按照節(jié)標(biāo)題獨(dú)立編號(hào)
  1. \newtheorem{mythl}{\hei 引理}[section]

  2. \newtheorem{mytht}{\hei 定理}[section]

  3. \newtheorem{mythr}{\hei 注}[section]

  4. \newtheorem{mythc}{\hei 推論}[section]

  5. \newtheorem{mythd}{\hei 定義}[section]

  6. \newtheorem{mytha}{\hei 公理}

  7. \newtheorem{mythp}{\hei 命題}

  8. \newtheorem{mythe}{\hei 練習(xí)}

  9. \newtheorem{myli}{\hei 例}[section]

例如定理,代碼為:
  1. \begin{mytht}

  2. .......

  3. \end{mytht}

12. 定義顏色
  1. \definecolor{beamer@blendedred}{rgb}{0.7,0.2,0.2} % use structure theme to change

  2. \definecolor{beamer@blendedblue}{rgb}{0.2,0.2,0.7} % use structure theme to change

設(shè)定 結(jié)構(gòu) 的前景色
  1. \setbeamercolor{structure}{fg=beamer@blendedred}

13.使用繼承方式來批量改變block標(biāo)題顏色和block主干顏色,利用“<顏色>!<數(shù)字>!<顏色>”來進(jìn)行混合
  1. \setbeamercolor{block title}{use=structure,fg=structure.fg,bg=structure.fg!20!bg}

  2. \setbeamercolor{block title alerted}{use=alerted text,fg=alerted text.fg,bg=alerted text.fg!20!bg}

  3. \setbeamercolor{block title example}{use=example text,fg=example text.fg,bg=example text.fg!20!bg}

  4. \setbeamercolor{block body}{parent=normal text,use=block title,bg=block title.bg!50!bg}

  5. \setbeamercolor{block body alerted}{parent=normal text,use=block title alerted,bg=block title alerted.bg!50!bg}

  6. \setbeamercolor{block body example}{parent=normal text,use=block title example,bg=block title example.bg!50!bg}

  7. \setbeamercolor{titlelike}{parent=structure,bg=white!90!red}

14.設(shè)置使用襯線字體做正文(默認(rèn)全是無襯線,按這個(gè)設(shè)置,僅標(biāo)題是無襯線)
  1. \usefonttheme[stillsansseriflarge,stillsansserifsmall]{serif}

15.設(shè)置半透明化尚未出現(xiàn)的內(nèi)容(方便提醒自己下面要講什么)
  1. \setbeamercovered{transparent}

16.取消導(dǎo)航條
  1. \setbeamertemplate{navigation symbols}{}   

17.以下命令中通過選擇show或者h(yuǎn)ide控制相應(yīng)節(jié)的顯示
  1. \tableofcontents[currentsection,currentsubsection,subsectionstyle=show/show/hide]

18. 同一個(gè)位置動(dòng)態(tài)顯示兩個(gè)block,用下面方法
  1. \begin{frame}

  2.      \only<1>{\begin{itemize}

  3.      \item item1

  4.      \item item2

  5.      \end{itemize}}

  6.      \only<2>{\begin{itemize}

  7.      \item item3

  8.      \item item4

  9.      \end{itemize}}

  10. \end{frame}

19. 利用\onslide<2-> 可以將某個(gè)段落實(shí)現(xiàn)在按順序出現(xiàn),< >的用法參見 \item< >,呵呵

20.加入動(dòng)畫的命令,不過還沒試驗(yàn),等我試了再說
  1. \begin{frame}{平板壓實(shí)的應(yīng)用\ding{223} 亨特機(jī)}

  2. \vskip-.2cm

  3. \includemovie[poster,text=(Hunter Machinery),mouse,repeat]{11cm}{7.4cm}{./image/pro.swf}

  4. \end{frame}

    本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購買等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
    轉(zhuǎn)藏 分享 獻(xiàn)花(0

    0條評(píng)論

    發(fā)表

    請(qǐng)遵守用戶 評(píng)論公約

    類似文章 更多