Benedikt Meurer wrote:
Attached a rough latex thumbnailer. Uses latex to generate a dvi and then convert to output a png.Erlend Davidson wrote:Some problems with thumbnailing .tex files is that they can take some time to compile, they change a lot (if you are editing them) and a lot of the time they are full of compile errors if you are writing a large file over a long period.I'd like to see a repository of additional thumbnailers/scripts. If somebody agrees to maintain the thumbnailers, I can setup a goodiesproject. I bet there are a lot of interesting file formats, which don'thave thumbnailers right now (i.e. I'd very much welcome a TeXthumbnailer, which automatically detects whether to use PDFTeX or LaTeX,and a .fig thumbnailer would also be nice).Well, that's the challenge. ;-)
What do you think of thumbnailing plain-text files? Konqueror does this, and according to my flatmate (a kde user) it's very useful just to tell that a file isn't empty.I've always dislike text file previews in both Konqueror and Nautilus. There's still an open feature request for this in Thunar. Adding this as 3rd party thumbnailer might be the right way.
Does anybody know how konqueror or nautilus thumbnails text? I've looked at text2gif. Benedikt Meurer wrote:
Ok, sign up for an account, see http://goodies.xfce.org/contribute/user-accounts I'll setup the project.
I've signed up for the 'goodies' project (svn access with no rsa-dsa key). Erlend
tex-thumbnailer.desktop
Description: application/desktop
#!/bin/sh # # tex-thumbnailer - Thumbnailer script for TEX (TeX/LaTeX) files. # # Usage: tex-thumbnailer tex-file png-file size # # command line parameters ifile=$1 ofile=$2 size=$3 latex -interaction=nonstopmode -output-directory=/tmp "$ifile" # now the output file is called ${file}.dvi where ${file}=`basename $ifile .tex` file=`basename ${ifile} .tex` tmpfile="/tmp/${file}.dvi" if [ ! -f ${tmpfile} ]; then exit 1 fi exec convert "dvi:${tmpfile}" -scale "$sizex$size" "png:${ofile}"
_______________________________________________ Thunar-dev mailing list Thunar-dev@xfce.org http://foo-projects.org/mailman/listinfo/thunar-dev