Skip to content

Commit 2a41ae6

Browse files
committed
Updated RJournal.sty for better page breaks
1 parent 83f0389 commit 2a41ae6

File tree

5 files changed

+35
-5
lines changed

5 files changed

+35
-5
lines changed

inst/paper-with-errors/RJournal.sty

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
% should be specified in RJwrapper.tex
1313

1414
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
15-
\ProvidesPackage{RJournal}[2025/07/15 v0.16 RJournal package]
15+
\ProvidesPackage{RJournal}[2025/10/05 v0.17 RJournal package]
1616

1717
\RequirePackage{tikz}
1818

@@ -28,6 +28,12 @@
2828
footskip=1.5cm}
2929
\raggedbottom
3030
\sloppy
31+
\clubpenalty = 10000
32+
\widowpenalty = 10000
33+
\brokenpenalty = 10000
34+
\allowdisplaybreaks
35+
\usepackage{microtype}
36+
3137

3238
\RequirePackage{fancyhdr}
3339
\fancyhead{}

inst/rmarkdown/templates/rjournal/skeleton/RJournal.sty

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
% should be specified in RJwrapper.tex
1313

1414
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
15-
\ProvidesPackage{RJournal}[2025/07/15 v0.16 RJournal package]
15+
\ProvidesPackage{RJournal}[2025/10/05 v0.17 RJournal package]
1616

1717
\RequirePackage{tikz}
1818

@@ -28,6 +28,12 @@
2828
footskip=1.5cm}
2929
\raggedbottom
3030
\sloppy
31+
\clubpenalty = 10000
32+
\widowpenalty = 10000
33+
\brokenpenalty = 10000
34+
\allowdisplaybreaks
35+
\usepackage{microtype}
36+
3137

3238
\RequirePackage{fancyhdr}
3339
\fancyhead{}

inst/sample-article/RJournal.sty

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
% should be specified in RJwrapper.tex
1313

1414
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
15-
\ProvidesPackage{RJournal}[2025/07/15 v0.16 RJournal package]
15+
\ProvidesPackage{RJournal}[2025/10/05 v0.17 RJournal package]
1616

1717
\RequirePackage{tikz}
1818

@@ -28,6 +28,12 @@
2828
footskip=1.5cm}
2929
\raggedbottom
3030
\sloppy
31+
\clubpenalty = 10000
32+
\widowpenalty = 10000
33+
\brokenpenalty = 10000
34+
\allowdisplaybreaks
35+
\usepackage{microtype}
36+
3137

3238
\RequirePackage{fancyhdr}
3339
\fancyhead{}

inst/tex/RJournal.sty

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
% should be specified in RJwrapper.tex
1313

1414
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
15-
\ProvidesPackage{RJournal}[2025/07/15 v0.16 RJournal package]
15+
\ProvidesPackage{RJournal}[2025/10/05 v0.17 RJournal package]
1616

1717
\RequirePackage{tikz}
1818

@@ -28,6 +28,12 @@
2828
footskip=1.5cm}
2929
\raggedbottom
3030
\sloppy
31+
\clubpenalty = 10000
32+
\widowpenalty = 10000
33+
\brokenpenalty = 10000
34+
\allowdisplaybreaks
35+
\usepackage{microtype}
36+
3137

3238
\RequirePackage{fancyhdr}
3339
\fancyhead{}

tests/bad-article/RJournal.sty

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
% should be specified in RJwrapper.tex
1313

1414
\NeedsTeXFormat{LaTeX2e}[1995/12/01]
15-
\ProvidesPackage{RJournal}[2025/07/15 v0.16 RJournal package]
15+
\ProvidesPackage{RJournal}[2025/10/05 v0.17 RJournal package]
1616

1717
\RequirePackage{tikz}
1818

@@ -28,6 +28,12 @@
2828
footskip=1.5cm}
2929
\raggedbottom
3030
\sloppy
31+
\clubpenalty = 10000
32+
\widowpenalty = 10000
33+
\brokenpenalty = 10000
34+
\allowdisplaybreaks
35+
\usepackage{microtype}
36+
3137

3238
\RequirePackage{fancyhdr}
3339
\fancyhead{}

0 commit comments

Comments
 (0)