> 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
"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
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
"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
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
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
> .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
>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
[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
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?
10 matches
Mail list logo