To run a shell command in elisp, you need, e.g.
(shell-command command &optional output-buffer error-buffer)
(shell-command-to-string (concat cmd-name " " img-file-
for a full code example, see the xGetDimention in
Elisp Lesson: Writing image-linkify Function
On Jun 10, 5:40 am, "benjamin.friedrich"
> Dear all,
> I am a lisp newbie;
> I want to define a short-cut in my .emacs which automatically runs
> latex on my thesis,
> i.e. something like this
> (defun tex-thesis () "latex my thesis" "latex \\nonstopmode\input -src
> (global-set-key [f4] 'tex-thesis)
> How should this read as correct lisp code?
> I tried
> (setq tex-main-file "E:/ben/thesis/thesis.tex")
> but then c-c c-f 'latex-file will always latex the thesis, even if I
> to work on a tex-file that does not belong to the thesis.