From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66960 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Putting citations in an e-book Date: Mon, 14 Mar 2011 11:43:04 +0100 Message-ID: References: <488D7940-A71F-493E-B0EE-5A0D28BD8FE8@gmail.com> <777974AD-020D-4785-86EE-18D9682B0D25@gmail.com> <0BA14828-FF08-407F-B8E4-9FD019BB0A5E@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0537455867==" X-Trace: dough.gmane.org 1300099429 12192 80.91.229.12 (14 Mar 2011 10:43:49 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Mar 2011 10:43:49 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 14 11:43:45 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 1Pz5FW-0002qp-Tp for gctc-ntg-context-518@m.gmane.org; Mon, 14 Mar 2011 11:43:42 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 637F1CAAFF; Mon, 14 Mar 2011 11:43:42 +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 byK7uJGTS+0T; Mon, 14 Mar 2011 11:43:41 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DC599CAB03; Mon, 14 Mar 2011 11:43:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8E146CAB03 for ; Mon, 14 Mar 2011 11:43:20 +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 5a0gizhuOVtM for ; Mon, 14 Mar 2011 11:43:09 +0100 (CET) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 5BDE5CAB01 for ; Mon, 14 Mar 2011 11:43:05 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p2EAh45r000997 for ; Mon, 14 Mar 2011 11:43:04 +0100 Original-Received: by fxm18 with SMTP id 18so3662643fxm.14 for ; Mon, 14 Mar 2011 03:43:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=0xM5oqGZ9ADlW1NHVYddDK+VGrHadWpMOMnl+e2kUkE=; b=ehFrxKehY2C8AmgRJPP140uwzE17age9g1vS+2XE0rMDUHY/qzLi982VQlbq+o4RIp b27gBetDbHMg5BbrG5oJ+opHv/N0U0GgDNbzOS+RGP5gimCAvq2xgfVmKRIXJP/W9TsZ aeRUzBefAORRfiX/XSGAkYNWTEJZYVg/RlbEY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=tv3MznFtdDbOm/qpL08ZLyTVmwJsE/TP/Dh1q3oC0/XfRoA5eAUTQcbRsMVmZmuIvK ULkNKk8I+hGfx78/0lBqIhvEgozdCCSEPev7JnbIar58W0lC7CwWc1Sf8ZLEDPJ8ipWi dMxZWrvvJzcJtRK/U7ZIkm/ml5v2FK8hB/+xI= Original-Received: by 10.223.110.206 with SMTP id o14mr10453473fap.88.1300099384091; Mon, 14 Mar 2011 03:43:04 -0700 (PDT) Original-Received: by 10.223.117.75 with HTTP; Mon, 14 Mar 2011 03:43:04 -0700 (PDT) In-Reply-To: <0BA14828-FF08-407F-B8E4-9FD019BB0A5E@gmail.com> 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: 0xEiWH4xP - 18e7ef7a5da0 - 20110314 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:66960 Archived-At: --===============0537455867== Content-Type: multipart/alternative; boundary=001636c5b1b7f62491049e6ef94e --001636c5b1b7f62491049e6ef94e Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 2011/3/8 Wolfgang Schuster > 2011/3/8 Wolfgang Schuster > > \define[2]\epigraph >> {\blank >> \startframedtext[middle][frame=3Doff,offset=3Dnone,width=3Dfit,align= =3Dmiddle]% >> \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=92= t > contain a paragraph, a workaround is to define the \epigraph macro with > > \long\def\epigraph#1#2{...} > > or to use MkIV. > I am now using MKIV and the problemis solved. --=20 Cecil Westerhof --001636c5b1b7f62491049e6ef94e Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
2011/3/8 Wolfgang Schuster <= ;schuster.wolfgang@goog= lemail.com>
2011/3/8 Wolfgang Schuster <schuster.wolfgang@googlemail.com>
\define[2]\epigraph
=A0=A0{\blank
=A0=A0 \startframedtext[middle][frame=3Doff,offset=3Dnone,width=3D= fit,align=3Dmiddle]%
=A0=A0 \color[darkgreen]{#2}\endgraf
=A0=A0 \rightaligned{\it #1}%
=A0=A0 \stopframedtext
=A0=A0 \blank}

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

but simply because they have never organized their energies around agoal.}

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 \ep= igraph macro with

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

or to use MkIV.

I am n= ow using MKIV and the problemis solved.

--
Cecil Wes= terhof
--001636c5b1b7f62491049e6ef94e-- --===============0537455867== 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 ___________________________________________________________________________________ --===============0537455867==--