unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Maurizio Vitale <mav@cuma.i-did-not-set--mail-host-address--so-tickle-me>
To: help-gnu-emacs@gnu.org
Subject: Re: Help: execute scripts form emacs
Date: Tue, 13 Oct 2009 16:49:51 -0400	[thread overview]
Message-ID: <87pr8r9fyo.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: 25853628.post@talk.nabble.com

>>>>> "wdysun" == wdysun  <grammophonia@gmail.com> writes:

    wdysun> Hello dears,

    wdysun> suppose I have a script in /bin, let us assume it is called
    wdysun> mytex. Suppose I am editing a file called filename.tex.

    wdysun> If I run the following command from the console:

    wdysun> $ mytex filename

    wdysun> this will do several things (tex the filename with several
    wdysun> options, then convert the dvi to pdf and it deletes all aux
    wdysun> files I don't need).

    wdysun> There is a way to launch the script from emacs or even to
    wdysun> build a function so that I can run the command just with M -
    wdysun> something?

You can do two things:

    - in a buffer local variable set the compile command to mytex
      filename and then use M-x compile

    - but if your script is only for running latex as much as needed,
      then bibtex, then latex again (and maybe switch between the dvi
      and pdf path), do yourself a favour and use AUCTeX 
      (http://www.gnu.org/software/auctex/). You won't look back.

OTH,

        Maurizio





  parent reply	other threads:[~2009-10-13 20:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-12 10:39 Help: execute scripts form emacs wdysun
2009-10-12 18:37 ` wdysun
2009-10-13 20:49 ` Maurizio Vitale [this message]
2009-10-13 23:10   ` Andreas Politz
2009-10-14  8:24     ` wdysun
     [not found] ` <mailman.8700.1255466814.2239.help-gnu-emacs@gnu.org>
2009-10-13 22:49   ` Jon Solberg
     [not found] <mailman.8598.1255354671.2239.help-gnu-emacs@gnu.org>
2009-10-12 14:10 ` Olivier Sirven
2009-10-12 17:30 ` Pascal J. Bourguignon
2009-10-14  9:37 ` Xah Lee
2009-10-14 16:01 ` Raymond Wiker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pr8r9fyo.fsf@cuma.i-did-not-set--mail-host-address--so-tickle-me \
    --to=mav@cuma.i-did-not-set--mail-host-address--so-tickle-me \
    --cc=help-gnu-emacs@gnu.org \
    --cc=maurizio.vitale@polymath-solutions.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).