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