-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix some more issues from pandoc#19 (#39)
- Loading branch information
1 parent
7818899
commit c2bc8e5
Showing
4 changed files
with
26 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,13 @@ runs: | |
's/^---$/\\newpage/g;1s/\\newpage/---/g' | ||
${{ inputs.input-md }} | ||
shell: sh | ||
# Transform sections before the table of contents into addsec, which does not number them. | ||
# While we're doing this, transform the case to all-caps. | ||
- run: > | ||
sed -i | ||
'/0/,/\\tableofcontents/s/^# \(.*\)/\\addsec\{\U\1\}/g' | ||
${{ inputs.input-md }} | ||
shell: sh | ||
# Grab the date from the front matter and generate the full date and year. | ||
- run: | | ||
DATE=$(grep date: ${{ inputs.input-md }} | head -n 1 | cut -d ' ' -f 2) | ||
|
@@ -63,7 +70,7 @@ runs: | |
--filter=pandoc-crossref | ||
--resource-path=.:/resources | ||
--data-dir=/resources | ||
--toc | ||
--top-level-division=section | ||
--variable=block-headings | ||
--variable=numbersections | ||
--variable=table-use-row-colors | ||
|
@@ -74,7 +81,6 @@ runs: | |
--metadata=logo:/resources/img/tcg.png | ||
--metadata=titlepage-rule-height:0 | ||
--metadata=colorlinks:true | ||
--metadata=toc-own-page:true | ||
--metadata=contact:[email protected] | ||
--from=markdown+implicit_figures | ||
--to=pdf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters