Received: from mx0.gmx.net (mx0.gmx.net [213.165.64.100]) by h1439878.stratoserver.net (8.14.2/8.14.2/Debian-2build1) with SMTP id q73CQ0wX010166 for ; Fri, 3 Aug 2012 14:26:02 +0200 Received: (qmail 8457 invoked by alias); 3 Aug 2012 12:25:55 -0000 Delivered-To: GMX delivery to rainer.schoepf@gmx.net Received: (qmail invoked by alias); 03 Aug 2012 12:25:55 -0000 Received: from relay.uni-heidelberg.de (EHLO relay.uni-heidelberg.de) [129.206.100.212] by mx0.gmx.net (mx029) with SMTP; 03 Aug 2012 14:25:55 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [129.206.100.94]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id q73CNpK7020558 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Aug 2012 14:23:51 +0200 Received: from listserv.uni-heidelberg.de (listserv.uni-heidelberg.de [127.0.0.1]) by listserv.uni-heidelberg.de (8.13.8/8.13.1) with ESMTP id q73CEMDv008220; Fri, 3 Aug 2012 14:23:51 +0200 Received: by LISTSERV.UNI-HEIDELBERG.DE (LISTSERV-TCP/IP release 16.0) with spool id 2487918 for LATEX-L@LISTSERV.UNI-HEIDELBERG.DE; Fri, 3 Aug 2012 14:23:51 +0200 Received: from relay2.uni-heidelberg.de (relay2.uni-heidelberg.de [129.206.210.211]) by listserv.uni-heidelberg.de (8.13.8/8.13.1) with ESMTP id q73CNp7E023680 for ; Fri, 3 Aug 2012 14:23:51 +0200 Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by relay2.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id q73CNk2Q007959 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for ; Fri, 3 Aug 2012 14:23:50 +0200 Received: by vbbfo1 with SMTP id fo1so842182vbb.22 for ; Fri, 03 Aug 2012 05:23:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.23.136 with SMTP id m8mr1010773vdf.28.1343996626460; Fri, 03 Aug 2012 05:23:46 -0700 (PDT) Received: by 10.220.149.2 with HTTP; Fri, 3 Aug 2012 05:23:44 -0700 (PDT) References: <501AA3AA.5000400@gmail.com> <501AA936.9050205@morningstar2.co.uk> Content-Type: text/plain; charset=ISO-8859-1 X-Spam-Whitelist: Message-ID: Date: Fri, 3 Aug 2012 14:23:44 +0200 Reply-To: Mailing list for the LaTeX3 project Sender: Mailing list for the LaTeX3 project From: Bruno Le Floch Subject: Re: l3doc bug in syntax sections To: LATEX-L@listserv.uni-heidelberg.de In-Reply-To: Precedence: list List-Help: , List-Unsubscribe: List-Subscribe: List-Owner: List-Archive: X-GMX-Antispam: 0 (BackTrace mail analyze); Detail=5D7Q89H36p4L00VTXC6D4q0N+AH0PUCnGL2vqOgpaBYL16oitsMrgDt/NQNpSCZFFjDOy 97xb7Zpf+wZnd5ZXNcvLDXR3Wg3wRjdQbwEMh8=V1; X-Resent-By: Forwarder X-Resent-For: rainer.schoepf@gmx.net X-Resent-To: rainer@rainer-schoepf.de Status: R X-Status: X-Keywords: X-UID: 7097 > The result is the same; there's an unsightly large gap between the > stuff on the first line before the comment marker (whether % or ^^A) > and what's on the following line. [I'd actually noticed this first in > a .dtx file, but used normal LaTeX syntax here for ease of > illustration.] Sorry, I shamefully hadn't compiled your MWE. Here are three ways to go: - Use the primitive \ignorespaces (in the syntax environment, active spaces expand to normal spaces IIRC), and comment out the end-of-lines. - Comment the end-of-line and start the next line directly at column 0. - Split the arguments in the output, since they don't fit in a line anyways. \begin{syntax} \cs{some_function_with_a_very_long_name:nnnnn} \ignorespaces % \Arg{first argument} \Arg{second argument} \ignorespaces % \Arg{third argument} \Arg{fourth argument} \Arg{fifth argument} \cs{some_function_with_a_very_long_name:nnnnn} % \Arg{first argument} \Arg{second argument} \Arg{third argument} % \Arg{fourth argument} \Arg{fifth argument} \cs{some_function_with_a_very_long_name:nnnnn} ~~\Arg{first argument} \Arg{second argument} \Arg{third argument} ~~\Arg{fourth argument} \Arg{fifth argument} \end{syntax} Admittedly, none of the three "solutions" is great. As Joseph notes, we've gone for a single line in the l3 source. We could perhaps add \def\^^M{\unskip\space\ignorespaces} to the \begin{syntax} setup: this would allow \cs{some_function_with_a_very_long_name:nnnnn} \ \Arg{first argument} \Arg{second argument} \ \Arg{third argument} \Arg{fourth argument} \ \Arg{fifth argument} Regards, Bruno