help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple tex shell command


From: Xah
Subject: Re: simple tex shell command
Date: Tue, 10 Jun 2008 17:00:44 -0700 (PDT)
User-agent: G2/1.0

To run a shell command in elisp, you need, e.g.

(shell-command command &optional output-buffer error-buffer)
or
(setq sh-output
          (shell-command-to-string (concat cmd-name " " img-file-
path)))

for a full code example, see the xGetDimention in

Elisp Lesson: Writing image-linkify Function
http://xahlee.org/emacs/elisp_image_tag.html

  Xah
∑ http://xahlee.org/

☄

On Jun 10, 5:40 am, "benjamin.friedrich"
<address@hidden> wrote:
> 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
> E:/thesis/thesis.tex")
> (global-set-key [f4] 'tex-thesis)
>
> How should this read as correct lisp code?
>
> Thanks,
> Ben
>
> P.S.
> 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
> happen
> to work on a tex-file that does not belong to the thesis.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]