aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2017-02-23 03:36:59 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2017-02-23 03:36:59 +0100
commitd3093f96ba48e1824b309c38e4d3504b472751d7 (patch)
tree17df636848fab118c7656bc2cb285300797e2680
parent15f64d20e59591966de976270f8595e40e612967 (diff)
downloadgpresent-fork-master.tar.gz
added TITLEFONT and SUBTITLEFONT macrosHEADmaster
-rw-r--r--groff_present.716
-rw-r--r--present.tmac14
2 files changed, 30 insertions, 0 deletions
diff --git a/groff_present.7 b/groff_present.7
index ec08624..a5374c9 100644
--- a/groff_present.7
+++ b/groff_present.7
@@ -201,6 +201,8 @@ in a big font (smaller than with
.BR TITLE )
in a color that can be specified with the macro
.BR SUBTITLECOLOR .
+.B SUBTITLEFONT
+can be used to change the font of subtitles.
.TP
.BI SUBTITLECOLOR " name"
Sets the color of subtitles to
@@ -229,11 +231,19 @@ indented with indentation
if given (default 0.5i)
.RE
.TP
+.BI SUBTITLEFONT " font"
+Sets the font of subtitles to
+.IR font .
+.br
+Default: R
+.TP
.BI TITLE " string"
Makes a title in a way that can be specified with the macro
.B TITLEFORMAT
in a big font in a color that can be specified with the macro
.BR TITLECOLOR .
+.B TITLEFONT
+can be used to change the font of titles.
.TP
.BI TITLECOLOR " name"
Sets the color of titles to
@@ -261,6 +271,12 @@ indented with indentation
.I n
if given (default 0.5i)
.RE
+.TP
+.BI TITLEFONT " font"
+Sets the font of titles to
+.IR font .
+.br
+Default: R
.SS Strings
.TP
.BI \e*[col name ]
diff --git a/present.tmac b/present.tmac
index 798c050..f14393c 100644
--- a/present.tmac
+++ b/present.tmac
@@ -458,9 +458,11 @@ ps: def
.ds gp-title
.ds gp-subtitle
.ds gp-title*format C
+.ds gp-title*font R
.nr gp-title*defindent 0.5i
.nr gp-title*indent \n[gp-title*defindent]
.ds gp-subtitle*format I
+.ds gp-subtitle*font R
.nr gp-subtitle*defindent 0.5i
.nr gp-subtitle*indent \n[gp-subtitle*defindent]
.\"usage: TITLECOLOR color
@@ -475,6 +477,10 @@ ps: def
. el .nr gp-title*indent \\n[gp-title*defindent]
.\}
..
+.\"usage: TITLEFONT font
+.de TITLEFONT
+.ds gp-title*font \\$1
+..
.\"usage: TITLE title
.de TITLE
.SP 0.25i
@@ -483,7 +489,9 @@ ps: def
.if '\\*[gp-title*format]'L' 'in 0
.if '\\*[gp-title*format]'R' 'rj 99
.if '\\*[gp-title*format]'I' 'in \\n[gp-title*indent]u
+.ft \\*[gp-title*font]
.COLOR \\*[gp-title*color] "\\$*"
+.ft
.if '\\*[gp-title*format]'C' 'ce 0
.if '\\*[gp-title*format]'L' 'in
.if '\\*[gp-title*format]'R' 'rj 0
@@ -506,6 +514,10 @@ ps: def
. el .nr gp-subtitle*indent \\n[gp-subtitle*defindent]
.\}
..
+.\"usage: SUBTITLEFONT font
+.de SUBTITLEFONT
+.ds gp-subtitle*font \\$1
+..
.\"usage: SUBTITLE title
.de SUBTITLE
.SP 0.2i
@@ -514,7 +526,9 @@ ps: def
.if '\\*[gp-subtitle*format]'L' 'in 0
.if '\\*[gp-subtitle*format]'R' 'rj 99
.if '\\*[gp-subtitle*format]'I' 'in \\n[gp-subtitle*indent]u
+.ft \\*[gp-subtitle*font]
.COLOR \\*[gp-subtitle*color] "\\$*
+.ft
.if '\\*[gp-subtitle*format]'C' 'ce 0
.if '\\*[gp-subtitle*format]'L' 'in
.if '\\*[gp-subtitle*format]'R' 'rj 0