## No big page
OUT_HTML_FILES := $(subst $(outdir)/general-big-page.html,,$(OUT_HTML_FILES))
+$(outdir)/essay/index.html: TEXI2HTML_INIT = $(WEB_TEXI2HTML_INIT) -D=shallow_toc
+$(outdir)/essay/index.html: TEXI2HTML_SPLIT = $(WEB_TEXI2HTML_SPLIT)
+
$(outdir)/general/index.html: TEXI2HTML_INIT = $(WEB_TEXI2HTML_INIT)
$(outdir)/general/index.html: TEXI2HTML_SPLIT = $(WEB_TEXI2HTML_SPLIT)
-$(outdir)/automated-engraving/index.html: TEXI2HTML_INIT = $(WEB_TEXI2HTML_INIT)
-$(outdir)/automated-engraving/index.html: TEXI2HTML_SPLIT = $(WEB_TEXI2HTML_SPLIT)
-
###########
### Targets
--- /dev/null
+@c -*- coding: utf-8; mode: texinfo; -*-
+@ignore
+ Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
+
+ When revising a translation, copy the HEAD committish of the
+ version that you are working on. See TRANSLATION for details.
+@end ignore
+
+@ignore
+hmm, the one big page is too big, but it was really inviting to
+ read. this is not. maybe just scrap this menu and introduction
+ to index?
+@end ignore
+
+@c @setfilename automated-engraving.info
+@c @settitle Obsessed with putting ink on paper
+@c @documentencoding UTF-8
+@c @documentlanguage en
+
+@c @set web
+@c @include macros.itexi
+
+@c @afourpaper
+
+@c @ifnottex
+@c @node Top
+@c @top
+@c @chapheading
+@c @end ifnottex
+
+@node automated-engraving
+@unnumbered Obsessed with putting ink on paper
+@c @finalout
+
+@heading What is behind LilyPond?
+
+@sourceimage{hader-collage,,,.png}
+
+LilyPond is not unique in making music notation: there are a lot of
+programs that print music, and nowadays most of the newly printed
+music is made with computers. Unfortunately, that also shows: just
+ask any musician that plays classical music: new scores do not look as
+nice as old ones.
+
+What is the difference between hand-work and machine work, and what
+has caused it? How can we improve the situation? This essay explains
+problems in music notation (software), and our approach to solving
+them.
+
+@menu
+* introduction:: Introduction -- what is wrong with computer music notation.
+* software:: What is wrong with software -- or how Finale is not the end-all of music software.
+* problem-statement:: How not to design software -- or modeling music notation.
+* divide-and-conquer:: Divide and conqueror -- a blue print for automated notation.
+* implementing-notation:: Impressive, but does it also work in theory -- a practical approach to capturing notation.
+* engraving:: Music engraving -- the art of printing music.
+* implementing-typography:: Implementing typography -- hackers attack the engraving problem.
+* formatting-architecture:: A flexible program architecture -- lets us write engraving software
+* scoring-esthetics:: Beautiful numbers -- how LilyPond participates in the Miss World contests.
+* benchmarking:: Notation benchmarking -- is a flexible architecture enough?
+* schubert:: Notation benchmarking -- project too?
+* typography-features:: Typographical features -- unique to LilyPond.
+* input-format:: Input format -- how to enter music.
+* conclusion:: Conclusion.
+@end menu
+
+@contents
+
+@c This essay is also available in @ref{big-page.html,one big page}.
+
+@include automated-engraving/introduction.itexi
+@include automated-engraving/software.itexi
+@include automated-engraving/problem-statement.itexi
+@include automated-engraving/divide-and-conquer.itexi
+@include automated-engraving/implementing-notation.itexi
+@include automated-engraving/engraving.itexi
+@include automated-engraving/implementing-typography.itexi
+@include automated-engraving/formatting-architecture.itexi
+@include automated-engraving/scoring-esthetics.itexi
+@include automated-engraving/benchmarking.itexi
+@include automated-engraving/schubert.itexi
+@include automated-engraving/typography-features.itexi
+@include automated-engraving/input-format.itexi
+@include automated-engraving/conclusion.itexi
+++ /dev/null
-\input texinfo @c -*- coding: utf-8; mode: texinfo; -*-
-@ignore
- Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
-
- When revising a translation, copy the HEAD committish of the
- version that you are working on. See TRANSLATION for details.
-@end ignore
-
-@ignore
-hmm, the one big page is too big, but it was really inviting to
- read. this is not. maybe just scrap this menu and introduction
- to index?
-@end ignore
-
-@setfilename automated-engraving.info
-@settitle Obsessed with putting ink on paper
-@documentencoding UTF-8
-@documentlanguage en
-
-@set web
-@include macros.itexi
-
-@afourpaper
-
-@ifnottex
-@node Top
-@top
-@chapheading
-@end ifnottex
-
-@finalout
-
-@heading What is behind LilyPond?
-
-@sourceimage{hader-collage,,,.png}
-
-LilyPond is not unique in making music notation: there are a lot of
-programs that print music, and nowadays most of the newly printed
-music is made with computers. Unfortunately, that also shows: just
-ask any musician that plays classical music: new scores do not look as
-nice as old ones.
-
-What is the difference between hand-work and machine work, and what
- has caused it? How can we improve the situation? This essay explains
- problems in music notation (software), and our approach to solving
- them.
-
-@menu
-* introduction:: Introduction -- what is wrong with computer music notation.
-* software:: What is wrong with software -- or how Finale is not the end-all of music software.
-* problem-statement:: How not to design software -- or modeling music notation.
-* divide-and-conquer:: Divide and conqueror -- a blue print for automated notation.
-* implementing-notation:: Impressive, but does it also work in theory -- a practical approach to capturing notation.
-* engraving:: Music engraving -- the art of printing music.
-* implementing-typography:: Implementing typography -- hackers attack the engraving problem.
-* formatting-architecture:: A flexible program architecture -- lets us write engraving software
-* scoring-esthetics:: Beautiful numbers -- how LilyPond participates in the Miss World contests.
-* benchmarking:: Notation benchmarking -- is a flexible architecture enough?
-* schubert:: Notation benchmarking -- project too?
-* typography-features:: Typographical features -- unique to LilyPond.
-* input-format:: Input format -- how to enter music.
-* conclusion:: Conclusion.
-@end menu
-
-@contents
-
-@c This essay is also available in @ref{big-page.html,one big page}.
-
-@include automated-engraving/introduction.itexi
-@include automated-engraving/software.itexi
-@include automated-engraving/problem-statement.itexi
-@include automated-engraving/divide-and-conquer.itexi
-@include automated-engraving/implementing-notation.itexi
-@include automated-engraving/engraving.itexi
-@include automated-engraving/implementing-typography.itexi
-@include automated-engraving/formatting-architecture.itexi
-@include automated-engraving/scoring-esthetics.itexi
-@include automated-engraving/benchmarking.itexi
-@include automated-engraving/schubert.itexi
-@include automated-engraving/typography-features.itexi
-@include automated-engraving/input-format.itexi
-@include automated-engraving/conclusion.itexi
-
-@bye
-
@documentencoding UTF-8
@documentlanguage en
+@set web
@include macros.itexi
@afourpaper
@menu
* Music engraving::
+* automated-engraving:: Essay on Automated engraving.
* Literature list::
* GNU Free Documentation License:: License of this document.
* LilyPond index::
@contents
@include essay/engraving.itely
+@include automated-engraving.itexi
@include essay/literature.itely
+@clear web
@include fdl.itexi
@node LilyPond index
@c This and more in our @ressaynamed{Engraving, essay}.
@c Possibly, node Top always works?
@c This and more in our @ressaynamed{Top, essay}.
-This and more in our @ref{Top,,Essay,automated-engraving,Essay}.
+This and more in our @ref{automated-engraving,,Essay,essay,Essay}.
@divEnd
@divEnd
@c Dat en meer in ons @ressaynamed{Engraving, essay}.
@c Possibly, node Top always works?
@c Dat en meer in ons @ressaynamed{Top, essay}.
-Dat en meer in ons @ref{Top,,Essay,automated-engraving,Essay}.
+Dat en meer in ons @ref{automated-engraving,,Essay,essay,Essay}.
@divEnd
@divEnd
$parentelements{$current_element->{'sectionup'}->{'id'}} = 1
if ($current_element->{'sectionup'}->{'id'} ne '');
$current_element = $current_element->{'sectionup'};
+ if (exists($main::value{'shallow_toc'})) {
+ last;
+ }
}
return () if not defined($current_element);
# Create the toc entries recursively
} else {
push (@toc_entries, "<li class=\"toc_current\"><a href=\"index.html\">Main</a></li>\n");
}
-
my $children = $current_element->{'section_childs'};
# FIXME: generate toc
foreach ( @$children ) {
push (@toc_entries, generate_ly_toc_entries($_, \%parentelements, $page_toc_depth));
}
+ if (!exists($main::value{'shallow_toc'})) {
# FIXME: add search entry box
push (@toc_entries, "<li><form action=\"#\" method=\"get\"><input onfocus=\"this.value=''\" type=\"text\" name=\"search\" id=\"search\" value=\"Search\"></form></li>\n");
-
+ }
push (@toc_entries, "</ul>\n");
#FIXME
# push (@toc_entries, "</div>\n");
print $fh "<img src=\"http://www.w3.org/Icons/valid-html401\"\n";
print $fh " alt=\"Valid HTML 4.01 Transitional\"\n";
print $fh " height=\"31\" width=\"88\"></a></p>\n";
- print $fh "<p>Web pages created with";
- print $fh " <a href=\"http://www.gnu.org/software/texinfo/\">";
- print $fh " GNU Texinfo</a>\n";
- print $fh " and <a href=\"http://www.nongnu.org/texi2html/\">";
- print $fh " texi2html</a>.</p>\n";
print $fh "</div>";
print $fh "</div>";