Re: [NTG-context] Questions on new bibliography system (btx)

2017-02-21 Thread Rik Kabel

On 2017-02-21 19:09, Alan Braslau wrote:

On Tue, 21 Feb 2017 18:46:18 -0500
Rik Kabel  wrote:


I have a few questions about the new bibliography system. The
following example code illustrates the problems.

 \startbuffer[TestBib]
 @OTHER{Author1975a,
author = {An Author},
title = {A title},
year = {1975},
 }
 @OTHER{Author1975b,
author = {Author, An},
title = {Another title},
year = {1975},
 }
 @OTHER{Else1975a,
author = {Somebody Else},
title = {A third title},
year = {1975},
 }
 @OTHER{Else1975b,
author = {Somebody Else},
title = {A last title},
year = {1975},
 }

 @FILM{Movie,
producer = {Normal Name},
director = {Funny Name},
title= {Who Knew?},
year = {2010},
publisher= {Producer},
address  = {Hollywood}
 }

 @INBOOK{Subtitle,
author   = {Sally Subtitle-Spacing},
title= {Another Country},
year = {1958},
publisher= {Publisher},
address  = {City},
volume   = {16},
booktitle= {On the road},
booksubtitle = {Books and essays written while traveling under
 cover},
 }

 \stopbuffer
   \loadbtxdefinitionfile[apa]
   \usebtxdefinitions[apa]
   \usebtxdataset[TestBib.buffer]
   \definebtxrendering   [Pubs][apa]

 \starttext

 \nocite[*]

 \placelistofpublications[Pubs]

 \stoptext

How can I get “An Author” treated like “Author, An” as in the OTHER
examples? The result should like like that of “Somebody Else”. Bibtex
databases have both forms and it would be nice if the work was done
by ConTeXt automatically.

Context, like bibtex, interprets "An Author" as "First Last", "Author,
An" being the explicit form, useful when the last name contains several
components.

The APA style, that you use, abbreviates the first names. Thus, "An
Author" gets rendered correctly as Author, A. and "Somebody Else" as
Else, S.
Understood. The problem here is that  An Author  and  Author, An are 
treated as two different names, and so the name is repeated on the 
second bibliography reference. It would be nice if ConTeXt recognized 
that they are the same name and use a bibliography dash for the second 
occurrence.

The manual suggests that fields like director (see the FILM example)
can be induced to be treated as author/editor names by sufficiently
advanced users. Would such a user please share the method?

producer= and director= are treated as names for @film{} in the APA
specification.
But the output here simply puts it together as FunnyName, while it 
should be Name, F.

In the INBOOK example, can we get a BOOKSUBTITLE field to complement
the BOOKTITLE? My real bibliography has some very long titles, and I
would rather have only the main part appear with
\cite[booktitle][entry], yet have the title with subtitle in the
bibliography.

We can easily add a booksubtitle field to the specification, to be
handled like title/subtitle.

Thank you. That would be very nice.

Also in the INBOOK example, I notice that the spacing after “Vol.” is
a sentence space, and it should not be. The spacing after
abbreviations in the bibliography should not depend on setting
frenchspacing.

The abbreviation is followed by a space. You suggest that they should
be treated specially, not like the end of a sentence. This does not
only pertain to bibliographies. How is this generally done in
TeX/Context for any abbreviations anywhere? (I wouldn't know... ;-)
When I have direct control of the abbreviation, I can manage the space. 
But in this case the bibliography subsystem generates the abbreviation, 
so I do not have that ability.


Alan


--
Rik

___
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] Questions on new bibliography system (btx)

2017-02-21 Thread Alan Braslau
On Tue, 21 Feb 2017 18:46:18 -0500
Rik Kabel  wrote:

> I have a few questions about the new bibliography system. The
> following example code illustrates the problems.
> 
> \startbuffer[TestBib]
> @OTHER{Author1975a,
>author = {An Author},
>title = {A title},
>year = {1975},
> }
> @OTHER{Author1975b,
>author = {Author, An},
>title = {Another title},
>year = {1975},
> }
> @OTHER{Else1975a,
>author = {Somebody Else},
>title = {A third title},
>year = {1975},
> }
> @OTHER{Else1975b,
>author = {Somebody Else},
>title = {A last title},
>year = {1975},
> }
> 
> @FILM{Movie,
>producer = {Normal Name},
>director = {Funny Name},
>title= {Who Knew?},
>year = {2010},
>publisher= {Producer},
>address  = {Hollywood}
> }
> 
> @INBOOK{Subtitle,
>author   = {Sally Subtitle-Spacing},
>title= {Another Country},
>year = {1958},
>publisher= {Publisher},
>address  = {City},
>volume   = {16},
>booktitle= {On the road},
>booksubtitle = {Books and essays written while traveling under
> cover},
> }
> 
> \stopbuffer
>   \loadbtxdefinitionfile[apa]
>   \usebtxdefinitions[apa]
>   \usebtxdataset[TestBib.buffer]
>   \definebtxrendering   [Pubs][apa]
> 
> \starttext
> 
> \nocite[*]
> 
> \placelistofpublications[Pubs]
> 
> \stoptext
> 
> How can I get “An Author” treated like “Author, An” as in the OTHER 
> examples? The result should like like that of “Somebody Else”. Bibtex 
> databases have both forms and it would be nice if the work was done
> by ConTeXt automatically.

Context, like bibtex, interprets "An Author" as "First Last", "Author,
An" being the explicit form, useful when the last name contains several
components.

The APA style, that you use, abbreviates the first names. Thus, "An
Author" gets rendered correctly as Author, A. and "Somebody Else" as
Else, S.

> The manual suggests that fields like director (see the FILM example)
> can be induced to be treated as author/editor names by sufficiently
> advanced users. Would such a user please share the method?

producer= and director= are treated as names for @film{} in the APA
specification.

> In the INBOOK example, can we get a BOOKSUBTITLE field to complement
> the BOOKTITLE? My real bibliography has some very long titles, and I
> would rather have only the main part appear with
> \cite[booktitle][entry], yet have the title with subtitle in the
> bibliography.

We can easily add a booksubtitle field to the specification, to be
handled like title/subtitle.

> Also in the INBOOK example, I notice that the spacing after “Vol.” is
> a sentence space, and it should not be. The spacing after
> abbreviations in the bibliography should not depend on setting
> frenchspacing.

The abbreviation is followed by a space. You suggest that they should
be treated specially, not like the end of a sentence. This does not
only pertain to bibliographies. How is this generally done in
TeX/Context for any abbreviations anywhere? (I wouldn't know... ;-)

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Questions on new bibliography system (btx)

2017-02-21 Thread Rik Kabel
I have a few questions about the new bibliography system. The following 
example code illustrates the problems.


   \startbuffer[TestBib]
   @OTHER{Author1975a,
  author = {An Author},
  title = {A title},
  year = {1975},
   }
   @OTHER{Author1975b,
  author = {Author, An},
  title = {Another title},
  year = {1975},
   }
   @OTHER{Else1975a,
  author = {Somebody Else},
  title = {A third title},
  year = {1975},
   }
   @OTHER{Else1975b,
  author = {Somebody Else},
  title = {A last title},
  year = {1975},
   }

   @FILM{Movie,
  producer = {Normal Name},
  director = {Funny Name},
  title= {Who Knew?},
  year = {2010},
  publisher= {Producer},
  address  = {Hollywood}
   }

   @INBOOK{Subtitle,
  author   = {Sally Subtitle-Spacing},
  title= {Another Country},
  year = {1958},
  publisher= {Publisher},
  address  = {City},
  volume   = {16},
  booktitle= {On the road},
  booksubtitle = {Books and essays written while traveling under
   cover},
   }

   \stopbuffer
 \loadbtxdefinitionfile[apa]
 \usebtxdefinitions[apa]
 \usebtxdataset[TestBib.buffer]
 \definebtxrendering   [Pubs][apa]

   \starttext

   \nocite[*]

   \placelistofpublications[Pubs]

   \stoptext

How can I get “An Author” treated like “Author, An” as in the OTHER 
examples? The result should like like that of “Somebody Else”. Bibtex 
databases have both forms and it would be nice if the work was done by 
ConTeXt automatically.


The manual suggests that fields like director (see the FILM example) can 
be induced to be treated as author/editor names by sufficiently advanced 
users. Would such a user please share the method?


In the INBOOK example, can we get a BOOKSUBTITLE field to complement the 
BOOKTITLE? My real bibliography has some very long titles, and I would 
rather have only the main part appear with \cite[booktitle][entry], yet 
have the title with subtitle in the bibliography.


Also in the INBOOK example, I notice that the spacing after “Vol.” is a 
sentence space, and it should not be. The spacing after abbreviations in 
the bibliography should not depend on setting frenchspacing.


--
Rik

___
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] new lua/stack error

2017-02-21 Thread Alan Braslau
\cite [A,B,C]


On Tue, 21 Feb 2017 14:42:23 -0500
Alan Bowen  wrote:

> I should add that the problem is with this entry alone. Otherwise the
> citations in the chapter work as they should. (Other chapters fail
> for the same reason—one of the many citations with commas seems to
> cause the error.)
> 
> The book processed with incident in the previous beta
> 
> Any suggestions about to address this will be gladly received.
> 
> A.
> 
> On Tue, Feb 21, 2017 at 2:25 PM, Alan Bowen 
> wrote:
> 
> > The latest beta — ConTeXt  ver: 2017.02.19  with LuaTeX, Version
> > 1.0.3 — chokes on entries such as
> > \cite[author1, author2, and author3 2017]
> > and reports an error: e.g.,
> >
> >
> > lua error   > lua error on line 81 in file
> > c_Brill09-02_Evans.tex:
> >
> >
> > C stack overflow
> >
> > stack traceback:
> >
> > [C]: in function 'type'
> >
> > ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:373: in
> > function
> > <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:367>
> >
> > [C]: in function 'tostring'
> >
> > ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:342: in
> > function
> > <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:317>
> >
> > If I try something like
> > \cite[A B and C] all is well.
> > Adding the commas as in \cite[A, B, and C] gets the error.
> > Sadly, I need the commas.
> >
> > Alan
> >



-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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] Underful with \startalignment[flushright]

2017-02-21 Thread josephcanedo
Thanks a lot, all, for the hints.
Best regards,
Joseph

De : Hans Hagen
Envoyé le :mardi 21 février 2017 13:06
À : mailing list for ConTeXt users
Objet :Re: [NTG-context] Underful with \startalignment[flushright]

On 2/21/2017 10:45 AM, Henri Menke wrote:
> On 02/20/2017 10:59 PM, josephcan...@gmail.com wrote:
>> Dear list,
>>
>>
>>
>> Could not find any hint on this list on this (minor) problem.
>>
>> When compiling the following simple MWE :
>>
>>
>>
>> \starttext
>>
>> \startalignment[flushright]
>>
>> Foo.
>>
>> \stopalignment
>>
>> \stoptext
>>
>>
>>
>> I get an underful hbox message :
>>
>>
>>
>> Underfull \hbox (badness 1) in paragraph at lines 4--5
>>
>> []\3>modern-designsize-12pt-rm-tf-0--0 Foo.
>>
>>
>>
>> Is there a simple way to avoid the underful message (other than adding a 
>> \hfil before the text) ?
>>
>>
>>
>> \starttext
>>
>> \startalignment[flushright]
>
> \startalignment[flushright,broad]

\dontcomplain also helps but it also hides the possible problem

>>
>> \hfil Foo.
>>
>> \stopalignment
>>
>> \stoptext
>>
>>
>>
>>
>>
>> Many thanks
>>
>>
>>
>> Best regards
>>
>>
>>
>> Joseph Canedo
>>
>>
>>
>>
>>
>> ___
>> 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
>> ___
>>
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___
>


-- 

-
   Hans Hagen | PRAGMA ADE
   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

___
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] coma in an argument

2017-02-21 Thread Jaroslav Hajtmar
Hello Pablo.
Of course – it was my wrong example see:
\executesystemcommand{context --result invoice-\cA.pdf --arguments = "cA 
={\cA}" servingfile.tex}. Braces are of course important.
Thanx to Hans for his correction.

Jaroslav Hajtmar





Dne 21.02.17 19:15, ntg-context za uživatele Pablo Rodriguez 
 napsal(a):

On 02/21/2017 07:09 PM, Hans Hagen wrote:
> On 2/21/2017 6:57 PM, Pablo Rodriguez wrote:
>>  contextjit --arguments="cA=a, b" a.tex
> 
>   contextjit --arguments="cA={a, b}" a.tex

Hans,

many thanks for the fast reply and your help.

The answer is simple, but my mind seems to be simpler right now ;-).

Pablo
-- 
http://www.ousia.tk

___
If your question is of interest to others as well, please add an entry to 
the Wiki!

maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net

___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] new lua/stack error

2017-02-21 Thread Alan Bowen
I should add that the problem is with this entry alone. Otherwise the
citations in the chapter work as they should. (Other chapters fail for the
same reason—one of the many citations with commas seems to cause the
error.)

The book processed with incident in the previous beta

Any suggestions about to address this will be gladly received.

A.

On Tue, Feb 21, 2017 at 2:25 PM, Alan Bowen  wrote:

> The latest beta — ConTeXt  ver: 2017.02.19  with LuaTeX, Version 1.0.3 — 
> chokes
> on entries such as
> \cite[author1, author2, and author3 2017]
> and reports an error: e.g.,
>
>
> lua error   > lua error on line 81 in file c_Brill09-02_Evans.tex:
>
>
> C stack overflow
>
> stack traceback:
>
> [C]: in function 'type'
>
> ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:373: in
> function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:367>
>
> [C]: in function 'tostring'
>
> ...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:342: in
> function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:317>
>
> If I try something like
> \cite[A B and C] all is well.
> Adding the commas as in \cite[A, B, and C] gets the error.
> Sadly, I need the commas.
>
> Alan
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] new lua/stack error

2017-02-21 Thread Alan Bowen
The latest beta — ConTeXt  ver: 2017.02.19  with LuaTeX, Version 1.0.3 — chokes
on entries such as
\cite[author1, author2, and author3 2017]
and reports an error: e.g.,


lua error   > lua error on line 81 in file c_Brill09-02_Evans.tex:


C stack overflow

stack traceback:

[C]: in function 'type'

...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:373: in
function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:367>

[C]: in function 'tostring'

...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:342: in
function <...eXt/tex/texmf-context/tex/context/base/mkiv/lpdf-ini.lua:317>

If I try something like
\cite[A B and C] all is well.
Adding the commas as in \cite[A, B, and C] gets the error.
Sadly, I need the commas.

Alan
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] coma in an argument

2017-02-21 Thread Pablo Rodriguez
On 02/21/2017 07:09 PM, Hans Hagen wrote:
> On 2/21/2017 6:57 PM, Pablo Rodriguez wrote:
>>  contextjit --arguments="cA=a, b" a.tex
> 
>   contextjit --arguments="cA={a, b}" a.tex

Hans,

many thanks for the fast reply and your help.

The answer is simple, but my mind seems to be simpler right now ;-).

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] coma in an argument

2017-02-21 Thread Hans Hagen

On 2/21/2017 6:57 PM, Pablo Rodriguez wrote:

 contextjit --arguments="cA=a, b" a.tex



 contextjit --arguments="cA={a, b}" a.tex
--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] coma in an argument

2017-02-21 Thread Pablo Rodriguez
Dear list,

I have this stupid sample:

\starttext
\def\cA{a, b, c}
\doifelse{\env{cA}}{\cA}{equal}{unequal}
\stoptext

I compile it with:

contextjit --arguments="cA=a, b" a.tex

Because of the coma, I get this error:

check > missing or ungrouped '=' after 'b'
   in line '29 (15>environment:)'
\wait =

Is there a way to write the arguments option value, so that I can type
"a, b"?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Underful with \startalignment[flushright]

2017-02-21 Thread Hans Hagen

On 2/21/2017 10:45 AM, Henri Menke wrote:

On 02/20/2017 10:59 PM, josephcan...@gmail.com wrote:

Dear list,



Could not find any hint on this list on this (minor) problem.

When compiling the following simple MWE :



\starttext

\startalignment[flushright]

Foo.

\stopalignment

\stoptext



I get an underful hbox message :



Underfull \hbox (badness 1) in paragraph at lines 4--5

[]\3>modern-designsize-12pt-rm-tf-0--0 Foo.



Is there a simple way to avoid the underful message (other than adding a \hfil 
before the text) ?



\starttext

\startalignment[flushright]


\startalignment[flushright,broad]


\dontcomplain also helps but it also hides the possible problem



\hfil Foo.

\stopalignment

\stoptext





Many thanks



Best regards



Joseph Canedo





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



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] description questions

2017-02-21 Thread Csikos Bela
Aditya Mahajan írta:
>> I am experimenting with descriptions and I couldn't find in the documentation
>> the following:
>>
>> 1. What is the default value of width option? It seems that default width 
>> uses the
>> longest head + some distance for every head in a descriptions list. 

Sorry, I wasn't right. context uses a default width for head. Accidentally the 
longest
term I used in my document was almost the same as the default head width, 
therefore
I thought that the head was calculated according to my term's width.

>>Neither  width=fit nor width=broad,distance=dimension results in the same.
>
>Some information is given here: http://www.ntg.nl/maps/36/09.pdf
>Enumerations and descriptions share a lot of settings.

Thank you. I read it. I have a question: is it possible to add some text or 
command
between the head and text in description? For example a dash or symbol which 
separates the head from the text. In enumerations it seems to be different, 
because
there the variable head (title) goes after a static head. I would need the 
opposite:
variable head part - static head part. I tried to use headcommand option but it 
puts
stuff before head.

>There is no way to reset options in ConTeXt. The canonical way to do this 
>is:
>
>\definedescription[defa]
>\definedescription[defb][defa][width=broad, distance=1cm]
>
>\startdefa ... \stopdefa
>
>\startdefb ... \stopdefb
>
>(Untested): This should also work:
>
>\startdefa[width=broad, distance=1cm] ... \stopdefa

I see. 

Thank you again,

bcsikos
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Suddenly, my font is not used any longer

2017-02-21 Thread Nicola

On 20/02/2017 18:16, Aditya Mahajan wrote:

On Mon, 20 Feb 2017, Nicola wrote:


Hello everyone,
I am re-typesetting a mkiv document that uses system fonts for text and
math (through \definefontfamily). Suddenly, it renders Latin Roman for
the text. May it be a cache corruption problem? I recall that there's
a command to clear the font cache, but I cannot remember which.


mtxrun --script fonts --reload --force


Thanks, that did the trick!

I realize that I should have read mtxrun's help more carefully:

1. `mtxrun --help` tells me how to list all the scripts;
2. `mtxrun --script` tells me that there is a `fonts` script;
3. `mtxrun --script fonts --help` tells me the fonts script's options.

It's nearly as fast as posting to this list and getting a reply ;)

Nicola


___
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] Underful with \startalignment[flushright]

2017-02-21 Thread Henri Menke
On 02/20/2017 10:59 PM, josephcan...@gmail.com wrote:
> Dear list,
> 
>  
> 
> Could not find any hint on this list on this (minor) problem.
> 
> When compiling the following simple MWE :
> 
>  
> 
> \starttext
> 
> \startalignment[flushright]
> 
> Foo.
> 
> \stopalignment
> 
> \stoptext
> 
>  
> 
> I get an underful hbox message :
> 
>  
> 
> Underfull \hbox (badness 1) in paragraph at lines 4--5
> 
> []\3>modern-designsize-12pt-rm-tf-0--0 Foo.
> 
>  
> 
> Is there a simple way to avoid the underful message (other than adding a 
> \hfil before the text) ?
> 
>  
> 
> \starttext
> 
> \startalignment[flushright]

\startalignment[flushright,broad]

> 
> \hfil Foo.
> 
> \stopalignment
> 
> \stoptext
> 
>  
> 
>  
> 
> Many thanks
> 
>  
> 
> Best regards
> 
>  
> 
> Joseph Canedo
> 
>  
> 
> 
> 
> ___
> 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
> ___
> 

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