\begin_inset Flex CharStyle:Code
status collapsed
+\begin_layout Plain Layout
+ParbreakIsNewline
+\end_layout
+
+\end_inset
+
+
+\begin_inset CommandInset label
+LatexCommand label
+name "des:ParbreakIsNewline"
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+0
+\end_layout
+
+\end_inset
+
+,
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+1
+\end_layout
+
+\end_inset
+
+] Indicates that paragraphs will not be separated by an empty line in LaTeX
+ output, but only by a line break; together with
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+PassThru 1
+\end_layout
+
+\end_inset
+
+, this allows to emulate a plain text editor (like the ERT inset).
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
\begin_layout Plain Layout
ParIndent
\end_layout
\begin_inset CommandInset label
LatexCommand label
-name "des:PathThru"
+name "des:PassThru"
\end_inset
\begin_inset Flex CharStyle:Code
status collapsed
+\begin_layout Plain Layout
+ParbreakIsNewline
+\end_layout
+
+\end_inset
+
+ [
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+
+\emph on
+0
+\end_layout
+
+\end_inset
+
+,
+\begin_inset Flex CharStyle:Code
+status collapsed
+
+\begin_layout Plain Layout
+1
+\end_layout
+
+\end_inset
+
+] As with paragraph styles (see page
+\begin_inset CommandInset ref
+LatexCommand pageref
+reference "des:ParbreakIsNewline"
+
+\end_inset
+
+).
+ Default is false.
+\end_layout
+
+\begin_layout Description
+\begin_inset Flex CharStyle:Code
+status collapsed
+
\begin_layout Plain Layout
PassThru
\end_layout
] As with paragraph styles (see page
\begin_inset CommandInset ref
LatexCommand pageref
-reference "des:PathThru"
+reference "des:PassThru"
\end_inset
AlignPossible Block,Left
FreeSpacing 1
PassThru 1
+ ParbreakIsNewline 1
LabelType Static
LabelFont
Color magenta
AlignPossible Block,Left
FreeSpacing 1
PassThru 1
+ ParbreakIsNewline 1
LabelType Static
LabelFont
Color magenta
CustomPars false
ForcePlain true
PassThru true
+ ParbreakIsNewline true
KeepEmpty true
FreeSpacing true
ForceLTR true
BgColor listingsbg
MultiPar true
PassThru true
+ ParbreakIsNewline true
KeepEmpty true
FreeSpacing true
ForceLTR true
#DescriptionEnd
#Category: literate
-# Within the chunk, lines are separated by newlines (Ctrl-Return)!
# To add :
# - \setkeys{Gin}{width=0.8\textwidth} How to add such a "beast"? This is used to define
NewLine 0
FreeSpacing 1
PassThru 1
+ ParbreakIsNewline 1
## What is LabelType used for?
LabelType Static
TextFont
# Incremented to format 27, 4 June 2010 by rgh
# Added RequiredArgs tag.
+# Incremented to format 28, 6 August 2010 by lasgouttes
+# Added ParbreakIsNewline tag for Layout and InsetLayout.
+
# Do not forget to document format change in Customization
# Manual (section "Declaring a new text class").
# development/tools/updatelayouts.sh script to update all
# layout files to the new format.
-currentFormat = 27
+currentFormat = 28
def usage(prog_name):
continue
# Only new features
- if format >= 24 and format <= 26:
+ if format >= 24 and format <= 27:
i += 1
continue
LT_FONT,
LT_FREE_SPACING,
LT_PASS_THRU,
+ LT_PARBREAK_IS_NEWLINE,
//LT_HEADINGS,
LT_ITEMSEP,
LT_KEEPEMPTY,
newline_allowed = true;
free_spacing = false;
pass_thru = false;
+ parbreak_is_newline = false;
toclevel = NOT_IN_TOC;
commanddepth = 0;
htmllabelfirst_ = false;
{ "nextnoindent", LT_NEXTNOINDENT },
{ "obsoletedby", LT_OBSOLETEDBY },
{ "optionalargs", LT_OPTARGS },
+ { "parbreakisnewline", LT_PARBREAK_IS_NEWLINE },
{ "parindent", LT_PARINDENT },
{ "parsep", LT_PARSEP },
{ "parskip", LT_PARSKIP },
lex >> pass_thru;
break;
+ case LT_PARBREAK_IS_NEWLINE:
+ lex >> parbreak_is_newline;
+ break;
+
case LT_SPACING: // setspace.sty
readSpacing(lex);
break;
bool free_spacing;
///
bool pass_thru;
+ ///
+ bool parbreak_is_newline;
/// show this in toc
int toclevel;
/// special value of toclevel for non-section layouts
// development/updatelayouts.sh script, to update the format of
// all of our layout files.
//
-int const LAYOUT_FORMAT = 27;
+int const LAYOUT_FORMAT = 28;
namespace {
labelfont_(sane_font), bgcolor_(Color_error),
htmlforcecss_ (false), htmlisblock_(true),
multipar_(true), custompars_(true), forceplain_(false),
- passthru_(false), needprotect_(false), freespacing_(false),
- keepempty_(false), forceltr_(false), intoc_(false), spellcheck_(true)
+ passthru_(false), parbreakisnewline_(false), freespacing_(false),
+ keepempty_(false), forceltr_(false),
+ needprotect_(false), intoc_(false), spellcheck_(true)
{
labelfont_.setColor(Color_error);
}
IL_MULTIPAR,
IL_NEEDPROTECT,
IL_PASSTHRU,
+ IL_PARBREAKISNEWLINE,
IL_PREAMBLE,
IL_REQUIRES,
IL_SPELLCHECK,
{ "lyxtype", IL_LYXTYPE },
{ "multipar", IL_MULTIPAR },
{ "needprotect", IL_NEEDPROTECT },
+ { "parbreakisnewline", IL_PARBREAKISNEWLINE },
{ "passthru", IL_PASSTHRU },
{ "preamble", IL_PREAMBLE },
{ "refprefix", IL_REFPREFIX },
case IL_PASSTHRU:
lex >> passthru_;
break;
+ case IL_PARBREAKISNEWLINE:
+ lex >> parbreakisnewline_;
+ break;
case IL_KEEPEMPTY:
lex >> keepempty_;
break;
///
bool isPassThru() const { return passthru_; }
///
+ bool parbreakIsNewline() const { return parbreakisnewline_; }
+ ///
bool isNeedProtect() const { return needprotect_; }
///
bool isFreeSpacing() const { return freespacing_; }
///
bool passthru_;
///
- bool needprotect_;
+ bool parbreakisnewline_;
///
bool freespacing_;
///
bool keepempty_;
///
bool forceltr_;
+ ///
+ bool needprotect_;
/// should the contents be written to TOC strings?
bool intoc_;
/// check spelling of this inset?