]> git.lyx.org Git - lyx.git/blobdiff - src/lyx_sty.C
new \lyxline difinition, fixes also bug 1988:
[lyx.git] / src / lyx_sty.C
index b529c5d3601300e04b4cd53759b26d7a063b33b7..9e7d56fdbf4e525438c5c87235af49276325491b 100644 (file)
@@ -26,9 +26,9 @@ string const lyx_def =
        "\\providecommand{\\LyX}{L\\kern-.1667em\\lower.25em\\hbox{Y}\\kern-.125emX\\@}";
 
 string const lyxline_def =
-       "\\newcommand{\\lyxline}[1]{\n"
-       "  {#1 \\vspace{1ex} \\hrule width \\columnwidth \\vspace{1ex}}\n"
-       "}";
+       "\\newcommand{\\lyxline}[1][1pt]{%\n"
+       "  \\par\\noindent%\n"
+       "  \\rule[.5ex]{\\linewidth}{#1}\\par}";
 
 string const noun_def = "\\newcommand{\\noun}[1]{\\textsc{#1}}";