Saturday 8 May 2010

如何用TeXnicCenter生成 IEEE camera-ready paper

主要来源于这篇文章: How to Produce IEEE Camera-Ready Papers With TeXnicCenter

问题其实主要在于IEEE camera-ready的paper 需要embed 所有的fonts, 所以其实是要设置在生成pdf的时候,让texniccenter embed所有的fonts, 更具体的说,就是 修改 gswin32c.exe 的参数。

首先是要在texniccenter里面 生成 Tex=>ps=>pdf的profile, 某些情况下texniccenter会自动生成,不过有时候需要自己去添加。如果已经有了的话,就可以略过某些步骤。

方法如下:
  • Enter TeXnicCenter output profiles screen by pressing ALT+F7. //用alt+F7打开output profiles screen, 也可以build->defined output profiles 进入

  • Click the ADD button. //添加profile

  • Enter profile name, e.g LaTeX => PS => PDF.

  • Select the new profile and check Run LaTeX in this profile. //添加latex的执行文件

  • Enter the path to latex.exe file, for example:
    C:\Program Files\MiKTeX 2.7\miktex\bin\latex.exe
    And enter command line arguments:
    --src -interaction=nonstopmode "%Wm"

  • In the Postproccesor tab, create new entry by clicking the INSERT key. Write down “dvips” as a name for the new entry. Then define the path to dvips.exe file, for example:
    C:\Program Files\MiKTeX 2.7\miktex\bin\dvips.exe
    And the arguments:
    -Ppdf -j0 "%Bm.dvi"  //添加生成dvi的执行文件

  • Still, at the Postproccesor tab, create another entry by clicking the INSERT key. Write down “ghostscript” as a name for the new entry. Then define the path to gswin32c.exe file, for example:
    C:\Program Files\gs\gs8.63\bin\gswin32c.exe
    And the arguments (as one long line):
    -sPAPERSIZE=a4 -dSAFER -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/printer -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true -sOutputFile="%bm.pdf" -c save pop -f "%bm.ps" //添加生成ps.pdf的执行文件,重要的是这里面的参数:dEmbedAllFonts=true

  • Finally, switch to the Viewer tab, and enter the path to Adobe Reader executable. Common path is:
    C:\Program Files\Adobe\Reader 9.0\Reader\AcroRd32.exe
    Next, select DDE command in each section (3 times). Enter “acroview” in each Server text box (3 times), and “control” in each Topic text box. In the first two Command text boxes (View project’s output and Forward Search sections) fill in:
    [DocOpen("%bm.pdf")][DocOpen("%bm.pdf")][FileOpen("%bm.pdf")]
    And in the last Command text box (Close document before… section) fill in:
    [DocClose("%bm.pdf")] //这里可以让每次生成pdf的时候把会写入的pdf关掉(如果打开的话),还是很好用的
  • No comments:

    Post a Comment