groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Using groff & tbl for creating a CV


From: Chris Schaller
Subject: Re: [Groff] Using groff & tbl for creating a CV
Date: Wed, 10 Aug 2011 22:07:18 +0200

Gosh, you are right!  I usually try to avoid custom macros and reuse
existing stuff.  But with your version the text looks cleaner (no
column separators or T{ and T}).

Am I right that I can also create line breaks for the Date macro by
temporarily changing the line length?  So that in this example

.\" ----------------------------------------------------------------
.Date
07/2003\[en]04/2006 (at least I think so)
.Company
Yet Another Company I Worked For
.\" ----------------------------------------------------------------

the date will be broken along two (or maybe more) lines, but the
.Company will start with the first line of the date.

Is it good roff practice to use only one macro set (here: only the cv
macros)?  I like the idea of 'including' my favourite macro set for
general type setting and additionaly including the specialised one
(groff -ms -mcv for example).

- Chris

On Wed, Aug 10, 2011 at 6:55 PM, Tadziu Hoffmann
<address@hidden> wrote:
>
>> Nevertheless, for a CV I think a few custom macros would
>> probably be better than using tbl.
>
> I've played around a bit, and this is what I hacked together
> based on your CV design using tbl:
>
>
> .\"
> .\" ----------------------------------------------------------------
> .sp 3c
> .ll 15c
> .po 3c
> .nr In 3c
> .\" ----------------------------------------------------------------
> .de Date
> .sp 2
> .in 0
> .ft 2
> ..
> .de Company
> 'in \\n(Inu
> \h'\\n(Inu-\\n(.ku'\c
> .ft 3
> .ad l
> ..
> .de Desc
> .br
> \v'-.5m'\h'-\\n(.iu'\D'l \\n(.lu 0'
> .ft 1
> .ad b
> ..
> .de BL
> .in +2n
> ..
> .de LE
> .sp .2
> .in -2n
> ..
> .de LI
> .sp .2
> \Z'\h'-1.3n'\[bu]'\c
> ..
> .\" ----------------------------------------------------------------
> .Date
> Since 05/2006
> .Company
> My Company in Downtown which has a very long name
> and needs at least two lines to print (just for fun)
> .Desc
> This is the role I occupied
> .BL
> .LI
> Working on this
> .LI
> Working on that
> (the description of which is also rather long, so we can test
> what happens when it needs more than one line)
> .LI
> Achieved lots of things
> .LE
> But now, this is going to be a rather lengthy description of a task
> that I had which is so long that groff is complaining about the length
> of the line
> .Date
> 07/2003\[en]04/2006
> .Company
> Yet Another Company I Worked For
> .Desc
> The role I had there
> .BL
> .LI
> Some more tasks
> .LI
> You will get the idea
> .LE
> .\" ----------------------------------------------------------------
>
>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]