Re: [NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-25 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 25. Juni 2018 um 00:46 Dear gang, mtx-context | current version: 2018.06.24 18:28 In the attached and below, we want sectioning numbers placed and naturally aligned in the margin: === \definecombin

Re: [NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-24 Thread Idris Samawi Hamid ادريس سماوي حامد
On Sun, 24 Jun 2018 17:09:02 -0600, Wolfgang Schuster wrote: 2. Oddity: Why does the TOC in the attached example default to a monospaced font? You put \placecontent before \starttext but the default fonts are loaded after \starttext. When you now put text in a box before \starttext a mon

Re: [NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-24 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد <mailto:idris.ha...@colostate.edu> 25. Juni 2018 um 00:46 Dear gang, mtx-context | current version: 2018.06.24 18:28 In the attached and below, we want sectioning numbers placed and naturally aligned in the margin: === \definecombin

[NTG-context] Table of Contents sectioning numbers in margin + oddity

2018-06-24 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, mtx-context | current version: 2018.06.24 18:28 In the attached and below, we want sectioning numbers placed and naturally aligned in the margin: === \definecombinedlist % \setuplist[] [content] [section] [level=section, alternative=c, criterium=local] \setuphead[section

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
> This would be a solution: > > Index term, and some > text > 21, 34, 45, 72, 89, >101, 103, 109 > > where the rule is: when the numbers exceed the text width, close the > paragraph, then start a new, right aligne

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
\wordright is ok until the numbers don't exceed the text width. It manages these two cases right: Index term, and some text 21, 34, 45, 72 Index term, and some text 21, 34, 45, 72, 89 When the numbers exceed the text width, it fails: Index term, and some text 21, 34, 45, 72, 89, 101

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread Hans Hagen
On 5/10/2018 12:35 PM, MF wrote: This is a more polite version, that lets you restore the original macros. \let\origstartregisterpages=\startregisterpages% \let\origstopregisterpages=\stopregisterpages% \def\setupregisterpagescommand#1{% \unexpanded\def\startregisterpages{\origstartregisterpa

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread Wolfgang Schuster
The following solution which adds two additional keys (pageleft and pageright) is cleaner because it doesn’t have to overload commands. \unprotect \unexpanded\def\startregisterpages {\begingroup \dostarttagged\t!registerpages\empty \useregisterstyleandcolor\c!pagestyle\c!pagecolor \

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
This is a more polite version, that lets you restore the original macros. \let\origstartregisterpages=\startregisterpages% \let\origstopregisterpages=\stopregisterpages% \def\setupregisterpagescommand#1{% \unexpanded\def\startregisterpages{\origstartregisterpages#1\bgroup } \unexpanded\def\sto

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-10 Thread MF
Thanks Wolfgang and sorry if i reply to my mail, since i've downloaded yours on another PC. I've found these macros in strc-reg.mkiv, that are called right before and after the page numbers: \unexpanded\def\startregisterpages {\begingroup \dostarttagged\t!registerp

Re: [NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-09 Thread Wolfgang Schuster
There is no option to apply a command to all page numbers but you can add something after the register entry with the textcommand key. Be aware this solution isn’t perfect because in the worst case (narrow columns for the register or long entries) page numbers can be split on multiple lines

[NTG-context] registers: how can I place a command around the whole of the page numbers of an index term?

2018-05-09 Thread MF
Hello list, i'd like moving the page numbers in my index to the right, with a \wordright. \setupregister[index][n=1,alternative=A] \starttext \CONTEXT\index{\ConTeXt} \page \LATEX\index{\LaTeX} \page \CONTEXT\index{\ConTeXt} \page \placeindex \stoptext The index is at page 4. I want to mov

Re: [NTG-context] Missing Chapter Numbers

2017-10-22 Thread Pablo Rodriguez
On 10/22/2017 08:59 PM, Thangalin wrote: > The following code does not hide the headings: > [..] > The following code also does not hide the headings: > [...] > However, adding "section" makes the sub- and subsubsections hide as expected: > [...] Hi Thangalin, I’m afraid that it doesn’t work as y

Re: [NTG-context] Missing Chapter Numbers

2017-10-22 Thread Thangalin
The following code does not hide the headings: \setuphead[subsection][ placehead=no, number=no, ] % placehead=hidden breaks the counters? \setuphead[subsubsection][ placehead=no, number=no, ] \starttext \chapter{chapter} chapter \section{section} section \section{subsection}

Re: [NTG-context] size of footnote numbers

2017-09-30 Thread Otared Kavian
aller type (via > \switchtobodyfont in a defined startstop). > > Now the author insists that their footnote numbers should have the same size > as in the body text. > Since the footnotes are mostly source annotations at the end, it makes some > sense. > > What would be the b

Re: [NTG-context] size of footnote numbers

2017-09-30 Thread Pablo Rodriguez
On 09/29/2017 01:34 PM, Henning Hraban Ramm wrote: > Ahoi, > > in my current book there are some quotations typeset in a smaller > type (via \switchtobodyfont in a defined startstop). > > Now the author insists that their footnote numbers should have the > same size as in t

[NTG-context] size of footnote numbers

2017-09-29 Thread Henning Hraban Ramm
Ahoi, in my current book there are some quotations typeset in a smaller type (via \switchtobodyfont in a defined startstop). Now the author insists that their footnote numbers should have the same size as in the body text. Since the footnotes are mostly source annotations at the end, it makes

Re: [NTG-context] Line numbers in output

2017-08-21 Thread Roger Mason
"Schmitz Thomas A." writes: > http://wiki.contextgarden.net/Command/startlinenumbering is what you > find when you search for “linenumbering” on the wiki. Thanks Thomas. I searched on 'context garden add line num

Re: [NTG-context] Line numbers in output

2017-08-21 Thread Schmitz Thomas A.
> On 21. Aug 2017, at 16:25, Roger Mason wrote: > > > Is there a switch to enable lines to be numbered in the output pdf > document? I have seen the garden entries on numbering for sections of > verbatim text but I would like the whole document to have l

[NTG-context] Line numbers in output

2017-08-21 Thread Roger Mason
Hello, Is there a switch to enable lines to be numbered in the output pdf document? I have seen the garden entries on numbering for sections of verbatim text but I would like the whole document to have line numbers. My ConTEXt version is 2016.01.04 15:47. Maybe it is time to update! Thanks

Re: [NTG-context] Formula numbers in RTL mode

2017-05-28 Thread Hans Hagen
On 5/26/2017 5:02 AM, Mohammad Hossein Bateni wrote: For the record, here is my solution until the issue is fixed for RTL. \setupformula[distance=0pt] This causes the formula numbers to be at the proper place for left/right as well as LTR/RTL. It prevents some custom placement of the formula

Re: [NTG-context] Formula numbers in RTL mode

2017-05-25 Thread Mohammad Hossein Bateni
For the record, here is my solution until the issue is fixed for RTL. \setupformula[distance=0pt] This causes the formula numbers to be at the proper place for left/right as well as LTR/RTL. It prevents some custom placement of the formula number, which I do not care about. —MHB On Mon, May

[NTG-context] Missing Chapter Numbers

2017-05-19 Thread Thangalin
\stopscenesubsection } \stoptext The chapter headings should be enumerated 1 through 5, but some chapter numbers are either hidden or enumerated incorrectly. Using "placehead=no" causes the spacing to change when framing an entire section. Related: https://github.com/contextgarden/context-m

[NTG-context] Formula numbers in RTL mode

2017-05-15 Thread Mohammad Hossein Bateni
rmula numbers are not placed at the far end when in RTL. Here is a MWE: \starttext \input knuth \placeformula \startformula E = mc^2. \stopformula \righttoleft \placeformula \startformula E = mc^2. \stopformula \stoptext Attached is the result from context version 2017.05.14 19:09.

Re: [NTG-context] Strange numbers appear (when figures are moved in columnsets)

2016-12-28 Thread Mikael P. Sundqvist
Sorry for the noise. Adding \usemodule[newcolumnsets] makes the numbers go away. /Mikael On Wed, Dec 28, 2016 at 7:08 PM, Mikael P. Sundqvist wrote: > Hi! > > The example below gives strange numbers (4110) and (1410) in the pdf > file, and the latter one kicks me out of the gri

[NTG-context] Strange numbers appear (when figures are moved in columnsets)

2016-12-28 Thread Mikael P. Sundqvist
Hi! The example below gives strange numbers (4110) and (1410) in the pdf file, and the latter one kicks me out of the grid. Is this a bug? /Mikael (yes, I'm using a late standalone) %% start of example \setuplayout[ grid=yes, ] \showgrid \definecolumnset[example][n=2] \star

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

2016-11-07 Thread Willi Egger
swer or Question > > \setupinteraction[state=start] > > % We define two counters which follow the numbers > % appearing in Question and Answer > > \newcounter\QuestionCounter > \newcounter\AnswerCounter > > % We create two commands to be used in the > % enumeratio

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

2016-11-07 Thread Otared Kavian
Hi Dalyoung, Yes I see what your problem might had been. Recently ConTeXt creates a fine named FILENAME.tuc when one typesets FILENAME.tex. This *.tuc file creates difficulties when the typesetting is stopped for some reason or another, because then at times it is impossible to typeset again th

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. Any

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

2016-11-06 Thread Otared Kavian
c way 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

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 do

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

2016-11-06 Thread Otared Kavian
nters 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

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 prevent

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 issu

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 someho

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 numb

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 much Wolfgang! > > Now I can get

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 t

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 w

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 interacti

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 \usemodule[

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 th

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: \sta

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 importa

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 reference

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 no

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 \resetcounter[algorithmicli

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

2016-10-27 Thread Mohammad Hossein Bateni
ora > 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 floating bl

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

[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 i

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 on the

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 (http://wiki.contextgarden.net/Comm

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 is

[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 easie

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
enumber[numberconversion=romannumerals] > \startchapter > \startchapter[title={Bildbeschreibung der Cover-Grafik}] > \setupuserpagenumber[numberconversion=numbers] > \startchapter > [title={Einleitung:"Entwicklung" behindern?}] > \stoptext > > Ähm where do i set the

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, sectio

[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,se

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 defines

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 ammeter for reading practice. > I would like create six

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 ca

[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 of interest to others as w

Re: [NTG-context] Skipped figure numbers

2016-04-01 Thread Aidan Nichol
gt; \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 counter > (e.g., enumeration), then th

Re: [NTG-context] Skipped figure numbers

2016-04-01 Thread Hans Hagen
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 of a

Re: [NTG-context] Skipped figure numbers

2016-04-01 Thread Hans Hagen
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 of a

Re: [NTG-context] Skipped figure numbers

2016-03-31 Thread Aditya Mahajan
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\stopcombination be an alternative to the

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 control placement thr

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. In this

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 and

[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 of the

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

2016-01-19 Thread Mohammad Hossein Bateni
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 incorrect type

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

2016-01-19 Thread Wolfgang Schuster
d this 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[

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

2016-01-19 Thread Mohammad Hossein Bateni
ple and 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 prod

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 gmail.com> writes: One hacky way to fix it is the following: \setupheadertexts[{\getmarking[chapter]}] [{\lefttoright\pagenumber}][{\lefttoright\pagenumber}] [{\getmarking[chapter]}]

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 somethi

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 rightst

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 thread;

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: >> >> \defineseparatorset[das

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

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

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

2016-01-17 Thread Mohammad Hossein Bateni
t 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 >> are fine.

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

2016-01-17 Thread Mohammad Hossein Bateni
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 appear correctly. I

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

2016-01-09 Thread Wolfgang Schuster
section, 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 effec

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 numbe

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: > No difference with

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