> Achim> Hi All, if I put a footnote within a list that extends to more
> Achim> than one page, LyX (ore rather LaTeX?!) always puts the
> Achim> footnote on the bottom of the page where the list ends. That
> Achim> leads to footnotetext appearing on different pages than the
> Achim> footnotemark. Is there any way to avoid this behavior? TIA
> >>
> >>
> >> This is a `feature' of LyX that was introduced to fix an obscure
> >> bug (enumeration in a footnote in an enumeration) and proves IMO to
> >> be worse that the previous state of things. I think I'll disable it
> >> soon if I find some time.
> >>
> Achim> Is there a way to change that behavior "manually"? I am in the
> Achim> process of finishing my thesis and would really like to have
> Achim> the foonotes "where they belong" asap. Thanks Achim
>
> Try the following simple patch (which just comments out two pieces of
> code). Please tell me whether it works well. I might have forgotten a
> place where special care should be taken.
>
> JMarc
>
> Index: paragraph.C
> ===================================================================
> RCS file: /usr/local/lyxsrc/cvsroot/lyx-1_0_x/src/paragraph.C,v
> retrieving revision 1.10
> diff -u -r1.10 paragraph.C
> --- paragraph.C 1999/04/15 16:00:56 1.10
> +++ paragraph.C 1999/06/01 10:46:25
> @@ -3037,14 +3037,22 @@
> minipage_open = true;
> minipage_open_depth = depth;
> }
> +
> +#ifdef WITH_WARNINGS
> +#warning Define FANCY_FOOTNOTE_CODE to re-enable Allan footnote code
> + //I disabled it because it breaks when lists span on several
> + //pages (JMarc)
> +#endif
> if (style->isEnvironment()){
> if (style->latextype == LATEX_LIST_ENVIRONMENT) {
> +#ifdef FANCY_FOOTNOTE_CODE
> if (foot_count < 0) {
> // flag that footnote[mark][text] should be
> // used for any footnotes from now on
> foot_count = 0;
> foot_this_level = true;
> }
> +#endif
> file += "\\begin{" + style->latexname + "}{"
> + labelwidthstring + "}\n";
> } else if (style->labeltype == LABEL_BIBLIO) {
> @@ -3052,12 +3060,14 @@
> file += "\\begin{" + style->latexname + "}{"
> + bibitemWidthest() + "}\n";
> } else if (style->latextype == LATEX_ITEM_ENVIRONMENT) {
> +#ifdef FANCY_FOOTNOTE_CODE
> if (foot_count < 0) {
> // flag that footnote[mark][text] should be
> // used for any footnotes from now on
> foot_count = 0;
> foot_this_level = true;
> }
> +#endif
> file += "\\begin{" + style->latexname + '}'
> + style->latexparam + '\n';
> } else
>
I just applied the patch to lyx 1.0.3 and it did exactly what I wanted.
Thanks to JMarc.
*******************************************************************************
Achim Maldener Tel.: ++49 69 798 24267
Institut fuer Kernphysik FAX: ++49 69 798 24212
August-Euler-Str. 6 e-mail: [EMAIL PROTECTED]
D-60486 Frankfurt a.M. www: http://tony.ikf.physik.uni-frankfurt.de
*******************************************************************************