From: Nicolas Richard <theonewiththeevillook@yahoo.fr>
To: Marcin Borkowski <mbork@wmi.amu.edu.pl>
Cc: help-gnu-emacs@gnu.org
Subject: Re: My humble additions to AUCTeX
Date: Tue, 14 Jan 2014 11:29:09 +0100 [thread overview]
Message-ID: <87iotm6emi.fsf@yahoo.fr> (raw)
In-Reply-To: <20140113191650.0fce85c1@aga-netbook> (Marcin Borkowski's message of "Mon, 13 Jan 2014 19:16:50 +0100")
Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:
> Do I guess correctly that you did some (or more) LaTeX typesetting, but
> not too much low-level TeX programming, dear Watson? ;)
Indeed : I did some lower level (albeit trivial) TeX programming at some
point, but not recently -- that might explain why I thought the problems
had disappeared. Another reason is that I had changed the syntax class
of backslash character in my .emacs (I made it ".", i.e. punctuation),
which explains why I use C-M-f (but that doesn't address most of the
points you raised).
> Imagine this: <!>\these\are\four\tokens, where <!> denotes the point.
> Then, C-M-f moves too far; I want to move by one token (i.e. to get
> \these<!>\are\four\tokens), not by a whole string of them at the same
> level of curly braces.
In order to move by token, I made one further change this morning in my
local setup:
(modify-syntax-entry ?\\ ". p" LaTeX-mode-syntax-table)
which lets C-M-b skip the backslash ("p" here means "prefix").
> Also, I want to level up the word commands to token-aware commands.
> Imagine this: \these\are\four\tokens<!>. Now, if you press M-DEL, the
> backslash does not get deleted; if I made its syntax "word", pressing
> M-DEL would kill *everything* shown here. And I want to be able to kill
> just the string "\tokens" with one keystroke.
C-M-b C-M-k would work with the above modification. Not exactly "one
keystroke", indeed, but close enough for me.
> Last but not least, I aim at commands to work on matching pairs of
> \left...\right, \bigl...\bigr etc. delimiters. Therefore, I want to be
> able to walk through the text token by token. (I did look into
> smartparen, and it doesn't seem to be sophisticated enough to do what I
> need.)
To work around that problem, I write this:
\paren{foobar} or \paren*{foobar}
which gives (foobar) (Starred version says to adapt height to the content)
It's as simple as loading mathtools and having
\DeclarePairedDelimiter{\paren}{(}{)}
in the preamble.
--
Nico.
next prev parent reply other threads:[~2014-01-14 10:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-12 23:28 My humble additions to AUCTeX Marcin Borkowski
2014-01-13 16:49 ` Nicolas Richard
2014-01-13 18:16 ` Marcin Borkowski
2014-01-13 20:47 ` Stefan Monnier
2014-01-14 9:57 ` Marcin Borkowski
2014-01-14 10:16 ` Marcin Borkowski
2014-01-15 13:26 ` Stefan Monnier
2015-01-20 15:25 ` Marcin Borkowski
2015-01-20 16:32 ` Artur Malabarba
2015-01-20 16:45 ` Marcin Borkowski
2015-01-20 18:42 ` Stefan Monnier
[not found] ` <mailman.18220.1421779378.1147.help-gnu-emacs@gnu.org>
2015-01-21 2:34 ` Rusi
2014-01-14 10:29 ` Nicolas Richard [this message]
2014-01-15 17:58 ` Marcin Borkowski
[not found] <mailman.11758.1389569313.10748.help-gnu-emacs@gnu.org>
2014-01-13 16:35 ` jack-mac
2014-01-13 18:11 ` Marcin Borkowski
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iotm6emi.fsf@yahoo.fr \
--to=theonewiththeevillook@yahoo.fr \
--cc=help-gnu-emacs@gnu.org \
--cc=mbork@wmi.amu.edu.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.
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.