From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: suvayu ali Newsgroups: gmane.emacs.help Subject: Re: How to create a function to italicize in latex in emacs? Date: Wed, 27 Jul 2011 21:53:58 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1311796470 27566 80.91.229.12 (27 Jul 2011 19:54:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2011 19:54:30 +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 Wed Jul 27 21:54:26 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 1QmABV-0003DC-VJ for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 21:54:26 +0200 Original-Received: from localhost ([::1]:54393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmABV-0006QZ-Br for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 15:54:25 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmABR-0006QT-2D for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 15:54:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QmABQ-0004zm-0j for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 15:54:21 -0400 Original-Received: from mail-ey0-f174.google.com ([209.85.215.174]:44556) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QmABP-0004zZ-SZ for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 15:54:19 -0400 Original-Received: by eyx24 with SMTP id 24so3509681eyx.19 for ; Wed, 27 Jul 2011 12:54:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=34NLSMOneCKTQGDHQD64tN1jF/ernvmANo170yC2qAI=; b=nvGz2s0BimQX73Tz8WZy6H7Roew3UMiy7lzX3VIABi+7mTHLx7Vleu3pGXVgdjFxhU cxj6fObNFDF0jPWqC6G+hETg6yG8ZlqoCo3YHkKKOetuyQRApsOb3RTkpEVXBa2Z5YXV AVGakxftb28wAlCpb95tc4H0c/49cd7gSDIAQ= Original-Received: by 10.204.135.215 with SMTP id o23mr63055bkt.164.1311796458254; Wed, 27 Jul 2011 12:54:18 -0700 (PDT) Original-Received: by 10.204.132.87 with HTTP; Wed, 27 Jul 2011 12:53:58 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: 2NHY-WZulOwX7CJaHwerusjvZnA X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.215.174 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:81816 Archived-At: On Tue, Jul 26, 2011 at 12:58 PM, Pedro Costa wrote: > 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? > Not exactly the answer you are looking for but you might want to look at org-mode. It lets you format text with simple markups (e.g. /italicise/, *bold*, _underline_ ) and much more. And then you can export an org-mode document to several formats, including latex. http://orgmode.org/ http://orgmode.org/worg/ > Thanks, > GL. -- Suvayu Open source is the future. It sets us free.