all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tariq <tariq.perwez@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: xelatex menu option does not show
Date: Mon, 26 Apr 2010 18:58:13 -0700 (PDT)	[thread overview]
Message-ID: <ac9f8669-383a-416e-807d-3b4e1b9687e8@i40g2000yqd.googlegroups.com> (raw)
In-Reply-To: 874oiyq6y2.fsf@fh-trier.de

On Apr 26, 4:45 pm, Andreas Politz <poli...@fh-trier.de> wrote:
> Tariq <tariq.per...@gmail.com> writes:
> > Hi Everyone,
>
> > I have this code in my .emacs file and it worked very well until a few
> > days ago. It was kindly given to me on this forum. With this code,
> > when a buffer with fontspec package is opened, I used to see an option
> > XeLaTeX under the Command menu. Today, however, I do not see such
> > option. I have opened and closed Emacs just to make sure.
>
> > My computer had crashed yesterday when I was working in Emacs but I
> > did not see any other issue with Emacs performance. I have been
> > working on other LaTeX files since reboot without any apparent
> > problems. Still, something is not right. Could the computer crash have
> > done some damage to my Emacs? How can I fix it? BTW, I am running
> > Ubuntu 9.10.
>
> > Thanks for your help. Regards,
>
> > Tariq
>
> > ;;Code from .emacs
>
> > ;;set xetex mode in tex/latex
> > (defun my-latex-mode-hook ()
> >       (add-to-list 'TeX-command-list
> >                    '("XeLaTeX" "%`xelatex%(mode)%' %t" TeX-run-TeX nil
> > t))
> >       (setq TeX-command-default
> >             (save-excursion
> >               (save-restriction
> >                 (widen)
> >                 (goto-char (point-min))
> >                 (let ((re (concat "^\\s-*\\\\usepackage\\(?:\\[.*\\]\
> > \)?"
> >                                   "{.*\\<\\(?:font\\|math\\)spec\
> > \>.*}")))
> >                   (if (re-search-forward re 3000 t)
> >                       "XeLaTeX"
> >                     "LaTeX"))))))
> > ;;
>
> I think you simply forgot to
>
> (add-hook 'LaTeX-mode-hook 'my-latex-mode-hook)
>
> .
>
> -ap

Hi Andreas

Strange that I did not do anything to the code and it was working
until I opened a xelatex file in Emacs today.

Where do I add that line in the code? Does it come after the code I
posted?

Thanks a lot for your help. Regards,

Tariq



  reply	other threads:[~2010-04-27  1:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26 19:03 xelatex menu option does not show Tariq
2010-04-26 20:45 ` Andreas Politz
2010-04-27  1:58   ` Tariq [this message]
2010-04-27 15:49   ` Tariq
2010-04-27 16:08     ` Tariq
2010-04-27 17:59       ` Andreas Politz
2010-04-27 18:22         ` Tariq

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

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

  git send-email \
    --in-reply-to=ac9f8669-383a-416e-807d-3b4e1b9687e8@i40g2000yqd.googlegroups.com \
    --to=tariq.perwez@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.