unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: adamp_at@at_ipipan.waw.pl (Adam P.)
Subject: Re: How to define a new font inserting command in AucTeX?
Date: Fri, 07 Feb 2003 19:14:38 +0100	[thread overview]
Message-ID: <87bs1oyn3l.fsf@at_ipipan.waw.pl> (raw)
In-Reply-To: m3lm0smazv.fsf@hotmail.com

Gerald Wildgruber <gwil.remove.this.phrase@lrz.uni-muenchen.de> writes:

> Can anyone help me with the definition of a new font command in AucTeX; I
> would like to make 
>
> C-c C-f C-g
>
> insert the string
>
> \textgreek{}
>
> in analogy to the other font commands (like `C-c C-f C-e' for `\emph{}'),
> with text between point an mark being placed inbetween the brackets.
>
> How can I achieve this?

Does this work?

(setq LaTeX-font-list 
  '((?\C-a ""              ""  "\\mathcal{"    "}")
    (?\C-b "\\textbf{"     "}" "\\mathbf{"     "}")
    (?\C-c "\\textsc{"     "}")
    (?\C-e "\\emph{"       "}")
    (?\C-f "\\textsf{"     "}" "\\mathsf{"     "}")
    (?\C-i "\\textit{"     "}" "\\mathit{"     "}")
    (?\C-m "\\textmd{"     "}")
    (?\C-n "\\textnormal{" "}" "\\mathnormal{" "}")
    (?\C-r "\\textrm{"     "}" "\\mathrm{"     "}")
    (?\C-s "\\textsl{"     "}")
    (?\C-t "\\texttt{"     "}" "\\mathtt{"     "}")
    (?\C-u "\\textup{"     "}")
    (?\C-d "" "" t)
;; Note the line below
    (?\C-g "\\textgreek{" "}" "\\textgreek{" "}") 
    )
  )

  Adam
-- 
Name and address in X-Real...

  parent reply	other threads:[~2003-02-07 18:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-07 14:16 How to define a new font inserting command in AucTeX? Gerald Wildgruber
2003-02-07 15:34 ` Kai Großjohann
2003-02-07 18:14 ` Adam P. [this message]
2003-02-08 15:47   ` Gerald Wildgruber
2003-02-09 14:56     ` David Kastrup
2003-02-09 16:17       ` Piet van Oostrum

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=87bs1oyn3l.fsf@at_ipipan.waw.pl \
    --to=adamp_at@at_ipipan.waw.pl \
    /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).