<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Tech blog of  WEN Yang : TeX</title><link>http://blogs.mit.edu/CS/blogs/wenyang/archive/category/275.aspx</link><description>TeX</description><dc:language>en-US</dc:language><generator>CommunityServer 1.1 (Build: 1.1.0.50615)</generator><item><title>Beamer is so cool</title><link>http://blogs.mit.edu/CS/blogs/wenyang/archive/2005/06/17/14962.aspx</link><pubDate>Fri, 17 Jun 2005 05:40:00 GMT</pubDate><guid isPermaLink="false">dea6705e-d99c-4a22-9533-aabb455eb28d:14962</guid><dc:creator>wenyang</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.mit.edu/CS/blogs/wenyang/comments/14962.aspx</comments><wfw:commentRss>http://blogs.mit.edu/CS/blogs/wenyang/commentrss.aspx?PostID=14962</wfw:commentRss><description>&lt;p&gt;I created my first PDF-format presentation, using LaTeX + Beamer. The slides were for my oral presentation of the general exam. I passed the exam, by the way.&lt;/p&gt;
&lt;p&gt;A few comments about the use of figures...&lt;/p&gt;
&lt;p&gt;For better quality, vector formats, such as EPS or PDF, are prefered. Figures created by Matlab can be directly save as EPS. Outputs generated GNUPlot can also be redirect to an EPS file. Using EPS files in TeX is as simple as &lt;/p&gt;
&lt;p&gt;&lt;em&gt;\includegraphics[height=0.5\textheight]{demand_supply_interaction.eps}&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;We can compile TeX files into DVI files and then convert them into PDF files. We might prefer to use &lt;em&gt;pdflatex&lt;/em&gt; if we use Beamer, however, because Beamer changes many settings in order to create an document that fit for presentation and the DVI file we generate will look ugly. Using &lt;em&gt;pdflatex&lt;/em&gt;, on the other hand, will give us the direct output we want.&lt;/p&gt;
&lt;p&gt;One subtle but important change for using &lt;em&gt;pdflatex&lt;/em&gt;, unfortunately, is that it does not support EPS file! We need to convert EPS files into PDF files. &lt;em&gt;MikTeX&lt;/em&gt; provides a small program named as "&lt;strong&gt;epstopdf&lt;/strong&gt;" to do that for us. Note that some EPS files do not have the bounding box calculated. Then one thing we can do is to use GSView PS-&amp;gt;EPS command and select the "Automatically calculate Bounding Box" option to create another EPS suitable for conversion. Of course we can convert the EPS file into JPG, which is supported by pdflatex directly. But JPG is not a vector format and the output may not be as clear.&lt;/p&gt;
&lt;p&gt;For figures/graphs generated by Excel or other program, which do not provide a good way to output EPS files, our best option is directly print the figures into PDF, using a PDF printer. Alternatively, we can use the "Print to file" option for any PS printer to get a PS file and then use GSView to do the rest of the job, following the same procedures as described above.&lt;/p&gt;
&lt;p&gt;Once we have a PDF figure file, inserting it into the TeX file is as easy as the EPS case. For example,&lt;/p&gt;
&lt;p&gt;&lt;em&gt;\includegraphics[height=7cm]{fig/NetworkSize.pdf}&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;One thing that I have not yet figured out is how to create a suitable handout. I used the handout mode, which worked fine for most slides except the one with "\againframe&amp;lt;2-&amp;gt;[plain]{zooms}". I used that command for zooming in to see details of the original figure.&lt;/p&gt;&lt;img src="http://blogs.mit.edu/CS/aggbug.aspx?PostID=14962" width="1" height="1"&gt;</description></item><item><title>beamer 中文书签的解决方法</title><link>http://blogs.mit.edu/CS/blogs/wenyang/archive/2005/05/24/13083.aspx</link><pubDate>Tue, 24 May 2005 20:05:00 GMT</pubDate><guid isPermaLink="false">dea6705e-d99c-4a22-9533-aabb455eb28d:13083</guid><dc:creator>wenyang</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.mit.edu/CS/blogs/wenyang/comments/13083.aspx</comments><wfw:commentRss>http://blogs.mit.edu/CS/blogs/wenyang/commentrss.aspx?PostID=13083</wfw:commentRss><description>&lt;ol&gt;
&lt;li&gt;Use &lt;em&gt;pdflatex&lt;/em&gt; directly: 
&lt;p&gt;pdflatex filename.tex&lt;br /&gt;pdflatex filename.tex&lt;br /&gt;gbk2uni filename.out&lt;br /&gt;pdflatex filename.tex&lt;/p&gt;
&lt;/li&gt;&lt;li&gt;&lt;em&gt;latex-&amp;gt;dvips-&amp;gt;ps2pdf&lt;/em&gt;: 
&lt;p&gt;\documentclass[cjk,hyperref={dvips}]{beamer} &lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;By bethoven @ &lt;a href="http://TeX.board.newSMTH.net" target="_blank"&gt;TeX.NewSMTH&lt;/a&gt;&lt;img src="http://blogs.mit.edu/CS/aggbug.aspx?PostID=13083" width="1" height="1"&gt;</description></item><item><title>File conversion: TeX -&gt; DVI -&gt; PS -&gt; PDF</title><link>http://blogs.mit.edu/CS/blogs/wenyang/archive/2005/04/27/11255.aspx</link><pubDate>Wed, 27 Apr 2005 22:25:00 GMT</pubDate><guid isPermaLink="false">dea6705e-d99c-4a22-9533-aabb455eb28d:11255</guid><dc:creator>wenyang</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.mit.edu/CS/blogs/wenyang/comments/11255.aspx</comments><wfw:commentRss>http://blogs.mit.edu/CS/blogs/wenyang/commentrss.aspx?PostID=11255</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;TeX -&amp;gt; dvi:&lt;/strong&gt;&lt;/p&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;
&lt;p&gt;&lt;em&gt;latex ...&lt;/em&gt; (use emacs auctex package)&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;might need to run bibtex to generate bibliography (aux file need, so run latex first!)&lt;/p&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;
&lt;p&gt;&lt;em&gt;bibtex file_name_without_extension&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p dir="ltr"&gt;after running bibtex, should run latex again!&lt;/p&gt;
&lt;p dir="ltr"&gt;&lt;strong&gt;dvi -&amp;gt; ps:&lt;/strong&gt;&lt;/p&gt;
&lt;p dir="ltr"&gt;in windows, use dvips, -t to specify paper size.&lt;/p&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;
&lt;p dir="ltr"&gt;&lt;em&gt;dvips -t "Letter" filename.dvi&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p dir="ltr"&gt;in linux, &lt;/p&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;
&lt;p dir="ltr"&gt;&lt;em&gt;dvips filename.dvi -Ppdf &lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p dir="ltr"&gt;&lt;strong&gt;ps -&amp;gt; pdf:&lt;/strong&gt;&lt;/p&gt;
&lt;p dir="ltr"&gt;in windows, use &lt;strong&gt;gsview&lt;/strong&gt;, menu, &lt;em&gt;convert&lt;/em&gt; ...&lt;/p&gt;
&lt;p dir="ltr"&gt;in linux,&lt;/p&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;
&lt;p dir="ltr"&gt;&lt;em&gt;ps2pdf filename.ps&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p dir="ltr"&gt;&lt;strong&gt;dvi -&amp;gt; pdf:&lt;/strong&gt;&lt;/p&gt;
&lt;p dir="ltr"&gt;(This direct approach may have &lt;strong&gt;better&lt;/strong&gt; result, such as preserve text search ability)&lt;/p&gt;
&lt;p dir="ltr"&gt;in windows, use dvipdfm (in some cases, dvipdfmx), “-c” to gnore color specials (for B&amp;amp;W printing), “-o filename”  to set output file name, “-p papersize” to set papersize (letter, legal, ledger, tabloid, a4, or a3, default is [letter])&lt;/p&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;
&lt;p dir="ltr"&gt;&lt;em&gt;dvipdfm  filename.dvi&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p dir="ltr"&gt;&lt;em&gt; &lt;/em&gt;in linux,&lt;/p&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;
&lt;p dir="ltr"&gt;&lt;em&gt;dvipdf [ options ] input.dvi [ output.pdf ] ...&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p dir="ltr"&gt;&lt;strong&gt;TeX -&amp;gt; pdf:&lt;/strong&gt;&lt;/p&gt;
&lt;p dir="ltr"&gt;work for "simple" tex file. e.g., pure text, no (eps) figures...&lt;/p&gt;
&lt;blockquote dir="ltr" style="MARGIN-RIGHT: 0px"&gt;
&lt;p dir="ltr"&gt;&lt;em&gt;pdflatex filename.tex&lt;/em&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;img src="http://blogs.mit.edu/CS/aggbug.aspx?PostID=11255" width="1" height="1"&gt;</description></item></channel></rss>