jss.layout: remove superfluous Appendix style

- remove also the new superfluous lyx2lyx code
- update the template file
This commit is contained in:
Uwe Stöhr 2015-05-27 02:13:04 +02:00
parent 5353172793
commit f3c1a4fbeb
3 changed files with 18 additions and 42 deletions

View File

@ -20,6 +20,8 @@ AddToPreamble
%\usepackage{Sweave} %\usepackage{Sweave}
EndPreamble EndPreamble
NoStyle "Right Address"
Style Section Style Section
LabelString \thesection. LabelString \thesection.
End End
@ -227,22 +229,3 @@ Style "Code Output"
LatexName CodeOutput LatexName CodeOutput
LabelString "Code Output" LabelString "Code Output"
End End
Style Appendix
LatexType Environment
LatexName appendix
Category BackMatter
TopSep 0.6
BottomSep 0.6
Margin First_Dynamic
Align Block
NextNoIndent 1
LabelType Above
LabelString "Appendix"
LabelSep M
LabelFont
Series Bold
Shape Up
Size large
EndFont
End

View File

@ -1375,8 +1375,7 @@ def revert_jss(document):
m = 0 m = 0
j = 0 j = 0
k = 0 k = 0
l = 0 while m != -1 or j != -1 or h != -1 or k != -1:
while m != -1 or j != -1 or h != -1 or k != -1 or l != -1:
# \CodeChunk # \CodeChunk
if h != -1: if h != -1:
h = find_token(document.body, "\\begin_layout Code Chunk", h) h = find_token(document.body, "\\begin_layout Code Chunk", h)
@ -1423,17 +1422,6 @@ def revert_jss(document):
document.body[k + 1 : k] = ["\\end_layout", "", "\\begin_layout Standard"] document.body[k + 1 : k] = ["\\end_layout", "", "\\begin_layout Standard"]
document.body[k : k + 1] = put_cmd_in_ert("\\begin{CodeOutput}") document.body[k : k + 1] = put_cmd_in_ert("\\begin{CodeOutput}")
k = k + 1 k = k + 1
if l != -1:
l = find_token(document.body, "\\begin_layout Appendix", l)
if l != -1:
endl = find_end_of_layout(document.body, l)
document.body[endl : endl + 1] = ["\\end_layout", "", "\\begin_layout Standard"]
document.body[endl + 3 : endl + 4] = put_cmd_in_ert("\\end{appendix}")
document.body[endl + 13 : endl + 13] = ["\\end_layout", ""]
document.body[l + 1 : l] = ["\\end_layout", "", "\\begin_layout Standard"]
document.body[l : l + 1] = put_cmd_in_ert("\\begin{appendix}")
document.body[l -1 : l] = ["", "\\begin_layout Standard"]
l = l + 1
def convert_subref(document): def convert_subref(document):

View File

@ -594,17 +594,14 @@ Writing several lines of code:
\begin_deeper \begin_deeper
\begin_layout Standard Code \begin_layout Standard Code
first line of code first line of code
\end_layout \end_layout
\begin_layout Standard Code \begin_layout Standard Code
second line of code second line of code
\end_layout \end_layout
\begin_layout Standard Code \begin_layout Standard Code
third line of code third line of code
\end_layout \end_layout
@ -619,27 +616,22 @@ Alternatively, you can distinguish between input and output code:
\begin_deeper \begin_deeper
\begin_layout Code Input \begin_layout Code Input
first line of input code first line of input code
\end_layout \end_layout
\begin_layout Code Input \begin_layout Code Input
second line of input code second line of input code
\end_layout \end_layout
\begin_layout Code Output \begin_layout Code Output
first line of output code first line of output code
\end_layout \end_layout
\begin_layout Code Output \begin_layout Code Output
second line of output code second line of output code
\end_layout \end_layout
\begin_layout Code Output \begin_layout Code Output
third line of output code third line of output code
\end_layout \end_layout
@ -652,8 +644,21 @@ Acknowledgments
Here you can write some acknowledgments. Here you can write some acknowledgments.
\end_layout \end_layout
\begin_layout Appendix \begin_layout Section
This is the appendix section \start_of_appendix
This is the first appendix section
\end_layout
\begin_layout Subsection
A subsection
\end_layout
\begin_layout Subsubsection
A subsubsection
\end_layout
\begin_layout Standard
some text
\end_layout \end_layout
\end_body \end_body