+2002-05-11 Dekel Tsur <dekelts@tau.ac.il>
+
+ * buffer.C (latexParagraphs): Add new argument (moving_arg).
+
2002-05-14 Juergen Vigna <jug@sad.it>
* text.C (breakParagraph): fixed function to honor the keepempty
// LaTeX all paragraphs from par to endpar, if endpar == 0 then to the end
//
void Buffer::latexParagraphs(ostream & ofs, Paragraph * par,
- Paragraph * endpar, TexRow & texrow) const
+ Paragraph * endpar, TexRow & texrow,
+ bool moving_arg) const
{
bool was_title = false;
bool already_title = false;
{
par = par->TeXEnvironment(this, params, ofs, texrow);
} else {
- par = par->TeXOnePar(this, params, ofs, texrow, false);
+ par = par->TeXOnePar(this, params, ofs, texrow, moving_arg);
}
} else {
- par = par->TeXOnePar(this, params, ofs, texrow, false);
+ par = par->TeXOnePar(this, params, ofs, texrow, moving_arg);
}
}
// It might be that we only have a title in this document
\param \a endpar if == 0 then to the end
*/
void latexParagraphs(std::ostream & os, Paragraph * par,
- Paragraph * endpar, TexRow & texrow) const;
+ Paragraph * endpar, TexRow & texrow, bool moving_arg = false) const;
///
void simpleDocBookOnePar(std::ostream &,
Paragraph * par, int & desc_on,
+2002-05-11 Dekel Tsur <dekelts@tau.ac.il>
+
+ * insettext.C (latex): Honor the moving_arg argument.
+
+2002-04-22 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
+
+ * insetfoot.C (latex): if a footnote is in a title layout, then it
+ is a \thanks. And then, its contents is a moving argument.
+
2002-05-14 Juergen Vigna <jug@sad.it>
* insetcollapsable.C (InsetCollapsable): forgot to initialize
#include "insets/insettext.h"
#include "support/LOstream.h"
#include "debug.h"
+// the following are needed just to get the layout of the enclosing
+// paragraph. This seems a bit too much to me (JMarc)
+#include "lyxlayout.h"
+#include "lyxtextclasslist.h"
+#include "buffer.h"
+#include "paragraph.h"
using std::ostream;
int InsetFoot::latex(Buffer const * buf,
ostream & os, bool fragile, bool fp) const
{
+ if (buf && parOwner()) {
+ LyXLayout const & layout =
+ textclasslist[buf->params.textclass][parOwner()->layout()];
+ fragile |= layout.intitle;
+ }
+
os << "%\n\\footnote{";
int const i = inset.latex(buf, os, fragile, fp);
}
-int InsetText::latex(Buffer const * buf, ostream & os, bool, bool) const
+int InsetText::latex(Buffer const * buf, ostream & os, bool moving_arg, bool) const
{
TexRow texrow;
- buf->latexParagraphs(os, par, 0, texrow);
+ buf->latexParagraphs(os, par, 0, texrow, moving_arg);
return texrow.rows();
}