- Subject: [Jed-users-l] How to redefine a function?
- From: Martin Klaiber <martinkl@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 26 Apr 2013 22:37:01 +0200
Hi,
when inserting a quote in LaTeX-Mode two single backticks are inserted
before or two ticks after a word. As I use csquotes, I want to modify
it, so it inserts "\enquote{" before or "}" after it (without the
quotation marks of course).
To do so, I have changed this part of tex_insert_quote() of texcom.sl:
if (is_substr("[({\t ", char(c)))
{
insert_char ('`');
if (LAST_CHAR == '"') insert_char ('`');
}
else
{
insert_char ('\'');
if (LAST_CHAR == '"') insert_char ('\'');
}
to that:
if (is_substr("[({\t ", char(c)))
{
insert ("\\enquote{");
}
else
{
insert_char ('}');
}
Well, it works as I wished for - but how can I make this change
permanent now, without changing the original texcom.sl? I suppose I
have to redefine tex_insert_quote() somewhere in my home-dir but I do
not know how and where.
Thank you for your help!
Martin
_______________________________________________
Jed-users-l mailing list
Jed-users-l@xxxxxxxx
http://mailman.jtan.com/mailman/listinfo/jed-users-l
[2013 date index]
[2013 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]