Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rtf for \three-emdash and \two-emdash

42 views
Skip to first unread message

John

unread,
Mar 19, 2009, 10:13:44 PM3/19/09
to
I'm trying to create a three emdash and a twoemdash
in rtf . Just concatenating \emdash\emdash\emdash
puts spaces between the emdashes. I need to set
continuous lines of the appropriate length.
Suggestions?

Thanks.

Thane

unread,
Mar 19, 2009, 11:40:10 PM3/19/09
to
"John" <jhy...@earthlink.net> wrote in message
news:49C2FBD8...@earthlink.net...

a) kern?
or
b) choose a font with a longer em dash?


John

unread,
Mar 20, 2009, 12:59:26 AM3/20/09
to

ok. Let's try a). As:

{\rtf1\ansi{\fonttbl\f0\fswiss Times;}\f0\pard\fs20
This is a dash - .\line
This is an endash \endash .\line
This is an emdash \emdash .\line
This is two emdashes \emdash\emdash .\line
This is a 2-emdash {\expnd-5 \emdash\emdash} .\line
This is three emdashes \emdash\emdash\emdash .\line
This is a 3-emdash {\expnd-5 \emdash\emdash\emdash} .\line
}

With a point size of 10 above, is there a better way to
pick the number in \expnd-5 other than the trial and
error I used?

Thanks.

Billsey

unread,
Mar 20, 2009, 7:07:44 AM3/20/09
to
John wrote:

Have you considered just drawing a line and then duplicating that line and
positioning the duplicates as needed?

_______________________________________________________________________________
http://www.lulu.com/billsey

Armadillo

unread,
Mar 20, 2009, 8:26:06 AM3/20/09
to

If the emdash has straight ends cant you just use \charscalex200 ?

Jukka

Andreas Prilop

unread,
Mar 20, 2009, 9:55:09 AM3/20/09
to
On Thu, 19 Mar 2009, John wrote:

> Just concatenating \emdash\emdash\emdash
> puts spaces between the emdashes.

No, it doesn't. That's just three em-dashes in sequence.
Whether these em-dashes connect, depends on the font only.
em-dash and en-dash are different in different fonts.
Some have a small white space on both sides, and some haven't.

--
Solipsists of the world - unite!

John

unread,
Mar 20, 2009, 11:44:04 AM3/20/09
to
Andreas Prilop wrote:
> On Thu, 19 Mar 2009, John wrote:
>
>> Just concatenating \emdash\emdash\emdash
>> puts spaces between the emdashes.

I really meant leaves space between...

> No, it doesn't. That's just three em-dashes in sequence.
> Whether these em-dashes connect, depends on the font only.
> em-dash and en-dash are different in different fonts.
> Some have a small white space on both sides, and some haven't.

Indeed.

John

unread,
Mar 20, 2009, 11:46:43 AM3/20/09
to jhy...@earthlink.net
> Have you considered just drawing a line and then duplicating that line and
> positioning the duplicates as needed?

I briefly tried drawing a line, but for some reason my rtf didn't
display anything. This is my first time trying to write rtf.
I learn best from complete examples that work.

John

unread,
Mar 20, 2009, 11:57:22 AM3/20/09
to

Sounds good from the manual:

\charscalexN Character scaling value. The N argument is a value
representing a percentage (the default is 100).

but if I code it like:

{\rtf1\ansi{\fonttbl\f0\fswiss Times;}\f0\pard\fs20
This is a dash - .\line
This is an endash \endash .\line
This is an emdash \emdash .\line
This is two emdashes \emdash\emdash .\line
This is a 2-emdash {\expnd-5 \emdash\emdash} .\line

This is a 2-emdash {\charscalex200\emdash} .\line


This is three emdashes \emdash\emdash\emdash .\line
This is a 3-emdash {\expnd-5 \emdash\emdash\emdash} .\line

This is a 3-emdash {\charscalex300\emdash} .\line
}

The lines using \charscalex both only display a single length
\emdash . Am I missing some code to make \charscalex work?

Thanks.

Dick Margulis

unread,
Mar 20, 2009, 12:46:28 PM3/20/09
to


Just looking at the code snippet you have above, and not looking at a
manual, it seems to me you might need a space before the "\emdash" as
you have with the expnd command.

John

unread,
Mar 20, 2009, 1:02:00 PM3/20/09
to
Dick Margulis wrote:
>> Sounds good from the manual:
>>
>> \charscalexN Character scaling value. The N argument is a value
>> representing a percentage (the default is 100).
>>
>> but if I code it like:
>>
>> {\rtf1\ansi{\fonttbl\f0\fswiss Times;}\f0\pard\fs20
>> This is a dash - .\line
>> This is an endash \endash .\line
>> This is an emdash \emdash .\line
>> This is two emdashes \emdash\emdash .\line
>> This is a 2-emdash {\expnd-5 \emdash\emdash} .\line
>> This is a 2-emdash {\charscalex200\emdash} .\line
>> This is three emdashes \emdash\emdash\emdash .\line
>> This is a 3-emdash {\expnd-5 \emdash\emdash\emdash} .\line
>> This is a 3-emdash {\charscalex300\emdash} .\line
>> }
>>
>> The lines using \charscalex both only display a single length
>> \emdash . Am I missing some code to make \charscalex work?
>>
>> Thanks.
>
>
> Just looking at the code snippet you have above, and not looking at a
> manual, it seems to me you might need a space before the "\emdash" as
> you have with the expnd command.

The above sample is what I tried after the one with the spaces
failed. It was met with the same failure. :-(

Billsey

unread,
Mar 20, 2009, 8:48:39 PM3/20/09
to
John wrote:

Wouldn't life be a whole heck of a lot easier if you just used
OpenOffice.org and drew the line, then duplicated it like I suggested
instead of trying to "write RTF" in the raw?
_______________________________________________________________________________
http://www.lulu.com/billsey

0 new messages