* How to define a new font inserting command in AucTeX?
@ 2003-02-07 14:16 Gerald Wildgruber
2003-02-07 15:34 ` Kai Großjohann
2003-02-07 18:14 ` Adam P.
0 siblings, 2 replies; 6+ messages in thread
From: Gerald Wildgruber @ 2003-02-07 14:16 UTC (permalink / raw)
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?
Thanks for your help,
Gerald.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to define a new font inserting command in AucTeX?
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.
1 sibling, 0 replies; 6+ messages in thread
From: Kai Großjohann @ 2003-02-07 15:34 UTC (permalink / raw)
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
(add-to-list 'TeX-font-list (list ?d "\\DefTerm{" "}" "\\text{" "}"))
I'm sure you can adapt this.
--
A turnip curses Elvis
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to define a new font inserting command in AucTeX?
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.
2003-02-08 15:47 ` Gerald Wildgruber
1 sibling, 1 reply; 6+ messages in thread
From: Adam P. @ 2003-02-07 18:14 UTC (permalink / raw)
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...
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to define a new font inserting command in AucTeX?
2003-02-07 18:14 ` Adam P.
@ 2003-02-08 15:47 ` Gerald Wildgruber
2003-02-09 14:56 ` David Kastrup
0 siblings, 1 reply; 6+ messages in thread
From: Gerald Wildgruber @ 2003-02-08 15:47 UTC (permalink / raw)
Hello Adam and Kai,
thanks for your suggestions; I'm using now something like:
(add-hook 'LaTeX-mode-hook
'(lambda () (add-to-list 'TeX-font-list (list ?g "\\textgreek{" "}"))))
and it works fine.
Gerald.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to define a new font inserting command in AucTeX?
2003-02-08 15:47 ` Gerald Wildgruber
@ 2003-02-09 14:56 ` David Kastrup
2003-02-09 16:17 ` Piet van Oostrum
0 siblings, 1 reply; 6+ messages in thread
From: David Kastrup @ 2003-02-09 14:56 UTC (permalink / raw)
Gerald Wildgruber <gwil.remove.this.phrase@lrz.uni-muenchen.de> writes:
> Hello Adam and Kai,
>
> thanks for your suggestions; I'm using now something like:
>
> (add-hook 'LaTeX-mode-hook '(lambda () (add-to-list 'TeX-font-list
> (list ?g "\\textgreek{" "}"))))
It would make sense to do the add-to-list in a local style file
triggered for whatever style/option it is that provides the
\textgreek command.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: How to define a new font inserting command in AucTeX?
2003-02-09 14:56 ` David Kastrup
@ 2003-02-09 16:17 ` Piet van Oostrum
0 siblings, 0 replies; 6+ messages in thread
From: Piet van Oostrum @ 2003-02-09 16:17 UTC (permalink / raw)
>>>>> David Kastrup <dak@gnu.org> (DK) wrote:
DK> Gerald Wildgruber <gwil.remove.this.phrase@lrz.uni-muenchen.de> writes:
>> Hello Adam and Kai,
>>
>> thanks for your suggestions; I'm using now something like:
>>
>> (add-hook 'LaTeX-mode-hook '(lambda () (add-to-list 'TeX-font-list
>> (list ?g "\\textgreek{" "}"))))
DK> It would make sense to do the add-to-list in a local style file
DK> triggered for whatever style/option it is that provides the
DK> \textgreek command.
The following worked for me and defines the key only in "myslides" class
documents:
; myslides.el
(TeX-add-style-hook "myslides"
(function
(lambda ()
(add-to-list 'TeX-font-list (list ?g "\textgreek{" "}"))
....
--
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum@hccnet.nl
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-02-09 16:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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.
2003-02-08 15:47 ` Gerald Wildgruber
2003-02-09 14:56 ` David Kastrup
2003-02-09 16:17 ` Piet van Oostrum
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.