Re: Two questons: Norwgegian characters and space when switching typeface

2019-11-06 Thread 陈贤文
Thank you so much! --Xianwen James K. Lowden writes: > On Mon, 4 Nov 2019 08:08:57 +0100 > Xianwen Chen (???) wrote: > >> (See for example, >> I. ABC >> ) >> >> Now, this will produce a space between ABC and ). Is there some way >> that I can get rid of the space there? > > If you're using the

Re: Two questons: Norwgegian characters and space when switching typeface

2019-11-06 Thread James K. Lowden
On Mon, 4 Nov 2019 08:08:57 +0100 Xianwen Chen (???) wrote: > (See for example, > I. ABC > ) > > Now, this will produce a space between ABC and ). Is there some way > that I can get rid of the space there? If you're using the ms macros, the advice provided is more complicated than necessary. T

Re: Two questons: Norwgegian characters and space when switching typeface

2019-11-05 Thread 陈贤文
Dear Mr. Corderoy, > If that distinction is unclear then reading Kernighan's CSTR 54 may help > as the tutorial at the end creates macros. https://troff.org/54.pdf > > I'd also highly recommend it as a good concise introduction to troff, > and an easy reference to keep returning to. Thank you ve

Re: Two questons: Norwgegian characters and space when switching typeface

2019-11-04 Thread Ralph Corderoy
Hi Xianwen, John wrote: > When learning to use Groff for the first time, my biggest hurdle was > figuring out where/what everything was. I went some time believing > man(7) macros were a built-in part of the language. You can liken Roff > and its macro-packages to TeX and LaTeX — the former is low

Re: Two questons: Norwgegian characters and space when switching typeface

2019-11-04 Thread John Gardner
> In *roff languages Just to clarify, Roff and TeX are similar in that their macro packages are sometimes regarded as separate languages, especially if the macros themselves are written like a DSL of sorts. mdoc(7) is a noteworthy example of this. When learning to use Groff for the first time, my

Re: Two questons: Norwgegian characters and space when switching typeface

2019-11-04 Thread John Gardner
> First question is on Norwegian characters: ø, å, and æ. It seems that > I cannot type them as plain text, because the produced PDF file gives > funny output. Files which contain Unicode characters need to be pre-processed with preconv(1). You can achieve this by running groff(1) with the `-k` sw

Re: Two questons: Norwgegian characters and space when switching typeface

2019-11-04 Thread G. Branden Robinson
At 2019-11-04T08:08:57+0100, Xianwen Chen (陈贤文) wrote: > Dear list, Hi Xianwen! > Today is my second day trying out groff. Welcome aboard! > I have over a decade experiences with LaTeX and a few years > experiences with markdown. If you're familiar with basic concepts of typesetting you should

Re: Two questons: Norwgegian characters and space when switching typeface

2019-11-04 Thread Colin Watson
On Mon, Nov 04, 2019 at 01:31:06AM -0800, Dale Snell wrote: > For the Norwegian characters, you'll need to use constructions like "\[o/]" > and "\[ae]". Alternatively, run your input file through "preconv" as the first preprocessor. -- Colin Watson [cjwat...

Re: Two questons: Norwgegian characters and space when switching typeface

2019-11-04 Thread Dale Snell
For the Norwegian characters, you'll need to use constructions like "\[o/]" and "\[ae]". Forgive me, I'm away from my computer right now, and I can't remember how to specify the "a-with-ring" character. Read the man page for groff_char(7); that has the whole list of special characters. Oh, and y

Two questons: Norwgegian characters and space when switching typeface

2019-11-03 Thread 陈贤文
Dear list, Today is my second day trying out groff. I have over a decade experiences with LaTeX and a few years experiences with markdown. I have two questions. First question is on Norwegian characters: ø, å, and æ. It seems that I cannot type them as plain text, because the produced PDF file g