ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Cecil Westerhof <cldwesterhof@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Putting citations in an e-book
Date: Tue, 8 Mar 2011 17:08:16 +0100	[thread overview]
Message-ID: <AANLkTi=wZ2LYY63KHjw6QppeZ5EWhdZkgJ4_x0ZpCaZA@mail.gmail.com> (raw)
In-Reply-To: <488D7940-A71F-493E-B0EE-5A0D28BD8FE8@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 1520 bytes --]

2011/3/8 Wolfgang Schuster <schuster.wolfgang@googlemail.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 starters 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 different
> 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
>  {\blank
>
> \startframedtext[right][frame=off,align=flushright,offset=none,width=fit]%
>   #2\par{\it – #1}%
>   \stopframedtext
>   \blank}
>

I made it:
\define[2]\epigraph{
  \blank
  \startframedtext[right][frame=off,align=flushright,offset=none,width=fit]%
  \startcolor[darkgreen]#2\stopcolor
  \blank{\it – #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?

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 1905 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2011-03-08 16:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-08 14:36 Cecil Westerhof
2011-03-08 15:36 ` Wolfgang Schuster
2011-03-08 16:08   ` Cecil Westerhof [this message]
2011-03-08 17:02     ` Cecil Westerhof
2011-03-08 17:25       ` Wolfgang Schuster
2011-03-08 17:41         ` Cecil Westerhof
2011-03-08 18:57         ` Cecil Westerhof
2011-03-08 19:39           ` Wolfgang Schuster
2011-03-08 19:44             ` Cecil Westerhof
2011-03-14 10:43             ` Cecil Westerhof
2011-03-08 15:37 ` Cecil Westerhof

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=wZ2LYY63KHjw6QppeZ5EWhdZkgJ4_x0ZpCaZA@mail.gmail.com' \
    --to=cldwesterhof@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).