]> git.lyx.org Git - lyx.git/blob - src/mathed/BUGS
Get rid of trailing whitespace 'noise' in future patches for the
[lyx.git] / src / mathed / BUGS
1 Items marked with
2
3   //   - are probably fixed, the reporter is asked to verify this
4          and report success or failure
5
6   ??   - are not reproducable, the reporter is asked to verify this
7          and report success or failure
8
9   ::   - are questions or comments to the reporter, containing question
10          on how to reproduce the bug exactly or things like that
11
12   !!   - mark "not a bug, a feature" replies, usually with a request for
13          further discussion
14
15         pp   - partially fixed
16
17 Unmarked items are known unfixed but probably unverified bugs.
18
19 ----------------------------------------------------------------------
20
21 General hints for bug reports:
22
23   - keep the items small
24
25   - do not provide excessive information on how to reproduce the bug
26     if this is obvious
27
28   - if a bug is partly fixed, report it as "fixed" and a new bug item
29     that contains the unfixed part only
30
31   - check this list regularly, comment on the marked items.
32
33   - plain ASCII text please, not much more than 70 chars per column
34
35 Dekel:
36
37 - InsetFormula::validate is broken
38
39
40 Eran Tromer:
41
42
43 - When selecting, maybe give a visual indication of the "original"
44   anchor, when it differs from the "actual" one.
45
46 Rainer Dorsch:
47
48 - I know the latex code of a lot of math symbols displayed by lyx,
49   but not all of them. Thus I have to use the math panel for only a single
50   symbol in a formula. I think it would be very useful, if the latex code
51   of the symbol would be displayed as a hint, if the mouse positioned over
52   it.
53
54
55 Marcus (Suran@gmx.net)
56
57 - In math-mode I can switch back to text-mode in a formula but then I am
58   not able to type Umlauts.
59
60 - If the math-panel has the focus I can type text but not switch into
61   math-mode or use some of the other keyboard-shortcuts.
62
63
64 From: Álvaro Tejero Cantero <alvaro@antalia.com>
65
66 - I suggest creating a different "kewybinding namespace" for the formulas,
67  since you could put to good use all those keybindings from the menu (M-?,
68  C-?) thath currently do their job PLUS getting you out of the formula.
69  Seriously, it'd be great to have more keys free, so M-d t would be time
70  derivative and M-d ? derivative with respect to the variable ?. And so on.
71
72 - I'm no experienced C++ programmer, but if you consider it appropriate, I
73  could write a scritp in python for this one (I'm also very optimistic). Tell
74  me what you think:
75
76    Flattening macros. Sometimes it's annoying the fact that once you have
77  written a macro, you can't touch at it's "constant parts". I call flattening
78  to the process of substituting all macros with LaTeX code.
79
80    Task: designing a macro substitution system that reads from a file
81  (possibly the same file as the document's) the macros and parses the document
82  doing the appropriate replacements
83
84   This is very useful, because sometimes you have a big expression in a macro
85  and you want to change an index only. What do you do then?. You retype
86  everything (perhaps several times in the document) or you create extremely
87  generic and parametrizable macros that aren't very fast to fill in the
88  majority of cases.
89
90
91 - cut&paste inside math-mode doesn't work the X fashion (middle button doesn't
92  paste anything).
93
94 - I remember having heard that a search-replace function was planned, so I
95  won't repeat that. Only that the flattening option would be then easier to
96  implement on top of that.
97
98 - Some math symbols aren't very well supported (to my knowledge). I'm
99   thinking of [] options.
100
101 Jules Bean:
102
103 a) If something's easy & quick in LaTeX then it should be easy & quick in
104 LyX (unless it really isn't very common).  b) Actions which are used
105 frequently should be a single key-press, even if that's not very easy to
106 remember. You learn it.  c) Actions which are used rarely should be
107 mnemonic -- easy to remember -- even if they are multiple keypresses.
108 Things you do rarely you care less about the time it takes to perform.
109
110 As an aside, you may think that I'm whining over nothing. However, when
111 you enter math mode as often as I do (often more than once a sentence) it
112 gets very annoying, especially as compared to simply typing '$' in plain
113 emacs. Also, you may say 'why don't you just change your bindings file?'. I
114 will ;) but I wanted to start some discussion on this since it can benefit
115 everyone!
116
117 More serious, though, than the number of characters which need to be typed
118 is the confusing nature of the command. 'M-c m', typed once, puts you into
119 math-mode. However, typing 'M-c m' again doesn't put you out of math-mode
120 --- it puts you into math-text mode. Then hitting it again puts you back
121 into normal math-mode.  IMO, 'modal' keys should either be idempotent (so
122 hitting it the second time does nothing) or self-inverting. In fact, the
123 inverse to 'M-c m' is either 'ESC' or simply a space typed at the end of
124 the block --- which is confusing, since they're not of the same 'shape' as
125 the command that got you in there.
126
127 Now, I'm not saying that 'space' shouldn't be allowed as a short-cut to get
128 you out of math-mode; it's a most useful and natural one, I like it a lot.
129 However, on balance I think M-c m should also have that effect.
130
131 3) Math-mode inconsistencies
132
133 Sometimes 'the same action' has the same keystroke both within and
134 without math-mode. This is very sensible. However, it is very annoying when
135 they don't behave the way you're expecting them to.
136
137 For example, 'M-c e' puts you into 'emphasise' mode.  Ignoring the fact
138 that in text mode this is italics, and in math-mode it stands for the
139 calligraphic character set, I think of these as the same action, so I like
140 the fact that they have the same keys. However, in math-mode, 'M-c e' is
141 idempotent, (and you need 'M-c space' to get back into normal) whereas in
142 text-mode 'M-c e' is self-inverse. These are the two possibilities I listed
143 as acceptable before, but consistency would be nice ;-) IMO, self-inverse
144 would be best for both.
145
146 5) Proposal : a 'ligatures' or 'autocorrect' system
147
148 One of the very minor, but useful, features of TeX is the way it lets you
149 type the nearest approximation to what you want using a 'typewriter
150 keyboard', and substitutes the typographically neat equivalent. In
151 particular, 'fancy' quotes (") and en and em dashes (---). I propose that
152 this UI element could be taken up a level into LyX, with a system that does
153 the following (for example):
154
155 -> becomes \rightarrow
156 <- becomes \leftarrow
157 => becomes \Rightarrow (etc..)
158 ==> becomes \Longrightarrow (etc..)
159
160 This may only be appropriate in math mode, of course.  This family bug me
161 in particular because they take ages to type using a \-escape. Undoubtedly
162 sharp minds will think of others, and also we need some way of actually
163 typing those sequences as literals when we want them.
164
165 6) Scope macros:
166
167 The current macro system is clever, but could be neater. One improvement
168 I'd like is to let LyX know about TeX's scoping rules...
169
170
171 Yves Bastide:
172
173 - use AMS's \text instead of \mbox.  It supports accented characters,
174   among others...  (selected via validate()?)
175
176
177 Angus:
178
179 - make math lables editable