From 09cb6bf384a08520b59bf58a13a350ca505bce04 Mon Sep 17 00:00:00 2001 From: wc <78423238+de-soot@users.noreply.github.com> Date: Sat, 10 May 2025 21:17:42 +0800 Subject: [PATCH 1/3] Edited groff-apa post but cannot compile due to ruby gems bundle issue --- _posts/2025-02-20-groff-apa.md | 17 +++++++++++++---- google79ff2fc0ec05eea5.html | 1 - 2 files changed, 13 insertions(+), 5 deletions(-) delete mode 100644 google79ff2fc0ec05eea5.html diff --git a/_posts/2025-02-20-groff-apa.md b/_posts/2025-02-20-groff-apa.md index 35c482d..fefd20a 100644 --- a/_posts/2025-02-20-groff-apa.md +++ b/_posts/2025-02-20-groff-apa.md @@ -110,6 +110,14 @@ The `.RP no` macro is needed for this, but it produces a cover page. Use PDF-edi 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). +## Suppress Page Headers + +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: + +``` +.ds CH +``` + # Font 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 . SH . ce . nop \&\\*[REFERENCES] -.\" sp +.\" sp 2 .\" nr PS 12 . par@reset .. @@ -249,7 +257,7 @@ Below is a list explaining each change made: - To make the heading centered, put `.ce` above where the heading is rendered (`.nop \%\\*[REFERENCES]`). - (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. -- (Optional) `.sp` adds an extra line of space below it. +- (Optional) `.sp 2` adds two extra lines of space below the heading. ## Space Between Entries @@ -395,8 +403,8 @@ This is how it looks like after some changes: .ds ref*spec!J ". " " "\fI" "\fP" .ds ref*spec!N """ "(" "" ")" .ds ref*spec!O ". " " -.ds ref*spec!P ", " " "p.\~" -.ds ref*spec!PP ", " " "pp.\~" +.ds ref*spec!P ", " " "\~" +.ds ref*spec!PP ", " " "\~" .ds ref*spec!T ". " " .ds ref*spec!T:0 ". " " .ds ref*spec!T:2 ". " " @@ -411,6 +419,7 @@ The list below details the changes: - 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. - 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. - All `\fP` in `arg 5` are moved to `arg 4` to make sure the punctuations after each field are not in bold or italics. +- 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. ### Period Suppression diff --git a/google79ff2fc0ec05eea5.html b/google79ff2fc0ec05eea5.html deleted file mode 100644 index 1d9e257..0000000 --- a/google79ff2fc0ec05eea5.html +++ /dev/null @@ -1 +0,0 @@ -google-site-verification: google79ff2fc0ec05eea5.html \ No newline at end of file From fc27c3aa90b4c1a05ba3bf28aa9624333eb2deec Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 25 Jul 2025 13:48:08 +0000 Subject: [PATCH 2/3] Bump nokogiri in the bundler group across 1 directory Bumps the bundler group with 1 update in the / directory: [nokogiri](https://github.com/sparklemotion/nokogiri). Updates `nokogiri` from 1.18.8 to 1.18.9 - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md) - [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.18.8...v1.18.9) --- updated-dependencies: - dependency-name: nokogiri dependency-version: 1.18.9 dependency-type: indirect dependency-group: bundler ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index bf672ce..3ea450c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -236,9 +236,9 @@ GEM minitest (5.25.5) net-http (0.6.0) uri - nokogiri (1.18.8-x64-mingw-ucrt) + nokogiri (1.18.9-x64-mingw-ucrt) racc (~> 1.4) - nokogiri (1.18.8-x86_64-linux-gnu) + nokogiri (1.18.9-x86_64-linux-gnu) racc (~> 1.4) octokit (4.25.1) faraday (>= 1, < 3) From 334a08266f7bb9bf61f922913dd32562e5ab197a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 17 Sep 2025 19:21:10 +0000 Subject: [PATCH 3/3] Bump rexml from 3.4.1 to 3.4.2 in the bundler group across 1 directory Bumps the bundler group with 1 update in the / directory: [rexml](https://github.com/ruby/rexml). Updates `rexml` from 3.4.1 to 3.4.2 - [Release notes](https://github.com/ruby/rexml/releases) - [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md) - [Commits](https://github.com/ruby/rexml/compare/v3.4.1...v3.4.2) --- updated-dependencies: - dependency-name: rexml dependency-version: 3.4.2 dependency-type: indirect dependency-group: bundler ... Signed-off-by: dependabot[bot] --- Gemfile.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index 3ea450c..839777b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -250,7 +250,7 @@ GEM rb-fsevent (0.11.2) rb-inotify (0.11.1) ffi (~> 1.0) - rexml (3.4.1) + rexml (3.4.2) rouge (3.30.0) rubyzip (2.4.1) safe_yaml (1.0.5)