Re: .CW usage by a new user

2024-09-05 Thread Tadziu Hoffmann
> I am translating to Spanish the book "Introduction to the command line" > Attached is an image showing that I made it. In your case you are intending those double quotes to directly become characters in the output (as opposed to them being used internally as delimiters for macro arguments). I

Re: .CW usage by a new user

2024-09-05 Thread Russ Allbery
"isf (Jordán)" writes: > Thanks, but what if I want do something like this: > .CW "$ echo "foobar"" > Because the output is something like this: > bar"$ echo foo > When I want something like this in the PDF. > $ echo "foobar" It may help to go through this step by step, or at least

Re: .CW usage by a new user

2024-09-05 Thread Jordán
En 5/9/2024 12:17, Russ Allbery escribió: > You need three quotes, not two. Semantically, the whole macro argument is > enclosed in double quotes, and then the double quotes within that > double-quoted string have to be escaped, which *roff does by doubling > them. So: > > .CW """$ echo foob

Re: .CW usage by a new user

2024-09-05 Thread Russ Allbery
"isf (Jordán)" writes: > Thats literally what Im trying and the output is something like this: > Input: > .CW ""$ echo foobar"" > Ouput: > echo$ You need three quotes, not two. Semantically, the whole macro argument is enclosed in double quotes, and then the double quotes within that doub

Re: .CW usage by a new user

2024-09-05 Thread Jordán
En 5/9/2024 07:44, Lennart Jablonka escribió: > The most direct way to pass ASCII double quotes as arguments is to > quote the argument and double the quotes to pass. > > .CW """test""" > > But I guess that could be problematic if the macro passes the > argument on to another macro. Thats lite

Re: .CW usage by a new user

2024-09-05 Thread Damian McGuckin
On Thu, 5 Sep 2024, Tadziu Hoffmann wrote: .CW "this phrase is spicy with \[lq]Courier\[rq] powder" . Also, within a double-quoted request or macro argument, you can use a double double-quote to get a single double-quote in the argument: .CW "| ` ' \[aq] \[lq] \[rq] \[dq] "" |" but you'll o

Re: .CW usage by a new user

2024-09-05 Thread Tadziu Hoffmann
> .CW "this phrase is spicy with \[lq]Courier\[rq] powder" . Also, within a double-quoted request or macro argument, you can use a double double-quote to get a single double-quote in the argument: .CW "| ` ' \[aq] \[lq] \[rq] \[dq] "" |" but you'll only need this if you're typesetting comput

Re: .CW usage by a new user

2024-09-05 Thread Lennart Jablonka
>I am using the MS macro in groff and with the .CW I saw that I could not >add a phrase with quotes, well I could write .CW “test” but I can't do >something like: .CW “”test“” what should I do so that the quotes can be >seen with .CW? The most direct way to pass ASCII double quotes as arguments is

Re: .CW usage by a new user

2024-09-05 Thread G. Branden Robinson
[self-follow-up] At 2024-09-05T02:34:54-0500, G. Branden Robinson wrote: > Hi Jordán, Whoops, I was doofus and...left out the quotation marks. See if you like this better. $ nroff -ms < signature.asc Description: PGP signature

Re: .CW usage by a new user

2024-09-05 Thread G. Branden Robinson
Hi Jordán, At 2024-09-04T21:46:28-0400, isf (Jordán) wrote: > I am using the MS macro in groff and with the .CW I saw that I could > not add a phrase with quotes, well I could write .CW “test” but I > can't do something like: .CW “”test“” what should I do so that the > quotes can be seen with .CW?

.CW usage by a new user

2024-09-04 Thread Jordán
Greetings and good afternoon, I am using the MS macro in groff and with the .CW I saw that I could not add a phrase with quotes, well I could write .CW “test” but I can't do something like: .CW “”test“” what should I do so that the quotes can be seen with .CW? Thank you very much for reading. --