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 20:44:21 +0100	[thread overview]
Message-ID: <AANLkTimuZh_ga3QR5SSZ6A=vw8fHxAjVpN2dMFmTagc+@mail.gmail.com> (raw)
In-Reply-To: <0BA14828-FF08-407F-B8E4-9FD019BB0A5E@gmail.com>


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

2011/3/8 Wolfgang Schuster <schuster.wolfgang@googlemail.com>

> \define[2]\epigraph
>
>   {\blank
>>    \startframedtext[middle][frame=off,offset=none,width=fit,align=middle]%
>>    \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’t
> contain a paragraph, a workaround is to define the \epigraph macro with
>
> \long\def\epigraph#1#2{...}
>
> or to use MkIV.
>

My workaround works, but I should upgrade to MkIV, then I would have more
clear code. I have looked at the upgrade to MkIV, but it seemed much work.
I'll try to make time for it in the weekend.

-- 
Cecil Westerhof

[-- Attachment #1.2: Type: text/html, Size: 1782 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 19:44 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
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 [this message]
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='AANLkTimuZh_ga3QR5SSZ6A=vw8fHxAjVpN2dMFmTagc+@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).