Commit 48761487 by wangchenglong

update.

parent 3e4a1b88
......@@ -18,6 +18,8 @@ $main = Get-Content -Raw -Encoding UTF8 "rl-introduction.tex"
$preamble = [regex]::Match($main, "(?s)^.*?\\begin\{document\}").Value
$preamble = $preamble -replace "(?m)^\\def\\bibdata#1\{\}\r?\n", ""
$preamble = $preamble -replace "(?m)^\\def\\bibstyle#1\{\}\r?\n", ""
$preamble = $preamble -replace "(?s)\\title\{.*?\}\r?\n", ""
$preamble = $preamble -replace "(?s)\\author\{\\normalfont\s*\\begin\{tabular\*\}.*?\\end\{tabular\*\}\s*\}\r?\n", ""
$introMatch = [regex]::Match(
$main,
......@@ -30,55 +32,46 @@ if (-not $introMatch.Success) {
$chapters = @(
@{
Job = "chapter-01-introduction"
Title = "Chapter 1: Introduction"
Counter = $null
Body = $introMatch.Value
},
@{
Job = "chapter-02-preliminary"
Title = "Chapter 2: Preliminary"
Counter = 1
Body = "\input{section2/section2}"
},
@{
Job = "chapter-03-understanding-rl-in-llm-training"
Title = "Chapter 3: Understanding RL in LLM Training"
Counter = 2
Body = "\input{section3/section3}"
},
@{
Job = "chapter-04-improved-rl-for-llms"
Title = "Chapter 4: Improved RL for LLMs"
Counter = 3
Body = "\input{section4/section4}"
},
@{
Job = "chapter-05-rl-for-llm-reasoning"
Title = "Chapter 5: RL for LLM Reasoning"
Counter = 4
Body = "\input{section5/section5}"
},
@{
Job = "chapter-06-agentic-rl"
Title = "Chapter 6: Agentic RL"
Counter = 5
Body = "\input{section6/section6}"
},
@{
Job = "chapter-07-multimodal-rl"
Title = "Chapter 7: Multimodal RL"
Counter = 6
Body = "\input{section7/section7}"
},
@{
Job = "chapter-08-conclusions-and-future-directions"
Title = "Chapter 8: Conclusions and Future Directions"
Counter = 7
Body = "\input{section8/section8}"
},
@{
Job = "appendix-datasets-and-systems"
Title = "Appendix: Datasets and Systems"
Counter = $null
Body = "\input{appendix/appendix}"
}
......@@ -90,13 +83,10 @@ foreach ($chapter in $chapters) {
$counterLine = "\setcounter{section}{$($chapter.Counter)}"
}
$tex = @"
$tex = @"
$preamble
\title{RL without Tears:\\ $($chapter.Title)}
\begin{CJK*}{UTF8}{gbsn}
\maketitle
$counterLine
$($chapter.Body)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论