博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[zz]Using SyncTeX with LaTeX
阅读量:6370 次
发布时间:2019-06-23

本文共 2468 字,大约阅读时间需要 8 分钟。

 

23 Nov 09

SynchronisationWorking with LaTeX involves writing in one application (, , etc.) and viewing your document in a pdf reader (Acrobat Reader, , etc.). To see the result of your work, to correct or improve it, it is often practical to quickly go back and forth between the working text and the resulting pdf.

In a recent past, this involved using the package pdfsync with the command \usepackage{pdfsync} inserted in the preamble or configuring your text editor to use pdfsync by default. Starting with the 2008 distribution of TeX it is now possible to use , written by Jerôme Laurens, the creator of psfsync. SyncTeX replaces pdfsync.

The advantages of SyncTeX are many: you do not need to load pdfsync; synchronisation between the two files is more precise; compatibility issues are basically irrelevant; etc.

To enable synchronisation, SyncTeX creates an auxiliary file in the format nameofthefile.synctex.gz.

Several text editors use SyncTeX by default. In for example, SyncTeX is used by default in Preferences>Composition>SyncMethod. SyncTeX is also invoked by default in Preferences>Engines>pdfTex. It is also used by default in . If SyncTex is not used by default you can always use the command -synctex=1 if you use the terminal or insert the following line in the preamble to force the use of SyncTeX.

\synctex=1

To deactivate SyncTeX, simply comment out the comment in the tex file or use -synctex=0 where you find synctex=1. In you just need to add -synctex=0 in the options of the Preferences in the LaTeX bundle.

To go from the tex file to the pdf file in simply do ⌃⌥⌘-o (the letter o, not zero); in ⌘-click.

Conversely, to go from the pdf file to the tex file in do ⇧ ⌘-click; in ⌘-click in the location of the pdf file that you want to land to in the tex file.

In a small red dot shows up by default in the pdf file that you targeted. The color can be changed in Preferences. The frame marks will not be printed.

To make things easier, you can leave both files open if your monitor is big enough or if you use two monitors. But then do not forget that the pdf file you see is the last compilation before you started making changes in the tex file, unless your pdf reader is set up for automatic refresh.

SyncTeX works fine for me using XƎTeX and on Snow Leopard.

Some Interesting Links

  • of by Jérôme Laurens, its developer. See also his article (pdf) in
  • with explanations for different editors.

转载于:https://www.cnblogs.com/nn0p/archive/2012/11/13/2767965.html

你可能感兴趣的文章
Myeclipse学习总结(5)——Myeclipse常用快捷键再学习
查看>>
2009年11月3日随笔
查看>>
本田CB750型加速时发动机工作间歇
查看>>
oracle备份与还原(导入导出)
查看>>
I帧 B帧 p帧 IDR帧的区别
查看>>
Linux内核:分析coredump文件 - 内核代码崩溃
查看>>
OpenCV处理文件、视频和摄像头
查看>>
SpringMVC初写(六)静态资源设置
查看>>
相关数学理论和公式(同余问题)
查看>>
js中call、apply、bind的区别和应用
查看>>
安卓市场--框架搭建2
查看>>
django ORM(一)
查看>>
【后缀数组】【线段树】poj3974 Palindrome
查看>>
【二分】【预处理】zoj4029 Now Loading!!!
查看>>
用UNetbootin轻松把Linux操作系统装进U盘
查看>>
《构建之法》——1~3章
查看>>
OpenCascade Application Framework Introduction
查看>>
OPEN CASCADE编译视频
查看>>
OpenCASCADE Interpolations and Approximations
查看>>
ACM-ICPC北京赛区2017网络同步赛
查看>>