Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Mikael P. Sundqvist
Hi, this is what I learned from the list to use. I'm sorry, but the names sound a bit Swedish, but I'm sure you can change that. This way it was also easy to add different types like hints, answers and solutions and get clickable letters accordingly. /Mikael %Test file

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Alan Braslau
On Thu, 31 Jan 2019 22:10:40 -0500 Sanjoy Mahajan wrote: > Thank you, Matthias and Wolfgang, for the examples/solutions. Why not use the list mechanism? Alan ___ If your question is of interest to others as well,

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Sanjoy Mahajan
Thank you, Matthias and Wolfgang, for the examples/solutions. If I understand them right, there must be one solution for each exercise (otherwise the solution numbering gets out of sync). Or do the coupling= options in Matthias's example remove that restriction? In my experiments with the

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Weber, Matthias
A while back I asked a similar question, and Hans pointed out the following which I still use: \defineenumeration [exercise] [way=bysection, text=Exercise, coupling=solution, location=hanging] \defineenumeration [solution] [text=Solution, way=bysection, coupling=exercise,

Re: [NTG-context] Headings vs. enumerations

2019-01-31 Thread Wolfgang Schuster
Clyde Johnston schrieb am 31.01.19 um 21:07: I have a document that contains a numbered enumeration that spans 107 pages – it’s a legal document where \items are clauses.  I would like to put level one of the enumeration in a table of contents. I have read the available documentation but I

Re: [NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Wolfgang Schuster
Hi Sanjoy, when you have a equal number of questions ans answers you can create a enumeration for each and collect the answers with the block mechanism. At the end of the document you can flush the collected answers. \defineblock [answer] \defineenumeration [question] \defineenumeration

[NTG-context] getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-01-31 Thread Sanjoy Mahajan
Dear List, I'm trying to have problem solutions automatically collected, each with its corresponding problem number, e.g. 2.3, and then typeset at the end of a document. Thus, I imagine something like \startproblem{A problem title} % Problem 1.1 A question \startsolution An

Re: [NTG-context] New logo proposal

2019-01-31 Thread Henri Menke
Dear Paul, Personally I really like your logo design, but there is one thing that bothers me a lot, which is the non-free font. Could it perhaps be replaced by a free font, e.g. Fetamont? https://www.ctan.org/pkg/fetamont Cheers, Henri On 29/01/19 12:18 PM, Paul Schalck wrote: > Dear ConTeXt

[NTG-context] Headings vs. enumerations

2019-01-31 Thread Clyde Johnston
I have a document that contains a numbered enumeration that spans 107 pages - it's a legal document where \items are clauses. I would like to put level one of the enumeration in a table of contents. I have read the available documentation but I am not clear whether I should make level one

Re: [NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Hans Åberg
> On 31 Jan 2019, at 15:00, Clyde Johnston wrote: > > Maybe this should be a language specific parameter. How would you achieve a > similar result with the Indian numbering system, for instance? It is an additional feature that may or may not be linked to language. For example, in Swedish

Re: [NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Clyde Johnston
Maybe this should be a language specific parameter. How would you achieve a similar result with the Indian numbering system , for instance? Also, decimal and thousands separators vary from country to country. In France, for example,

Re: [NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Otared Kavian
Hi Marco, Can this give what you wish? \define[2]\myunit{\spaceddigits{#1}\unit{#2}} \starttext \myunit{123456789}{volt} \stoptext > On 31 Jan 2019, at 13:28, Marco Patzer wrote: > > Hi! > > I'm wondering if there's a way to have automatic thousands separation in the > \unit command?

[NTG-context] Automatic thousands separation in \unit

2019-01-31 Thread Marco Patzer
Hi! I'm wondering if there's a way to have automatic thousands separation in the \unit command? \spaceddigits does that, but it doesn't work inside \unit. And using both would be quite verbose to write. Example: \starttext %% no thousands separation \unit{123456789 volt} %% manual