Script:3230
Talk0
1,599pages on
this wiki
this wiki
Use this page to discuss script 3230 TeX-PDF: lightweight TeX-to-PDF development support
- Add constructive comments, bug reports, or discuss improvements (see the guideline).
- Do not document the script here (the author should do that on vim.org).
- This page may be out of date: check the script's vim.org page above, and its release notes.
Changes needed for Max OS X
Edit
To make this script work on my Macbook OSX v.10.8.2 I had to do these changes.
My system:
rand[~]> uname -a Darwin XYZ-MacBook-Pro.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
Line 210 must be changed to:
setlocal makeprg=pdflatex\ \-file\-line\-error\ \-interaction=nonstopmode\ $*\\\|\ grep\ ':\\d{1,5}:\ '
To make the preview function work, I commented out a few lines:
249 function! <SID>ViewTexPdf(...)
250 if a:0 == 0
251 let l:target = expand("%:p:r") . ".pdf"
252 else
253 let l:target = a:1
254 endif
255 "if has('mac')
256 silent execute "! open ".l:target
257 "elseif has('win32') || has ('win64')
258 " silent execute "! start ".l:target
259 "else
260 " if executable('xdg-open')
261 " silent execute "! xdg-open ".l:target
262 " elseif executable('gnome-open')
263 " silent execute "! gnome-open ".l:target
264 " elseif executable('kfmclient')
265 " silent execute "! kfclient exec ".l:target
266 " elseif executable('see')
267 " silent execute "! see ".l:target
268 " elseif executable('cygstart')
269 " silent execute "! cygstart ".l:target
270 " endif
271 "endif
272 "if v:shell_error
273 redraw!
274 "endif
275 endfunction
Now it works for me. --January 26, 2013