File tree 2 files changed +5
-4
lines changed
contents/traditional-mandarin
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
- ** 找到你的道路**
1
+ # 找到你的道路
2
2
3
3
正如我們在書中所討論的,線性的書籍敘事有個顯著的缺點,就是強迫每個讀者走上單一的學習道路。雖然本書的線上版本通過大量使用超連結來避免這個問題,但實體版比較不容易為讀者導航。為了部分緩解這個問題,我們以「循環」的方式構建文本,讀者可以從各種起點開始閱讀,之後再回到「更早」的材料。
4
4
Original file line number Diff line number Diff line change 22
22
---
23
23
HEADER
24
24
25
- $all .= read_file($_ ) =~ s /& / \\ & / rg for glob (" contents/english /00-00 -*.md" );
25
+ $all .= ( read_file($_ ) =~ s /^#+ \s +(.+) / \n ** $1 ** / rg ). " \n\n " for glob (" contents/traditional-mandarin /00-0[13] -*.md" );
26
26
27
27
sub read_file {
28
28
my $filename = shift ;
@@ -70,11 +70,12 @@ sub write_file {
70
70
71
71
write_file(
72
72
'00-01.tex', (
73
- map { read_file($_ ) =~ s/\*\* (.*?)\*\* /\\ textbf{$1 }/rg }
74
- glob 'contents/traditional-mandarin/00-01 -*.md'
73
+ map { read_file($_ ) =~ s/\*\* (.*?)\*\* /\\ textbf{$1 }/rg =~ s/^#+ \s +(.+)/ \\ textbf{ $1 }/rg =~ s/&/ \\ &/rg }
74
+ glob 'contents/traditional-mandarin/00-02 -*.md'
75
75
)
76
76
);
77
77
78
+
78
79
print " Generating PDF (this may take a while )...\n" ;
79
80
80
81
# Pre-running twice to generate emoji PDFs
You can’t perform that action at this time.
0 commit comments