[TxMt] Drag problem with LaTeX bundle
Alain Matthes
alain.matthes at mac.com
Wed Oct 18 22:23:44 UTC 2006
Le 18 oct. 06 à 22:57, Charilaos Skiadas a écrit :
>
> If this is indeed what you have there, then please send me the full
> paths of both the pdf file and the tex file. Note in particular the
> first 5-6 lines.
> Are you using the subversion copy of the LaTeX bundle?
The drag command is
#!/usr/bin/env ruby
require 'pathname'
filename = Pathname.new(ENV['TM_DROPPED_FILE'])
dir = ENV['TM_DIRECTORY'] || ""
filename = filename.relative_path_from(Pathname.new(dir)) if dir != ""
case ENV['TM_MODIFIER_FLAGS']
when /OPTION/
puts ["\\\\begin{center}",
" \\\\includegraphics[height=\${1:3in}]{#{filename}}",
"\\\\end{center}"].join("\n")
when /SHIFT/
puts "\\\\includegraphics[height=\${1:3in}]{#{filename}}"
else
puts ["\\\\begin{figure}[\${1:htbp}]",
" \\\\begin{center}",
" \\\\includegraphics[height=\${2:3in}]{#{filename}}",
" \\\\end{center}",
" \\\\caption{\${4:caption}}",
" \\\\label{fig:\${5:label}}",
"\\\\end{figure}"].join("\n")
end
In my library, and in the folder \Application Support\TextMate i've a
LateX bundle
and it's a subversion copy but without this bundle the problem is
the same...
drag.tex : "/Users/ego/Boulot/drag.tex"
.pdf tex "/Users/ego/Boulot/doc_tukey.pdf"
> If this is indeed what you have there, then please send me the full
> paths of both the pdf file and the tex file. Note in particular the
> first 5-6 lines.
I don't understand the first 5-6 lines. lines of what ???
`
but the problem is the same with an other pdf file.
If i create a new file in a project i've also the problem
The only way is to create a new file .tex outside of a project but if
i save it : error !!
Thanks Alain
More information about the textmate
mailing list