- solutions.lyx: detailed description
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39269
a592a061-630c-0410-9148-
cb99ea01b6c8
LabelString "CR Subject Classification"
End
LabelString "CR Subject Classification"
End
-Style Problem
- RequiredArgs 0
-End
-
+# this label has no dot at the end
+ LabelString "Solution \thesolution"
LabelString "Running Chapter:"
End
LabelString "Running Chapter:"
End
-Style Problem
- ObsoletedBy Prob
-End
-
-Style Solution
- ObsoletedBy Sol
-End
-
Counter theorem
Within chapter
End
Counter theorem
Within chapter
End
-#Style Problem
-# ObsoletedBy Problem_(theorem-like)
-#End
-
-#Style Solution
-# ObsoletedBy Solution_(theorem-like)
-#End
-
#InsetLayout Flex:Inst
# Decoration Classic
# LabelString "Institute # [deprecated]"
#InsetLayout Flex:Inst
# Decoration Classic
# LabelString "Institute # [deprecated]"
# - Problem
# - Prob
# - Solution
# - Problem
# - Prob
# - Solution
# - Exercise
# - Remark
# - Claim
# - Exercise
# - Remark
# - Claim
LatexName problem
LabelString "Problem \theproblem"
RefPrefix prob
LatexName problem
LabelString "Problem \theproblem"
RefPrefix prob
- OptionalArgs 1
- RequiredArgs 1
LangPreamble
\providecommand{\problemname}{_(Problem)}
EndLangPreamble
LangPreamble
\providecommand{\problemname}{_(Problem)}
EndLangPreamble
CopyStyle Problem
LabelCounter prob
LatexName prob
CopyStyle Problem
LabelCounter prob
LatexName prob
+ LabelString "\theprob."
+ OptionalArgs 0
CopyStyle Problem
LabelCounter solution
LatexName solution
CopyStyle Problem
LabelCounter solution
LatexName solution
- LabelString "Solution \thesolution"
+ LabelString "Solution \thesolution."
RefPrefix sol
LangPreamble
\providecommand{\solutionname}{_(Solution)}
RefPrefix sol
LangPreamble
\providecommand{\solutionname}{_(Solution)}
+Counter sol
+ Within chapter
+End
+Style Sol
+ CopyStyle Problem
+ LabelCounter sol
+ LatexName sol
+ LabelString "\thesol"
+ RequiredArgs 1
+End
+
+
Counter exercise
End
Style Exercise
Counter exercise
End
Style Exercise
\begin_inset Argument
status open
\begin_layout Plain Layout
\begin_inset Argument
status open
\begin_layout Plain Layout
\begin_inset Index idx
status collapsed
\begin_inset Index idx
status collapsed
+ is revealed here.
+\end_layout
+
+\begin_layout Solution
+\begin_inset Argument
+status open
+
+\begin_layout Plain Layout
+Title/Name (optional)
+\end_layout
+
+\end_inset
\begin_inset Index idx
status collapsed
\begin_inset Index idx
status collapsed
\end_inset
is revealed here.
\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
\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
+
+.
-\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.
+\begin_layout Standard
+Solution:
+\end_layout
+
+\begin_layout Sol
\begin_inset Argument
status open
\begin_layout Plain Layout
\begin_inset Argument
status open
\begin_layout Plain Layout
+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
-(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
-(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
+
+