Re: [NTG-context] small space before some characters (: ; ! ?)

2015-04-01 Thread Wolfgang Schuster

> Am 01.04.2015 um 18:46 schrieb Csikos Bela :
> 
> Hello:
> 
> Hungarian typography requires inserting small spaces before :, ;, ! and ? 
> characters.
> The width of this small space should be equal to that of the period (.). In 
> latex magyarlatex (magyar.ldf) module (part of biblatex) contains definitions 
> to achieve this. How could I set this in context?


You can use the french settings which also requires a small space before these 
characters.

\starttext

Take a look at this; this: this! or this?

\setcharacterspacing[frenchpunctuation]

Take a look at this; this: this! or this?

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

[NTG-context] [***SPAM***] small space before some characters (: ; ! ?)

2015-04-01 Thread Csikos Bela
Hello:

Hungarian typography requires inserting small spaces before :, ;, ! and ? 
characters.
The width of this small space should be equal to that of the period (.). In 
latex magyarlatex (magyar.ldf) module (part of biblatex) contains definitions 
to achieve this. How could I set this in context?

Thanks in advance,

bcsikos

___
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] lua code prevents compilation

2015-04-01 Thread Hans Hagen

On 4/2/2015 1:21 AM, Pablo Rodriguez wrote:

On 03/30/2015 10:33 PM, Hans Hagen wrote:

On 3/30/2015 5:19 PM, Pablo Rodriguez wrote:

[...]
For some reason unknown to me, the only way to compile the sample is to
remove the luacode snippet.

I need the lua code to have underscore hyphenation in type commands. And
I need two extra \definehyphenationfeatures and \sethyphenationfeatures
to invoke it.

Have I hit a bug or what am I missing?


I don't know as i see nothing at all with that code .. this is more fun:


Many thanks for your reply, Hans,

The following code shows the problem:

\startluacode

 function document.addfunnyhyphen(tfmdata)
 local underscore = utf.byte("_")
 local char   = tfmdata.characters[underscore]
 tfmdata.characters[0xFE000]   = {
 width= 0,
 height   = 0,
 depth= 0,
 commands = {
 { "right", -char.width },
 { "down", char.depth },
 { "slot", 1, underscore },
 }
 }
 end


utilities.sequencers.appendaction("aftercopyingcharacters","after","document.addfunnyhyphen")

\stopluacode
%~ \definefontfamily[ornamenta][rm][TypographyTribute]
\definehyphenationfeatures[underscore][righthyphenchar="FE000]
\setuphyphenation[method=traditional]
\sethyphenationfeatures[strict]
\setupbodyfont[ornamenta]
\starttext
\hsize\zeropoint
{\sethyphenationfeatures[underscore]\tt pandoc}
A
\stoptext

If you uncomment the line with the font definition, font loading crashes
compilation. It only crashes with this font
(http://www.dafont.com/typographytribute.font) or FontAwesome
(http://www.fontawesome.io).

Both lack the underscore glyph. This causes the crash, since it works
fine if I replace the glyph with an existing glyph in the font.

Error message:

code.tex: ! LuaTeX fatal error error in error handling
\font_helpers_low_level_define ...\scaledfontmode
   \relax \ifcase
\scaledfont...
\font_helpers_trigger_define ..._identifier_class
   \csname
\v_font_identifier...
\applyfontclassstrategies ...\fontface \endcsname
   \else \expandafter
\font_h...
\font_helpers_synchronize_font ...classstrategies
   \fi \setfalse
\c_font_auto...
\rm ->\ifmmode \mathrm \else \normalrm
\fi
\font_basics_switch_style ...ntstyle #1\endcsname
   \edef \fontstyle
{#1}\ifmm...
...

Would it be possible that ConTeXt silently ignores that the font doesn’t
contain the glyph?


the message is fuzzy (and i have to check a lua stack issue maybe but 
not now) ... if char is nil then char.depth is an error



I think this might be a bug.


>  function document.addfunnyhyphen(tfmdata)
>  local underscore = utf.byte("_")
>  local char   = tfmdata.characters[underscore]

   if not char then return end

>  tfmdata.characters[0xFE000]   = {
>  width= 0,
>  height   = 0,
>  depth= 0,
>  commands = {
>  { "right", -char.width },
>  { "down", char.depth },
>  { "slot", 1, underscore },
>  }
>  }
>  end


-
  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] lua code prevents compilation

2015-04-01 Thread Pablo Rodriguez
On 03/30/2015 10:33 PM, Hans Hagen wrote:
> On 3/30/2015 5:19 PM, Pablo Rodriguez wrote:
>> [...]
>> For some reason unknown to me, the only way to compile the sample is to
>> remove the luacode snippet.
>>
>> I need the lua code to have underscore hyphenation in type commands. And
>> I need two extra \definehyphenationfeatures and \sethyphenationfeatures
>> to invoke it.
>>
>> Have I hit a bug or what am I missing?
> 
> I don't know as i see nothing at all with that code .. this is more fun:

Many thanks for your reply, Hans,

The following code shows the problem:

\startluacode

function document.addfunnyhyphen(tfmdata)
local underscore = utf.byte("_")
local char   = tfmdata.characters[underscore]
tfmdata.characters[0xFE000]   = {
width= 0,
height   = 0,
depth= 0,
commands = {
{ "right", -char.width },
{ "down", char.depth },
{ "slot", 1, underscore },
}
}
end


utilities.sequencers.appendaction("aftercopyingcharacters","after","document.addfunnyhyphen")

\stopluacode
%~ \definefontfamily[ornamenta][rm][TypographyTribute]
\definehyphenationfeatures[underscore][righthyphenchar="FE000]
\setuphyphenation[method=traditional]
\sethyphenationfeatures[strict]
\setupbodyfont[ornamenta]
\starttext
\hsize\zeropoint
{\sethyphenationfeatures[underscore]\tt pandoc}
A
\stoptext

If you uncomment the line with the font definition, font loading crashes
compilation. It only crashes with this font
(http://www.dafont.com/typographytribute.font) or FontAwesome
(http://www.fontawesome.io).

Both lack the underscore glyph. This causes the crash, since it works
fine if I replace the glyph with an existing glyph in the font.

Error message:

code.tex: ! LuaTeX fatal error error in error handling
\font_helpers_low_level_define ...\scaledfontmode
  \relax \ifcase
\scaledfont...
\font_helpers_trigger_define ..._identifier_class
  \csname
\v_font_identifier...
\applyfontclassstrategies ...\fontface \endcsname
  \else \expandafter
\font_h...
\font_helpers_synchronize_font ...classstrategies
  \fi \setfalse
\c_font_auto...
\rm ->\ifmmode \mathrm \else \normalrm
   \fi
\font_basics_switch_style ...ntstyle #1\endcsname
  \edef \fontstyle
{#1}\ifmm...
...

Would it be possible that ConTeXt silently ignores that the font doesn’t
contain the glyph?

I think this might be a bug.

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] overlay or layer for chapter head.

2015-04-01 Thread Alan BRASLAU
John,

Do you mean this post?
(It appeared on the mailing list)

Alan


On Wed, 1 Apr 2015 10:19:03 -0400
John Culleton  wrote:

> I am redoing a book for a client. Each chapter
> head has a fancy design. I want to reproduce that
> fancy page but still have the "\chapter"
> statement for running heads, TOC etc. 
> 
> Is there a way that I can overlay the entire
> chapter first page with a graphic, ideally a one
> page pdf file. 
> 
> I have tried workarounds with
> \startstandardmakeup,\writetolist,
> \definemarking etc. but the whole thing is
> getting too complicated. I just want to overlay a
> the entire page with a graphic yet have
> the real content of the page still available for
> TOC, running head, indexing terms etc.
> 
> Any suggestions?




On Wed, 1 Apr 2015 21:13:49 +0200
Hans Hagen  wrote:

>  Forwarded Message 
> Subject: My posts.
> Date: Wed, 1 Apr 2015 14:21:41 -0400
> From: John Culleton 
> Organization: WexfordPress
> To: Hans Hagen 
> 
> Recently my posts don't appear on the list. If I
> send you a cc you are kind enough to answer. But
> is there a reason why my recent posts don't
> appear on the mailing list?
> 
> Here is the text of my most recent post:
> 


___
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] overlay or layer for chapter head.

2015-04-01 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi John,

Per Hans' Fwd: I can confirm that this latest post of yours made it to the  
list.


Best wishes
Idris

On Wed, 01 Apr 2015 08:19:03 -0600, John Culleton   
wrote:



I am redoing a book for a client. Each chapter
head has a fancy design. I want to reproduce that
fancy page but still have the "\chapter"
statement for running heads, TOC etc.

Is there a way that I can overlay the entire
chapter first page with a graphic, ideally a one
page pdf file.

I have tried workarounds with
\startstandardmakeup,\writetolist,
\definemarking etc. but the whole thing is
getting too complicated. I just want to overlay a
the entire page with a graphic yet have
the real content of the page still available for
TOC, running head, indexing terms etc.

Any suggestions?





--
Idris Samawi Hamid, Professor
Department of Philosophy
Colorado State University
Fort Collins, CO 80523
___
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] Fwd: My posts.

2015-04-01 Thread Hans Hagen




 Forwarded Message 
Subject: My posts.
Date: Wed, 1 Apr 2015 14:21:41 -0400
From: John Culleton 
Organization: WexfordPress
To: Hans Hagen 

Recently my posts don't appear on the list. If I
send you a cc you are kind enough to answer. But
is there a reason why my recent posts don't
appear on the mailing list?

Here is the text of my most recent post:

I am redoing a book for a client. Each chapter
head has a fancy design. I want to reproduce that
fancy page but still have the "\chapter"
statement for running heads, TOC etc.

Is there a way that I can overlay the entire
chapter first page with a graphic, ideally a one
page pdf file.

I have tried workarounds with
\startstandardmakeup,\writetolist,
\definemarking etc. but the whole thing is
getting too complicated. I just want to overlay a
the entire page with a graphic yet have
the real content of the page still available for
TOC, running head, indexing terms etc.

Any suggestions?
-
As always your assistance is appreciated.
--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Updated PDF e-book: "Create Book Covers with
Scribus 1.4.5" coming soon at
http://www.booklocker.com/!


___
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] overlay or layer for chapter head.

2015-04-01 Thread John Culleton
I am redoing a book for a client. Each chapter
head has a fancy design. I want to reproduce that
fancy page but still have the "\chapter"
statement for running heads, TOC etc. 

Is there a way that I can overlay the entire
chapter first page with a graphic, ideally a one
page pdf file. 

I have tried workarounds with
\startstandardmakeup,\writetolist,
\definemarking etc. but the whole thing is
getting too complicated. I just want to overlay a
the entire page with a graphic yet have
the real content of the page still available for
TOC, running head, indexing terms etc.

Any suggestions?


-- 
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
Updated PDF e-book: "Create Book Covers with
Scribus 1.4.5" coming soon at
http://www.booklocker.com/!
___
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] question on bibliography generation in context stable

2015-04-01 Thread Csikos Bela
Hello:

I installed a standalone context system on my linux OS by running the install 
script:

sh ./first-setup.sh --modules=all --context=current --engine=luatex

For getting the install script I followed the link given at contextgarden 
install wiki page:
http://wiki.contextgarden.net/ConTeXt_Standalone  % the wiki page
http://minimals.contextgarden.net/setup/first-setup.sh % link to the install 
script

The version of this installed context is:

> context --version

mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context file: 
/usr/local/context/stable/tex/texmf-context/tex/context/base/context.mkiv
mtx-context | current version: 2014.01.03 00:40

My questions are related to bibliography production. For setting up 
bibliography I used the manual mentioned and linked at the contextgarden 
Bibliography MkIV wiki page:
http://wiki.contextgarden.net/Bibliography_mkiv % the wiki page
http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf % link to 
the manual dated 2009 March 02

I want a numbered bibliography list for which I use the following setup in the 
document preamble:

\setuppublications[alternative=num,refcommand=num,sorttype=cite,numbering=yes,autohang=yes]

Questions:

1. The above setting results in a numbered bibliography list where the numbers 
are aligned left and don't have period, like (use monotype font to see the 
correct alignment):

1Authors
25  Authors
134 Authors

I would like to make the list item numbers right aligned and having a period, 
like:
  1. Authors
 25. Authors
134. Authors

I also would like to know how I can change the distance between the numbers and 
text (authors).


2. I am confused how to use the autohang, totalnumber and samplesize options.
For exmample I have the following setup:

\setuppublications[alternative=num,refcommand=num,sorttype=cite,numbering=yes,autohang=yes]
\setuppublicationlist[samplesize={MM}]
or
\setuppublicationlist[totalnumber=220]
or
\setuppublicationlist[totalnumber=220,samplesize={MM}]

Whatever setting I use for totalnumber and samplesize, they don't have any 
effect on the output.
The bbl file always has the same in the first line:
\setuppublicationlist[samplesize={PGABMN{\etalchar{+}}02},totalnumber=220]

The only option that makes a difference is autohang on/off.
With autohang=on the 3-digit numbers hang onto the list entry texts (authors) 
and partially overlap them.
With autohang=no they don't overlap but are still too close to the list item 
text.
It seems it behaves the opposite to what is expected.

What is the correct use of these options? It's not explained in the manual.

3. There are 4 bst files in context from which context chooses one for 
generating the list.
How context decides which bst file is used? Is it possible to use a bst file 
with another name?
(Just to make it clear: I don't want to use completely different bst file, only 
to modify one, eg cont-no.bst, save it with a different name and use that file.)

Thanks in advance,

bcsikos

___
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] line break between number and footnote text in paragraph footnotes

2015-04-01 Thread massifr
> On 4/1/2015 12:15 AM, mf wrote:
> > Hello,
> > I have a problem with paragraph footnotes. I don't know how to prevent a
> > line break occurring between the footnote number and the footnote text.
> > Sometimes a thing like this happens:
> >
> > ... [main text] ...
> >
> > --
> > 1. text of the first footnote --- 2. text of the second one --- 3.
> > text of the third one
> >
> > Is there a way to force ConTeXt to keep the "3." with "text of the third
> > one"?
> 
> example needed
> 
> -
>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
> -

Here it is:

\definenote[footnote]
\setupnotation[footnote][
  alternative=serried,
  numberstopper=, 
  numbercommand={\high},  
  numberconversion=a, 
  way=bypage, 
  width=0.5pt,
  location=page]

\setupnote[footnote][
  alternative=serried,
  paragraph=yes,
  inbetween= \emdash{} ,
  location=page,
  before={\blank[2*line]}]

\starttext
First footnote\footnote{this is the text of the first footnote}. Another
one\footnote{the second one, longer to get to the right margin}.
And the third one,\footnote{third footnote} with the “c” letter 
separated by a line break from the footnote text.
\stoptext

I'm using the ConTeXt package from Debian testing, version 
2014.05.21.20140528-2.
Here's the output of "context --version":
mtx-context | ConTeXt Process Management 0.60
mtx-context |
mtx-context | main context file: 
/usr/share/texmf/tex/context/base/context.mkiv
mtx-context | current version: 2014.05.21 22:04


___
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] Latest beta: reference to items broken in mkiv

2015-04-01 Thread Otared Kavian
Hi Hans,

It seems that referencing to items is broken in the latest beta mkiv: for 
example in the example below the command
\in{Item}[ref:2]
does not show item number 2.
However it works fine in mkii and previous releases.
Best regards: OK
PS: a minimal example follows
%%% begin ref-item-broken.tex
\starttext 

\startitemize[n]

\startitem[ref:1]
Item 1, reference 1
\stopitem

\startitem[ref:2]
Item 2, reference 2
\stopitem

\startitem[ref:3]
Item 3, reference 3
\stopitem

\stopitemize

See \in{Item}[ref:2] above.

\stoptext
%%% end ref-item-broken.tex
___
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
___