Skip to content

Commit 6ad0580

Browse files
committed
Numbered Table of Contents and added conclusion to TOC
1 parent dcc177f commit 6ad0580

File tree

3 files changed

+66
-67
lines changed

3 files changed

+66
-67
lines changed

_posts/2025-02-20-groff-apa.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,40 @@ permalink: /groff-apa
88

99
# Table of Contents <a name=tableofcontents></a>
1010

11-
[Preface](/groff-apa#preface)
11+
1. [Table of Contents](/groff-apa#tableofcontents)
1212

13-
[Introduction](/groff-apa#introduction)
13+
2. [Preface](/groff-apa#preface)
1414

15-
[Prerequisites](/groff-apa#prerequisites)
15+
3. [Introduction](/groff-apa#introduction)
1616

17-
[Cover Page](/groff-apa#coverpage)
17+
4. [Prerequisites](/groff-apa#prerequisites)
1818

19-
[Page Numbering](/groff-apa#pagenumbering)
19+
5. [Cover Page](/groff-apa#coverpage)
2020

21-
[Font](/groff-apa#font)
21+
6. [Page Numbering](/groff-apa#pagenumbering)
22+
23+
7. [Font](/groff-apa#font)
2224
- [Font Family](/groff-apa#fontfamily)
2325
- [Default Fonts](/groff-apa#defaultfonts)
2426
- [Custom Fonts](/groff-apa#customfonts)
2527
- [Font Size](/groff-apa#fontsize)
2628
- [Line Spacing](/groff-apa#linespacing)
2729
- [Font Style](/groff-apa#fontstyle)
2830

29-
[In-text Citation](/groff-apa#intextcitation)
31+
8. [In-text Citation](/groff-apa#intextcitation)
3032
- [Parenthetical Citation](/groff-apa#parentheticalcitation)
3133
- [Narrative Citation](/groff-apa#narrativecitation)
3234

33-
[Reference List](/groff-apa#referencelist)
35+
9. [Reference List](/groff-apa#referencelist)
3436
- [Formatting the Heading](/groff-apa#formattingtheheading)
3537
- [Space Between Entries](/groff-apa#spacebetweenentries)
3638
- [Field Ordering](/groff-apa#fieldordering)
3739
- [Punctuation](/groff-apa#punctuation)
3840
- [Period Suppression](/groff-apa#periodsuppression)
3941

40-
[Exporting as PDF](/groff-apa#exportingaspdf)
42+
10. [Exporting as PDF](/groff-apa#exportingaspdf)
43+
44+
11. [Conclusion](/groff-apa#conclusion)
4145

4246
# Preface <a name=preface></a>
4347

@@ -451,7 +455,7 @@ Below is a list explaining what each of the optional arguments mean:
451455
- `-R` selects refer macros.
452456
- (Optional) `-dpaper=a4` and `-P-pa4` exports the paper to the international-standard A4 size instead of the default US letter.
453457

454-
# Conclusion
458+
# Conclusion <a name=conclusion></a>
455459

456460
If you found this helpful in any way or have any questions, feel free to leave a comment below.
457461

_site/README.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,3 @@ bundle exec jekyll serve
3131
7) Profit!
3232

3333
Refer to the [official Jekyll documentation](https://jekyllrb.com/docs) for more information regarding installing and running Jekyll.
34-
35-
### Write a Blog Post
36-
37-
1. Create a markdown (`.md`) file inside `/_posts` with this at the top of the document:
38-
39-
```md
40-
---
41-
layout: post
42-
title:
43-
date: YYYY-MM-DD
44-
categories:
45-
permalink: /...
46-
---
47-
```
48-
49-
2. Write the title of the post after `title:`.
50-
3. Replace `YYYY`, `MM`, and `DD` with the year, month, and day the post is published, respectively.
51-
4. Add any keywords related to the topic of your post after `categories:` separated by commas.
52-
5. Replace the `...` after `permalink:` with the custom path given to the blog post.

_site/feed.xml

Lines changed: 52 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,60 @@
1-
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2025-02-07T23:02:52+08:00</updated><id>http://localhost:4000/feed.xml</id><title type="html">de_soot</title><subtitle>hosted on github pages</subtitle><entry><title type="html">Guide to APA with groff ms and refer</title><link href="http://localhost:4000/groff-apa" rel="alternate" type="text/html" title="Guide to APA with groff ms and refer" /><published>2025-02-07T00:00:00+08:00</published><updated>2025-02-07T00:00:00+08:00</updated><id>http://localhost:4000/groff-apa</id><content type="html" xml:base="http://localhost:4000/groff-apa"><![CDATA[<h1 id="table-of-contents-">Table of Contents <a name="tableofcontents"></a></h1>
1+
<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="http://localhost:4000/feed.xml" rel="self" type="application/atom+xml" /><link href="http://localhost:4000/" rel="alternate" type="text/html" /><updated>2025-02-08T12:55:36+08:00</updated><id>http://localhost:4000/feed.xml</id><title type="html">de_soot</title><subtitle>hosted on github pages</subtitle><entry><title type="html">Guide to APA with groff ms and refer</title><link href="http://localhost:4000/groff-apa" rel="alternate" type="text/html" title="Guide to APA with groff ms and refer" /><published>2025-02-07T00:00:00+08:00</published><updated>2025-02-07T00:00:00+08:00</updated><id>http://localhost:4000/groff-apa</id><content type="html" xml:base="http://localhost:4000/groff-apa"><![CDATA[<h1 id="table-of-contents-">Table of Contents <a name="tableofcontents"></a></h1>
22
3-
<p><a href="/groff-apa#preface">Preface</a></p>
4-
5-
<p><a href="/groff-apa#introduction">Introduction</a></p>
6-
7-
<p><a href="/groff-apa#prerequisites">Prerequisites</a></p>
8-
9-
<p><a href="/groff-apa#coverpage">Cover Page</a></p>
10-
11-
<p><a href="/groff-apa#pagenumbering">Page Numbering</a></p>
12-
13-
<p><a href="/groff-apa#font">Font</a></p>
14-
<ul>
15-
<li><a href="/groff-apa#fontfamily">Font Family</a>
3+
<ol>
4+
<li>
5+
<p><a href="/groff-apa#tableofcontents">Table of Contents</a></p>
6+
</li>
7+
<li>
8+
<p><a href="/groff-apa#preface">Preface</a></p>
9+
</li>
10+
<li>
11+
<p><a href="/groff-apa#introduction">Introduction</a></p>
12+
</li>
13+
<li>
14+
<p><a href="/groff-apa#prerequisites">Prerequisites</a></p>
15+
</li>
16+
<li>
17+
<p><a href="/groff-apa#coverpage">Cover Page</a></p>
18+
</li>
19+
<li>
20+
<p><a href="/groff-apa#pagenumbering">Page Numbering</a></p>
21+
</li>
22+
<li><a href="/groff-apa#font">Font</a>
1623
<ul>
17-
<li><a href="/groff-apa#defaultfonts">Default Fonts</a></li>
18-
<li><a href="/groff-apa#customfonts">Custom Fonts</a></li>
24+
<li><a href="/groff-apa#fontfamily">Font Family</a>
25+
<ul>
26+
<li><a href="/groff-apa#defaultfonts">Default Fonts</a></li>
27+
<li><a href="/groff-apa#customfonts">Custom Fonts</a></li>
28+
</ul>
29+
</li>
30+
<li><a href="/groff-apa#fontsize">Font Size</a></li>
31+
<li><a href="/groff-apa#linespacing">Line Spacing</a></li>
32+
<li><a href="/groff-apa#fontstyle">Font Style</a></li>
1933
</ul>
2034
</li>
21-
<li><a href="/groff-apa#fontsize">Font Size</a></li>
22-
<li><a href="/groff-apa#linespacing">Line Spacing</a></li>
23-
<li><a href="/groff-apa#fontstyle">Font Style</a></li>
24-
</ul>
25-
26-
<p><a href="/groff-apa#intextcitation">In-text Citation</a></p>
27-
<ul>
28-
<li><a href="/groff-apa#parentheticalcitation">Parenthetical Citation</a></li>
29-
<li><a href="/groff-apa#narrativecitation">Narrative Citation</a></li>
30-
</ul>
31-
32-
<p><a href="/groff-apa#referencelist">Reference List</a></p>
33-
<ul>
34-
<li><a href="/groff-apa#formattingtheheading">Formatting the Heading</a></li>
35-
<li><a href="/groff-apa#spacebetweenentries">Space Between Entries</a></li>
36-
<li><a href="/groff-apa#fieldordering">Field Ordering</a></li>
37-
<li><a href="/groff-apa#punctuation">Punctuation</a>
35+
<li><a href="/groff-apa#intextcitation">In-text Citation</a>
3836
<ul>
39-
<li><a href="/groff-apa#periodsuppression">Period Suppression</a></li>
37+
<li><a href="/groff-apa#parentheticalcitation">Parenthetical Citation</a></li>
38+
<li><a href="/groff-apa#narrativecitation">Narrative Citation</a></li>
4039
</ul>
4140
</li>
42-
</ul>
43-
44-
<p><a href="/groff-apa#exportingaspdf">Exporting as PDF</a></p>
41+
<li><a href="/groff-apa#referencelist">Reference List</a>
42+
<ul>
43+
<li><a href="/groff-apa#formattingtheheading">Formatting the Heading</a></li>
44+
<li><a href="/groff-apa#spacebetweenentries">Space Between Entries</a></li>
45+
<li><a href="/groff-apa#fieldordering">Field Ordering</a></li>
46+
<li><a href="/groff-apa#punctuation">Punctuation</a>
47+
<ul>
48+
<li><a href="/groff-apa#periodsuppression">Period Suppression</a></li>
49+
</ul>
50+
</li>
51+
</ul>
52+
</li>
53+
<li>
54+
<p><a href="/groff-apa#exportingaspdf">Exporting as PDF</a></p>
55+
</li>
56+
<li><a href="/groff-apa#conclusion">Conclusion</a></li>
57+
</ol>
4558
4659
<h1 id="preface-">Preface <a name="preface"></a></h1>
4760
@@ -189,6 +202,7 @@ sort A+ # Sorts References in alphabetical order
189202
label "(A1?(A1.n(A3?' et al.':A2&amp;' &amp; 'A2.n)):Q)', '(D.y|D)" # "Author(s), Date" format for parenthetical citation (joins author names using '&amp;' if 2 authors; appends 'et. al.' if 3 or more)
190203
bracket-label " (" ) "; " # (same as `-S` argument for refer)
191204
no-label-in-reference # Do not display (Author(s), Date) like footnotes in reference list
205+
join-authors " &amp; " ", " " &amp; " # Change default "and" to ampersand (&amp;) when joining author names in reference entry
192206
.R2 \" Refer block end
193207
</code></pre></div></div>
194208
@@ -412,7 +426,7 @@ no-label-in-reference # Do not display (Author(s), Date) like footnotes in refer
412426
<li>(Optional) <code class="language-plaintext highlighter-rouge">-dpaper=a4</code> and <code class="language-plaintext highlighter-rouge">-P-pa4</code> exports the paper to the international-standard A4 size instead of the default US letter.</li>
413427
</ul>
414428
415-
<h1 id="conclusion">Conclusion</h1>
429+
<h1 id="conclusion-">Conclusion <a name="conclusion"></a></h1>
416430
417431
<p>If you found this helpful in any way or have any questions, feel free to leave a comment below.</p>
418432

0 commit comments

Comments
 (0)