From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38809 Path: news.gmane.org!not-for-mail From: David Wooten Newsgroups: gmane.comp.tex.context Subject: t-lilypond, placement of oversized lines. Date: Sat, 26 Jan 2008 16:32:59 -0800 Message-ID: <0ECC01D0-0C4D-4C3D-BD4E-2A54AE94F6DC@trichotomic.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201394083 2429 80.91.229.12 (27 Jan 2008 00:34:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 27 Jan 2008 00:34:43 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jan 27 01:35:02 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1JIvUC-00010q-P2 for gctc-ntg-context-518@m.gmane.org; Sun, 27 Jan 2008 01:35:00 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 922AE1FBF9; Sun, 27 Jan 2008 01:34:33 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 04905-03-10; Sun, 27 Jan 2008 01:33:52 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 37DEB1FBCB; Sun, 27 Jan 2008 01:33:51 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C69EF1FBE8 for ; Sun, 27 Jan 2008 01:33:43 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08488-02-7 for ; Sun, 27 Jan 2008 01:33:06 +0100 (CET) Original-Received: from mail1.sea5.speakeasy.net (mail1.sea5.speakeasy.net [69.17.117.3]) by ronja.ntg.nl (Postfix) with ESMTP id D2F5B1FBB9 for ; Sun, 27 Jan 2008 01:33:03 +0100 (CET) Original-Received: (qmail 366 invoked from network); 27 Jan 2008 00:33:00 -0000 Original-Received: from camus.phaedo.com (HELO [192.168.2.48]) ([64.81.243.229]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES128-SHA encrypted SMTP for ; 27 Jan 2008 00:32:59 -0000 X-Mailer: Apple Mail (2.915) X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:38809 Archived-At: Greetings all, In tinkering around with the lilypond module, oversized lines of notation do not get adjusted into the left margin as this bit of code seems to be trying to achieve: ---> %D %D TODO: Get the relevant dimension directly from lilypond, %D to place the instrument name into the left margin for %D short snippets as well. %D If we are not in the middle of some text, we have to check %D whether lilypond created an image that is wider than requested: %D It places the instrument names in the left margin. %D \ifvmode \getfiguredimensions[\lily!filename.pdf]% \leavevmode% \newdimen\FigWidth \FigWidth=\figurewidth \ifdim\FigWidth>\localhsize \!!dimena=\localhsize \advance\!!dimena by-\FigWidth \noindent\hskip\!!dimena \fi \fi \externalfigure[\lily!img]% \egroup% }% <--- This includes lines which have an instrument name, as mentioned in the comments, and also includes piano notation, which has a special bracket on the left joining the two staffs. Can anyone help me out here? Best, David ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________