395 page sizes C0-6 \papersize
396 nameref.sty InsetRef
399 automatic mathdots loading \use_mathdots
+400 other rules than \lyxline InsetLine
+401 feyn.sty InsetMathDiagram
// needed to handle encodings with babel
bool one_language = true;
string h_inputencoding = "auto";
+string h_paragraph_separation = "indent";
namespace {
string h_notefontcolor;
string h_secnumdepth = "3";
string h_tocdepth = "3";
-string h_paragraph_separation = "indent";
string h_defskip = "medskip";
string h_paragraph_indentation = "default";
string h_quotes_language = "english";
extern std::map<std::string, std::vector<std::string> > used_packages;
extern const char * const modules_placeholder;
extern std::string h_inputencoding;
+extern std::string h_paragraph_separation;
/// in text.cpp
std::string translate_len(std::string const &);
/// Did we recognize any pdflatex-only construct?
extern bool pdflatex;
/// LyX format that is created by tex2lyx
-int const LYX_FORMAT = 399;
+int const LYX_FORMAT = 401;
/// path of the master .tex file
extern std::string getMasterFilePath();
}
else if (t.cs() == "lyxline") {
+ // swallow size argument (it is not used anyway)
+ p.getArg('{', '}');
+ if (!context.atParagraphStart()) {
+ // so our line is in the middle of a paragraph
+ // we need to add a new line, lest this line
+ // follow the other content on that line and
+ // run off the side of the page
+ // FIXME: This may create an empty paragraph,
+ // but without that it would not be
+ // possible to set noindent below.
+ // Fortunately LaTeX does not care
+ // about the empty paragraph.
+ context.new_paragraph(os);
+ }
+ if (h_paragraph_separation == "indent") {
+ // we need to unindent, lest the line be too long
+ context.add_par_extra_stuff("\\noindent\n");
+ }
context.check_layout(os);
- os << "\\lyxline";
+ begin_command_inset(os, "line", "rule");
+ os << "offset \"0.5ex\"\n"
+ "width \"100line%\"\n"
+ "height \"1pt\"\n";
+ end_inset(os);
}
else if (is_known(t.cs(), known_phrases) ||