Re: [NTG-context] Updating LuaTeX after MacTeX-TeXLive 2008 (again)

2008-09-21 Thread Robert Blackstone
Hello Mojca,

I seem to have run into the same or similar problems as Otared Kavian.

I followed the instructions on the ConTeXt wiki, but the command

''luatools --generate'' gives the error message:


'LuaTools | error unable to identify cnf file

LuaTools | error unable to identify cnf file

LuaTools | no cnf files found (TEXMFCNF may not be set/known)

LuaTools |

LuaTools | runtime: 0.008 seconds',


regardless of the directory from which I issue the command, and though there
is a 28 KB file texmf.cnf sitting in /usr/local/texlive/2008/texmf/web2c.

As you succeeded in updating ConTeXt, luatex binary and ConTeXt scripts
manually, could you please share the method with us. I for one am not
sufficiently trained in unix to go there all by myself.

(I'm working on a G4 PowerBook under OSX-10.4.11)


Thank you in advance.

Robert Blackstone
___
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] Updating LuaTeX after MacTeX-TeXLive 2008

2008-09-22 Thread Robert Blackstone
Hi Mojca,

Thank you for your help. My problem is not over though, and a new problem
has turned up.


The first steps you described, In NTG-context Digest Vol 51, issue 81,
message 8, worked, that is, with sudo.

However, the last four commands, "texexec --make --all", "texexec --make
--xtx --all", "luatools --generate" and "context --make", returned the usual
error messages (with and without sudo and and issued from any directory
along the path "/usr/local/texlive/2008/bin/universal-darwin"):


RBs-Powerbook:/ robert$ sudo texexec --make --all

sudo: texexec: command not found


RBs-Powerbook:/ robert$ sudo texexec --make --xtx --all

sudo: texexec: command not found


RBs-Powerbook:/ robert$ sudo luatools --generate


LuaTools | error unable to identify cnf file

LuaTools | error unable to identify cnf file

LuaTools | no cnf files found (TEXMFCNF may not be set/known)

LuaTools |

LuaTools | runtime: 0.009 seconds


RBs-Powerbook:/ robert$ sudo context --make

sudo: context: command not found


In addition another problem has turned up: I cannot use Context anymore,
with TeXlive-2008 and TeXshop. When typesetting a file I get the following
message:

"/Users/robert/Library/TeXShop/Engines/context.engine: line 3:
/usr/texbin/texmfstart: Permission denied"


Line 3 of context.engine reads: texmfstart texexec --pdf
--passon="-synctex=1" "$1"


I already changed permissions of file texmfstart.rb to: Owner robert, Read &
Write. It didn't help.


When I choose TeXlive-2007 ConTeXt works OK.


So, what could I do about these two problems (which may be unconnected)?

Thanks in advance.


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


[NTG-context] Indenting first line of paragraphs

2008-10-02 Thread Robert Blackstone
Hi,

I would like to have the first line of paragraphs indented but the command
"\setupindenting[medium]" (or small or big ) does not produce anything, on
none of my machines (all Macs), and neither with TL2007 nor TL2008.

What can I do about it?

Thanks in advance.


Robert Blackstone
___
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] Indenting first line of paragraphs

2008-10-02 Thread Robert Blackstone
Thank you Wolfgang, "yes", I couldn't have thought of that. (And I hadn't
yet seen the article.)Robert Blackstone
___
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
___


[NTG-context] ConTeXt and LilyPond problem

2016-06-27 Thread Robert Blackstone
Dear All,

I am trying to get the combination of ConTeXt and LilyPond working.
I copied the example that I found on http://wiki.contextgarden.net/LilyPond , 
changing the setups a little (I don't have the font  Adobe Jenson Pro).

Processing it with mkiv from april this year and earlier produces a pdf with 
both zapf texts and in between the text: [[output file missing.

The log-file says: 
-
t-filter  . cached output file 
'lilytemp/LilyPond-ConTeXt-example-27-06-16-templilypond-0.pdf' missing. 
Rerunning filter
sh: lilypond: command not found 
t-filter  > file 
'lilytemp/LilyPond-ConTeXt-example-27-06-16-templilypond-0.pdf' cannot be found
-
Indeed there is no file 
lilytemp/LilyPond-ConTeXt-example-27-06-16-templilypond-0.pdf .

With LilyPond.app itself, using TeXShop as the editor, I have no problems. (But 
I have never been able to get it working from Terminal, generating only 
messages like "cannot execute binary file" and "Permission denied" even after 
running sudo chmod u+x .)

What can I do about it?

Thanks in advance for tips and suggestions.

Best regards, 
Robert Blackstone


___
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] ConTeXt and LilyPond problem

2016-06-28 Thread Robert Blackstone

On 28 Jun 2016, at 12:00 , 
Jean-Pierre Delange  wrote
> 
> Please, would you mind to answer these questions :
> 
> 1) Are you running ConTeXt as "Standalone" or with another install with LaTeX 
> ?
> 2) Is ConTeXt running under Linux or Windows ?
> 3) What is the example you've tried to test ?
> 4) Did you have created manually a "temp" file and a buffer as it is said 
> within the Context Garden page : "This works with ConTeXt MkII and MkIV, but 
> takes only the first page of multi-pages scores, and you must create the 
> folder "lilytemp" manually" ?
> 
Hello Jean-Pierre,
Thanks for your reaction.

Ref. 1: I am running ConTeXt as a standalone
Ref. 2: ConTeXt is running under Mac OSX 10.9.5. I use TeXShop as the editor.
Ref. 3: I attach the example to this mail
Ref. 4: Yes, I created a folder "lilytemp". It is in the same directory as the 
.tex-file I want to compile. But I have no idea how and where to create a 
buffer.

My guess is that ConTeXt does not find the or even a lilypond executable but I 
cannot see how and where I have to supply the path.

Best regards,
Robert Blackstone



LilyPond-ConTeXt-example-27-06-16.tex
Description: Binary data
___
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] ConTeXt and LilyPond problem

2016-06-28 Thread Robert Blackstone

On 28 Jun 2016, at 12:00 , Mojca Miklavec  wrote
> 
> On 27 June 2016 at 16:11, Robert Blackstone wrote:
>> Dear All,
>> 
>> I am trying to get the combination of ConTeXt and LilyPond working.
>> I copied the example that I found on http://wiki.contextgarden.net/LilyPond
>> , changing the setups a little (I don't have the font  Adobe Jenson Pro).
>> 
>> Processing it with mkiv from april this year and earlier produces a pdf with
>> both zapf texts and in between the text: [[output file missing.
>> 
>> The log-file says:
>> -
>> t-filter  . cached output file
>> 'lilytemp/LilyPond-ConTeXt-example-27-06-16-templilypond-0.pdf' missing.
>> Rerunning filter
>> sh: lilypond: command not found
>> t-filter  > file
>> 'lilytemp/LilyPond-ConTeXt-example-27-06-16-templilypond-0.pdf' cannot be
>> found
>> -
>> 
> 
> You first need to get lilypond working from Terminal, otherwise asking
> any other question on the ConTeXt mailing list won't really help much.
> 
> I created a shell script "lilypond" somewhere in PATH, containing [ ..] 
> and then it just consumes processor forever without producing any
> result. I'm not eager to start debugging right now, but just to let
> you know that getting lilypond to work from terminal is a prerequisite
> for getting the module to work.
> 
> Mojca

Thanks Mojca,

I have tried to get lilypond working from Terminal but without success. No idea 
why. Whatever I do Terminal replies with : cannot execute binary file.
I will now try to get some advice from the LilyPond list. 

Best regards,
Robert Blackstone





___
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] ConTeXt and LilyPond problem

2016-06-29 Thread Robert Blackstone

On 28 Jun 2016, at 14:16 , Mojca Miklavec  wrote
>> 
>> On 27 June 2016 at 16:11, Robert Blackstone wrote:
>>> Dear All,
>>> 
>>> I am trying to get the combination of ConTeXt and LilyPond working.
>>> I copied the example that I found on http://wiki.contextgarden.net/LilyPond
>>> , changing the setups a little (I don't have the font  Adobe Jenson Pro).
>>> 
>>> Processing it with mkiv from april this year and earlier produces a pdf with
>>> both zapf texts and in between the text: [[output file missing.
>>> 
>> 
>> You first need to get lilypond working from Terminal, otherwise asking
>> any other question on the ConTeXt mailing list won't really help much.
>> 
>> 
>> Mojca
> 
> Thanks Mojca,
> 
> I have tried to get lilypond working from Terminal but without success. No 
> idea why. Whatever I do Terminal replies with : cannot execute binary file.

Dear all, and in particular Mojca Miklavec and Jean-Pierre Delange, who reacted 
to my first call for help, 

I think I have solved my problem.
Somehow I managed to get Lilypond working from Terminal.  Then I placed the 
ConTeXt-example with the LilyPond filter that I tried to compile in the same 
directory als the lilypond binary. Compiling it, as usual, from TeXShop it 
still did not start LilyPond and the .pdf still had: "[[output file missing"  
where the musical example should have been.
However, compiling the file from Terminal did work.

Best regards,
Robert Blackstone







___
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] ConTeXt and LilyPond, another question

2016-06-30 Thread Robert Blackstone
Dear all,

Inserting LilyPond scores or snippets into a ConTeXt file gives very nice 
results, better than inserting LilyPond pdf's as floats.
So far however, using floats has the advantage that they can be given a 
caption, that ConTeXt gives them a number, that one gets a list of floats in 
the ToC, that they can be indexed etc. etc., things that, as far as I can see, 
are missing when entering LilyPond code directly into the TeX-file and use the 
filter.

Does any of you know how this handicap can be overcome? Or else, would it be 
possible either to add these facilities to the filter or create some other 
means for providing the LilyPond examples with a caption and a number?  

Best regards,
Robert Blackstone

 


___
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] ntg-context Digest, Vol 144, Issue 56

2016-07-01 Thread Robert Blackstone

On 30 Jun 2016, at 22:58 ,  Aditya Mahajan  wrote: 

> On Thu, 30 Jun 2016, Robert Blackstone wrote:
> 
>> Dear all,
>> 
>> Inserting LilyPond scores or snippets into a ConTeXt file gives very nice 
>> results, better than inserting LilyPond pdf's as floats.
>> So far however, using floats has the advantage that they can be given a 
>> caption, that ConTeXt gives them a number, that one gets a list of floats in 
>> the ToC, that they can be indexed etc. etc., things that, as far as I can 
>> see, are missing when entering LilyPond code directly into the TeX-file and 
>> use the filter.
>> 
>> Does any of you know how this handicap can be overcome? Or else, would it be 
>> possible either to add these facilities to the filter or create some other 
>> means for providing the LilyPond examples with a caption and a number?
> 
> Filters should work inside floats.
> 
> Can you post a minimal example showing what you are doing?
> 
> Aditya

Thanks Aditya, for this information.
 
I will try to find a working solution with a float. If I cannot solve my 
problem I will post a minimal example, although I think that to show what I 
would like to do but cannot do I will need a fairly large example. 
Do I understand correctly that you also have LilyPond.app installed?

Best regards,
Robert

 

___
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] ConTeXt and LilyPond, another question

2016-07-01 Thread Robert Blackstone
On 30 Jun 2016, at 22:58 ,  Aditya Mahajan  wrote: On 30 Jun 
2016, at 22:58 ,  Aditya Mahajan  wrote: 


>> On Thu, 30 Jun 2016, Robert Blackstone wrote:
>> 
>>> Dear all,
>>> 
>>> Inserting LilyPond scores or snippets into a ConTeXt file gives very nice 
>>> results, better than inserting LilyPond pdf's as floats.
>>> So far however, using floats has the advantage that they can be given a 
>>> caption, that ConTeXt gives them a number, that one gets a list of floats 
>>> in the ToC, that they can be indexed etc. etc., things that, as far as I 
>>> can see, are missing when entering LilyPond code directly into the TeX-file 
>>> and use the filter.
>>> 
>>> Does any of you know how this handicap can be overcome? Or else, would it 
>>> be possible either to add these facilities to the filter or create some 
>>> other means for providing the LilyPond examples with a caption and a number?
>> 
>> Filters should work inside floats.
>> 
>> Can you post a minimal example showing what you are doing?
>> 
>> Aditya
> 
Thanks Aditya, for this information.

I will try to find a working solution with a float. If I cannot solve my 
problem I will post a minimal example, although I think that to show what I 
would like to do but cannot do I will need a fairly large example. 
Do I understand correctly that you also have LilyPond.app installed?

Best regards,
Robert

___
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] What is wrong with \stopintro?

2016-07-21 Thread Robert Blackstone
Dear all, 

One my project files, that In previous versions of the standalone mkiv compiled 
without any problems, doesn't compile in the standalone I installed recently 
(version 2016.07.18 16;26).
It gives me an error warning hat I don’t understand:

+
tex error   > tex error on line 191 in file TD-Ch0-R1-index-UTF8-4CUP.tex: 
! Missing number, treated as zero

 
\23>>currentnamedsection 
\popmacro ...m_syst_helpers_push_macro \endcsname 
  \global \advance \lastname...
l.191 \stopintro
+

The processed file starts with:
++
\definehead [intro] [chapter]
\setuphead  [intro] [number=no,alternative=middle,style=\tfa \bf]

\startcomponent TD_Ch0-Intro.tex
\intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}]
+++

and ends on line 191 with the error-causing command:
\stopintro

I should add that this particular file is input in the projectfile that also 
uses many others, like setup-files and .bbl's. It is however this particular 
file, TD-Ch0-R1-index-UTF8-4CUP.tex, that gives me problems. 

What can I do about this (other than compiling with an older version of mkiv) ?

Thanks in advance for any help.

Best regards,
Robert Blackstone
___
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] ntg-context Digest, Vol 145, Issue 61

2016-07-21 Thread Robert Blackstone

On 21 Jul 2016, at 19:21 , : Hans Hagen  wrote>
> 
> On 7/21/2016 3:53 PM, Robert Blackstone wrote:
>> One my project files, that In previous versions of the standalone mkiv 
>> compiled without any problems, doesn't compile in the standalone I installed 
>> recently (version 2016.07.18 16;26).
>> It gives me an error warning hat I don’t understand:
>> +
>> tex error   > tex error on line 191 in file 
>> TD-Ch0-R1-index-UTF8-4CUP.tex: ! Missing number, treated as zero
>> 
>> ..
>> l.191 \stopintro
>> +
>> 
>> The processed file starts with:
>> ++
>> \definehead [intro] [chapter]
>> \setuphead  [intro] [number=no,alternative=middle,style=\tfa \bf]
>> 
>> \startcomponent TD_Ch0-Intro.tex
>> \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}]
> 
> shouldn't that be \startintro then?

Yes. 
Problem solved. Thank you.
(It has been nice that the previous versions have been very forgiving for a 
fool like me.)

Best regards,
Robert

___
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] What is wrong with \stopintro?

2016-07-21 Thread Robert Blackstone

On 21 Jul 2016, at 19:21 , : Hans Hagen  wrote>
> 
> On 7/21/2016 3:53 PM, Robert Blackstone wrote:
>> One my project files, that In previous versions of the standalone mkiv 
>> compiled without any problems, doesn't compile in the standalone I installed 
>> recently (version 2016.07.18 16;26).
>> It gives me an error warning hat I don’t understand:
>> +
>> tex error   > tex error on line 191 in file 
>> TD-Ch0-R1-index-UTF8-4CUP.tex: ! Missing number, treated as zero
>> 
>> ..
>> l.191 \stopintro
>> +
>> 
>> The processed file starts with:
>> ++
>> \definehead [intro] [chapter]
>> \setuphead  [intro] [number=no,alternative=middle,style=\tfa \bf]
>> 
>> \startcomponent TD_Ch0-Intro.tex
>> \intro[bookmark=,label=,list={Introduction},marking=,reference=ch:Intro,title={Introduction}]
> 
> shouldn't that be \startintro then?

Yes. 
Problem solved. Thank you.
(It has been nice that the previous versions have been very forgiving for a 
fool like me.)

Best regards,
Robert___
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] Hyphenation errors (again or still) in recent mkiv

2016-07-31 Thread Robert Blackstone
Dear all,

In the setupfile of my project I have \mainlanguage[en]. The font used is 
Verdana. 
With mkiv versions till october 2015 the hyphenation of English words was 
always correct.

The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) give 
hyphenations that are definitely wrong.
Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle 

I made some tests with Linux Libertine sans and here also the earlier mkiv's 
gave correct hyphenations, the july version wrong ones.

So it seems that ref. hyphenation something is wrong with this mkiv-version.  
Or do I now have to use something other than  \mainlanguage[en] ? 

BTW, I found a similar discussion on this list at the beginning of february. 
Apparently the problem either was not solved or has returned.

Thanks in advance for advice. 

Best regards,

Robert Blackstone
___
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] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Robert Blackstone

On 31 Jul 2016, at 21:06 ,  Hans Hagen 
> 
> On 7/31/2016 12:57 PM, Robert Blackstone wrote:
>> Dear all,
>> 
>> In the setupfile of my project I have \mainlanguage[en]. The font used is 
>> Verdana.
>> With mkiv versions till october 2015 the hyphenation of English words was 
>> always correct.
>> 
>> The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) 
>> give hyphenations that are definitely wrong.
>> Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle
>> 
>> I made some tests with Linux Libertine sans and here also the earlier mkiv's 
>> gave correct hyphenations, the july version wrong ones.
>> 
>> So it seems that ref. hyphenation something is wrong with this mkiv-version. 
>>  Or do I now have to use something other than  \mainlanguage[en] ?
> 
> no example so no solution
> 
> Hans


Hi Hans,

Here is an example:

%

\mainlanguage[en]
\usemodule[simplefonts]
\setmainfont[Verdana]
\setupbodyfont[10pt]
\contextversion
\showgrid

\starttext
\input knuth
\medskip
\input tufte
\stoptext

%

With mkiv version 2015.10.09 21:28 there are no hyphenation errors.
With mkiv version 2016.07.18 16:46 the following errors occur: wo-uld (line 6), 
synth-esize (line 13), enum-erate (line 18) 
I mentioned some more errors in my original mail, see above.

Best regards,

Robert Blackstone




___
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] Hyphenation errors (again or still) in recent mkiv

2016-08-01 Thread Robert Blackstone

On 1 Aug 2016, at 12:00 , Hans Hagen 
>>> 
>>> On 7/31/2016 12:57 PM, Robert Blackstone wrote:
>>>> Dear all,
>>>> 
>>>> In the setupfile of my project I have \mainlanguage[en]. The font used is 
>>>> Verdana.
>>>> With mkiv versions till october 2015 the hyphenation of English words was 
>>>> always correct.
>>>> 
>>>> The same files compiled with mkiv of july 2016 (version 2016.07.18 16;26) 
>>>> give hyphenations that are definitely wrong.
>>>> Some examples: begi-nning, pr-ocedure, adequ-ately, st-yle
>>>> 
>>>> I made some tests with Linux Libertine sans and here also the earlier 
>>>> mkiv's gave correct hyphenations, the july version wrong ones.
>>>> 
>>>> So it seems that ref. hyphenation something is wrong with this 
>>>> mkiv-version.  Or do I now have to use something other than  
>>>> \mainlanguage[en] ?
>>> 
>>> no example so no solution
>>> 
>>> Hans
>> 
>> 
>> Hi Hans,
>> 
>> Here is an example:
>> 
>> %
>> 
>> \mainlanguage[en]
>> \usemodule[simplefonts]
>> \setmainfont[Verdana]
>> \setupbodyfont[10pt]
>> \contextversion
>> \showgrid
>> 
>> \starttext
>> \input knuth
>> \medskip
>> \input tufte
>> \stoptext
>> 
>> %
>> 
>> With mkiv version 2015.10.09 21:28 there are no hyphenation errors.
>> With mkiv version 2016.07.18 16:46 the following errors occur: wo-uld (line 
>> 6), synth-esize (line 13), enum-erate (line 18)
>> I mentioned some more errors in my original mail, see above.
> 
> I get
> 
> Thus, I came to the conclusion that the designer of a new system must 
> not only be
> the implementer and first large--scale user; the designer should also 
> write the first
> user manual.
> The separation of any of these four components would have hurt T E X 
> significantly. If
> I had not participated fully in all these activities, literally hundreds 
> of improvements
> would never have been made, because I would never have thought of them 
> or per-
> ceived why they were important.
> But a system cannot be successful if it is too strongly influenced by a 
> single person.
> Once the initial design is complete and fairly robust, the real test 
> begins as people
> with many different viewpoints undertake their own experiments.
> We thrive in information--thick worlds because of our marvelous and 
> everyday ca-
> pacity to select, edit, single out, structure, highlight, group, pair, 
> merge, harmo-
> nize, synthesize, focus, organize, condense, reduce, boil down, choose, 
> categorize,
> catalog, classify, list, abstract, scan, look into, idealize, isolate, 
> discriminate, dis-
> tinguish, screen, pigeonhole, pick over, sort, integrate, blend, 
> inspect, filter, lump,
> skip, smooth, chunk, average, approximate, cluster, aggregate, outline, 
> summarize,
> itemize, review, dip into, flip through, browse, glance into, leaf 
> through, skim, re-
> fine, enumerate, glean, synopsize, winnow the wheat from the chaff and 
> separate the
> sheep from the goats.

Hi Hans,
I'm afraid I'm lost here.
When I copy what you write you get and paste it into my example I still get, 
with Verdana 10 pt, no hyphenation errors with mkiv version 2015.10.09 21:28 
and some with mkiv version 2016.07.18 16:46: marv-elous and di-scriminate.

So doesn't it show that at least the two mkiv-versions differ in this respect 
and that when using the new version something extra or different has to be done 
in the setups to get the correct hyphenations?
Fortunately I still have kept some of the older ConTeXt-versions, so my project 
will not suffer from hyphenation error. But I suspect that reliance on older 
versions should not have to be necessary.

Best regards,
Robert Blackstone




___
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] Hyphenation errors (again or still) in recent mkiv

2016-08-02 Thread Robert Blackstone

On 1 Aug 2016, at 14:40 , Hans Hagen 
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] Hyphenation errors (again or still) in
>   recent mkiv
> Message-ID: 
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 8/1/2016 11:52 AM, Wolfgang Schuster wrote:
>>> Robert Blackstone <mailto:blackstone.rob...@gmail.com>
>>> 1. August 2016 um 11:02
>>> On 31 Jul 2016, at 21:06 , Hans Hagen 
>>> 
>>> 
>>> Hi Hans,
>>> 
>>> Here is an example:
>>> 
>>> %
>>> 
>>> \mainlanguage[en]
>>> \usemodule[simplefonts]
>>> \setmainfont[Verdana]
>>> \setupbodyfont[10pt]
>>> \contextversion
>>> \showgrid
>>> 
>>> \starttext
>>> \input knuth
>>> \medskip
>>> \input tufte
>>> \stoptext
>> The wrong hyphenation happens also with the default font.
>> 
>> %\startexceptions[en]
>> %would syn-the-size enu-mer-ate
>> %\stopexceptions
>> 
>> \starttext \hsize=1mm
>> would synthesize enumerate
>> \stoptext
> 
> just wondering, as on my machine and luigi's things run ok .. can this 
> be a osx binary issue?
> 
> Hans

My apologies for not answering this particular question, other than by saying 
that indeed I work on a Mac, two in fact, one with  OSX 10.9.5 Mavericks, the 
other on OS X 10.11.5 El Capitan.
No difference in this respect: they produce the same hyphenation errors in an 
English text.

To complicate (perhaps) matters a bit: I did some tests with German, French and 
Italian texts. Compilation with different mkiv - versions produced no 
differences and no hyphenation errors.
So far I found hyhpenation errors only in English texts compiled with recent 
mkiv's  on a Mac.

I hope this helps to find a remedy.

Best regards,

Robert Blackstone





___
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] Strange problem with Blockquote

2016-08-16 Thread Robert Blackstone
Dear all, 

I have a small but nasty problem with the book I’m (still) working on.

Its 10 chapters contain many Blockquotes, and they all come out as intended 
except one, in the first, unnumbered, chapter “Introduction". That particular 
blockquote v]comes out like the others only as far as its width and its 
fontsize are concerned, but unlike the others it insists on keeping the same 
interline distance as the main text. Even that would not have been too much of 
a problem if it had not spoiled the layout by pushing a rather large float off 
the page, leaving a large gap.

This particular chapter is input by means of the Frontmatter file, as is Ch1, 
which also contains several Blockquotes, that come out OK.

When I process this chapter “Introduction" separately with the same setups the 
blockquote also comes out allright.
When, as a test, I input that chapter again, the second time through the 
Bodymatter, then again it comes out allright (while the blockquote in the real 
Ch0 keeps its large interline distance).
 
I have tried the following:
- add the setup for the blockquote to the Frontmatter file
- add the setup for the blockquote also to the Ch0 file itself
- add \setupinterlinespace[small] in the text just before the blockquote and 
\setupinterlinespace[reset] after it.
None of this has changed the interline distance of the blockquote one bit.

Is there anybody on this list for whom this problem is or sounds familiar and 
who knows a remedy?
If not, which information would I have to give to make a diagnosis possible?
(It may be evident that it is impossible to show the problem in an MWE.)

Thanks in advance for any help.

Best regards,
Robert Blackstone
___
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] Strange problem with Blockquote

2016-08-17 Thread Robert Blackstone

On 17 Aug 2016, at 02:19 ,  Pablo Rodriguez  wrote
> 
> 
> Hi Robert,
> 
> from what I get from your message, there is only one blockquote in the
> introduction.
> 
> How about adding the following code before \starttext?
> 
>\startsectionblockenvironment[frontpart]
>\setupinterlinespace[small] % or whichever value you want
>\stopsectionblockenvironment
> 
> I think it might work. I hope it helps,
> 
> Pablo


Hi Pablo, 

Thanks for your suggestion. I did try to insert this code where I thought I 
might help, though must admit that I'm not sure what to do with the argument 
[frontpart].
In my projectfiles, admittedly rather a mess, there is nothing with the name 
frontpart. Anyway, with or without this or some other possibly more appropriate 
argument, nothing changed the behaviour of this, or rather a blockquote in this 
first chapter, not even surrounding the blockquote itself with 
\setupinterlinespace[small] ...  \setupinterlinespace[reset], as I wrote in my 
original post. 

But, while I was writing this reply it occurred to me that maybe there might be 
some local variant for \setupinterlinespace[small]  and, yes, I found 
\setuplocalinterlinespace[line=4ex] on the ConTeXt wiki and this does the 
trick. (with [line-3ex]).

So you did help me, though maybe not in the way you intended ;-)

Thanks again,

Best regards,

Robert

___
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] insert pagebreak in toc (MkIV)

2016-09-05 Thread Robert Blackstone
Dear all (but maybe in particular Dear Hans),

I need a pagebreak in the ToC to avoid a widow.
So far I used the method given in sept 2010 in 
https://mailman.ntg.nl/pipermail/ntg-context/2010/052739.html, and still on 
http://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break,  but it does 
not seem to work anymore.

MWE (from the first-mentioned site):
%%%

\definelistextra[page][before=\page,after=\page]

\starttext

 \placelist[chapter,section][criterium=text,extras={1.1=page}]

 \chapter{x1}
 \section{xx1}
 \section{xx2}
 \chapter{y2}
 \section{yy1}
 \section{yy2}

\stoptext

%
Compiled with a recent mkiv, from between sept 2015 till july 2016, the result 
shows no page break in the ToC.
What can be done about this?

Thanks in advance for any help.

Best regards,
Robert Blackstone

 ___
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] insert pagebreak in toc (MkIV)

2016-09-05 Thread Robert Blackstone

On 5 Sep 2016, at 11:06 ,  Hans Hagen  wrote
> 
> On 9/5/2016 9:06 AM, Robert Blackstone wrote:
>> 
>> I need a pagebreak in the ToC to avoid a widow.
>> So far I used the method given in sept 2010 in 
>> https://mailman.ntg.nl/pipermail/ntg-context/2010/052739.html, and
>> still on http://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break,  
>> but
>> it does not seem to work anymore.
>> 
>> MWE (from the first-mentioned site):
>> %%%
>> 
>> \definelistextra[page][before=\page,after=\page]
>> 
>> \starttext
>> 
>> \placelist[chapter,section][criterium=text,extras={1.1=page}]
>> 
>> \chapter{x1}
>> \section{xx1}
>> \section{xx2}
>> \chapter{y2}
>> \section{yy1}
>> \section{yy2}
>> 
>> \stoptext
>> 
>> %
>> Compiled with a recent mkiv, from between sept 2015 till july 2016, the
>> result shows no page break in the ToC.
>> What can be done about this?
> 
> \showinjector
> 
> \setinjector[register][3][\column]
> \setinjector[list][2][{\blank[3*big]}]
> 
> \starttext
> \placelist[section][criterium=text]
> \blank[3*big]
> \placeregister[index][criterium=text]
> \page
> \startsection[title=Alpha] first  \index{first}  \stopsection
> \startsection[title=Beta]  second \index{second} \stopsection
> \startsection[title=Gamma] third  \index{third}  \stopsection
> \startsection[title=Delta] fourth \index{fourth} \stopsection
> \stoptext

Thanks Hans, for your quick reaction.

Maybe my question was not clear enough but in any case your remedy does not 
help me.
I have adapted your MWE containing the remedy a bit to make the problem a bit 
more obvious:

%%
\setinjector[register][3][\column]
\setinjector[list][][{\blank[3*big]}]

\starttext
\placelist[chapter,section][criterium=text]
\blank[3*big]
\startchapter[title={Introduction}]
\startsection[title=Alpha]  \index{first}  \stopsection
\startsection[title=Beta]  second \index{second} \stopsection 
\stopchapter
\startchapter[title={History}]
\startsection[title=Gamma] third  \index{third}  \stopsection
\startsection[title=Delta] fourth \index{fourth} \stopsection 
\stopchapter
\startchapter[title={Index}]
\placeregister[index][criterium=text]
\stopchapter
\stoptext

What I would need is a forced page break in the ToC, in this example before 
Chapter 2.
A few months ago this could still be accomplished by inserting into the 
preamble "\definelistextra[page][before=\page,after=\page]",  and 
"\placelist[chapter,section][criterium=text,extras={1.2=page}]" in the text.
But now, with the same version of mkiv, nothing happens.
Has this method of forcing a page-break in the ToC mysteriuosly diswppeared or 
do I use the worng command?

Best regards,
Robert Blackstone





___
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] insert pagebreak in toc (MkIV)

2016-09-06 Thread Robert Blackstone

On 6 Sep 2016, at 09:06 ,  Robert Blackstone 
> To: ntg-context@ntg.nl
> 
> On 5 Sep 2016, at 11:06 ,  Hans Hagen  wrote
>> 
>> On 9/5/2016 9:06 AM, Robert Blackstone wrote:
>>> 
>>> I need a pagebreak in the ToC to avoid a widow.
>>> So far I used the method given in sept 2010 in 
>>> https://mailman.ntg.nl/pipermail/ntg-context/2010/052739.html, and
>>> still on http://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break, 
>>>  but
>>> it does not seem to work anymore.
>>> 
>>> MWE (from the first-mentioned site):
>>> %%%
>>> 
>>> \definelistextra[page][before=\page,after=\page]
>>> 
>>> \starttext
>>> 
>>>\placelist[chapter,section][criterium=text,extras={1.1=page}]
>>> 
>>>\chapter{x1}
>>>\section{xx1}
>>>\section{xx2}
>>>\chapter{y2}
>>>\section{yy1}
>>>\section{yy2}
>>> 
>>> \stoptext
>>> 
>>> %
>>> Compiled with a recent mkiv, from between sept 2015 till july 2016, the
>>> result shows no page break in the ToC.
>>> What can be done about this?
>> 
>> \showinjector
>> 
>> \setinjector[register][3][\column]
>> \setinjector[list][2][{\blank[3*big]}]
>> 
>> \starttext
>>\placelist[section][criterium=text]
>>\blank[3*big]
>>\placeregister[index][criterium=text]
>>\page
>>\startsection[title=Alpha] first  \index{first}  \stopsection
>>\startsection[title=Beta]  second \index{second} \stopsection
>>\startsection[title=Gamma] third  \index{third}  \stopsection
>>\startsection[title=Delta] fourth \index{fourth} \stopsection
>> \stoptext
> 
> Thanks Hans, for your quick reaction.
> 
> Maybe my question was not clear enough but in any case your remedy does not 
> help me.
> .. etc.

Dear Hans, 
My apologies. Your remedy does help. Initially I just didn’t understand what to 
do with this injector.

Best regards,
Robert Blackstone


> 
> 
> 
> 
> 
> 
> --
> 
> Message: 2
> Date: Mon, 5 Sep 2016 16:33:53 +0200
> From: Pablo Rodriguez 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] bug in latest beta?
> Message-ID: <58e9fb16-dade-5cb0-3c0c-c2cc572d9...@gmx.es>
> Content-Type: text/plain; charset=utf-8
> 
> On 09/05/2016 10:39 AM, Akira Kakuto wrote:
>>> the following sample gives a Lua error with latest beta (2016.09.04 13:46):
>> 
>> Compilation is fine in the latest luatex 0.98.4 with
>> mtx-context | current version: 2016.09.04 13:46.
>> 
> 
> Hi Akira,
> 
> it seems that luatex-0.98.4 has been released for Windows today.
> 
> I will wait for the release in the Linux 32bit platform.
> 
> Luigi, would it be possible that all platforms have the latest LuaTeX
> version included?
> 
> Many thanks for your help,
> 
> 
> Pablo
> -- 
> http://www.ousia.tk
> 
> 
> --
> 
> Message: 3
> Date: Mon, 5 Sep 2016 16:44:16 +0200
> From: luigi scarso 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] bug in latest beta?
> Message-ID:
>   
> Content-Type: text/plain; charset=UTF-8
> 
> On Mon, Sep 5, 2016 at 4:33 PM, Pablo Rodriguez  wrote:
>> On 09/05/2016 10:39 AM, Akira Kakuto wrote:
>>>> the following sample gives a Lua error with latest beta (2016.09.04 13:46):
>>> 
>>> Compilation is fine in the latest luatex 0.98.4 with
>>> mtx-context | current version: 2016.09.04 13:46.
>>> 
>> 
>> Hi Akira,
>> 
>> it seems that luatex-0.98.4 has been released for Windows today.
>> 
>> I will wait for the release in the Linux 32bit platform.
>> 
>> Luigi, would it be possible that all platforms have the latest LuaTeX
>> version included?
> 
> experimental is, well, experimental, so not trunk and not even a tag
> (i.e. a new version).
> But you can easily compile it from svn, it's a matter of
> ./build.sh --parallel --jit
> 
> 
> -- 
> luigi
> 
> 
> --
> 
> Message: 4
> Date: Mon, 5 Sep 2016 17:10:51 +0200
> From: Pablo Rodriguez 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] bug in latest beta?
> Message-ID: <2aaaf0cb-153a-8a12-e49c-78856eda2...@gmx.es>
> Content-Type: text/plain; charset=utf-8
> 
> On 09/05/2016 08:36 AM, josephcan...@gmail.com wrote:
>> Dear all,
>> 
>> Sounds like  a typo in file
>> te

[NTG-context] Chapter-subtitle and a short version of a( long) chapter title to fit in the header

2017-01-10 Thread Robert Blackstone
Dear all, 

Presently I’m restyling a PhD-dissertation to make it conform to the 
requirements of an external publisher.

One of the items is the form of the chapter-heads.
What would be needed on the first page of a chapter, Chapter 1 for instance, is:
 
- Chapter 1  (midaligned, boldface, smallish size (\tfa))
- some vertical space
- Chapter title (midaligned, SmallCaps, slanted, \tfc)
- some vertical space
- (for some chapters) Chapter subtitle, (midaligned, SmallCaps, slanted, \tfb 
or smaller)

Furthermore I would need a header with the chapter-title on the even-numbered 
pages and the section-title on the odd-numbered pages.
The problem here is that some of the chapter titles are too long for this and 
they overlap the pagenumbers in the header. 
That is why I would need a shorter form of the chapter title and in some cases 
a main title and a subtitle.

As far as I know, in the command to start a chapter there is no possibility to 
introduce, in addition to the special version of the title for the ToC, another 
special, shorter, version of the title for the header.   nor a subtitle. 

I use:

\startchapter[bookmark=,list={Accompaniment in the 16th and 17th century and 
the development of BC},marking=,reference=ch:HistDevel,title={Accompaniment in 
the sixteenth and seventeenth century and the development of basso 
continuo}]%[a=a,b=b]

For the headertexts I use what I found on  
http://wiki.contextgarden.net/Headers_and_Footers and it works quite well:

 %%%
\setupheadertexts[]
\setupheadertexts[\setups{text a}][][][\setups{text b}]

\startsetups[text a]
  \rlap{\sc \getmarking[section]}
  \hfill
  \llap{\pagenumber}
\stopsetups

\startsetups[text b]
  \rlap{\pagenumber}
  \hfill
  \llap{\sc \getmarking[chapter]}
\stopsetups
%%%

So my main problem is that I need, in the command \startchapter, a third form 
for the chapter title to fit in the header and a compatible version of the 
setup for the headertexts.

I did try to extract that from the ConTeXt wiki but I soon got lost.

Thanks  in advance for any help.

Best regards,

Robert Blackstone

___
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] Chapter-subtitle and a short version of a (long) chapter title to fit in the header

2017-01-24 Thread Robert Blackstone

On 24 Jan 2017, at 09:34 , Aditya Mahajan  wrote:
> 
> On Tue, 10 Jan 2017, Robert Blackstone wrote:
> 
>> So my main problem is that I need, in the command \startchapter, a third 
>> form for the chapter title to fit in the header and a compatible version 
>> of the setup for the headertexts.
> 
> This is what the `marking` key is for.
> 
> \starttext
> \startchapter[title={Title}, list={What goes to table of contents}, 
> marking={What goes to header and footers}]
> 
> ...
> 
> \stopchapter
> \stoptext
> 
> Aditya
Thanks Aditya.
This is what I needed. 

Best regards,
Robert
___
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] Chapter-head: number, title and subtitle

2017-01-25 Thread Robert Blackstone
Dear all, 

This is  the upper half of a post I submitted on jan 7 with two questions 
(which was rather foolish of me), of which the second has already been answered 
by Aditya Mahajan. 
The first, still open, question was: 

Presently I’m restyling a PhD-dissertation to make it conform to the 
requirements of an external publisher.
One of the items is the content and layout of the chapter-heads.
What would be needed as a chapter-head, of Chapter 1 for instance, is, on two 
or, occasionally three, lines:

- Chapter 1  (midaligned, boldface, smallish size (\tfa))
- some vertical space
- Chapter title (midaligned, SmallCaps, slanted, \tfc)
- some vertical space
- (for some chapters) Chapter subtitle, (midaligned, SmallCaps, slanted, \tfb 
or smaller)

Can ConTeXt be tweaked to yield such a chapter-head?

Thanks in advance for any advice. 
Best regards,

Robert Blackstone
___
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] Problem with setup for fonts

2017-08-24 Thread Robert Blackstone
Dear all,
I’ve been “out of ConTeXt” for a few months. In the meantime some things seem 
to have changed quite a bit.
My present task is to handle the typesetting of the revision, for an external 
publisher, of my wife’s PhD thesis. I stumbled on a problem with fonts.

I can typeset the book in its present version and the revised chapters with 
mkiv versions till mid 2016. The version I recently installed, on 23-08-2017, 
does not recognize the setups for the font selection anymore.
The MWE below shows the problem.
The older mkiv’s give Verdana, the present version  some different font, 
probably the default TeX font.
The same happens, m.m., when I replace Verdana with, for example, dejavu.

%++MWE+++
\usemodule[simplefonts]
\setmainfont[Verdana]
\setupbodyfont[10pt]
%\setupinterlinespace[line=18pt]

\definebodyfontenvironment[10pt][interlinespace=19pt]
\definebodyfontenvironment[9pt]%[interlinespace=16pt]
\definebodyfontenvironment[8pt]

\setupindenting[yes,20pt]%,next]
\setuppagenumbering[alternative=doublesided]


\starttext
\input knuth
\stoptext

%%+++%% 

So clearly these commands do not work anymore.
I experimented a bit with information on wiki.contextgarden.net but without 
success.

Can someone help me out here?

Thanks in advance.

Best regards,
Robert Blackstone

___
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] Problem with setup for fonts

2017-08-24 Thread Robert Blackstone

On 24 Aug 2017, at 17:10 , Pablo Rodriguez  wrote:
> 
> On 08/24/2017 10:57 AM, Robert Blackstone wrote:
>> [...]
>> %++MWE+++
>> \usemodule[simplefonts]
>> \setmainfont[Verdana]
>> \setupbodyfont[10pt]
> 
> Robert,
> 
> those command now read:
> 
>\definefontfamily[mainface][rm][Verdana]
>\setupbodyfont[mainface, 10pt]
>\starttext
>\input zapf
>\stoptext
> 
> I hope it helps,
> 
> Pablo

Thanks Pablo. It does help.

Best regards,
Robert

___
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] Problem with setup for fonts

2017-08-25 Thread Robert Blackstone
On 08/24/2017 10:57 AM, Robert Blackstone wrote:
>>> [...]
>>> %++MWE+++
>>> \usemodule[simplefonts]
>>> \setmainfont[Verdana]
>>> \setupbodyfont[10pt]
does not work anymore in mkiv versions later than july 2016.

Pablo Rodriguez helped me out:
>> 
>> Robert,
>> 
>> those commands now read:
>> 
>>   \definefontfamily[mainface][rm][Verdana]
>>   \setupbodyfont[mainface, 10pt]
>>   \starttext
>>   \input zapf
>>   \stoptext
>> 
>> I hope it helps,
>> 
>> Pablo

It does help but for the Law of the Conservation of Trouble (or Misery)

Having properly changed my font setup  ConTeXt stumbles upon things like:

“ 7~$\xrightarrow[none]$~6 progression ” 

The error message is:  " ! Ma error: parameter \Umathquad\textstyle is not set."

How and where can I remedy this? 

Thanks in advance  for any advice.

Best regards, 
Robert Blackstone


___
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] Problem with setup for fonts

2017-08-27 Thread Robert Blackstone

On 25 Aug 2017, at 17:34 , Hans Hagen  wrote:
> To: ntg-context@ntg.nl
> 
> On 8/25/2017 12:21 PM, Robert Blackstone wrote:
>> On 08/24/2017 10:57 AM, Robert Blackstone wrote:
>>>>> [...]
>>>>> %++MWE+++
>>>>> \usemodule[simplefonts]
>>>>> \setmainfont[Verdana]
>>>>> \setupbodyfont[10pt]
>> does not work anymore in mkiv versions later than july 2016.
>> 
>> Pablo Rodriguez helped me out:
>>>> 
>>>> Robert,
>>>> 
>>>> those commands now read:
>>>> 
>>>>   \definefontfamily[mainface][rm][Verdana]
>>>>   \setupbodyfont[mainface, 10pt]
>>>>   \starttext
>>>>   \input zapf
>>>>   \stoptext
>>>> 
>>>> I hope it helps,
>>>> 
>>>> Pablo
>> 
>> It does help but for the Law of the Conservation of Trouble (or Misery)
>> 
>> Having properly changed my font setup  ConTeXt stumbles upon things like:
>> 
>> “ 7~$\xrightarrow[none]$~6 progression ”
>> 
>> The error message is:  " ! Ma error: parameter \Umathquad\textstyle is not 
>> set."
>> 
>> How and where can I remedy this?
> This means that you haven't defined a math font so you need something:
> 
> \definefontfamily[mainface][rm][Verdana]
> \definefontfamily[mainface][tt][Courier]
> \definefontfamily[mainface][mm][Cambria]
> 
> or so, depending on what combination you want

Hi Hans,
Thanks for your reaction. Unfortunately it has not helped me for I have no idea 
how to set the parameter \Umathquad\textstyle. Just loading the fonts, as I 
believed you suggest in your mail, does not change anything: the compilation 
with a 2017 mkiv still stops at  “ 7~$\xrightarrow[none]$~6 progression ”.
However, when I use the older font calls, 
 \usemodule[simplefonts]
\setmainfont[Verdana]  
it compiles correctly files containing arrows ( $\xrightarrow[none]$ )  with 
the pre-2017 mkiv's . With my 2017 mkiv it still compiles correctly albeit not 
with the specified font but with latinmodern-math.otf. (Btw, I found the same 
behaviour for other fonts, such as: dejavu, times, palatino, bonum, lucidanova, 
lucida, garamond, libertine, gentium, xits, courier, and cambria.)  

For me the simplest solution would be to keep working with pre-2017 standalones 
for documents that contain these arrows (for musical tone- or 
chord-progressions )
But it intrigues me why some process that worked perfectly in many generations 
of mkiv has suddenly stopped working in the recent mkiv's. 

Best regards,

Robert Blackstone








___
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] Problem with setup for fonts

2017-08-28 Thread Robert Blackstone

On 27 Aug 2017, at 23:27 , : Pablo Rodriguez  wrote
> 
> On 08/27/2017 08:46 PM, Robert Blackstone wrote:
>> Hi Hans,
>> Thanks for your reaction. Unfortunately it has not helped me for I have
>> no idea how to set the parameter \Umathquad\textstyle. Just loading the
>> fonts, as I believed you suggest in your mail, does not change anything:
>> the compilation with a 2017 mkiv still stops at  “
>> 7~$\xrightarrow[none]$~6 progression ”.
> 
> Hi Robert,
> 
> this works with latest beta from 2017.08.24 19:46:
> 
>\definefontfamily[mainface][rm][Verdana]
>\definefontfamily[mainface][tt][Courier]
>\definefontfamily[mainface][mm][TeX Gyre Termes Math]
>\setupbodyfont[mainface
>\starttext
> 7~$\xrightarrow[none]$~6 progression
>\stoptext

Hi Pablo,
This works, thank you very much. 
I had tried several fonts mentioned on the ConTeX-wiki in the chapter "Using 
Math fonts in MkIV" but TeX Gyre Termes Math is not mentioned there. But 
actually it is [mm] that does the trick and I had not realized that. 
Even then several of the Math fonts mentioned did not work.

Thanks again. 

Best regards,

Robert
___
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] Endnotes - How to place all endnotes in a separate chapter?

2013-03-20 Thread Robert Blackstone
Dear list,

How can I collect, in a separate (unnumbered) chapter at the end, or in the 
Backmatter, of a book,  all endnotes from the previous chapters, as lists per 
chapter (for example in sections in this chapter "Notes", with, preferably, the 
chaptertitles as sectiontitles of that chapter)
My setupfile contains, on the subject of notation, only:
\setupnotation[endnote][way=bychapter,bodyfont=10pt]
and  each chapter now ends with:
\placenotes[endnote][height=\textheight]
which neatly gives a list at the end of each chapter.

Thanks in advance for any advice.
Best regards,
Robert Blackstone___
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] Subjects on this list - general request

2013-03-20 Thread Robert Blackstone
Dear all,
Considering all complaints about the difficulties to find, in the Garden, or in 
the NTG mail archive,  answers to specific problems, wouldn't it be a good idea 
to ask everybody to clearly state the subject of their message, preferably 
starting with the most important keyword, and in particular to avoid (no 
subject) or [***SPAM***], and similar things as subjects.
Also, if you forgive me,  subjects like "upto current" or "Bug in \column" are 
not really helpful when on tries to search in the archive for a solution to a 
specific problem. In the last-mentioned example, wouldn't "\column, Bug in - " 
or even "\column, Bug in \column" be better? 
More specific subject titles in the mails might save some of us hours of 
unfruitful searching and lots of teeth grinding.
This is probably not the first request on this topic but, if so, I thought it 
would do no harm to repeat it.

Thanks in advance.

Best regards,

Robert Blackstone

___
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] Subjects on this list - general request

2013-03-21 Thread Robert Blackstone

On 20 Mar 2013, at 19:46 ,  "Keith J. Schultz"  wrote
> 
> I see no advantage in your suggestion. just search the subject.
> 
> As for the [***Spam***] that is inroduce by mail servers. A user should maybe 
> remove
> it to avoid it. But a nuisance, yes, a problem no.
> 
> regards
>   Keith.

and on 20 Mar 2013, at 19:21 ,  Mica Semrick  wrote
> 
> 
> I would agree with the (no subject) or SPAM titles, but if your search tool
> can't tell the difference between "\column, Bug in - " - "\column, Bug in
> \column" and "Bug in \column" then you probably need to find a new search
> tool. I subscribe  to the list in non-digest format, e.g. I get every
> email. I used to get it in digest, but I found that made my searching
> tougher. I use gmail and have all the list messages skip my inbox and go
> directly to a tag. This has helped a ton!
> 
> -Mica
> 
> Am 20.03.2013 um 16:12 schrieb Robert Blackstone 
> :
> 
>> …. wouldn't it be a good idea to ask everybody to clearly state the subject 
>> of their message, preferably starting with the most important keyword, and 
>> in particular to avoid (no subject) or [***SPAM***], and similar things as 
>> subjects. ...
>>   ..

Hi Mica and Keith,

Thanks for your reaction. It is informative to hear your opninon. 
I did not want to start a discussion -- it was rather a "cri de coeur" born out 
of frustration -- so I will leave it at this. 

Best regards,

Robert
___
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] float combinations

2013-04-10 Thread Robert Blackstone
Dear all,

I would like to have in my document floats, i.c. musical examples, that 
basically have the same  number, for example, Ex. 3a and Ex. 3b, with text in 
between and possibly not even on the same page. 

It seems that it can be done (Wiki-page Command/setupfloatsplitting) but I have 
no idea how to to accomplish it for figures.

Alternatively can one create a combination of two figures but separate the two 
elements spatially? And if so, how?
Thanks in advance for any advice.

Best regards,

Robert Blackstone
___
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] float combinations

2013-04-13 Thread Robert Blackstone
Dear all,
A few days ago (10 April 2013, Vol.106, Issue 25) I posted a question about 
giving related but not necessarily adjacent floats the same number, as for 
example Fig. 2a and Fig. 2b.
In the meantime I found a, not very elegant, solution that only partly 
satisfies me.
Here is a working example: (I trust the cow and the mill can be found).
 %---
\useexternalfigure[SmallCow][cow.pdf][height=2cm] 
\useexternalfigure[MediumCow][cow.pdf][height=3cm] 
\useexternalfigure[Mill][mill.png][height=3cm] 
\definelist[figure]
\setuplist[figure][prefix=yes,label=yes,alternative=c]

\starttext
This file is for testing the possibility of giving two related musical examples 
(in old and modern notation respectively) the same figure number with a. and b. 
as suffixes to the number proper. 

\placefigure[here][SmallCow1]{A small cow.}
{\externalfigure[SmallCow]}  

A cow again, in two sizes.

\in{Figure}[SmallCow2]a shows the same cow as \in{Figure}[SmallCow1]. 
\placefigure[here][SmallCow2]{{\bf a}. Another small cow.}
{\externalfigure[SmallCow]} 
And here a larger cow (\in{Figure}[MediumCow1]b).

\setnumber[figure][1]
\placefigure[here][MediumCow1]{{\bf b}. A larger  cow.}
{\externalfigure[MediumCow]} 

And here comes a mill.
\placefigure[here][Mill1]{A mill.}
{\externalfigure[Mill]}  

\page
{\bf List of Figures}
\placelist[figure]
\completecontent
\stoptext 

%
This way "a" and "b" become part of the caption text, resulting in: Figure 2
 a  A small ….. etc., and: Figure 2 b  A larger …etc. Likewise in the List 
of Figures. This is not what I would like.

Is there a possibility, when not using Combinations, to get: Figure 2aA 
small …..  etc?

Wherever possible I use Combinations but in some cases examples to be combined 
are very different in size and shape and/or too large to fit on one page 
together, so that one of them gets cut off.
Is there a possibility, when using a combination of figures, to split it, in 
other words, to separate the figures spatially, to allow them to appear on 
consecutive pages, and maybe even allowing some text in between?

Thanks in advance.

Best regards, 

Robert Blackstone



___
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] float combinations

2013-04-13 Thread Robert Blackstone

On 13 Apr 2013, at 13:30 , Alan BRASLAU  wrote:

> 
> This is probably not exactly what you want, however, one can use list=
> in \startplacefigure\stopplacefigure to differentiate between the
> figure caption and its listing in the list of figures.
> 
> 
> 
> \startplacefigure [title={Dutch scenery.
>\startitemize [n]
>\startitem A cow. \stopitem
>\startitem A mill. \stopitem
>\stopitemize},
>list=Figure title,
>reference=fig:scenery]
> 
>\startcombination [2]
>{\externalfigure [cow]  [width=.5\textwidth]} {a}
>{\externalfigure [mill] [width=.45\textwidth} {b}
>\stopcombination
> \stopplacefigure
> 
> A cow is shown in \in{figure} [fig:scenery]a.


Hi Alan, 
Thank you for your reaction and your suggestions.
Indeed, it is not exactly what I envisaged. I would be happiest if there were a 
way to add a and b as a suffix to the number, like Figure 2a.
With combinations it is easy to have a general Caption and specific captions 
for the components of the combination. But for the List of Figures I see no 
other possibility than, for instance "2   Dutch scenery. a. Cow, b. Mill". 
In fact I have no problems when I can make use of a combination, but, as I 
wrote, sometimes combinations are impossible for lack of space on the page.

What you describe as a challenge for Hans could be perfect, I think, provided 
an itemization can be interrupted and continued on next page. (I tried your 
liitle code snippet but ConText would not have it.) 
Splitting a float combination might turn out to be simpler. Only I have no clue 
as to how to achieve that.

Thanks again.

Best regards,
Robert
___
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] float combinations

2013-04-14 Thread Robert Blackstone

On 14 Apr 2013, at 07:05, Hans Hagen  wrote:

> 
> On 4/13/2013 12:33 PM, Robert Blackstone wrote:
>> Dear all,
>> A few days ago (10 April 2013, Vol.106, Issue 25) I posted a question
>> about giving related but not necessarily adjacent floats the same
>> number, as for example Fig. 2a and Fig. 2b.
>> In the meantime I found a, not very elegant, solution that only partly
>> satisfies me.
> 
> I cooked up something experimental ... after several variants i ended up 
> with a solution that is only available in the keyword variant:
> 
> \useMPlibrary[dum]
> 
> \starttext
> 
> First line.
> 
> \startplacefigure[location=here,reference=first,title=first]
> \externalfigure[dummy][height=2cm]
> \stopplacefigure
> 
> Second line.
> 
> \startplacefigure[location=here,reference=second,title=second,group=alpha,groupsuffix=.a]
> \externalfigure[dummy][height=2cm]
> \stopplacefigure
> 
> Third line.
> 
> \startplacefigure[location=here,reference=third,title=third]
> \externalfigure[dummy][height=2cm]
> \stopplacefigure
> 
> Fourth line.
> 
> \startplacefigure[location=here,reference=fourth,title=fourth,group=alpha,groupsuffix=.b]
> \externalfigure[dummy][height=2cm]
> \stopplacefigure
> 
> Fifth line.
> 
> \startplacefigure[location=here,reference=fifth,title=fifth,group=alpha,groupsuffix=.c]
> \externalfigure[dummy][height=2cm]
> \stopplacefigure
> 
> Last line: \in[first] / \in[second] / \in[third] / \in[fourth] / \in[fifth].
> 
> \page
> 
> \placelist[figure]
> 
> \stoptext
> 
> (beware: it's groupsuffix, and not suffix as that will add another one 
> not tracked in the lists)
> 
> Hans

Thank you very much, Hans. This is really perfect for my purpose.

Best regards,

Robert

___
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] float combinations

2013-04-14 Thread Robert Blackstone

On 14 Apr 2013, at 07:05 , Marco Patzer  wrote:

> On 2013?04?13 Robert Blackstone wrote: (in reply to Alan BRASLAU)
> 
>> (I tried your liitle code snippet but ConText would not have it.) 
> 
> He's missing a closing bracket on the \externalfigure[mill] line.
> Here's a complete example:
> 
> \setupexternalfigures [location=default]
> 
> \defineitemgroup [subfigure] [lefttext=, stopper=]
> \setupitemgroup  [subfigure] [a, text]
> 
> \starttext
> 
> \startbuffer
>  Dutch scenery
>  \startsubfigure
>\startitem A cow  \stopitem
>\startitem A mill \stopitem
>  \stopsubfigure
> \stopbuffer
> 
> \startplacefigure [title=\getbuffer, list=Dutch scenery, 
> reference=fig:scenery]
>  \startcombination
>\startcontent \externalfigure[cow][width=.5\textwidth]   \stopcontent
>\startcaption a) \stopcaption
>\startcontent \externalfigure[mill][width=.45\textwidth] \stopcontent
>\startcaption b) \stopcaption
>  \stopcombination
> \stopplacefigure
> 
> A cow is shown in \in{figure}{a}[fig:scenery] and a mill in
> \in{figure}{b}[fig:scenery].
> 
> \stoptext
> 
> Marco=
Thank you, Marco, and Alan, for  your suggestions.

As I wrote, wherever possible I use combinations for related examples, and they 
only give problems when the examples are too large to fit on the same page. 
The solution with itemize does not help here. With small enough figures the 
results seems not too different from that with Combinations. With large figures 
stacked vertically the lower one still gets cut off (and with it also the 
caption when it is placed underneath the figure). If somehow a pagebreak could 
be inserted between the two items, then this solution would probably work. 
But I have no idea how to achieve this. Inserting \page between " \startitem A 
cow\stopitem"   and  "\startitem A mill \stopitem" changes nothing.

Best regards
Robert


___
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] Referencing problem

2013-06-19 Thread Robert Blackstone
Hi all,

To include in a text several graphics that for some reason must have the same 
figure number (with suffixes .a, .b etc.), I use
\\startplacefigure[location=here,reference=,title={},group=,groupsuffix=]
{\externalfigure[]}
\stopplacefigure
an experimental solution that Hans gave me in april (Ref. ntg-context Digest, 
Vol 106, Issue 4, Date:14 April 2013) and which works perfectly.

My problem is: how can I refer in my text to this set of figures (instead of to 
the separate figures). I have tried to use "group" as the label for 
referencing, as it is the only argument that all figures have in common, but my 
trials failed and I have no idea how to accomplish this. (The wiki is too vague 
for me on this point.)

Thanks in  advance for any help.

Regards, 
Robert Blackstone___
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] Referencing problem (correction)

2013-06-19 Thread Robert Blackstone
Sorry for the mistake: I wrote one \ too many so that I unwittingly created an 
absurd link.
The message was supposed to be this:

Hi all,

To include in a text several graphics that for some reason must have the same 
figure number (with suffixes .a, .b etc.), I use
\startplacefigure[location=here,reference=,title={},group=,groupsuffix=]
{\externalfigure[]}
\stopplacefigure
an experimental solution that Hans gave me in april (Ref. ntg-context Digest, 
Vol 106, Issue 4, Date:14 April 2013) and which works perfectly.

My problem is: how can I refer in my text to this set of figures (instead of to 
the separate figures). I have tried to use "group" as the label for 
referencing, as it is the only argument that all figures have in common, but my 
trials failed and I have no idea how to accomplish this. (The wiki is too vague 
for me on this point.)

Thanks in  advance for any help.

Regards, 
Robert Blackstone___
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] Trouble with editors on Mac

2013-08-15 Thread Robert Blackstone

On 15 aug. 2013, at 11:40, ntg-context-requ...@ntg.nl Mari Voipio 
 
> I updated my ConTeXt installation today and now it refuses to work
> with TextMate and TeXworks. 

> 
> This problem is not critical as I can use TextMate/TeXworks as editor
> and compile on command line in Terminal,  but it is a bit of a
> nuisance not to be able to use the typesetting command in the editor.
> So any help is highly appreciated.

Hi Mari,
I cannot help you with your particular problem other than suggesting to give 
TeXShop a try.
I have used it for many years and it has never given me any problem whatsoever.

Just to make sure, I updated the standalone today (beta with all goodies) and 
again no problem.

Best regards,
Robert Blackstone___
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] Problem with horizontal space in List of Figures

2013-08-25 Thread Robert Blackstone
Dear list,

Using Hans' nice method to place in a document several figures with the same 
number, separated by text or on different pages, I run into difficulties with 
the List of Figures.  Apparently ConTeXt does not make enough space to 
accommodate the figure numbers and the groupsuffix, as the example shows. 
(Sorry for the large number of figures but I needed a double digit number of 
them to show the problem. None of the other elements, titles, captions etc. has 
any significance for this problem.)

In this problem the chosen font, Verdana, seems to be an essential factor. With 
many sans fonts there is no problem, for example not with Iwona, Arila, 
Helvetica, Calibri. Optima, Trebuchet MS. But others, for example Lucida Sans 
and Sathu give the same problem as Verdana.
Unfortunately I have to use Verdana for my project. 

What can I do to create a little more space for the first column of the List of 
Figures?
Thanks in advance for any advice.

Best regards, 
Robert Blackstone 

ME:
--
\useMPlibrary[dum]

\usemodule[simplefonts]
\setmainfont[Verdana]
\setupbodyfont[9pt] 

\starttext

\completecontent
\completelistoffigures[label=yes,alternative=c]

\startchapter[title={Introduction}]

\input knuth

\startsection[title={This is a section}]

\input ward

\stopsection 

\startplacefigure[location=here,reference=,title={A1},group=,groupsuffix=.a]
{\externalfigure[dummy][height=2cm]}
\stopplacefigure
Some text.
\startplacefigure[location=here,reference=,title={A2},group=,groupsuffix=.b]
{\externalfigure[dummy][height=2cm]}
\stopplacefigure

\startplacefigure[location=here,reference=first,title=three]
   \externalfigure[dummy][height=2cm]
\stopplacefigure

\startplacefigure[location=here,reference=third,title=four]
   \externalfigure[dummy][height=2cm]
\stopplacefigure

\startplacefigure[location=here,reference=second,title=B1,group=alpha,groupsuffix=.a]
   \externalfigure[dummy][height=2cm]
\stopplacefigure
Some text.
\startplacefigure[location=here,reference=fourth,title=B2,group=alpha,groupsuffix=.b]
   \externalfigure[dummy][height=2cm]
\stopplacefigure

\startplacefigure[location=here,reference=,title={This first example 6 has an 
already very long title and the following one will be even 
longer.},group=Zero,groupsuffix=.a]
{\externalfigure[dummy][height=2cm]}
\stopplacefigure

\startplacefigure[location=here,reference=,title={This second example 6 has a 
very substantially longer long title and the following ones could not possibly 
be longer.},group=Zero,groupsuffix=.b]
{\externalfigure[dummy][height=2cm]}
\stopplacefigure

\startplacefigure[location=here,reference=third,title=seven]
   \externalfigure[dummy][height=2cm]
\stopplacefigure

\startplacefigure[location=here,reference=first,title=eight]
   \externalfigure[dummy][height=2cm]
\stopplacefigure
 
\startplacefigure[location=here,reference=second,title=C1,group=beta,groupsuffix=.a]
   \externalfigure[dummy][height=2cm]
\stopplacefigure
Some text.
\startplacefigure[location=here,reference=fourth,title=C2,group=beta,groupsuffix=.b]
   \externalfigure[dummy][height=2cm]
\stopplacefigure

\startplacefigure[location=here,reference=,title=D1,group=gamma,groupsuffix=.a]
{\externalfigure[dummy][height=2cm]}
\stopplacefigure
Some text.
\startplacefigure[location=here,reference=,title=D2,group=gamma,groupsuffix=.b]
{\externalfigure[dummy][height=2cm]}
\stopplacefigure

\stopchapter
\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] Problem with horizontal space in List of Figures

2013-08-25 Thread Robert Blackstone

On 25 aug. 2013, at 22:24, Wolfgang Schuster  wrote
> 
> 
> Am 25.08.2013 um 22:21 schrieb Robert Blackstone 
> :
> 
>> Dear list,
>> 
>> What can I do to create a little more space for the first column of the List 
>> of Figures?
> 
> \setuplist[figure][width=4em]
> 
> Wolfgang

Thank you very much, Wolfgang, for this incredibly fast and effective response.

Best regards,
Robert
___
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] Bibliography, replacing repeated authorname by a dash

2013-09-06 Thread Robert Blackstone
Dear List,
I'm typesetting a PhD thesis. The university has strict and not quite standard 
specifications for the Bibliography and one of these is that if an author's 
name is only given with its first entry and  must be replaced by a dash in the 
following entries.

Is there anybody on this list who can give me a method worthy of ConTeXt? (I've 
no experience with Lua myself.)

I did find a hack, i.e. replacing in the .bbl-file the author's last name by 
"\hl[4]" (and omitting his initial) the second time, as shown in the minimal 
example. But that requires modifying the .bbl-file manually, a task which I'd 
rather avoid, but will do if necessary.

Thanks in advance for any advice.

Best regards,
Robert Blackstone

 
%<---ME--
\setuppublications[alternative=apa,sorttype=bbl]
\setuphead[chapter][number=no]

\starttext 
\chapter{References}

\setuppublicationlist[samplesize=,totalnumber=2]

\startpublication[k=Agazzari:1607ek,t=book,
a={{Agazzari}},y=1607,
n=347,s=Aga07]
\author[]{Agostino}[A.]{}{Agazzari}
\pubyear{1607}
\title{Del suonare sopra il basso con tutti stromenti \& uso loro nel conserto}
\city{Siena}
\pubname{Domenico Falcini}
\stoppublication

\startpublication[k=Agazzari:1608fk,t=book,
a={{Agazzari}},y=1608,
n=118,s=Aga08]
\author[]{Agostino}[]{}{\hl[4]}
\pubyear{1608}
\title{Bassus ad Organum \& Musica instrumenta}
\city{Venice}
\pubname{Amadinus}
\stoppublication

\nocite[Agazzari:1607ek]
\nocite[Agazzari:1608fk]

\placepublications[criterium=cite]

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


[NTG-context] captions in float combinations

2013-09-08 Thread Robert Blackstone
Dear list,
In two-column combinations  of figures, the "subcaptions" for the individual 
figures are always placed at the bottom, below the figures, regardless of the 
position of the main figure caption.
In my project I have all figure captions located above the figure. How can I 
move also these subcaptions to the top, to a position just below the main 
caption? 
Thanks in advance for any advice.

Best regards, 
Robert Blackstone

___
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] captions in float combinations

2013-09-08 Thread Robert Blackstone

On 8 sep. 2013, at 17:01,  Marco Patzer  
> On 2013?09?08 Robert Blackstone wrote:
> 
>> In my project I have all figure captions located above the figure.
>> How can I move also these subcaptions to the top, to a position
>> just below the main caption?
> 
> As far as I can see, this is not supported by the combination
> mechanism because the captions in combinations are not implemented
> using the float captions mechanism.
> 
> What you can do instead, is using a float caption and a float
> combination, which will respect the global caption setups.
> 
> \useMPlibrary [dum]
> 
> \definefloat
>  [combinationfloat]
>  [combinationfloats]
>  [figure]
> 
> \setupcaption
>  [combinationfloat]
>  [number=no]
> 
> \setupcaptions
>  %% [location=bottom]
>  [location=top]
> 
> \starttext
>  \startplacefigure [title=Foobar]
>\startfloatcombination [2*2]
>  \startplacecombinationfloat [title=alpha] \externalfigure 
> \stopplacecombinationfloat
>  \startplacecombinationfloat [title=beta]  \externalfigure 
> \stopplacecombinationfloat
>  \startplacecombinationfloat [title=gamma] \externalfigure 
> \stopplacecombinationfloat
>  \startplacecombinationfloat [title=delta] \externalfigure 
> \stopplacecombinationfloat
>\stopfloatcombination
>  \stopplacefigure
> \stoptext
> 
> Marco

Hi Marco,

Thanks for your solution. It took me a while to harmonize your new float with 
my other floats in my document setups. These are all placed on the left side of 
the page and that caused yor float to move almost off the page.
So I added:

\setupfloat[combinationfloat][location=middle,spacebefore=medium,spaceafter=medium,sidespacebefore=medium,sidespaceafter=medium]

and now it works beautifully.

There is, however, another complication which makes that unfortunately I cannot 
use your solution "out of the box" in all situations.
The paired figures in my particular project are often of different size, in 
particular of different height, (but small enough to be placed side by side).
The author wants not only the figure captions at the top, but also the figures 
themselves.
I did not mention this complication because, a) I had found a hack to place 
both figures at the top, and b) I had not expected that the solution for the 
problem I posted would be a new type of float instead of a new type of 
combination.

So now the captions are at the top but the figures are not. (Law of 
Conservation of Misery)

I will use your solution when the figures are of the same height and can be 
placed at the bottom

You're far more experienced and ingenious in these matters than I am, so 
perhaps you have a solution for this additional problem, positioning figures of 
different sizes at the top too. (I should mention, however, that I have a 
fall-back solution, which consists of adding another line to the caption with 
info about the two figures in the combination)

Thank you very much  anyway.

Best regards,

Robert

___
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] captions in float combinations

2013-09-09 Thread Robert Blackstone

Hi Marco, hi Aditya,

Thank you very much for the solutions you have proposed for my problem, that of 
making a side by side combination of two figures of unequal height with both 
the figures and their (sub)-captions located at the top.

In order not to make this mail too long I simply refer to the ntg-context 
Digest numbers and message number containing the proposed solutions: 
Marco's in ntg-context Digest, Vol 111, Issue 23, Message 1, and in ntg-context 
Digest, Vol 111, Issue 24, message 5, Aditya's in ntg-context Digest, Vol 111, 
Issue 24, message 4

These solutions give me all the possibilities I need. 
When I just want both figures in the combination to be located at the top 
without subcaptions I will probably use Marco's second proposal, which is both 
simpler and far more elegant than the hack I found myself.

If I want them at the top with subcaptions I will use Aditya's method, which, 
by the way, is nearly identical with Marco's first solution, but for two 
arguments for \externalfigure, the fllename of the figure and [location=top].

This fully solved my problem. Thank you both.
Wouldn't it  be worthwhile to add it to the wiki?

Best regards,
Robert


___
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] Conditional float references

2013-09-24 Thread Robert Blackstone

On 23 Sep 2013, at 09:57 , Marco Patzer  wrote:

> Subject: [NTG-context] Conditional float references
> 
> a couple of times the question came up??? how to create more
> intelligent referencing. 
> [….]
> I don't know if there's interest in integrating such functionality
> into the core. I attached some code, a new macro \smartref, which
> takes the same arguments as \in.
> 
Hi Marco, 
I would be very interested in being able to use this macro, integrated or not, 
since in my project there are numerous figures with lots of references to them 
throughout the entire text, and \at{page}[] is not satisfactory for me.

I tried the code you supplied by pasting the whole lot into a TeXShop-file, 
and, when that did not work, in Alphax, processing  the latter from Terminal, 
but in both cases I received an error message that I do not know what to do 
with. Strangely enough it complains about an error in line 1 even if that 
contains a commented out comment.

I reproduce the error message  here, hoping that you, or somebody elsm, can see 
what I did wrong. 
(I apologize on behalf of TeXShop and Alhax for the length of this message.)

Thanks in advance for any help.

Robert Blackstone

Error message:

Last login: Tue Sep 24 09:02:03 on ttys000
sh: /Users/robertblackstone/context/tex/setuptex: No such file or directory
iMac-Bergen-R-5:context-minimal-24-09 robertblackstone$ . 
/Users/robertblackstone/context-minimal-24-09/tex/setuptex
Setting "/Users/robertblackstone/context-minimal-24-09/tex" as ConTeXt root.
iMac-Bergen-R-5:context-minimal-24-09 robertblackstone$ context 
/Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1.tex

mtx-context | run 1: luatex 
--fmt="/Users/robertblackstone/context-minimal-24-09/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en"
 --jobname="Referencing-Smart_referencing-test1" 
--lua="/Users/robertblackstone/context-minimal-24-09/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 
--c:fulljobname="/Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1.tex"
 
--c:input="/Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1.tex"
 --c:kindofrun=1 --c:maxnofruns=8 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.76.0-2013040508 (rev 4627) 
 \write18 enabled.
(/Users/robertblackstone/context-minimal-24-09/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.09.21 13:53 MKIV beta  fmt: 2013.9.24  int: english/english

system  > 'cont-new.mkiv' loaded
(/Users/robertblackstone/context-minimal-24-09/tex/texmf-context/tex/context/base/cont-new.mkiv)
system  > files > jobname 'Referencing-Smart_referencing-test1', input 
'/Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1',
 result 'Referencing-Smart_referencing-test1'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
(/Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1.tex
! Parameters must be numbered consecutively.

system  > tex > error on line 1 in file 
/Users/robertblackstone/Dropbox/C-tests/Referencing-Smart_referencing/Referencing-Smart_referencing-test1.tex:
 Parameters must be numbered consecutively ...

 1 >>  \unprotect
 2 \unexpanded\def\strc_references_smart
 3 {\strc_references_start_goto
 4 \let\currentreferencecontent\currentreferencedefault
 5 \strc_references_pickup_smart_goto}
 6 \def\strc_references_pickup_smart_goto
 7 {\dodoublegroupempty\strc_references_pickup_goto_smart_indeed}
 8 \starttexdefinition strc_references_pickup_goto_smart_indeed 
#left#right#dummy[#label]
 9 \leftreferencetoks
10 \iffirstargument
11 {#left}

 
l
l.1 ...ferences_pickup_goto_smart_indeed\endcsname#l
  eft#right#dummy[#label]
\ctxcommand #1i-\directlua {commands.#1}

\syst_helpers_start_tex_definition_two ...n("#1")}
  {#2}
l.32 \stoptexdefinition
 
? 


___
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] Conditional float references

2013-09-24 Thread Robert Blackstone

On 24 Sep 2013, at 19:43 , Marco Patzer l wrote:
> 
> 
> On 2013?09?24 Robert Blackstone wrote:
> 
>> I reproduce the error message  here, hoping that you, or somebody
>> elsm, can see what I did wrong.
> 
> I used mkvi style macros. Either place the following into the first line
> 
>  %% macros=mkvi
> 
> or change the file extension to mkvi.
> 
> Marco

That did the trick. Thank you very much. This is a very useful addition to the 
ConTeXt toolkit, imho.

Best regards,

Robert Blackstone

___
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] Problem with urls.

2013-11-21 Thread Robert Blackstone

On 21 Nov 2013, at 19:53 , Wolfgang Schuster  wrotr
>> 
> 
> I can process your example without problems.
> 
> ConTeXt  ver: 2013.11.16 12:43 MKIV beta  fmt: 2013.11.21  int: 
> english/english
> 
> Wolfgang
 Thank you for your reaction.

This is odd. Here this EM does not work with CONTEXT version 2013.11.14 23:22, 
(which uses LuaTeX version 0.76.0 as engine.)

(to get this information I had of course to outcomment the "\from[apurl]")
Still stranger: when I plugged the url into some other TeX-file it did work 
with the same ConTeXt version.
 So it seems that there is some essential difference between these files (apart 
from their content)
Do you have any idea what that could be? Could it be a matter of text encoding? 
(I use TeXShop as the front end.)

Best regards,
Robert Blackstone
___
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] Problem with urls.

2013-11-21 Thread Robert Blackstone
Dear all,
Presently I'm experiencing a problem with urls that, hopefully, the ME will 
demonstrate.
It seems to me that something must have changed in the source since the end of 
september.
The example works with mkiv of 24 sept, but not with that of 3 november and 
later.

---
\useURL[apurl][http://wiki.contextgarden.net/Category:Commands]
\starttext

\from[apurl]

\url[apurl]

\stoptext 

I use TeXshop.
The console gives  me the following cryptic message about a LuaTeX error:
 
\ctxcommand #1^^@-\directlua {commands.#1}

\font_helpers_low_level_define ...caledfontmode )}
\edef \somefontspec
{at \n...
\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...
\tt f-\ifmode \mathtt \else \normaltt
\fi
…
l.5 \from[apurl]

?

Thanks in advance for any help.

Best regards,
Robert Blackstone
___
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] Unnumbered chapters before the ToC

2014-01-15 Thread Robert Blackstone
Dear all, 

Is there, in a book-project, a way to place unnumbered chapters, in casu 
Acknowledgements and Abstract, in the FrontMatter before the ToC, but still 
mentioned in the ToC?

(no idea why this would be required)
Thanks in advance for any advice,

Robert Blackstone
___
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] Unnumbered chapters before the ToC

2014-01-15 Thread Robert Blackstone

On 15 Jan 2014, at 21:54 , Wolfgang Schuster 
 wrote:

> Am 15.01.2014 um 15:36 schrieb Robert Blackstone 
> :
> 
>> Dear all, 
>> 
>> Is there, in a book-project, a way to place unnumbered chapters, in casu 
>> Acknowledgements and Abstract, in the FrontMatter before the ToC, but still 
>> mentioned in the ToC?
> 
> \definehead[prechapter][chapter]
> \setuphead [prechapter][number=no,incrementnumber=list]
> 
> \starttext
> 
> \prechapter{Unnumbered chapter}
> 
> \title{Contents}
> 
> \placelist[prechapter,chapter]
> 
> \chapter{Numbered chapter}
> 
> \stoptext
> 
> Wolfgang

Thank you Wolfgang. This works and it will very likely also work for my 
project. 
I'm afrraid though that I left out an important detail, namely that the ToC 
itself must be mentioned in the ToC.
What I'm expected to emulate is the following: (with real pagenumbers of course)

CONTENTS

Acknowledgementsi
Abstractii
Contentsiii
List of Illusttratiions iv
List of Tables  v
Abbreviations and Library sigla vi
Preface vii

Chapter 1   8
Chapter 2 etc.

So my real question should have been: Is there a way to place the ToC in an 
unnumbered chapter, which should not be at the very beginning of the book? 
But you have suggested the answer already: Changing \title{Contents} to 
\prechapter{Contents} does just that. Clean solution for an, imho,  odd request.

Best regards,
Robert Blackstone___
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] Unnumbered chapters before the ToC

2014-01-16 Thread Robert Blackstone
Dear all, 

Is there, in a book-project, a way to place unnumbered chapters, in casu 
Acknowledgements and Abstract, in the FrontMatter before the ToC, but still 
mentioned in the ToC?

(no idea why this would be required)
Thanks in advance for any advice,

Robert Blackstone
___
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] Unnumbered chapters before the ToC

2014-01-16 Thread Robert Blackstone

On 16 Jan 2014, at 12:00 ,Robert Blackstone  Dear all, 
> 
> Is there, in a book-project, a way to place unnumbered chapters, in casu 
> Acknowledgements and Abstract, in the FrontMatter before the ToC, but still 
> mentioned in the ToC?
> etc.
Please forget this message. The problem is solved. (I assume this was re-posted 
because initially I used a wrong email address).
Robert Blackstone

___
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] Simpleton bibliography

2014-01-26 Thread Robert Blackstone

On 26 Jan 2014, at 12:00 ,  john Culleton  wrote
> 
> Question 1: What are the other options for
> \setupbtxrendering and what do they do? (In my
> world Bibliographies are seldom numbered.)
> 
> Question 2: Suppose I want to follow a different
> standard, other than APA, such as harvard or
> Chicago or whatever: where do I code that
> choice and how? Are bst files still in play?
> 
> Question 3: url is mentioned. Does that mean that
> url can actually used as a data field name?
> 
Hi,
I have struggled with Bibliographies and almost gave up, because of the 
non-standard, and changing, style requirements (like apa but different in 
details, with, moreover, three different styles for citations in footnotes: 
full data, a shorter version and a still shorter version, the latter probably 
(authoryear), but I'm still not sure).

In the end I used for everything the category "booklet", which is less of a  
straitjacket than the other categories. It gives you the freedom to put some 
extra details (if needed) in the title and also to style the "author" the way 
you want (for example Last name, First name  or Last name, initials, or 
Initials Last name or whatever you want.) 
You can also use urls there, as far as I know.

For consistency you would still need a bibl style file, for which I used a 
tweaked version of bibl-apa.tex. (which is in 
~//tex/texmf-context/tex/context/bib)

And a last thing: I input not the BibTeX database but  the .bbl which I 
generate separately. I can tweak that if necessary or to add specific features, 
like horizontal lines in the Bibliography for repeated author names. (Another 
requirement which I personally don't like).

Maybe all this is rather unworthy of ConTeXt but it is comparatively easy to 
accomplish and it works.

I hope it helps.

Best regards,

Robert Blackstone
 ___
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] Additional unnumbered pages behind a title page

2014-02-07 Thread Robert Blackstone

On 7 Feb 2014, at 18:05 , Wolfgang Schuster  wrote:
> 
> Am 07.02.2014 um 17:32 schrieb Robert Blackstone 
> :
> 
>> Dear list, 
>> 
>> For a Thesis, doublesided, I need three unnumbered pages behind the 
>> Title-page, the second of which contains only a dedication "To the memory of 
>> A". 
>> For the Title-page I use standardmakeup but ConTeXt apparently does not like 
>> me to add a second .tex-file with standardmakeup. 
>> How can I manage to accomplish this in a way worthy of ConTeXt?  
> 
> Create a minimal example because context has no problem with multiple markup 
> environments.
> 
> \starttext
> 
> \startmakeup[standard]
> One
> \stopmakeup
> 
> \startmakeup[standard]
> Two
> \stopmakeup
> 
> \startmakeup[standard]
> Three
> \stopmakeup
> 
> \stoptext
> 
> Wolfgang

Thanks Wolfgang, for creating this minimal example for me. It has given me 
exactly what I needed. In fact one "\startmakeup[standard] - \stopmakeup"-pair, 
with is dedication-text, was sufficient for my doublesided document. I did not 
know of this command and its workings.

Best regards,

Robert
___
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] Additional unnumbered pages behind a title page

2014-02-07 Thread Robert Blackstone
Dear list, 

For a Thesis, doublesided, I need three unnumbered pages behind the Title-page, 
the second of which contains only a dedication "To the memory of A". 
For the Title-page I use standardmakeup but ConTeXt apparently does not like me 
to add a second .tex-file with standardmakeup. 
How can I manage to accomplish this in a way worthy of ConTeXt?  



Thanks in advance for any advice

 Best regards,

Robert Blackstone

(I did find a hack, consisting of introducing between the Title-page and the 
FrontMatter a .tex-file, beginning with \setuppagenumber[state=stop], of which 
the second page is filled with stack of empty framed textboxes with their 
frames off. It does work somehow but I cannot believe that it is the right 
method.)___
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] (Combined)lists, two questions

2014-02-10 Thread Robert Blackstone
Dear all,
 I have a few issues with the Table of Contents and with the List of Figures

1 How can one force a page break after some section. In my present setup I have 
a Chapter 4, sitting lonely at the bottom of the first page of the ToC, with 
its sections on the next page. I have tried \completecontent[3.7], as described 
on p. 53 of "ConTeXt an excursion", but that does not work for me (I'm on 
mkiv). 
What can be done about it?

2 My list of figures gives the complete captions, some of which are long. Those 
exceeding their allotted space break off, which is OK, but there are some that 
run up against the page number, which is ugly and unclear. 
What can I do the create a little more space between caption and page number?

In general, of most if not all of the 38 possible arguments for \setuplist, as 
shown on http://wiki.contextgarden.net/, I do not know what they do and how 
they can be used. Unfortunately, also "ConTeXt an excursion" is very brief on 
this subject. 
Is there any place where I can find more information?

Thanks in advance for ay advice.

Best regards,
Robert Blackstone___
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] (Combined)lists, two questions

2014-02-14 Thread Robert Blackstone

On 11 Feb 2014, at 10:18 , Wolfgang Schuster  wrote
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] (Combined)lists, two questions
> Message-ID: <28b0bd59-a98d-47c2-a6bd-554f150c1...@gmail.com>
> Content-Type: text/plain; charset="us-ascii"
> 
> 
> Am 10.02.2014 um 19:41 schrieb Robert Blackstone 
> :
>> 1 How can one force a page break after some section. In my present setup I 
>> have a Chapter 4, sitting lonely at the bottom of the first page of the ToC, 
>> What can be done about it?
> 
> You can use \testpage to make sure chapter entries have a certain number of 
> lines before a page break happens, e.g. 
> \setuplist[chapter][before={\testpage[4]\blank}]
> 
> When you need manual page breaks in the TOC in your final document there is 
> another mechanism: http://www.ntg.nl/pipermail/ntg-context/2010/052739.html
> 
>> What can I do the create a little more space between caption and page number?
> 
> Make an example.
> 
> Wolfgang
Thank you, Wolfgang. My apologies for my late reaction.

As for my first problem, the link you gave showed me what I needed. Problem 
solved.
As for my second problem, the relative dimensions of the three columns in the 
List of Examples, I could no see how I could create a representative ME in a 
short time, so instead I experimented with the many parameters for \setuplist 
and eventually found a satisfactory solution.
Thanks again,

Best regards, 
Robert Blackstone

___
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] Multiple bibliographies (bib-module, mkiv)

2014-04-07 Thread Robert Blackstone

On 7 Apr 2014, at 12:00 , Peng Zhang  wrote

> I am searching for a solution where I can use two different sources of 
> bib files separately. I found that the same question was asked before at 
> this mail list. Since it was few years old, could I ask if there is any 
> new work done towards it?
> 
> Thanks!
> Peng
> 
> http://www.ntg.nl/pipermail/ntg-context/2010/048290.html

Hello Peng,
For a Bibliography with  separate sections you can use the following 
work-around:
Suppose you want a section "primary sources", for which you have the bibfile, 
say, ps.bib, and a section "secundary sources", for which have the bibfile 
ss.bib.
The first step is tro to make for each of them a .bbl-file with, what I would 
call, a  "bbl-generator.tex":

\setupbibtex[database=ps.bib,sort=author]
%\setupbibtex[database=ss.bib,sort=author]

\setuppublications[alternative=apa] %or any other style

\starttext 

\stoptext 
++
This can be processed with mkii or mkiv. It generates a lot of auxiliary files, 
including an empty pdf, but the only important one is "bbl-generator.bbl", 
which you rename to ps.bbl or ss.bbl according to which of the two bib-files 
you used.(= did not comment out)

The other files you need are two .tex-files with the complete set of 
\nocite[]'s of the two databases. Personally I never used \nocite{*}. If you 
use a Mac with BibDesk it is quite easy to make such a file. It gives you some 
extra flexibility.

You can then generate the sectioned bibliography with:
++
\input(Your setups, including those for your Bibliography setup)
\starttext 
\startchapter[bookmark=,label=,list=,marking=,reference=Bibliography,title={Bibliography}
\section{Primary sources}

\input ps.bbl
\input ps-nocite.tex
\placepublications[criterium=cite]

\section{Secundary sources}

\input ss.bbl
\input ss-nocite.tex
\placepublications[criterium=cite]

\stopchapter
\stoptext 
+++
That's all.

I hope it works for you.
Best regards,
Robert Blackstone___
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] Multiple bibliographies (bib-module, mkiv)

2014-04-07 Thread Robert Blackstone

On 7 Apr 2014, at 17:14 , Peng Zhang mailto:pczh...@gmail.com>> wrote
> 
> Thank you very much for this workaround! It does work. Would it be 
> possible that I can make two fake/invisible sections? (without showing 
> primary sources and secondary sources in your example)
> 
> I am doing my CV. I just want two separate reference lists, one for 
> journal and one for published abstracts.
> 
> I am copying the CV template from wiki.
> 
> \definehead[CVHEAD][subject]
> 
> \setuphead[subject][style=\bfa,after={\blank[medium]}]
> 
> 
> \definehead[SUBCVHEAD][subsubject]
> 
> \setuphead[subsubject][style=\bf,after={\blank[small]},before={\blank[small]}]
> 
> 
> I want something like
> \CVHEAD{References}
> \SUBCVHEAD{Pulished Journal Articles}
> 
> list 1
> \SUBCVHEAD{Pulished Abstracts}
> list 2
> 
> 
> Could I put two fake/invisible sections within those subcvhead?
> 
> 
> Thanks,
> Peng

Hi Peng, 
I'm not quite sure I fully understand what you want, so I just tried making 
separate lists.
Now for some reason that I don't understand no list appears in a subsubject. 
However if you use instead SUBCVHEAD as an unnumbered section  with

\definehead[SUBCVHEAD][section]
\setuphead[section][header=empty,number=no,style=\bf,after={\blank[small]},before={\blank[small]}]
 

and if  you add \page after
\placepublications[criterium=cite], 

then you get separate lists with unnumbered titles.

I hope this is what you want. If not, maybe someone les on this list can help 
you.

Best regards,
Robert


___
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] Bibliography: only surname in small caps

2014-06-30 Thread Robert Blackstone

On 30 jun. 2014, at 17:33,  Joshua Kr?mer  wrote

> I would like to have in a bibliography only surnames in small
> capitals, like this:
> 
> M?LLER, B. and SCHNEIDER A.
> 
> (M?ller and Schneider appear in small caps, but everything else
> like "and" is still in the default typeface.)
> 
> At the moment, I'm using the old bibliography system.  …

> Is it possible to achieve what I want (SC surnames) with the old and the
> new system?

Hi Joshua,
I suspect it can be done in the old system, albeit by some tricks that are 
maybe unworthy of ConTeXt.
I have not tried using small caps because I use a font that does't have them 
but I think it would be doable.

There a in fact two tricks. The first is to put everything in the "booklet" 
category and enter everything except author names, year of publication and city 
(or publisher) in the title. 
The second is to make a .bbl file and edit that, including ordering small caps 
where you want them, just as in a normal .tex-file. In your project you input 
the edited .bbl-file, not the .bib-file.

This way you can use all the nice  mechanisms of ConTeXt for citing, footnotes 
and bibliography without having to bother with the tweaking of codes.

I have done it this way for my wife's PhD thesis and it works perfectly.

Best regards,
Robert Blackstone
___
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] Problem with List of Abbreviations

2014-07-29 Thread Robert Blackstone
Problem with List of Abbreviations
Dear all,

In my list of abbreviations I need different styles for different types of 
entry. A typical case is titles of journals, of which both the abbreviation and 
the full name should  be slanted.
I had it working, albeit with some tricks, with older versions of mkiv, up till 
25-01, but with more recent versions things don’t work anymore. 
Also the setup-commands seem to have been changed: 
In recent versions the pair:
definesynonyms[abbreviation][abbreviations][\infull][\inshort]
\setupabbreviations[textstyle=slanted,synonymstyle=slanted,criterium=all] 
gives en error message about an undefined control sequence.

In the following minimal example I have listed what I could find as 
possibilities. The top three work with older versions. In the bottom three, for 
the recent mkiv, both textstyle and synonymstyle remain normal.
In the older versions only the abbreviation could be made slanted the way, but 
I could make the synonym slanted with {\em entry} , and I still could do that, 
but this cannot be done with the abbreviation.

ME:
+++
%Ref.: http://wiki.contextgarden.net/Command/definesynonyms
%Subject: Command_\abbreviation and \setupsynonyms

\definealternativestyle[mybold][\emphbf][\emphbf]
\definealternativestyle[myslant][\emphsl][\emphsl]

\definesynonyms[abbreviation][abbreviations][\infull][\inshort]

%These 3 worked partly till january 2014
%\setupabbreviations[textstyle=myslant,synonymstyle=mybold,criterium=all]
%\setupabbreviations[textstyle=myslant,synonymstyle=myslant,criterium=all]
%\setupabbreviations[textstyle=slanted,synonymstyle=slanted,criterium=all]

%These 3 work partly in recent versions since january 2014
%\setupsynonyms[abbreviations][textstyle=myslant,synonymstyle=mybold,criterium=all]
%\setupsynonyms[abbreviations][textstyle=myslant,synonymstyle=myslant,criterium=all]
%setupsynonyms[abbreviations][textstyle=slanted,synonymstyle=slanted,criterium=all]

\abbreviation{MT}{The Musical Times}
\abbreviation{AMw}{Archiv f\"{u}r Musikwissenschaft} 
\abbreviation{GMO}{Grove Music Online} 

%this works
\abbreviation{EM}{\em Early Music}
%This doesn't
%\abbreviation{\em EM}{\em Early Music}


\starttext

\completelistofabbreviations[criterium=all] 

\stoptext 
+++
What could be done about this? I would prefer to work with the recent mkiv but 
if necessary I can probably stick with the older version.
Thanks in advance for any advice.

Best regards,
Robert Blackstone
___
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] Problem with List of Abbreviations

2014-07-30 Thread Robert Blackstone

On 29 Jul 2014, Hans Hagen  wrote:
> 
> Can you check if this gives the wanted effects:
> 
> \unprotect
> 
> \setupsimplelist
>   [\v!sorting]
>   [\c!headstyle=\simplelistparameter\c!synonymstyle,
>\c!headcolor=\simplelistparameter\c!synonymcolor,
>\c!style=\simplelistparameter\c!textstyle,
>\c!color=\simplelistparameter\c!textcolor]
> 
> \protect

Yes it does, but for a mixed list it seems too general.
> 
> This would have worked ok too:
> 
> \completelistofabbreviations[criterium=all,headstyle=\bf,style=\bi]
This one works OK.
> 
> These lists have become more sophisticated deep down.

And  Wolfgang Schuster  wrote:
> 
> 
> You have to use abbreviation (singular form)
> 
> \setupsynonyms[abbreviation][?]

and
> 
> Use the optional argument:
> 
> \abbreviation[EM]{\em EM}{?}
> 
This works perfectly  too.
 
Thank you both, Hans and Wolfgang. Almost embarras du choix now.

KInd regards,

Robert
___
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] Distances between chapter and setion titles and text

2014-08-13 Thread Robert Blackstone
Dear list,

Is it possible, in mkiv, to fine-tune the distance between a chapter head and a 
section head,  between the end of a section and the following section head, and 
between a section head and the beginning of the text?

My problem is the following:
In the revision of a thesis, to economize on processing times, I have done all 
corrections in the bodymatter, or even parts of it, using the setups of the 
entire project. But when I now add the front matter these above-mentioned 
distances have slightly increased, by 3 to 5 mm, with a rather devastating 
effect on the precise placement of large floats. At the beginning of a new 
chapter the difference is one textline (double line spacing), which does not 
seem a big deal but with nearly 500 pages of text it leads to nasty results.

In my setups I have for the heads
\setuphead[chapter][
header=empty,
page={yes,header,right},
number=yes,
alternative=middle,
style=\tfa \bf,
after={\blank[0.5cm]},
]

en 
\setuphead[section][
style=tfa,
number=yes,
alternative=left,
indentnext=no
]

Changing "after={\blank[0.5cm]}" to "after={\blank[0.1cm]}" or omitting it 
altogether did not have any effect. 

If the culprit is to be found  in the Frontmatter, or its specific setups, what 
should I look for?

Thanks in advance for any help.

Best regards,

Robert Blackstone___
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] Distances between chapter and section titles and text

2014-08-15 Thread Robert Blackstone

On 13 Aug 2014, at 09:07 Robert Blackstone  wrote

> Is it possible, in mkiv, to fine-tune the distance between a chapter head and 
> a section head,  between the end of a section and the following section head, 
> and between a section head and the beginning of the text?

A few days ago I posted this question. There were no reactions, but it is not 
an urgent matter for me anymore since I found an effective work-around. 
(Although I still wonder whether or not this possibility exists in mkiv,)

I admit having been a bit panicky because a tiny difference in layout between 
my testversions and the final product, with exactly the same setups, led to a 
result that more or less forced me to reposition and/or redimension most of my 
520 carefully positioned floats, a few days before the deadline. 

Anyway, sorry for the noise.

Best regards,
Robert Blackstone

___
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] Distances between chapter and section titles and text

2014-08-18 Thread Robert Blackstone

On 17 aug. 2014, at 20:06,  wrot

> On 2014-08-15, 19:56, Robert Blackstone wrote:
> 
>> A few days ago I posted this question. There were no reactions, but
>> it is not an urgent matter for me anymore since I found an effective
>> work-around. (Although I still wonder whether or not this possibility
>> exists in mkiv,)
> 
> I have not seen the issue you have described myself.  The attached
> example works for me.  You have to prepare a minimal working example
> that shows the problem.  Maybe then somebody can identify the reason
> for your issue.
> 
> 
Hello Joshua,
Thanks for your reaction.
The minimal example you gave works here as well, but it does not really concern 
the problem I had.

When you add a section right at the beginning of the chapter, as is the case 
for nearly all of the chapters of my project, things become different.
Here is your ME with sections added:

===
\starttext

%\startfrontmatter
%\input knuth
%\stopfrontmatter

\startbodymatter

\setuphead [chapter] [
number=yes,
alternative=middle,
style=\tfa \bf,
after={\blank[0.5cm]},
]

\chapter{One}
\section{One a}
\input knuth

\setuphead [chapter] [
number=yes,
alternative=middle,
style=\tfa \bf,
after={\blank[0.1cm]},
]

\chapter{Two}

\section{Two a}
\input knuth

\stopbodymatter

\stoptext
===
Despite different setups for the chapter head the distances: chapter head - 
section head - beginning of the text,  are identical in both chapters (±1 
pixel).
But I have realized now, a bit late, that for real control over these distances 
one also needs to setup the section-head in a similar manner, additionally 
specifying the distance "before".
The presence or absence of Frontmatter does not influence results.
I think there must have been a setup command somewhere in my setups that I had 
forgotten about.

Kind regards, 
Robert

___
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] Distances between chapter and section titles and text

2014-08-19 Thread Robert Blackstone

On 18 Aug 2014, at 10:43 ,  Wolfgang Schuster  
wrote:
wrote:
> 
> Am 18.08.2014 um 09:29 schrieb Robert Blackstone 
> :
> 
>> 
>> On 17 aug. 2014, at 20:06,  wrot
>> 
>>> On 2014-08-15, 19:56, Robert Blackstone wrote:
>>> 
>>>> A few days ago I posted this question. There were no reactions, but
>>>> it is not an urgent matter for me anymore since I found an effective
>>>> work-around. (Although I still wonder whether or not this possibility
>>>> exists in mkiv,)
>>> 
>>> I have not seen the issue you have described myself.  The attached
>>> example works for me.  You have to prepare a minimal working example
>>> that shows the problem.  Maybe then somebody can identify the reason
>>> for your issue.
>>> 
>> 
>> But I have realized now, a bit late, that for real control over these 
>> distances one also needs to setup the section-head in a similar manner, 
>> additionally specifying the distance "before".
>> The presence or absence of Frontmatter does not influence results.
>> I think there must have been a setup command somewhere in my setups that I 
>> had forgotten about.
> 
> You?re forgetting that \section insert also a space before the text is 
> placed. In a case where two commands insert a space at the same position like 
> here the larger value is used which comes in the second chapter from the 
> \section command.
> 
> Wolfgang
Thank you, Wolfgang. I was not forgetting what you describe. Worse, I had not 
taken any notice, just accepting the default distances as they appeared, which 
generally seemed OK.
I hope to be a bit ConTeXt-wiser now.

Kind regards,
Robert Blackstone
___
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] Erratic error message

2014-09-17 Thread Robert Blackstone

Hi all,
When typesetting my project with interaction, sometimes the processing stops 
after a few runs with an error message that points at an empty line in one of 
the chapters that normally gives no trouble. 

For interaction this setup is used:
\setupinteraction[state=start,focus=standard,style=,color=blue,contrastcolor=]
\placebookmarks[prechapter,chapter,section][prechapter,chapter,section][number=no]

When I comment out the first of these two lines, in other words, without 
interaction, the project is processed without any problem.
Sometimes, unfortunately not always, when I immediately repeat the processing 
with interaction, all goes well. 

So what is my problem? Not understanding what might be wrong, and not being 
able to correct things gives me a feeling of insecurity, trusting Murphy’s law 
to make sure that processing will fail when my deadline is approaching fast.

I use mkiv on Mac OSX 10.9.4. All my standalone versions from january up to 
today give the same behaviour.

I mostly get the following  error message:  (occasionally something different 
happens: the processing gets into some endless loop and I have to abort it)

+++
tex error   > error on line 2314 in file TD-Ch3.tex: ! Attempt to 
double-free dir node 54467, ignored


\page_shipouts_normal ...box \shipoutscratchbox }}
  \else \page_shipouts_ignor...
\page_boxes_shipout ... {\box \shipoutscratchbox }
  \fi \setnextrealpageno \th...
\page_otr_construct_and_shipout ...cted_page #1#2}
  \page_otr_flush_pending_co...
\page_sides_output_routine_nop ...de_float_output 
  \global \d_page_sides_vsiz...
\page_sides_output_routine ..._output_routine_nop 
  \fi 
\page_otr_triggered_output_routine ...and_routine 
  \fi 
...
l.2314 
 

2304 {\externalfigure[LegrenIoViLasfa]}{}
2305 {\externalfigure[LegrenIoViLasfi**]}{}%LegrenIoViLasfi* voor 
verbeterde versie
2306 \stopcombination
2307 
2308 
2309 %{\externalfigure[LegrenIoViLastot]}  
2310 %Ex. 3.70 Legrenzi\index[Legrenzi]{Legrenzi, Giovanni}, aria \quote{Io 
vi lascio}
2311 
2312 
2313 Of course the major 6th should also be played upon the {\em a}  in 
b.~3.
2314 >>  
2315 
2316A number of major 6ths occur in the first section of 
Frescobaldi\index[Frescobaldi]{Frescobaldi, Girolamo}'s \quote{Capriccio sopra 
La Sol Fa Mi Re Ut} %\footnote{Frescobaldi\index[Frescobaldi]{Frescobaldi, 
Girolamo}, {\em Il primo libro di capricci} (Rome, 1624), ME (Milan, 1984), 9.}
2317 
(\in{Ex.}[fig:FrescCaprLaSolFaMiReUtfi]).\footnote{\dcite{Frescobaldi:1984blb}, 
9.} All sharps are used above respectively the descending bass progressions 
{\em e'}$\xrightarrow[none]${\em d'}, with {\em \sharp c''}; {\em 
a}$\xrightarrow[none]${\em g}, with {\em \sharp f''}, %G\sharp, 
2318 and {\em B}$\xrightarrow[none]${\em A}   with {\em \sharp g'}. 
%G\sharp.
2319 
2320 
2321 
\placeexample[force][fig:FrescCaprLaSolFaMiReUtfi]{Frescobaldi\index[Frescobaldi]{Frescobaldi,
 Girolamo}, \quote{Capriccio sopra La Sol Fa Mi Re Ut}, bb.~7-15}
2322 {\externalfigure[FrescCaprLaSolFaMiReUtfi*]}%* voor compr
2323 %Ex. 3.71 Frescobaldi\index[Frescobaldi]{Frescoba 

++

Does anybody have any idea what is wrong here? (I should add that when I 
comment out or hide this passage the error moves to the next passage and so on.)

Best regards,
Robert Blackstone___
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] Erratic error message

2014-09-17 Thread Robert Blackstone

On 17 Sep 2014, at 19:38 ,  Hans Hagen  wrote
> 
> On 9/17/2014 12:59 PM, Robert Blackstone wrote:
>> 
>> Hi all,
>> 
>> When typesetting my project with interaction, sometimes the processing
>> stops after a few runs with an error message that points at an empty
>> line in one of the chapters that normally gives no trouble.
> 
> a minimal example is needed

HI Hans,
I have tested this project down to every little snippett and I never get this 
error with the message as described, unless the whole project, a book of about 
450 pages with around 400 graphics, is processed with interaction, and even 
then it does not always occur. It may or may not happen.
I would not know how to make a minimal example that will consistently give the 
error.
I had hoped that this text in the error message: “Attempt to double-free dir 
node 54467, ignored” would contain some information as to what might be wrong, 
but apparently it does not.
Anyway, thanks for your attention.
 
Best regards,
Robert

___
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] Erratic error message

2014-09-23 Thread Robert Blackstone

On 23 Sep 2014, at  11:34:45 +0600, Henning Hraban Ramm  wrote
> 
> Am 2014-09-18 um 01:37 schrieb Robert Blackstone 
> :
> 
>> I would not know how to make a minimal example that will consistently give 
>> the error.
>> I had hoped that this text in the error message: ?Attempt to double-free dir 
>> node 54467, ignored? would contain some information as to what might be 
>> wrong, but apparently it does not.
> 
> Might that mean something like ?too many open files??
> Did you try to change you OS?s settings? See 
> http://wiki.contextgarden.net/LilyPond#Too_many_open_files
> 
> Or maybe too many files in a working directory (that containing your files or 
> a temp dir of ConTeXt)?

Thanks, Hraban, for your advice.
I’ve no idea whether or not the error is connected with “too many open files”. 
The Project needs some 40 files but its working directory contains some 120 
files  (most of them only for testing purposes). Moreover, I usually only have 
the “project-file" open during processing (but I don’t know if that is 
important here).
Surprisingly, as I wrote in my first post on this subject, the error up till 
now only occurs when I use interaction, and it usually does not occur anymore, 
at least on the same day, after I processed it once without interaction. But 
the next day, after sleep (of the Mac), the error may occur again.

I did not change the settings but I will in case the problem gets worse.

Best regards,
Robert


___
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] Erratic error message

2014-09-24 Thread Robert Blackstone

On 24 Sep 2014, at 12:00 ,  13:42:41 +0200 Taco Hoekwater  
wrote
> 
> On 23 Sep 2014, at 12:51, Robert Blackstone  
> wrote:
> 
>> 
>> On 23 Sep 2014, at  11:34:45 +0600, Henning Hraban Ramm  
>> wrote
>>> 
>>> Am 2014-09-18 um 01:37 schrieb Robert Blackstone 
>>> :
>>> 
>>>> I would not know how to make a minimal example that will consistently give 
>>>> the error.
>>>> I had hoped that this text in the error message: ?Attempt to double-free 
>>>> dir node 54467, ignored? would contain some information as to what might 
>>>> be wrong, but apparently it does not.
>>> 
>>> Might that mean something like ?too many open files??
>>> Did you try to change you OS?s settings? See 
>>> http://wiki.contextgarden.net/LilyPond#Too_many_open_files
>>> 
>>> Or maybe too many files in a working directory (that containing your files 
>>> or a temp dir of ConTeXt)?
>> 
>> Thanks, Hraban, for your advice.
>> I?ve no idea whether or not the error is connected with ?too many open 
>> files?. 
> 
> It is not. ?dir node? means ?direction node? in this context. Nodes are 
> LuaTeX internal data structure objects.
> Various bits of ConTeXt manipulate these objects, and sometimes the reference 
> counting goes off and one
> whose memory has already been given back to the operating system is asked to 
> release its memory again.
> 
> The message is harmless, but it points to a small lua programming error 
> somewhere in the source (either
> by the author or by ConTeXt).

Thanks, Taco. 
I will stop worrying about looming disasters.

Best regards,
Robert

___
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] splitting bibliographic references

2014-09-30 Thread Robert Blackstone

On 30 Sep 2014,  Andrea Valle  wrote
> I?m working on a project for a book that is a collection of essays.
> Each one needs at its end a list of references.
> 
> 
> But how can I force context to take into account only a portion of text for 
> generating bibliographic references and for inserting a block of references 
> after a section?
> (To collect all refs in a single bib file or to have split bib files is not 
> an issue)

Hi Andrea,
It probably depends on whether you cite your bibliographic references in the 
text of your essay, or only a part of them.

What I would do anyway is to make a subsection or a subject “References" after 
each essay, add the references that I have not cited in my text as \nocite[key] 
and finish with  \placepublications[criterium=cite]. 

I should perhaps add that I always process my projects without using the 
bib-module. I separately make the necessary .bbl-files, which I linput before 
\starttext. It gives me a lot of flexibility. 

I hope this helps.

Best regards,
Robert Blackstone


___
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] splitting bibliographic references

2014-09-30 Thread Robert Blackstone

On 30 Sep 2014, at 11:45 , Andrea Valle  wrote
> 
> Could you provide a minimal example?
> 
> I?ve never used ConTeXt for this, and I?m a bit stuck

Hi Andrea,

Here is a “minimal" example.  It is for mkii now but you can easily switch to 
mkiv by changing the starting (and stopping) of the chapters.
Is this what you had in mind?

Best regards,
Robert Blackstone 


%Ref.: ntg-context Digest, Vol 123, Issue 46, 30-09-2014
%Subject:  splitting bibliographic references


\setuppublicationlist[samplesize={{Lam}81},totalnumber=4]

\startpublication[k=Arnold:1931bl,t=booklet,
a={{{Arnold, Franck. T.}}},y=1931,
n=4,s={Arn}31]
\author[]{}[]{}{{Arnold, Franck. T.}}
\pubyear{1931}
\title{{The Art of Accompaniment from a Thorough-Bass as practiced in the 17th
  and 18th centuries}}
\pubname{The Holland Press}
\city{London}
\stoppublication

\startpublication[k=ChristensenT:1992qzbl,t=booklet,
a={{{Christensen, Thomas}}},y=,
n=3,s={Chr}]
\author[]{}[]{}{{Christensen, Thomas}}
\title{{{\em \quote{The Spanish Baroque Guitar and Seventeenth-Century Triadic
  Theory}}, JMT, {\em 36 (1992), 1-42}}}
\stoppublication

\startpublication[k=Dreyfus-Laurence:1987zbl,t=booklet,
a={{{Dreyfus, Laurence}}},y=1987,
n=2,s={Dre}87]
\author[]{}[]{}{{Dreyfus, Laurence}}
\pubyear{1987}
\title{{Bach's Continuo Group: Players and Practices in his Vocal Works}}
\city{Cambridge}
\stoppublication

\startpublication[k=Lamott:1981crbl,t=booklet,
a={{{Lamott, Bruce A.}}},y=1981,
n=1,s={Lam}81]
\author[]{}[]{}{{Lamott, Bruce A.}}
\pubyear{1981}
\title{{{\em \quote{Keyboard Improvisation according to \quotation{Nova
  instructio pro pulsandis organis}, 1670-{\em c}1675} by Spiridion a Monte
  Carmelo, Ph.D.~diss.~(Stanford U., 1980), repr.}}}
\city{Ann Arbor, MI}
\stoppublication


\starttext
\chapter{Knuth}%mkii
%\startchapter[bookmark=,list=,title={Knuth}]%mkiv
\input knuth
\section{References}

\nocite[Arnold:1931bl]
\nocite[ChristensenT:1992qzbl]

\placepublications[criterium=cite]
%\stopchapter%mkiv

\chapter{Tufte}%mkii
%\startchapter[bookmark=,list=,title={Tufte}]%mkiv
\input tufte
\section{References}

\nocite[Dreyfus-Laurence:1987zbl] 
\nocite[Lamott:1981crbl]
\placepublications[criterium=cite]
%\stopchapter%mkiv


\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] (MKIV beta) APA citations: "et al." incorrectly written

2014-10-08 Thread Robert Blackstone

On 6 Oct 2014, at 23:33 , Sander Maijers 
 wrote:

> Who can offer a short-term solution to this problem? All I want is to
> reference a work, listing all of the authors' names, in APA6 format. If
> necessary I'll prescribe the output format manually.
> 
> Best,
> 
> Sander Maijers
> 
>>> 
>>> \setupbibtex[database={references/bibliographic_database},sort=author]
>>>> \setuppublications[alternative=apa]
>>>> 
>>>> \starttext
>>>>\cite[extras={, p.~3}][Zhou2012]
>>>>\cite[Zhou2012]
>>>> \stoptext
>>>> 
>>> 
>>> Incorrectly produces:
>>> 
>>>> (Zhou et al., 2012, p. 3) (Zhou et al., 2012)
>>>> 
>>> 
>>> Instead of:
>>> 
>>>> (Zhou, Lyu, & King, 2012, p. 3) (Zhou, Lyu, & King, 2012)
>>> 
>>> 

What I would do is, for the final processing, not to load the .bib-file but the 
.bbl that was generated in the previous run. You can open that file in any text 
processor (I mostly use TeXShop) and manually change the Author for this 
particular entry. In the .bbl the field Author has this form: \author[]{}[]{}{} 
.

You should be able to solve your problem by putting inside the last pair of 
brackets exactly how you would like your authors et. al. to appear in your 
output. Place the whole lot again between brackets:  \author[]{}[]{}{{Zhou, Tom 
Chao and Lyu, Michael R. and King, Irwin}} or whatever you want.

But again,  don’t input the bib-file. Every time you do that the old .bbl is 
overwritten and your correction will be lost. ConTeXt uses the .bbl, not the 
.bib.

I hope this helps.
Best regards,

Robert Blackstone

___
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] (MKIV beta) APA citations: "et al." incorrectly written

2014-10-09 Thread Robert Blackstone

On 9 Oct 2014, at 08:52 , Sander Maijers  wrote:

>  Am I correct in that you would enforce a single concrete
> citation format throughout the document that way?
No, it would just change the Author-field for one particular entry that is 
causing trouble.
One can correct all faulty entries that way of cause. 

>  You were asking for comments
> about your solution, I hope the following remarks are informative to
> you.
> 
> My .bib file is being autogenerated by Mendeley, a reference manager,
> and changes often in terms of contents. That workflow seems
> incompatible with your solution. Furthermore, I may not let the
> authors appear in citations with all their names every time, it should
> be limited to the first time (the APA 6 rules, that I referred to).
> With your solution, 1 out of n citations would be correct, while in
> the current situation (without manual intervention) n-1 out of n would
> be correct (all but the first).
> 
 I clearly misunderstood your problem, which, as I see now, thanks to your 
remarks, is rather different from mine. 
I would not have sent you my silly answer if I had known this.

On the other hand, I too need citations and bibliographic references to appear 
in different forms, three in my case:
In the Bibliography with Author: Last name, first name, 
In the text and footnotes the first time with Author(s): First name(s), last 
name(s),  and full title of the work, and in all the following citations with 
Author(s): Last name(s) only and short title of the work. 
I could think of no other way to accomplish this than to generate the .bbl, 
make two copies, “Inversed Author” and “Short Title”, make the necessary 
changes in these .bbl’s, including the cite-key to mark it for these two 
alternatives. I should add that I could not use apa  but an apa-like, modified 
in many details which also forced me to tweak the .bbl.

It all seems a lot of work but it is straightforward, it works for me and it 
protects me from an enormous amount of frustration.
(And I’m glad my .bib-file is not autogenerated.)

Best regards,

Robert Blackstone



___
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] (again) bug in index sorting?

2014-11-02 Thread Robert Blackstone

On 2 Nov 2014, at 12:00 ,  Pablo Rodriguez  wrote
> 
> I have the following sample:
> 
> \setuppapersize[A6]
> \starttext
> \index{tipografía digital}
> \index{tipografías}
> \index{tomato white}
> \index{tomatoes red}
> \index{idioma+de un pasaje}
> \index{idioma+del documento}
> \completeindex
> \stoptext
> 
> Latest beta from 2014.10.31 12:47 sorts the index entries the following way:
> 
>   tomatoes red
>   tomato white
> 
> Of course, this sample doesn’t make sense, but the entries in Spanish
> do. All of them are wrong sorted.
> 
> Stable version from 2014.01.03 00:40. The different sorting criterium
> seems to have been introduced in beta from 2014.10.22 16:23.
> 
> Or shouldn’t be the first word sorted first and then the second one in
> index entry?
> 
> Could anyone be so kind to confirm the bug?
> 
> Many thanks for your help,
> 
> 
> Pablo

Hi Pablo,
I cannot confirm any bug, but what I would do anyway is to force the sorting in 
whatever order I want by using
\index[]{} with the argument specifying the order.
So your example could be:

\starttext
   \index[tipograf\'{i}adig]{tipograf\'{i}a digital}
   \index[tipograf\'{i}as]{tipograf\'{i}as}
   \index[idiomadeu]{idioma+de un pasaje}
   \index[idiomadel]{idioma+del documento}
   \completeindex
   \stoptext

if you want tipografias digital before tipografias.
This works with all mkiv and mkii versions I have, including the ones that I 
installed today. I use it for a rather comlex three-level index and it works 
flawlessly (for me).

Best regards,
Robert Blackstone

___
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] (again) bug in index sorting?

2014-11-03 Thread Robert Blackstone

On 3 Nov 2014, at 10:01 , Alan BRASLAU  wrote
> 
> On Sun, 2 Nov 2014 12:45:25 +0100
> Robert Blackstone  wrote:
> 
>> 
>> On 2 Nov 2014, at 12:00 ,  Pablo Rodriguez  wrote
>>> 
>>> I
> Alphabetize letter by letter. When alphabetizing surnames, remember
> that “nothing precedes something”: Brown, J. R., precedes Browning, A.
> R., even though i precedes j in the alphabet.
> 
> Singh, Y., precedes Singh Siddhu, N. 
> López, M. E., precedes López de Molina, G.
> Ibn Abdulaziz, T., precedes Ibn Nidal, A. K. M.
> Girard, J.-B., precedes Girard-Perregaux, A. S.
> Villafuerte, S. A., precedes Villa-Lobos, J.
> Benjamin, A. S., precedes ben Yaakov, D.

Hi Alan, 
This still puzzles me a bit. 
You write: “Brown, J. R., precedes Browning, A.R., even though i precedes j in 
the alphabet.” 
But isn’t that because “," precedes “i" ?
Likewise, when sorting these names (with TeX-Edit Plus), Singh Siddhu, N. comes 
out  before Singh, Y., not the reverse, precisely because, as you say, “nothing 
precedes something”, or the space between Singh and Siddhu precedes  the comma 
between Singh and Y.
Same with López de Molina, G. and López, M. E.

Or does ConTeXt, or TeX, have its own sorting order?

Best regards,
Robert Blackstone




___
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] Problem with PDF bookmarks (outline)

2014-11-04 Thread Robert Blackstone

On 4 Nov 2014, at 15:27 , Michał Goliński   wrote
> 
> A few weeks back I've asked here about the structure of titles, as the 
> PDF bookmarks didn't work for me. I was given a solution, which should 
> work, but unfortunately it doesn't. I don't know if this is a bug or is 
> this expected behaviour.
> 
> For the file:
> 
> \setupinteraction[state=start]
> \placebookmarks[part,chapter,section]
> \setupinteractionscreen[option=bookmark]
> \starttext
> \placecontent
> 
> \startfrontmatter
>  \startchapter[title=Prologue]
>  \input knuth
>  \stopchapter
> \stopfrontmatter
> 
> \startpart[title={Part A}]
>   \startchapter[title=One]
>   \input knuth
>   \stopchapter
> \stoppart
> 
> \startbackmatter
>  \startchapter[title=Epilogue]
>  \input knuth
>  \stopchapter
> \stopbackmatter
> \stoptext
> 
> 
> ConTeXt (Mk IV) generates a PDF file which has only one item in the 
> bookmarks -- the Prologue. The other chapters show up only if the file 
> is changed with
> 
> \placebookmarks[chapter,section]
> 
> but then of course there is no sign of Part A in the bookmarks.
> 
> I would expect the bookmarks to look like this:
> 
> Prologue
> Part A
>   One
> Epilogue

Hi, 
I think it is a  very recent bug. Only the standalone I installed  today gives 
the same wrong result that you get. 
My previous standalones, of which the most recent was installed two days ago, 
on  november 2, all give the correct result. That is, the bookmarks look OK but 
Part A starts on empty page 3 (no head) and Chapter 1 starts on page 4.
Is that really what you want?


Best regards,
Robert Blackstone
___
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] How does \setupfloat work?

2014-11-29 Thread Robert Blackstone

On 29 Nov 2014, at 11:49 ,  Mark Szepieniec  wrote
> Sorry, I should have mentioned I was able to work around it by doing
> exactly that, but I'd rather not have to edit all the \placefigure
> instances if I decide to change the width.
> 
> Also I'd like to use a different default width for graphics, so
> \setupexternalfigures[width=XXXcm] wouldn't work well either.
> 
> I realize I could define my own macros or something to solve this, but I'm
> just puzzled that setting width in \setupfloat[figure] doesn't work. Am I
> reading the manual wrong, or is is just not implemented yet or something?
> (honest question)
 
Hi Mark,
What I would probably do (again) is:

1 leave out the float dimension from the setup and use something like
\definefloat[figure][figures]
\setupfloat[figure][location=,spacebefore=,spaceafter=,sidespacebefore=,sidespaceafter=]
 or whatever you want in this respect

2 collect in a separate .tex-file, to be input in your document .tex-file, all 
figure-data in the form 
\useexternalfigure[Fig1][YourFigure1.png][width=.x\textwidth]%  etc

If you want a different uniform figure width you can then easily replace ijn 
this file all width=.x\textwidth by width=.y\textwidth.

3 In your document .tex-file use 
\placefigure[here][Fig1]{Title}
{\externalfigure[Fig1]}  

This will probably give you optimal flexibility.

I hope it helps.

Best regards,
Robert Blackstone






___
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] bib module - urgent!

2015-01-20 Thread Robert Blackstone

On 20 Jan 2015, at 10:16 ,  Idris Samawi Hamid ادريس سماوي حامد wrote
> 
> I also set up an extensive bib environment (attached) to take care of all  
> sorts of things.
> 
> If this is broken, can it be fixed asap? Please don't make me have to  
> convert bbl to bib; that will be beyond depressing. Also don't want to  
> lose my environment commands.
> 
> This is urgent because there is only a short time to finish this article,  
> and I really want to spend more time writing the content than debugging  
> Context! :-) :-) :-)
> 
> Best wishes

What happens if you do not load the bib-module, in other words, omit  
\usemodule[bib],  and input only your existing .bbl-files and your bibliograhy 
setups?
This is what I always do and it still works with the standalone that I 
installed on january 13 this year.

Best regards,
Robert Blackstone


___
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] bibliography again: “von” and “van”

2015-01-29 Thread Robert Blackstone

On 28 Jan 2015, at 12:00 ,  Keith Schultz  wrote
> 
> We could simply add all kinds of switches and coding to help this process,
> but in the end we end up with an over complicated format that grows into a 
> monster!

and

> 
> I as an old school type and database person would think it far better, to take
> a more pratical approach.

Most probably I’m not qualified to seriously discuss Bibliography matters in 
ConTeXt, but wat Keith has written here appeals to me.

It would probably be OK to try and control all and everything in a Bibliography 
with commands and codes if there were only a few standard ways of presenting a 
bibliography.
But that is not the case, even if most people seem to use apa-style.

What should one do with an old book, of which there are several “facsimile 
editions” and an English translation, and you were required, by the publisher 
or the university, to render it in the Bibliography in the following way:

Gasparini, Francesco, L’Armonico pratico al cimbalo (Venice, 1709); repr. (New 
York, 1967); repr. (Bologna, 2001); trans. Frank Stillings as The Practical 
Harmonist at the Harpsichord (New Haven, CT, 1963)

or, other example:

Buchner, Hans, Das Fundamentbuch (c1525), CH-Bmi, MS F.I.8; ME: in Carl 
Paesler, ‘Fundamentbuch von Hans von Constanz, Ein Beitrag zur Geschichte des 
Orgelspiels im 16. Jahrhundert’, VMw, 5 (1889), 1-192

?

With a Bibliography to make of about 500 items, for a PhD thesis, of which more 
than half were of this kind, I gave up on all sophisticated tools of BibTeX and 
exclusively used the format Booklet, with Author, Title, City and PubYear, 
generated a .bbl and edited that to give me  the correct form.
And, yes, I had to tweak the apa -style a little but that part was easy.

The two examples are in the .bbl-file as follows:

\startpublication[k=Gasparini:2001ublt,t=booklet,
a={{{Gasparini, Francesco}}},y=2001,
n=73,s={Gas}01]
\author[]{}[]{}{{Gasparini, Francesco}}
\pubyear{1963}
\title{{L'armonico pratico al cimbalo {\em (Venice, 1708); repr.~(New York, 
1967); repr. (Bologna, 2001); trans.~by Frank Stillings~as} The Practical 
Harmonist at the Harpsichord}}
\city{New Haven, CT}
\stoppublication

\startpublication[k=Buchner:1525fblt,t=booklet,
a={{{Buchner, Hans}}},y=,
n=39,s={Buc}]
\author[]{}[]{}{{Buchner, Hans}}
\title{{{Das Fundamentbuch} {\em ({\em c}1525), CH-Bmi, MS F.I.8; ME: in Carl 
Paesler,  \quote{Fundamentbuch von Hans von Constanz, Ein Beitrag zur 
Geschichte des Orgelspiels im 16.~Jahrhundert}}, VMw, {\em 5 (1889), 1-192}}}
\stoppublication

Primitive? Certainly. But it is straightforward, very flexible and it works. 

I hope of course that the new Bibliography tool will be very powerful, but I 
also hope that it will remain possible, in ConTeXt, to keep doing things in a 
simple manner.

Best regards,

Robert Blackstone



___
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] Does a "half-space" or small space exist in ConTeXt?

2015-03-08 Thread Robert Blackstone
Hi all,

I would like to use something like a "half-space" or small space in a situation 
where neither no space, nor a normal space is ideal.
See the ME:
-
\usemodule[simplefonts]
\setmainfont[Verdana]
\setupbodyfont[10pt]
\starttext
On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}}, moves to the 
octave {\em \lohi{A}{a} . 
\medskip
On the third beat a 6th between bass and tenor, {\em \lohi{B}{g}} , moves to 
the octave {\em \lohi{A}{a}} . 
\stoptext


Without a space after {\em \lohi{B}{g}}, the normal situation, the comma is too 
close to the B, (and the period too close to the A), suggesting some 
superscript.
A normal space does not look nice (but if necessary I could live with it)

Is there an intermediate size for a space somehow?

Thanks in advance.

Bets regards,
Robert Blackstone
___
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] Does a "half-space" or small space exist in ConTeXt?

2015-03-08 Thread Robert Blackstone

On 8 Mar 2015, at 13:04 , Wolfgang Schuster  wrote

>> 12:24 schrieb Robert Blackstone :
>> 
>> Hi all,
>> 
>> I would like to use something like a "half-space" or small space in a 
>> situation where neither no space, nor a normal space is ideal.
> 
> You can use \thinspace or \, which is the short form of \thinspace.
> 
> BTW. The context version of \medskip is \blank[medium].

Thanks Wolfgang.

“\thinspace” works perfectly for my purpose.

Oddly enough, \, gives no comma and a normal space, \. gives no period and no 
space with mkiv, and a superscript period with mkii.
Could these forms for \thinspace perhaps be obsolete? 

Best regards, 
Robert Blackstone


___
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] Does a "half-space" or small space exist in ConTeXt?

2015-03-08 Thread Robert Blackstone

On 8 Mar 2015, at 14:12 ,  Wolfgang Schuster  wrote
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Does a "half-space" or small space exist in
>   ConTeXt?
> Message-ID: <49ac1148-387a-4934-932a-334cadbb5...@gmail.com>
> Content-Type: text/plain; charset=utf-8
> 
> 
>> Am 08.03.2015 um 13:55 schrieb Robert Blackstone 
>> :
>> 
>> 
>> On 8 Mar 2015, at 13:04 , Wolfgang Schuster  
>> wrote
>> 
>>>> 12:24 schrieb Robert Blackstone :
>>>> 
>>>> Hi all,
>>>> 
>>>> I would like to use something like a "half-space" or small space in a 
>>>> situation where neither no space, nor a normal space is ideal.
>>> 
>>> You can use \thinspace or \, which is the short form of \thinspace.
>>> 
>> 
>> 
>> Oddly enough, \, gives no comma and a normal space, \. gives no period and 
>> no space with mkiv, and a superscript period with mkii.
>> Could these forms for \thinspace perhaps be obsolete? 
> 
> 
> I have no problem to use \, as a space command but when you use don’t put a 
> space between the command and the following character.


My mistake: I forgot to add a comma after \, !
 \,, indeed works beautifully for my purpose. 
And thanks for the list of possibilities for spaces of various sizes.

Best regards,

Robert Blackstone


___
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] Does a "half-space" or small space exist in ConTeXt?

2015-03-09 Thread Robert Blackstone
On 8 Mar 2015, at 23:17 , Idris Samawi Hamid ادريس سماوي حامد  wrote
> 
On Sun, 08 Mar 2015 05:24:51 -0600, Robert Blackstone  
 wrote

>> I would like to use something like a "half-space" or small space in

> All the suggestions you have received are good, but ultimately you might  
> want to look at the spaces that Unicode provides, for example 202F. Not  
> sure sure which Unicode space character best suits your needs, but once  
> you have determined that, you can map it to one of the commands suggested  
> by others, or even define it to the exact width you want. For example, I  
> use imacron (U+012B) so much that it clashes with other characters. So I  
> map it to an alternate version that has a thinner macron:
> 
> \defineactivecharacter ī {\fontchar{imacron.alt}}
> 
> So what you want is a unicode space character that you can enter in your  
> editor, then define it in ConTeXt to exactly what you want.

and Hans Hagen  wrote

> fyi: the list that Wolfgang shows with verbose space names ... these are 
> in fact unicode characters.

Thanks to both of you for pointing this out to me. 
Up till now I have never used unicode characters the way Idris proposes and I’m 
not sure that I already have the skills to make it work.  
For the moment I’m quite happy with the many possibilities that were given by 
Wolfgang and Hans.

Best regards,
Robert

___
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] Bibliographies in mkiv - announcement and WARNING!

2015-03-11 Thread Robert Blackstone

On 9 Mar 2015, at 21:28 , Alan BRASLAU 

> ANNOUNCEMENT

> We introduced into the core of MKIV a dataset subsystem, not
> necessarily limited to the generation of bibliographic lists. This new
> subsystem has been part of the distribution for some time and an early
> first draft of its documentation had been made available.
> 
> After putting the new system to heavy use in a real,
> bibliographic-intensive book project, and after much fighting
> back-and-forth over specifications and design choices, the upcoming
> beta standalone distribution will finally contain this completely
> revamped subsystem. 
> Hans and Alan (also with the help of Thomas and Luigi).
> 
Hi Alan and Hans,
Maybe it is a bit early to ask questions already about this new bibliography 
tool. But it really interests me and I do need it.

First of all, I compiled the ME and added a number of my own .bib entries and 
they all came out well. It looks as if I can just continue use my existing 
BibTex database in the new system and continue using BibDesk for new items, 
which is a very good thing. No need to generate .bbl’s separately. (Though I 
hope that ConTeXt will keep the possibility to process .bbl’s as before.)

My questions are:
1 The ME contains no setup, no indication of a particular Bibliography style. 
What comes out in the ME looks like apa. Are there style files connected with 
this system? If so are they accessible for tweaking (I need some rather 
uncommon Bibliography style, sort of apa-like but different in many details)?
2 The \cite-command turns out just some number in square brackets, no info on 
what is cited. Is that a bug?
3 In the old system I used \dcite[key] for footnotes but \dcite is not 
recognized now. Is there another way?

Best regards,
Robert Blackstone

___
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] Index items

2015-04-14 Thread Robert Blackstone
Dear all,

The book I am typesetting contains a very extensive and detailed index. The 
number of index items is probably around 1200, 16 pages. 
A fair number of them occur in more than one chapter.
Like bibliography items, and for the sake of consistency, I have stored them in 
some auxiliary files and it is a matter of copy and paste to get them into the 
text in the proper place and way. (With always a risk of accidentally deleting 
or adding a spurious brace or bracket, with nasty results.)

I wonder therefore whether it would be possible to handle them like 
bibliography items, by means of a key, and leave their expansion to ConTeXt.

Would it be possible?
And if it is not (yet) possible, how could I perhaps tackle it?

Thanks for any advice.

Best regards,

Robert Blackstone___
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] Index items

2015-04-15 Thread Robert Blackstone

On 15 Apr 2015, at 19:51 ,  Alan BRASLAU  wrote
> Hans Hagen  wrote:
> 
>> On 4/14/2015 1:48 PM, Robert Blackstone wrote:
>>> Dear all,
>>> 
>>> The book I am typesetting contains a very extensive and detailed
>>> index. The number of index items is probably around 1200, 16 pages.
>>> A fair number of them occur in more than one chapter.
>>> Like bibliography items, and for the sake of consistency, I have
>>> stored them in some auxiliary files and it is a matter of copy and
>>> paste to get them into the text in the proper place and way. (With
>>> always a risk of accidentally deleting or adding a spurious brace
>>> or bracket, with nasty results.)
>>> 
>>> I wonder therefore whether it would be possible to handle them like
>>> bibliography items, by means of a key, and leave their expansion to
>>> ConTeXt.
>>> 
>>> Would it be possible?
>>> And if it is not (yet) possible, how could I perhaps tackle it?  
>> 
>> so you want to remap given index entries to new ones? at what moment?
> 
> We index pretty heavily now in the new bibliography dataset subsystem,
> that is one can create an index of authors, an index of keywords, an
> index of titles, etc. as well as index the pages on which a reference
> is cited. All of the information is there.
> 
> So say that you want to create a database of anything: words, images,
> phrases. You can put these into the database structure and then insert
> them or any associated information wherever you want in your text,
> later producing lists and indexes.
> 
> Can you give an example of what type of information you extensively
> index with detail?
> 
> Alan
Hi Alan,
 I realize that I have not yet reacted to Hans’ reply. So let me do that first 
(it was written but not yet sent).

 Hi Hans, 
Do I want to remap given index entries? Assuming I understand your reply 
correctly the answer is: Yes, in principle. I would want to be able to change 
them if there are errors, or if some publisher has different views about the 
presentation of titles of items that are in the index (titles of songs, for 
instance). And also when (parts of) the text has (have) to be reused for other 
purposes. Change them in one operation, that is, not by digging up all 
occurrences in the book of the item that has to be changed.

In answer to Alan’s question: names, theoretical treatises and manuscripts, 
musical works, musical terms. Nearly all examples in the book have several 
features that have to be indexed: composer’s name, title of the published work 
(an opera for instance), title of the particular aria of which the example 
shows a fragment, and the special features that are shown in the example, 
parallel 7ths, for example.
The not-so-minimal example below (best processed iwth mkiv) gives an 
impression, also of the optical clumsiness that makes the unprocessed text 
practically unreadable. That is another reason why I would like to be able to 
call an index entry by means of some sort of key, like in bibliographic items 
for footnotes.

Kind regards,

Robert Blackstone

\starttext
That this rule%
\index[Rule]{Rule(s)}%%
\index[RuleImperfect]{ + \quote{imperfect to perfect, from}} was not applied by 
everybody is for example shown in {\em Fronimo}%
\index[Galilei]{Galilei, Vincenzo}%
\index[GalileiFronimo]{ +{\em Fronimo}}%
\index[Cadence]{cadence(s)}%%
\index[CadenceP]{ + plagal}%
\index[PlagalCad]{plagal cadence}%
\index[Fronimo]{{\em Fronimo} (Galilei)} (1584), Vincenzo Galileo's treatise on 
lute playing and the intabulation%
\index[Intabulation]{intabulation}  of vocal music.
\page
Artusi\index[Artusi]{Artusi, Giovanni Maria}  showed examples (Ex.~4.34) with 
parallel 4th%
\index[Dissonance]{dissonance(s)}%
\index[Dissonance4]{ + 4th(s)}%
\index[Dissonance4Parall]{ + +  parallel}s and 7th%
\index[Dissonance]{dissonance(s)}%
\index[Dissonance7]{ + 7th(s)}%
\index[Dissonance7Paral]{ + +   parallel}s in a contrapuntally oriented 
fashion. These parallels were to appear in works with basso continuo around 
1610 but now between the bass and the solo part. They occur in vocal and 
instrumental music as well as in works for keyboard solo. Most examples have 
parallel 7th%
\index[Dissonance]{dissonance(s)}%
\index[Dissonance7]{ + 7th(s)}%
\index[Dissonance7Paral]{ + +   parallel}s but some examples of parallel 4th%
\index[Dissonance]{dissonance(s)}%
\index[Dissonance4]{ + 4th(s)}%
\index[Dissonance4Parall]{ + +  parallel}s and 2nd%
\index[Dissonance]{dissonance(s)}%
\index[Dissonance2Parall]{ + + parallel}s can be found as well. 

\setupregister[index][indicator=yes]
\completeindex[compress=yes]
\stoptext 
===


Re: [NTG-context] Index items

2015-04-16 Thread Robert Blackstone
Hi,
Same subject as in my previous post but a new question:
On the ConTeXt wiki-page Command\index one finds:

\index[...][...][…]
[…] text
[…] text
[…] text

What is the first argument for? Could it somehow be used to provide a key?

Another point, just for the sake of completeness: the example in my previous 
post yesterday, in ntg-context Digest, Vol 130, Issue 51,
contains a small error, or rather an omission. Not damaging for the example. 
Corrected in the book.

Best regards,
Robert Blackstone





 ___
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] Index items

2015-04-16 Thread Robert Blackstone

On 16 Apr 2015, at 15:38 , Hans Hagen  wrote
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Index items
> Message-ID: <552fbb35.9050...@wxs.nl>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> On 4/15/2015 11:41 PM, Robert Blackstone wrote:
>> 
>> On 15 Apr 2015, at 19:51 ,  Alan BRASLAU  wrote
>>> Hans Hagen  wrote:
>>> 
>>>> On 4/14/2015 1:48 PM, Robert Blackstone wrote:
>>>>> Dear all,
>>>>> 
>>>>> The book I am typesetting contains a very extensive and detailed
>>>>> index. The number of index items is probably around 1200, 16 pages.
>>>>> A fair number of them occur in more than one chapter.
>>>>> Like bibliography items, and for the sake of consistency, I have
>>>>> stored them in some auxiliary files and it is a matter of copy and
>>>>> paste to get them into the text in the proper place and way. (With
>>>>> always a risk of accidentally deleting or adding a spurious brace
>>>>> or bracket, with nasty results.)
>>>>> 
>>>>> I wonder therefore whether it would be possible to handle them like
>>>>> bibliography items, by means of a key, and leave their expansion to
>>>>> ConTeXt.
>>>>> 
>>>>> Would it be possible?
>>>>> And if it is not (yet) possible, how could I perhaps tackle it?
>>>> 
>>>> so you want to remap given index entries to new ones? at what moment?
>>> 
>>> We index pretty heavily now in the new bibliography dataset subsystem,
>>> that is one can create an index of authors, an index of keywords, an
>>> index of titles, etc. as well as index the pages on which a reference
>>> is cited. All of the information is there.
>>> 
>>> So say that you want to create a database of anything: words, images,
>>> phrases. You can put these into the database structure and then insert
>>> them or any associated information wherever you want in your text,
>>> later producing lists and indexes.
>>> 
>>> Can you give an example of what type of information you extensively
>>> index with detail?
>>> 
>>> Alan
>> Hi Alan,
>>  I realize that I have not yet reacted to Hans’ reply. So let me do that 
>> first (it was written but not yet sent).
>> 
>>  Hi Hans,
>> Do I want to remap given index entries? Assuming I understand your reply 
>> correctly the answer is: Yes, in principle. I would want to be able to 
>> change them if there are errors, or if some publisher has different views 
>> about the presentation of titles of items that are in the index (titles of 
>> songs, for instance). And also when (parts of) the text has (have) to be 
>> reused for other purposes. Change them in one operation, that is, not by 
>> digging up all occurrences in the book of the item that has to be changed.
>> 
>> In answer to Alan’s question: names, theoretical treatises and manuscripts, 
>> musical works, musical terms. Nearly all examples in the book have several 
>> features that have to be indexed: composer’s name, title of the published 
>> work (an opera for instance), title of the particular aria of which the 
>> example shows a fragment, and the special features that are shown in the 
>> example, parallel 7ths, for example.
>> The not-so-minimal example below (best processed iwth mkiv) gives an 
>> impression, also of the optical clumsiness that makes the unprocessed text 
>> practically unreadable. That is another reason why I would like to be able 
>> to call an index entry by means of some sort of key, like in bibliographic 
>> items for footnotes.
> 
> \startluacode
> 
> document.indexentries = {
> ["rule"]  = [[Rule(s)]],
> ["ruleimperfect"] = [[+ \quote{imperfect to perfect, from}]],
> ["galilei"]   = [[Galilei, Vincenzo]],
> }
> 
> function document.getindexentry(n)
> context("\\index[%s]{%s}",n,document.indexentries[n] or ("<" .. 
> n .. ">"))
> end
> 
> \stopluacode
> 
> \unexpanded\def\InEn[#1]%
>   {\ctxlua{document.getindexentry("#1")}}
> 
> \starttext
> That this rule
> \InEn[rule]
> \InEn[ruleimperfect] was not applied by everybody is for example shown 
> in {\em Fronimo}%
> \InEn[galilei]
> 
> etc etc

Wow, this is super! Great improvement, also for the readability of the text.
Thank you very much, Hans.

Kind regards,
Robert

___
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] Index items (additional question)

2015-04-19 Thread Robert Blackstone

On 16 Apr 2015, at 15:38 , Hans Hagen  gave me the following:

> \startluacode
> 
> document.indexentries = {
> ["rule"]  = [[Rule(s)]],
> ["ruleimperfect"] = [[+ \quote{imperfect to perfect, from}]],
> ["galilei"]   = [[Galilei, Vincenzo]],
> }
> 
> function document.getindexentry(n)
> context("\\index[%s]{%s}",n,document.indexentries[n] or ("<" .. 
> n .. ">"))
> end
> 
> \stopluacode
> 
> \unexpanded\def\InEn[#1]%
>   {\ctxlua{document.getindexentry("#1")}}
> 
> \starttext
> That this rule
> \InEn[rule]
> \InEn[ruleimperfect] was not applied by everybody is for example shown 
> in {\em Fronimo}%
> \InEn[galilei]
> 
> etc etc

Hi Hans,
sorry to bother you again on this topic.

This code works beautifully in this way, with only a few index entries  at the 
top of the file, before \starttext. 
But how can I deal with the thousand or more index items in my project, which I 
have collected in four separate dedicated files with indexentries, like the 
three shown in the example-code.

I have really no idea  what else should be in these files,  what sort of name 
they should have, in particular extension,  and how and where I can input them.
I use TeXShop as my texteditor but that is probably not relevant here.

Can you give me some guidance, please?

Thanks in advance.

Best regards,
Robert Blackstone


___
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] Index items (additional question)

2015-04-19 Thread Robert Blackstone

On 19 Apr 2015, at 11:55 , Hans Hagen  wrote
> 
> On 4/19/2015 9:47 AM, Robert Blackstone wrote:
>> 
>> On 16 Apr 2015, at 15:38 , Hans Hagen  gave me the following:
>> 
>>> \startluacode
>>> 
>>> document.indexentries = {
>>> ["rule"]  = [[Rule(s)]],
>>> ["ruleimperfect"] = [[+ \quote{imperfect to perfect, from}]],
>>> ["galilei"]   = [[Galilei, Vincenzo]],
>>> }
>>> 
>>> function document.getindexentry(n)
>>> context("\\index[%s]{%s}",n,document.indexentries[n] or ("<" ..
>>> n .. ">"))
>>> end
>>> 
>>> \stopluacode
>>> 
>>> \unexpanded\def\InEn[#1]%
>>>   {\ctxlua{document.getindexentry("#1")}}
>>> 
>>> \starttext
>>> That this rule
>>> \InEn[rule]
>>> \InEn[ruleimperfect] was not applied by everybody is for example shown
>>> in {\em Fronimo}%
>>> \InEn[galilei]
>>> 
>>> etc etc
>> 
>> 
>> This code works beautifully in this way, with only a few index entries  at 
>> the top of the file, before \starttext.
>> But how can I deal with the thousand or more index items in my project, 
>> which I have collected in four separate dedicated files with indexentries, 
>> like the three shown in the example-code.
>> 
>> I have really no idea  what else should be in these files,  what sort of 
>> name they should have, in particular extension,  and how and where I can 
>> input them.
>> I use TeXShop as my texteditor but that is probably not relevant here.
>> 
>> Can you give me some guidance, please?
> 
> \startluacode
> 
> document.indexentries = {
> ["rule"]  = [[Rule(s)]],
> ["ruleimperfect"] = [[+ \quote{imperfect to perfect, from}]],
> ["galilei"]   = [[Galilei, Vincenzo]],
> }
> 
> function document.loadindexentries(filename)
> local fullname = resolvers.findfile(filename)
> if fullname ~= "" then
> local data = io.loaddata(fullname)
> for a, b  in string.gmatch(data,"%s*(%S+)%s+([^\n\r]+)") do
> document.indexentries[a] = b
> end
> end
> end
> 
> function document.getindexentry(n)
> local ie = document.indexentries[n]
> if not ie then
> logs.report("index","missing entry %a",n)
> end
> context("\\index[%s]{%s}",n,ie or ("<" .. n .. ">"))
> end
> 
> \stopluacode
> 
> \unexpanded\def\LoadInEn[#1]{\ctxlua{document.loadindexentries("#1")}}
> \unexpanded\def\InEn[#1]{\ctxlua{document.getindexentry("#1")}}
> 
> \LoadInEn[whatever.txt]
> 
> \starttext
> That this rule
> \InEn[rule]
> \InEn[ruleimperfect] was not applied by everybody is for example shown 
> in {\em Fronimo}%
> \InEn[galilei]
> 
> \InEn[unknown]
> 
> etc etc
> 
> \InEn[GalileiFronimo]
> \InEn[Cadence]
> \InEn[CadenceP]
> \InEn[PlagalCad]
> \index[Fronimo]{{\em Fronimo} (Galilei)} (1584), Vincenzo Galileo's 
> treatise on lute playing and the intabulation%
> \index[Intabulation]{intabulation}  of vocal music.
> \page
> 
> whatever.txt:
> 
> GalileiFronimo +{\em Fronimo}
> Cadencecadence(s)
> CadenceP   + plagal
> PlagalCad  plagal cadence
> 
Hi Hans,

Thank you for your reply.
It took me a while to make your code operational in the way I need it.
For the new example you gave is still an "integral file". My project, like most 
book-projects, I guess, is modular with a master file Project.tex, into which 
everything else, setups, .bbl's, front- and backmatter, the various chapters 
are input. Though strictly speaking it would not be impossible to add some 1000 
lines of index entries before \startproject, it would not be especially handy, 
and I cannot believe that it would be the proper ConTeXt-way to do it.

I found that when I split your code, transferred the top part to a new file, 
which I named "IndexItems", and input that into the other half, the text 
proper, it works. But when I add another file with indexentries, for instance 
"indexitemsnames", then only one of them, the one at the top is used. 
So it seems that the whole collection of index items must be in one file.
Is that the only possibility or are there ways to enable the use of several 
collections of index items?

Best regards, 
Robert
___
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] Bibliography: printing just Single Author et al.

2015-05-07 Thread Robert Blackstone

On 7 May 2015, at 12:00 , Mojca Miklavec 
> 
> Is there any trick that would allow liming the number of listed
> authors on per-article basis? Simply specifying
>author = "Just Someone et al.",
> ?
> 
> (MkIV, experimental reimplementation.)

Hello Mojca,
The trick that I would use, in fact the procedure that I always use, is not to 
use bib-files but to separately generate the bbl-file and input that.
ConTeXt uses the .bbl, and once you have that you can tweak it in (almost) any 
way you like. You could if necessary, make two or more versions of the same 
publication, for instance in a footnote “Just Someone et al.” and in the 
Bibliography the complete list of Authors of that publication.
For my Bibliographic data I even needed three versions of each entry, one with 
authorname, to use your example, “Someone, Just” in the Bibliography, “Just 
Someone” for footnotes, the first occurrence, and “Someone” with a short book- 
or article title for all susequent occurrences.
No problem when you use the .bbl. Obviously the different versions should have 
(slightly) diiferent cite-keys.
(And take care not to input the .bib-file, since each time you process the 
thing a fresh .bbl is created wiping out all your modifications.)

I hope it solves your problem.

Best regards,

Robert Blackstone

___
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] Printing bibliographic entries without the full publication list

2015-07-29 Thread Robert Blackstone

On 29 Jul 2015, at 12:00 , Mojca Miklavec 
wrote:
> Dear Hans & Alan,
> 
> I would like to manually print the selected list of publications, like this:
> 
> \usebtxdataset[items.bib]
> \usebtxdefinitions[aps]
> \starttext
> \startitemize
> \item \cite[entry][bib1]
> \item some random text
> \item \cite[entry][bib5]
> \stopitemize
> \stoptext
> 
> The problem is that this doesn't print anything unless I add
> \placelistofpublications somewhere.
> 
> While I do understand (to some extent at least) the rationale for not
> printing the number of bib item when \placelistofpublications is
> missing, I don't see any reason why I should be unable to print the
> complete publication that doesn't even require printing out any
> number.
> 
> Any hints about how to do a workaround?

Hi Mojca,
Despite being neither Hans nor Alan I could perhaps offer you the possibility 
of a simple workaround, 

I think you could do what you need in the same way as when you put 
bibliographic references in a footnote.
So in your case it would be:

\startitemize
\item \dcite{citekey1}
item some random text
\item \dcite{citekey2}
\stopitemize

In any case this works for me but my bibliographic setup may be different from 
yours.
I hope it helps,

Best regards, 
Robert Blackstone


___
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] Problem with first setup of StandAlone ConTeXt

2015-12-15 Thread Robert Blackstone

On 15 Dec 2015, at 12:00 ,  Hans Hagen  wrote
> 
> this is strange as the binary and tex sources should be in sync . do 
> other mac users encounter the same problem?

No problem here. Works perfectly.
Robert Blackstone

___
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] Problem with urls

2016-05-14 Thread Robert Blackstone
Dear all,
Can any of you explain, or, better, suggest a remedy for, the following problem:

I want active urls in footnotes. With the same setups and correct urls, some of 
them become active and some others not.

See the following ME: 

+
\setupinteraction[state=start,focus=standard,style=,color=blue,contrastcolor=]

\starttext

AA 
\footnote{\goto{http://gallica.bnf.fr/ark:/12148/btv1b90634431.r=Francois+Couperin.langEN}[url(http://gallica.bnf.fr/ark:/12148/btv1b90634431.r=Francois+Couperin.langEN)]}

BB\footnote{\goto{http://imslp.org/wiki/Tuoni_ecclesiastici_con_li_loro_versetti_(Greco,_Gaetano)}[url(http://imslp.org/wiki/Tuoni_ecclesiastici_con_li_loro_versetti_(Greco,_Gaetano))]}

CC 
\footnote{\goto{http://www.saraband.com.au/figured_bass.htm}[url(http://www.saraband.com.au/figured_bass.htm)]}

\stoptext   
++

When I process this with mkiv, the urls in AA and CC are active, while in BB it 
is not. Why? 

Thanks in advance for any help.

Best regards,
Robert Blackstone
___
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] Problem with urls

2016-05-14 Thread Robert Blackstone

On 14 May 2016, at 20:01, Pablo Rodriguez l wrote:
> 
> On 05/14/2016 11:25 AM, Robert Blackstone wrote:
>> 
>> When I process this with mkiv, the urls in AA and CC are active,
>> while in BB it is not. Why?
> 
> Hi Robert,
> 
> the comma is the problematic character in url:
> 
>\setupinteraction[state=start]
>\starttext
>\goto{http://a,b.c}[url(http://a,b.c)]
>\stoptext
> 
> I’m afraid this might be a bug.

I had not noticed the comma and, yes, you are right, when I remove the comma I 
get an active url which opens a page on the desired site but without contents. 
When I add the comma in the address I get the desired page. I could add this 
instruction to the footnote but that seems to me to be a bit odd.

And Peter Münster  wrote

> 
> Workaround: url(http://a\letterpercent2Cb.c)
> 
> -- 
>   Peter

Incomprehensible for me, this workaround, but it does work !

Thank you both,

Best regards,
Robert
___
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
___

  1   2   >