Initial HTML information for layouts. Much of this is prelimiary,

some of it is really only for testing purposes.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29953 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2009-06-05 17:51:03 +00:00
parent 32fabb3f6a
commit 062db8b679
8 changed files with 73 additions and 1 deletions

View File

@ -17,6 +17,13 @@ InsetLayout CharStyle:Noun
EndFont EndFont
Requires noun Requires noun
InToc true InToc true
HTMLTag span
HTMLAttr class='noun'
HTMLStyle
span.noun {
font-family: sans-serif;
}
EndHTMLStyle
End End
@ -29,6 +36,7 @@ InsetLayout CharStyle:Emph
Shape Italic Shape Italic
EndFont EndFont
InToc true InToc true
HTMLTag em
End End
@ -44,6 +52,7 @@ InsetLayout CharStyle:Strong
\newcommand{\strong}[1]{\textbf{#1}} \newcommand{\strong}[1]{\textbf{#1}}
EndPreamble EndPreamble
InToc true InToc true
HTMLTag strong
End End
@ -59,4 +68,5 @@ InsetLayout CharStyle:Code
\newcommand{\code}[1]{\texttt{#1}} \newcommand{\code}[1]{\texttt{#1}}
EndPreamble EndPreamble
InToc true InToc true
HTMLTag code
End End

View File

@ -10,7 +10,6 @@ Sides 1
SecNumDepth 3 SecNumDepth 3
TocDepth 3 TocDepth 3
Style Standard Style Standard
Margin Static Margin Static
LatexType Paragraph LatexType Paragraph
@ -20,6 +19,7 @@ Style Standard
Align Block Align Block
AlignPossible Block, Left, Right, Center AlignPossible Block, Left, Right, Center
LabelType No_Label LabelType No_Label
HTMLTag p
End End
Input stdtitle.inc Input stdtitle.inc

View File

@ -35,6 +35,7 @@ Style Standard
Align Block Align Block
AlignPossible Block, Left, Right, Center AlignPossible Block, Left, Right, Center
LabelType No_Label LabelType No_Label
HTMLTag p
End End
#Input stdcharstyles.inc #Input stdcharstyles.inc

View File

@ -97,6 +97,8 @@ InsetLayout Foot
Size Small Size Small
EndFont EndFont
MultiPar true MultiPar true
HTMLTag span
HTMLAttr class='footnote'
End End
InsetLayout Note:Comment InsetLayout Note:Comment
@ -322,3 +324,9 @@ InsetLayout Info:shortcuts
Family sans Family sans
EndFont EndFont
End End
InsetLayout Box
HTMLStyle
span.Frameless { font-family: sans-serif; }
EndHTMLStyle
End

View File

@ -24,6 +24,9 @@ Style Quotation
ParSep 0 ParSep 0
Align Block Align Block
AlignPossible Block, Left, Right, Center AlignPossible Block, Left, Right, Center
HTMLTag blockquote
HTMLAttr class='quotation'
HTMLItem p
End End
@ -41,6 +44,9 @@ Style Quote
Align Block Align Block
AlignPossible Block, Left, Right, Center AlignPossible Block, Left, Right, Center
LabelType No_Label LabelType No_Label
HTMLTag blockquote
HTMLAttr class='quote'
HTMLItem p
End End
@ -61,6 +67,9 @@ Style Verse
Align Block Align Block
AlignPossible Block, Left AlignPossible Block, Left
LabelType No_Label LabelType No_Label
HTMLTag blockquote
HTMLAttr class='verse'
HTMLItem p
End End

View File

@ -24,6 +24,8 @@ Style Itemize
AlignPossible Block, Left AlignPossible Block, Left
LabelType Itemize LabelType Itemize
LabelString "*" LabelString "*"
HTMLTag ul
HTMLItem li
End End
@ -44,6 +46,8 @@ Style Enumerate
AlignPossible Block, Left AlignPossible Block, Left
LabelType Enumerate LabelType Enumerate
LabelCounter "enum" LabelCounter "enum"
HTMLTag ol
HTMLItem li
End End
Style Description Style Description
@ -66,6 +70,9 @@ Style Description
LabelFont LabelFont
Series Bold Series Bold
EndFont EndFont
HTMLTag dl
HTMLItem dd
HTMLLabel dt
End End
@ -84,6 +91,11 @@ Style List
AlignPossible Block, Left AlignPossible Block, Left
LabelType Manual LabelType Manual
LabelString "00.00.0000" LabelString "00.00.0000"
HTMLTag ol
HTMLAttr class='lyxlist'
HTMLItem li
HTMLLabel span
HTMLLabelAttr class='lyxlist'
#define the environment lyxlist #define the environment lyxlist
Preamble Preamble
@ -95,4 +107,13 @@ Style List
\renewcommand{\makelabel}[1]{##1\hfil}}} \renewcommand{\makelabel}[1]{##1\hfil}}}
{\end{list}} {\end{list}}
EndPreamble EndPreamble
HTMLStyle
ol.lyxlist {
list-style-type: none;
}
span.lyxlist {
margin-right: 3em;
}
EndHTMLStyle
End End

View File

@ -30,6 +30,8 @@ Style Part
Series Bold Series Bold
Size Huge Size Huge
EndFont EndFont
HTMLTag h1
HTMLAttr class='part'
End End
@ -55,6 +57,8 @@ Style Chapter
Series Bold Series Bold
Size Huge Size Huge
EndFont EndFont
HTMLTag h1
HTMLAttr class='chapter'
End End
@ -79,6 +83,11 @@ Style Section
Series Bold Series Bold
Size Larger Size Larger
EndFont EndFont
HTMLTag h2
HTMLAttr class='section'
HTMLStyle
h2.section { font-family: sans-serif; }
EndHTMLStyle
End End
@ -94,6 +103,8 @@ Style Subsection
Series Bold Series Bold
Size Large Size Large
EndFont EndFont
HTMLTag h3
HTMLAttr class='subsection'
End End
@ -108,6 +119,8 @@ Style Subsubsection
Series Bold Series Bold
Size Normal Size Normal
EndFont EndFont
HTMLTag h4
HTMLAttr class='subsubsection'
End End
@ -118,6 +131,8 @@ Style Paragraph
LatexName paragraph LatexName paragraph
TopSep 0.4 TopSep 0.4
BottomSep 0 BottomSep 0
HTMLTag span
HTMLAttr class='paragraph'
End End
@ -128,6 +143,8 @@ Style Subparagraph
LatexName subparagraph LatexName subparagraph
NextNoIndent 0 NextNoIndent 0
LeftMargin MM LeftMargin MM
HTMLTag span
HTMLAttr class='subparagraph'
End End
Input numarticle.inc Input numarticle.inc

View File

@ -25,6 +25,8 @@ Style Title
Font Font
Size Largest Size Largest
EndFont EndFont
HTMLTag h1
HTMLAttr class='title'
End End
@ -44,6 +46,8 @@ Style Author
Font Font
Size Large Size Large
EndFont EndFont
HTMLTag h2
HTMLAttr class='author'
End End
@ -63,4 +67,6 @@ Style Date
Font Font
Size Large Size Large
EndFont EndFont
HTMLTag h2
HTMLAttr class='date'
End End