]> git.lyx.org Git - lyx.git/blob - src/mathed/BUGS
more latin1..utf8 schanges. all of src/* should be utf8 now
[lyx.git] / src / mathed / BUGS
1 Eran Tromer:
2
3 - When selecting, maybe give a visual indication of the "original"
4   anchor, when it differs from the "actual" one.
5
6
7 Álvaro Tejero Cantero <alvaro@antalia.com>
8
9 - I suggest creating a different "kewybinding namespace" for the formulas,
10  since you could put to good use all those keybindings from the menu (M-?,
11  C-?) thath currently do their job PLUS getting you out of the formula.
12  Seriously, it'd be great to have more keys free, so M-d t would be time
13  derivative and M-d ? derivative with respect to the variable ?. And so on.
14
15    Flattening macros. Sometimes it's annoying the fact that once you have
16  written a macro, you can't touch at it's "constant parts". I call flattening
17  to the process of substituting all macros with LaTeX code.
18
19    Task: designing a macro substitution system that reads from a file
20  (possibly the same file as the document's) the macros and parses the document
21  doing the appropriate replacements
22
23   This is very useful, because sometimes you have a big expression in a macro
24  and you want to change an index only. What do you do then?. You retype
25  everything (perhaps several times in the document) or you create extremely
26  generic and parametrizable macros that aren't very fast to fill in the
27  majority of cases.
28
29
30 - cut&paste inside math-mode doesn't work the X fashion (middle button doesn't
31  paste anything).
32
33
34 Jules Bean:
35
36 The number of characters which need to be typed
37 is the confusing nature of the command. 'M-c m', typed once, puts you into
38 math-mode. However, typing 'M-c m' again doesn't put you out of math-mode
39 --- it puts you into math-text mode. Then hitting it again puts you back
40 into normal math-mode.  IMO, 'modal' keys should either be idempotent (so
41 hitting it the second time does nothing) or self-inverting. In fact, the
42 inverse to 'M-c m' is either 'ESC' or simply a space typed at the end of
43 the block --- which is confusing, since they're not of the same 'shape' as
44 the command that got you in there.
45
46 Now, I'm not saying that 'space' shouldn't be allowed as a short-cut to get
47 you out of math-mode; it's a most useful and natural one, I like it a lot.
48 However, on balance I think M-c m should also have that effect.
49
50 3) Math-mode inconsistencies
51
52 Sometimes 'the same action' has the same keystroke both within and
53 without math-mode. This is very sensible. However, it is very annoying when
54 they don't behave the way you're expecting them to.
55
56 For example, 'M-c e' puts you into 'emphasise' mode.  Ignoring the fact
57 that in text mode this is italics, and in math-mode it stands for the
58 calligraphic character set, I think of these as the same action, so I like
59 the fact that they have the same keys. However, in math-mode, 'M-c e' is
60 idempotent, (and you need 'M-c space' to get back into normal) whereas in
61 text-mode 'M-c e' is self-inverse. These are the two possibilities I listed
62 as acceptable before, but consistency would be nice ;-) IMO, self-inverse
63 would be best for both.
64
65 5) Proposal : a 'ligatures' or 'autocorrect' system
66
67 One of the very minor, but useful, features of TeX is the way it lets you
68 type the nearest approximation to what you want using a 'typewriter
69 keyboard', and substitutes the typographically neat equivalent. In
70 particular, 'fancy' quotes (") and en and em dashes (---). I propose that
71 this UI element could be taken up a level into LyX, with a system that does
72 the following (for example):
73
74 -> becomes \rightarrow
75 <- becomes \leftarrow
76 => becomes \Rightarrow (etc..)
77 ==> becomes \Longrightarrow (etc..)
78
79 This may only be appropriate in math mode, of course.  This family bug me
80 in particular because they take ages to type using a \-escape. Undoubtedly
81 sharp minds will think of others, and also we need some way of actually
82 typing those sequences as literals when we want them.
83
84 6) Scope macros:
85
86 The current macro system is clever, but could be neater. One improvement
87 I'd like is to let LyX know about TeX's scoping rules...
88
89
90 Yves Bastide:
91
92 - use AMS's \text instead of \mbox.  It supports accented characters,
93   among others...  (selected via validate()?)
94
95
96 Angus:
97
98 - make math lables editable