郝成春的博客分享 http://blog.sciencenet.cn/u/cchao

博文

Portable LaTeX: MikTex+TeXstudio+SumatraPDF

已有 22506 次阅读 2013-7-15 08:42 |系统分类:科普集锦| LaTeX编辑器

(免安装LaTeX系统)

1) Portable MikTex. 

2) Portable TeXstudio is a cross-platform open source LaTeX editor with an interface similar to Texmaker.

TeXstudio is a LaTeX IDE that provides modern writing support, such as interactive spell checking, code folding, and syntax highlighting.

Originally called TexMakerX, TeXstudio was started as a fork of Texmaker that tried to extend it with additional features while keeping its look and feel. It runs on Windows, Unix/Linux, BSD, and Mac OS X systems. Download: http://sourceforge.net/projects/texstudio/files/latest/download?source=files

3) SumatraPDF, also known as Sumatra, is an open source PDF reader for Microsoft Windows. The program also opens Open XML Paper Specification, DjVu,EPUB, XPS, FB2, CHM, CB7 CBR CBT CBZ, MOBI and PRC files.

 
 

>配置texstudio
  1)在命令的external PDF Viewer处修改为“"xxxxSumatraPDF.exe" %.pdf”,xxxx指向安装位置。
    之后在“Build"中将“default viewer”改为External PDF Viewer。
 2)在配置的“Build“中添加一个“user command”,名称“正向搜索”,内容:
dde:///"C:Program Files (x86)SumatraPDFSumatraPDF.exe":SUMATRA/control/[ForwardSearch("?am.pdf","?c:am.tex",@,0,0,1)]
        注意整个命令中没有任何空格,dde:后面必须是三个斜杠。
或者:
"C:Program Files (x86)SumatraPDFSumatraPDF.exe" -reuse-instance -forward-search "?am.tex" @ -fwdsearch-permanent 1 "?am.pdf"
这个方式可以让选中的文字始终呈现高亮状态,直到鼠标双击pdf中的这段文字。
>文本用utf-8编码,中文用
begin{CJK*}{UTF8}{song} 。。。end{CJK*}
 
>配置sumatraPDF
    在“设置反向搜索命令行”“请输入双击PDF文档时的命令行调用”下面的文本框中输入
    "xxxxTeXstudio.exe" "%f" -line %l
    其中xxxx指向Texstudio.exe所在目录


 



https://wap.sciencenet.cn/blog-298872-708223.html

上一篇:Harmonic Analysis Method for Nonlinear Evolution Equations I
收藏 IP: 111.199.27.*| 热度|

4 黄荣彬 罗林聪 王伟华 xsongy

该博文允许注册用户评论 请点击登录 评论 (4 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-13 19:37

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部