From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66768 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Putting citations in an e-book Date: Tue, 8 Mar 2011 20:39:08 +0100 Message-ID: <0BA14828-FF08-407F-B8E4-9FD019BB0A5E@gmail.com> References: <488D7940-A71F-493E-B0EE-5A0D28BD8FE8@gmail.com> <777974AD-020D-4785-86EE-18D9682B0D25@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: multipart/mixed; boundary="===============0824215373==" X-Trace: dough.gmane.org 1299613169 32241 80.91.229.12 (8 Mar 2011 19:39:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2011 19:39:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 08 20:39:24 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Px2kd-0001C7-IE for gctc-ntg-context-518@m.gmane.org; Tue, 08 Mar 2011 20:39:23 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE2C6CAABA; Tue, 8 Mar 2011 20:39:22 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id MOps5Lqia+Yr; Tue, 8 Mar 2011 20:39:20 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2B93CAAAF; Tue, 8 Mar 2011 20:39:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A5960CAAAF for ; Tue, 8 Mar 2011 20:39:18 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id p7YZQ05vPBAE for ; Tue, 8 Mar 2011 20:39:16 +0100 (CET) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id 63352CAAAC for ; Tue, 8 Mar 2011 20:39:16 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p28JdFqt028771 for ; Tue, 8 Mar 2011 20:39:15 +0100 Original-Received: by fxm5 with SMTP id 5so7360479fxm.14 for ; Tue, 08 Mar 2011 11:39:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:mime-version:content-type:subject:date :in-reply-to:to:references:message-id:x-mailer; bh=Mhl9iRxXVEW4kMw6C/9i755HceZFofPL8irySPCGyc0=; b=dscpeCBFrqFGd7k6I5G436/btLmoJKnrU/ZTohvGFj2BGVylNEZhUztYJDQ6Uu3q/a 3/bUKeo4nHEO+lK6kkBgYOOLnkF4583rLYJ+euYdfghr9FFBNcmBLT7KbbHn67050dSM jfc8Thwj5QaCm5ikYtZLMH1vyB/QPmxthtfjw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:mime-version:content-type:subject:date:in-reply-to:to :references:message-id:x-mailer; b=IThLiW0zlUM0xYhd7Eka9Oyp1ZSsH62HV4PL8ich+FBGM/IU7Eo52+CxTE/pLHCVSs x54QcteJxooUWDLG05nts2yQQTUHIHF93HlG4l24b0/rW46L88QS32tINqWZv68cD1PN Dhivsfg5wnrO4kxIjWaIigCwQEgEE7ti0EBF4= Original-Received: by 10.223.1.76 with SMTP id 12mr6845182fae.118.1299613153355; Tue, 08 Mar 2011 11:39:13 -0800 (PST) Original-Received: from [192.168.2.23] (p5B2944B5.dip.t-dialin.net [91.41.68.181]) by mx.google.com with ESMTPS id 5sm527124fak.23.2011.03.08.11.39.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2011 11:39:11 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.1082) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 05EgHDfjX - 56f92840e89a - 20110308 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.216 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:66768 Archived-At: --===============0824215373== Content-Type: multipart/alternative; boundary=Apple-Mail-2--816598688 --Apple-Mail-2--816598688 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Am 08.03.2011 um 19:57 schrieb Cecil Westerhof: > 2011/3/8 Wolfgang Schuster > \define[2]\epigraph > {\blank > = \startframedtext[middle][frame=3Doff,offset=3Dnone,width=3Dfit,align=3Dmid= dle]% > \color[darkgreen]{#2}\endgraf > \rightaligned{\it #1}% > \stopframedtext > \blank} >=20 > I want to do something like: > \epigraph{Elbert Hubbard}{ > Many people fail in life, not for lack of ability or brains or even > courage, >=20 > but simply because they have never organized their energies around a > goal.} >=20 > Because I want to have the but on the second line, with the rest of = the text. But this gives: > Runaway argument? With the definition of \define in MkII the argument of the command can=92t= contain a paragraph, a workaround is to define the \epigraph macro with \long\def\epigraph#1#2{...} or to use MkIV. Wolfgang --Apple-Mail-2--816598688 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=windows-1252
2011/3/8 Wolfgang Schuster <schuster.wolfgang@googlem= ail.com>
\define[2]\epigraph
  {\blank
 &= nbsp; = \startframedtext[middle][frame=3Doff,offset=3Dnone,width=3Dfit,align=3Dmid= dle]%
   = \color[darkgreen]{#2}\endgraf
   \rightaligned{\it = #1}%
   \stopframedtext
   = \blank}

I want to do something = like:
\epigraph{Elbert Hubbard}{
Many people fail in life, not for = lack of ability or brains or even
courage,

but simply because they have never organized their energies around = a
goal.}

Because I want to have the but on the second line, = with the rest of the text. But this gives:
Runaway = argument?

With the definition of = \define in MkII the argument of the command can=92t contain a paragraph, = a workaround is to define the \epigraph macro = with

\long\def\epigraph#1#2{...}

or to use = MkIV.

Wolfgang


= --Apple-Mail-2--816598688-- --===============0824215373== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============0824215373==--