]> git.donarmstrong.com Git - lilypond.git/blob - TODO
35118d20bcd86841d61b8660b7bfb381de41ff30
[lilypond.git] / TODO
1 -*-outline-layout:(2 (-1 -1 0 :) 0);outline-stylish-prefixes:nil -*-
2
3
4 * GNU LilyPond TODO
5 Features you cannot find in the documentation as working, should be
6 mentioned here.  This is an assorted collection of stuff that will be
7 done, might be done, or is an idea that we want to think about.
8
9 Most of the items are marked in the code as well
10 Grep -i for TODO, FIXME and ugh/ugr/urg.  
11
12 .* TODO
13 . * use Rhythmic_head::position_i () for all Staff_referenced 
14 . * setting indent to 0 with \shape fails
15 . * fix or replace feta-accordion.mf
16 . * fix configure with CFLAGS or LDFLAGS, try:
17    CFLAGS=-g LDFLAGS='-Wl,--warn-common' ./configure
18 configure will use them while testing the compiler, but they don't
19 appear in config.make
20 . * junk -M ?
21 . * mudela-book doco
22 . * Depracate Wordwrap
23 . * rerun profile
24 . * Break_req handling is silly (break_forbid () + \break fucks up.)
25 . * script engraver
26 . * HaraKiriStaffContext removes bar lines and doesn't remove
27     staff margin text on removed staff lines.
28 . * Chords:
29 .  * Bass/inversion pitch when not part of Chord
30 Sometimes a series of changing chords will be blocked out over a static tone
31 in the bass, usually this was referred to as a pedal tone (and it's been
32 continued to be used, even in contemporary music).  Another less frequently
33 used practice is putting a non-chordal tone in the bass (that is not acting
34 as a pedal tone) in order to create tension or make a more colorful sound.
35 There are examples of this in the classsical literature, but its use is much
36 more prevalent today.  For example, the chord sequence Dm7 - Dm7/G is such a
37 sequence, and the Dm7/G defies easy classification.  Is it a G7(no 3rd)add
38 9/11?  Or is it a G7(no 3rd)add2/4?  Or perhaps Dm7 add11?  It's a heck of a
39 lot easier to read to just leave it as Dm7/G!
40 .  * Diminished does not mean 5-
41 When speaking of a chord, dimished can mean one of two things:  A diminished
42 triad or a dimished seventh chord (which is distinctly different from what's
43 known as the 'half-diminished' chord).  The triad is a root with a flat
44 third and flat fifth, and is notated (at least in America, someone else will
45 have to fill me in on other countries) as (using C as the root) Cdim, or Co.
46 The diminished seventh has a root with a flat third, flat fifth, and a
47 doubly flatted seventh (which is enharmonically equivalent to a sixth, and
48 from which comes tons of confusion).  It is usually notated as (again, using
49 C as the root) Cdim7 or Co7.
50
51 . * Mondrup:
52
53 - I would like the possibility of forcing clef- and key- changes to be
54 printed _after_ the new bar line
55
56 - I would like an option to define the number of systems on which the
57 score must be distributed. As it is now it seems that I may only
58 influence that indirectly through the gourlay_maxmeasures property.
59
60 - if I change the property minVerticalAlign in a multi staff score with
61 lyrics the change affects the lyrics too. I would like the change to
62 _only_ affect staves.
63
64 - I would like to be able to influence the sloping of xtuplet brackets
65
66 - for one of my test scores containing a modern edition of an early
67 17'th century composition I have a leading measure containing the
68 orginal clefs and note values of the original composition. I use the
69 "harmonic" and "diamond" note head styles for that measure and would
70 like to have the stems of these notes _centered_ on the notehead as in
71 the mensural music notation.
72
73 - after the leading measure in the above mentioned score I want a double
74 bar line fully drawn across the staves and after that keep to the
75 ChoirStaff bar line types in the rest of the scores
76
77 - autoBeamMelisma: if I explicitly beam notes in a staff with auto
78 beaming disabled I would like to have these beams also to be
79 melismatic.
80
81 . * make all Feta (including dynamics) available to the user in
82     textual scripts. Examples: "D.S. al \coda", "\mf espress.".
83  
84 . * ?  -Q, --find-old-relative show all changes in relative syntax
85 What's old about absolute to relative conversion?  Could maybe use for
86 abc2ly, midi2ly?
87
88 .* Cleanups needed
89 . * \$ and $ identifier syntax in examples.
90 . * Junk ghost positioning objects eg, Script leans on  Staffside
91     leans on Staff.
92 . * bracket ps code.
93 . * mudela-book
94 .  * center option (??)
95 .  * make mudela-book understand usepackage{geometry}
96 . * Key_engraver, Local_key_item
97 . * Think of comprehensive solution for "if (grace_b == self_grace_b_)"
98 . * String[String.length] doesn't trap.
99 . * Beam
100 . * Stem
101 . * Rhythmic_column and interaction stem/rhythmic_column/note_head/dots.
102 . * Duration
103 . * clef engraver 
104 . * parser
105 . * Lookup::text -> needs  to be TeX independent.
106 . * junk Music_iterator::first_b_
107 . * Bezier
108
109 .* BUGS
110 . * [c8. c16 c16 c16] in 6/8 timesig. 
111 . * staffside spanner (crescendo!) along with staffswitch.
112 . * --- 2, margin notes don't work correctly for the pianostaff (in the
113 following example, i expect the "piano" string to be centered
114 vertically between the two staves):
115
116 \score {
117   \notes \context PianoStaff <
118     \property PianoStaff.instrument = "Piano"
119     \context Staff = treble {
120         a b c
121     }
122     \context Staff = bass {
123         \clef bass;
124         a, b, c,
125     }
126   >
127   \paper {
128     \translator { \StaffContext \consists "Staff_margin_engraver"; }
129     \translator { \PianoStaffContext \consists "Staff_margin_engraver"; }
130   }
131 }
132 . * 
133 > \context Staff <
134 >   {\voiceone''4. r8}
135 >  \voicetwo c,4 r4}
136 > >
137 . * sort out breve shapes.
138 . * \time forces keysig?
139
140 .* STUFF
141 . * We need feta-din*.mf files for more sizes than 10.
142 . *
143 - The syntax for chords looks clumsy with two different meanings of 
144   '-' and different syntax for separating modifiers from the tonic
145   and from other modifiers. Why not use for example ':' between
146   tonic and modifier and between the different modifiers?
147
148 - Rests and beams don't work too well together. Example:
149    [ r8 g''16 des'] [r8 c16 a] 
150
151 - The stemLength property should affect also beamed stems.
152
153 . * align left edge of broken tuplet-spanner (have a test case?)
154 . * fix dynamics decently, ie. use kerning & ligatures.
155 . * key restorations & repeats
156 . * paperXX.ly \quartwidth, font setting not up to date. (Should read from AFM?)
157 . * * auto melismaBusy for beams.
158 . *In Caro Mio Ben, bar 8, there's a syllable that starts on a note, and
159 ends on a pair of grace notes.  Standard practice is to mark this with
160 a slur starting on the main note and ending on the grace note, so a
161 singer knows where to break the words.
162
163 In bar 27, there's a crescendo that's supposed to start at the start
164 of the grace notes and extend to the note after the grace notes.
165 . * 5. Sometimes lyrics extend past the right end of the staff. I guess that
166 this is a similar problem (if not another symptom of the same problem) as
167 one of the spacing bugs mentioned in the TODO.
168 . * 4.  Lyrics and grace sections don't go too well together.
169         The words are aligned with the main note, not the start of the
170         grace note.  This is usually wrong, but is sometimes right.
171 . * decimal point in \paper {}
172 . * tie-direction
173 . * repeats and partial measures.
174 . * rhythmic staff & accidentals.
175 . * use melismaBusy in Lyric context to typeset melismata correctly.  
176 . * ly2dvi/lilypond logfile.
177 . * hang Item on Spanner
178 . * do --safe for PS output?
179 . * msgfmt -o check?
180 . * collision of lyrics with span_bars. See star-spangled.
181 . * Auto_beam debugging output (waarom/wanneer heb jij die weggehaald?)
182 . * It is impossible to typeset two textual scripts that are stacked
183   on top of eachother and avoids note collisions and at the same
184   time are typeset with different textStyle. I tried to move around
185   the text_engraver and other engravers between Voice and Thread 
186   but the granularity is not fine enough, the scripts have to 
187   share the same engraver in order to be get correct vertical 
188   position but than they cannot have different style.
189   In my opinion, all scripts that share the same staff, should
190   be stacked vertically, avoiding collisions with the notes
191   in all voices.
192
193 . * break priority setting from SCM.
194 . * Matanya's tips: 
195 .  * don't  shorten stems/staffs closer to each other.
196 .  * accidentals closer to note head
197 .  * to space the staffs/staffgroups contained in the score.  
198 .  * heavier beams?
199
200 . * tuplets that are written as "number : note", for example
201    "3 : [image of a half note here]".  possible?
202 . * a note with a circle after it, meaning:
203
204    note + circle = note + 1/4 of its length
205
206    the circle is like a dot that's not filled in.  for example, on
207    page three, the c-sharp on the second line should be a quarter with 
208    a circle, not a quarter tied to a sixteenth.  is this at all
209    possible with lily?
210 . * scm-ify \property values.
211 . * make dependencies () a virtual function.
212 . * deprecate hangOnClef.
213 . * Abstraction for engravers:
214 .  * make "in-between" engraver (Tie)
215 .  * make wide_spanner_engraver (line_group_spanner, staff_symbol)
216 . * store req -> element, element -> element causes for warnings
217 . * compulsory hshift
218 . *  My wish list for lyrics. I dream of a time when I will have enough time to
219 become familiar enough with the source code to be able to implement some of
220 these myself, but I don't know when that will be, so I thought I'd "publish"
221 my suggestions in case someone else is in a position to give them some
222 priority. Otherwise, perhaps they could go on the todo list?
223
224 If any of these are already implemented, please let me what the syntax is to
225 use them!
226
227 1. Stanza numbering. Numbering at the beginning of a song with the number
228 set to the left of the first note. It would also be nice (but not as
229 important) to be able to have some form of automatic numbering at the
230 beginning of each new line. This would make it easier to follow songs with a
231 large number of stanzas.
232
233 3. Notes centred above/below lyrics rather than left-aligned.
234
235 4. It would be very nice to be able to build some kind of phrasing into the
236 lyrics of hymns, etc, so that the first words of a phrase are left aligned
237 with each other, the last words are right aligned, and the words in between
238 are centred.
239
240 5. In a song, with (say) four stanzas and a chorus, it would be nice to be
241 able to vertically align the chorus midway between the staves.
242
243 6. It would be nice to be able to put vertical brackets either side of a
244 repeated section with different words for each repeat.
245 . * Give # lines in linebreaking.  
246 . * arrows on slurs.
247 . * rewrite context defs using Scheme
248 . * junk TeX specifics from internal code.
249 . * \selectmusic to cut pieces from music. 
250 . * formatting of input stuff. 
251 .  * deps for ly2dvi
252 . * TODO: merge atom & molecule; make  tree from molecule.
253 . * Align_element::padding  ?
254 . * typo checks on property names?
255 . * use streambufs and iostream
256 to provide IO handling for TeX stream, mudela stream, data-file.
257 . * seriously buffer TeX output (do profile of writing .5 mb TeX file.)
258 . * strip EXEs before installing
259 . * zip target for binary windows dist (JBR)
260 . * fix partial measures in meaningful way.
261 . * uniformise recent feta contributions.
262 .  * bigger and fatter 4/4 C
263 . * relative mode for midi2ly
264 . * junking \skip req in lyrics
265 . * midi2ly empty staffs.
266 . * use Fourier transformation for rhythmic quantisation.
267 . * horizontal centering of dynamics 
268 . * $DEPENDENCIES_OUTPUT support
269 . * turn slope-damping on/off
270 . * sort out directory stuff.
271 .  * --prefix option?
272 .  * -I option per filetype?
273 .  * kpathsea?
274 . * fix vertical alignment and stafflines
275 . * declaring Performers
276 . * text-items clash with stems/beams
277 . * --include, -I option for ly2dvi (pass on to lily)
278 . * fix placement of beam-less abbrev
279 . * \meter 3/4;
280         <{\voiceone cis4. cis8 cis4 | cis4 cis cis | r1 }
281          {\voicetwo cis,4 r r | r2. | r1 }> |
282         }
283 . * Musical_pitch (analogous to Duration and Rhythmic_req)
284           think about, analogous to pitch: 
285            * { a4 a16 } c <-- duration of c?
286            * < a4 b8 > c <-- duration of c?
287 . * \tempo 4. = 90;
288 . * make sure all ex's have a mudela-version
289 . * do rest-collisions for Multi_measure_rests as well.
290 . * split error/warning in error/warning/non_fatal_error
291 . * add a Duration_convert member to Duration_iter to set parameters.
292         Junk global duration settings. 
293 . * en-,discouraged linebreaking: 
294 .  * handle DISALLOW < penalty > FORCE
295 .  * discourage breaking of slurs
296 . * fix variable define/lookup parser global<->paper
297 . * fix title/instrument placements; see input/test/title.ly
298 . * <\voiceone c4. \voicetwo c4>
299 . *  I'd like to change the \repetitions command to Jan's suggested
300   syntax: \repeat "repeatsymbol" 2 {...}, but I'm not sure that
301   I understand the implementation of repeats well enough.
302 . * add full cello suites to web site (kom op, Maarten!)
303 . * rename 'staff_line_leading' (who is being lead where?) to
304 staff_space, interline; (or other meaningful name) and use throughout
305 lily
306
307 [-> leading are the lead strips between the sticks (lines) of
308 typeface. ie. leading is vertical space  --hwn]
309 . * add mudela-book-doc source to webstie.
310 . * Rethink Time_description
311 \cadenza , \meter,  should all be \properties
312 . * fix singleStaffBracket
313 . * rename
314 .  * partial -> anacrouse
315 . * move paper vars into engraver properties
316 . * add new glyphs to font.ly
317 . * check for groff / troff/ nroff et
318 . * more intelligent file searching
319 . * disable spaces in TeX stuff
320 . * handle ^C for tmp/file creation.
321 . * make LilyPond RPM fully relocatable
322 . * better hshift (dots, distance, head dependent)
323 . * didot / big point.
324 . * clefs (AG): The "8" should appear closer to the actual clef,
325 touching it.
326 . * put errorlevel in Input class
327 . * junk nesting slurs
328 . * distinguish between unset and empty properties. 
329
330 .* FONT
331 . * the bracket is ugly (wings are too parabolic, should be more circular)
332 . * versioning for Feta
333 . * rewrite dynamic signs.  They're kind of spaghetti now. 
334 . * The `3' in the meter key is a one or two pixels too thin (at 600dpi)
335         in the middle:
336 . * design macro for penstroke with rounded endings
337 . * timesig C: fat yet less curved.  Check out relations. 
338 . * design decent macro for bulbed endings
339 . * printer dependencies.
340 . * versioning  
341 . * lo-res fixes.
342 . * work out sizes of character fonts.
343 . * more symbols
344 .  * piano pedals: Ped/*
345 .  * maxima notehead
346 .  * coda signs: Segno, O+
347 .  * glissando, arpeggio
348 .  * lengthened trill
349 . * include important spacing dims in fetalog 
350 . * scalability: use blot_diameter everywhere, make font chubbier for
351     small sizes.
352
353 .* 3RD PARTY BUGS
354 . * UMR: Uninitialized memory read
355       This is occurring while in:
356             qst            [qsort.c]
357             qsort          [libc.so.1]
358             Keyword_table::Keyword_table(Keyword_ent*) [keyword.cc:28]
359             My_lily_lexer::My_lily_lexer() [my-lily-lexer.cc:78]
360             My_lily_parser::parse_file(String,String) [my-lily-parser.cc:54]
361             do_one_file(String,String) [scores.cc:124]
362       Reading 4 bytes from 0xefffeca8 on the stack.
363       Address 0xefffeca8 is 728 bytes below frame pointer in function 
364 . *  Array<Axis [2] > axeses;
365
366   for (int i=0; i < loose_elems.size (); i++)
367     {
368       Score_element* elt = loose_elems[i];
369       /*
370             with which axes do we have to meddle?
371       */
372       int j =0;
373       Axis as [2];
374       for (int a = X_AXIS; a < NO_AXES; ++a)
375         if (elt->parent_l (Axis (a)) == this)
376           as[j++] = Axis (a);
377       if (j == 1)
378         as[j++] = as[0];
379
380       axeses.push (as);
381     }
382 . * GNU diff 2.7: diff -rN does not see a new directory with empty file
383 . * patch: don't touch timestamp if all patches fail.
384 . * MetaPost: should not generate setgray for unfill
385 . * mfplain.ini not in tetex 0.9
386 . * mf-to-table -> add space 'before ; in AFM output.  (-> check AFM
387 spec. Is this a bug in afm2tfm?)
388 . * check out GCC signatures?
389 . * glibc 2.0:
390           f = fopen ("/dev/null", "r")
391           assert (feof (f))
392 . * tetex: mfplain.mem
393
394 .* PROJECTS
395 . * Scripts:
396 .  * stack scripts in chords:
397           % fingering:        footing:
398             < a-4 c-2 g-1 >   < c-\ltoe e-\lheel >
399 .  * script-spacing
400 .  * slur parts as a script
401 .  * stack parameterised scripts for fingering and footing:
402
403 . * convert-mudela:
404 .  * automatically add  a \version if not present.
405 .  * better parsing
406 .  * make smarter
407 .  * convert-mudela -e empty.ly
408
409 . * emacs mudela-mode
410 .  *  should handle block comments too.
411 .  *  handle lexer modes (\header, \melodic, \lyric) etc.
412 .  *  indentation
413 .  *  notenames?
414 .  *  fontlock: \melodic \melodic
415
416 . * use properties for:
417 .  * default tempo.
418 .  * cadenza mode? 
419
420 . * page handling:
421 .  * PS output
422 .  * optimal pagebreaking.
423
424 . * internationalisation for input.
425 .  * Unicode support? -> man 7 unicode
426 .  * (The explanation below is mostly intended for Han-Wen and Jan)
427 > Before, the font was changed with macros declared separately for 
428 > pure TeX and LaTeX, but now all the fonts are declared directly in
429 > the generated code using the low-level TeX commands. This circumvents
430 > the fontencoding mechanism of LaTeX and is a potential source of
431 > problems also for us users of the Latin-1 character set. 
432 > I think it still works since the inputencoding latin1 is 
433 > declared by ly2dvi, but it still means that e.g. an o with
434 > umlaut is typeset as a combination of the two symbols 'o' and
435 > 'umlaut' instead of as a single character, as would be the case
436 > if fontencoding OT1 had been used. This shouldn't give any 
437 > difference in layout, though. One of the main argument for using
438 > fontencoding OT1 is for the hyphenation mechanism to work, an 
439 > argument that's clearly irrelevant in our application. Yet we
440 > see the problem for August.
441
442 . * \header
443 .  * output header info to MIDI too.
444
445 . * a musical dictionary. See Documentation/vocabulary-*, other
446 languages:
447 .  * explanations
448 .  * italian
449 .  * german
450 .  * dutch
451 .  * swedish
452          .. ?
453
454 . * chords
455 .  * guitar chords (fret diagrams)
456 .  * other chord name styles (american(?) style)
457 .  * basso continuo
458 .  * MIDI output?
459
460 . * Debug logs:
461 .  * derive lily_stream, Dstream, texstream from ostream?
462 .  * indentable stream as baseclass for TeX stream, lily stream, Dstream.
463 .  * use dstream feature in midi2ly
464 .  * integrate IO checking into stream class
465
466 . * input converters
467 .  * NIFF?
468 .  * ABC? 
469 .  * SMDL?
470
471 . * add to MIDI output:
472 .  * sharp / flat on trills (in MIDI ??)
473 .  * ornaments (and trills?)
474 .  * slurs
475 .  * accents
476 .  * dynamics
477 > Would it be hard to add support for proper dynamics in MIDI output?  I
478 > would really like to have this feature...
479
480 Concretely spoken, for dynamics you have to write a performer
481 (Dynamics_performer), that will take the input requests. If I
482 understand correctly, every MIDI note played must have its dynamic
483 strength set separately.  That means the the Dynamics_performer must
484 set the strength of every Audio_note it finds.  This means that one
485 has to modify existing Audio items.  The best way of doing this is
486 with a broadcast/acknowledge process.
487
488 So the best way of handling this, is
489
490   1 supporting dynamic settings in Audio_note
491
492   2 Write a Dynamics_performer that will modify
493   any notes it finds to set appropriate strengths.
494
495 I'd say that the work involved is not hard, but you have to be fluent
496 with C++ and need some insight into the working of Notation Contexts
497 and friends.  I guess I could do it in a day or so, but if you are not
498 so fluent with the inner workings of LilyPond, it could take you some
499 more time (A few more days?).
500
501 Please note, that I am *not* going to code this myself: my days are
502 valuable, and I think I have more interesting things to do than fixing
503 the MIDI output (I don't even have a soundcard).  But I *do* want to help
504 you or other people with implementing this, so if you need help, don't
505 hesitate to ask.
506 .  * account for rhythmic position in measure
507 .  * etc.
508
509
510 . * Output class, handles : (smallish)
511 .  * help text /(c) notice?
512 .  * version line
513 .  * warning /errors/progress
514 .  * abort on error/warning; exit status
515 .  * quiet/ignore-version options
516 .  * logfile output
517
518 . * PS 
519 .  * speed up PS code.
520 .  * PS lines to .eps files
521 .  * write custom prolog
522
523 . * SGML input
524
525 . * Documentation
526 .  * remove links to non-free SW.
527 .  * internal documentation
528 .  * a general paper. 
529 .  * \properties
530 .   * left/rightbeamcount
531 .   * various other new properties.
532 .  * introduction?
533 .  * info?
534 .  * LaTeX?
535 .  * more manpages?
536 .  * Doc (C) stuff of sheet music
537 .  * a better format?  SGML?  TeX?  Info?
538 .  * a better tutorial
539
540 . * more spanners (smallish)
541 .  * Glissando
542 .  * trill
543
544 . * Rewrite Stem, Beam (hairy)
545 .  * general shaving on Beam and Stem
546 .  * use plet grouping
547 .  * beams over bars
548
549 . * lines:
550 .  * Ledger lines, should be separate item: Ledger_lines
551 .  * set different line sizes / thicknesses
552 .  * beam stem showthrough, inter beam sizes (french vs german style)
553
554 . * Collisions
555 .  * left/right note balls should be handled by Collision:
556         < \multi 2; { \stem 1; <b c> } { <f as b> } >
557
558 . * Keys:
559 .  * merge key{item} & localkey{item}?
560 .  * spacing, national styles?
561
562 . * Support for TAB
563 .  * redo Notehead to allow digits as heads
564 .  * add a \tablature {} lexer mode for easy entering
565
566 . * should adjust stemlength for flag number.
567
568 . * breaking:
569 .  * caching breakpoints
570 .  * saving them
571 .  * specify number of lines
572
573 .* INPUTLANGUAGE
574 . * convention for slurs vs. phrasing marks.
575 . * Language:
576 .  * \translator -> ?
577 .  * fix \partial 
578 .  * \bla {} vs \bla ; 
579 .  * mix engraver hacking with music ?
580 .  * \once\property  KEY = VAL
581 .  * input property
582 .  * abstract grammar.
583 . * Figure out semicolons.
584 . * <c f a>4 ?
585 . * Viola mode?
586
587                 @c c g e g 
588         for
589                 c g es g, 
590
591                 @A c g e g
592         for
593                 cis gis e gis
594 . * configure pitch_byte
595 . * rest name configurable
596
597
598 .* SMALLISH PROJECTS
599
600 . * fix confusing naming in Engraver vs Engraver_group_engraver (context)
601
602 . * A range for context errors (eg. mark both { and }. )
603
604 . * lyric in staff  (sharpsharp in staff, text below)
605
606 . * write Dynamic_line (to group dynamics horizontally)
607
608 . * use Real for all y positions.
609
610 . * half-sharps, half-flats
611
612 . * adaptive accidental spacing.
613
614 . * handle EOF graciously in error messages.
615
616 . * midi esp.: use I32 iso int where 32 bits are needed (or assumed...)
617
618 . * lily \tempo
619
620 . *   % toe to bheel   four to five
621             %   ^_u            4_5  
622             %     -                           
623             %  --|x--         --|x--
624             %  --|---         --|---
625             %  --|---         --|---
626           (where "to" is a tiny bow)
627
628 . * auxilliary file for caching info.
629 . * Text_crescendo
630
631 .* IDEAS
632 . * Output data structures of Mudela in XML/SGML.
633 . * create libmudela, or liblily_frontend
634 . * move MIDI stuff (including Quantization) to a ANSI C libmidi library.
635 . * Spacing_request for manually adjusting spacing
636 . * caching breakpoints
637 . * used fixedpoint arithmetic for min. energy.
638
639 * OUTLINE SETUP
640 .* .EMACS
641 ;;; from outline.el
642 (defvar outline-font-lock-keywords
643   '(;; Highlight headings according to the level.
644     ;; must change this to allout node layout
645     ;;("^\\(\\*+\\)[ \t]*\\(.+\\)?[ \t]*$"
646     ("^\\([.]*[ ]*[*]\\)[ \t]*\\(.*\\)$"
647      (1 font-lock-string-face)
648      (2 (let ((len (- (match-end 1) (match-beginning 1))))
649           (or (cdr (assq len '((1 . font-lock-function-name-face)
650                                (2 . font-lock-keyword-face)
651                                (3 . font-lock-comment-face))))
652               font-lock-variable-name-face))
653         nil t))
654     ;; Highlight citations of the form [1] and [Mar94].
655     ("\\[\\([A-Z][A-Za-z]+\\)*[0-9]+\\]" . font-lock-type-face))
656   "Additional expressions to highlight in Outline mode.")
657
658 (add-hook 'outline-mode-hook
659           '(lambda ()
660             (setq font-lock-maximum-decoration t)
661             (setq font-lock-maximum-decoration t)
662             (make-local-variable 'font-lock-defaults)
663             (setq font-lock-defaults '(outline-font-lock-keywords t))
664             (font-lock-mode global-font-lock-mode)
665         ))
666  
667 (require 'allout)
668 (outline-init 't)
669
670