// -*- C++ -*- /* This file is part of * ====================================================== * * LyX, The Document Processor * * Copyright (C) 1995 Matthias Ettrich * Copyright (C) 1995-1998 the LyX Team. *
*======================================================*/
// always include this if (true || lyx)
macros += lyx_def + '\n';
if (lyxline)
macros += lyxline_def + '\n';
if (noun) {
macros += noun_def + '\n';
}
// quotes. if (quotesinglbase)
macros += quotesinglbase_def + '\n'; if (quotedblbase)
macros += quotedblbase_def + '\n'; if (guilsinglleft)
macros += guilsinglleft_def + '\n'; if (guilsinglright)
macros += guilsinglright_def + '\n'; if (guillemotleft)
macros += guillemotleft_def + '\n'; if (guillemotright)
macros += guillemotright_def + '\n';
// Math mode if (boldsymbol && !amsstyle)
macros += boldsymbol_def + '\n'; if (binom && !amsstyle)
macros += binom_def + '\n';
// other if (NeedLyXMinipageIndent)
macros += minipageindent_def; if (LyXParagraphIndent)
macros += paragraphindent_def; if (NeedLyXFootnoteCode)
macros += floatingfootnote_def;
return macros;
}
LString LaTeXFeatures::getTClassPreamble(BufferParams const ¶ms)
{ // the text class specific preamble
LyXTextClass *tclass = lyxstyle.TextClass(params.textclass);
LString tcpreamble = tclass->preamble;
int l; for (l = 0 ; l < tclass->number_of_defined_layouts ; l++) { if (layout[l]
&& !tclass->style[l].preamble.empty())
tcpreamble += tclass->style[l].preamble;
}
return tcpreamble;
}
void LaTeXFeatures::showStruct(BufferParams ¶ms) {
lyxerr.print("LyX needs the following commands when LaTeXing:"); // packs
lyxerr.print("***** Packages:");
lyxerr.print(getPackages(params));
lyxerr.print("***** Macros:");
lyxerr.print(getMacros(params));
lyxerr.print("***** Textclass stuff:");
lyxerr.print(getTClassPreamble(params));
lyxerr.print("***** done.");
}
¤ Dauer der Verarbeitung: 0.13 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.