Skip to content

Commit 09cb6bf

Browse files
committed
Edited groff-apa post but cannot compile due to ruby gems bundle issue
1 parent d5488ae commit 09cb6bf

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

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

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ The `.RP no` macro is needed for this, but it produces a cover page. Use PDF-edi
110110

111111
which works because even though the title (`.TL`) is required, it stops at the abstract (`.AB`, which ends at `.AE`; the `no` argument suppresses the "Abstract" heading).
112112

113+
## Suppress Page Headers <a name=suppressheader></a>
114+
115+
If instead you want to **not** have any page headers (including page numbering) for reasons such as plagerism report checkers potentially producing errors, disabling automatic page numbering is as easy as defining the central header to be empty:
116+
117+
```
118+
.ds CH
119+
```
120+
113121
# Font <a name=font></a>
114122

115123
Many lecturers demand assignments to be submitted in double-spaced Times New Roman in 12 point size. This section covers how to change the font family, size, style, and line spacing.
@@ -239,7 +247,7 @@ And this is what it will look like fixing the issues (lines that are commented o
239247
. SH
240248
. ce
241249
. nop \&\\*[REFERENCES]
242-
.\" sp
250+
.\" sp 2
243251
.\" nr PS 12
244252
. par@reset
245253
..
@@ -249,7 +257,7 @@ Below is a list explaining each change made:
249257

250258
- To make the heading centered, put `.ce` above where the heading is rendered (`.nop \%\\*[REFERENCES]`).
251259
- (Optional) `.nr PS 14` above it increases the font size to 14pt, just remember to reset it back to normal (12pt) with `.nr PS 12` after.
252-
- (Optional) `.sp` adds an extra line of space below it.
260+
- (Optional) `.sp 2` adds two extra lines of space below the heading.
253261

254262
## Space Between Entries <a name=spacebetweenentries></a>
255263

@@ -395,8 +403,8 @@ This is how it looks like after some changes:
395403
.ds ref*spec!J ". " " "\fI" "\fP"
396404
.ds ref*spec!N """ "(" "" ")"
397405
.ds ref*spec!O ". " "
398-
.ds ref*spec!P ", " " "p.\~"
399-
.ds ref*spec!PP ", " " "pp.\~"
406+
.ds ref*spec!P ", " " "\~"
407+
.ds ref*spec!PP ", " " "\~"
400408
.ds ref*spec!T ". " "
401409
.ds ref*spec!T:0 ". " "
402410
.ds ref*spec!T:2 ". " "
@@ -411,6 +419,7 @@ The list below details the changes:
411419
- In both the `.ds ref*spec!T:0` and `.ds ref*spec!T:2` rows, `\fI` in `arg 3` and `\fP` in `arg 5` are removed to not italicise the text and because of redundancy (`\fP` resets font style back to the previous style), respectively.
412420
- In the `.ds ref*spec!V` row, its `arg 1` is changed from empty (`""`) to a comma (`,`) to add a comma after the journal/periodical field; its `arg 3` is changed from bold-ing (`\fI`) to italicising (`\fB`) the text.
413421
- All `\fP` in `arg 5` are moved to `arg 4` to make sure the punctuations after each field are not in bold or italics.
422+
- When numbering pages, APA does not denote with `p.` for single pages or `pp.` for page ranges, so they were removed in their respective rows.
414423

415424
### Period Suppression <a name=periodsuppression></a>
416425

google79ff2fc0ec05eea5.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)