Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.text > #23

including text verbatim in GNU Troff?

From Ivan Shmakov <oneingray@gmail.com>
Newsgroups comp.text, news.misc, news.software.readers
Subject including text verbatim in GNU Troff?
Followup-To comp.text
Date 2012-05-05 22:18 +0700
Organization Aioe.org NNTP Server
Message-ID <86sjfe1wrl.fsf_-_@gray.siamics.net> (permalink)
References (10 earlier) <20120502120631.67e961108e3948e99929d422@g{oogle}mail.com> <4fa12b5c$3$fuzhry+tra$mr2ice@news.patriot.net> <20120503190432.be6bc270f1de3a090a49a93c@g{oogle}mail.com> <4fa2ba57$9$fuzhry+tra$mr2ice@news.patriot.net> <20120504131053.95d007f3881e461d72ea7540@g{oogle}mail.com>

Cross-posted to 3 groups.

Followups directed to: comp.text

Show all headers | View raw


>>>>> Anton Shepelev <anton.txt@g{oogle}mail.com> writes:

	[Cross-posting to news:comp.text and dropping news:news.misc and
	news:news.software.readers from Followup-To:, for the question
	has little or no relation to the netnews technology whatsover.]

[...]

 > When quoting code in paper-oriented documents, I use an environment
 > without these mappings, like:

 > Normal text with correct apostrophes, hyphends and minuses
 > .(VERBATIM
 > My code...
 > .)VERBATIM
 > Back to normal text.

	What macro package defines this one, BTW?  All that I've found
	so far are the -mm's (as bundled with GNU Troff 1.20.1) .VERBON
	and .VERBOFF macros.

PS.  Is there a macro similar to LaTeX's \today for GNU Troff?  Or,
	actually, I'd be more interested in an ISO 8601-based version,
	akin to the following \todayiso one for LaTeX.

\newcommand \twodigits [1] {%
  \ifnum #1<10 0\fi
  \number #1}

\newcommand \todayiso {%
  \number \year-\twodigits \month-\twodigits \day}

[...]

-- 
FSF associate member #7257

Back to comp.text | Previous | NextNext in thread | Find similar


Thread

including text verbatim in GNU Troff? Ivan Shmakov <oneingray@gmail.com> - 2012-05-05 22:18 +0700
  Re: including text verbatim in GNU Troff? Anton Shepelev <anton.txt@g{oogle}mail.com> - 2012-05-10 11:20 +0400
    Re: including text verbatim in GNU Troff? Troll?_Troll <troll@troll.invalid> - 2013-03-29 05:33 +0000

csiph-web