Re: [NTG-context] footnotes on wrong page

2013-07-24 Thread Alan BRASLAU
On Tue, 23 Jul 2013 22:24:50 +0200
Hans Hagen pra...@wxs.nl wrote:

 you use the wrong command and there is also the scope parameter
 
 \setupnotes[footnote][split=verystrict,scope=page]

Can you clarify this? The syntax is confusing, probably because it has
evolved.

Currently, I use:
\setupnotation [footnote] [way=bypage,numberconversion=set 2]
for example, but maybe this is no longer the recommended syntax?

Also, in order to restore gobbled space following,%
\startfootnote
\stopfootnote
I use the following setup:
\setupnote [footnote] [next={ }]
So \setupnotation, \setupnote, \setupnotes is confusing.

Of course, there is
strc-not.mkvi:\let\setupnotes\setupnote
so \setupnotes is just a synonym for \setupnote.
And then there is also:
strc-not.mkvi:\let\setupnotations\setupnotation

From what I understand, footnotes can be handled using different
mechanisms, and this is why it gets confusing for users.

Alan
___
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] footnotes on wrong page

2013-07-24 Thread Marco Patzer
On 2013–07–24 Alan BRASLAU wrote:

 From what I understand, footnotes can be handled using different
 mechanisms, and this is why it gets confusing for users.

http://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote

Marco


signature.asc
Description: Digital signature
___
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
___

[NTG-context] No indentation after macro

2013-07-24 Thread H. Özoguz

I have defined the following macro:

\def\Qur[#1][#2][#3][#4]{\placeongrid{\blank[4pt]\testpage[4]
\setupindenting[no] 
\startalignment[right]\setupalign[r2l]\setupinterlinespace[line=3.7ex]\amiri 
#1 \stopalignment

\blank[4pt]
{\bf #2} \wordright{\tfx (Heiliger Qur'an #3:#4)}
\blank[3pt]}
}

How can I setup, that paragraphs after this above block will not be 
indented?


Thanks!
Huseyin
___
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] footnotes on wrong page

2013-07-24 Thread Schmitz Thomas A.

On Jul 24, 2013, at 11:57 AM, Marco Patzer home...@lavabit.com wrote:

 http://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote

I wasn't aware of this page - thanks a lot, this is VERY useful!

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


Re: [NTG-context] footnotes on wrong page

2013-07-24 Thread Alan Bowen
Thanks to all for drawing my attention to the wiki page on \setupnotation
vs \setupnote and thanks to Hans for introducing the scope key.

In the original example, only scope=page gets the footnote calls and the
footnotes on the same page.

So what is the difference between the split and scope keys and what does
scope=text do?

Alan


On Wed, Jul 24, 2013 at 6:23 AM, Schmitz Thomas A. 
thomas.schm...@uni-bonn.de wrote:


 On Jul 24, 2013, at 11:57 AM, Marco Patzer home...@lavabit.com wrote:

 
 http://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote

 I wasn't aware of this page - thanks a lot, this is VERY useful!

 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://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] footnotes on wrong page

2013-07-24 Thread Hans Hagen

On 7/24/2013 1:34 PM, Alan Bowen wrote:

Thanks to all for drawing my attention to the wiki page on
\setupnotation vs \setupnote and thanks to Hans for introducing the
scope key.


not so much introducing ... the key was already there


In the original example, only scope=page gets the footnote calls and the
footnotes on the same page.

So what is the difference between the split and scope keys and what does
scope=text do?


being even more strict (using different control mechanism)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] footnotes on wrong page

2013-07-24 Thread Hans Hagen

On 7/24/2013 12:23 PM, Schmitz Thomas A. wrote:


On Jul 24, 2013, at 11:57 AM, Marco Patzer home...@lavabit.com wrote:


http://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote


I wasn't aware of this page - thanks a lot, this is VERY useful!


a nice page indeed!


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] No indentation after macro

2013-07-24 Thread Wolfgang Schuster

Am 24.07.2013 um 12:23 schrieb H. Özoguz h.oezo...@mmnetz.de:

 I have defined the following macro:
 
 \def\Qur[#1][#2][#3][#4]{\placeongrid{\blank[4pt]\testpage[4]
 \setupindenting[no] 
 \startalignment[right]\setupalign[r2l]\setupinterlinespace[line=3.7ex]\amiri 
 #1 \stopalignment
 \blank[4pt]
{\bf #2} \wordright{\tfx (Heiliger Qur'an #3:#4)}
\blank[3pt]}
}
 
 How can I setup, that paragraphs after this above block will not be indented?

You can add \noindentation at the end of your code. You can also use the 
annotation
environment to create a new command for your text where you can set text with 
keys.

\usemodule[annotation]

\defineannotation
  [Qur]
  [alternative=Qur,
   spacebefore=3pt,
   paragraph=yes,
   align=r2l,
  %before={\testpage[4]},
   indentnext=no,
  %style=amari,
   interlinespace=3.7ex]

\defineannotationalternative[Qur][renderingsetup=annotation:Qur,alternative=vertical]

\startsetups[annotation:Qur]

  \currentannotationcontent

  \blank[4pt]

  {\bf\annotationparameter{one}}\wordright{\tfx (Heiliger Qur'an 
\annotationparameter{two}:\annotationparameter{three})}

\stopsetups

\setupindenting[yes,medium]

\starttext

\input knuth

\startQur[one=A,two=B,three=C]
\input knuth
\stopQur

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


Re: [NTG-context] Opening quotes problem with context.

2013-07-24 Thread David Rogers
john Culleton j...@wexfordpress.com writes:

 Did a fresh install of context etc. from the context site. I used this
 test file:
 ---
 \starttext
 ``Hello world.'' And ``Goodbye world.''
 \stoptext
 %\bye
 -
 The resulting pdf shows two left tick marks for opening quotes but the
 closing quotes are proper curly quotes.

 If I modify the file as follows:
 ---
 %\starttext
 ``Hello world.'' And ``Goodbye world.''
 %\stoptext
 \bye
 ---
 and use luatex or pdftex from texlive the quotes are OK. 

 I got similar results from context in texlive 2012 and texlive 2013.

 What is the proper code for opening quotes in context?


The truly proper code is \quotation{Hello world.} - that style is
guaranteed to work. (And, for instance, if you change context's language
to French, then \quotation{Bonjour monde.} will automatically give you
the correct style of French quotation marks without having to look up
how to type them; likewise for other languages.)

I think the problem of the two left tick marks may come from web browser
copy-and-paste. Special marks, especially the quotation marks,
apostrophes, and tick marks, are often mangled when converting to and
from HTML. When copying any program's code from a web page, watch out
for those marks, they've probably been mis-transcribed by the too-clever
HTML rendering.

-- 
David R
___
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] Opening quotes problem with context.

2013-07-24 Thread Wolfgang Schuster

Am 24.07.2013 um 16:58 schrieb David Rogers davidandrewrog...@gmail.com:

 john Culleton j...@wexfordpress.com writes:
 
 Did a fresh install of context etc. from the context site. I used this
 test file:
 ---
 \starttext
 ``Hello world.'' And ``Goodbye world.''
 \stoptext
 %\bye
 -
 The resulting pdf shows two left tick marks for opening quotes but the
 closing quotes are proper curly quotes.
 
 If I modify the file as follows:
 ---
 %\starttext
 ``Hello world.'' And ``Goodbye world.''
 %\stoptext
 \bye
 ---
 and use luatex or pdftex from texlive the quotes are OK. 
 
 I got similar results from context in texlive 2012 and texlive 2013.
 
 What is the proper code for opening quotes in context?
 
 
 The truly proper code is \quotation{Hello world.} - that style is
 guaranteed to work. (And, for instance, if you change context's language
 to French, then \quotation{Bonjour monde.} will automatically give you
 the correct style of French quotation marks without having to look up
 how to type them; likewise for other languages.)

There is nothing wrong by using „ “ ” « » etc. for quotations. When you
use \quotation etc. you don’t have to bother about the correct marks
for your language (you can also change them) but the code is easier to
read when you use the real signs.

 I think the problem of the two left tick marks may come from web browser
 copy-and-paste. Special marks, especially the quotation marks,
 apostrophes, and tick marks, are often mangled when converting to and
 from HTML. When copying any program's code from a web page, watch out
 for those marks, they've probably been mis-transcribed by the too-clever
 HTML rendering.

What John wrote is valid in plain TeX where fonts replaced `` and ''
with the proper characters in MkIV this feature was dropped because
you can use \quotation or write the characters in your text.

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
___


Re: [NTG-context] About Hyphenation

2013-07-24 Thread Andres Conrado Montoya
Thanks, Marco. That seems to work with final hyphens.
Why this does not work instead?: \setpenalties\brokenpenalties{1}{1}
I have tried both, but your solution works better.

Andrés Conrado Montoya
___
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] About Hyphenation

2013-07-24 Thread Wolfgang Schuster

Am 24.07.2013 um 20:22 schrieb Andres Conrado Montoya andresconr...@gmail.com:

 Thanks, Marco. That seems to work with final hyphens.
 Why this does not work instead?: \setpenalties\brokenpenalties{1}{1} 
 I have tried both, but your solution works better. 

How about a example for us!

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
___


Re: [NTG-context] About Hyphenation

2013-07-24 Thread Marco Patzer
On 2013–07–24 Wolfgang Schuster wrote:

 How about a example for us!

\starttext

%% \brokenpenalty1\relax
\setpenalties\brokenpenalties{1}{1}

\dorecurse{4}{\input knuth}

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
vero eos et accusam et justo duo dolores et ea rebum.
Atvero eosetaccusam etjustoduodolores etearebum.
Stetclita kasdgubergren, noseatakimatasanctusest.
Atvero eosetaccusam etjustoduodolores etearebum.
Stetclita kasdgubergren, noseatakimatasanctusest.
Atvero eosetaccusam etjustoduodolores etearebum.
Stetclita kasdgubergren, noseatakimatasanctusest.
Atvero eosetaccusam etjustoduodolores etearebum.
Stetclita kasdgubergren, noseatakimatasanctusest.
Atvero eosetaccusam etjustoduodolores etearebum.
Stetclita kasdgubergren, noseatakimatasanctusest.
Atvero eosetaccusam etjustoduodolores etearebum.
Stetclita kasdgubergren, noseatakimatasanctusest.
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Atvero eosetaccusam etjustoduodolores etearebum.
Stetclita kasdgubergren, noseatakimatasanctusest.

\stoptext

Apparently \brokenpenalty is not supposed to be used with
\setpenalties, see spac-ver.mkiv :

\setpenalties\widowpenalties\plustwo\maxdimen
\setpenalties\clubpenalties \plustwo\maxdimen
 \brokenpenalty \maxdimen

Actually I don't yet know what's the deal with the \setpenalties
command and why it's used for some penalties and not for others.

Marco


signature.asc
Description: Digital signature
___
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] About Hyphenation

2013-07-24 Thread Wolfgang Schuster

Am 24.07.2013 um 20:54 schrieb Marco Patzer home...@lavabit.com:

 Apparently \brokenpenalty is not supposed to be used with
 \setpenalties, see spac-ver.mkiv :
 
\setpenalties\widowpenalties\plustwo\maxdimen
\setpenalties\clubpenalties \plustwo\maxdimen
 \brokenpenalty \maxdimen
 
 Actually I don't yet know what's the deal with the \setpenalties
 command and why it's used for some penalties and not for others.

You have to differ between the \…penalty command which come
from Knuths TeX and \…penalties which are introduced with etex.

While Knuths command accept only a single value (e.g. \widowpenlty=1000)
the new commands accepts multiple values which are taken for individual
lines of a paragraph (e.g. \widowpenalties 3 3000 4500 9000).

The \setpenalties command simplifies the setups of the new commands.

The reason why \widowpenalties doesn’t work with \setpenalties is that
no command with this names exist (I never checked this for my example
in the past). A penalties command wouldn’t even make sense because
the penalty prevents only the page break after a hyphen.

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
___


Re: [NTG-context] About Hyphenation

2013-07-24 Thread Marco Patzer
On 2013–07–24 Wolfgang Schuster wrote:

  Apparently \brokenpenalty is not supposed to be used with
  \setpenalties, see spac-ver.mkiv :
  
 \setpenalties\widowpenalties\plustwo\maxdimen
 \setpenalties\clubpenalties \plustwo\maxdimen
  \brokenpenalty \maxdimen
  
  Actually I don't yet know what's the deal with the \setpenalties
  command and why it's used for some penalties and not for others.
 
 You have to differ between the \…penalty command which come
 from Knuths TeX and \…penalties which are introduced with etex.
 
 While Knuths command accept only a single value (e.g. \widowpenlty=1000)
 the new commands accepts multiple values which are taken for individual
 lines of a paragraph (e.g. \widowpenalties 3 3000 4500 9000).

I learned something new today.

 The \setpenalties command simplifies the setups of the new commands.

Combined with the aforementioned new knowledge, this totally makes
sense.

 The reason why \widowpenalties doesn’t work with \setpenalties is that
 no command with this names exist (I never checked this for my example
 in the past).

I couldn't find the definition neither in the TeXbook, nor the
ConTeXt sources. That's why. Thanks for the explanation.

Marco


signature.asc
Description: Digital signature
___
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] About Hyphenation

2013-07-24 Thread Andres Conrado Montoya
So, it seems that this configuration worked (more or less), to avoid:
Widows, Orphans, 3 or more consecutive hyphens, and final hyphens.

 \startsetups[grid][correcto]
  \setups[*reset]
\setpenalties\widowpenalties{1}{1}
\setpenalties\clubpenalties{1}{1}
\stopsetups

\doublehyphendemerits=3
\finalhyphendemerits=3
\adjdemerits=1
\brokenpenalty1\relax

Thank you all for your time.

Andrés Conrado Montoya
___
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
___