由于月底要开国际会议,开始着手准备幻灯片,一如既往,抛开PowerPoint,使用Latex+Prosper来生成PDF。今天做了一个新样式,因为打算把学校的校徽放上去,所以整体的颜色就以校徽的颜色为基调,像下面的样子,名字就以我的名字和大学的名字的头字母,mytu,来命名。

Prosper样式:mytu。
样式的设计很简单,一个置顶的渐变蓝色背景,一条与校徽中间等高的渐变深蓝色窄条,标题使用白色底,细黑线勾边,这个功能使用了如下的命令:
\newcommand{\slidetitle}[1]{%
\rput[l](-1.4, 4.1){\pscharpath[fillstyle=solid,fillcolor=white,%
linecolor=black,linewidth=0.5pt]{\parbox{13cm}{\fontTitle{#1}}}}}
其中的\pscharpath是Ps-tricks的一个命令,需要pst-char包的支持。另外,\pscharpath与\parbox的顺序不能调换,如果\parbox在前,对于过长的标题就不会自动换行,这是花了好长时间才弄明白的。
校徽的插入并没有在样式中定义,是使用\Logo命令插入的,所以,用户可以自由放置自己学校的图案,宽度设置在1厘米时可达到最佳效果。
\Logo{\includegraphics[width=1cm]{tulogo.eps}}
如果您也是Prosper的用户,并喜欢此样式的话,欢迎下载使用。也许你要插入的Logo不是蓝色的,不要紧,你可以修改样式文件中的颜色定义,变成你喜欢的颜色。
我用此样式文件制作的PDF演示文稿,此文件曾于国际会议ISCAS05上演讲。
6 Comments so far
Leave a comment
Fields in bold are required. Email addresses are never published or distributed.
Some HTML code is allowed:<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
URIs must be fully qualified (eg: http://www.dupola.com) and all tags must be properly closed.
Line breaks and paragraphs are automatically converted.
Please keep comments relevant. Off-topic, offensive or inappropriate comments may be edited or removed.



我喜欢beamer
你好,能把这个.tex源文件给我吗,我想学习学习,谢谢!
我的邮箱:xzhou@nlpr.ia.ac.cn
最近做毕业答辩,下载了马哥哥的幻灯片.请问,12页中公式外的阴影框是用什么命令写的???谢了.
成功了,谢谢马哥哥.
我的slide标题有时需要两行才能显示。但是prosper预定的格式
这两行的间隔总是很大,以至让整个页面很难看。我想修改标题
环境中的行间距而不影响正文的行间距,怎么办呢?我在样式文
件中尝试了下面的命令,但是相应的正文行距设置不起作用,
而是按照标题部分设置的行距显示的,
\FontTitle{%
\usefont{T1}{ptm}{b}{n}\fontsize{20pt}{16pt}\renewcommand\baselinestretch{0.5}\selectfont\colortitlefont}{%
\usefont{T1}{ptm}{b}{n}\fontsize{20pt}{16pt}\renewcommand\baselinestretch{0.5}\selectfont\black}
\FontText{%
\usefont{T1}{ptm}{m}{n}\fontsize{10pt}{6pt}
\renewcommand\baselinestretch{1}\selectfont\black}{%
\usefont{T1}{ptm}{m}{n}\fontsize{10pt}{6pt}
\renewcommand\baselinestretch{1}\selectfont\black}
不知道马兄刻有什么办法帮帮我?
你好, 我試用你自製的prosper style 時, 出現 compliation error..
!Undefined Control Sequence
\c@lor@to@ps
但我的tex file 是很簡單的. 如下:
\documentclass[mytu]{prosper}
%%\usepackage[T1]{fontenc}
%%\usepackage{mdwslides}
\begin{document}
\begin{slide}
testing fonts
\fontfamily{verdana}\selectfont
\large
Testing again
\end{slide}
\end{document}
可不可以告訴我怎樣可以解決這個問題?
請用 e-mail 跟我聯絡
這問題是很緊急的
謝謝你幫忙