Skip to content

Commit e092308

Browse files
committed
move todo to separeate file and fix publish script
1 parent 0cc2160 commit e092308

File tree

3 files changed

+31
-25
lines changed

3 files changed

+31
-25
lines changed

README.md

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -89,28 +89,5 @@ Due to a bug (typst/typst#2917 typst/typst#2098) typst sometimes uses the font `
8989
To be on the safe side, double-check the embedded fonts in the pdf (there should be no `Roboto condensed`).
9090
What also works is to uninstall/deactivate all `Roboto condensed` fonts from your system.
9191

92-
9392
## Todos
94-
### Thesis Template:
95-
* [ ] some bug seems to insert an empty page at the end of the document when content (title page) appears before this second 'set page'
96-
* [ ] numbering/labeling of sub-equations (that are aligned with the other sub-equations)
97-
* [x] remove page numbers in footer before ~~and at table of contents~~
98-
* [x] fix first-level heading page is wrong
99-
* in the outline, the page of the first-level heading is sometimes the previous page of the heading. Just appears in combination with `figure_numbering_per_chapter`.
100-
* [ ] fix referencing figures respect figure numbering when using `figure_numbering_per_chapter`
101-
* [ ] first-level headings should be referenced as 'Chapter' not as 'Sections'
102-
* [ ] add pages for:
103-
* [x] abstract
104-
* [ ] list of figures, tables, ... other
105-
* [ ] list of abbreviations (glossary)
106-
* [x] references
107-
* [ ] references list: use same citation style is 'numeric' in latex
108-
* [ ] reduce vertical spacing between adjacent headings when there is no text in between (looks better, latex template also does this)
109-
* [x] add arguments for optional pages:
110-
* after title page
111-
* before outline table of contents
112-
* after outline table of contents
113-
* [ ] fix equation numbering per chapter (somehow increases in steps of 2)
114-
* [x] provide some default page margins (small, medium, large)
115-
* [ ] ~~make all font sizes relative to the main text font size (e.g. headings)~~
116-
* [ ] switch to kebab case for template, function args
93+
- [todos of thesis template](templates/tudapub/TODO.md)

scripts/publish.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@
1919
2020
/tests/
2121
/tud_design_guide/
22+
**/TODO.md
2223
2324
/templates_examples/*/logos/*
2425
!/templates_examples/*/logos/*.sh
2526
/templates_examples/*/fonts/*
2627
!/templates_examples/*/fonts/*.sh
2728
/templates_examples/*/template
29+
/templates_examples/*/*.pdf
2830
2931
/common/
3032
/assets/
@@ -159,6 +161,7 @@ def copy_template(copy_dest_dir, template_folder_name = 'tudapub'):
159161
'example_tudapub.pdf',
160162
'example_tudapub.typ',
161163
'templates/tudapub/tudapub.typ',
164+
'templates/tudapub/TODO.md',
162165
'templates/tudaexercise/template/tudaexercise.typ',
163166
'templates_examples/tudaexercise/main.typ'
164167
]
@@ -183,7 +186,8 @@ def replace(match):
183186

184187
# replace image links in readme
185188
img_tag_start = '<img src="'
186-
c = c.replace(img_tag_start, img_tag_start + repo_path)
189+
repo_path_raw = package_repository.replace('https://github.com/', 'https://raw.githubusercontent.com/') + '/refs/heads/main/'
190+
c = c.replace(img_tag_start, img_tag_start + repo_path_raw)
187191

188192
# overwrite
189193
readme.seek(0)

templates/tudapub/TODO.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
## Todos
3+
### Thesis Template:
4+
* [ ] some bug seems to insert an empty page at the end of the document when content (title page) appears before this second 'set page'
5+
* [ ] numbering/labeling of sub-equations (that are aligned with the other sub-equations)
6+
* [x] remove page numbers in footer before ~~and at table of contents~~
7+
* [x] fix first-level heading page is wrong
8+
* in the outline, the page of the first-level heading is sometimes the previous page of the heading. Just appears in combination with `figure_numbering_per_chapter`.
9+
* [ ] fix referencing figures respect figure numbering when using `figure_numbering_per_chapter`
10+
* [ ] first-level headings should be referenced as 'Chapter' not as 'Sections'
11+
* [ ] add pages for:
12+
* [x] abstract
13+
* [ ] list of figures, tables, ... other
14+
* [ ] list of abbreviations (glossary)
15+
* [x] references
16+
* [ ] references list: use same citation style is 'numeric' in latex
17+
* [ ] reduce vertical spacing between adjacent headings when there is no text in between (looks better, latex template also does this)
18+
* [x] add arguments for optional pages:
19+
* after title page
20+
* before outline table of contents
21+
* after outline table of contents
22+
* [ ] fix equation numbering per chapter (somehow increases in steps of 2)
23+
* [x] provide some default page margins (small, medium, large)
24+
* [ ] ~~make all font sizes relative to the main text font size (e.g. headings)~~
25+
* [ ] switch to kebab case for template, function args

0 commit comments

Comments
 (0)