mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
- Springer layouts: add style "Sol" and fix layout of problem/solutions.lyx
- solutions.lyx: detailed description git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39269 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
aad1153ac6
commit
f5ce4bbb6f
@ -82,13 +82,7 @@ InsetLayout Flex:CRSC
|
|||||||
LabelString "CR Subject Classification"
|
LabelString "CR Subject Classification"
|
||||||
End
|
End
|
||||||
|
|
||||||
Style Problem
|
# this label has no dot at the end
|
||||||
RequiredArgs 0
|
|
||||||
End
|
|
||||||
|
|
||||||
Style Solution
|
Style Solution
|
||||||
RequiredArgs 0
|
LabelString "Solution \thesolution"
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -31,14 +31,6 @@ Style Running_Chapter
|
|||||||
LabelString "Running Chapter:"
|
LabelString "Running Chapter:"
|
||||||
End
|
End
|
||||||
|
|
||||||
Style Problem
|
|
||||||
ObsoletedBy Prob
|
|
||||||
End
|
|
||||||
|
|
||||||
Style Solution
|
|
||||||
ObsoletedBy Sol
|
|
||||||
End
|
|
||||||
|
|
||||||
Counter theorem
|
Counter theorem
|
||||||
Within chapter
|
Within chapter
|
||||||
End
|
End
|
||||||
|
@ -137,14 +137,6 @@ Style List_of_Contributors
|
|||||||
Requires ifthen
|
Requires ifthen
|
||||||
End
|
End
|
||||||
|
|
||||||
#Style Problem
|
|
||||||
# ObsoletedBy Problem_(theorem-like)
|
|
||||||
#End
|
|
||||||
|
|
||||||
#Style Solution
|
|
||||||
# ObsoletedBy Solution_(theorem-like)
|
|
||||||
#End
|
|
||||||
|
|
||||||
#InsetLayout Flex:Inst
|
#InsetLayout Flex:Inst
|
||||||
# Decoration Classic
|
# Decoration Classic
|
||||||
# LabelString "Institute # [deprecated]"
|
# LabelString "Institute # [deprecated]"
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
# - Problem
|
# - Problem
|
||||||
# - Prob
|
# - Prob
|
||||||
# - Solution
|
# - Solution
|
||||||
|
# - Sol
|
||||||
# - Exercise
|
# - Exercise
|
||||||
# - Remark
|
# - Remark
|
||||||
# - Claim
|
# - Claim
|
||||||
@ -225,8 +226,6 @@ Style Problem
|
|||||||
LatexName problem
|
LatexName problem
|
||||||
LabelString "Problem \theproblem"
|
LabelString "Problem \theproblem"
|
||||||
RefPrefix prob
|
RefPrefix prob
|
||||||
OptionalArgs 1
|
|
||||||
RequiredArgs 1
|
|
||||||
LangPreamble
|
LangPreamble
|
||||||
\providecommand{\problemname}{_(Problem)}
|
\providecommand{\problemname}{_(Problem)}
|
||||||
EndLangPreamble
|
EndLangPreamble
|
||||||
@ -243,7 +242,8 @@ Style Prob
|
|||||||
CopyStyle Problem
|
CopyStyle Problem
|
||||||
LabelCounter prob
|
LabelCounter prob
|
||||||
LatexName prob
|
LatexName prob
|
||||||
LabelString "\theprob"
|
LabelString "\theprob."
|
||||||
|
OptionalArgs 0
|
||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
@ -253,7 +253,7 @@ Style Solution
|
|||||||
CopyStyle Problem
|
CopyStyle Problem
|
||||||
LabelCounter solution
|
LabelCounter solution
|
||||||
LatexName solution
|
LatexName solution
|
||||||
LabelString "Solution \thesolution"
|
LabelString "Solution \thesolution."
|
||||||
RefPrefix sol
|
RefPrefix sol
|
||||||
LangPreamble
|
LangPreamble
|
||||||
\providecommand{\solutionname}{_(Solution)}
|
\providecommand{\solutionname}{_(Solution)}
|
||||||
@ -264,6 +264,18 @@ Style Solution
|
|||||||
End
|
End
|
||||||
|
|
||||||
|
|
||||||
|
Counter sol
|
||||||
|
Within chapter
|
||||||
|
End
|
||||||
|
Style Sol
|
||||||
|
CopyStyle Problem
|
||||||
|
LabelCounter sol
|
||||||
|
LatexName sol
|
||||||
|
LabelString "\thesol"
|
||||||
|
RequiredArgs 1
|
||||||
|
End
|
||||||
|
|
||||||
|
|
||||||
Counter exercise
|
Counter exercise
|
||||||
End
|
End
|
||||||
Style Exercise
|
Style Exercise
|
||||||
|
@ -79,17 +79,17 @@ reference "chap:intro"
|
|||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Solution
|
\begin_layout Problem
|
||||||
\begin_inset Argument
|
\begin_inset Argument
|
||||||
status open
|
status open
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
\begin_layout Plain Layout
|
||||||
probl
|
Title/Name (optional)
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
The solution
|
The problem
|
||||||
\begin_inset Index idx
|
\begin_inset Index idx
|
||||||
status collapsed
|
status collapsed
|
||||||
|
|
||||||
@ -99,7 +99,20 @@ problems
|
|||||||
|
|
||||||
\end_inset
|
\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
|
\begin_inset Index idx
|
||||||
status collapsed
|
status collapsed
|
||||||
|
|
||||||
@ -110,16 +123,6 @@ solutions
|
|||||||
\end_inset
|
\end_inset
|
||||||
|
|
||||||
is revealed here.
|
is revealed here.
|
||||||
\begin_inset Note Note
|
|
||||||
status open
|
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
|
||||||
both, the optional argument and a text is mandatory
|
|
||||||
\end_layout
|
|
||||||
|
|
||||||
\end_inset
|
|
||||||
|
|
||||||
|
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout --Separator--
|
\begin_layout --Separator--
|
||||||
@ -127,15 +130,6 @@ both, the optional argument and a text is mandatory
|
|||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
\begin_layout Solution
|
\begin_layout Solution
|
||||||
\begin_inset Argument
|
|
||||||
status open
|
|
||||||
|
|
||||||
\begin_layout Plain Layout
|
|
||||||
prob2
|
|
||||||
\end_layout
|
|
||||||
|
|
||||||
\end_inset
|
|
||||||
|
|
||||||
|
|
||||||
\series bold
|
\series bold
|
||||||
Problem Heading
|
Problem Heading
|
||||||
@ -151,5 +145,101 @@ Problem Heading
|
|||||||
(b) The solution of second part is revealed here.
|
(b) The solution of second part is revealed here.
|
||||||
\end_layout
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Subsection*
|
||||||
|
Problem with its solution
|
||||||
|
\begin_inset Note Note
|
||||||
|
status open
|
||||||
|
|
||||||
|
\begin_layout Plain Layout
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\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 Standard
|
||||||
|
Solution:
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Sol
|
||||||
|
\begin_inset Argument
|
||||||
|
status open
|
||||||
|
|
||||||
|
\begin_layout Plain Layout
|
||||||
|
prob:Area-of-Circle
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
The solution of the corresponding problem.
|
||||||
|
\begin_inset Note Note
|
||||||
|
status open
|
||||||
|
|
||||||
|
\begin_layout Plain Layout
|
||||||
|
the optional argument is the label of the corresponding problem
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
|
||||||
|
\end_layout
|
||||||
|
|
||||||
|
\begin_layout Standard
|
||||||
|
The number of the problem/solution can also be referenced in the text:
|
||||||
|
\begin_inset Quotes eld
|
||||||
|
\end_inset
|
||||||
|
|
||||||
|
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
|
\end_body
|
||||||
\end_document
|
\end_document
|
||||||
|
Loading…
Reference in New Issue
Block a user