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