From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Putting citations in an e-book
Date: Tue, 8 Mar 2011 16:36:21 +0100 [thread overview]
Message-ID: <488D7940-A71F-493E-B0EE-5A0D28BD8FE8@gmail.com> (raw)
In-Reply-To: <AANLkTinX7GgdBt-zv1ZK-eGWvzDysRhpurwYjV7ZYgo3@mail.gmail.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}
or
\usemodule[annotation]
\define[2]\EpigraphCommand
{\startframedtext[right][frame=off,align=flushright,offset=none,width=fit]%
#2\par{\it – \placeannotationtitle}%
\stopframedtext}
\defineannotation
[epigraph]
[alternative=command,
command=\EpigraphCommand,
display=yes]
With the annotation module you can also write
\startepigraph{Nikos Kazantzakis}
I hope for nothing. I fear nothing. I am free.
\stopepigraph
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2011-03-08 15:36 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 [this message]
2011-03-08 16:08 ` Cecil Westerhof
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=488D7940-A71F-493E-B0EE-5A0D28BD8FE8@gmail.com \
--to=schuster.wolfgang@googlemail.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).