ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Otared Kavian <otared@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: avoid newline after definestartstop
Date: Mon, 24 Oct 2016 17:08:24 +0200	[thread overview]
Message-ID: <35B4AA28-3EC8-4FEC-BACE-33F476574CCE@gmail.com> (raw)
In-Reply-To: <F3870FE6-D69E-4033-AD4E-3EC214F1F6F8@arch.ethz.ch>


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

Hi Michael,

Maybe what Wolfgang meant by « putting the marks by hand » is something like: you define \StartCitation and \StopCitation in the following way:

% begin quotation-note.tex

\define\StartCitation{\startnarrower[left,right]«~}
\define[1]\StopCitation{~»\footnote{#1}\stopnarrower}

\starttext
\input tufte
\StartCitation
 \input knuth
\StopCitation{This is a Quote of Donald Knuth}
\stoptext
% end quotation-note.tex

Indeed instead of the quotation marks « and » you can put whatever you wish.
If you have quotations without footnotes, then you may define another start-stop.

Best regards: OK

> On 24 Oct 2016, at 12:42, Michael Eidenbenz <eidenbenz@arch.ethz.ch> wrote:
> 
> hello,
> 
> I found this old mail below, that is related to my problem.
> is there still no workaround for this problem?
> putting a (foot)note after a quotation mark is quite common and I don't want to put the marks by hand.
> 
> i was looking at spac-hor.mkiv and tried setupnarrower[after=]. 
> but this did not work.
> 
> any help is appreciated
> 
> thanks michael
> 
> 
>> Am 21.08.2014 um 23:42 schrieb Gerben Wierda <gerben.wie...@rna.nl <http://rna.nl/>>:
>> 
>>> Is it possible to use \startquotation..\stopquotation and have an endnote 
>>> number follow the closing ''? If the \endnote is before \stopquotation, it 
>>> ends up inside the '' character at the end. If it is after \stopquotation, it 
>>> becomes the beginning of the next paragraph.
>> 
>> 
>> AFAIK this is only possible when you place the quotation marks by hand.
>> 
>> Wolfgang
> 
> 
> 
>> 
>> On 20 Oct 2016, at 11:13, Michael Eidenbenz <eidenbenz@arch.ethz.ch <mailto:eidenbenz@arch.ethz.ch>> wrote:
>> 
>> hello,
>> 
>> how can I put the footnote number right after the quotationmarks without having a newline?
>> dontleavehmode does not work.
>> 
>> thanks michael
>> 
>> 
>> 
>> 
>> \definestartstop[Citation]
>>                [before={\startnarrower[left,right]\startquotation},
>>                 after={\stopquotation\stopnarrower\dontleavehmode}]
>> 
>> \starttext
>> \input tufte
>> \startCitation
>>  \input knuth
>> \stopCitation
>> \footnote{This is a Quote of Donald Knuth}
>> \stoptext
>> ___________________________________________________________________________________
>> If your question is of interest to others as well, please add an entry to the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / http://www.ntg.nl/mailman/listinfo/ntg-context <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki     : http://contextgarden.net <http://contextgarden.net/>
>> ___________________________________________________________________________________
> 
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________


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

[-- Attachment #2: Type: text/plain, Size: 492 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2016-10-24 15:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-20  9:13 Michael Eidenbenz
2016-10-24 10:42 ` Michael Eidenbenz
2016-10-24 15:08   ` Otared Kavian [this message]
2016-10-24 16:07     ` Michael Eidenbenz
2016-10-24 17:09       ` Pablo Rodriguez
2016-10-24 17:51     ` Thomas A. Schmitz
2016-10-25 16:43       ` Michael Eidenbenz
2016-10-26 14:30         ` Michael Eidenbenz
2016-10-26 16:40           ` Wolfgang Schuster
2016-10-26 21:03             ` Michael Eidenbenz
2016-10-27  4:31               ` Wolfgang Schuster
2016-10-24 17:29 ` Wolfgang Schuster

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=35B4AA28-3EC8-4FEC-BACE-33F476574CCE@gmail.com \
    --to=otared@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).