diff style @ 82:ff4537327162

Mayor rework: Replaced .DS with .VS, a better verbatim environment. VS is no Keep. By translating characters in the typewriter fonts, we don't need to escape the minus, backtick and single quote characters.
author markus schnalke <meillo@marmaro.de>
date Wed, 06 Jun 2012 17:58:09 +0200
parents 5fb821ed6f3c
children 99ab58dc891f
line wrap: on
line diff
--- a/style	Wed Jun 06 14:53:16 2012 +0200
+++ b/style	Wed Jun 06 17:58:09 2012 +0200
@@ -17,10 +17,10 @@
 .fp 0 CI TerminusMediumItalic-4.36 ttf
 .fp 0 CB TerminusBold-4.36 ttf
 .fp 0 L TerminusMedium-4.36 ttf
-.ftr CW -\-
-.ftr CI -\-
-.ftr CB -\-
-.ftr L -\-
+.ftr CW -\-`\`'\'
+.ftr CI -\-`\`'\'
+.ftr CB -\-`\`'\'
+.ftr L -\-`\`'\'
 .fp 0 SC LinLibertine_R otf
 .feature SC +onum +smcp
 .fp 0 IC LinLibertine_RI otf
@@ -280,6 +280,39 @@
 .ta T 8n
 ..
 
+.	\" VS - verbatim text start (\\ -> ^G; ' -> disabled; . -> ^B)
+.de VS
+.br
+.ne 4
+.sp \n(DDu
+.if t .in +.5i
+.if n .in +8n
+.nf
+.ft CW
+.\" ps -1
+.ta T 8n
+.\" set up verbatim environment
+\.blm
+\.ec 
+\.c2 ""
+\.cc 
+..
+
+.	\" VE - verbatim text end  (NOTE: Needs to be called as ^BVE !)
+.de VE
+\" restore the special characters
+cc
+.c2
+.ec
+.blm __
+.if t .in -.5i
+.if n .in -8n
+.sp \n(DDu
+.ft P
+.fi
+.TA
+..
+
 .	\" FA - XXX somehow related to footnotes?
 .am FA
 .ps 8