394 \makebox InsetBox use_makebox
396 nameref.sty InsetRef
399 automatic mathdots loading \use_mathdots
-400 other rules than \lyxline InsetLine
401 feyn.sty InsetMathDiagram
402 \addcontentsline InsetBibtex bibtotoc option
404 refstyle.sty InsetRef
The following tow don't work, but they should???
%\macros{x} \macrot{x}
+
\section{Special formattings\index{Special formattings}}
\subsection{LyX line}
{\Huge \lyxline{\Huge}}{\Huge \par}
+
+\subsection{rules}
+
+test\rule[0.001\textwidth]{1\columnwidth}{0.05\textheight}
+
test
+\rule[0.5ex]{1\columnwidth}{1pt}
+
+\noindent \rule{1ex}{0.5cc}test
+
+\textcolor{red}{\rule[-4ex]{5in}{1cm}}
+
+
\subsection{Line breaks}
They can also or be broken by a newline\\
end_inset(os);
}
+ else if (t.cs() == "rule") {
+ string offset = "";
+ string width;
+ string thickness;
+ if (p.hasOpt())
+ offset = p.getArg('[', ']');
+ width = p.getArg('{', '}');
+ thickness = p.getArg('{', '}');
+
+ context.check_layout(os);
+ begin_command_inset(os, "line", "rule");
+ if (!offset.empty())
+ os << "offset \"" << translate_len(offset) << "\"\n";
+ os << "width \"" << translate_len(width) << "\"\n"
+ "height \"" << translate_len(thickness) << "\"\n";
+ end_inset(os);
+ }
+
else if (is_known(t.cs(), known_phrases) ||
(t.cs() == "protect" &&
p.next_token().cat() == catEscape &&