help-texinfo
[Top][All Lists]
Advanced

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

Re: [help-texinfo] Defining new environments?


From: Menu Jacques
Subject: Re: [help-texinfo] Defining new environments?
Date: Wed, 20 Jan 2016 22:04:07 +0100

Hello Gavin,

> Le 20 janv. 2016 à 21:52, Gavin Smith <address@hidden> a écrit :
> 
> On 20 January 2016 at 20:44, Menu Jacques <address@hidden> wrote:
>> I’m writing a doc for developpers, with soure code snippets that are not 
>> complete, such a left braces with no corresponding right brace.
>> 
> There's no way that a macro argument with unbalanced braces will work.
> I'm not quite sure what's going wrong with unbalanced braces between
> the two macro invocations, but it's not surprising that it breaks.
> 
> Have you tried using @{ and @} instead?

I didn’t know this possibility:

@{
address@hidden: ~ > ls -sal .lilydev-setup.sh 
4 -rwxr-xr-x 1 user user 1121 Dec 30 18:16 .lilydev-setup.sh
address@hidden: ~ > 
{
@}

fails too.


Also tried the following, to no avail:

@macro foo{TEXT}
@indentedblock
@verbatim
\TEXT
@end verbatim
@end indentedblock

@foo{
address@hidden: ~ > ls -sal .lilydev-setup.sh 
4 -rwxr-xr-x 1 user user 1121 Dec 30 18:16 .lilydev-setup.sh
address@hidden: ~ > 
{
}

So I guest I’ll stick to the two embedded environments I use currently.

Thanks again!

JM




reply via email to

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