Re: [NTG-context] Quotation with footnote

2020-09-16 Thread Henning Hraban Ramm
Am 04.09.2020 um 16:04 schrieb Taco Hoekwater :
> \definenarrower[myquote]
> \setupnarrower[myquote]
>  [left=2em,
>   right=1.5em,
>   before=\dontleavehmode\hskip-0.33em\startquote,
>   after=\stopquote]
> 
> \startmyquote
> Im übrigen ist der Mensch ein Lebewesen, das klopft, schlechte Musik macht 
> und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, aber dann ist er tot.
> \stopmyquote \footnote[f:9]{Kaspar Hauser (Kurt Tucholsky), Weltbühne 24, 
> 16.\,6.\,1931}

The behaviour changed in current LMTX – I thought, but then I recognized I was 
accidentally using MkIV from January:

If I used
\setupdelimitedtext[quotation][method=font]
I didn’t get indentation ("narrower") any more.

If I didn’t, the footnote marker moved into the next line.


Just to document that change – seems to be a fixed bug.


Hraban
___
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
___


Re: [NTG-context] Quotation with footnote

2020-09-04 Thread Henning Hraban Ramm

> Am 04.09.2020 um 16:04 schrieb Taco Hoekwater :
> 
> Something like this?
> 
> \definenarrower[myquote]
> \setupnarrower[myquote]
>  [left=2em,
>   right=1.5em,
>   before=\dontleavehmode\hskip-0.33em\startquote,
>   after=\stopquote]
> 
> \startmyquote
> Im übrigen ist der Mensch ein Lebewesen, das klopft, schlechte Musik macht 
> und seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, aber dann ist er tot.
> \stopmyquote \footnote[f:9]{Kaspar Hauser (Kurt Tucholsky), Weltbühne 24, 
> 16.\,6.\,1931}
> 
> But there may be smarter solutions.

Thank you, that works and requires minimal adaptions to my code.

Hraban

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


Re: [NTG-context] Quotation with footnote

2020-09-04 Thread Taco Hoekwater

Something like this?


\definenarrower[myquote]
\setupnarrower[myquote]
  [left=2em,
   right=1.5em,
   before=\dontleavehmode\hskip-0.33em\startquote,
   after=\stopquote]

\startmyquote
Im übrigen ist der Mensch ein Lebewesen, das klopft, schlechte Musik macht und 
seinen Hund bellen läßt. Manchmal gibt er auch Ruhe, aber dann ist er tot.
\stopmyquote \footnote[f:9]{Kaspar Hauser (Kurt Tucholsky), Weltbühne 24, 
16.\,6.\,1931}


But there may be smarter solutions.

Best wishes,
Taco

> On 4 Sep 2020, at 13:25, Henning Hraban Ramm  wrote:
> 
> My current book contains a lot of quotations with their sources marked as 
> footnotes, e.g.
> 
> 
> \definedelimitedtext[Zitat][
>  %setups=Zitat, % doesn’t work!?
>  left=»,
>  right=«,
>  leftmargin=2em,
>  rightmargin=1.5em,
> ]
> 
> \startZitat
> A rose is a rose is a rose.\footnote{Marx brothers}
> \stopZitat
> 
> 
> Now, since the quotations are whole sentences or paragraphs, the footnote 
> marker needs to be placed _after_ the closing quotation mark. (German 
> typography, I learned it’s different at least in US English.)
> 
> I tried several approaches e.g. with my own single start/stop macros that 
> call \start/stopnarrower or \start/stopZitat – that always lead to unclosed 
> environments.
> 
> * Only the delimitedtext approach gives a hanging opening quotation mark 
> (which looks nice and I’d like to have).
> 
> * \stopnarrower within a macro doesn’t seem to work (all following text stays 
> narrower).
> 
> * I can’t get rid of that space introduced by the CR before \stop – didn’t 
> find a place where \gobblespacetokens works, maybe that’s the wrong command.
> 
> 
> Most preferred would be a solution that checked if there’s a footnote in 
> front of \stopZitat and would put the closing quotation mark in front instead 
> of after. Without a footnote it would just place the mark.
> 
> Something like \stopZitat\footnote{...} would also be nice, but I guess 
> that’s too far outside of TeX’s logic.
> 
> In the worst case I’d need to typeset the closing mark manually.
> 
> Some hints please?
> 
> Hraban
> ___
> 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
> ___

Taco Hoekwater
Elvenkind BV




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


Re: [NTG-context] Quote is broken

2017-07-12 Thread Hans Hagen

On 7/12/2017 7:43 AM, Henri Menke wrote:

Dear list,

the example below throws an error.


\def\typo_delimited_repeat_indeed (n missing)



Cheers, Henri

---

\setupdelimitedtext[quote][repeat=yes]
\starttext
\startquote
\stopquote
\stoptext

---

tex error   > tex error on line 4 in file /home/henri/test.mkvi: ! 
Undefined control sequence

 ...\flushpostponednodedata \typo_delimited_repeat
   \insertparagraphintro \typ...
\strut ->\relax \dontleavehmode
 \copy \strutbox
\typo_delimited_handle_left ...ion}\fi \fi \strut
   \ifhmode \penalty \plusten...
\typo_delimited_start_txt ..._handle_left \c!left
   \typo_delimited_start_cont...

\stopquote
l.4 \stopquote
___
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
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___

[NTG-context] Quote is broken

2017-07-11 Thread Henri Menke
Dear list,

the example below throws an error.

Cheers, Henri

---

\setupdelimitedtext[quote][repeat=yes]
\starttext
\startquote
\stopquote
\stoptext

---

tex error   > tex error on line 4 in file /home/henri/test.mkvi: ! 
Undefined control sequence

 ...\flushpostponednodedata \typo_delimited_repeat 
  \insertparagraphintro \typ...
\strut ->\relax \dontleavehmode 
\copy \strutbox 
\typo_delimited_handle_left ...ion}\fi \fi \strut 
  \ifhmode \penalty \plusten...
\typo_delimited_start_txt ..._handle_left \c!left 
  \typo_delimited_start_cont...
 
\stopquote 
l.4 \stopquote
___
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
___

Re: [NTG-context] avoid newline after definestartstop

2016-10-24 Thread Thomas A. Schmitz

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

[NTG-context] setupquotation and setupquote

2013-03-24 Thread Alan BRASLAU
Hello,

quotation is linked to quote. Indeed, we have in typo-del.mkiv

\definedelimitedtext
  [\v!quote][\v!quotation]


However, when the user then changes options using \setupquotation,
\startquote\stopquote also gets modified. In the minimal example below,
it is necessary to uncomment \setupquote in order to restore normal
quote text. I believe that this to be a bug (and not a feature).


\setupquotation [style=slanted]
%\setupquote [style=normal]

\starttext

Tufte:
\startquotation
\input tufte
\stopquotation

Ward:
\startquote
\input ward
\stopquote

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] rscale (only for integers?)

2011-04-01 Thread Steffen Wolfrum

Am 01.04.2011 um 00:09 schrieb Thomas A. Schmitz:

 
 On Mar 31, 2011, at 5:22 PM, Steffen Wolfrum wrote:
 
 Hi,
 
 in a typescript I need to set sansserif font proportional bigger than serif 
 font. 
 Using rscale?
 As far as I have seen this only works when integers are used for bodyfont:
 
 \starttypescript [times]
   \definetypeface [times] [ss] [sans][helvetica] [default] 
 [rscale=10.2]
 \stoptypescript
 
 \usetypescript[times]
 %\setupbodyfont[times,10pt] % - try this ...
 \setupbodyfont[times,10.5pt] % - ... and then this
 
 \starttext
 
 Test \ss{text}
 
 \stoptext
 
 
 
 Unfortunately the sizes for bodyfont and footnotes are specified by 
 publisher (10.5pt and 8.5pt).
 
 Is there a chance to get rscale working even for theses decimal fractions?
 
 Steffen
 
 You need:
 
 \starttypescript [serif] [default] [size] 
 \definebodyfont [10.5pt] [rm] [default] 
 \stoptypescript
 
 \definebodyfontenvironment[10.5pt]




Ok, but something still is missing  The bodyfont doesn't get bigger here:



\starttypescript [times]
   \definetypeface [times] [ss] [sans][helvetica] [default] 
[rscale=10.2]
\stoptypescript


\starttypescript [serif] [default] [size] 
   \definebodyfont [10.5pt] [rm] [default] 
\stoptypescript


\definebodyfontenvironment[10.5pt]

\usetypescript[times]
\setupbodyfont[times,10.5pt]

\setupfootnotes[bodyfont={rm,8.5pt}]

\definestartstop[quote]
[before={\setupnarrower[left=10pt,right=0pt]\startnarrower[left,right]\switchtobodyfont[8.5pt]\setupinterlinespace[line=10.5pt]},after={\stopnarrower}]


\starttext

Test {\ss text} test\footnote{text {\ss text} test} test.

\startquote
test {\ss text} \input ward \par
\stopquote

\stoptext



---
Steffen











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


Re: [NTG-context] register sorting

2010-11-04 Thread Steffen Wolfrum

Hi Hans,

I tested all the combinations that Jano set up (see below) and additionally 
tried the same, but used ch instead of uc.

But none of these runs gave this sorting result:

East Prussia
Eastern enlargement
East-West Institute

I would would sort it  this way, but maybe I am simply wrong?


Regards, Steffen



Am 30.10.2010 um 02:33 schrieb Jano Kula:

 Hi Steffen,
 
 On 10/29/2010 10:39 PM, Steffen Wolfrum wrote:
 Hi,
 
 I just installed todays beta and I am not sure if regoster sorting is 
 working properly.
 
 Eg. I modify (see below) the example from tricky-002.tex and I would like to 
 achieve ...
 
 accession
 Action Plan
 association
 
 But none of the four methods (before, after, first, last) gives this result!!
 
 What is wrong?
 
 Methods were rewritten to give more flexibility. From the Hans' explanation:
 
 \startquote
 
 [pzm][mc] = [plus|zero|minus offsets][mapping|cases]
 
 uc == unicode order
 
 ok, a bit cryptic but one can now choose methods more explicitly (with the 
 four predefined)
 
 cases   : lowercasing with shapebased pre/post injection
 mapping : given language mapping with shapebased pre/post injection
 
 Not all combinations make sense so we might need to figure out which ones to 
 document. With too much simplification (shape based) the sorter will not sort 
 right as there always need to be some distinction.
 
 \stopquote
 
 Bellow is the example with possible combinations, so try which one suits you 
 best.
 
 At least method={zm,mc,uc} gives what you want, but I don't know your border 
 cases.
 
 Jano
 
 
 
 % tricky-006.tex
 \setuplayout[topspace=1cm,height=middle]
 
 \setupbodyfont[11pt]
 
 \starttext
 
 \def\Test#1%
 {\vbox{{\bf#1}\blank\placeregister[index][language=cz,n=1,method={#1}]}\blank}
 
 wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank
 
 \startcolumns[n=3]
\Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc}
\Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc}
\Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc}
 \stopcolumns
 
 \page
 
 wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank
 
 \startcolumns[n=3]
\Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc}
\Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc}
\Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc}
 \stopcolumns
 
 \page
 
 \dorecurse {2} {
   \page \recurselevel:
\index{oá}  \index{öb}  \index{Oč}  \index{Öď}
\index{oo}  \index{öo}  \index{Oo}  \index{Öo}
\index{Öq}  \index{öř}  \index{Oš}  \index{oů}
   done
 }
 
 
 
 
 
 
 
 
 
 
 
 
 ___
 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
 ___

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


Re: [NTG-context] register sorting

2010-10-29 Thread Jano Kula

Hi Steffen,

On 10/29/2010 10:39 PM, Steffen Wolfrum wrote:

Hi,

I just installed todays beta and I am not sure if regoster sorting is working 
properly.

Eg. I modify (see below) the example from tricky-002.tex and I would like to 
achieve ...

accession
Action Plan
association

But none of the four methods (before, after, first, last) gives this result!!

What is wrong?


Methods were rewritten to give more flexibility. From the Hans' explanation:

\startquote

[pzm][mc] = [plus|zero|minus offsets][mapping|cases]

uc == unicode order

ok, a bit cryptic but one can now choose methods more explicitly (with 
the four predefined)


cases   : lowercasing with shapebased pre/post injection
mapping : given language mapping with shapebased pre/post injection

Not all combinations make sense so we might need to figure out which 
ones to document. With too much simplification (shape based) the sorter 
will not sort right as there always need to be some distinction.


\stopquote

Bellow is the example with possible combinations, so try which one suits 
you best.


At least method={zm,mc,uc} gives what you want, but I don't know your 
border cases.


Jano



% tricky-006.tex
\setuplayout[topspace=1cm,height=middle]

\setupbodyfont[11pt]

\starttext

\def\Test#1%

{\vbox{{\bf#1}\blank\placeregister[index][language=cz,n=1,method={#1}]}\blank}

wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank

\startcolumns[n=3]
\Test{mc,mm,uc} \Test{mc,zm,uc} \Test{mc,pm,uc}
\Test{zc,mm,uc} \Test{zc,zm,uc} \Test{zc,pm,uc}
\Test{pc,mm,uc} \Test{pc,zm,uc} \Test{pc,pm,uc}
\stopcolumns

\page

wanted result: oá öb Oč Öď Oo Öo oo öo Öq öř Oš oů \blank

\startcolumns[n=3]
\Test{mm,mc,uc} \Test{zm,mc,uc} \Test{pm,mc,uc}
\Test{mm,zc,uc} \Test{zm,zc,uc} \Test{pm,zc,uc}
\Test{mm,pc,uc} \Test{zm,pc,uc} \Test{pm,pc,uc}
\stopcolumns

\page

\dorecurse {2} {
   \page \recurselevel:
\index{oá}  \index{öb}  \index{Oč}  \index{Öď}
\index{oo}  \index{öo}  \index{Oo}  \index{Öo}
\index{Öq}  \index{öř}  \index{Oš}  \index{oů}
   done
}












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


Re: [NTG-context] \quotation

2007-11-02 Thread Wolfgang Schuster
2007/11/2, Wolfgang Schuster [EMAIL PROTECTED]:



 2007/11/1, Idris Samawi Hamid [EMAIL PROTECTED]:
 
  Dear gang,
 
  This has bugged me for years but I never said anything since the
  workaround is so easy. OTOH I am working on something I'd like to share
  with others and an official solution would be better:
 
  \starttext
  \input knuth
  \startquotation
  \input knuth
  \stopquotation
  \input knuth
  \stoptext
 
  I. \start-\stopquotation surrounds the block quote in double-quotes
  marks.
  I don't know about other European languages but in English this is
  redundant; I've hardly ever seen block quotes use dbl-quote marks.
 
  We at least need a setup option to turn this off.
 
  II. There should be some default whitespace between the block quote and
  the surrounding text, just as \start-stopitemize has. Or at least this
  should be configurable in the setups.
 
  If these two are already there (not in the manual) then please let us
  know
  how to set this up. Otherwise could you add configuration options for
  this?
 
  FYI: Here is what I use
 
  ===
  \definestartstop
 [quote]
 [before={\startnarrower[2*left,2*right]\blank[big]\noindenting},
   after={\stopnarrower\blank[big]}]
  ===
 
  Best wishes
  Idris


 Hi Idris,

 there is no perfect solution in ConTeXt because the \quotation and the
 \start/stopquotation commands are defined with the same definition and it
 is
 not possible to disable the quote marks for the one and enable it for the
 other,
 but you can use ConTeXt's mechanism for nested quotations and redefine the
 other one.

 \setupdelimitedtext
   [quotation]
   [1]
   [left={\symbol[leftquotation]},
right={\symbol[rightquotation]}]

 \setupdelimitedtext
   [quotation]
   [2]
   [left={\symbol[leftquote]},
right={\symbol[rightquote]}]

 \setupdelimitedtext
   [quote]
   [location=margin, % paragraph
left=,
right=,
before={\blank[big]},
after={\blank[big]}]


This can also be written as

\setupdelimitedtext
  [quote]
  [location=margin, % paragraph
   left=,
   right=,
   spacebefore=big,
   %spaceafter=big, % spaceafter is spacebefore by default
  ]

\starttext

 \input knuth

 \quotation{I'm a quoteted text \quotation{within another quoteted text}
 and back.}

 \startquote
 \input knuth
 \stopquote

 \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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \quotation

2007-11-02 Thread Wolfgang Schuster
2007/11/1, Idris Samawi Hamid [EMAIL PROTECTED]:

 Dear gang,

 This has bugged me for years but I never said anything since the
 workaround is so easy. OTOH I am working on something I'd like to share
 with others and an official solution would be better:

 \starttext
 \input knuth
 \startquotation
 \input knuth
 \stopquotation
 \input knuth
 \stoptext

 I. \start-\stopquotation surrounds the block quote in double-quotes marks.
 I don't know about other European languages but in English this is
 redundant; I've hardly ever seen block quotes use dbl-quote marks.

 We at least need a setup option to turn this off.

 II. There should be some default whitespace between the block quote and
 the surrounding text, just as \start-stopitemize has. Or at least this
 should be configurable in the setups.

 If these two are already there (not in the manual) then please let us know
 how to set this up. Otherwise could you add configuration options for
 this?

 FYI: Here is what I use

 ===
 \definestartstop
[quote]
[before={\startnarrower[2*left,2*right]\blank[big]\noindenting},
  after={\stopnarrower\blank[big]}]
 ===

 Best wishes
 Idris


Hi Idris,

there is no perfect solution in ConTeXt because the \quotation and the
\start/stopquotation commands are defined with the same definition and it is
not possible to disable the quote marks for the one and enable it for the
other,
but you can use ConTeXt's mechanism for nested quotations and redefine the
other one.

\setupdelimitedtext
  [quotation]
  [1]
  [left={\symbol[leftquotation]},
   right={\symbol[rightquotation]}]

\setupdelimitedtext
  [quotation]
  [2]
  [left={\symbol[leftquote]},
   right={\symbol[rightquote]}]

\setupdelimitedtext
  [quote]
  [location=margin, % paragraph
   left=,
   right=,
   before={\blank[big]},
   after={\blank[big]}]

\starttext

\input knuth

\quotation{I'm a quoteted text \quotation{within another quoteted text} and
back.}

\startquote
\input knuth
\stopquote

\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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] setting up quotations

2007-08-22 Thread Idris Samawi Hamid
Hi f,

On Wed, 22 Aug 2007 15:38:03 -0600, frantisek holop [EMAIL PROTECTED]  
wrote:

 all 3 quotations are in italics.  i think this is incorrect...
 all 3 quoting styles have their place and function.

 \startquotation should have some \blank before and after, different
 margins, etc.  that's what i want to set up with \setupquotation
 a lot of publisher make even typeset these in smaller fonts.

 how can i make this happen?  this is really important for typesetting
 books, it is not?

Just roll your own! Here is what i use:

\definestartstop
   [quote]
   [before={\startnarrower[1*middle]\blank[big]},
 after={\stopnarrower\blank[big]}]

This gives you the commands

\startquote-\stopquote

Just edit the definition to get the effect you want. And/or make new ones!

Note that ConTeXt by default is rather bland. The defaults are not  
intended as some typographic ideal, in contrast to LaTeX.

Best wishes
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] the closing bracket (structuring syntax)

2006-09-12 Thread Aditya Mahajan
On Mon, 14 Aug 2006, Aditya Mahajan wrote:

 And what would be the opposite?

 For example \startquote ... \stopquote
 to something like {\MyQuote ... }

 AFAIK, there is no easy way to do this.

One can use \aftergroup trickery.

\def\MyQuote{\symbol[leftquote]\aftergroup\endMyQuote}
\def\endMyQuote{\symbol[rightquote]}

\starttext
{\MyQuote This is a test}

\mainlanguage[fr]
{\MyQuote This is a test}
\stoptext

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] the closing bracket (structuring syntax)

2006-08-15 Thread Steffen Wolfrum

Am 13.08.2006 um 15:29 schrieb Steffen Wolfrum:

 And what would be the opposite?

 For example \startquote ... \stopquote
 to something like {MyQuote ... }

 Steffen


\def\MyQuote#1{\startquote#1\stopquote}

\MyQuote{something to be quoted}


... should work OK, right?


Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] the closing bracket (structuring syntax)

2006-08-14 Thread Aditya Mahajan
 And what would be the opposite?

 For example \startquote ... \stopquote
 to something like {\MyQuote ... }

AFAIK, there is no easy way to do this.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] the closing bracket (structuring syntax)

2006-08-13 Thread Steffen Wolfrum

Am 10.08.2006 um 22:47 schrieb Aditya Mahajan:

 You can always define your own startstop.

 \definestartstop[italic][before={\bgroup \it},after={\egroup}]

 and then do

 \startitalic
   This is italic
 \stopitalic

 When a command takes an optional agrument, you can do use something  
 like
 this

 \def\startfootnote%
 {\unskip\dosingleempty\dostartfootnote}

 \def\dostartfootnote[#1]#2\stopfootnote%
{\footnote[#1]{#2}}


And what would be the opposite?

For example \startquote ... \stopquote
to something like {MyQuote ... }

Steffen
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] updating ConTeXt to latest on openbsd-current

2006-03-06 Thread frantisek holop
hi there,

i am a (somewhat) long time pdflatex user and i am trying to convert to
ConTeXt.  openbsd comes with teTeX 3.0 pre-packaged, that is with a very
old ConTeXt.  the package has some openbsd specific stuff, but minimal,
and only for keeping cnf files between updates and a couple of paths are
different, but that is it.

i was (am) having font problems, so i thought an upgrade would not hurt.
the lovely guides on contextgarden.net got me started, and with minor
changes i have a fresh ConTeXt up and running, but i have some problems
still i am afraid.  i am very new to ConTeXt and to TeX in general,
i was always behind the safe curtains of macros (like memoir, etc).


as i followed the instructions from here:
http://wiki.contextgarden.net/TeTeX_3.0_installation
my question are related to this page

i will break down my question into more mails, so it's not too long,
and so that people can answer to mails they know the answer to :)

the first one:

the first step to upgrade context is:

--\startquote---
Fix texmf.cnf

Now first you have to fix texmf.cnf as supplied with teTeX:

# vi /usr/local/teTeX/share/texmf/web2c/texmf.cnf 

You have to add an engine path to the TEXFORMATS line, so that it reads:

TEXFORMATS = .;$TEXMF/web2c/{$engine,}

--\stopquote

i deliberately skipped this one, and the new context worked without it.
what does this precisely do?

when i first run the new context, a new line in the output immediately
caught my attention:

 TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

 fixing texformat path : .:{!!/home/f/.texmf-config,!!/home/f/.texmf-var,/home/f
/texmf,!!/etc/texmf,!!/var/texmf,!!/usr/local/share/texmf,!!/usr/local/share/tex
mf-local,!!/usr/local/share/texmf-dist}/web2c/{$engine,}{pdfetex,}

so i thought, ok, here's the path issue.  so i added {$engine,} as intructed,
but it turned out that that this new line comes up anyway.  could anyone 
comment on it?


the next tip is to

--\startquote---

While at it, you probably want to set

shell_escape = t

if it isn't already. 

--\stopquote

in the default openbsd package this line says:

shell_escape = f

what is the difference?  and what is it for anyway?
some external execution of the legends are true? :)

-f
-- 
i'm not old.  i'm chronologically gifted.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] updating ConTeXt to latest on openbsd-current Q #2

2006-03-06 Thread frantisek holop
hi there,

my second question, is more like asking for pointers...

where can i read more about fmtutil, and how come that
context does not use it when (i assume) pdftex does?


--\startquote---
Cleanup fmtutil

Optionally, you can remove ConTeXt support from teTeX's configuration,
because ConTeXt does not use fmtutil.

Using

# fmtutil-sys --edit

you can comment out the lines for metafun,cont-en, and mptopdf

And you can use

# cd /usr/local/teTeX/share/texmf-var/web2c  rm -f cont-en.* metafun.* 
mptopdf.*

to remove the old (fmtutil-generated) formats. 

--\stopquote

-f
-- 
the best way out of a difficulty is through it.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] updating ConTeXt to latest on openbsd-current

2006-03-06 Thread Taco Hoekwater
frantisek holop wrote:
 
 the first step to upgrade context is:
 
 --\startquote---
 Fix texmf.cnf
 --\stopquote
 
 i deliberately skipped this one, and the new context worked without it.
 what does this precisely do?

See the answer to #2, already posted

 but it turned out that that this new line comes up anyway.  could anyone 
 comment on it?

That line from texexec comes from paranoia in texexec, I think it
is displayed always.

 the next tip is to
 
 --\startquote---
 shell_escape = t
 --\stopquote
 
 in the default openbsd package this line says:
 
 shell_escape = f
 
 what is the difference?  and what is it for anyway?
 some external execution of the legends are true? :)

It allows tex to start programs on-the-fly. Most imprtantly metapost,
for the creation of graphics. It works fine without, but with the
'f' setting, usually an extra tex run is needed, loosing you valuable
time.

Cheers, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] updating ConTeXt to latest on openbsd-current Q #2

2006-03-06 Thread Willi Egger


frantisek holop wrote:

hi there,

my second question, is more like asking for pointers...

where can i read more about fmtutil, and how come that
context does not use it when (i assume) pdftex does?

  

Fmtutil is used to generate the necessary format files to run tex. - 
Context provides this within texexec. So generating the formats
becomes simply  texexec --make en metafun mptopdf  i.e. a list of 
requested formats.
even shorter this is texexec --make all..  This will however generate 
formats which you will never use. But nowadays, where diskspace is no 
issue :-)

Kind regards

Willi

--\startquote---
Cleanup fmtutil

Optionally, you can remove ConTeXt support from teTeX's configuration,
because ConTeXt does not use fmtutil.

Using

# fmtutil-sys --edit

you can comment out the lines for metafun,cont-en, and mptopdf

And you can use

# cd /usr/local/teTeX/share/texmf-var/web2c  rm -f cont-en.* metafun.* 
mptopdf.*

to remove the old (fmtutil-generated) formats. 

--\stopquote

-f
  

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bug in indentation

2005-08-18 Thread Idris Samawi Hamid
Dear knights,

There is apparently something wrong with the indenting mechanism in the latest 
context: I have to invoke indenting twice to cut it on (uncomment the second 
\setupindenting):


% output=pdf interface=en

\setupwhitespace[none]
\setupindenting[medium,next] % does not indent
%\setupindenting[medium,next] % need both to indent

\definestartstop
  [quote]
  [before={\startnarrower[1*middle]\blank[big]},
after={\stopnarrower\blank[big]}]

\starttext

\input knuth

\startquote
\input knuth
\stopquote

\input knuth

\stoptext


log verifying version

=
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2c 7.5.3) (format=cont-en 
2005.8.18)  18 AUG 2005 21:47
entering extended mode
\write18 enabled.
 (c:\CONTEXT\tex\texmf-local/web2c/natural.tcx)
**cont-en testblank.tex
(./testblank.tex

ConTeXt  ver: 2005.08.15  fmt: 2005.8.18  int: english  mes: english
=

Similarly, if I want a local exception to the indentation I need something 
like

\start\setupindenting[none]\setupindenting[none]

paragraph

\stop

Also, dropped capes does not work well when indentation is on, calling for the 
local exception above.

Finally, \indenting and \noindenting don't work like they used to: bug or 
feature?

I actually spent hours trying to debug a huge manuscript (with messed up now 
fixed indentation) before finally realizing and isolating the problem.

Upgrading ConTeXt is always an adventure...

Best
Idris


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes

2005-05-08 Thread Idris Samawi Hamid
= Original Message From Hans Hagen [EMAIL PROTECTED] =
can you make me a minimal example showing the problem?

Sure, here are 2: both produce overfull hboxes.

All the best
Idris
==
\setupoutput[pdftex]%

\setupindenting[medium]

\starttext

\input knuth \inmargin{This is a test.}

\stoptext


log=
systems : begin file test at line 5
(c:\CONTEXT\tex\texmf-local/tex/context/sample/knuth.tex)
Overfull \hbox (17.62474pt too wide) in paragraph at lines 7--7
[][]

\hbox(10.41603+4.05064)x0.0
.\hbox(0.0+0.0)x17.62474
.\hbox(10.41603+4.05064)x0.0
.\rule(10.41603+4.05064)x0.0
.\glue 0.0 plus 1.0fil minus 1.0fil
.\penalty 1
.\glue(\parfillskip) 0.0 plus 1.0fil
.\glue(\rightskip) 0.0
===

===
\setupoutput[pdftex]%

\definestartstop
[quote]
[before={\startnarrower[1*left,1*right]\blank[big]},
after={\stopnarrower\blank[big]}]

\starttext

\startquote

\input knuth \inmargin{This is a test.}

\stopquote

\stoptext
==


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


RE: FWD: [NTG-context] \inmargin, \setupindenting, and overfull boxes

2005-05-07 Thread Idris Samawi Hamid
Hi Taco and all,

More on \inmargin and overfull boxes: If I define, e.g. a quote \start-stop 
the overfull boxes come back, even with Taco's definition:

==
\setupoutput[pdftex]%
\setupindenting[medium]

\let\normalinmargin\inmargin
\def\inmargin#1{{\parindent0pt\normalinmargin{#1}}}

\definestartstop
  [quote]
  [before={\startnarrower[1*left,1*right]\blank[big]},
after={\stopnarrower\blank[big]}]

\starttext

\startquote

\input knuth \inmargin{This is a test.}

\input knuth {\parindent0pt\inmargin{This is a test.}}

\stopquote

\stoptext
==

Taco, any more hacks up your sleeve?
;-)

And thank you very much for the last ones!

Best
Idris


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context