From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/66761 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Putting citations in an e-book Date: Tue, 8 Mar 2011 17:08:16 +0100 Message-ID: References: <488D7940-A71F-493E-B0EE-5A0D28BD8FE8@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0048164544==" X-Trace: dough.gmane.org 1299601475 24793 80.91.229.12 (8 Mar 2011 16:24:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 8 Mar 2011 16:24:35 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 08 17:24:26 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 1Pwzhx-0005zr-Cg for gctc-ntg-context-518@m.gmane.org; Tue, 08 Mar 2011 17:24:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A9945CAABF; Tue, 8 Mar 2011 17:24:24 +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 KuKBcS67mn8r; Tue, 8 Mar 2011 17:24:20 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B71DFCAAAF; Tue, 8 Mar 2011 17:24:20 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7399CCAAAF for ; Tue, 8 Mar 2011 17:24:19 +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 HOVQDsmDH1YG for ; Tue, 8 Mar 2011 17:24:07 +0100 (CET) Original-Received: from filter5-ams.mf.surf.net (filter5-ams.mf.surf.net [192.87.102.73]) by balder.ntg.nl (Postfix) with ESMTP id C06DDCAAAC for ; Tue, 8 Mar 2011 17:24:07 +0100 (CET) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter5-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p28GO6Mw012670 for ; Tue, 8 Mar 2011 17:24:07 +0100 Original-Received: by fxm5 with SMTP id 5so7094363fxm.14 for ; Tue, 08 Mar 2011 08:24:06 -0800 (PST) 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=XaQ2w5j4xVt1FPyd4YbxoH16kmZxeGZpL82uK8+IS9w=; b=fDQYwtzosUZbRg0v1RSw5YkyqTFachQb6NNmSWwumg1Mm1V0GU/4wSpnPSirkAGBbU PYhGmtRjT3v4b15A0GHfOLVrVI+paykSUUBh+Fx2V+P6cdtqMz5ZuF8VZP+hfofMKVgt f4FW3Sk7RM4FLYQ2TqpbV5kZMV47UoGQNfXWI= 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=nWKlSbBD8wu1Mz44OcU3Jfwlvj2SHf9CqI9QvFGO6BTDJ2JtlZMi827txEpC9upq+C mSgX3EtdiniRizycDicMecL5iw8nYiLPBqXtPfnCVMcqwgE5M/pjMVbQFs9FNy/hB0Aw yHR3AefDo4g9H+hz+nwgwyq8PGS+BfebGN59o= Original-Received: by 10.223.6.198 with SMTP id a6mr3163624faa.126.1299600496731; Tue, 08 Mar 2011 08:08:16 -0800 (PST) Original-Received: by 10.223.117.75 with HTTP; Tue, 8 Mar 2011 08:08:16 -0800 (PST) In-Reply-To: <488D7940-A71F-493E-B0EE-5A0D28BD8FE8@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: 0BEgEo6MN - 6d8f263d0b2b - 20110308 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.73 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:66761 Archived-At: --===============0048164544== Content-Type: multipart/alternative; boundary=000e0cd3ff92f533ba049dfad179 --000e0cd3ff92f533ba049dfad179 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 2011/3/8 Wolfgang Schuster > > Am 08.03.2011 um 15:36 schrieb Cecil Westerhof: > > > I am making my first e-book. And am now seriously using ConTeXt. But I > have a lot to learn. > > > > In my ebook I want to use citations. In two different way. For starters= I > want to let every chapter start with a citation. At the moment I think th= at > this does not need to be fancy. Just a little bigger font and a different > color and white-space after it. But if there is a better way, I do not mi= nd > to hear it. > > \starttext > > \chapter{Knuth} > > \epigraph{Nikos Kazantzakis}{I hope for nothing. I fear nothing. I am > free.} > > \input knuth > > \stoptext > > with \epigraph defined as > > \define[2]\epigraph > {\blank > > \startframedtext[right][frame=3Doff,align=3Dflushright,offset=3Dnone,widt= h=3Dfit]% > #2\par{\it =96 #1}% > \stopframedtext > \blank} > I made it: \define[2]\epigraph{ \blank \startframedtext[right][frame=3Doff,align=3Dflushright,offset=3Dnone,widt= h=3Dfit]% \startcolor[darkgreen]#2\stopcolor \blank{\it =96 #1}% \stopframedtext \blank} For one reason or another \par gave: Paragraph ended before \complexdefine was complete. I also put a color on the citation itself. I am not satisfied with the color. But I have enough time to decide on the real color. One thing I am thinking about: making the citation centered and leave the person right justified. Or is that a bad idea? --=20 Cecil Westerhof --000e0cd3ff92f533ba049dfad179 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
2011/3/8 Wolfgang Schuster <= ;schuster.wolfgang@goog= lemail.com>

Am 08.03.2011 um 15:36 schrieb Cecil Westerhof:

> I am making my first e-book. And am now seriously using ConTeXt. But I= have a lot to learn.
>
> In my ebook I want to use citations. In two different way. For starter= s I want to let every chapter start with a citation. At the moment I think = that this does not need to be fancy. Just a little bigger font and a differ= ent color and white-space after it. But if there is a better way, I do not = mind to hear it.

\starttext

\chapter{Knuth}

\epigraph{Nikos Kazantzakis}{I hope for nothing. I fear nothing. I am free.= }

\input knuth

\stoptext

with \epigraph defined as

\define[2]\epigraph
=A0{\blank
=A0 \startframedtext[right][frame=3Doff,align=3Dflushright,offset=3Dnone,w= idth=3Dfit]%
=A0 #2\par{\it =96 #1}%
=A0 \stopframedtext
=A0 \blank}

I made it:
\define[2]\epigraph{=A0 \blank
=A0 \startframedtext[right][frame=3Doff,align=3Dflushright,o= ffset=3Dnone,width=3Dfit]%
=A0 \startcolor[darkgreen]#2\stopcolor
=A0= \blank{\it =96 #1}%
=A0 \stopframedtext
=A0 \blank}

For one reason or another \par ga= ve:
=A0 =A0 Paragraph ended before \complexdefine was complete.

I= also put a color on the citation itself. I am not satisfied with the color= . But I have enough time to decide on the real color.

One thing I am thinking about: making the citation centered and leave t= he person right justified. Or is that a bad idea?

-- Cecil Westerhof
--000e0cd3ff92f533ba049dfad179-- --===============0048164544== 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 ___________________________________________________________________________________ --===============0048164544==--