From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dejfson Newsgroups: gmane.emacs.help Subject: Re: How to create a function to italicize in latex in emacs? Date: Wed, 27 Jul 2011 21:31:36 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015175cd32ac4782004a9121822 X-Trace: dough.gmane.org 1311818126 22500 80.91.229.12 (28 Jul 2011 01:55:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2011 01:55:26 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Pedro Costa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 03:55:22 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QmFon-0001ju-U7 for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2011 03:55:22 +0200 Original-Received: from localhost ([::1]:47273 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmFon-0000M4-75 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 21:55:21 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qm9pT-00009f-Am for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 15:31:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qm9pS-0007rT-Ca for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 15:31:39 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:59576) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qm9pS-0007rN-AI for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 15:31:38 -0400 Original-Received: by qwa26 with SMTP id 26so1336785qwa.0 for ; Wed, 27 Jul 2011 12:31:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=YvnN1H+iMKqoVK+yzH/SZffUJrfzhyC1lF4P4ORLQq8=; b=dBKUk9JDAIyWlxuYVIH7TrhctToPnrb0DU/LGpcwuNngLjYrVckPBY7F0ruWkk0IKD 4oS3h1tBkVqKvpFHYNHZcspE58xouzdtauiGgA6JbGLpenP/M276E3urjIUX9uMSlc/f DaahL+k3ccLnSPiKAUBEHVfVeHWSENzNCsvnE= Original-Received: by 10.229.7.9 with SMTP id b9mr157936qcb.167.1311795096876; Wed, 27 Jul 2011 12:31:36 -0700 (PDT) Original-Received: by 10.229.217.68 with HTTP; Wed, 27 Jul 2011 12:31:36 -0700 (PDT) Original-Received: by 10.229.217.68 with HTTP; Wed, 27 Jul 2011 12:31:36 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.41 X-Mailman-Approved-At: Wed, 27 Jul 2011 21:55:15 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81818 Archived-At: --0015175cd32ac4782004a9121822 Content-Type: text/plain; charset=UTF-8 This is already done. Install auctex and you can use shortcuts like c-c c-f c-i if you want font to be in italics D. sent from mobile phone Dne 27.7.2011 21:19 "Pedro Costa" napsal(a): > Hi, > > I would like to italicize a word in latex in emacs automatically. > Instead of write \textit{word}, I would like to select the "word" and > then write M-x and it's added textit around the word. Do > I have to create a lisp function in .emacs? How do I do that? > > Thanks, > --0015175cd32ac4782004a9121822 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

This is already done. Install auctex and you can use shortcuts like c-c = c-f c-i if you want font to be=C2=A0 in italics

D.

sent from mobile phone

Dne 27.7.2011 21:19 "Pedro Costa" <= psdc1978@gmail.com> napsal(a):=
> Hi,
>
> I would like to italiciz= e a word in latex in emacs automatically.
> Instead of write \textit{word}, I would like to select the "word&= quot; and
> then write M-x <my command> and it's added text= it around the word. Do
> I have to create a lisp function in .emacs? = How do I do that?
>
> Thanks,
>
--0015175cd32ac4782004a9121822--