Permalink
Browse files

Change size of image to a sensible default.

  • Loading branch information...
1 parent 1dd829f commit 52899e78c1eeb98827376a38b26601be7b4b7663 @jeroenh jeroenh committed with infininight Mar 5, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 DragCommands/Include Image.plist
@@ -17,14 +17,14 @@ path = Pathname.new(filename).relative_path_from(master.dirname)
case ENV['TM_MODIFIER_FLAGS']
when /OPTION/
puts ["\\\\begin{center}",
- " \\\\includegraphics[height=\${1:3in}]{#{path}}",
+ " \\\\includegraphics[width=\${1:.9\textwidth}]{#{path}}",
"\\\\end{center}"].join("\n")
when /SHIFT/
- puts "\\\\includegraphics[height=\${1:3in}]{#{path}}"
+ puts "\\\\includegraphics[width=\${1:.9\textwidth}]{#{path}}"
else
puts ["\\\\begin{figure}[\${1:htbp}]",
" \\\\centering",
-" \\\\includegraphics[height=\${2:3in}]{#{path}}",
+" \\\\includegraphics[width=\${1:.9\textwidth}]{#{path}}",
" \\\\caption{\${4:caption}}",
" \\\\label{fig:\${5:#{path.to_s.gsub(/(\.[^.]*$)|(\.\.\/)/,"").gsub(/\//,"_")}}}",
"\\\\end{figure}"].join("\n")

0 comments on commit 52899e7

Please sign in to comment.