Re: [NTG-context] Clickable question/answer numbers

2016-11-07 Thread Jeong Dal
Dear Otared, It is not the problem of your code. Strangely, the code you just sent to me is stopped by the same reason during the compilation even though it does not contain the word “myanswer”. After removing *.tmc file, the error disappear. I still don’t know why such an error occurred.

Re: [NTG-context] Clickable question/answer numbers (Otared Kavian)

2016-11-06 Thread Otared Kavian
Upon clicking on an interactive title for Question or Answer one goes to the corresponding Answer or Question \setupinteraction[state=start] % We define two counters which follow the numbers % appearing in Question and Answer \newcounter\QuestionCounter \newcounter\AnswerCounter % We

Re: [NTG-context] Clickable question/answer numbers (Otared Kavian)

2016-11-06 Thread Jeong Dal
Dear Otared, Hi, I run the given code and got an error message as following. tex error > tex error on line 1 in file virtual://block.answer.2: ! Undefined control sequence l.1 \myanswer [Q:test] Would you please tell me how to avoid such an error? It seems to me that you

Re: [NTG-context] Clickable question/answer numbers

2016-11-06 Thread Otared Kavian
which follow the numbers % appearing in Question and Answer \newcounter\QuestionCounter \newcounter\AnswerCounter % We create two commands to be used in the % enumeration environments % Note that the check for trial typestting % \doifnotmode{*trialtypesetting} % is necessary in order to avoid

Re: [NTG-context] Clickable question/answer numbers

2016-11-06 Thread Wolfgang Schuster
Otared Kavian 6. November 2016 um 11:43 Hi Wolfgang, Thanks for the solution you sent yesterday. Your solutions solves the problem I was fighting with, but when I try to apply it to my real document there is an issue when some questions don’t have answers. This

Re: [NTG-context] Clickable question/answer numbers

2016-11-06 Thread Otared Kavian
Hi Wolfgang, Thanks for the solution you sent yesterday. Your solutions solves the problem I was fighting with, but when I try to apply it to my real document there is an issue when some questions don’t have answers. This prevents the synchronization of Questions and Answers if one doesn't

Re: [NTG-context] Clickable question/answer numbers

2016-11-05 Thread Wolfgang Schuster
Otared Kavian 5. November 2016 um 18:34 Hi Wolfgang, Hi Mikael, Thank you both for your great inputs! I tried to modify the code each of you sent yesterday in order to « couple » automatically each question with its answer, using the keyword « coupling=… », but

Re: [NTG-context] Clickable question/answer numbers

2016-11-05 Thread Otared Kavian
Hi Wolfgang, Hi Mikael, Thank you both for your great inputs! I tried to modify the code each of you sent yesterday in order to « couple » automatically each question with its answer, using the keyword « coupling=… », but somehow I am unable to create automatic references by extracting the

Re: [NTG-context] Clickable question/answer numbers

2016-11-05 Thread Mikael P. Sundqvist
Dear Wolfgang, thank you for the information. I will probably do that in next document, since it seems convenient. Best regards, Mikael On Sat, Nov 5, 2016 at 1:38 PM, Wolfgang Schuster wrote: > Mikael P. Sundqvist > 4. November 2016 um 16:33 > Thank you very

Re: [NTG-context] Clickable question/answer numbers

2016-11-05 Thread Wolfgang Schuster
Mikael P. Sundqvist 4. November 2016 um 16:33 Thank you very much Wolfgang! Now I can get exactly what I need, see the example below (also tested with my larger document, available at http://www.maths.lth.se/matematiklth/personal/mickep/analysB2ht16/analys-context.pdf).

Re: [NTG-context] Clickable question/answer numbers

2016-11-04 Thread Mikael P. Sundqvist
Thank you very much Wolfgang! Now I can get exactly what I need, see the example below (also tested with my larger document, available at http://www.maths.lth.se/matematiklth/personal/mickep/analysB2ht16/analys-context.pdf). I'm very happy about this solution. Also, thanks to Hans for giving us

Re: [NTG-context] Clickable question/answer numbers

2016-11-04 Thread Wolfgang Schuster
Mikael P. Sundqvist 3. November 2016 um 16:14 Dear Otared (and others), while waiting for Hans reply on the \namedenumerationparameter and \enumerationparameter, this is the best I could do. Now, only "Question" is clickable and not the number, but I think I could live

Re: [NTG-context] Clickable question/answer numbers

2016-11-04 Thread Otared Kavian
Hi Mikael, Thank you for sharing the solution you found! Your definitions suit me too, but in any case I’ll play with your code to see whether using the concept of « coupling » between each exercise and its solution (or hint, if one adds them) could allow the creation of an automatic

Re: [NTG-context] Clickable question/answer numbers

2016-11-03 Thread Mikael P. Sundqvist
Dear Otared (and others), while waiting for Hans reply on the \namedenumerationparameter and \enumerationparameter, this is the best I could do. Now, only "Question" is clickable and not the number, but I think I could live with that if no other solution show up. Best regards, Mikael

Re: [NTG-context] Clickable question/answer numbers

2016-11-03 Thread Mikael P. Sundqvist
Dear Hans, This seems to be exactly what I need, but I cannot get it to work. With the example below nothing comes from those commands (I just updated my standalone to the latest one). On the other hand, with text instead of reference it works. Best regards, Mikael \defineenumeration[question][

Re: [NTG-context] Clickable question/answer numbers

2016-11-03 Thread Hans Hagen
On 11/2/2016 9:58 PM, Mikael P. Sundqvist wrote: Dear Otared, thank you again. This is somehow a proof that it should work. In my real document I use the title to name some exercises (after old exams), and I don't see how that can be combined with your solution. If someone else reads this: I

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
Dear Otared, thank you again. This is somehow a proof that it should work. In my real document I use the title to name some exercises (after old exams), and I don't see how that can be combined with your solution. If someone else reads this: I think the question boils down to the following:

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Otared Kavian
Hi Mikael, A partial solution to the feature we are discussing is contained in the example below, but somone more aware of ConTeXtish coding might improve it. It is not satisfactory in that one has to define twice \startquestion and \StartQuestion, \beginanswer and \BeginAnswer, and more

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
Dear Otared (and list), thank you for your reply and support. The links from the answers to the questions work as wanted with my solution, it is the links from the questions to the answers that do not. I guess I need something like headcommand={\in{Question}[A:###]}, where ### is the

Re: [NTG-context] Clickable question/answer numbers

2016-11-02 Thread Otared Kavian
Hi Mikael, I had a similar question some time ago, but I wanted to add a sort of automatic referencing of questions and answers (and interaction going from questions to answers and back). If you accept the hurdle of adding manual references, in your case you can add (for instance…)

[NTG-context] Clickable question/answer numbers

2016-11-02 Thread Mikael P. Sundqvist
Dear list, I have a pretty large text with a lot of questions and answers, and want the user(students) to be able to click in the pdf to go from a certain exercise to its answer, and back. I have a solution (see below) to go from answers to questions, but not the other way around. I simply have

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-27 Thread Wolfgang Schuster
Mohammad Hossein Bateni 27. Oktober 2016 um 17:59 How does one reset the counter then? Normally one would like it to start from 1 within each algorithmic block. But definelabel seems to have bytext and bysection options only. You can use

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-27 Thread Mohammad Hossein Bateni
jmm...@us.es> > 24. Oktober 2016 um 14:37 > Hi, I'm trying to use Algorithmic module with floating and line numbering. > > In the first attempt, I get the "code" with lines numbered. But isn't > floating. > > In the second one, line numbers disappear inside the floa

Re: [NTG-context] Algorithmic, Floats and line numbers.

2016-10-26 Thread Wolfgang Schuster
Javier M Mora <mailto:jmm...@us.es> 24. Oktober 2016 um 14:37 Hi, I'm trying to use Algorithmic module with floating and line numbering. In the first attempt, I get the "code" with lines numbered. But isn't floating. In the second one, line numbers disappear inside the float

[NTG-context] Algorithmic, Floats and line numbers.

2016-10-24 Thread Javier M Mora
Hi, I'm trying to use Algorithmic module with floating and line numbering. In the first attempt, I get the "code" with lines numbered. But isn't floating. In the second one, line numbers disappear inside the floating block. Two questions: * How can I get line numbers inside floa

Re: [NTG-context] Placement of numbers in numbered equations on the left

2016-09-11 Thread Hans Hagen
numbers on the left, when using \startalign. Actually the location of those equation numbers is correct as far as the horizontal distance is concerned, but it is not vertically. In the attached PDF (which is the result of the following example) one can see that equation number (5) is placed

Re: [NTG-context] Placement of numbers in numbered equations on the left

2016-09-10 Thread Aditya Mahajan
On Sat, 10 Sep 2016, Otared Kavian wrote: Hi Hans, Following up the previous bug report, I tried the latest version, ConTeXt ver: 2016.09.09 08:21 MKIV beta, and noticed that you have solved one part of the problem with the placement of equation numbers on the left, when using \startalign

Re: [NTG-context] Placement of numbers in numbered equations on the left

2016-09-10 Thread Otared Kavian
Hi Hans, Following up the previous bug report, I tried the latest version, ConTeXt ver: 2016.09.09 08:21 MKIV beta, and noticed that you have solved one part of the problem with the placement of equation numbers on the left, when using \startalign. Actually the location of those equation

[NTG-context] Placement of numbers in numbered equations on the left

2016-09-07 Thread Otared Kavian
Hi Hans, Thank you for having fixed the issue with numbered equations in math aligned environment, noticed and reported by Mikael Sundqvist. However the problem is solved only when the numbers are on the right: when the numbers are on the left, there is still a discrepancy between the location

Re: [NTG-context] Get "right" numbers using blocks and enumerations

2016-09-06 Thread Mikael P. Sundqvist
On Tue, Sep 6, 2016 at 9:29 PM, Wolfgang Schuster wrote: > Mikael P. Sundqvist > 1. September 2016 um 21:18 > Hi, > > I'm trying to use blocks for answers in a text, but cannot get the > numbering to work as I want. I have read about \processblocks at the > wiki

Re: [NTG-context] Get "right" numbers using blocks and enumerations

2016-09-06 Thread Wolfgang Schuster
Mikael P. Sundqvist 1. September 2016 um 21:18 Hi, I'm trying to use blocks for answers in a text, but cannot get the numbering to work as I want. I have read about \processblocks at the wiki (http://wiki.contextgarden.net/Command/processblocks), but I'm not sure that

[NTG-context] Get "right" numbers using blocks and enumerations

2016-09-01 Thread Mikael P. Sundqvist
Hi, I'm trying to use blocks for answers in a text, but cannot get the numbering to work as I want. I have read about \processblocks at the wiki (http://wiki.contextgarden.net/Command/processblocks), but I'm not sure that is my cure. I probably miss something easy... The problem is probably

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-07-01 Thread Ursula Hermann
}] \stopchapter \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stopchapter \setupuserpagenumber[numberconversion=numbers] \setcounter[userpage][1] \startsection [title=Activité 2] \stopsection \startchapter [title={Cours-Méthodes}] \startsection [title={C

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-07-01 Thread Ursula Hermann
-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \startpart [title={Danksagung}] \startchapter [title={Bildbeschreibung der Cover-Grafik}] \startchapter [title={Einleitung:"Entwick

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Otared Kavian
Hi again, Maybe what you want to achieve is resetting the page numbers at some point: in that case you can say: \page \resetuserpagenumber just before the chapter where you want your chapter with roman numerals beginning at number 1. Best regards: OK > On 28 Jun 2016, at 14:15, Urs

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Otared Kavian
tarttext > \placecontent > \setupuserpagenumber[numberconversion=romannumerals] > \startchapter > \startchapter[title={Bildbeschreibung der Cover-Grafik}] > \setupuserpagenumber[numberconversion=numbers] > \startchapter > [title={Einleitung:"Entwicklung" behindern?}] > \stopte

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-30 Thread Ursula Hermann
Hello Wolfgang! I woud like to change the counter because there is a wrong pagenumber at the numbers, not at the romannumerals . I have compiled but I always have 2 instead of 6.This ist the pagenumber I need. Thanks Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-28 Thread Wolfgang Schuster
Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung:"Entwicklung" behindern?}] \stoptext Ähm where do i set the counter. I mean when I set\setcounter? Where and why do you want to change the page co

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-28 Thread Ursula Hermann
Hello Wolfgang! I have now written as you told me. \starttext \placecontent \setupuserpagenumber[numberconversion=romannumerals] \startchapter \startchapter[title={Bildbeschreibung der Cover-Grafik}] \setupuserpagenumber[numberconversion=numbers] \startchapter [title={Einleitung

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-28 Thread Ursula Hermann
, romannumerals and numbers <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't

Re: [NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-24 Thread Wolfgang Schuster
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 24. Juni 2016 um 15:53 Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section boo

[NTG-context] Problems with Pagenumbers in TOC, romannumerals and numbers

2016-06-24 Thread Ursula Hermann
Hello evrybody! I need in a Toc pagenumberings with romannumrals and numbers. I have written this one: \mainlanguage[de] \setupinteraction[state=start] % don't forget this line! % make chapter, section bookmarks visible when opening document \placebookmarks[chapter,section

Re: [NTG-context] Buffered metapost function freezes random numbers

2016-05-27 Thread Hans Hagen
On 5/25/2016 7:09 PM, DesdeChaves wrote: For educational purposes I try to simulate a ammeter for reading practice. I would like create six or more ammeter with different readings, but i'm not able to do that because metapost create the same random number every time I call the buffer that

Re: [NTG-context] Buffered metapost function freezes random numbers

2016-05-25 Thread DesdeChaves
I found this solution in a old Hans post ( http://ntg-context.ntg.narkive.com/g0lT1D2A/scaling-mpgraphics) 2016-05-25 18:30 GMT+01:00 Wolfgang Schuster : > DesdeChaves > 25. Mai 2016 um 19:09 > For educational purposes I try to simulate a

Re: [NTG-context] Buffered metapost function freezes random numbers

2016-05-25 Thread Wolfgang Schuster
DesdeChaves 25. Mai 2016 um 19:09 For educational purposes I try to simulate a ammeter for reading practice. I would like create six or more ammeter with different readings, but i'm not able to do that because metapost create the same random number every time I

[NTG-context] Buffered metapost function freezes random numbers

2016-05-25 Thread DesdeChaves
For educational purposes I try to simulate a ammeter for reading practice. I would like create six or more ammeter with different readings, but i'm not able to do that because metapost create the same random number every time I call the buffer that defines my ammeter. How can I fix that? Thanks

Re: [NTG-context] Skipped figure numbers

2016-04-01 Thread Alan BRASLAU
On Fri, 1 Apr 2016 11:17:07 +0100 Aidan Nichol wrote: > combinations only give regular grid. Sometimes you want an irregular > grid. Use a nested combination. Alan ___ If your question is

Re: [NTG-context] Skipped figure numbers

2016-04-01 Thread Aidan Nichol
@Hans: Does it make sense to disable \incrementcounter if >>> \trialtypesetting is active? >> >> I was going to suggest such things... > > My motivation is different. If you have any macro in a table (or anything > that requires multiple runs to get the size right) that uses a

Re: [NTG-context] Skipped figure numbers

2016-04-01 Thread Hans Hagen
that figure numbers are being skipped. In this example hacker=1 mill=8, spider=9 and cow=10. Varying the contents of the table reveals that It is skipping two times the number of figures in the table. Is this an invalid combination of features I’m using or am I doing something wrong? The contents

Re: [NTG-context] Skipped figure numbers

2016-04-01 Thread Hans Hagen
that figure numbers are being skipped. In this example hacker=1 mill=8, spider=9 and cow=10. Varying the contents of the table reveals that It is skipping two times the number of figures in the table. Is this an invalid combination of features I’m using or am I doing something wrong? The contents

Re: [NTG-context] Skipped figure numbers

2016-03-31 Thread Aditya Mahajan
ve any macro in a table (or anything that requires multiple runs to get the size right) that uses a counter (e.g., enumeration), then the numbers will be off. That would not happen if a counter is frozen when trialtypesetting is on. P.S. Would not the use of \startcombination\stopcombi

Re: [NTG-context] Skipped figure numbers

2016-03-31 Thread Alan BRASLAU
On Thu, 31 Mar 2016 17:51:07 -0400 Aditya Mahajan wrote: > @Hans: Does it make sense to disable \incrementcounter if > \trialtypesetting is active? I was going to suggest such things... Here is a case where a float is not being used as a floating object in that we want to

Re: [NTG-context] Skipped figure numbers

2016-03-31 Thread Aditya Mahajan
\placefigure[force][]{the first}{\externalfigure[spider][height=1.5in]} \stopxcell \stopxrow \startxrow \startxcell \placefigure[force][]{the second}{\externalfigure[cow][height=1.5in]} \stopxcell \stopxrow \stopxtable It seems to work well except that figure numbers are being skipped

Re: [NTG-context] Skipped figure numbers

2016-03-31 Thread Aidan Nichol
rtxrow >> \startxcell >> \placefigure[force][]{the second}{\externalfigure[cow][height=1.5in]} >> \stopxcell >> \stopxrow >> \stopxtable >> >> It seems to work well except that figure numbers are being skipped. In this >> example hacker=1 mill=8,

Re: [NTG-context] Skipped figure numbers

2016-03-30 Thread Aditya Mahajan
}{\externalfigure[spider][height=1.5in]} \stopxcell \stopxrow \startxrow \startxcell \placefigure[force][]{the second}{\externalfigure[cow][height=1.5in]} \stopxcell \stopxrow \stopxtable It seems to work well except that figure numbers are being skipped. In this example hacker=1 mill=8, spider=9

[NTG-context] Skipped figure numbers

2016-03-30 Thread Aidan Nichol
]} \stopxcell \stopxrow \startxrow \startxcell \placefigure[force][]{the second}{\externalfigure[cow][height=1.5in]} \stopxcell \stopxrow \stopxtable It seems to work well except that figure numbers are being skipped. In this example hacker=1 mill=8, spider=9 and cow=10. Varying the contents

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Wolfgang Schuster
Ibn Saeed 19. Januar 2016 um 04:54 Mohammad Hossein Bateni writes: One hacky way to fix it is the following: \setupheadertexts[{\getmarking[chapter]}] [{\lefttoright\pagenumber}][{\lefttoright\pagenumber}]

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Mohammad Hossein Bateni
nd I can use my hacky solution and mix \lefttoright and \righttoleft to get it right. But is it possible to extend the \setupdirections[bidi=on] to apply to parts other than the main text? I just noticed this does not apply to footnotes either. Having numbers in the TRL footnote text produces

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Wolfgang Schuster
s does not apply to footnotes either. Having numbers in the TRL footnote text produces incorrect typesetting. ConTeXt resets many settings for headers, footers, footnotes etc. and have to set them again for these elements. To apply the bidi setting to footnotes you have to add \startsetups[bi

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-19 Thread Mohammad Hossein Bateni
e my hacky solution and mix \lefttoright > and \righttoleft to get it right. But is it possible to extend the > \setupdirections[bidi=on] to apply to parts other than the main text? I > just noticed this does not apply to footnotes either. Having numbers in > the TRL footnote tex

Re: [NTG-context] RTL problem with figure numbers

2016-01-18 Thread Hans Hagen
On 1/18/2016 7:12 AM, Mohammad Hossein Bateni wrote: I just found a solution to the last question: \defineseparatorset[dashsep][][{--}] \setuphead[section][sectionseparatorset=dashsep] maybe collect all the r2l thing son the wiki so that eventually we can figure out some presets Hans

[NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Ibn Saeed
Hello I am trying to typeset a book in arabic in ConTeXt. I have stumbled upon this issue Page Numbers change after 9 to 01 for page 10 21 for page 12 31 for page 13 41 for page 14 and so on Here is the snapshot of the page number issue: https://i.imgsafe.org/a5f34fb.jpg Here is my ConTeXt

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Ibn Saeed
It seems to be the issue with \setupheader[style=\righttoleft, state=normal] The style is righttoleft to accomodate the proper direction for arabic text. But it messes up the page number direction. ___ If

Re: [NTG-context] RTL problem with figure numbers

2016-01-18 Thread Mohammad Hossein Bateni
That's on my agenda. I'll explore things a little more and hopefully will set up such a page in a few weeks. On Mon, Jan 18, 2016 at 5:13 AM, Hans Hagen wrote: > On 1/18/2016 7:12 AM, Mohammad Hossein Bateni wrote: > >> I just found a solution to the last question: >> >>

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Mohammad Hossein Bateni
One hacky way to fix it is the following: \setupheadertexts [{\getmarking[chapter]}][{\lefttoright\pagenumber}] [{\lefttoright\pagenumber}][{\getmarking[chapter]}] Ideally \setupdirections[bidi] or something like that should be used, as I mentioned in the other

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Ibn Saeed
Mohammad Hossein Bateni gmail.com> writes: > > > One hacky way to fix it is the following: > > \setupheadertexts        [{\getmarking[chapter]}]    [{\lefttoright\pagenumber}]        [{\lefttoright\pagenumber}]        [{\getmarking[chapter]}] > > > Ideally \setupdirections[bidi] or

Re: [NTG-context] Page Numbers change after 9 to 01 - 11 -21 - 31 and so on.

2016-01-18 Thread Hans Hagen
On 1/18/2016 7:14 PM, Ibn Saeed wrote: It seems to be the issue with \setupheader[style=\righttoleft, state=normal] The style is righttoleft to accomodate the proper direction for arabic text. But it messes up the page number direction. you can try leftstyle instead (there's also

Re: [NTG-context] RTL problem with figure numbers

2016-01-17 Thread Mohammad Hossein Bateni
were > already there but I didn't see anyone mention the issue with figures. > > In the following MWE we have 20 pages of a simple text with a section, a > footnote and a figure on each page. The page numbers and footnote numbers > are fine. Section numbers need some care to

Re: [NTG-context] RTL problem with figure numbers

2016-01-17 Thread Mohammad Hossein Bateni
in this has been partly discussed on the list and solutions were >> already there but I didn't see anyone mention the issue with figures. >> >> In the following MWE we have 20 pages of a simple text with a section, a >> footnote and a figure on each page. The page numbers and

Re: [NTG-context] RTL problem with figure numbers

2016-01-09 Thread Hans Hagen
On 1/9/2016 3:37 AM, Mohammad Hossein Bateni wrote: Do you think the solution here is adding a numbercommand key to floats as well which can be set to \righttoleft? Or is the need to do the same for chapter, section, etc. also a bug which should be fixed? actually i don't like to use the

Re: [NTG-context] RTL problem with figure numbers

2016-01-09 Thread Wolfgang Schuster
ection, a footnote and a figure on each page. The page numbers and footnote numbers are fine. Section numbers need some care to appear correctly. I couldn't figure out a similar mechanism for figure numbers, though. The example does not use Indic numbers, which does not have any effect on the p

Re: [NTG-context] RTL problem with figure numbers

2016-01-08 Thread Mohammad Hossein Bateni
Do you think the solution here is adding a numbercommand key to floats as well which can be set to \righttoleft? Or is the need to do the same for chapter, section, etc. also a bug which should be fixed? —MHB On Sun, Jan 3, 2016 at 11:56 PM, Mohammad Hossein Bateni wrote: >

Re: [NTG-context] RTL problem with figure numbers

2016-01-03 Thread Hans Hagen
On 1/3/2016 8:46 PM, Mohammad Hossein Bateni wrote: I use TeXLive 2015 on Mac OS X, CONTEXT 2015.05.18 12:26, and LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238). use the version from contextgarden as things might have evolved Hans

Re: [NTG-context] RTL problem with figure numbers

2016-01-03 Thread Mohammad Hossein Bateni
No difference with latest beta from context-garden: CONTEXT current version: 2015.12.31 16:49 LuaTeX, Version beta-0.87.0 (TeX Live 2016/dev) The 10th page of the PDF output is attached. On Sun, Jan 3, 2016 at 5:27 PM, Hans Hagen wrote: > On 1/3/2016 8:46 PM, Mohammad Hossein

[NTG-context] RTL problem with figure numbers

2016-01-03 Thread Mohammad Hossein Bateni
Hi, Again this has been partly discussed on the list and solutions were already there but I didn't see anyone mention the issue with figures. In the following MWE we have 20 pages of a simple text with a section, a footnote and a figure on each page. The page numbers and footnote numbers

Re: [NTG-context] Section head without numbers, ToC with numbers

2015-10-04 Thread Aditya Mahajan
On Sun, 4 Oct 2015, Erik Margraf wrote: On Sat, Oct 3, 2015 at 11:51 PM, Aditya Mahajan wrote: On Sat, 3 Oct 2015, Erik Margraf wrote: Dear List, is it possible to achieve the following: First section Some Text Second section Some Text Table of Contents 1

Re: [NTG-context] Section head without numbers, ToC with numbers

2015-10-04 Thread Erik Margraf
This does the trick! Thank you! On Mon, Oct 5, 2015 at 2:27 AM, Aditya Mahajan wrote: > On Sun, 4 Oct 2015, Erik Margraf wrote: > > On Sat, Oct 3, 2015 at 11:51 PM, Aditya Mahajan wrote: >> >> On Sat, 3 Oct 2015, Erik Margraf wrote: >>> >>> Dear List, >>>

[NTG-context] Section head without numbers, ToC with numbers

2015-10-03 Thread Erik Margraf
][number=no] This gave me sections without numbers, but als a ToC without numbers Thanks Erik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] Section head without numbers, ToC with numbers

2015-10-03 Thread Aditya Mahajan
On Sat, 3 Oct 2015, Erik Margraf wrote: Dear List, is it possible to achieve the following: First section Some Text Second section Some Text Table of Contents 1 First section 2 Second section (Untested): \setuphead[section][numbercommand=\gobbleoneargument] Aditya

Re: [NTG-context] formatting section and figure numbers

2015-09-25 Thread Pablo Rodriguez
On 09/25/2015 04:15 PM, Meer, Hans van der wrote: > I do number my chapters with roman numerals with: > \setuphead[chapter][conversion=Romannumerals] > I would expect then that sections are numbered roman.arabic for example IX.1 > This is not the case. While the chapter is numbered IX the

[NTG-context] formatting section and figure numbers

2015-09-25 Thread Meer, Hans van der
I do number my chapters with roman numerals with: \setuphead[chapter][conversion=Romannumerals] I would expect then that sections are numbered roman.arabic for example IX.1 This is not the case. While the chapter is numbered IX the sections are numbered 9.1 instead of IX.1. The numbering of

[NTG-context] Bug: Figure numbers do not correspond to their order

2015-08-25 Thread Andreas Becker
ConTeXt version: 2015.08.21 19:57 When the «page» position key is used, the figure numbers do not match their order in the document. In the following example, Figure 2 precedes Figure 1. \starttext \placefigure[page][]{} { \externalfigure[nop][width=0.5\textwidth] } \placefigure

Re: [NTG-context] Split numbers in natural tables

2015-08-23 Thread Xan
in the cells? That is, I want the numbers to fit all the cell size, not matter what return carriages it needs. So some thing like \bTD[width=2.8cm, height=2.8cm] 4611686018427387904 \eTD would be transformed into: \bTD[width=2.8cm, height=2.8cm] 4611 686018427 387904 \eTD

[NTG-context] Split numbers in natural tables

2015-08-21 Thread Xan
How can I do for, automatically, split the number in the cells? That is, I want the numbers to fit all the cell size, not matter what return carriages it needs. So some thing like \bTD[width=2.8cm, height=2.8cm] 4611686018427387904 \eTD would be transformed into: \bTD[width=2.8cm, height

Re: [NTG-context] Split numbers in natural tables

2015-08-21 Thread Hans Hagen
? That is, I want the numbers to fit all the cell size, not matter what return carriages it needs. So some thing like \bTD[width=2.8cm, height=2.8cm] 4611686018427387904 \eTD would be transformed into: \bTD[width=2.8cm, height=2.8cm] 4611 686018427 387904 \eTD or something similar

Re: [NTG-context] Arabic/Hindi numerals in layout structures (headers, page numbers, etc.)

2015-08-03 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 02 Aug 2015 20:24:50 -0600, tala...@fastmail.fm tala...@fastmail.fm wrote: But, in any case, the solution of Wolfgang solves my immediate problem. It would, of course, be nice not to have had to type out many lines of numbers (the Arabic edition has more than 250 sections, i.e

Re: [NTG-context] Arabic/Hindi numerals in layout structures (headers, page numbers, etc.)

2015-08-02 Thread tala...@fastmail.fm
, at 00:32, tala...@fastmail.fm wrote: Dear all, When typesetting in Arabic (or, for that matter, other non-Latin scripts), how does one get numerals to appear ‘natively’ in layout structures such as headers, page numbers, line-numbering, and footnote numbers? In the case of Arabic, this means

[NTG-context] Arabic/Hindi numerals in layout structures (headers, page numbers, etc.)

2015-08-02 Thread tala...@fastmail.fm
Dear all, When typesetting in Arabic (or, for that matter, other non-Latin scripts), how does one get numerals to appear ‘natively’ in layout structures such as headers, page numbers, line-numbering, and footnote numbers? In the case of Arabic, this means using the so-called “mashriqi

Re: [NTG-context] Arabic/Hindi numerals in layout structures (headers, page numbers, etc.)

2015-08-02 Thread Idris Samawi Hamid ادريس سماوي حامد
numbers, line-numbering, and footnote numbers? In the case of Arabic, this means using the so-called “mashriqi”, or “Arabic-Indic”/“Arabic-Hindi” numerals. Is there some option when defining the font family? (I would have thought that using “\mainlanguage[arabic]” would have done

Re: [NTG-context] Arabic/Hindi numerals in layout structures (headers, page numbers, etc.)

2015-08-02 Thread tala...@fastmail.fm
, of course, be nice not to have had to type out many lines of numbers (the Arabic edition has more than 250 sections, i.e. entries), and to have this automated when declaring the main language to be Arabic, for example. But it is a small price to pay for the flexible functionality. All the best

Re: [NTG-context] Register customization for backmatter page numbers

2015-08-01 Thread Pablo Rodriguez
that are indexed. I need to distinguish pagenumbers that appear in the index so that the reader can identify where in the book the page is located. For the frontmatter, that is not a problem. For items that appear in the bodymatter or backmatter, however, page numbers are not unique. One method

[NTG-context] Solved, was Re: Register customization for backmatter page numbers

2015-08-01 Thread Rik Kabel
, page numbers are not unique. One method that has been suggested is to prefix the pagenumber displayed in the index with a mark to indicate that the page is in the backmatter, or to italicize it, or to use an alternate font. I have looked at the defineconversionset and defineprocessor documentation

Re: [NTG-context] Solved, was Re: Register customization for backmatter page numbers

2015-08-01 Thread Rik Kabel
in the bodymatter or backmatter, however, page numbers are not unique. One method that has been suggested is to prefix the pagenumber displayed in the index with a mark to indicate that the page is in the backmatter, or to italicize it, or to use an alternate font. I have looked

[NTG-context] Register customization for backmatter page numbers

2015-07-31 Thread Rik
or backmatter, however, page numbers are not unique. One method that has been suggested is to prefix the pagenumber displayed in the index with a mark to indicate that the page is in the backmatter, or to italicize it, or to use an alternate font. I have looked at the defineconversionset

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-16 Thread Mojca Miklavec
On Fri, May 15, 2015 at 7:07 PM, luigi scarso wrote: a patch is available in trunk, rev. 5244 (not in TeXLive 2015) . Thank you, but something seems wrong. \starttext \hsize=2cm \dorecurse{10}{hi } $$a\eqno(a)$$ \placeformula \startformula a \stopformula $$a^2+b^2=c^2\eqno(b)$$

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-16 Thread Hans Hagen
On 5/16/2015 6:58 PM, Mojca Miklavec wrote: \hsize=2cm $$a^2+b^2=c^2\eqno(b)$$ It's what happens with a too wide formula + number (in context you see an extra shift as we also have some distance between the formula and number). It's sort of a side effect of lack of control over what

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-15 Thread luigi scarso
On Fri, May 15, 2015 at 12:06 AM, Hans Hagen pra...@wxs.nl wrote: On 5/14/2015 7:56 PM, luigi scarso wrote: Ah ok Following the link above for the tracker 807, I have made the patch if ((eqno_box != null) (eqno_w == 0) !l) { tail_append(new_penalty(inf_penalty));

[NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread Mojca Miklavec
Hi, I suspect that the equation numbering in attachment (eq-with-chapter.png) is wrong. Shouldnt't the number be positioned on the right (not on the left)? And in case that this positioning on the left is intentional: is there any way or setting to force the equation number to be moved to the

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread Aditya Mahajan
On Thu, 14 May 2015, luigi scarso wrote: On Thu, May 14, 2015 at 5:45 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 14 May 2015, Mojca Miklavec wrote: Hi, I suspect that the equation numbering in attachment (eq-with-chapter.png) is wrong. Shouldnt't the number be positioned on the

Re: [NTG-context] Weird position of equation numbers for long equations

2015-05-14 Thread luigi scarso
On Thu, May 14, 2015 at 5:45 PM, Aditya Mahajan adit...@umich.edu wrote: On Thu, 14 May 2015, Mojca Miklavec wrote: Hi, I suspect that the equation numbering in attachment (eq-with-chapter.png) is wrong. Shouldnt't the number be positioned on the right (not on the left)? And in case that

<    1   2   3   4   5   6   7   8   9   10   >