Re: [NTG-context] How to make the first chapter number 0?

2018-01-27 Thread Jeong Dal
Dear Lukas, Thank you for the solution. It works fine for all, definitions, theorems, … except the numbers which I defined for exercise. I’ll change the number definition of exercise following your example. Thank you again. Best regards, Dalyoung

Re: [NTG-context] How to make the first chapter number 0?

2018-01-27 Thread Procházka Lukáš Ing .
Hello Jeong, see both solutions attached. Check them in relation to TOC. Best regards, Lukas On Sat, 27 Jan 2018 16:08:03 +0100, Jeong Dal wrote: Hi, I’d like to start the chapter number from 0. So I tried “\setcounter[chapter][-1]” or “\setcounter[chapter][0]” to test,

[NTG-context] How to make the first chapter number 0?

2018-01-27 Thread Jeong Dal
Hi, I’d like to start the chapter number from 0. So I tried “\setcounter[chapter][-1]” or “\setcounter[chapter][0]” to test, but it doesn’t work. Is there any good method to make the number of the first chapter 0? Thank you for reading. Best regards, Dalyoung

Re: [NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Otared Kavian
> On 27 Jan 2018, at 12:39, Wolfgang Schuster > wrote: >> […] > […] > You’re missing a coma after “picture=hacker.jpg” which results in “jpeg ” > (which a space at the end) as file extension for the image. Yes indeed this was the issue… In fact I had tested «

Re: [NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Wolfgang Schuster
Otared Kavian 27. Januar 2018 um 12:31 Hi Wolfgang, Thanks again! Indeed \defineexpandable\authorpicture{hacker.jpg} solves the problem in the simplified case I was reporting. However in the real case, the file « hacker.jpg » is in fact a file which depends on

Re: [NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Otared Kavian
> On 27 Jan 2018, at 11:43, Wolfgang Schuster > wrote: > […] > \defineexpandable\...{…} Hi Wolfgang, Thanks again! Indeed \defineexpandable\authorpicture{hacker.jpg} solves the problem in the simplified case I was reporting. However in the real case,

Re: [NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Wolfgang Schuster
Otared Kavian 27. Januar 2018 um 11:28 Hi all, I have a document (sort of proceedings of a meeting) which have to contain several pages, with each page dedicated to an author and a specific figure (say a photo). In mkii I used to do have a command like

Re: [NTG-context] Bug in interaction and button?

2018-01-27 Thread Hans Hagen
On 1/27/2018 11:09 AM, Otared Kavian wrote: Hi Hans, While experimenting with \button according to your suggestions, I noticed that there might be a bug somewhere between interaction and the button command: the following code (sent by you some years ago…) works fine as expected in mkii but

[NTG-context] Placing a figure with a command for the file in mkiv

2018-01-27 Thread Otared Kavian
Hi all, I have a document (sort of proceedings of a meeting) which have to contain several pages, with each page dedicated to an author and a specific figure (say a photo). In mkii I used to do have a command like \define\authorpicture{hacker.jpg} and then use a command like:

Re: [NTG-context] Django: using ConTeXT mkiv to output PDF

2018-01-27 Thread Hans Hagen
On 1/26/2018 7:41 PM, kaddour kardio wrote: def courrier_mkiv(request, pk2, pk1):     entry = Courrier.objects.get(pk=pk2)     cource = Patient.objects.get(pk=pk1)     context = dict({'courrier': entry, 'patient': cource})     # buffer = BytesIO()     template =

[NTG-context] Bug in interaction and button?

2018-01-27 Thread Otared Kavian
Hi Hans, While experimenting with \button according to your suggestions, I noticed that there might be a bug somewhere between interaction and the button command: the following code (sent by you some years ago…) works fine as expected in mkii but does not work in mkiv (neither the most recent

Re: [NTG-context] Multiple columns in an itemization group

2018-01-27 Thread jdh
Thanks for the help. I appreciate it. kaddour kardio wrote: > You just have to add "three," beside "column" in the options > > On Wednesday, January 24, 2018, jdh wrote: > > #1 Is there any way to instruct ConText, when using "itemize" with >

[NTG-context] (again) references to sections in registers

2018-01-27 Thread Pablo Rodriguez
Dear list, I have the following sample: \starttext \chapter{Chapter} \section{Section} \index{one} \subsection{Subsection} \index{two} \placeindex \stoptext How can I do the following? - "one" is referred in the index to 1.1. -