Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread Jeong Dal via ntg-context
Dear Damien,

Using the “columns" feature is one way to go if you don’t mind the vertical 
alignment mismatch  in the third items.

Best regards,
Dalyoung

\starttext
\startitemize [8,columns]%,two]
\startitem Nietzsche \stopitem
\startitem Woody Allen \stopitem
\startitem God \stopitem
\startitem God is dead \stopitem
\startitem Nietzsche is dead, God is dead and I don't feel so good \stopitem
\startitem Nietzsche is dead \stopitem
\stopitemize
\stoptext




> 2022. 4. 12. 오전 3:46, Damien Thiriet via ntg-context  작성:
> 
> Hi!
> 
> I am used to giving associative questions to my pupils,
> something like
> 
> * connect the author with its ideas
> 
> Friedrich Nietzsche *  * "God is dead"
> Woody Allen *  * "Nietzsche is dead, God is dead 
>  and I don't feel so good"
> God *  * "Nietzsche is dead"
> 
> I design it as a two-cells xtable with itemized lists inside.
> How can I have the item mark on the right side?
> 
> \starttext
> \startitemize [8]
> \startitem Nietzsche \stopitem
> \startitem Allen \stopitem
> \startitem God \stopitem
> \stopitemize
> \stoptext
> 
> Greetings,
> 
> Damien Thiriet 
> ___
> 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] Trying to get a simple bibliography

2022-03-27 Thread Jean-Pierre Delange via ntg-context

Hi Amine,

There are several ways to achieve a bibliography. The first one is your 
way, with a buffer, which you have to name it (see below : the buffer is 
named 'biblio')  : you put your references to books and articles between 
the 2 commands \startbuffer and \stopbuffer as the model shows hereafter 
(with the APA style). If you want to print a general and simple 
bibliography, you need a double command :\usebtxdataset[/any title you 
choose/][biblio.buffer] and \definebtxrendering[/any 
title/][apa][dataset=/any title/] after \stopbuffer. At the end of the 
text, you need to define the place where you want to print the 
bibliography. For that purpose :


\starttext

\startbackmatter

\startchapter[title={Bibliography}]

\placelistofpublications[/any title/] [method=local]

\stopchapter

\stopbackmatter

\stoptext

/But, as far as I know, this method is boring/, because you need to 
write all you bibliographical sources in the buffer. The better is to 
build a separate bibtex file with such a software as JabRef (which is a 
kind of bibtex tool). This bibtex file is in your ConTeXt repository and 
you need only to call the name of your bibtex item. For instance, the 
book /Natural Right and History/ of Leo Strauss becomes 'Strauss,1952' 
(with JabRef) and if you cite this book in your text (like this : 
\cite[alternative=entry][/any title/::Strauss1952]}, you can find the 
item at the 'S' letter. Indeed, there is some work to do (feed your 
bitex file with items...), but when it is done once, it is forever (I 
guess ...). I give you a MWE as an attached file ...


Hope it helps !

JP

[/here is the beginning of a buffer sample /]

\startbuffer[biblio]

@book{Cicéron1,

author = {Cicéron},

title = {Tusculanes, V, 8},

}


@INCOLLECTION{Leibniz1885,

author = {Leibniz, G. W.},

title = {Principes de la nature et de la grâce fondés en raison, 1714},

title:en = {Principles of Nature and Grace Founded in Reason},

booktitle = {\de Die Philosophischen Schriften von Gottfried Wilhelm 
Leibniz},


booktitle:en = {The Philosophical Writings of Gottfried Wilhelm Leibniz},

editor = {Gerhardt, C. G.},

publisher = {Weidmann},

year = {1885},

volume = {6},

chapter = {8},

pages = {598–606},

address = {Berlin},

language = {french},

}


@book{Rousseau1755,

author ={Rousseau, Jean-Jacques}

title = {Discours sur l’Origine et les Fondements de l’Inégalité parmi 
les Hommes.},


year = {1755},

}


@book{Rousseau1750,

author ={Rousseau, Jean-Jacques}

title = {Discours sur les Sciences et les Arts},

year = {1750},

}


@book{Rousseau1762,

author = {Rousseau, Jean-Jacques},

title = {Émile},

year = {1762},

}

\stopbuffer



Le 26/03/2022 à 13:25, A A via ntg-context a écrit :

Hi All,

I'm trying to get a simple bibliography to work with ConTeXt. Here's 
what I have so far:


*test.tex*
*
*
\usebtxdataset[bibliography.bib]

\starttext

  \startbodymatter
    See \cite[proofwiki]
  \stopbodymatter

  \startbackmatter
    \startsection[title=Bibliography]
    \stopsection
  \stopbackmatter
\stoptext
*
*
*bibliography.bib*
*
*
@misc{
  proofwiki,
  title={{Definition:Collation - ProofWiki}},
  author={{ProofWiki}},
  howpublished={
    \href{https://proofwiki.org/wiki/Definition:Collation}{link 
<https://proofwiki.org/wiki/Definition:Collation}{link>}

  },
  journal={{ProofWiki}},
  year={2021}
}

When I compile test.tex it generates a pdf, but the citation is not 
included in the body matter. Also the actual reference is not present 
in Bibliography.


What am I doing wrong?

Regards,

Amine
*
*

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


--
Jean-Pierre Delange
Ancients&Moderns
Professeur Agrégé de Philosophie (HC)
\startbuffer[biblio]

@book{Cicéron1,
author = {Cicéron},
title = {Tusculanes, V, 8},
}


@INCOLLECTION{Leibniz1885,
author = {Leibniz, G. W.},
title = {Principes de la nature et de la grâce fondés en raison, 1714},
title:en = {Principles of Nature and Grace Founded in Reason},
booktitle = {\de Die Philosophischen Schriften von Gottfried Wilhelm Leibniz},
booktitle:en = {The Philosophical Writings of Gottfried Wilhelm Leibniz},
editor = {Gerhardt, C. G.},
publisher = {Weidmann},
year = {1885},
volume = {6},
chapter = {8},
pages = {598–606},
address = {Berlin},
language = {french},
}

@book{Rousseau1755,
author ={Rousseau, Jean-Jacques}
title = {Discours sur l’Origine et les Fondements de l’Inégalité parmi les Hommes.},
year = {1755},
}

@book{Rousseau1750,
author ={Rousseau, Jean-Jacques}
title = {Disc

Re: [NTG-context] control cite - bibliographical references

2022-01-30 Thread Henning Hraban Ramm via ntg-context

Am 30.01.22 um 10:25 schrieb Robert via ntg-context:

Dear list,

I am struggling with the color of bibliographical references.

I found (Ulrike’s) hack to render the items in the bibliography the 
regular color (black):


\appendtoks \iflocation \letinteractionparameter{color}\empty \fi \to 
\everybtxlistrendering.


There the problem seems to relate to the use of \setupinteraction.

Now, in my citations (\cite[Douma1979a]) the authornames are still 
colored. Douma, 1979a, 86



I examined the contextgarden site, read and tried the answers to 
previous questions, but could not find out how to do this.


Is there a way to control the author names?


I don’t know if there is something special to bibliography, but usually 
you can set

\setupinteraction[color=,contrastcolor=,]
to get all links in black.

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

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


[NTG-context] control cite - bibliographical references

2022-01-30 Thread Robert via ntg-context
Dear list,

I am struggling with the color of bibliographical references.

I found (Ulrike’s) hack to render the items in the bibliography the regular 
color (black):

\appendtoks \iflocation \letinteractionparameter{color}\empty \fi \to 
\everybtxlistrendering.

There the problem seems to relate to the use of \setupinteraction.

Now, in my citations (\cite[Douma1979a]) the authornames are still colored.  
Douma, 1979a, 86 


I examined the contextgarden site, read and tried the answers to previous 
questions, but could not find out how to do this.

Is there a way to control the author names?

Thank you in advance,

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How to stop columns from splitting up items in a list?

2022-01-29 Thread Bruce Horrocks via ntg-context


> On 29 Jan 2022, at 14:45, Joel via ntg-context  wrote:
> 
> I am writing a workbook that contains a materials list in front of some craft 
> activities.
> 
> I found that simply displaying a bulleted list can take up lots of space on 
> the page, so instead put the list in three columns. The problem is, if there 
> is an item with a somewhat long description, it can be split across columns. 
> See the example below:
> 
> \starttext
> \startcolumns[n=3]%
> \startitemize[1]%
>  \item pizza cutter
>  \item a word processor (or notebook paper)
>  \stopitemize%
>  \stopcolumns%
> \stoptext
> 
> In the example, it split the second item across the columns.
> 
> How can I create columns that don't allow the item to split across them?
> 

Have you tried 

\startitemize[columns,three]

instead of \startcolumns?

There are examples in the manual on page 16


The spacing can be adjusted as well if the default is too big.

—
Bruce Horrocks
Hampshire, UK

___
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] How to stop columns from splitting up items in a list?

2022-01-29 Thread Joel via ntg-context
I am writing a workbook that contains a materials list in front of some craft 
activities. 
I found that simply displaying a bulleted list can take up lots of space on the 
page, so instead put the list in three columns. The problem is, if there is an 
item with a somewhat long description, it can be split across columns. See the 
example below:
\starttext    \startcolumns[n=3]%    \startitemize[1]% \item 
pizza cutter \item a word processor (or notebook paper) 
\stopitemize% \stopcolumns%\stoptext
In the example, it split the second item across the columns.
How can I create columns that don't allow the item to split across them?
___
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] How to add entire chapter's page ranger for index entry?

2022-01-23 Thread Bruce Horrocks via ntg-context


> On 23 Jan 2022, at 21:40, Joel via ntg-context  wrote:
> 
> I am adding items to an index simply using `\index{word}`.
> 
> There are a few cases where instead of printing just the page number where 
> `\index{word}` is placed, I need the entire page range for that chapter to be 
> displayed. For instance, if Chapter 3 spans page 22-50, and I place 
> `\index{word}` in Chapter 3, I need the index to display "word 22-50", but 
> only for that entry...not for all index entries.
> 
> How to add entire chapter's page ranger for index entry?


\startchapter[title={My chapter title}]
\startregister[index][anIdentifier]{word}

The text...

\stopregister[index][anIdentifier]
\stopchapter

—
Bruce Horrocks
Hampshire, UK

___
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] How to add entire chapter's page ranger for index entry?

2022-01-23 Thread Henning Hraban Ramm via ntg-context

Am 23.01.22 um 22:40 schrieb Joel via ntg-context:

I am adding items to an index simply using `\index{word}`.

There are a few cases where instead of printing just the page number 
where `\index{word}` is placed, I need the entire page range for that 
chapter to be displayed. For instance, if Chapter 3 spans page 22-50, 
and I place `\index{word}` in Chapter 3, I need the index to display 
"word 22-50", but only for that entry...not for all index entries.


How to add entire chapter's page ranger for index entry?


You need to use

\startregister[index][some code]{Entry}
... chapter content ...
\stopregister[index][some code]

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

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


[NTG-context] How to add entire chapter's page ranger for index entry?

2022-01-23 Thread Joel via ntg-context
I am adding items to an index simply using `\index{word}`.

There are a few cases where instead of printing just the page number where 
`\index{word}` is placed, I need the entire page range for that chapter to be 
displayed. For instance, if Chapter 3 spans page 22-50, and I place 
`\index{word}` in Chapter 3, I need the index to display "word 22-50", but only 
for that entry...not for all index entries.

How to add entire chapter's page ranger for index entry?

--Joel
___
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] How to manually adjust the sort order of items appearing in a custom index?

2022-01-17 Thread Henning Hraban Ramm via ntg-context

Am 17.01.22 um 16:53 schrieb Joel via ntg-context:
I created a custom index that displays a list of "Important Dates" 
appearing in my book. It lists the year, a short description of what 
happened, and should show the page number.


I'm running into two errors though:

First, if the date is the same year, it is sorting alphabetically, 
example


\dateis{1900s+1912}{Yet another event happened}
\dateis{1900s+1912}{Another event happened}

...will print the wrong one first in the index..

1912 - Another even happened
1912 - Yet another event happened.

Is there a way to manually tell it to display one first? I don't want to 
add visible month and day details, that would be even more confusing to 
the index as I have to print it in American order.


Second, when it compiles it is not printing the page number, instead 
prints "[Entry not flushed]".


-- Joel

Here is my minimum working example:


\defineregister[listdates][compress=yes]
\setupregister[listdates][style=sansbold, textstyle=slanted, n=1, 
pagenumber=yes]


\define[2]\dateis{%
     \listdates{#1~\emdash ~#2}%
}%

\starttext

\dateis{1900s+1911}{Some event happened}
\dateis{1900s+1912}{Yet another event happened}
\dateis{1900s+1912}{Another event happened}

\startchapter[title=Important Dates]
     \placelistdates
\stopchapter

\stoptext


Change your definition of \dateis (or use an additional macro) to use 
the sort key of \index:


\index[1900s+191201]{January}
\index[1900s+191202]{February}

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

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


[NTG-context] How to manually adjust the sort order of items appearing in a custom index?

2022-01-17 Thread Joel via ntg-context
I created a custom index that displays a list of "Important Dates" appearing in 
my book. It lists the year, a short description of what happened, and should 
show the page number.

I'm running into two errors though:

First, if the date is the same year, it is sorting alphabetically, example

\dateis{1900s+1912}{Yet another event happened}
\dateis{1900s+1912}{Another event happened}

...will print the wrong one first in the index..

1912 - Another even happened
1912 - Yet another event happened.

Is there a way to manually tell it to display one first? I don't want to add 
visible month and day details, that would be even more confusing to the index 
as I have to print it in American order.

Second, when it compiles it is not printing the page number, instead prints 
"[Entry not flushed]".

-- Joel

Here is my minimum working example:


\defineregister[listdates][compress=yes]
\setupregister[listdates][style=sansbold, textstyle=slanted, n=1, 
pagenumber=yes]

\define[2]\dateis{%
    \listdates{#1~\emdash ~#2}%
}%

\starttext

\dateis{1900s+1911}{Some event happened}
\dateis{1900s+1912}{Yet another event happened}
\dateis{1900s+1912}{Another event happened}

\startchapter[title=Important Dates]
    \placelistdates
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spacing issue in itemize

2022-01-14 Thread Gavin via ntg-context
Hi Hans, Aditya, and all,

Let me add another case to this discussion. For multiple choice questions, it 
is nice to have the columns option. However, this produces somewhat 
inconsistent results. In the code below, without Aditya's tweak, there is space 
before the choices in the first two cases, which use columns, but not the last. 
Aditya’s  tweak makes them more consistent.

Adding [columns, one] to the last \startchoices makes the results consistent. 
When doing that, I noticed that the spacing between column rows is slightly 
larger than the spacing between items without columns. So, I am happy using 
[columns, one] as a solution for multiple choice problems, just somewhat 
surprised by the difference.

Gavin


\starttext

%\unprotect
%\c_strc_itemgroups_spacing_mode\plusone
%\protect

\defineitemgroup[questions]
\setupquestions [1] [n]
\define\question{\item}

\defineitemgroup[choices]
\setupchoices [each] [A] [left=(, right=), width=1.7em, stopper=,]
\define\choice{\item}

Here are a few great looking multiple choice questions about colors.
\startquestions
\question What is your favorite color?
\startchoices[columns,four]
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\question What is your least favorite color?
\startchoices[columns]
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\question Toward which colors do you feel indifferent?
\startchoices
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\stopquestions
That's it for questions about colors!

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spacing issue in itemize

2022-01-14 Thread Hans Hagen via ntg-context

On 1/13/2022 6:15 PM, Aditya Mahajan via ntg-context wrote:

On Thu, 13 Jan 2022, Gavin via ntg-context wrote:


Hi list,

When I define an items group, it seems to mess up the spacing for a nested item 
group. See example below. Any ideas?

I’m typesetting with

> ConTeXt  ver: 2022.01.06 19:51 LMTX  fmt: 2022.1.9  int: 
english/english

on an M1 Mac.

Thanks!
Gavin


\usemodule[visual]

\defineitemgroup[questions]
\setupquestions [each] [n]

\starttext
This numbered list uses my item group \quotation{questions.} The itemize inside 
is missing space above item (a).
\startquestions
   \item \fakewords{15}{20}
 \startitemize[a][left=(,stopper=,right=)]
   \item \fakewords{10}{15}
   \item \fakewords{10}{15}
 \stopitemize
   \item \fakewords{10}{15}
\stopquestions

This numbered list uses itemize. The itemize inside has the expected space 
above item (a).
\startitemize[n]
   \item \fakewords{15}{20}
 \startitemize[a][left=(,stopper=,right=)]
   \item \fakewords{10}{15}
   \item \fakewords{10}{15}
 \stopitemize
   \item \fakewords{10}{15}
\stopitemize

\stoptext


This is by design. This is what is happening:

\usemodule[visual]

\defineitemgroup[questions]

\starttext
This numbered list uses my item group \quotation{questions.} The itemize inside 
is missing space above item (a).
\startquestions[n][inbetween={AAA}]
   \item \fakewords{15}{20}
 \startitemize[a][left=(,stopper=,right=),before={BBB}]
   \item \fakewords{10}{15}
   \item \fakewords{10}{15}
 \stopitemize
   \item \fakewords{10}{15}
\stopquestions

This numbered list uses itemize. The itemize inside has the expected space 
above item (a).
\startitemize[n][inbetween={AAA}]
   \item \fakewords{15}{20}
 \startitemize[a][left=(,stopper=,right=),before={BBB}]
   \item \fakewords{10}{15}
   \item \fakewords{10}{15}
 \stopitemize
   \item \fakewords{10}{15}
\stopitemize

\stoptext

Note that in the first case, the inbetween does not get inserted at the start 
of the nested itemization (because, ConTeXt doesn't think that they are nested 
as the names are different). But the before key of the nested itemization 
doesn't get inserted in both cases because ConTeXt thinks that the itemization 
is nested!

You can change this behavior by using:

\unprotect
\c_strc_itemgroups_spacing_mode\plusone
\protect

in which case both outputs are similar.

@Hans: Does it make sense to add a setups key to \setupitemize to keep such 
changes local?

% 0 = before/after
% 1 = between unless before
% 2 = between

\c_strc_itemgroups_spacing_mode\plustwo

The question then is: "what key" (we have c!inherit available) and "what 
values" (numbers ?) ...


Hans


-
  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] Spacing issue in itemize

2022-01-13 Thread Gavin via ntg-context
Thank you again, Aditya!

I changed my documents so I use three levels of question, which solved the 
problem.

My code might be more readable if the different levels had different names 
(question, part, subpart), rather than nested questions in questions. This was 
my original intention. I was certainly surprised by the result.

Now I’m moving on to the problem set's diagrams with MetaFun.

Gavin


> On Jan 13, 2022, at 10:15 AM, Aditya Mahajan via ntg-context 
>  wrote:
> 
> On Thu, 13 Jan 2022, Gavin via ntg-context wrote:
> 
>> Hi list,
>> 
>> When I define an items group, it seems to mess up the spacing for a nested 
>> item group. See example below. Any ideas?
>> 
>> I’m typesetting with
>> 
>>  > ConTeXt  ver: 2022.01.06 19:51 LMTX  fmt: 2022.1.9  int: 
>> english/english
>> 
>> on an M1 Mac.
>> 
>> Thanks!
>> Gavin
>> 
>> 
>> \usemodule[visual]
>> 
>> \defineitemgroup[questions]
>> \setupquestions [each] [n]
>> 
>> \starttext
>> This numbered list uses my item group \quotation{questions.} The itemize 
>> inside is missing space above item (a).
>> \startquestions
>>  \item \fakewords{15}{20}
>>\startitemize[a][left=(,stopper=,right=)]
>>  \item \fakewords{10}{15}
>>  \item \fakewords{10}{15}
>>\stopitemize
>>  \item \fakewords{10}{15}
>> \stopquestions
>> 
>> This numbered list uses itemize. The itemize inside has the expected space 
>> above item (a).
>> \startitemize[n]
>>  \item \fakewords{15}{20}
>>\startitemize[a][left=(,stopper=,right=)]
>>  \item \fakewords{10}{15}
>>  \item \fakewords{10}{15}
>>\stopitemize
>>  \item \fakewords{10}{15}
>> \stopitemize
>> 
>> \stoptext
> 
> This is by design. This is what is happening:
> 
> \usemodule[visual]
> 
> \defineitemgroup[questions]
> 
> \starttext
> This numbered list uses my item group \quotation{questions.} The itemize 
> inside is missing space above item (a).
> \startquestions[n][inbetween={AAA}]
>  \item \fakewords{15}{20}
>\startitemize[a][left=(,stopper=,right=),before={BBB}]
>  \item \fakewords{10}{15}
>  \item \fakewords{10}{15}
>\stopitemize
>  \item \fakewords{10}{15}
> \stopquestions
> 
> This numbered list uses itemize. The itemize inside has the expected space 
> above item (a).
> \startitemize[n][inbetween={AAA}]
>  \item \fakewords{15}{20}
>\startitemize[a][left=(,stopper=,right=),before={BBB}]
>  \item \fakewords{10}{15}
>  \item \fakewords{10}{15}
>\stopitemize
>  \item \fakewords{10}{15}
> \stopitemize
> 
> \stoptext
> 
> Note that in the first case, the inbetween does not get inserted at the start 
> of the nested itemization (because, ConTeXt doesn't think that they are 
> nested as the names are different). But the before key of the nested 
> itemization doesn't get inserted in both cases because ConTeXt thinks that 
> the itemization is nested!
> 
> You can change this behavior by using:
> 
> \unprotect
> \c_strc_itemgroups_spacing_mode\plusone
> \protect
> 
> in which case both outputs are similar. 
> 
> @Hans: Does it make sense to add a setups key to \setupitemize to keep such 
> changes local?
> 
> Aditya
> ___
> 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] Spacing issue in itemize

2022-01-13 Thread Aditya Mahajan via ntg-context
On Thu, 13 Jan 2022, Gavin via ntg-context wrote:

> Hi list,
> 
> When I define an items group, it seems to mess up the spacing for a nested 
> item group. See example below. Any ideas?
> 
> I’m typesetting with
> 
>   > ConTeXt  ver: 2022.01.06 19:51 LMTX  fmt: 2022.1.9  int: 
> english/english
> 
> on an M1 Mac.
> 
> Thanks!
> Gavin
> 
> 
> \usemodule[visual]
> 
> \defineitemgroup[questions]
> \setupquestions [each] [n]
> 
> \starttext
> This numbered list uses my item group \quotation{questions.} The itemize 
> inside is missing space above item (a).
> \startquestions
>   \item \fakewords{15}{20}
> \startitemize[a][left=(,stopper=,right=)]
>   \item \fakewords{10}{15}
>   \item \fakewords{10}{15}
> \stopitemize
>   \item \fakewords{10}{15}
> \stopquestions
> 
> This numbered list uses itemize. The itemize inside has the expected space 
> above item (a).
> \startitemize[n]
>   \item \fakewords{15}{20}
> \startitemize[a][left=(,stopper=,right=)]
>   \item \fakewords{10}{15}
>   \item \fakewords{10}{15}
> \stopitemize
>   \item \fakewords{10}{15}
> \stopitemize
> 
> \stoptext

This is by design. This is what is happening:

\usemodule[visual]

\defineitemgroup[questions]

\starttext
This numbered list uses my item group \quotation{questions.} The itemize inside 
is missing space above item (a).
\startquestions[n][inbetween={AAA}]
  \item \fakewords{15}{20}
\startitemize[a][left=(,stopper=,right=),before={BBB}]
  \item \fakewords{10}{15}
  \item \fakewords{10}{15}
\stopitemize
  \item \fakewords{10}{15}
\stopquestions

This numbered list uses itemize. The itemize inside has the expected space 
above item (a).
\startitemize[n][inbetween={AAA}]
  \item \fakewords{15}{20}
\startitemize[a][left=(,stopper=,right=),before={BBB}]
  \item \fakewords{10}{15}
  \item \fakewords{10}{15}
\stopitemize
  \item \fakewords{10}{15}
\stopitemize

\stoptext

Note that in the first case, the inbetween does not get inserted at the start 
of the nested itemization (because, ConTeXt doesn't think that they are nested 
as the names are different). But the before key of the nested itemization 
doesn't get inserted in both cases because ConTeXt thinks that the itemization 
is nested!

You can change this behavior by using:

\unprotect
\c_strc_itemgroups_spacing_mode\plusone
\protect

in which case both outputs are similar. 

@Hans: Does it make sense to add a setups key to \setupitemize to keep such 
changes local?

Aditya
___
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] Spacing issue in itemize

2022-01-13 Thread Gavin via ntg-context
Hi list,

When I define an items group, it seems to mess up the spacing for a nested item 
group. See example below. Any ideas?

I’m typesetting with

> ConTeXt  ver: 2022.01.06 19:51 LMTX  fmt: 2022.1.9  int: 
english/english

on an M1 Mac.

Thanks!
Gavin


\usemodule[visual]

\defineitemgroup[questions]
\setupquestions [each] [n]

\starttext
This numbered list uses my item group \quotation{questions.} The itemize inside 
is missing space above item (a).
\startquestions
  \item \fakewords{15}{20}
\startitemize[a][left=(,stopper=,right=)]
  \item \fakewords{10}{15}
  \item \fakewords{10}{15}
\stopitemize
  \item \fakewords{10}{15}
\stopquestions

This numbered list uses itemize. The itemize inside has the expected space 
above item (a).
\startitemize[n]
  \item \fakewords{15}{20}
\startitemize[a][left=(,stopper=,right=)]
  \item \fakewords{10}{15}
  \item \fakewords{10}{15}
\stopitemize
  \item \fakewords{10}{15}
\stopitemize

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] \its disappeared

2022-01-08 Thread Wolfgang Schuster via ntg-context

Henning Hraban Ramm via ntg-context schrieb am 08.01.2022 um 16:53:


I don’t know since when the questionnaire item command \its doesn’t 
exist any more:

https://wiki.contextgarden.net/Command/its

\starttext
\startitemize[5,packed][items=7,width=5em,distance=1em]
 \ran{\ss\tfx 1 \hss 7}
 \its \CONTEXT\ or \LaTeX?
 \its Tofu or sausage?
 \its Freedom or security?
\stopitemize
\stoptext



strc-itm.mklx

-\protected\tolerant\def\strc_itemgroups_start_items_indeed[#1]%
+\protected\tolerant\def\strc_itemgroups_start_items[#1]%
  {\strc_itemgroups_start_edge
 {\localcontrolledloop
\plusone
\ifchknum#1\or#1\else0\itemgroupparameter\c!items\fi
\plusone
{\strc_itemgroups_used_symbol\hss}%
  \unskip}}


It’s also absent in the interface files, i.e. autosyntax doesn’t work in 
the wiki.



There is no easy way to document them because many of these short 
commands exists in different environment (e.g. \startitemize and 
\startinteractionmenu) with different arguments.


Wolfgang

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

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


[NTG-context] \its disappeared

2022-01-08 Thread Henning Hraban Ramm via ntg-context


I don’t know since when the questionnaire item command \its doesn’t 
exist any more:

https://wiki.contextgarden.net/Command/its

\starttext
\startitemize[5,packed][items=7,width=5em,distance=1em]
\ran{\ss\tfx 1 \hss 7}
\its \CONTEXT\ or \LaTeX?
\its Tofu or sausage?
\its Freedom or security?
\stopitemize
\stoptext


It’s also absent in the interface files, i.e. autosyntax doesn’t work in 
the wiki.


Is there a better alternative?

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

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


Re: [NTG-context] Critical Editions?

2022-01-04 Thread Jean-Pierre Delange via ntg-context

Thomas,
Even if I am an occasional user of CTX (mainly class courses for 
beginners and sophomore or by trying to write samples of what it is 
possible to achieve with it), and if I think I am aware about what can 
do CTX or what it cannot do, I didn't know that you wrote a  wiki page 
on TEI-XML with ConTeXt : even if I am interested by clever printing and 
issues with multi-languages texts topics, I ignored your precious piece 
of work. I was interested by the questions of Pr. Jürgen Hanneder, 
because even if I don't know a word of Sanskrit,  it is allways a true 
pain to begin with technical requisits when your real job is to think 
about the problematic meaning of ancients or less ancients texts. You 
precise clearly what I think about University mores, and J. Hanneder 
tell us his problems, which all of us know.
There are, for people who are working on Ancient Greek, Latin, Middle 
Age texts or Sanskrit (or whatever) some commercial tools which seem do 
the work : but technical efficiency asks allways money. I know of a 
company that works for a publisher, whose service is to code some Perl 
with text formatted in LaTeX and XML, in order to produce a display on 
screen and a printout on paper, until the page which presents the cover 
of the book and the summary of the contents, as well as its ISBN code, 
its price and the quantity of books in stock.


ConTeXt was at the very start a kind of a clever answer to the huge of 
technical abilities asked by LaTeX, and free of charge, numerous people 
interested by text editing have turned their eyes to ConTeXt.
I agree with you about reading and solving problems for a 400 pages text 
with 2 or 3 different languages and several levels of criticus apparatus 
: one needs to begin with the beginning or a kind of beginning with some 
issues given by a real and modest sample.


Best//JP

Le 04/01/2022 à 21:02, Thomas A. Schmitz via ntg-context a écrit :

I basically agree with everything you say, Jean-Pierre. Publishers are 
modern-day robber barons, and they have been stifling and exploiting scholars 
and scholarship for many years now. Behemoths such as Brill, de Gruyter, or 
Elsevier are bankrupting libraries in the entire world. However, we scholars 
also have some responsibility: if we could agree with each other, we could 
easily bypass the big publishers and have our critical editions (in a variety 
of formats) on our university’s websites. But we don’t do that: younger 
scholars need the validation of big name publications to build reputation and 
find a job, older scholars (myself included) are vain and/or old-fashioned and 
prefer a “real” book.

For your questions at the end: as you know, TEI is an insanely huge beast. 
Nobody will be willing and/or able to implement all of it in ConTeXt. What we 
need is actual use cases: scholars coming here and building up the expertise 
via the work they’re actually doing. Preferably in smaller installments so the 
developers and advanced users can slowly prepare bits and pieces of these 
stylesheets. No-one is going to look at a 400-page edition with all kinds of 
special needs in one go; we start with a chapter, a few pages, and we make our 
way. That’s what I expected when I wrote the wiki page on TEI xml: that it 
would slowly develop into something more comprehensive. Alas, it has been 
sitting there for 11 years… Every now and then, someone will appear on the 
mailing list and say: I need four apparatuses and six parallel translations and 
bells and whistles at every paragraph, but when you ask for real examples and 
specifications, they ride out into the sunset, never to be heard of again… So: 
I’m all for continuing in this direction, but we need some continuity. (And, 
not to brag, but still: I even managed to obtain some funding a couple of years 
ago to improve the bibliographical support in ConTeXt; if you have a real 
project, you can always allocate some funding for these things). As for 
learning TEI: I really think this is absolutely inevitable; even if new formats 
will be invented in the future (and TEI has serious shortcomings for many sorts 
of manuscript traditions), they will probably do so with TEI as a starting 
point.

I’m not working on a critical edition right now, but I have done some 
preparatory work and am willing to chip in!

All best

Thomas


On 4. Jan 2022, at 18:54, Jean-Pierre Delange via 
ntg-context  wrote:

Thomas,

You are deeply right ! But this is an issue in academic edition, not only 
because students read no more at length (specially in humanities), and by 
consequence, don't buy books, but among other reasons there is a general 
problem in publishing in academic fields, pointed by Jürgen Hanneder : even 
Universities libraries don't buy all items published by scholars in a specific 
field, but publishers themselves have leveled the academic criterium by 
commercial/economic considerations. Then, scholars have to gather financial 
funding with

Re: [NTG-context] Critical Editions?

2022-01-04 Thread Thomas A. Schmitz via ntg-context
I basically agree with everything you say, Jean-Pierre. Publishers are 
modern-day robber barons, and they have been stifling and exploiting scholars 
and scholarship for many years now. Behemoths such as Brill, de Gruyter, or 
Elsevier are bankrupting libraries in the entire world. However, we scholars 
also have some responsibility: if we could agree with each other, we could 
easily bypass the big publishers and have our critical editions (in a variety 
of formats) on our university’s websites. But we don’t do that: younger 
scholars need the validation of big name publications to build reputation and 
find a job, older scholars (myself included) are vain and/or old-fashioned and 
prefer a “real” book.

For your questions at the end: as you know, TEI is an insanely huge beast. 
Nobody will be willing and/or able to implement all of it in ConTeXt. What we 
need is actual use cases: scholars coming here and building up the expertise 
via the work they’re actually doing. Preferably in smaller installments so the 
developers and advanced users can slowly prepare bits and pieces of these 
stylesheets. No-one is going to look at a 400-page edition with all kinds of 
special needs in one go; we start with a chapter, a few pages, and we make our 
way. That’s what I expected when I wrote the wiki page on TEI xml: that it 
would slowly develop into something more comprehensive. Alas, it has been 
sitting there for 11 years… Every now and then, someone will appear on the 
mailing list and say: I need four apparatuses and six parallel translations and 
bells and whistles at every paragraph, but when you ask for real examples and 
specifications, they ride out into the sunset, never to be heard of again… So: 
I’m all for continuing in this direction, but we need some continuity. (And, 
not to brag, but still: I even managed to obtain some funding a couple of years 
ago to improve the bibliographical support in ConTeXt; if you have a real 
project, you can always allocate some funding for these things). As for 
learning TEI: I really think this is absolutely inevitable; even if new formats 
will be invented in the future (and TEI has serious shortcomings for many sorts 
of manuscript traditions), they will probably do so with TEI as a starting 
point.

I’m not working on a critical edition right now, but I have done some 
preparatory work and am willing to chip in!

All best

Thomas

> On 4. Jan 2022, at 18:54, Jean-Pierre Delange via ntg-context 
>  wrote:
> 
> Thomas,
> 
> You are deeply right ! But this is an issue in academic edition, not only 
> because students read no more at length (specially in humanities), and by 
> consequence, don't buy books, but among other reasons there is a general 
> problem in publishing in academic fields, pointed by Jürgen Hanneder : even 
> Universities libraries don't buy all items published by scholars in a 
> specific field, but publishers themselves have leveled the academic criterium 
> by commercial/economic considerations. Then, scholars have to gather 
> financial funding with technical computing practice, which is another issue, 
> and furthermore they have to find money in order to publish at expansive cost 
> (see Brill prices, for example).
> 
> You are right about some academic tools, like those developed by Tuft 
> University (like ancient greek thesaurus : http://stephanus.tlg.uci.edu/ or 
> The Liddell-Scott-Jones online dictionary : 
> http://stephanus.tlg.uci.edu/lsj/#eid=1), but for providing such tools as 
> online digital work, there is two ways :
> 
> 1. Academic courses on TEI XML given to advanced students in order to help 
> them to produce well achieved projects (and provide manuals to do that; an 
> example here in French  : 
> http://www.bvh.univ-tours.fr/XML-TEI/ManuelWeb/Manuel_TEI_BVH.html)
> 
> 2. Or, there are not so numerous nests like NTG-Context discussion list ! How 
> to help Jürgen (and scholars generally) who knock at the door looking for an 
> analysis of their needs and questioning how ConTeXt may help them ?
> 
> a) They have to learn TEI XML, then
> 
> b) learn Context stylesheet !
> 
> Is it possible to gather a group of people interested by these topics ? Are 
> we starting today ?

___
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] Critical Editions?

2022-01-04 Thread Jean-Pierre Delange via ntg-context

Thomas,

You are deeply right ! But this is an issue in academic edition, not 
only because students read no more at length (specially in humanities), 
and by consequence, don't buy books, but among other reasons there is a 
general problem in publishing in academic fields, pointed by Jürgen 
Hanneder : even Universities libraries don't buy all items published by 
scholars in a specific field, but publishers themselves have leveled the 
academic criterium by commercial/economic considerations. Then, scholars 
have to gather financial funding with technical computing practice, 
which is another issue, and furthermore they have to find money in order 
to publish at expansive cost (see Brill prices, for example).


You are right about some academic tools, like those developed by Tuft 
University (like ancient greek thesaurus : http://stephanus.tlg.uci.edu/ 
or The Liddell-Scott-Jones online dictionary : 
http://stephanus.tlg.uci.edu/lsj/#eid=1), but for providing such tools 
as online digital work, there is two ways :


1. Academic courses on TEI XML given to advanced students in order to 
help them to produce well achieved projects (and provide manuals to do 
that; an example here in French  : 
http://www.bvh.univ-tours.fr/XML-TEI/ManuelWeb/Manuel_TEI_BVH.html)


2. Or, there are not so numerous nests like NTG-Context discussion list 
! How to help Jürgen (and scholars generally) who knock at the door 
looking for an analysis of their needs and questioning how ConTeXt may 
help them ?


a) They have to learn TEI XML, then

b) learn Context stylesheet !

Is it possible to gather a group of people interested by these topics ? 
Are we starting today ?


Le 04/01/2022 à 13:38, Thomas A. Schmitz via ntg-context a écrit :

On 3. Jan 2022, at 10:43, hanneder--- via ntg-context  
wrote:

While the system is ingenious
and a great relief (for we do not have to work with xml directly), I am also 
critical about these
new demands, because they force us to use a fairly complex system for sometimes 
quite simple tasks.
I am a Sanskritist, we do not have huge budgets or a large staff, so efficiency 
is an issue.

Just for what it’s worth: I don’t see any future in developing a ConTeXt input 
format for critical editions, for the following reasons:

1. Producing a print-only version (i.e. printed book) makes no sense in 2022. 
This is not sustainable because no-one will be able to take your edition and 
continue to work on it. You have to provide a digital edition as research data.

2. This digital edition has to be in a standard format that is sustainable at 
least for some time so it can be processed with various types of software. TEI 
xml has become the de facto standard.

3. ConTeXt is not stable enough to provide such a standard format: it is in 
development; what you code today may not be compilable in 2 (or 5 or 50) years.

4. However, ConTeXt is wonderful for processing xml.

Hence: keep the input source and the processing separate. Code in TEI xml (or a 
subset of it) and develop a ConTeXt stylesheet to process it.

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

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


--
Jean-Pierre Delange
Ancients&Moderns

___
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] Is there a syntax for making many index entry's all in one?

2021-12-28 Thread Hans Hagen via ntg-context

On 12/28/2021 11:09 PM, Joel via ntg-context wrote:

I am using \index{} to populate \placeindex (an index) with items.

I am wondering if there is any syntax that allows one \index{} command 
to define more than one entry, for example, something like this:


\index{presidents+Lincoln, Abraham; Lincoln, Abraham}

The result is two appearances in the index:

L
Lincoln, Abraham

P
presidents
     Lincoln, Abraham

Is there some syntax for making this possible, without calling \index{} 
multiple times?
splitting on + is already tricky (i just send Alan a patch that deals 
with a mix of text and math that has + in it)


it is no big deal top write this but just using a ; would for sure 
issues with existing indices


anyway, apart from maybe some typing it is not more efficient to combine

Hans


-
  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] Is there a syntax for making many index entry's all in one?

2021-12-28 Thread Joel via ntg-context
I am using \index{} to populate \placeindex (an index) with items.

I am wondering if there is any syntax that allows one \index{} command to 
define more than one entry, for example, something like this:

\index{presidents+Lincoln, Abraham; Lincoln, Abraham}
The result is two appearances in the index:

LLincoln, Abraham
Ppresidents    Lincoln, Abraham
Is there some syntax for making this possible, without calling \index{} 
multiple times?
--Joel


___
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] mwe (font proble) SOLVED

2021-11-14 Thread skyhorse--- via ntg-context

Solved.  Well almost.  I do know that it's an access problem of some sort.
I used 'font-manager' to look at fonts and it showed  'DejaVu Math Tex Gyre' as 
"disabled"
For su is shows the font as usable.
When context is run su, it compiles successfully.
So the fonts are there.  The example does work, but, not for me as user.
I for some reason have the some fonts disabled.
I'll figure out how to enable them.

Thank you all for your time.  I'll post back when I know what to do in case any 
future user has this problem.

Thank you

Hans Hagen via ntg-context  wrote:

> On 11/14/2021 12:26 AM, skyhorse--- via ntg-context wrote:
> > Here is the minium not-working example which I took from the
> > Wikigarden a few minutes ago.
> >
> > \def\T#1{%
> >\startitemize[#1,joinedup]
> >  \item This is a bullet of type #1.
> >\stopitemize
> > }
> > \starttext
> >\dorecurse{9}{\T\recurselevel}
> > \stoptext
> >
> > Compiling this into a pdf file with context produces an error.
> > I've pasted the complete context typesetting run to show the error, in 
> > hopes that it will shed some light on what's wrong with my setup.   I have 
> > a feeling that the stand along install is missing some vital part of the 
> > installation regarding fonts, and that it's not noticed by the majority of 
> > you since those items are still on your system from legacy versions.
> nornally it means that you have no math font loaded (i.e. you do
> something before \starttext
>
> Hans
>
>
>
> -
>   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] minimum working example plus (output)

2021-11-14 Thread Wolfgang Schuster via ntg-context

skyhorse--- via ntg-context schrieb am 14.11.2021 um 21:13:

Hans Hagen via ntg-context  wrote:


On 11/14/2021 12:26 AM, skyhorse--- via ntg-context wrote:

Here is the minium example which I took from the
Wikigarden a few minutes ago.

\def\T#1{%
\startitemize[#1,joinedup]
  \item This is a bullet of type #1.
\stopitemize
}
\starttext
\dorecurse{9}{\T\recurselevel}
\stoptext

Compiling this into a pdf file with context produces an error.
I've pasted the complete context typesetting run to show the error, in hopes 
that it will shed some light on what's wrong with my setup.   I have a feeling 
that the stand along install is missing some vital part of the installation 
regarding fonts, and that it's not noticed by the majority of you since those 
items are still on your system from legacy versions.

nornally it means that you have no math font loaded (i.e. you do
something before \starttext

Hans

Nothing is done before the sample shown above.That is all that is in the 
.lmtx source file.

 From looking at the errors, I agree, it looks like there are no math fonts or, 
they are not visiable to context.

I need advice on how I can remedy that.
What do I need and what do I need to do to install them if I don't have them 
already on disk.
I assume that they are not distributed with the   shelll script.


Can you delete the tex folder in your installation and try to download 
the files again.


When the script runs take a look at the terminal if you can see the 
following lines where the two zip files texmf.zip and texmf-context.zip 
are loaded. The first zip files contains all font files which are needed 
for your document.


sh install.sh
[...]
mtx-install | server   : lmtx.pragma-ade.com
mtx-install | instance : install-lmtx
mtx-install | platform : linux-64
mtx-install | system   : unix
mtx-install | fetching 
'http://lmtx.pragma-ade.com/install-lmtx//texmf.zip'

mtx-install | unzipping 'texmf.zip'
[...]
mtx-install | fetching 
'http://lmtx.pragma-ade.com/install-lmtx//texmf-context.zip'

mtx-install | unzipping 'texmf-context.zip'

Wolfgang

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

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


Re: [NTG-context] minimum working example plus (output)

2021-11-14 Thread skyhorse--- via ntg-context
Hans Hagen via ntg-context  wrote:

> On 11/14/2021 12:26 AM, skyhorse--- via ntg-context wrote:
> > Here is the minium example which I took from the
> > Wikigarden a few minutes ago.
> >
> > \def\T#1{%
> >\startitemize[#1,joinedup]
> >  \item This is a bullet of type #1.
> >\stopitemize
> > }
> > \starttext
> >\dorecurse{9}{\T\recurselevel}
> > \stoptext
> >
> > Compiling this into a pdf file with context produces an error.
> > I've pasted the complete context typesetting run to show the error, in 
> > hopes that it will shed some light on what's wrong with my setup.   I have 
> > a feeling that the stand along install is missing some vital part of the 
> > installation regarding fonts, and that it's not noticed by the majority of 
> > you since those items are still on your system from legacy versions.
>
> nornally it means that you have no math font loaded (i.e. you do
> something before \starttext
>
> Hans

Nothing is done before the sample shown above.That is all that is in the 
.lmtx source file.

From looking at the errors, I agree, it looks like there are no math fonts or, 
they are not visiable to context.

I need advice on how I can remedy that.
What do I need and what do I need to do to install them if I don't have them 
already on disk.
I assume that they are not distributed with the   shelll script.


Thanks
___
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] minimum working example plus (output)

2021-11-14 Thread Hans Hagen via ntg-context

On 11/14/2021 12:26 AM, skyhorse--- via ntg-context wrote:


Here is the minium not-working example which I took from the Wikigarden a few 
minutes ago.


\def\T#1{%
   \startitemize[#1,joinedup]
 \item This is a bullet of type #1.
   \stopitemize
}

\starttext
   \dorecurse{9}{\T\recurselevel}
\stoptext



Compiling this into a pdf file with context produces an error.
I've pasted the complete context typesetting run to show the error, in hopes 
that it will shed some light on what's wrong with my setup.   I have a feeling 
that the stand along install is missing some vital part of the installation 
regarding fonts, and that it's not noticed by the majority of you since those 
items are still on your system from legacy versions.
nornally it means that you have no math font loaded (i.e. you do 
something before \starttext


Hans



-
  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] minimum working example plus (output)

2021-11-13 Thread skyhorse--- via ntg-context

Here is the minium not-working example which I took from the Wikigarden a few 
minutes ago.


\def\T#1{%
  \startitemize[#1,joinedup]
\item This is a bullet of type #1.
  \stopitemize
}

\starttext
  \dorecurse{9}{\T\recurselevel}
\stoptext



Compiling this into a pdf file with context produces an error.
I've pasted the complete context typesetting run to show the error, in hopes 
that it will shed some light on what's wrong with my setup.   I have a feeling 
that the stand along install is missing some vital part of the installation 
regarding fonts, and that it's not noticed by the majority of you since those 
items are still on your system from legacy versions.

Regards

-

* OS: ubuntu 20.04.3 LTS

* Context current version: 2021.11.13 20:36

  $ context bullet-style-example-iteration.lmtx


resolvers   | formats | executing runner 'run luametatex format': 
/opt/context-lmtx/tex/texmf-linux-64/bin/luametatex 
--jobname="./bullet-style-example-iteration.lmtx" 
--fmt=/opt/context-lmtx/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/opt/context-lmtx/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./bullet-style-example-iteration.lmtx" 
--c:input="./bullet-style-example-iteration.lmtx" --c:kindofrun=1 
--c:maxnofruns=9 --c:texmfbinpath="/opt/context-lmtx/tex/texmf-linux-64/bin"

system  > callbacks > not registering frozen 'local_box_filter'
system  >
system  > ConTeXt  ver: 2021.11.13 20:36 LMTX  fmt: 2021.11.13  int: 
english/english
system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/opt/context-lmtx/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/opt/context-lmtx/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './bullet-style-example-iteration', input 
'./bullet-style-example-iteration.lmtx', result 
'./bullet-style-example-iteration'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './bullet-style-example-iteration.lmtx'
fonts   > preloading latin modern fonts (second stage)
fonts   > defining > font with asked name 'lmroman12-regular' is not 
found using lookup 'file'
fonts   > defining > unable to define 'lmroman12-regular' as 
'modern-designsize-12pt-rm-tf-0--0'
fonts   > defining > forced type 'otf' of 'latinmodern-math-regular' 
not found
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mr--3'
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mr--2'
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mr--1'
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mb--3'
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mb--2'
fonts   > defining > unable to define 'latinmodern-math-regular.otf' as 
'modern-designsize-12pt-mm-mb--1'
fonts   > 'fallback modern-designsize rm 12pt' is loaded
tex error   > tex error on line 9 in file 
./bullet-style-example-iteration.lmtx: \textfont0 is undefined in (text) char, 
font id 0, character 63)

 \textormathchar
...ar \scratchcounter \else \ifconditional \prefermathovertextchar 
\setfontid \fontid \textfont \c_font_fam_mr \fi \iffontchar \font 
\scratchcounter \char \scratchcounter \else \normalstartimath \char 
\scratchcounter \normalstopimath
\fi \fi \endg ...
 \symb_place_indeed
#1->\settrue \c_symb_found \begingroup \the \everysymbol \csname \??symbol 
#1\endcsname
\relax \endgroup
 \symb_place_retry
#1->\ifcsname \??symbol :#1\endcsname \symb_place_indeed {:#1}
\else #1\fi
 \currentsymbol
\setfalse \c_symb_found \the \t_symb_setups \ifconditional \c_symb_found 
\else \symb_place_retry \currentsymbol
\fi
 \symb_place_argument
#1->\dontleavehmode \edef \currentsymbol {#1}\ifcsname \??symbol 
\currentsymbolset :#1\endcsname \symb_place_indeed {\currentsymbolset :#1}\else 
\symb_place_normal
\fi
 \symb_place_indeed
#1->

Re: [NTG-context] spreadsheet product of two cells in current row

2021-11-12 Thread juh via ntg-context
Thank you Wolfgang for your reply.

I was lucky in the meantime.

Am Fri, Nov 12, 2021 at 12:55:59PM +0100 schrieb Wolfgang Schuster:
> juh via ntg-context schrieb am 12.11.2021 um 12:20:
> > Dear all,
> > 
> > I thought I could find my way through the spreadsheet documentation to
> > make my invoices.
> > 
> > While it is simple to calculate the sum or the product of two cells if
> > you know that they are A[2] and B[2] I can't find the solution to access
> > cell A and B *on the same row*.
> > 
> > Amount | Single | Sum
> > 2  | 5  | 10 <-- A[currentrow] * B[currentrow] does not work
> > 3  | 4  | 12
> > 
> > Sum   22
> > 
> > The rows come from a script and there might be several items.
> > 
> > Any hints?
> 

I found "row"

so:

\startcell @ "0.2f EUR" (A[row] * D[row]) \stopcell

gives the product of cell A and D in the current row.

And I even found row-n

\startcell @ "0.2f EUR" 0.19 * E[row-1] \stopcell

gives the VAT of cell E in the row before.

and:


\startcell[align=flushright] @ "0.2f EUR" E[row-1]+E[row-2] \stopcell

add the numbers of cell E in the two rows before.

It works, but is there a better approach?

juh

-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] spreadsheet product of two cells in current row

2021-11-12 Thread Wolfgang Schuster via ntg-context

juh via ntg-context schrieb am 12.11.2021 um 12:20:

Dear all,

I thought I could find my way through the spreadsheet documentation to
make my invoices.

While it is simple to calculate the sum or the product of two cells if
you know that they are A[2] and B[2] I can't find the solution to access
cell A and B *on the same row*.

Amount | Single | Sum
2  | 5  | 10 <-- A[currentrow] * B[currentrow] does not work
3  | 4  | 12

Sum   22

The rows come from a script and there might be several items.

Any hints?


Do you have a example because I have no problem to access values in the 
current row.


\usemodule[spreadsheet]

\starttext

\bTABLE
    \bTR
    \bTD Amount \eTD
    \bTD Single \eTD
    \bTD Sum \eTD
    \eTR
    \bTR
    \bTD \getspr{2} \eTD
    \bTD \getspr{5} \eTD
    \bTD \getspr{A[2] * B[2]} \eTD
    \eTR
    \bTR
    \bTD \getspr{3} \eTD
    \bTD \getspr{4} \eTD
    \bTD \getspr{A[3] * B[3]} \eTD
    \eTR
\eTABLE

\startspreadsheettable
    \startrow
    \startcell "Amount" \stopcell
    \startcell "Single" \stopcell
    \startcell "Sum" \stopcell
    \stoprow
    \startrow
    \startcell 2 \stopcell
    \startcell 5 \stopcell
    \startcell A[2] * B[2] \stopcell
    \stoprow
    \startrow
    \startcell 3 \stopcell
    \startcell 4 \stopcell
    \startcell A[3] * B[3] \stopcell
    \stoprow
\stopspreadsheettable

\stoptext

Wolfgang

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

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


[NTG-context] spreadsheet product of two cells in current row

2021-11-12 Thread juh via ntg-context
Dear all,

I thought I could find my way through the spreadsheet documentation to
make my invoices.

While it is simple to calculate the sum or the product of two cells if
you know that they are A[2] and B[2] I can't find the solution to access
cell A and B *on the same row*. 

Amount | Single | Sum
2  | 5  | 10 <-- A[currentrow] * B[currentrow] does not work
3  | 4  | 12

Sum   22

The rows come from a script and there might be several items.

Any hints?
 
juh

-- 
Autoren-Homepage: . http://literatur.hasecke.com
Satiren & Essays: . http://www.sudelbuch.de
Privater Blog:  http://www.hasecke.eu
Netzliteratur-Projekt:  http://www.generationenprojekt.de




signature.asc
Description: PGP signature
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Clickable url problem with \useurl and \url

2021-10-12 Thread Rik Kabel via ntg-context


On 10/12/2021 03:44, Taco Hoekwater wrote:

Hi,


On 12 Oct 2021, at 04:30, Rik Kabel via ntg-context  wrote:

Hello List,

I notice an inconsistency in the clickable area when using \useurl. With the 
following example, both the \from and the \url are clickable in some lines (as 
noted iin the value of \from) but in others, the \from is clickable but not the 
\url.

It does seem sensitive to the urlL, but I cannot see a pattern.

It is the pdf viewer program that automatically interprets the \url-produced 
text and 'invents' a link, it is not
ConTeXt itself. The exact rules may therefore vary depending on the pdf viewer 
you use.

In Apple's Preview, all items are in fact clickable. But only \from produces 
actual pdf hyperlink annotations.


Should I use something other than \url[earlXX] here to get the clickable 
literal url from useurl?

This, maybe

\goto{\url[earlLH]}[url(earlLH)]

(perhaps wrapped in a short macro)

Best wishes,
Taco

—
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)

Indeed, that is the issue. I use Sumatra by default, but I see different 
results with other viewers. I will follow up, if needed, elsewhere.


And yes, for consistency I will look at something based on \goto to make 
explicit what should and should not be clickable.


Thank you for the explanation and suggestion.

--
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] Clickable url problem with \useurl and \url

2021-10-12 Thread Taco Hoekwater via ntg-context
Hi,

> On 12 Oct 2021, at 04:30, Rik Kabel via ntg-context  
> wrote:
> 
> Hello List,
> 
> I notice an inconsistency in the clickable area when using \useurl. With the 
> following example, both the \from and the \url are clickable in some lines 
> (as noted iin the value of \from) but in others, the \from is clickable but 
> not the \url.
> 
> It does seem sensitive to the urlL, but I cannot see a pattern.

It is the pdf viewer program that automatically interprets the \url-produced 
text and 'invents' a link, it is not
ConTeXt itself. The exact rules may therefore vary depending on the pdf viewer 
you use. 

In Apple's Preview, all items are in fact clickable. But only \from produces 
actual pdf hyperlink annotations.

> Should I use something other than \url[earlXX] here to get the clickable 
> literal url from useurl?

This, maybe

\goto{\url[earlLH]}[url(earlLH)]

(perhaps wrapped in a short macro)

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Test suite fonts/features-005.tex failing for me

2021-10-08 Thread Hans Hagen via ntg-context

On 10/3/2021 1:41 AM, Bruce Horrocks via ntg-context wrote:

In the test suite, the file fonts/features-005.tex is failing for me on latest 
lmtx. All three items appear the same each time i.e. no small caps and no 
old-style digits on the second and third.

<http://www.pragma-ade.com/context/latest/cont-tst.zip>

Can anyone else reproduce this, please?

shoul dbe:

What \recursedepth\recurselevel\space
\feature[+]{smallcaps}
What \recursedepth\recurselevel\space
\feature[+]{oldstyle}
What \recursedepth\recurselevel\space



-
  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] Test suite fonts/features-005.tex failing for me

2021-10-02 Thread Bruce Horrocks via ntg-context
In the test suite, the file fonts/features-005.tex is failing for me on latest 
lmtx. All three items appear the same each time i.e. no small caps and no 
old-style digits on the second and third.

<http://www.pragma-ade.com/context/latest/cont-tst.zip>

Can anyone else reproduce this, please?
—
Bruce Horrocks
Hampshire, UK

___
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] itemize problems

2021-09-07 Thread Sylvain Hubert via ntg-context
This works, thanks!

On 07/09/2021, fv leung via ntg-context  wrote:
> Use
>
>  \startitemize[A,text][lefttext=,righttext=,stopper=]
>
> then.
>
> Maybe that's the new way.
>
> Sylvain Hubert via ntg-context  於 2021年9月7日 週二
> 下午4:32寫道:
>
>> Thanks, but this doesn't seem to work on my laptop:
>>
>> \starttext
>> \startitemize[A,text][left=,right=,stopper=]
>> \item 1
>> \item 2
>> \stopitemize
>> \stoptext
>>
>> %output: (A) 1 (B) 2
>>
>> On 07/09/2021, fv leung via ntg-context  wrote:
>> > I add
>> >
>> > left=,right=,
>> >
>> > in the second option group.
>> >
>> > 在 2021年9月7日週二 07:02,Sylvain Hubert via ntg-context 
>> 寫道:
>> >
>> >> A few more information:
>> >>
>> >> For the 1st problem:
>> >>
>> >> It seems that \setupitemize accepts two option groups, to which
>> >> n,packed and margin belong accordingly. However,
>> >> \setupitemize[n][margin=2em] does not seem to work.
>> >>
>> >> For the 2nd problem:
>> >>
>> >> \setupitemize[columns,one], although doing nothing in theory, seems to
>> >> fix the problem.
>> >>
>> >> For the 4th problem:
>> >>
>> >> I've found that we can do \setupitemize[A,text] which makes it like
>> >>
>> >> (A.) 0 (B.) 1 (C.) 2 (D.) 3
>> >>
>> >> The problem now is, how can we remove the parentheses around the item
>> >> labels?
>> >>
>> >> On 07/09/2021, Sylvain Hubert  wrote:
>> >> > Dear List,
>> >> >
>> >> > Here's a collection of four problems about item groups that I've
>> >> > just
>> >> > encountered.
>> >> >
>> >> > 1. 'n' and 'packed' not playing well with other options.
>> >> >
>> >> > This works:
>> >> >
>> >> > \defineitemgroup[myitems][itemize][margin=2em,before=before]
>> >> > \setupmyitems[n,packed]
>> >> >
>> >> > \starttext
>> >> > text
>> >> > \startmyitems
>> >> > \item 1
>> >> > \item 2
>> >> > \stopmyitems
>> >> > \stoptext
>> >> >
>> >> > This does not:
>> >> >
>> >> >
>> >> > \defineitemgroup[myitems][itemize][margin=2em,before=before,n,packed]
>> >> >
>> >> > This does not either:
>> >> >
>> >> > \defineitemgroup[myitems][itemize]
>> >> > \setupmyitems[n,packed,margin=2em,before=before]
>> >> >
>> >> > Is there a rule for this glitch which makes it worth memorizing, or
>> >> > is
>> >> > this just a bug?
>> >> >
>> >> > 2. 'before' not working in nested item groups.
>> >> >
>> >> > \starttext
>> >> > \startitemize[before=before1]
>> >> > \item 1
>> >> > \startitemize[before=before2]
>> >> > \item 2
>> >> > \stopitemize
>> >> > \stopitemize
>> >> > \stoptext
>> >> >
>> >> > Both before1 and before2 should appear, but only before1 is shown.
>> >> >
>> >> > 3. How to wrap the line under the bulletin or number?
>> >> >
>> >> > To be more precise, the current wrapping behavior of, say, "\item 0
>> >> > 1
>> >> > 2 3 4 5 6 7 8 9" is:
>> >> >
>> >> > * 0 1 2 3 4 5 6 7
>> >> >   8 9
>> >> >
>> >> > How can we remove the indentation of the second line and make it
>> >> > like
>> >> >
>> >> > * 0 1 2 3 4 5 6 7
>> >> > 8 9
>> >> >
>> >> > 4. How to put the items on the same line?
>> >> >
>> >> > That is, for "\item 0 \item 1 \item 2", I would like it to be like
>> >> >
>> >> > * 0   * 1   * 2
>> >> >
>> >> > instead of
>> >> >
>> >> > * 0
>> >> > * 1
>> >> > * 2
>> >> >
>> >> > 

Re: [NTG-context] itemize problems

2021-09-07 Thread fv leung via ntg-context
Use

 \startitemize[A,text][lefttext=,righttext=,stopper=]

then.

Maybe that's the new way.

Sylvain Hubert via ntg-context  於 2021年9月7日 週二 下午4:32寫道:

> Thanks, but this doesn't seem to work on my laptop:
>
> \starttext
> \startitemize[A,text][left=,right=,stopper=]
> \item 1
> \item 2
> \stopitemize
> \stoptext
>
> %output: (A) 1 (B) 2
>
> On 07/09/2021, fv leung via ntg-context  wrote:
> > I add
> >
> > left=,right=,
> >
> > in the second option group.
> >
> > 在 2021年9月7日週二 07:02,Sylvain Hubert via ntg-context 
> 寫道:
> >
> >> A few more information:
> >>
> >> For the 1st problem:
> >>
> >> It seems that \setupitemize accepts two option groups, to which
> >> n,packed and margin belong accordingly. However,
> >> \setupitemize[n][margin=2em] does not seem to work.
> >>
> >> For the 2nd problem:
> >>
> >> \setupitemize[columns,one], although doing nothing in theory, seems to
> >> fix the problem.
> >>
> >> For the 4th problem:
> >>
> >> I've found that we can do \setupitemize[A,text] which makes it like
> >>
> >> (A.) 0 (B.) 1 (C.) 2 (D.) 3
> >>
> >> The problem now is, how can we remove the parentheses around the item
> >> labels?
> >>
> >> On 07/09/2021, Sylvain Hubert  wrote:
> >> > Dear List,
> >> >
> >> > Here's a collection of four problems about item groups that I've just
> >> > encountered.
> >> >
> >> > 1. 'n' and 'packed' not playing well with other options.
> >> >
> >> > This works:
> >> >
> >> > \defineitemgroup[myitems][itemize][margin=2em,before=before]
> >> > \setupmyitems[n,packed]
> >> >
> >> > \starttext
> >> > text
> >> > \startmyitems
> >> > \item 1
> >> > \item 2
> >> > \stopmyitems
> >> > \stoptext
> >> >
> >> > This does not:
> >> >
> >> >
> >> > \defineitemgroup[myitems][itemize][margin=2em,before=before,n,packed]
> >> >
> >> > This does not either:
> >> >
> >> > \defineitemgroup[myitems][itemize]
> >> > \setupmyitems[n,packed,margin=2em,before=before]
> >> >
> >> > Is there a rule for this glitch which makes it worth memorizing, or is
> >> > this just a bug?
> >> >
> >> > 2. 'before' not working in nested item groups.
> >> >
> >> > \starttext
> >> > \startitemize[before=before1]
> >> > \item 1
> >> > \startitemize[before=before2]
> >> > \item 2
> >> > \stopitemize
> >> > \stopitemize
> >> > \stoptext
> >> >
> >> > Both before1 and before2 should appear, but only before1 is shown.
> >> >
> >> > 3. How to wrap the line under the bulletin or number?
> >> >
> >> > To be more precise, the current wrapping behavior of, say, "\item 0 1
> >> > 2 3 4 5 6 7 8 9" is:
> >> >
> >> > * 0 1 2 3 4 5 6 7
> >> >   8 9
> >> >
> >> > How can we remove the indentation of the second line and make it like
> >> >
> >> > * 0 1 2 3 4 5 6 7
> >> > 8 9
> >> >
> >> > 4. How to put the items on the same line?
> >> >
> >> > That is, for "\item 0 \item 1 \item 2", I would like it to be like
> >> >
> >> > * 0   * 1   * 2
> >> >
> >> > instead of
> >> >
> >> > * 0
> >> > * 1
> >> > * 2
> >> >
> >> > My context version: 2021.03.05 19:11, texlive.
> >> >
> >> > Any help with any of the problems above would be greatly appreciated.
> >> >
> >> > Best,
> >> > Sylvain
> >> >
> >>
> >>
> ___
> >> 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
>
> ___
>
___
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] itemize problems

2021-09-07 Thread Sylvain Hubert via ntg-context
Thanks, but this doesn't seem to work on my laptop:

\starttext
\startitemize[A,text][left=,right=,stopper=]
\item 1
\item 2
\stopitemize
\stoptext

%output: (A) 1 (B) 2

On 07/09/2021, fv leung via ntg-context  wrote:
> I add
>
> left=,right=,
>
> in the second option group.
>
> 在 2021年9月7日週二 07:02,Sylvain Hubert via ntg-context  寫道:
>
>> A few more information:
>>
>> For the 1st problem:
>>
>> It seems that \setupitemize accepts two option groups, to which
>> n,packed and margin belong accordingly. However,
>> \setupitemize[n][margin=2em] does not seem to work.
>>
>> For the 2nd problem:
>>
>> \setupitemize[columns,one], although doing nothing in theory, seems to
>> fix the problem.
>>
>> For the 4th problem:
>>
>> I've found that we can do \setupitemize[A,text] which makes it like
>>
>> (A.) 0 (B.) 1 (C.) 2 (D.) 3
>>
>> The problem now is, how can we remove the parentheses around the item
>> labels?
>>
>> On 07/09/2021, Sylvain Hubert  wrote:
>> > Dear List,
>> >
>> > Here's a collection of four problems about item groups that I've just
>> > encountered.
>> >
>> > 1. 'n' and 'packed' not playing well with other options.
>> >
>> > This works:
>> >
>> > \defineitemgroup[myitems][itemize][margin=2em,before=before]
>> > \setupmyitems[n,packed]
>> >
>> > \starttext
>> > text
>> > \startmyitems
>> > \item 1
>> > \item 2
>> > \stopmyitems
>> > \stoptext
>> >
>> > This does not:
>> >
>> >
>> > \defineitemgroup[myitems][itemize][margin=2em,before=before,n,packed]
>> >
>> > This does not either:
>> >
>> > \defineitemgroup[myitems][itemize]
>> > \setupmyitems[n,packed,margin=2em,before=before]
>> >
>> > Is there a rule for this glitch which makes it worth memorizing, or is
>> > this just a bug?
>> >
>> > 2. 'before' not working in nested item groups.
>> >
>> > \starttext
>> > \startitemize[before=before1]
>> > \item 1
>> > \startitemize[before=before2]
>> > \item 2
>> > \stopitemize
>> > \stopitemize
>> > \stoptext
>> >
>> > Both before1 and before2 should appear, but only before1 is shown.
>> >
>> > 3. How to wrap the line under the bulletin or number?
>> >
>> > To be more precise, the current wrapping behavior of, say, "\item 0 1
>> > 2 3 4 5 6 7 8 9" is:
>> >
>> > * 0 1 2 3 4 5 6 7
>> >   8 9
>> >
>> > How can we remove the indentation of the second line and make it like
>> >
>> > * 0 1 2 3 4 5 6 7
>> > 8 9
>> >
>> > 4. How to put the items on the same line?
>> >
>> > That is, for "\item 0 \item 1 \item 2", I would like it to be like
>> >
>> > * 0   * 1   * 2
>> >
>> > instead of
>> >
>> > * 0
>> > * 1
>> > * 2
>> >
>> > My context version: 2021.03.05 19:11, texlive.
>> >
>> > Any help with any of the problems above would be greatly appreciated.
>> >
>> > Best,
>> > Sylvain
>> >
>>
>> ___
>> 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] itemize problems

2021-09-06 Thread fv leung via ntg-context
I add

left=,right=,

in the second option group.

在 2021年9月7日週二 07:02,Sylvain Hubert via ntg-context  寫道:

> A few more information:
>
> For the 1st problem:
>
> It seems that \setupitemize accepts two option groups, to which
> n,packed and margin belong accordingly. However,
> \setupitemize[n][margin=2em] does not seem to work.
>
> For the 2nd problem:
>
> \setupitemize[columns,one], although doing nothing in theory, seems to
> fix the problem.
>
> For the 4th problem:
>
> I've found that we can do \setupitemize[A,text] which makes it like
>
> (A.) 0 (B.) 1 (C.) 2 (D.) 3
>
> The problem now is, how can we remove the parentheses around the item
> labels?
>
> On 07/09/2021, Sylvain Hubert  wrote:
> > Dear List,
> >
> > Here's a collection of four problems about item groups that I've just
> > encountered.
> >
> > 1. 'n' and 'packed' not playing well with other options.
> >
> > This works:
> >
> > \defineitemgroup[myitems][itemize][margin=2em,before=before]
> > \setupmyitems[n,packed]
> >
> > \starttext
> > text
> > \startmyitems
> > \item 1
> > \item 2
> > \stopmyitems
> > \stoptext
> >
> > This does not:
> >
> > \defineitemgroup[myitems][itemize][margin=2em,before=before,n,packed]
> >
> > This does not either:
> >
> > \defineitemgroup[myitems][itemize]
> > \setupmyitems[n,packed,margin=2em,before=before]
> >
> > Is there a rule for this glitch which makes it worth memorizing, or is
> > this just a bug?
> >
> > 2. 'before' not working in nested item groups.
> >
> > \starttext
> > \startitemize[before=before1]
> > \item 1
> > \startitemize[before=before2]
> > \item 2
> > \stopitemize
> > \stopitemize
> > \stoptext
> >
> > Both before1 and before2 should appear, but only before1 is shown.
> >
> > 3. How to wrap the line under the bulletin or number?
> >
> > To be more precise, the current wrapping behavior of, say, "\item 0 1
> > 2 3 4 5 6 7 8 9" is:
> >
> > * 0 1 2 3 4 5 6 7
> >   8 9
> >
> > How can we remove the indentation of the second line and make it like
> >
> > * 0 1 2 3 4 5 6 7
> > 8 9
> >
> > 4. How to put the items on the same line?
> >
> > That is, for "\item 0 \item 1 \item 2", I would like it to be like
> >
> > * 0   * 1   * 2
> >
> > instead of
> >
> > * 0
> > * 1
> > * 2
> >
> > My context version: 2021.03.05 19:11, texlive.
> >
> > Any help with any of the problems above would be greatly appreciated.
> >
> > Best,
> > Sylvain
> >
>
> ___
> 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] itemize problems

2021-09-06 Thread Sylvain Hubert via ntg-context
A few more information:

For the 1st problem:

It seems that \setupitemize accepts two option groups, to which
n,packed and margin belong accordingly. However,
\setupitemize[n][margin=2em] does not seem to work.

For the 2nd problem:

\setupitemize[columns,one], although doing nothing in theory, seems to
fix the problem.

For the 4th problem:

I've found that we can do \setupitemize[A,text] which makes it like

(A.) 0 (B.) 1 (C.) 2 (D.) 3

The problem now is, how can we remove the parentheses around the item labels?

On 07/09/2021, Sylvain Hubert  wrote:
> Dear List,
>
> Here's a collection of four problems about item groups that I've just
> encountered.
>
> 1. 'n' and 'packed' not playing well with other options.
>
> This works:
>
> \defineitemgroup[myitems][itemize][margin=2em,before=before]
> \setupmyitems[n,packed]
>
> \starttext
> text
> \startmyitems
> \item 1
> \item 2
> \stopmyitems
> \stoptext
>
> This does not:
>
> \defineitemgroup[myitems][itemize][margin=2em,before=before,n,packed]
>
> This does not either:
>
> \defineitemgroup[myitems][itemize]
> \setupmyitems[n,packed,margin=2em,before=before]
>
> Is there a rule for this glitch which makes it worth memorizing, or is
> this just a bug?
>
> 2. 'before' not working in nested item groups.
>
> \starttext
> \startitemize[before=before1]
> \item 1
> \startitemize[before=before2]
> \item 2
> \stopitemize
> \stopitemize
> \stoptext
>
> Both before1 and before2 should appear, but only before1 is shown.
>
> 3. How to wrap the line under the bulletin or number?
>
> To be more precise, the current wrapping behavior of, say, "\item 0 1
> 2 3 4 5 6 7 8 9" is:
>
> * 0 1 2 3 4 5 6 7
>   8 9
>
> How can we remove the indentation of the second line and make it like
>
> * 0 1 2 3 4 5 6 7
> 8 9
>
> 4. How to put the items on the same line?
>
> That is, for "\item 0 \item 1 \item 2", I would like it to be like
>
> * 0   * 1   * 2
>
> instead of
>
> * 0
> * 1
> * 2
>
> My context version: 2021.03.05 19:11, texlive.
>
> Any help with any of the problems above would be greatly appreciated.
>
> Best,
> Sylvain
>
___
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] itemize problems

2021-09-06 Thread Sylvain Hubert via ntg-context
Dear List,

Here's a collection of four problems about item groups that I've just
encountered.

1. 'n' and 'packed' not playing well with other options.

This works:

\defineitemgroup[myitems][itemize][margin=2em,before=before]
\setupmyitems[n,packed]

\starttext
text
\startmyitems
\item 1
\item 2
\stopmyitems
\stoptext

This does not:

\defineitemgroup[myitems][itemize][margin=2em,before=before,n,packed]

This does not either:

\defineitemgroup[myitems][itemize]
\setupmyitems[n,packed,margin=2em,before=before]

Is there a rule for this glitch which makes it worth memorizing, or is
this just a bug?

2. 'before' not working in nested item groups.

\starttext
\startitemize[before=before1]
\item 1
\startitemize[before=before2]
\item 2
\stopitemize
\stopitemize
\stoptext

Both before1 and before2 should appear, but only before1 is shown.

3. How to wrap the line under the bulletin or number?

To be more precise, the current wrapping behavior of, say, "\item 0 1
2 3 4 5 6 7 8 9" is:

* 0 1 2 3 4 5 6 7
  8 9

How can we remove the indentation of the second line and make it like

* 0 1 2 3 4 5 6 7
8 9

4. How to put the items on the same line?

That is, for "\item 0 \item 1 \item 2", I would like it to be like

* 0   * 1   * 2

instead of

* 0
* 1
* 2

My context version: 2021.03.05 19:11, texlive.

Any help with any of the problems above would be greatly appreciated.

Best,
Sylvain
___
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] A not so short introduction to ConTeXt - French version - progress report.

2021-07-14 Thread Joaquín Ataz López
I think it's a fantastic reorganization of the material. And I am proud 
to have been, in a way, its promoter. But I understand that the fairest 
thing to do is to remove my name from the authorship of the text, to put 
the name of the real author, and, if anything, in the credits and 
copyright page, to indicate that it is inspired by a text written by me.


I am not saying this because I don't like the text, on the contrary. I 
say it because I don't deserve to be attributed the authorship of 
something that someone else has written and that implies more knowledge 
about ConTeXt than I have.


In fact I am going to study it carefully.

Thank you very much, Garulfo. It would be desirable that through 
initiatives of this type we manage to generate a good introductory 
literature to this fantastic text composition system that is ConTeXt.




El 14/7/21 a las 23:51, Garulfo escribió:

Hi all,

concerning the fr version of "not so short introduction to ConTeXt"

I have just finished an attempt to reorganise the content.
It is in "fr2" directory in the Github repository
https://github.com/contextgarden/not-so-short-introduction-to-context

It results from many many "copy/paste". I still have to review all the 
pages and flow between each section … (and  after to switch to the 
french interface of ConTeXt commands …).



New Table of Content


Part 1 - source code basics ---

   - source file
   - syntax
   - file organization

Part 2 - Markup ---

   - Chapter 2.1 - Main information flow
   Mostly linear flow
   From micro to more "structured + macro" items

  - Paragraphes
  - Emphase de mots
  - Emphase de paragraphes
  - Encadrement
  - Lignes et traits
  - Citations
  - Listes structurées
  - Description et énumération
  - Textes tabulés
  - Tableaux
  - Images et Combinaisons
  - Objets flottants
  - Sections
  - Macro-structure
  - Page de couverture et de titre
  - Mathématiques
  - Colonnes
  - Autres éléments spécialisés


   - Chapter 2.2 - Complements to the main information flow
   Much less linear, it brings links, connexions

  - Table des matières
  - Abréviations et glossaire
  - Notes de bas de page
  - Notes marginales
  - Pièces jointes
  - Références internes
  - Références externes
  - Références bibliographiques
  - Listes des images, tableaux...
  - Index

Part 3 - Typesetting "overall" -

   - Page layout
   - En-tête et pied de page
   - Polices
   - Couleurs
   - Langue
   - Interactivité

Part 4 - Typesetting "specific" -

   - mirror of Part 2



3 principles for this new organization :

1/ clearly split "markup" and "typesetting/formatting"
   in order to
   - help the reader to tidy up concepts / ideas
   - deal with the markup (part 2) in as few as possible pages
  - <60 pages
  - one topic = 1 or 2 pages
  - no
   - prepare user to use env files
   - limit digression as much as possible

2/ clearly split "main flow" and "complements to main flow"
   in order to
   - again help the reader to tidy up concepts / ideas
   - highlight the fact that complements are usually used to enrich
 the main flow with "non-linearity"

3/ clearly split "general/global" and "specific/local" typesettings
   in order to
   - again help the reader to tidy up concepts / ideas
   - prepare user to organise his env files



You can find a one page summary here :

https://raw.githubusercontent.com/contextgarden/not-so-short-introduction-to-context/main/fr2/introCTX_fra.pdf#page=11 



The 8 following pages provide a quick visual overview of the 28 topics 
that will be detailed in "part 2" and "part 4".


Links help the reader to go on the associated pages (markup or 
typesetting)


Any comment or idea is welcome.







___ 

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
___ 



--
Joaquín Ataz Lóp

[NTG-context] A not so short introduction to ConTeXt - French version - progress report.

2021-07-14 Thread Garulfo

Hi all,

concerning the fr version of "not so short introduction to ConTeXt"

I have just finished an attempt to reorganise the content.
It is in "fr2" directory in the Github repository
https://github.com/contextgarden/not-so-short-introduction-to-context

It results from many many "copy/paste". I still have to review all the 
pages and flow between each section … (and  after to switch to the 
french interface of ConTeXt commands …).



New Table of Content


Part 1 - source code basics ---

   - source file
   - syntax
   - file organization

Part 2 - Markup ---

   - Chapter 2.1 - Main information flow
   Mostly linear flow
   From micro to more "structured + macro" items

  - Paragraphes
  - Emphase de mots
  - Emphase de paragraphes
  - Encadrement
  - Lignes et traits
  - Citations
  - Listes structurées
  - Description et énumération
  - Textes tabulés
  - Tableaux
  - Images et Combinaisons
  - Objets flottants
  - Sections
  - Macro-structure
  - Page de couverture et de titre
  - Mathématiques
  - Colonnes
  - Autres éléments spécialisés


   - Chapter 2.2 - Complements to the main information flow
   Much less linear, it brings links, connexions

  - Table des matières
  - Abréviations et glossaire
  - Notes de bas de page
  - Notes marginales
  - Pièces jointes
  - Références internes
  - Références externes
  - Références bibliographiques
  - Listes des images, tableaux...
  - Index

Part 3 - Typesetting "overall" -

   - Page layout
   - En-tête et pied de page
   - Polices
   - Couleurs
   - Langue
   - Interactivité

Part 4 - Typesetting "specific" -

   - mirror of Part 2



3 principles for this new organization :

1/ clearly split "markup" and "typesetting/formatting"
   in order to
   - help the reader to tidy up concepts / ideas
   - deal with the markup (part 2) in as few as possible pages
  - <60 pages
  - one topic = 1 or 2 pages
  - no
   - prepare user to use env files
   - limit digression as much as possible

2/ clearly split "main flow" and "complements to main flow"
   in order to
   - again help the reader to tidy up concepts / ideas
   - highlight the fact that complements are usually used to enrich
 the main flow with "non-linearity"

3/ clearly split "general/global" and "specific/local" typesettings
   in order to
   - again help the reader to tidy up concepts / ideas
   - prepare user to organise his env files



You can find a one page summary here :

https://raw.githubusercontent.com/contextgarden/not-so-short-introduction-to-context/main/fr2/introCTX_fra.pdf#page=11

The 8 following pages provide a quick visual overview of the 28 topics 
that will be detailed in "part 2" and "part 4".


Links help the reader to go on the associated pages (markup or typesetting)

Any comment or idea is welcome.







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

2021-05-26 Thread Hans Hagen

On 5/26/2021 7:17 PM, Pablo Rodriguez wrote:

On 5/25/21 6:20 PM, Hans Hagen wrote:

[...] but for those willing to check the alternative, in
page-ins.mkxl one can uncomment

 % \insertmode\plustwo


Many thanks for the new upload, Hans.

I’m extremely interested in testing this.

How can we enable this feature in a permanent way?

I mean, how can we avoid that an update disables it?
Not ... because we define some inserts (e.g for footnotes) we need to 
decide what storage model to choose ... technically we can use the 
runtime 'experiment' feature but i expect to switch rather soon anyway.


When users who test it encounter no problems it's okay because the core 
mechanisms are the same ... read: we still have inserts as usual but a 
variant engine-metadata storage model permits future - more robust and 
predictable - extensions; it was one of the more long term pending 
things to do which i decided to do now.


fyi: As we transition to frozen mkiv i'm also removing some hybrid 
left-overs in lmtx (for instance, years ago the lmtx backend actually 
started out as an option in mkiv so that i could test the idea, so that 
resulted in some nasty code in order to deal with both cases ... but at 
some point I decided that mkiv should not go that dual route.


So, every time when I run into some "it's time to move on and clean this 
up" moment I also check my long term agenda and this insert stuff was 
one of those items: it permits me to remove some old obsolete code still 
present in lmtx (that I admit I often already forgot about).


Hans

-
  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] Sorting items in Lua

2021-04-18 Thread Jairo A. del Rio
Oh, yes, I've just found it. Thanks!

Jairo

El dom, 18 de abr. de 2021 a la(s) 10:52, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 4/18/2021 4:21 PM, Jairo A. del Rio wrote:
>
> > Also, as registers allow to set a language for sorting, I want to know
> > how to do the same through Lua, e.g., sorting the same list according to
> > English and then Spanish rules. I've searched for examples in the
> > archive, but I've only found cases working on the TeX side. Thank you in
> > advance.
>
> hint: the test suite
>   Hans
>
> -
>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] Sorting items in Lua

2021-04-18 Thread Hans Hagen

On 4/18/2021 4:21 PM, Jairo A. del Rio wrote:

Also, as registers allow to set a language for sorting, I want to know 
how to do the same through Lua, e.g., sorting the same list according to 
English and then Spanish rules. I've searched for examples in the 
archive, but I've only found cases working on the TeX side. Thank you in 
advance.


hint: the test suite
 Hans

-
  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] Sorting items in Lua

2021-04-18 Thread Jairo A. del Rio
Hi, list. I want to know how to use ConTeXt sorters, as those used in
registers, in Lua. Like this:

\starttext

\startluacode

--Spanish

local list = {"ñandú", "perrera", "zócalo", "árnica"}

--What's "sortingfunction"?

context(table.concat(sortingfunction(list)," "))

\stopluacode

\stoptext

Also, as registers allow to set a language for sorting, I want to know how
to do the same through Lua, e.g., sorting the same list according to
English and then Spanish rules. I've searched for examples in the archive,
but I've only found cases working on the TeX side. Thank you in advance.

Jairo
___
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] register for biblical citations

2021-04-16 Thread jbf
You are correct on both counts; it is not quite random (just not what I 
was looking for😁 ) and yes, the abbreviated book title needs to be in 
the mix as well, just in case it also ends up throwing things out. But, 
as you can see subsequently, each contribution is making things clearer 
(for me, not so accustomed to working with Lua code) and I have every 
confidence we will work this one out. For almost anyone using ConTeXt 
for preparing a book that includes such an index, and I believe it is 
normal for biblical citations to be listed according to biblical book 
order, at least, this is the author's request in my case, the ultimate 
solution will benefit such people in the future.


Julian

On 16/4/21 8:57 pm, r.erm...@hccnet.nl wrote:

It seems that the items are actually not randomly listed.

It appears to me that the list is sorted on the chapter number, and then the 
verse number. The abbreviated book title is not involved in this sorting order, 
which it should be.

Robert



Op 16 apr. 2021, om 12:22 heeft jbf  het volgende 
geschreven:

There was no mention of the indicator anywhere in what I copied from your 
example. I did try indicator=no just now in case it should be made explicit:

(\setupregister[bibcit][language=biblical,before=,indicator=no]

but that makes no difference either. Same result. Seemingly random index.

Julian

On 16/4/21 8:06 pm, Hans Hagen wrote:

On 4/16/2021 11:47 AM, jbf wrote:

Hans, thanks for your ingenious solution but there is still a way to go I 
suspect!

I implemented (copy-paste) precisely the solution offered and I get an index 
but with some strange results ! Notice that in my previous own solution (but 
only as far as 26 books!) I at least got an index in the order of the biblical 
books, but using the luacode you offered, I get a seemingly random result (see 
below).

I extended your example by a few books. so:

\startluacode
sorters.definitions["biblical"] = {
  method  = interfaces.variables.before,
  replacements = {
  { "Gen",  string.char(1) },
  { "Ex",   string.char(2) },
  { "Lev",  string.char(3) },
  { "Deut", string.char(4) },
  { "Lam",  string.char(5) },
  { "Dan",  string.char(6) },
  { "Joel",  string.char(7) },
  { "Ps",  string.char(8) },
  { "Prov",  string.char(9) },
  { "Sir",  string.char(10) },
  { "Mt",  string.char(11) },
  { "Mk",  string.char(12) },

  },
}
\stopluacode

But the result I get (just showing you a dozen or so, and you will see that Gen 
doesn't even turn up in this list ... it does, but much later!):

Mk 2:19-20 with parallels (PES) 146
Mt 3:8-10 (PES) 135
Prov 3:11-12 (PES) 139, 172
Sir 4:17-18 (PES) 139
Mt 5:5 (PES) 146
Mt 5:6 (MAC) 123
Mt 5:16 (MAC) 121
Mt 6:1-6, 16-18 (MAC) 121
Mt 6:1-6, 16-18 (PES) 145
Mt 7:13-14 (PES) 146
Sir 10:9 (PES) 142
Mt 11:12 (PRO) 160
Mt 12:34 (MAC) 124, 137
Mt 12:36 (PES) 134
Mk 12:41-44 (MAC) 122
Sir 17:27 (PES) 142

I have no idea why this is happening. I changed nothing of what you gave me and 
removed anything I had previously. If you need an example of how \bibcit is 
being used in the text, just in case it helps (but I doubt it), here is one:

The widow’s mite pleased God because of her good intention, rather than the 
heap of money that the pharisees, urged on by self-love, threw into the 
treasury box (cf.  \bibcit{Mk 12:41-44 (MAC)}Mk 12:41-44).

So, not sure where to go from here. Could I perhaps return to my earlier 
question, which indicated that by using the keyword approach [a] [b] and so on, 
as far as [z] I was at least getting a passable result, but how could I 
continue past [z]? Could I have used [1], [2] etc which would allows me to get 
as far as 66 (if I were to need every biblical book)?

don't set the indicator


-
   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

Re: [NTG-context] register for biblical citations

2021-04-16 Thread r . ermers
It seems that the items are actually not randomly listed. 

It appears to me that the list is sorted on the chapter number, and then the 
verse number. The abbreviated book title is not involved in this sorting order, 
which it should be.

Robert


> Op 16 apr. 2021, om 12:22 heeft jbf  het volgende 
> geschreven:
> 
> There was no mention of the indicator anywhere in what I copied from your 
> example. I did try indicator=no just now in case it should be made explicit:
> 
> (\setupregister[bibcit][language=biblical,before=,indicator=no]
> 
> but that makes no difference either. Same result. Seemingly random index.
> 
> Julian
> 
> On 16/4/21 8:06 pm, Hans Hagen wrote:
>> On 4/16/2021 11:47 AM, jbf wrote:
>>> Hans, thanks for your ingenious solution but there is still a way to go I 
>>> suspect!
>>> 
>>> I implemented (copy-paste) precisely the solution offered and I get an 
>>> index but with some strange results ! Notice that in my previous own 
>>> solution (but only as far as 26 books!) I at least got an index in the 
>>> order of the biblical books, but using the luacode you offered, I get a 
>>> seemingly random result (see below).
>>> 
>>> I extended your example by a few books. so:
>>> 
>>> \startluacode
>>> sorters.definitions["biblical"] = {
>>>  method  = interfaces.variables.before,
>>>  replacements = {
>>>  { "Gen",  string.char(1) },
>>>  { "Ex",   string.char(2) },
>>>  { "Lev",  string.char(3) },
>>>  { "Deut", string.char(4) },
>>>  { "Lam",  string.char(5) },
>>>  { "Dan",  string.char(6) },
>>>  { "Joel",  string.char(7) },
>>>  { "Ps",  string.char(8) },
>>>  { "Prov",  string.char(9) },
>>>  { "Sir",  string.char(10) },
>>>  { "Mt",  string.char(11) },
>>>  { "Mk",  string.char(12) },
>>> 
>>>  },
>>> }
>>> \stopluacode
>>> 
>>> But the result I get (just showing you a dozen or so, and you will see that 
>>> Gen doesn't even turn up in this list ... it does, but much later!):
>>> 
>>> Mk 2:19-20 with parallels (PES) 146
>>> Mt 3:8-10 (PES) 135
>>> Prov 3:11-12 (PES) 139, 172
>>> Sir 4:17-18 (PES) 139
>>> Mt 5:5 (PES) 146
>>> Mt 5:6 (MAC) 123
>>> Mt 5:16 (MAC) 121
>>> Mt 6:1-6, 16-18 (MAC) 121
>>> Mt 6:1-6, 16-18 (PES) 145
>>> Mt 7:13-14 (PES) 146
>>> Sir 10:9 (PES) 142
>>> Mt 11:12 (PRO) 160
>>> Mt 12:34 (MAC) 124, 137
>>> Mt 12:36 (PES) 134
>>> Mk 12:41-44 (MAC) 122
>>> Sir 17:27 (PES) 142
>>> 
>>> I have no idea why this is happening. I changed nothing of what you gave me 
>>> and removed anything I had previously. If you need an example of how 
>>> \bibcit is being used in the text, just in case it helps (but I doubt it), 
>>> here is one:
>>> 
>>> The widow’s mite pleased God because of her good intention, rather than the 
>>> heap of money that the pharisees, urged on by self-love, threw into the 
>>> treasury box (cf.  \bibcit{Mk 12:41-44 (MAC)}Mk 12:41-44).
>>> 
>>> So, not sure where to go from here. Could I perhaps return to my earlier 
>>> question, which indicated that by using the keyword approach [a] [b] and so 
>>> on, as far as [z] I was at least getting a passable result, but how could I 
>>> continue past [z]? Could I have used [1], [2] etc which would allows me to 
>>> get as far as 66 (if I were to need every biblical book)?
>> don't set the indicator
>> 
>> 
>> -
>>   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] Add items to list with arbitrary page number

2021-03-18 Thread denis.maier
That's neat Hans. Thanks. Especially didn't know about \writedatatolist. 

What I want is basically to manually construct a toc entry, but in compliance 
with the overall styling of the contents list.

So, I was hoping for something like this?

\writetolist[chapter][location=here,pagenumber=4]{5}{It's a test}

Maybe I'm missing an easier way to achieve this?

Denis

P.S.: I don't really understand  what these \installXprocessor commands do. Is 
that documented somewhere?

-Ursprüngliche Nachricht-
Von: Hans Hagen  
Gesendet: Donnerstag, 18. März 2021 00:22
An: mailing list for ConTeXt users ; Maier, Denis Christian 
(UB) 
Betreff: Re: [NTG-context] Add items to list with arbitrary page number

On 3/17/2021 6:19 PM, denis.ma...@ub.unibe.ch wrote:
> Hi,
> 
> I need to add an item to a list with an arbitrary page number. (The 
> reason is that I have a multivolume book, and I want to add 
> information about the other books to the TOC)
> 
> I know about this:
> 
> \writetolist[section]{}{It's a test}
> 
> But how can you add an arbitrary page number ?
It all depends on what you want to do 


\starttext

\installstructurelistprocessor{chapter:userdata}
   {\startlinecorrection[blank]
\hfill \inframed{you really need to look at 
\structurelistuservariable{pagenumber}}%
\stoplinecorrection}

\placelist[chapter]

\chapter{one}

\writebetweenlist[chapter][location=here]{\blank page 4\blank}

\writedatatolist[chapter][location=here][pagenumber=4]

\writetolist[chapter]{}{It's a test}

\chapter{two}

\stoptext

wikifyable

Hans


-
   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] Add items to list with arbitrary page number

2021-03-17 Thread Hans Hagen

On 3/17/2021 6:19 PM, denis.ma...@ub.unibe.ch wrote:

Hi,

I need to add an item to a list with an arbitrary page number. (The 
reason is that I have a multivolume book, and I want to add information 
about the other books to the TOC)


I know about this:

\writetolist[section]{}{It's a test}

But how can you add an arbitrary page number ?

It all depends on what you want to do 


\starttext

\installstructurelistprocessor{chapter:userdata}
  {\startlinecorrection[blank]
   \hfill \inframed{you really need to look at 
\structurelistuservariable{pagenumber}}%

   \stoplinecorrection}

\placelist[chapter]

\chapter{one}

\writebetweenlist[chapter][location=here]{\blank page 4\blank}

\writedatatolist[chapter][location=here][pagenumber=4]

\writetolist[chapter]{}{It's a test}

\chapter{two}

\stoptext

wikifyable

Hans


-
  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] Add items to list with arbitrary page number

2021-03-17 Thread denis.maier
Hi,
I need to add an item to a list with an arbitrary page number. (The reason is 
that I have a multivolume book, and I want to add information about the other 
books to the TOC)

I know about this:
\writetolist[section]{}{It's a test}

But how can you add an arbitrary page number ?

Best,
Denis

___
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] How to reduce the inter-item space

2021-02-26 Thread Alain Delmotte

  
  
Thanks, that answered all my
requirements.
I suppose that the rule "not mixing
keywords and assignment in the same argument" is valid for all
setups having multiples commands.
Thanks,
Alain

Le 25/02/2021 à 23:46, Wolfgang
  Schuster a écrit :

Alain
  Delmotte schrieb am 25.02.2021 um 22:48:
  
  Hi!


I am trying to reduce the space inter two items in a
\start...\stopitemize.


I did setup in the beginning of the file:


\setupitemize[joinedup,packed,leftmargin=2em]



but I find that the inter-item space is too big for what I want
to create.


Is it possible to reduce that space?

  
  
  
  You can't put keywords and assignments in the same argument of a
  setup command, use separate arguments for each of them and it
  works.
  
  
  \setupitemize [each] [joinedup,packed] [leftmargin=2em]
  
  
  Wolfgang
  
___
  
  If your question is of interest to others as well, please add an
  entry to the Wiki!
  
  
  maillist : ntg-context@ntg.nl /
  http://www.ntg.nl/mailman/listinfo/ntg-context
  
  webpage  : http://www.pragma-ade.nl / http://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] How to reduce the inter-item space

2021-02-26 Thread Alain Delmotte

  
  
This is ok.
There is still space before the items'
block. This could be handy.
Thanks,
Alain

Le 25/02/2021 à 23:17, jbf a écrit :


  
  Or maybe 
  
  inbetween={\blank[small]}
  Julian
  
  
  On 26/2/21 8:48 am, Alain Delmotte
wrote:
  
  

Hi!
I am trying to reduce the space
inter two items in a \start...\stopitemize.
I did setup in the beginning of
the file:
\setupitemize[joinedup,packed,leftmargin=2em]

  but I find that the inter-item space is too big for what I
  want to create.
Is it possible to reduce
  that space?


Thanks,


--
Alain




___
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] How to reduce the inter-item space

2021-02-26 Thread Alain Delmotte

  
  
This partly helps, because it suppress
the space before the items (first level) and the lines are at
the margin and there is still space between a first and a second
level itemize.
Thanks,
Alain

Le 25/02/2021 à 23:07, jbf a écrit :


  
  Check https://wiki.contextgarden.net/Enumerations
Would \setupitemize[nowhite] help?
  Julian
  On 26/2/21 8:48 am, Alain Delmotte
wrote:
  
  

Hi!
I am trying to reduce the space
inter two items in a \start...\stopitemize.
I did setup in the beginning of
the file:
\setupitemize[joinedup,packed,leftmargin=2em]

  but I find that the inter-item space is too big for what I
  want to create.
Is it possible to reduce
  that space?


Thanks,


--
Alain




___
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] How to reduce the inter-item space

2021-02-25 Thread Wolfgang Schuster

Alain Delmotte schrieb am 25.02.2021 um 22:48:

Hi!

I am trying to reduce the space inter two items in a \start...\stopitemize.

I did setup in the beginning of the file:

\setupitemize[joinedup,packed,leftmargin=2em]


but I find that the inter-item space is too big for what I want to create.

Is it possible to reduce that space?



You can't put keywords and assignments in the same argument of a setup 
command, use separate arguments for each of them and it works.


\setupitemize [each] [joinedup,packed] [leftmargin=2em]

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

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


Re: [NTG-context] How to reduce the inter-item space

2021-02-25 Thread jbf
Check https://wiki.contextgarden.net/Enumerations 
<https://wiki.contextgarden.net/Enumerations> Would 
\setupitemize[nowhite] help?


|Julian|
On 26/2/21 8:48 am, Alain Delmotte wrote:


Hi!

I am trying to reduce the space inter two items in a 
\start...\stopitemize.


I did setup in the beginning of the file:

\setupitemize[joinedup,packed,leftmargin=2em]


but I find that the inter-item space is too big for what I want to create.

Is it possible to reduce that space?


Thanks,


--

Alain



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


[NTG-context] How to reduce the inter-item space

2021-02-25 Thread Alain Delmotte

  
  
Hi!
I am trying to reduce the space inter
two items in a \start...\stopitemize.
I did setup in the beginning of the
file:
\setupitemize[joinedup,packed,leftmargin=2em]

  but I find that the inter-item space is too big for what I want to
  create.
Is it possible to reduce
  that space?


Thanks,


--
Alain


  

___
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] Centered list of authors in ToC

2021-02-09 Thread jbf
Thanks for the alternative. Also gives me further ideas, especially 
regarding placement of the \startalignment


Julian

On 10/2/21 8:11 am, Hans Hagen wrote:

On 2/9/2021 9:50 PM, jbf wrote:

Resolved!

\define[1]\SectionTocEntry{%
#1\crlf% title
\startalignment[middle]\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}% 


\stopalignment}


You need to move the \startalignment into the test (you don't want en 
empty one


Anyway, here is an alternative:

\startsetups[MySectionTocEntry]
    \doifsomething{\structurelistuservariable{author}} {
    \startalignment[middle]
    \darkblue \tx \structurelistuservariable{author}
    \stopalignment
    }
\stopsetups

\setuplist[chapter][after=\setups{MySectionTocEntry}]




Julian

On 9/2/21 9:02 pm, mf wrote:

Il 09/02/21 10:49, jbf ha scritto:
I wonder if someone can assist me with the final step in a 
complicated Table of Contents where all items in the ToC are 
centred (except page numbers which continue to be on the right).


Beneath each chapter title is a list of authors (Yes, there can be 
up to four authors per chapter!)


I can successfully achieve everything (see MWE below) except for 
getting the list of authors to split and be centred. Because there 
are four of them, I would need to split them so they appear as two 
(centred) with the other two below(also centred).


Here is my MWE for the essential bit (which is then called in as 
textcommand=\SectionTocEntry in \setuplist[chapter], obviously):


\define[1]\SectionTocEntry{%
#1\crlf% title
\midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% 


}


try \startalignment[middle] ... \stopalignment instead of \midaligned



My problem is that at the moment, the four authors appear on a 
single line, so I end up with:


    My chapter title
Mickey Mouse, Donald Duck, Uncle Scrooge, Minnie Mouse  [p. 1, but 
in fact, Minnie Mouse runs across the page number!]


What I want instead is:

   My chapter title
 Mickey Mouse, Donald Duck
    Uncle Scrooge, Minnie Mouse    [p. number]

Back at the chapter level my code reads:

\startchapter[title={Chapter title}][author={Mickey Mouse, Donald 
Duck, Uncle Scrooge, Minnie Mouse}].


\startchapter[title={Chapter title}][author={Mickey Mouse, Donald 
Duck,\crlf Uncle Scrooge, Minnie Mouse}].


Massi
___ 

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
___ 





___
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] Centered list of authors in ToC

2021-02-09 Thread Hans Hagen

On 2/9/2021 9:50 PM, jbf wrote:

Resolved!

\define[1]\SectionTocEntry{%
#1\crlf% title
\startalignment[middle]\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}% 


\stopalignment}


You need to move the \startalignment into the test (you don't want en 
empty one


Anyway, here is an alternative:

\startsetups[MySectionTocEntry]
\doifsomething{\structurelistuservariable{author}} {
\startalignment[middle]
\darkblue \tx \structurelistuservariable{author}
\stopalignment
}
\stopsetups

\setuplist[chapter][after=\setups{MySectionTocEntry}]




Julian

On 9/2/21 9:02 pm, mf wrote:

Il 09/02/21 10:49, jbf ha scritto:
I wonder if someone can assist me with the final step in a 
complicated Table of Contents where all items in the ToC are centred 
(except page numbers which continue to be on the right).


Beneath each chapter title is a list of authors (Yes, there can be up 
to four authors per chapter!)


I can successfully achieve everything (see MWE below) except for 
getting the list of authors to split and be centred. Because there 
are four of them, I would need to split them so they appear as two 
(centred) with the other two below(also centred).


Here is my MWE for the essential bit (which is then called in as 
textcommand=\SectionTocEntry in \setuplist[chapter], obviously):


\define[1]\SectionTocEntry{%
#1\crlf% title
\midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% 


}


try \startalignment[middle] ... \stopalignment instead of \midaligned



My problem is that at the moment, the four authors appear on a single 
line, so I end up with:


    My chapter title
Mickey Mouse, Donald Duck, Uncle Scrooge, Minnie Mouse  [p. 1, but in 
fact, Minnie Mouse runs across the page number!]


What I want instead is:

   My chapter title
 Mickey Mouse, Donald Duck
    Uncle Scrooge, Minnie Mouse    [p. number]

Back at the chapter level my code reads:

\startchapter[title={Chapter title}][author={Mickey Mouse, Donald 
Duck, Uncle Scrooge, Minnie Mouse}].


\startchapter[title={Chapter title}][author={Mickey Mouse, Donald 
Duck,\crlf Uncle Scrooge, Minnie Mouse}].


Massi
___ 

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] Centered list of authors in ToC

2021-02-09 Thread jbf

Resolved!

\define[1]\SectionTocEntry{%
#1\crlf% title
\startalignment[middle]\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}%
\stopalignment}

Julian

On 9/2/21 9:02 pm, mf wrote:

Il 09/02/21 10:49, jbf ha scritto:
I wonder if someone can assist me with the final step in a 
complicated Table of Contents where all items in the ToC are centred 
(except page numbers which continue to be on the right).


Beneath each chapter title is a list of authors (Yes, there can be up 
to four authors per chapter!)


I can successfully achieve everything (see MWE below) except for 
getting the list of authors to split and be centred. Because there 
are four of them, I would need to split them so they appear as two 
(centred) with the other two below(also centred).


Here is my MWE for the essential bit (which is then called in as 
textcommand=\SectionTocEntry in \setuplist[chapter], obviously):


\define[1]\SectionTocEntry{%
#1\crlf% title
\midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% 


}


try \startalignment[middle] ... \stopalignment instead of \midaligned



My problem is that at the moment, the four authors appear on a single 
line, so I end up with:


    My chapter title
Mickey Mouse, Donald Duck, Uncle Scrooge, Minnie Mouse  [p. 1, but in 
fact, Minnie Mouse runs across the page number!]


What I want instead is:

   My chapter title
 Mickey Mouse, Donald Duck
    Uncle Scrooge, Minnie Mouse    [p. number]

Back at the chapter level my code reads:

\startchapter[title={Chapter title}][author={Mickey Mouse, Donald 
Duck, Uncle Scrooge, Minnie Mouse}].


\startchapter[title={Chapter title}][author={Mickey Mouse, Donald 
Duck,\crlf Uncle Scrooge, Minnie Mouse}].


Massi
___ 

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] Centered list of authors in ToC

2021-02-09 Thread jbf

Thank you. Ci siamo quasi, ma non del tutto! Nearly there!

The \midaligned{... } was obviously preventing the \crlf in the 
\startchapter from working. Removing it altogether allowed the split to 
occur but obviously not centred. So i have tried now adding the 
\startalignment[middle] to the definition, but it has no effect if I do 
it as follows:


\define[1]\SectionTocEntry{%
#1\crlf% title
\doifnot{\startalignment[middle]\structurelistuservariable{author}}{}{\structurelistuservariable{author}}%
\stopalignment}

and if I do it as:

\define[1]\SectionTocEntry{%
#1\crlf% title
\startalignment[middle]\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}%
}\stopalignment

compilation fails, and also does so if I enclose everything after 
\startalignment and before \stopalignment in curly brackets. So how 
might I use \startalignment[middle] in the definition?


Julian


On 9/2/21 9:02 pm, mf wrote:

Il 09/02/21 10:49, jbf ha scritto:
I wonder if someone can assist me with the final step in a 
complicated Table of Contents where all items in the ToC are centred 
(except page numbers which continue to be on the right).


Beneath each chapter title is a list of authors (Yes, there can be up 
to four authors per chapter!)


I can successfully achieve everything (see MWE below) except for 
getting the list of authors to split and be centred. Because there 
are four of them, I would need to split them so they appear as two 
(centred) with the other two below(also centred).


Here is my MWE for the essential bit (which is then called in as 
textcommand=\SectionTocEntry in \setuplist[chapter], obviously):


\define[1]\SectionTocEntry{%
#1\crlf% title
\midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% 


}


try \startalignment[middle] ... \stopalignment instead of \midaligned



My problem is that at the moment, the four authors appear on a single 
line, so I end up with:


    My chapter title
Mickey Mouse, Donald Duck, Uncle Scrooge, Minnie Mouse  [p. 1, but in 
fact, Minnie Mouse runs across the page number!]


What I want instead is:

   My chapter title
 Mickey Mouse, Donald Duck
    Uncle Scrooge, Minnie Mouse    [p. number]

Back at the chapter level my code reads:

\startchapter[title={Chapter title}][author={Mickey Mouse, Donald 
Duck, Uncle Scrooge, Minnie Mouse}].


\startchapter[title={Chapter title}][author={Mickey Mouse, Donald 
Duck,\crlf Uncle Scrooge, Minnie Mouse}].


Massi
___ 

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] Centered list of authors in ToC

2021-02-09 Thread mf

Il 09/02/21 10:49, jbf ha scritto:
I wonder if someone can assist me with the final step in a complicated 
Table of Contents where all items in the ToC are centred (except page 
numbers which continue to be on the right).


Beneath each chapter title is a list of authors (Yes, there can be up to 
four authors per chapter!)


I can successfully achieve everything (see MWE below) except for getting 
the list of authors to split and be centred. Because there are four of 
them, I would need to split them so they appear as two (centred) with 
the other two below(also centred).


Here is my MWE for the essential bit (which is then called in as 
textcommand=\SectionTocEntry in \setuplist[chapter], obviously):


\define[1]\SectionTocEntry{%
#1\crlf% title
\midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}% 


}


try \startalignment[middle] ... \stopalignment instead of \midaligned



My problem is that at the moment, the four authors appear on a single 
line, so I end up with:


    My chapter title
Mickey Mouse, Donald Duck, Uncle Scrooge, Minnie Mouse  [p. 1, but in 
fact, Minnie Mouse runs across the page number!]


What I want instead is:

   My chapter title
     Mickey Mouse, Donald Duck
    Uncle Scrooge, Minnie Mouse    [p. number]

Back at the chapter level my code reads:

\startchapter[title={Chapter title}][author={Mickey Mouse, Donald Duck, 
Uncle Scrooge, Minnie Mouse}].


\startchapter[title={Chapter title}][author={Mickey Mouse, Donald 
Duck,\crlf Uncle Scrooge, Minnie Mouse}].


Massi
___
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] Centered list of authors in ToC

2021-02-09 Thread jbf
I wonder if someone can assist me with the final step in a complicated 
Table of Contents where all items in the ToC are centred (except page 
numbers which continue to be on the right).


Beneath each chapter title is a list of authors (Yes, there can be up to 
four authors per chapter!)


I can successfully achieve everything (see MWE below) except for getting 
the list of authors to split and be centred. Because there are four of 
them, I would need to split them so they appear as two (centred) with 
the other two below(also centred).


Here is my MWE for the essential bit (which is then called in as 
textcommand=\SectionTocEntry in \setuplist[chapter], obviously):


\define[1]\SectionTocEntry{%
#1\crlf% title
\midaligned{\doifnot{\structurelistuservariable{author}}{}{\structurelistuservariable{author}}}%
}

My problem is that at the moment, the four authors appear on a single 
line, so I end up with:


   My chapter title
Mickey Mouse, Donald Duck, Uncle Scrooge, Minnie Mouse  [p. 1, but in 
fact, Minnie Mouse runs across the page number!]


What I want instead is:

  My chapter title
    Mickey Mouse, Donald Duck
   Uncle Scrooge, Minnie Mouse    [p. number]

Back at the chapter level my code reads:

\startchapter[title={Chapter title}][author={Mickey Mouse, Donald Duck, 
Uncle Scrooge, Minnie Mouse}].


Anyone able to help with this?

Julian







___
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] Regarding XML export and EPUB

2020-12-22 Thread Henning Hraban Ramm


> Am 21.12.2020 um 23:31 schrieb Andres Conrado Montoya 
> :
> 
> Hello, list. 
> I've been experimenting with the export scripts and the instructions and 
> manuals you can find in:
> 
> https://wiki.contextgarden.net/XML
> https://wiki.contextgarden.net/Export
> https://wiki.contextgarden.net/Epub
> https://wiki.contextgarden.net/ePub
> 
> This with the expectation of being able to make an epub file form a context 
> document that epubcheck can accept. I see there is an experimental support 
> for epub, and I have played around with the export options a bit. However, 
> what I would really want to know is. It's possible and if so, how can you map 
> context's elements so they can get translated to specific html tags? I mean, 
> the current export output uses divs with custom attributes and classes, or 
> custom tags; but I would like to map lists to ul, list-items to li, headings 
> to h1, h2, h3, paragraphs to  etc. In the manuals I see that you can do 
> the opposite: map xml/html tags to context's elements; I wonder if you can go 
> the other way around, and a good place to start reading about it. Apologies 
> if I missed something obvious. 

There’s no built-in mechanism.

I’m using XSLT to transform ConTeXt’s exported XML to the HTML I want.
Esp. with references (footnotes etc) it’s not trivial.

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

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


[NTG-context] Regarding XML export and EPUB

2020-12-21 Thread Andres Conrado Montoya
Hello, list.
I've been experimenting with the export scripts and the instructions and
manuals you can find in:

https://wiki.contextgarden.net/XML
https://wiki.contextgarden.net/Export
https://wiki.contextgarden.net/Epub
https://wiki.contextgarden.net/ePub

This with the expectation of being able to make an epub file form a context
document that epubcheck can accept. I see there is an experimental support
for epub, and I have played around with the export options a bit. However,
what I would really want to know is. It's possible and if so, how can you
map context's elements so they can get translated to specific html tags? I
mean, the current export output uses divs with custom attributes and
classes, or custom tags; but I would like to map lists to ul, list-items to
li, headings to h1, h2, h3, paragraphs to  etc. In the manuals I see
that you can do the opposite: map xml/html tags to context's elements; I
wonder if you can go the other way around, and a good place to start
reading about it. Apologies if I missed something obvious.

Thank you.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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] basic issues with formulas

2020-12-03 Thread Pablo Rodriguez
On 12/3/20 10:00 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 03.12.2020 um 21:52:
>> On 12/3/20 8:48 PM, Pablo Rodriguez wrote:
>>> [...]
>>> 3. Packed works fine with fractions, but packed columns is wrong with
>>> them. It adds too much space.
>> After clearing the issue with text, it seems that fractions add to much
>> space when in list with columns.
>> [...]
>> I don’t know whether this is a bug.
>
> Itemize uses the mixed columns when you enable columns with enabled
> grid snapping as default setting. To get rid of the extra line you
> can either disable the grid setting for itemize with
>
>      \setupitemize[grid=no]

Many thanks with your reply, Wolfgang.

This solves the issue.

> or you replace the mixed columns mechanism with a simpler column
> mechanism which doesn't produce an extra line, to do this add this at
> the begin of your document
>
>      \enableexperiments[itemize.columns]

This avoids the extra line, but columns are wrong: 3 columps with option
"four" and it split items in 3 for the first column and 1 for the second
column with option "two".

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] Orphan issue with \startitemize

2020-11-26 Thread Marco Patzer
On Thu, 26 Nov 2020 21:11:25 +
Bruce Horrocks  wrote:

> With \dorecurse{34} all of the items move to the second page even
> though only one extra line has been added and there is now quite a
> large gap at the bottom of the first page.
> 
> Is there a setting that controls this a bit more precisely, please?
> (So that \dorecurse{34} and possibly even 35 would still split one
> and three.)

You could adjust the clubpenalty and widowpenalty:

\startsetups [mypenalties]
  %% \setdefaultpenalties
  \setpenalties\widowpenalties {2}{100}
  \setpenalties\clubpenalties  {2}{100}
\stopsetups

\setuplayout [setups=mypenalties]

Marco
___
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] Orphan issue with \startitemize

2020-11-26 Thread Bruce Horrocks
With the following MWE:

\def\Lorem{Lorem ipsum dolor sit amet, consectetur adipiscing
elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat. }

\showframe
\starttext

%\dorecurse{32}{ ~ \par }
%\dorecurse{33}{ ~ \par }
\dorecurse{34}{ ~ \par }

The following items are blah blah blsh:
\startitemize
\sym{-} \Lorem
\sym{-} \Lorem
\sym{-} \Lorem
\sym{-} \Lorem
\stopitemize
\stoptext

I find that \dorecurse{32} fits two items on the bottom of the first page and 
two at the top of the next. This is fine.

With \dorecurse{33} I get one and three - which is also fine.

With \dorecurse{34} all of the items move to the second page even though only 
one extra line has been added and there is now quite a large gap at the bottom 
of the first page.

Is there a setting that controls this a bit more precisely, please? (So that 
\dorecurse{34} and possibly even 35 would still split one and three.)

--
Bruce Horrocks
Hampshire, UK

___
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] MkIV and LMTX difference in comma list expansion

2020-10-26 Thread Wolfgang Schuster

Rik Kabel schrieb am 26.10.2020 um 17:34:

Hello list,

Another difference, perhaps the result of my lack of knowledge, but a 
difference.


The following example produces different results for the fourth 
sequence, with the index being passed one item under MkIV and two items 
under LMTX.


(The code is stripped out of a much more complex bit to show the issue.)

[...]

Did I misuse the comma list processing, or is this a bug?


Probably something we missed when the comma list processor was 
rewritten. In the example below the braces are stripped when there is 
only a single element (first and second list).


\def\CommalistEntry#1{\ruledhbox{\strut#1}}

\starttext

\dontleavehmode\processcommalist[{aaa}]\CommalistEntry

\dontleavehmode\processcommalist[{aaa,bbb}]\CommalistEntry

\dontleavehmode\processcommalist[{ccc,ddd},{eee,fff}]\CommalistEntry

\stoptext

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

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


[NTG-context] MkIV and LMTX difference in comma list expansion

2020-10-26 Thread Rik Kabel

Hello list,

Another difference, perhaps the result of my lack of knowledge, but a 
difference.


The following example produces different results for the fourth 
sequence, with the index being passed one item under MkIV and two items 
under LMTX.


(The code is stripped out of a much more complex bit to show the issue.)

   % macros=mkvi
   \starttexdefinition unexpanded startBlockQuotation
    \dosingleempty\dostartBlockQuotation
   \stoptexdefinition
   \starttexdefinition dostartBlockQuotation [#SETUPS]
    \getrawparameters[BlockQuotation]
  [index=,#SETUPS]
    \expandafter\processcommalist
  \expandafter[\BlockQuotationindex]\doIndexIt{}
   \stoptexdefinition
   \starttexdefinition stopBlockQuotation
   \stoptexdefinition

   \starttexdefinition doIndexIt #INDEXTERM
  indexer sees #INDEXTERM\
  \index{#INDEXTERM}
   \stoptexdefinition

   \starttext

   \startBlockQuotation[index=aaa]
 \startparagraph
  1 \quad when indexing aaa.
 \stopparagraph
   \stopBlockQuotation
   \startBlockQuotation[index={aab}]
 \startparagraph
  2 \quad when indexing \{aab\}.
 \stopparagraph
   \stopBlockQuotation
   \startBlockQuotation[index={aac, aad}]
 \startparagraph
  3 \quad when indexing \{aac, aad\}.
 \stopparagraph
   \stopBlockQuotation
   \startBlockQuotation[index={{aae, aaf}}]
 \startparagraph
  4 \quad when indexing \{\{aae, aaf\}\}.
 \stopparagraph
   \stopBlockQuotation
   \startBlockQuotation[index={{{aag, aah}}}]
 \startparagraph
  5 \quad when indexing \{\{\{aag, aah\}\}\}.
 \stopparagraph
   \stopBlockQuotation
   \startBlockQuotation[index={{aai, aaj},{aak, aal}}]
 \startparagraph
  6 \quad when indexing \{\{aai, aaj\},\{aak, aal\}\}.
 \stopparagraph
   \stopBlockQuotation
   \startBlockQuotation[index={{{aam, aan}},{{aao, aap}}}]
 \startparagraph
  7 \quad when indexing \{\{\{aam, aan\}\},\{\{aao, aap\}\}\}.
 \stopparagraph
   \stopBlockQuotation
   \placeindex
   \stoptext

Did I misuse the comma list processing, or is this a bug?

--
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] Citeproc

2020-10-06 Thread Taco Hoekwater


> On 5 Oct 2020, at 22:26, Denis Maier  wrote:
> 
> Am 05.10.2020 um 22:04 schrieb Hans Hagen:
>> if it's an xml spec then using lua makes not that much sense (no gain) .. 
>> just process the xml 
> Hmm, but the XML is just a descriptive grammar of how bibliographies and 
> citations should be rendered. As Aditya has pointed out it's quite similar to 
> the role of bst style files for bibtex. So, a citeproc will take a style file 
> (in xml) and apply it to the metadata (based on the items actually cited in a 
> document).

I recall discussing this idea with Bruce D’Arcus a long time ago (somewhere in 
the early 00-es, maybe).

The CSL files look like XML, but really they are more like a macro processing 
language. Parsing and interpreting that should not be all that hard, I expect. 
If I had to do this, I would convert the XML  tags into actual lua 
functions while parsing the XML. The implied processing language is quite 
straightforward (unlike the stack-based postfix language in bibtex bst files). 
I don’t have time right now, but if someone reminds me in two months or so, I 
might have a go at it.

Best wishes,
Taco

___
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] help with forced page break in TOC

2020-10-05 Thread jbf
Thanks Willi, that is the solution. So I then took a look at 
\showinjector on the wiki (and \setinjector) and found pretty much what 
you explained. Pity there isn't a link from the other page to this that 
I might have found when I first went looking...


Is it the case that the #Forced_Page_break reference in the wiki simply 
no longer applies in any situation? Anyway, that aside, thank you for 
the solution.


Julian

On 6/10/20 9:38 am, Willi Egger wrote:

Hello Julian,

the mechanism does not work in the typesetting of the TOC.

Whatt you is the following, when the book is in a final stage:

run the file with \showinjector. This will give you in the left margin the 
numbers of the different TOC-entries.

Now you can say

\setinjector[list] [“the number of the injector where the break must take 
place][\page]


I hope that this is solving your issue.
Kind regards

Willi

On 5 Oct 2020, at 04:53, jbf  wrote:

I am unable to adapt the example given in 
https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break to my 
situation:

In my case, the ToC has no chapters per se, but uses a defined \mytitle. This 
produces a series of unnumbered items in the ToC.

The example in contextgarden tells me to first define the break, which I have 
done:

\definelistextra[page][before=\page]
It then tells me to call this in where I \placecontent (in my case I am using 
my own defined  \placecombined list[content]). The example given in the wiki is:

\placecontent[extras={6=page}]
But I have unnumbered items which are titles (mytitles), so I am not sure what 
to replace '6' with. I tried:

\placecombinedlist[content][extras={mytitle title={Elements of Reading}=page}] 
since 'Elements of reading' is the title before which I want the page break to 
occur. This does not work. I tried variation of it, e.g. since it is the third 
such title I tried ][extras={3=page}] but that does nothing either.

Any clues as to how I can resolve this small problem?

Julian

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

___
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] help with forced page break in TOC

2020-10-05 Thread Willi Egger
Hello Julian,

the mechanism does not work in the typesetting of the TOC.

Whatt you is the following, when the book is in a final stage:

run the file with \showinjector. This will give you in the left margin the 
numbers of the different TOC-entries.

Now you can say

\setinjector[list] [“the number of the injector where the break must take 
place][\page]


I hope that this is solving your issue.
Kind regards

Willi
> On 5 Oct 2020, at 04:53, jbf  wrote:
> 
> I am unable to adapt the example given in 
> https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break to my 
> situation:
> 
> In my case, the ToC has no chapters per se, but uses a defined \mytitle. This 
> produces a series of unnumbered items in the ToC.
> 
> The example in contextgarden tells me to first define the break, which I have 
> done:
> 
> \definelistextra[page][before=\page]
> It then tells me to call this in where I \placecontent (in my case I am using 
> my own defined  \placecombined list[content]). The example given in the wiki 
> is:
> 
> \placecontent[extras={6=page}]
> But I have unnumbered items which are titles (mytitles), so I am not sure 
> what to replace '6' with. I tried:
> 
> \placecombinedlist[content][extras={mytitle title={Elements of 
> Reading}=page}] since 'Elements of reading' is the title before which I want 
> the page break to occur. This does not work. I tried variation of it, e.g. 
> since it is the third such title I tried ][extras={3=page}] but that does 
> nothing either.
> 
> Any clues as to how I can resolve this small problem?
> 
> Julian
> 
> ___
> 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] Citeproc

2020-10-05 Thread Denis Maier

Am 05.10.2020 um 22:04 schrieb Hans Hagen:
if it's an xml spec then using lua makes not that much sense (no gain) 
.. just process the xml 
Hmm, but the XML is just a descriptive grammar of how bibliographies and 
citations should be rendered. As Aditya has pointed out it's quite 
similar to the role of bst style files for bibtex. So, a citeproc will 
take a style file (in xml) and apply it to the metadata (based on the 
items actually cited in a document).


Denis
___
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] help with forced page break in TOC

2020-10-04 Thread jbf
I am unable to adapt the example given in 
https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break to my 
situation:


In my case, the ToC has no chapters per se, but uses a defined \mytitle. 
This produces a series of unnumbered items in the ToC.


The example in contextgarden tells me to first define the break, which I 
have done:


\definelistextra[page][before=\page]

It then tells me to call this in where I \placecontent (in my case I am 
using my own defined  \placecombined list[content]). The example given 
in the wiki is:


\placecontent[extras={6=page}]

But I have unnumbered items which are titles (mytitles), so I am not 
sure what to replace '6' with. I tried:


\placecombinedlist[content][extras={mytitle title={Elements of 
Reading}=page}] since 'Elements of reading' is the title before which I 
want the page break to occur. This does not work. I tried variation of 
it, e.g. since it is the third such title I tried ][extras={3=page}] but 
that does nothing either.


Any clues as to how I can resolve this small problem?

Julian

___
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] no frontmatter head on recto page

2020-09-30 Thread jbf
No, Taco, that is not resolving the problem. I added your suggestion 
(header=start) to what I already had for \setuphead for 'foreword':


\setuphead
  [foreword]
  [frontpartlabel=foreword,
   conversion=empty,
   header=start]

but it makes no difference.

I am already aware that chapter, on which my foreword definition is 
based, by default does not give a header on the first page. It is 
subsequent recto pages that are the problem. So, for example, the 
Foreword (which starts on a recto page) has three pages. The first, 
correctly, has no header. The second carries the book title header 
(called in by [{\hfill\documentvariable{metadata:title}\hfill}][] I 
presume). But the third and final page does not have the header 
'Foreword' which my publisher wants. The same is happening with other 
frontmatter items (and indeed, appendices too) I have defined, but if I 
solve the Foreword problem, I will know how to solve those too.


When I had this problem with another book I was working on, having 'yes' 
in \setupsectionblock[frontpart][page=yes] seemed to solve the problem, 
but I didn't understand why it did! And it does not work in this 
instance. It may be that something else in my preamble is missing 
something or indeed preventing something! Any other thoughts on this?


I could, offlist, send you my entire preamble (too long for the list I 
think) just in case something else is causing the problem that I am 
unaware of, but maybe you or someone else can still identify just what 
it is that might stopping the 'Foreword' recto header from appearing in 
this case.


Julian


On 30/9/20 9:44 pm, Taco Hoekwater wrote:



On 30 Sep 2020, at 11:46, jbf  wrote:

For some reason that I cannot work out, the recto page header is not appearing 
in frontmatter sections like Foreword. It is important to note that for this 
item I am using:

\definehead
   [foreword] [chapter]…

‘chapter' suppresses the header by default on the first page.

at a guess:

   \setuphead[foreword][header=start]

Best wishes,
Taco

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


[NTG-context] correct vertical alignment in ToC

2020-09-29 Thread jbf
A quick look at the attached pdf extract from my current Table of 
Contents will demonstrate the problem. I need authors names, chapter 
titles and/or date range to line up correctly underneath each other, but 
because of the definitions I am working with (see below how the current 
result has been acheived) I do not know how to get these precise margin 
(I presume?) distances.


So, for example, the author for the Preface needs to line up directly 
under the author for the Foreword. And the title for Chapters One/Two 
and the date range for Chapter Three likewise. The 'Context' item is a 
\section and I have got that more or less to line up by using an \hspace 
definition, but I know that using two very different definitions is 
likely to cause problems. (Alternatively, they could all line up under 
the title for Chapter One, so a bit further in. What *has to happen* is 
that they all line up accurately under each other, whichever solution I 
use).


My real problem  is that I do not know how get these specific distances 
from the left-hand side using the definitions I have. If I knew how to 
get, say, 3cm in from the margin for Chapter authors/titles/date ranges 
(given the definition below) and section authors (given its definition 
below), I could solve this problem, but everything I have tried does not 
seem to work. Wolfgang had given me the ChapterListCommand definition, 
and I think Hraban the SectionTocentry:


(1) CHAPTERLISTCOMMAND

\define[3]\ChapterListCommand
  {\hbox\bgroup
 \hbox to 2.5cm{\currentlistsymbol\hss}% number + labeltext
 \vtop\bgroup
   \hsize\dimexpr\makeupwidth-2.5cm\relax
   \doifsomething{\rawstructurelistuservariable{year}}
 {{\structurelistuservariable{year}}\crlf}%
   \currentlistentrytitle % title
   \doifsomething{\rawstructurelistuservariable{author}}
 {\crlf{\structurelistuservariable{author}}}%
   \hfill\currentlistentrypagenumber % pagenumber
 \egroup
   \egroup}

Is there somewhere in here that I can specify my distances other than 
the \hbox 2.5cm? Note that I obviously also have (e.g. for the Preface, 
but I have others for Foreword, etc.):


\setuplist
  [preface]
  [label=preface,
   alternative=command,
   command=\ChapterListCommand]

(2) SECTIONTOCENTRY

 \definehspace[twoem][2.5 em]

   \define[1]\SectionTocEntry{%
  #1\hspace[twoem]% title
  \structurelistuservariable{author}%
}

\setuplist[section][
  textcommand=\SectionTocEntry,
  margin=.5cm]

The [twoem] definition (in fact it is 2.5 em) was how I got the 
'Context' author to roughly line up under the other items, but I have 
noticed that in some repetitions of this section, they do not line up 
exactly even so.


Hope somebody can help - in the end I suppose I can open it in a PDF 
editing program and shift items under each other, but I want to achieve 
the correct result using ConTeXt, understandably.


Julian



toc.pdf
Description: Adobe PDF document
___
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] styling individual parts of ToC entry

2020-09-08 Thread jbf
Have to confess I am still not getting far with the final problem in a 
book that is now fully laid out: frontmatter through to appendices is 
all correct and working, but the Table of Contents not the way I need it 
(as explained earlier and listed in a previous email).


My latest effort focuses on just one item, the Foreword, since if I get 
that right, I can apply the same logic to sections. Chapters are already 
working correctly, thanks to Wolfgang's ChapterListCommand and I am 
assuming I need that for the several frontmatter 'chapters'.


I was earlier using \title for foreword, preface and notes to 
contributors, but have abandoned that as complicating things, and am now 
using \chapter, since it does not produce a numbered item - however, it 
is producing the label 'Chapter' which I don't want for these item. You 
can see below how I tried to avoid that, but it failed. My MWE addition 
to what Wolfgang provided is:


\definehead [foreword] [chapter]

\setuphead [foreword]

\setuplist [foreword]
 [label=foreword,
 alternative=command,
 command=\ChapterListCommand]% definition not included here. It was 
given in an earlier response from Wolfgang.


 And in the frontmatter itself:

\startchapter[foreword][title={\ss Foreword}][author={A. Uthor}]

..

Of course, even if it did work, given the ChapterListCommand, it would 
probably put the author on a line below Foreword, instead of on the same 
line. There are four different components in the ToC, all needing to be 
arranged a bit differently, which is why I haven't got my head around 
what I need to do. They are:


(1) Foreword    author name

(2) Chapter no.   Title

  author name

(3) Chapter no.   Title 1

    Title 2 or subtitle

  author name

(4) Chapter no.   Title

   Section

  author name

Julian




On 7/9/20 4:57 pm, Wolfgang Schuster wrote:

jbf schrieb am 07.09.2020 um 01:31:


Yes, Wolfgang, that corrects the minor problem of including the 
author name correctly, even when there is no year range. Thank you.


But since I use \title, not \chapter, for the frontmatter items, ( 
Foreword, Preface, A note on Contributors), the ChapterListCommand 
clearly does not apply, so currently my ToC looks as follows (leaving 
out the pg numbers which correctly align right):



                 Foreword
                 A. Uthor
                        Preface
                 A. Uthor
                         A note on contributors
Chapter One        Year range
                A. Uthor

What I want is for 'Foreword', 'Preface' and 'A note on Contributors' 
to align flushleft with Chapter One, but with author names still 
where they should be (Foreword and Preface have authors, 'A note...' 
does not have an author).


So I tried creating a TitleListCommand which copies the 
ChapterListCommand. But where I run into difficulties then is with a 
new lot of \setuplist to accommodate that. There are three different 
labels involved (Foreword, Preface, and A note on Contributors).


And why is it that even with the current setup, 'Foreword' has 
aligned with author name, not with 'Preface' and 'A note...'? All 
three are \title, after all.


All in all this is a most complicated ToC! What I need is for the ToC 
to look like I show it below, and you will note the additional 
complication of Chapter Two which does not have an author, but 
instead it is the SECTIONS in the Chapter that have authors!


I'm sure if I can get on top of all this somehow, no future ToC is 
ever going to cause me problems! The body of the book is all looking 
good, all 300 pages of it. It is just the automatically produced ToC 
that is causing the headaches.


Foreword                   A. Uthor    pg no.
Preface                 A. Uthor   "
A note on Contributors "
Chapter One     Chapter Title
                      A. Uthor  "
Chapter Two Chapter title
A section  Context
  A. Uthor "
Another section    Reflection
  A. Author   "

So what I have below as an MWE is fundamentally what you gave me (I 
have left out the correctly working ChapterListCommand), altered for 
\title, but I haven't got the setups below correct because I don't 
know how to do it. I have replaced unknowns with a question mark!


And at the moment I have nothing for the 'sections' with authors I 
need for Chapter Two. I assume I would set up a third definition 
called \SectionListCommand. Sections will have different labels too - 
one will be called 'Context', the other 'Reflection&#

[NTG-context] Fwd: Re: styling individual parts of ToC entry

2020-09-07 Thread jbf




 Forwarded Message 
Subject:Re: [NTG-context] styling individual parts of ToC entry
Date:   Tue, 8 Sep 2020 12:39:05 +1000
From:   jbf 
To: Wolfgang Schuster 



Wolfgang, I have tried an MWE below but I think I am hopelessly lost at 
this point. It is not producing anything like what I want.


But at least let me indicate what I have tried:

(1) I have defined two different 'title' items (Foreword and Preface 
unnumbered) since both of these require an author name of the kind 
produced by the \ChapterListCommand. Do I also need a \TitleListCommand 
for these? The \ChapterListCommand seems to call in a chapter number, 
and I don't want one in the Frontmatter items like foreword and preface. 
I didn't know how to adjust that definition to leave out the number. I 
did try a renamed copy of it, leaving out the line: \hbox to 
3cm{\currentlistsymbol\hss}, but that made no difference.


(2) And since I also need some sections with an author (but the chapter 
they are in has no author), I defined a 'mysection', though I have only 
tried to 'call in' the Foreword so far in the text below, to see if that 
at least worked - but it doesn't.


(3) I also assumed that having defined foreword, preface and mysection, 
they would need to be in a \setupcombinedlist.


(4) And finally, I thought I would then need a \setuplist and 
\setuplabeltext for Foreword (as indeed I might for the other two as 
well, but to start with, I wanted to get one of them working at least).


MWE:

\definehead [foreword] [title]
\definehead [preface] [title]
\definehead [mysection] [section]

\setupcombinedlist[chapter,foreword,preface,mysection,section, subsection]

\define[3]\ChapterListCommand
  {\hbox\bgroup
 \hbox to 3cm{\currentlistsymbol\hss}% number + labeltext
 \vtop\bgroup
   \hsize\dimexpr\makeupwidth-3cm\relax
   \doifsomething{\rawstructurelistuservariable{year}}
 {{\it\structurelistuservariable{year}}\crlf}%
   \currentlistentrytitle % title
   \doifsomething{\rawstructurelistuservariable{author}}
 {\crlf{\bf\structurelistuservariable{author}}}%
   \hfill\currentlistentrypagenumber % pagenumber
 \egroup
   \egroup}

   \define[3]\TitleListCommand
  {\hbox\bgroup
 \hbox to 3cm{\currentlistsymbol\hss}% number + labeltext
 \vtop\bgroup
   \hsize\dimexpr\makeupwidth-3cm\relax
   \doifsomething{\rawstructurelistuservariable{year}}
 {{\it\structurelistuservariable{year}}\crlf}%
   \currentlistentrytitle % title
   \doifsomething{\rawstructurelistuservariable{author}}
 {\crlf{\bf\structurelistuservariable{author}}}%
   \hfill\currentlistentrypagenumber % pagenumber
 \egroup
   \egroup}

\definehead [foreword] [title]
\definehead [preface] [title]
\definehead [mysection] [section]

\setupcombinedlist[chapter,foreword,preface,mysection,section, subsection]

\setuplist
  [chapter]
  [label=chapter,
   alternative=command,
   command=\ChapterListCommand]

\setuplabeltext
  [en]
  [chapter=Chapter ]

\setuplist
  [foreword]
  [label=foreword,
  alternative=command,
   command=\TitleListCommand]

\setuplabeltext
  [en]
  [title=Foreword ]

\starttext

\completecontent
\starttitle [title={Foreword}] [author={Author Name}]
\unknown
\stoptitle
\startchapter
\startchapter [title={Chapter title}] [author={Author 
Name},year={1980--2000}]

\unknown
\stopchapter

\stoptext

%%%

Let me remind you of what I am trying to achieve. If I can grasp some 
basic principles about this layout, I can experiment further.


Foreword                    A. Uthor     pg no.
  
Preface                 A. Uthor     "


A note on Contributors   "

Chapter One                 Chapter Title

                        A. Uthor     "

Chapter Two Chapter title

A section   Context

    A. Uthor     "

 
Another section Reflection


    A. Author    "


Julian

On 7/9/20 4:57 pm, Wolfgang Schuster wrote:

\definehead [forward] [chapter]
    \definehead [preface] [chapter] 
___
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] styling individual parts of ToC entry

2020-09-06 Thread Wolfgang Schuster

jbf schrieb am 07.09.2020 um 01:31:


Yes, Wolfgang, that corrects the minor problem of including the author 
name correctly, even when there is no year range. Thank you.


But since I use \title, not \chapter, for the frontmatter items, ( 
Foreword, Preface, A note on Contributors), the ChapterListCommand 
clearly does not apply, so currently my ToC looks as follows (leaving 
out the pg numbers which correctly align right):



                     Foreword
                     A. Uthor
                            Preface
                     A. Uthor
                             A note on contributors
Chapter One        Year range
                    A. Uthor

What I want is for 'Foreword', 'Preface' and 'A note on Contributors' 
to align flushleft with Chapter One, but with author names still where 
they should be (Foreword and Preface have authors, 'A note...' does 
not have an author).


So I tried creating a TitleListCommand which copies the 
ChapterListCommand. But where I run into difficulties then is with a 
new lot of \setuplist to accommodate that. There are three different 
labels involved (Foreword, Preface, and A note on Contributors).


And why is it that even with the current setup, 'Foreword' has aligned 
with author name, not with 'Preface' and 'A note...'? All three are 
\title, after all.


All in all this is a most complicated ToC! What I need is for the ToC 
to look like I show it below, and you will note the additional 
complication of Chapter Two which does not have an author, but instead 
it is the SECTIONS in the Chapter that have authors!


I'm sure if I can get on top of all this somehow, no future ToC is 
ever going to cause me problems! The body of the book is all looking 
good, all 300 pages of it. It is just the automatically produced ToC 
that is causing the headaches.


Foreword                    A. Uthorpg no.
Preface                 A. Uthor"
A note on Contributors  "
Chapter One                 Chapter Title
                             A. Uthor"
Chapter Two Chapter title
A section   Context
 A. Uthor"
Another section Reflection
 A. Author   "

So what I have below as an MWE is fundamentally what you gave me (I 
have left out the correctly working ChapterListCommand), altered for 
\title, but I haven't got the setups below correct because I don't 
know how to do it. I have replaced unknowns with a question mark!


And at the moment I have nothing for the 'sections' with authors I 
need for Chapter Two. I assume I would set up a third definition 
called \SectionListCommand. Sections will have different labels too - 
one will be called 'Context', the other 'Reflection'.


\define[3]\TitleListCommand
  {\hbox\bgroup
 \hbox to 3cm{\currentlistsymbol\hss}% number + labeltext
 \vtop\bgroup
   \hsize\dimexpr\makeupwidth-3cm\relax
   \doifsomething{\rawstructurelistuservariable{year}}
 {{\it\structurelistuservariable{year}}\crlf}%
   \currentlistentrytitle % title
   \doifsomething{\rawstructurelistuservariable{author}}
 {\crlf{\structurelistuservariable{author}}}%
   \hfill\currentlistentrypagenumber % pagenumber
 \egroup
   \egroup}

\setuplist
  [chapter]
  [label=chapter,
  alternative=command,
   command=\ChapterListCommand]

\setuplist
  [title]
  [label=?,
  alternative=command,
   command=\TitleListCommand]

\setuplabeltext
  [en]
  [chapter={\bf Chapter }]

\setuplabeltext
  [en]
  [title={\bf ? }] %There needs to be three different labels


You need extra headings for the forward and preface

    \definehead [forward] [chapter]
    \definehead [preface] [chapter]

to have full control about their layout.

I can provide you a solution for your problems but you have to create a 
complete minimal example (including forward and preface titles) first.


Wolfgang

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

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


Re: [NTG-context] styling individual parts of ToC entry

2020-09-06 Thread jbf
Yes, Wolfgang, that corrects the minor problem of including the author 
name correctly, even when there is no year range. Thank you.


But since I use \title, not \chapter, for the frontmatter items, ( 
Foreword, Preface, A note on Contributors), the ChapterListCommand 
clearly does not apply, so currently my ToC looks as follows (leaving 
out the pg numbers which correctly align right):



                    Foreword

                    A. Uthor

                           Preface

                    A. Uthor

                            A note on contributors

Chapter One        Year range

                   A. Uthor


What I want is for 'Foreword', 'Preface' and 'A note on Contributors' to 
align flushleft with Chapter One, but with author names still where they 
should be (Foreword and Preface have authors, 'A note...' does not have 
an author).


So I tried creating a TitleListCommand which copies the 
ChapterListCommand. But where I run into difficulties then is with a new 
lot of \setuplist to accommodate that. There are three different labels 
involved (Foreword, Preface, and A note on Contributors).


And why is it that even with the current setup, 'Foreword' has aligned 
with author name, not with 'Preface' and 'A note...'? All three are 
\title, after all.


All in all this is a most complicated ToC! What I need is for the ToC to 
look like I show it below, and you will note the additional complication 
of Chapter Two which does not have an author, but instead it is the 
SECTIONS in the Chapter that have authors!


I'm sure if I can get on top of all this somehow, no future ToC is ever 
going to cause me problems! The body of the book is all looking good, 
all 300 pages of it. It is just the automatically produced ToC that is 
causing the headaches.


Foreword                    A. Uthorpg no.

Preface                 A. Uthor"

A note on Contributors  "

Chapter One                 Chapter Title

                            A. Uthor"
Chapter Two Chapter title
A section   Context
A. Uthor"
Another section Reflection
A. Author   "


So what I have below as an MWE is fundamentally what you gave me (I have 
left out the correctly working ChapterListCommand), altered for \title, 
but I haven't got the setups below correct because I don't know how to 
do it. I have replaced unknowns with a question mark!


And at the moment I have nothing for the 'sections' with authors I need 
for Chapter Two. I assume I would set up a third definition called 
\SectionListCommand. Sections will have different labels too - one will 
be called 'Context', the other 'Reflection'.


\define[3]\TitleListCommand
  {\hbox\bgroup
 \hbox to 3cm{\currentlistsymbol\hss}% number + labeltext
 \vtop\bgroup
   \hsize\dimexpr\makeupwidth-3cm\relax
   \doifsomething{\rawstructurelistuservariable{year}}
 {{\it\structurelistuservariable{year}}\crlf}%
   \currentlistentrytitle % title
   \doifsomething{\rawstructurelistuservariable{author}}
 {\crlf{\structurelistuservariable{author}}}%
   \hfill\currentlistentrypagenumber % pagenumber
 \egroup
   \egroup}

\setuplist
  [chapter]
  [label=chapter,
  alternative=command,
   command=\ChapterListCommand]

\setuplist
  [title]
  [label=?,
  alternative=command,
   command=\TitleListCommand]

\setuplabeltext
  [en]
  [chapter={\bf Chapter }]

\setuplabeltext
  [en]
  [title={\bf ? }] %There needs to be three different labels



Julian
On 6/9/20 5:36 pm, Wolfgang Schuster wrote:

jbf schrieb am 06.09.2020 um 02:03:
Thanks Wolfgang, while I don't pretend to fully understand the setup 
you have provided (but am working on doing so!), of course it 
provides the correct result for a chapter that has a title, an 
author, and a year.


My ever-so-complicated book (and its authors!) however, throws one 
small further complication into the mix.


Where a chapter does not have a year-range, and I either omit that 
declaration, or I leave the curly brackets empty (e.g. year={}), then 
I find that the author name also does not appear in the ToC. What 
adjustment to the \ChapterListCommand do I need to make to 
accommodate the following? Possibly an \else statement, but not sure 
how to include that:


\startchapter [title={Chapter title}] [author={Author Name}]


I forgot to change the argument for the check off the author entry, 
this should fix it.


\define[3]\ChapterListCommand
  {\hbox\bgroup
 \hbox to 3cm{\currentlistsymbol\hss}% number + labeltext
 \vtop\bgroup
   \hsize\dimexpr\makeupwidth-3cm\relax
   \doifsomething{\rawstructurelistuservariable{year}}

Re: [NTG-context] defining font family for several options

2020-09-03 Thread jbf

Thanks Otared. That clears up that little item :-)

BTW I know how to reduce font size in the headers (chapter titles) that 
appear on the recto pages, which I can do with something like 
\setupheader [style={\ss\switchtobodyfont[10pt]}], but it doesn't seem 
to affect the header (title of the book) on the verso pages, which is 
drawn from the simple statement:


\startdocument
  [metadata:title={Book title}]

Shouldn't  \setupheader affect both headers? Or is it possible I have 
left something out of my \setupheader declaration?


Julian

On 4/9/20 5:30 am, Otared Kavian wrote:

Hi Julian,

The tilde ~ in {\bf\ss #1.~#2} is only there to have an unbreakable fixed space 
between the dot and the first character of the chapter title.  Also in this way 
one can see that one has put a space there… :-)

Best tegards: Otared


On 2 Sep 2020, at 23:29, jbf  wrote:

Thanks Otared,

Still off list. You are very patient but also very thorough, and this is making 
a huge difference to what is in fact a considerable challenge for me, but one I 
am coming to grips with. I believe this aspect of things is now clear to me. No 
hurry, but when you have a moment can you explain the significance of the ~ in 
the {\bf\ss #1.~#2}}part of the definition, before the 2nd element?

After this I'll go back on list! I still have a couple of other queries (not 
font related) about things that are not functioning as they ought at the 
moment, which means I'll need either some understanding or some tweaking, but 
as always there are people on the list like yourself who are prompt with their 
assistance.

Kind regards,

Julian

On 3/9/20 12:34 am, Otared Kavian wrote:

Hi Julian,

First of all, your definition of mychapterfont is incomplete: a font family 
should contain also math fonts, because even if you don't have mathematics in 
your text where you use that font, ConTeXt may pick some characters from math 
fonts. So in my opinion you should define a whole font family named 
mychapterfont, where in particular the sans serif comes from what you are 
indicating.

The second point is that you should not setup bodyfont twice: when you say 
twice \setupbodyfont, ConTeXt will take the last one for the rest of your 
document…
So you say only once
\setupbodyfont[mainface]
and then only where you want to change the font you say
\start \switchtobodyfont[mychapterfont] \ss My special text. \stop

By the way, as we said earlier, you can also use braces instead of \start\stop, 
and even better you can say

\start \switchtobodyfont[mychapterfont,sans] My special text. \stop

A third point is that if you are using mychapterfont only to set the titles of 
chapters, in my opinion it would be better to define a command which takes care 
of all the formatting you are wishing, and then use it in the chapter header. 
Something like

\define[2]\MyChapterCommand{\switchtobodyfont[mychapterfont,12pt] {\bf\ss 
#1.~#2}}
\setuphead[chapter][command=\MyChapterCommand]

In this way you can just say

\startchapter[title={This is my first chapter}]

\input ward.tex

\stopchapter

without the hassles of formatting each title. If only some chapters have the 
special font, then you can define a new family of chapters which may share the 
same counter as the rest of your chapters.

Best regards: Otared


On 2 Sep 2020, at 03:30, jbf  wrote:

Otared, I thought I had it right - and it is partly right, but that newly 
declared font now applies to everything, not just the chapter title. So I 
haven't got it quite right! Maybe I shouldn't bother the list with these extra 
bits so am writing off list. Here is what my font definitions now look like 
(new one highlighted):

\definefontfamily [mainface] [rm] [alegreya] [sc=file:alegreyasc-bold]
\definefontfamily [mainface] [ss] [dax][tf=file:dax-regular,bf=file:dax-medium]
\definefontfamily [mainface] [mm] [alegreya]
\definefontfamily [mychapterfont] [ss] [itcavantgardepromd] 
[ss=file:itcavantgardepro-md]
\setupbodyfont[mainface]
\setupbodyfont[mychapterfont]

I presumed I would have to \setupbodyfont[mychapterfont], but is this where I 
have gone wrong?.

Then in the first chapter, I wrote as follows:

\chapter{{\switchtobodyfont[mychapterfont] \ss Introduction to the BDACE Online 
Project}} and I am getting my AvanteGardePro-MD font alright, but it now 
applies to the whole document!

I tried following title with \start switchtobodyfont[mainface] \rm and then my 
body text (followed by \stop obviously, at the end of the chapter). But this 
did not work.

I then thought that I could use this [mychapterfont] and include it somehow in 
my \setuphead[chapter] so it would work for all chapter titles, along the lines 
of: \setuphead [chapter] [header=empty, {\switchtobodyfont[mychapterfont] \ss}] 
but that hasn't worked either - my body text throughout is still in the sans 
serif, not the usual [mainface] [rm]

I think the problem is that if I define two or more 

Re: [NTG-context] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Pablo Rodriguez
On 9/3/20 8:09 PM, Hans Hagen wrote:
> On 9/3/2020 4:52 PM, Pablo Rodriguez wrote:
>> [...]
>> I’m afraid that packed item lists are misbehaving.
>>
>> Could anyone confirm this?
> can you check again (new lmtx)

Many thanks for the new upload, Hans.

Now packed lists work as expected.

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] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Hans Hagen

On 9/3/2020 4:52 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \starttext
 \startitemize[n]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize

 \startitemize[a, packed]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize
 \stoptext

I’m afraid that packed item lists are misbehaving.

Could anyone confirm this?

can you check again (new lmtx)

Hans

-
  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] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Hans Hagen

On 9/3/2020 4:52 PM, Pablo Rodriguez wrote:

Dear list,

I have the following sample:

 \starttext
 \startitemize[n]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize

 \startitemize[a, packed]
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \startitem Item\stopitem
 \stopitemize
 \stoptext

I’m afraid that packed item lists are misbehaving.

Could anyone confirm this?
hm, seems that i deleted a line somewhere ... fix later (took me a while 
as this is the only affected feature)


Hans

-
  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] packed items not working in latest from 2020.09.03 12:08

2020-09-03 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\starttext
\startitemize[n]
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\stopitemize

\startitemize[a, packed]
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\startitem Item\stopitem
\stopitemize
\stoptext

I’m afraid that packed item lists are misbehaving.

Could anyone confirm this?

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] Overriding the number on a float

2020-08-24 Thread Otared Kavian
Hi,

If there are a few special numberings of floats, and one wants floats numbered 
1.6a and 1.6b, the following seems to work:

Best regards: Otared

%%% begin ownnumber-in-floats.tex
\useMPlibrary[dum]

\starttext

\startsection[title=One]
\startplacefigure[title=Test]
\externalfigure[dummy]
\stopplacefigure
\stopsection

\startsection[title=Two]
\startplacefigure[title=Test]
\externalfigure[dummy]
\stopplacefigure
\stopsection

\setcounter[figure][5] % next figure is no.6

\startsection[ownnumber=10,title={A section}] 
\start
\setupcaptions[numberstopper={a}]
\startplacefigure[title=Test figure]
\externalfigure[dummy]
\stopplacefigure
\stop
\stopsection

\setcounter[figure][5]

\startsection[ownnumber=11,title={Another section}] % ownnumber doesn’t work
\start
\setupcaptions[numberstopper={b}]
\startplacefigure[title=Test another figure]
\externalfigure[dummy]
\stopplacefigure
\stop

\startplacefigure[title=Test another figure]
\externalfigure[dummy]
\stopplacefigure

\stopsection

\stoptext
%%% end ownnumber-in-floats.tex

> On 24 Aug 2020, at 19:37, Henning Hraban Ramm  wrote:
> 
> 
> 
>> Am 24.08.2020 um 17:36 schrieb Wolfgang Schuster 
>> :
>> 
>> Henning Hraban Ramm schrieb am 24.08.2020 um 15:29:
>>>> Am 23.08.2020 um 11:25 schrieb Duncan Hothersall :
>>>> 
>>>> I think there was a question on this very recently but I don;t think it 
>>>> got an answer and I can't find it to reply to, so apologies for the extra 
>>>> noise. I have a large text with floats numbered sequentially by chapter 
>>>> and then figure/table number, but at the last minute I've had a request 
>>>> for two figures in a particular chapter to become 27.1a and 27.1b instead 
>>>> of 27.1 and 27.2. It's not a combination - they are separate figures on 
>>>> different pages.
>>>> 
>>>> I've experimented with the options I can see, but it's not obvious if 
>>>> there is a facility to override the numbering of two figures in a stream 
>>>> of normally numbered figures like this. I was thinking of the equivalent 
>>>> of the old \sym{symbol} command that used to work as a way to override a 
>>>> single item in an otherwise sequential list.
>>>> 
>>>> I guess there's a brute force method of setting up a new type of figure 
>>>> with the label "Figure 27.1" and having them numbered as lowercase alpha, 
>>>> but if there's an easier way that would be great.
>>> I’m also interested in overriding automatical numbering, e.g. of chapters 
>>> or itemization items.
>>> E.g. in my songbook, I’d like to have the verses numbered but interrupted 
>>> by a chorus numbered as "C" (i.e. "R" in German).
>>> Similarly the paragraphs of some (by)laws that were changed a lot and use a 
>>> numbering like 1, 2, 3, 3a, 4, 7...
>>> Something like
>>> \startitem[number={R}]
>>> or
>>> \startsection[number={3a}]
>>> would be nice.
>>> If I set it to an integer, ConTeXt should set the counter accordingly, 
>>> otherwise continue counting from the previous calculated number. Would that 
>>> be possible?
>> 
>> 
>> You can set your own section numbers but the counter isn't stopped.
> 
> Thank you! I overlooked "ownnumber". It works for sections, but not for items 
> or floats.
> 
> \setnumber[section][10] doesn’t work, \setcounter the same (according to the 
> source they’re synonymous) – does section use a different counter name or is 
> it no counter at all?
> 
> \setnumber[figure][10] works (but only with integers, not some alphanumerical 
> stuff, sorry Duncan).
> 
> Hraban
> 
> 
> \useMPlibrary[dum]
> 
> \starttext
> 
> \startsection[title=One]
> \startplacefigure[title=Test]
> \externalfigure[dummy]
> \stopplacefigure
> \stopsection
> 
> \startsection[title=Two]
> \startplacefigure[title=Test]
> \externalfigure[dummy]
> \stopplacefigure
> \stopsection
> 
> \setcounter[figure][5] % next figure is no.6
> 
> \startsection[ownnumber=10,title=???] % ownnumber doesn’t work
> \startplacefigure[title=Test,ownnumber=10]
> \externalfigure[dummy]
> \stopplacefigure
> \stopsection
> 
> \setcounter[section][5] % doesn’t work
> 
> \startsection[title=Three]
> \startitemize[n]
>  \item one
>  \item two
>  \item three
>  \startitem[ownnumber=9] five\stopitem  % ownnumber doesn’t work
> \stopitemize
> \stopsection
> 
> \stoptext
> 
> ___
> If your questi

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 24.08.2020 um 19:37:

Am 24.08.2020 um 17:36 schrieb Wolfgang Schuster 
:

Henning Hraban Ramm schrieb am 24.08.2020 um 15:29:

Am 23.08.2020 um 11:25 schrieb Duncan Hothersall :

I think there was a question on this very recently but I don;t think it got an 
answer and I can't find it to reply to, so apologies for the extra noise. I 
have a large text with floats numbered sequentially by chapter and then 
figure/table number, but at the last minute I've had a request for two figures 
in a particular chapter to become 27.1a and 27.1b instead of 27.1 and 27.2. 
It's not a combination - they are separate figures on different pages.

I've experimented with the options I can see, but it's not obvious if there is 
a facility to override the numbering of two figures in a stream of normally 
numbered figures like this. I was thinking of the equivalent of the old 
\sym{symbol} command that used to work as a way to override a single item in an 
otherwise sequential list.

I guess there's a brute force method of setting up a new type of figure with the label 
"Figure 27.1" and having them numbered as lowercase alpha, but if there's an 
easier way that would be great.

I’m also interested in overriding automatical numbering, e.g. of chapters or 
itemization items.
E.g. in my songbook, I’d like to have the verses numbered but interrupted by a chorus numbered as 
"C" (i.e. "R" in German).
Similarly the paragraphs of some (by)laws that were changed a lot and use a 
numbering like 1, 2, 3, 3a, 4, 7...
Something like
\startitem[number={R}]
or
\startsection[number={3a}]
would be nice.
If I set it to an integer, ConTeXt should set the counter accordingly, 
otherwise continue counting from the previous calculated number. Would that be 
possible?


You can set your own section numbers but the counter isn't stopped.

Thank you! I overlooked "ownnumber". It works for sections, but not for items 
or floats.

\setnumber[section][10] doesn’t work, \setcounter the same (according to the 
source they’re synonymous) – does section use a different counter name or is it 
no counter at all?

\setnumber[figure][10] works (but only with integers, not some alphanumerical 
stuff, sorry Duncan).


\setupnumber is a synonym of \setupcounter and exists for backwards 
compatibility.



Hraban


\useMPlibrary[dum]

\starttext

\startsection[title=One]
\startplacefigure[title=Test]
\externalfigure[dummy]
\stopplacefigure
\stopsection

\startsection[title=Two]
\startplacefigure[title=Test]
\externalfigure[dummy]
\stopplacefigure
\stopsection

\setcounter[figure][5] % next figure is no.6

\startsection[ownnumber=10,title=???] % ownnumber doesn’t work
\startplacefigure[title=Test,ownnumber=10]
\externalfigure[dummy]
\stopplacefigure
\stopsection

\setcounter[section][5] % doesn’t work


\setupheadnumber[section][5]


\startsection[title=Three]
\startitemize[n]
   \item one
   \item two
   \item three
   \startitem[ownnumber=9] five\stopitem  % ownnumber doesn’t work



\starttext
\startitemize
\txt{I.} \unknown
\sym{7.} \unknown
\stopitemize
\stoptext

Wolfgang

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

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


Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm


> Am 24.08.2020 um 17:36 schrieb Wolfgang Schuster 
> :
> 
> Henning Hraban Ramm schrieb am 24.08.2020 um 15:29:
>>> Am 23.08.2020 um 11:25 schrieb Duncan Hothersall :
>>> 
>>> I think there was a question on this very recently but I don;t think it got 
>>> an answer and I can't find it to reply to, so apologies for the extra 
>>> noise. I have a large text with floats numbered sequentially by chapter and 
>>> then figure/table number, but at the last minute I've had a request for two 
>>> figures in a particular chapter to become 27.1a and 27.1b instead of 27.1 
>>> and 27.2. It's not a combination - they are separate figures on different 
>>> pages.
>>> 
>>> I've experimented with the options I can see, but it's not obvious if there 
>>> is a facility to override the numbering of two figures in a stream of 
>>> normally numbered figures like this. I was thinking of the equivalent of 
>>> the old \sym{symbol} command that used to work as a way to override a 
>>> single item in an otherwise sequential list.
>>> 
>>> I guess there's a brute force method of setting up a new type of figure 
>>> with the label "Figure 27.1" and having them numbered as lowercase alpha, 
>>> but if there's an easier way that would be great.
>> I’m also interested in overriding automatical numbering, e.g. of chapters or 
>> itemization items.
>> E.g. in my songbook, I’d like to have the verses numbered but interrupted by 
>> a chorus numbered as "C" (i.e. "R" in German).
>> Similarly the paragraphs of some (by)laws that were changed a lot and use a 
>> numbering like 1, 2, 3, 3a, 4, 7...
>> Something like
>> \startitem[number={R}]
>> or
>> \startsection[number={3a}]
>> would be nice.
>> If I set it to an integer, ConTeXt should set the counter accordingly, 
>> otherwise continue counting from the previous calculated number. Would that 
>> be possible?
> 
> 
> You can set your own section numbers but the counter isn't stopped.

Thank you! I overlooked "ownnumber". It works for sections, but not for items 
or floats.

\setnumber[section][10] doesn’t work, \setcounter the same (according to the 
source they’re synonymous) – does section use a different counter name or is it 
no counter at all?

\setnumber[figure][10] works (but only with integers, not some alphanumerical 
stuff, sorry Duncan).

Hraban


\useMPlibrary[dum]

\starttext

\startsection[title=One]
\startplacefigure[title=Test]
\externalfigure[dummy]
\stopplacefigure
\stopsection

\startsection[title=Two]
\startplacefigure[title=Test]
\externalfigure[dummy]
\stopplacefigure
\stopsection

\setcounter[figure][5] % next figure is no.6

\startsection[ownnumber=10,title=???] % ownnumber doesn’t work
\startplacefigure[title=Test,ownnumber=10]
\externalfigure[dummy]
\stopplacefigure
\stopsection

\setcounter[section][5] % doesn’t work

\startsection[title=Three]
\startitemize[n]
  \item one
  \item two
  \item three
  \startitem[ownnumber=9] five\stopitem  % ownnumber doesn’t work
\stopitemize
\stopsection

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Wolfgang Schuster

Henning Hraban Ramm schrieb am 24.08.2020 um 15:29:




Am 23.08.2020 um 11:25 schrieb Duncan Hothersall :

I think there was a question on this very recently but I don;t think it got an 
answer and I can't find it to reply to, so apologies for the extra noise. I 
have a large text with floats numbered sequentially by chapter and then 
figure/table number, but at the last minute I've had a request for two figures 
in a particular chapter to become 27.1a and 27.1b instead of 27.1 and 27.2. 
It's not a combination - they are separate figures on different pages.

I've experimented with the options I can see, but it's not obvious if there is 
a facility to override the numbering of two figures in a stream of normally 
numbered figures like this. I was thinking of the equivalent of the old 
\sym{symbol} command that used to work as a way to override a single item in an 
otherwise sequential list.

I guess there's a brute force method of setting up a new type of figure with the label 
"Figure 27.1" and having them numbered as lowercase alpha, but if there's an 
easier way that would be great.


I’m also interested in overriding automatical numbering, e.g. of chapters or 
itemization items.

E.g. in my songbook, I’d like to have the verses numbered but interrupted by a chorus numbered as 
"C" (i.e. "R" in German).
Similarly the paragraphs of some (by)laws that were changed a lot and use a 
numbering like 1, 2, 3, 3a, 4, 7...

Something like
\startitem[number={R}]
or
\startsection[number={3a}]
would be nice.
If I set it to an integer, ConTeXt should set the counter accordingly, 
otherwise continue counting from the previous calculated number. Would that be 
possible?



You can set your own section numbers but the counter isn't stopped.

\starttext

\startsection[title=One]
\stopsection

\startsection[title=Two]
\stopsection

\startsection[ownnumber=X,title=???]
\stopsection

\startsection[title=Three]
\stopsection

\stoptext

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

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


Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Henning Hraban Ramm


> Am 23.08.2020 um 11:25 schrieb Duncan Hothersall :
> 
> I think there was a question on this very recently but I don;t think it got 
> an answer and I can't find it to reply to, so apologies for the extra noise. 
> I have a large text with floats numbered sequentially by chapter and then 
> figure/table number, but at the last minute I've had a request for two 
> figures in a particular chapter to become 27.1a and 27.1b instead of 27.1 and 
> 27.2. It's not a combination - they are separate figures on different pages.
> 
> I've experimented with the options I can see, but it's not obvious if there 
> is a facility to override the numbering of two figures in a stream of 
> normally numbered figures like this. I was thinking of the equivalent of the 
> old \sym{symbol} command that used to work as a way to override a single item 
> in an otherwise sequential list.
> 
> I guess there's a brute force method of setting up a new type of figure with 
> the label "Figure 27.1" and having them numbered as lowercase alpha, but if 
> there's an easier way that would be great.

I’m also interested in overriding automatical numbering, e.g. of chapters or 
itemization items.

E.g. in my songbook, I’d like to have the verses numbered but interrupted by a 
chorus numbered as "C" (i.e. "R" in German).
Similarly the paragraphs of some (by)laws that were changed a lot and use a 
numbering like 1, 2, 3, 3a, 4, 7...

Something like
\startitem[number={R}]
or
\startsection[number={3a}]
would be nice.
If I set it to an integer, ConTeXt should set the counter accordingly, 
otherwise continue counting from the previous calculated number. Would that be 
possible?

BTW do sections, items and floats all use counters (\setnumber/\getnumber) or 
other mechanisms?


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

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


Re: [NTG-context] headers again

2020-08-12 Thread jbf
Rightly so, and as I was producing such an MWE (stripping away a lot of 
other 'clutter') I found what was causing the problem. At one stage, 
trying to solve the problem, I had created a MyChapter definition and 
had left a command referencing it in the following:


\setuphead
  [chapter][header=empty,alternative=middle,style=\tfa, 
numbercommand=\groupedcommand{}{\blank[1cm]},after={\blank[3cm]},command=\MyChapter]


Give that I was now no longer using MyChapter to solve the problem, that 
command=\MyChapter was causing a conflict. I removed it and, using your 
earlier


\setupheadertexts[\setups{header}]

\startsetups header
  \getmarking[chapter]
\stopsetups

and referencing it in the \chapter or \title items, was able to achieve 
the desired result in every way, including that missing  header on one page.

Thank you.
J

On 13/8/20 3:36 pm, Aditya Mahajan wrote:

On Thu, 13 Aug 2020, jbf wrote:


Almost as perfect as Shakespeare's Juliet! Is there any reason why the header
for the Introduction, done using your approach (it is in frontmatter), does
not produce the header on the last recto page? This intro consists of 8 pages.
Page 7 does not produce the 'Introduction' header. The other relevant recto
pages are all headed 'Introduction' as they should be.

A minimal working example will help in diagnosing what is going on ...

Aditya
___
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] \title with extra content in toc

2020-08-11 Thread Aditya Mahajan

On Wed, 12 Aug 2020, jbf wrote:

Still dealing with \title, but am creating a separate thread because the 
question is different.


As well as using \title within frontmatter (my previous question was 
about the header not appearing on final page if it is an odd/recto page) 
I am also using it in the main body for 'chapters' that I don't want 
numbered, and of course, have ensured that such \title items can appear 
in the TOC. But I want to add a one-word comment in brackets to the 
title that appears in the TOC, so that I get:


Chapter title (comment).. 5  or whatever the page number is.

Is there are way I can add  extra content to an item that appears in the 
TOC?


\startchapter
[
  title={Title of chapter},
  list={What appears in TOC},
  bookmark={What appears in bookmarks},
]


\stopchapter

Aditya___
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] \title with extra content in toc

2020-08-11 Thread jbf
Still dealing with \title, but am creating a separate thread because the 
question is different.


As well as using \title within frontmatter (my previous question was 
about the header not appearing on final page if it is an odd/recto page) 
I am also using it in the main body for 'chapters' that I don't want 
numbered, and of course, have ensured that such \title items can appear 
in the TOC. But I want to add a one-word comment in brackets to the 
title that appears in the TOC, so that I get:


Chapter title (comment).. 5  or whatever the page number is.

Is there are way I can add  extra content to an item that appears in the 
TOC? In this case it would be the same comment in each instance, but my 
question assumes that there could also be a need for different comments, 
none of which appear in the 'chapter' title in the main body.


Am using MkIV BTW,

Julian

___
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] lpath to select last item

2020-07-08 Thread Pablo Rodriguez
On 7/8/20 11:59 AM, Hans Hagen wrote:
> On 7/7/2020 10:46 PM, Pablo Rodriguez wrote:
>> [...]
>> Which would be the right lpath to select the last item in each list?
> This should work but we're one off so i need to fix that.
>
> \startbuffer[demo]
> 
>
>  first
>  any
>  last
>
> 
> \stopbuffer
>
> \startxmlsetups xml:demo:base
>\xmlsetsetup{#1}{document|ul|li}{xml:*}
>\xmlsetsetup{#1}{ul/li[1]}{xml:item:first}
>\xmlsetsetup{#1}{ul/li[-1]}{xml:item:last}
> \stopxmlsetups

Many thanks for your help, Hans.

This is like magic to me. But I’m afraid that my description was inaccurate.

I need to mark the last item from nested lists, but considering each
 (such as in my sample), not the whole document.

Just in case it isn’t clear, this is the XML source with desired items
marked:


Heading
  
list***this one***
  
Heading
  
list

   list ***this one***

  
Heading
  
list

  list
  
list   ***this one***
  

  


I hope it is clear now that it is the last item in a nested list, but
for each  element.

Many thanks for your help again,

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] spacing before items

2020-06-29 Thread Mike Cooper


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of David
> Rogers
> Sent: Thursday, June 25, 2020 12:29 PM
>
> 
> You may already be doing what I'm about to suggest. If so, please
> disregard.
> 

Thanks again David!  IIRC, I did find one solution this way.  I think the 
biggest challenge with this approach is, as you mention, learning the best 
search keywords.  I think that should improve over time.

Thank you for this good advice!


___
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] spacing before items

2020-06-25 Thread David Rogers

Mike Cooper  writes:


Thanks David!

I don't think I've ever been quite so frustrated at trying to 
learn anything else in my life!  If it wasn't required by my 
job, I wouldn't have made it past the first day or two (3 months 
ago).  But I'm slogging away and it's gradually coming together 
(I think).  I spent my whole day yesterday figuring out how to 
do some very basic formatting/layout that would have taken 5-10 
minutes in Word or HTML/CSS.


People have been very helpful and patient with me!!  Thanks to 
all of you for that!


And thanks David for this explanation of the situation.

regards,
Mike


You may already be doing what I'm about to suggest. If so, please 
disregard.


One source that has helped me a lot is the archive of this mailing 
list, where I've searched for any messages that mention whatever 
it is that I'm looking for. Of course such a search is slower than 
scrolling through the index of a manual, and sometimes it's hard 
to figure out "What keyword do I search on? If I knew the correct 
keyword, I'd be done this already!" - but quite often I've "hit 
the jackpot" and found exactly what I needed, or close enough that 
I only had to change some details.


You will soon notice that there are some people on the list who 
consistently see through the problems that are presented, and who 
say something like "I think you probably want something like 
this:" - followed by a solution that makes you say confidently 
"A-ha! So THAT'S how that's done!".


The really good problem-solving sessions on the list, both the 
elegant answers and the questions that precede them, could form a 
pretty good start on a manual. Of course such a method is 
hit-or-miss, but in this case there are quite a few hits. Just 
watch out (in much older messages) that you're not fully relying 
on an answer based on ConTeXt Mk II, because many of those 
solutions no longer work in the newer versions.


... which has accidentally led me to another documentation 
comment. Hans's programming philosophy is not something I'm an 
expert on, but it seems clear that he values "usability, good 
function, and getting the job done well" much higher than he 
values "backward compatibility forever". In other words, if 
something is broken or not good enough, he doesn't hesitate to fix 
it or improve it in the best way he can see. This is good for the 
software in that it is constantly improving in every direction, 
but it does also make it a bit more of a challenge to document, 
and a bit more of a challenge to find someone who *wants* to 
document it - "How ConTeXt Used To Work Last Year" is clearly not 
going to be a top-selling title. :) But despite that, the majority 
of what you want to know has not changed in quite some time, and 
usually only *very* old solutions will fail completely.


I want to finish this message by saying: When you read through 
"SomeFile.tex" that you've created, every switch and command in it 
should make sense to you. In the beginning that might not always 
be the case, but it's easier for you to get there than it might 
sound, and you'll see that all the best solutions you get from 
others share that quality of "Ah, I see, that makes sense, I get 
how this works". Most of the time, a solution that doesn't give 
you that feeling is not quite the right way to do it. Of course a 
poor solution is better than nothing, but please don't stay 
satisfied with hairy-looking clusters of commands that sort of 
work but no one knows why. (I've written lots of those, that's why 
I say this.) :) Simple and direct writing means the mistakes will 
soon become obvious; the worst thing to do in ConTeXt is to make a 
complicated mysterious mistake that you can't even find.


Well. THAT turned out longer than I intended. :)

--
David
___
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] spacing before items

2020-06-24 Thread Henning Hraban Ramm

> Am 24.06.2020 um 23:11 schrieb Mike Cooper 
> :
>> Most of you know I’m writing at this German ConTeXt book since years...
>> I use the incomplete version myself a lot, and I very much hope that at 
>> least every
>> second German TeX user will buy it ;)
> 
> Awesome!  Keep at it!
> Maybe when there's an English version, I'll still need it!  :-)

Even if I did plan an English version, I don’t think it will happen... First I 
need to complete the German version.

>> With TeX, footnotes, ToCs and indexes are beginner stuff, while they’re quite
>> advanced with InDesign or Word. Styling your work is much easier in a visual
>> programm – while you do it manually.
> 
> Hmmm...  I don't find those things to be at all advanced in Word.   ???

It’s easier in Word (or LibreOffice) than in InDesign, true.
Never tried to make an index in LO/Word.

But ToCs in word processors tend to get messed up, as other stuff like image 
placement.


>> May I ask what kind of job requires you to learn ConTeXt? That’s rare.
> 
> Haha!  I now work with Jan Willem Flamma (who is on this list) in the 
> training industry.  He tells me that using ConTeXt with XML will give us a 
> modularity to our training content such that a modification in one place is 
> more or less automatically taken care of for every course manual that uses 
> that content.  (At least that's my current understanding.)  So I've been 
> trying to learn ConTeXt and now slowly chipping away at coding one of our 
> smaller homework chapters.

It’s at least possible to make it efficient.

I never use XML input but mostly convert DOCX to ConTeXt and work in that.

My main job ATM is with technical documentation on a specialized LaTeX3 system: 
several similar machines, several translations, i.e. modularity pays off.

At a former job (newspaper prepress admin) I prepared training material on 
Acrobat Pro using ConTeXt; presentations and handouts in the same documents, 
using modes.


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

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


Re: [NTG-context] spacing before items

2020-06-24 Thread Mike Cooper


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Henning
> Hraban Ramm
> Sent: Wednesday, June 24, 2020 2:20 PM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] spacing before items
> 
> 
> 
> Most of you know I’m writing at this German ConTeXt book since years...
> I use the incomplete version myself a lot, and I very much hope that at least 
> every
> second German TeX user will buy it ;)

Awesome!  Keep at it!
Maybe when there's an English version, I'll still need it!  :-)


> 
> Googling is necessary and helpful for LaTeX, but there aren’t so many blog or
> forum entries about ConTeXt.

Yes, this has been kind of frustrating too.  It's certainly challenged my 
searching skills to find and separate ConTeXt from LaTeX.


> 
> With TeX, footnotes, ToCs and indexes are beginner stuff, while they’re quite
> advanced with InDesign or Word. Styling your work is much easier in a visual
> programm – while you do it manually.

Hmmm...  I don't find those things to be at all advanced in Word.   ???


> 
> There is more beginner level documentation for ConTeXt than for ObjC, but we 
> still
> assume a basic familiarity with TeX and principles of design and typography.

Yes, this is exactly what I've found in just about everything labeled 
"beginner" or "basic" for ConTeXt documentation.  Maybe it would be "beginner" 
for someone who already knows some other typesetting code...  The best beginner 
thing I found was Willi Egger's "ConTeXt for Beginners" (TUGboat, Volume 38 
(2017), No. 3).  Only it's too short!  And I think my own background in 
HTML/CSS made it easier than it would be for someone who comes from an 
average-Word-user background.


> 
> >>I spent my whole day yesterday figuring out how to do some very basic
> >> formatting/layout that would have taken 5-10 minutes in Word or HTML/CSS.
> 
> But I’m quite sure if you figured it out on your own, you know how to do it 
> next
> time. Or if you forget, you can look for your own solution (I recur to my old
> environments all the time).

Yes, that at least is a consolation!


> 
> May I ask what kind of job requires you to learn ConTeXt? That’s rare.

Haha!  I now work with Jan Willem Flamma (who is on this list) in the training 
industry.  He tells me that using ConTeXt with XML will give us a modularity to 
our training content such that a modification in one place is more or less 
automatically taken care of for every course manual that uses that content.  
(At least that's my current understanding.)  So I've been trying to learn 
ConTeXt and now slowly chipping away at coding one of our smaller homework 
chapters.


> 
> > I've always found w3chools.com to be especially helpful with HTML/CSS
> because they give plenty of examples and explanation.
> 
> Please don’t use w3fools! It’s full of errors and bad practice. (At least it 
> was some
> years before; I can’t imagine it got fundamentally better.)

Oh interesting!  I've always found it very helpful.  Probably, I haven't 
attempted the more advanced features/coding.  ??


> 
> > 
>   I spent *days* trying to figure out how to add more whitespace
> around a floated graphic (the default is too cramped in my opinion).  I 
> finally just
> threw up my hands and decided that no one else has this opinion but me so
> nobody has ever "fixed" it and thus, no solution exists.
> 
> Hm, did you try the margin options of
> https://wiki.contextgarden.net/Command/setupfloat ?

I don't remember what all I tried at this point.  I think it's been over two 
months since I just gave up on that one.  I'll take another look.  Thanks!


> 
> The learning curve *is* steep and stays steep for a long while, depending on 
> your
> requirements.
> 
> 
> Good luck!
> Hraban

THANKS HRABAN!!


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

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


<    1   2   3   4   5   6   7   8   9   10   >