avoid newline after definestartstop
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
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
: 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
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 / 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 ___________________________________________________________________________________
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
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
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
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 ___________________________________________________________________________________
Thanks! sometimes the moste obvious is hidden... although I would consider this a hack, it works perfectly. but I'm still wondering, if there is no soultion for the more "canonical" way. Regards Michael
On 24 Oct 2016, at 17:08, Otared Kavian
wrote: 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
mailto: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
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
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 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 ___________________________________________________________________________________
On 10/24/2016 06:07 PM, Michael Eidenbenz wrote:
Thanks!
sometimes the moste obvious is hidden... although I would consider this a hack, it works perfectly. but I'm still wondering, if there is no soultion for the more "canonical" way.
Regards Michael
Hi Michael, allow me two comments on your issue. The hack is also using a block element as span element (pardon my XML parlance). Either I’m missing something, or how would you do the same with <blockquote> in HTML?
From a typographical point of view, do you really need the quotes with a narrower paragraph? I mean, do you think it isn’t clear enough that this is quote?
Just in case it might be useful, Pablo -- http://www.ousia.tk
On 10/24/2016 05:08 PM, Otared Kavian wrote:
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.
Here would be my suggestion, which gives a syntax that is a bit more ConTeXt-like, I feel (but the coding can probably be improved): \def\startQuote% {\dosingleempty\dostartQuote} \def\dostartQuote[#1]% {\blank [line] \iffirstargument \getparameters[QQ][note=oops,#1] \def\stopQuote{\footnote{\QQnote}\stopnarrower\blank [line]}% \else \def\stopQuote{\stopnarrower\blank [line]} \fi \setupnarrower [left=1cm,right=2cm] \startnarrower} \starttext \input zapf \startQuote \input tufte \stopQuote \startQuote[note=Knuth] \input knuth \stopQuote \stoptext Thomas
after some readings in the TeX book I came up with the following solution that works for me without having to change all my instances of startstopCitation in the text. \definestartstop [Citation] [ before={\hangindent=20mm\hangafter=0\symbol[leftquotation]}, after={\removeunwantedspaces\symbol[rightquotation]}, ] \starttext \startCitation \input tufte \stopCitation \footnote{This is a Quote of Donald Knuth} \input tufte \stoptext
Michael Eidenbenz mailto:eidenbenz@arch.ethz.ch 26. Oktober 2016 um 16:30 after some readings in the TeX book I came up with the following solution that works for me without having to change all my instances of startstopCitation in the text. This doesn’t work when you have more than one paragraph in the Citation environment. \definestartstop [Citation] [ before={\hangindent=20mm\hangafter=0\symbol[leftquotation]}, after={\removeunwantedspaces\symbol[rightquotation]}, ]
\starttext \startCitation \input tufte \stopCitation \footnote{This is a Quote of Donald Knuth}
\input tufte \stoptext Here is a alternative version but you need a empty line or \par after \stopCitation.
\define\startCitation {\startnarrower[left] \symbol[leftquotation]\ignorespaces} \define\stopCitation {\BeforePar{\removeunwantedspaces\symbol[rightquotation]}% \AfterPar {\endgraf\stopnarrower}% \GetPar} \starttext \startCitation \input knuth \stopCitation \footnote{This is a Quote of Donald Knuth} \input knuth \stoptext Wolfgang
Dear Wolfgang, thanks for your mail, that led me to the source in syst-aux where I found the TeX approach, my final solution. \def\startCitation% { \startnarrower[left,right] \symbol[leftquotation] \removeunwantedspaces} \def\stopCitation#1\par% { \removeunwantedspaces \symbol[rightquotation] #1 \stopnarrower} \starttext \startCitation \input knuth \stopCitation \footnote{This is a Quote of Donald Knuth} \input knuth \stoptext
On 26 Oct 2016, at 18:40, Wolfgang Schuster
wrote: Michael Eidenbenz mailto:eidenbenz@arch.ethz.ch 26. Oktober 2016 um 16:30 after some readings in the TeX book I came up with the following solution that works for me without having to change all my instances of startstopCitation in the text. This doesn’t work when you have more than one paragraph in the Citation environment. \definestartstop [Citation] [ before={\hangindent=20mm\hangafter=0\symbol[leftquotation]}, after={\removeunwantedspaces\symbol[rightquotation]}, ]
\starttext \startCitation \input tufte \stopCitation \footnote{This is a Quote of Donald Knuth}
\input tufte \stoptext Here is a alternative version but you need a empty line or \par after \stopCitation.
\define\startCitation {\startnarrower[left] \symbol[leftquotation]\ignorespaces}
\define\stopCitation {\BeforePar{\removeunwantedspaces\symbol[rightquotation]}% \AfterPar {\endgraf\stopnarrower}% \GetPar}
\starttext
\startCitation \input knuth \stopCitation \footnote{This is a Quote of Donald Knuth}
\input knuth
\stoptext
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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___________________________________________________________________________________
Michael Eidenbenz mailto:eidenbenz@arch.ethz.ch 26. Oktober 2016 um 23:03 Dear Wolfgang,
thanks for your mail, that led me to the source in syst-aux where I found the TeX approach, my final solution.
\def\startCitation% { \startnarrower[left,right] \symbol[leftquotation] \removeunwantedspaces}
\unexpanded\def\startCitation {\startnarrower[left,right] \symbol[leftquotation]% \ignorespaces}
\def\stopCitation#1\par% { \removeunwantedspaces \symbol[rightquotation] #1 \stopnarrower}
\unexpanded\def\stopCitation#1\par {\removeunwantedspaces \symbol[rightquotation]% #1% \stopnarrower} Wolfgang
Michael Eidenbenz mailto:eidenbenz@arch.ethz.ch 20. Oktober 2016 um 11:13 hello,
how can I put the footnote number right after the quotationmarks without having a newline? dontleavehmode does not work. The quotation environments creates a separate paragraph for the content and anything after is belongs to a new paragraph. thanks michael
\definestartstop[Citation] [before={\startnarrower[left,right]\startquotation}, after={\stopquotation\stopnarrower\dontleavehmode}] You can do the same with a custom quote environment:
\definedelimitedtext [Citation] [quotation] [leftmargin=standard] Wolfgang
participants (5)
-
Michael Eidenbenz
-
Otared Kavian
-
Pablo Rodriguez
-
Thomas A. Schmitz
-
Wolfgang Schuster