]> git.lyx.org Git - lyx.git/commitdiff
- Springer layouts: add style "Sol" and fix layout of problem/solutions.lyx
authorUwe Stöhr <uwestoehr@web.de>
Sun, 10 Jul 2011 05:16:27 +0000 (05:16 +0000)
committerUwe Stöhr <uwestoehr@web.de>
Sun, 10 Jul 2011 05:16:27 +0000 (05:16 +0000)
- solutions.lyx: detailed description

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39269 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/svglobal3.layout
lib/layouts/svmono.layout
lib/layouts/svmult.layout
lib/layouts/theorems-without-preamble.inc
lib/templates/springer/solutions.lyx

index 0abcd1d31ca655efa25019961116134566c8d70a..b8c09793f41f613283ca909728391a683e7c9a95 100644 (file)
@@ -82,13 +82,7 @@ InsetLayout Flex:CRSC
        LabelString             "CR Subject Classification"
 End
 
-Style Problem
-       RequiredArgs    0
-End
-
+# this label has no dot at the end
 Style Solution
-       RequiredArgs    0
+       LabelString     "Solution \thesolution"
 End
-
-
-
index c5468103bfc97a0c4fafe5fda0acc439a4c2909d..bf30177337db9555c98f045130dc06810e47edb9 100644 (file)
@@ -31,14 +31,6 @@ Style Running_Chapter
        LabelString     "Running Chapter:"
 End
 
-Style Problem
-       ObsoletedBy     Prob
-End
-
-Style Solution
-       ObsoletedBy     Sol
-End
-
 Counter theorem
   Within       chapter
 End
index f34773a30bfb819b4e80367f252fcd0e13c19e13..2736dc283ded061f40c109947128dc6b4619dbdf 100644 (file)
@@ -137,14 +137,6 @@ Style List_of_Contributors
        Requires        ifthen
 End
 
-#Style Problem
-#      ObsoletedBy     Problem_(theorem-like)
-#End
-
-#Style Solution
-#      ObsoletedBy     Solution_(theorem-like)
-#End
-
 #InsetLayout Flex:Inst
 #      Decoration      Classic
 #      LabelString     "Institute # [deprecated]"
index 4be9bec6299957b6da7059362a07d4f43bee0f49..85cf48fc169f5492e373b20f744f33c4d80d039c 100644 (file)
@@ -16,6 +16,7 @@
 # - Problem
 # - Prob
 # - Solution
+# - Sol
 # - Exercise
 # - Remark
 # - Claim
@@ -225,8 +226,6 @@ Style Problem
        LatexName       problem
        LabelString     "Problem \theproblem"
        RefPrefix       prob
-       OptionalArgs    1
-       RequiredArgs    1
        LangPreamble
                \providecommand{\problemname}{_(Problem)}
        EndLangPreamble
@@ -243,7 +242,8 @@ Style Prob
        CopyStyle       Problem
        LabelCounter    prob
        LatexName       prob
-       LabelString     "\theprob"
+       LabelString     "\theprob."
+       OptionalArgs    0
 End
 
 
@@ -253,7 +253,7 @@ Style Solution
        CopyStyle       Problem
        LabelCounter    solution
        LatexName       solution
-       LabelString     "Solution \thesolution"
+       LabelString     "Solution \thesolution."
        RefPrefix       sol
        LangPreamble
                \providecommand{\solutionname}{_(Solution)}
@@ -264,6 +264,18 @@ Style Solution
 End
 
 
+Counter                sol
+  Within       chapter
+End
+Style Sol
+       CopyStyle       Problem
+       LabelCounter    sol
+       LatexName       sol
+       LabelString     "\thesol"
+       RequiredArgs    1
+End
+
+
 Counter                exercise
 End
 Style Exercise
index 018b25e02ad826fe93134c908d27add2d1bcf3dd..acac0f1babe8a7535b79dbd58e542208960da93c 100644 (file)
@@ -79,17 +79,17 @@ reference "chap:intro"
 
 \end_layout
 
-\begin_layout Solution
+\begin_layout Problem
 \begin_inset Argument
 status open
 
 \begin_layout Plain Layout
-probl
+Title/Name (optional)
 \end_layout
 
 \end_inset
 
-The solution
+The problem
 \begin_inset Index idx
 status collapsed
 
@@ -99,7 +99,20 @@ problems
 
 \end_inset
 
+ is revealed here.
+\end_layout
+
+\begin_layout Solution
+\begin_inset Argument
+status open
+
+\begin_layout Plain Layout
+Title/Name (optional)
+\end_layout
+
+\end_inset
 
+The solution
 \begin_inset Index idx
 status collapsed
 
@@ -110,11 +123,51 @@ solutions
 \end_inset
 
  is revealed here.
+\end_layout
+
+\begin_layout --Separator--
+
+\end_layout
+
+\begin_layout Solution
+
+\series bold
+Problem Heading
+\series default
+
+\begin_inset Newline newline
+\end_inset
+
+(a) The solution of first part is revealed here.
+\begin_inset Newline newline
+\end_inset
+
+(b) The solution of second part is revealed here.
+\end_layout
+
+\begin_layout Subsection*
+Problem with its solution
 \begin_inset Note Note
 status open
 
 \begin_layout Plain Layout
-both, the optional argument and a text is mandatory
+For these method use the layouts 
+\begin_inset Quotes eld
+\end_inset
+
+Prob
+\begin_inset Quotes erd
+\end_inset
+
+ and 
+\begin_inset Quotes eld
+\end_inset
+
+Sol
+\begin_inset Quotes erd
+\end_inset
+
+.
 \end_layout
 
 \end_inset
@@ -122,33 +175,70 @@ both, the optional argument and a text is mandatory
 
 \end_layout
 
-\begin_layout --Separator--
+\begin_layout Standard
+Problem:
+\end_layout
+
+\begin_layout Prob
+\begin_inset CommandInset label
+LatexCommand label
+name "prob:Area-of-Circle"
 
+\end_inset
+
+Here comes the problem description.
+ Its label will be referenced in its solution.
 \end_layout
 
-\begin_layout Solution
+\begin_layout Standard
+Solution:
+\end_layout
+
+\begin_layout Sol
 \begin_inset Argument
 status open
 
 \begin_layout Plain Layout
-prob2
+prob:Area-of-Circle
 \end_layout
 
 \end_inset
 
+The solution of the corresponding problem.
+\begin_inset Note Note
+status open
 
-\series bold
-Problem Heading
-\series default
+\begin_layout Plain Layout
+the optional argument is the label of the corresponding problem
+\end_layout
 
-\begin_inset Newline newline
 \end_inset
 
-(a) The solution of first part is revealed here.
-\begin_inset Newline newline
+
+\end_layout
+
+\begin_layout Standard
+The number of the problem/solution can also be referenced in the text: 
+\begin_inset Quotes eld
 \end_inset
 
-(b) The solution of second part is revealed here.
+As explained in the description of problem
+\begin_inset space ~
+\end_inset
+
+
+\begin_inset CommandInset ref
+LatexCommand ref
+reference "prob:Area-of-Circle"
+
+\end_inset
+
+\SpecialChar \ldots{}
+
+\begin_inset Quotes erd
+\end_inset
+
+
 \end_layout
 
 \end_body