Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Henning Hraban Ramm
Am 2019-04-03 um 13:30 schrieb Hans Hagen : > On 4/3/2019 10:56 AM, Henning Hraban Ramm wrote: >> Am 2019-04-02 um 18:53 schrieb Hans Hagen : >>> On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote: Ahoi, with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s

Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Hans Hagen
On 4/3/2019 10:56 AM, Henning Hraban Ramm wrote: Am 2019-04-02 um 18:53 schrieb Hans Hagen : On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote: Ahoi, with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s great. But (at least in German publications) it’s usual that 1,2

Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Herbert Voss
. And for the record: “ff.” for page ranges is now discouraged in most scholarly publications; journals and publishers now say f. for x - x+1, or exact page numbers. it has nothing do do with "folgende", but it is often used because it means nearly the same. folium = { de = {”f”, ”ff”},

Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Thomas A. Schmitz
or page ranges is now discouraged in most scholarly publications; journals and publishers now say f. for x - x+1, or exact page numbers. Thomas ___ If your question is of interest to others as well, please add

Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Ulrike Fischer
Am Wed, 3 Apr 2019 10:56:21 +0200 schrieb Henning Hraban Ramm: > or is there a need to collapse pages in bibliographies? there can be such page ranges with ff both in the bibliography and the citation. But normally you input them hard coded as you know it in advance (in biblatex as 1\psq or

Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-03 Thread Henning Hraban Ramm
Am 2019-04-02 um 18:53 schrieb Hans Hagen : > On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote: >> Ahoi, >> with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s >> great. >> But (at least in German publications) it’s usual that 1,2 becomes 1f. and >> 1,2,3 becomes 1ff. >>

Re: [NTG-context] index "compress" option / collapsing of page numbers

2019-04-02 Thread Hans Hagen
On 4/2/2019 11:54 AM, Henning Hraban Ramm wrote: Ahoi, with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s great. But (at least in German publications) it’s usual that 1,2 becomes 1f. and 1,2,3 becomes 1ff. Is it possible to configure it that way? it should not be

[NTG-context] index "compress" option / collapsing of page numbers

2019-04-02 Thread Henning Hraban Ramm
Ahoi, with \setupregister[compress=yes], index entries 1,2,3,4 become 1–4. That’s great. But (at least in German publications) it’s usual that 1,2 becomes 1f. and 1,2,3 becomes 1ff. Is it possible to configure it that way? Greetlings, Hraban --- https://www.fiee.net

Re: [NTG-context] Omitting part number in chapter numbers

2019-02-20 Thread Wolfgang Schuster
part[title={Part2}] \startchapter[title={Chapter3}] \input knuth \stopchapter \stoppart \stoptext I can make chapter numbers flow independently of parts, which is nice. But the numbering for chapters is like 1.1, 1.2, and 2.3, which is a good default, but not what I want. Is there any way to omit p

[NTG-context] Omitting part number in chapter numbers

2019-02-19 Thread Simon Collier
nput knuth \stopchapter \stoppart \stoptext I can make chapter numbers flow independently of parts, which is nice. But the numbering for chapters is like 1.1, 1.2, and 2.3, which is a good default, but not what I want. Is there any way to omit part number and get only the chapter number displayed

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Hans Åberg
> On 6 Dec 2018, at 15:23, Wolfgang Schuster > wrote: > > The force key is valid for the \definefallbackfamily command, e.g. > > \definefallbackfamily [...] [...] [range={...},force=yes] I tried to test it with the code below, but then it selects the stixtwomath glyphs. So possibly the

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Wolfgang Schuster
Hans Åberg schrieb am 06.12.18 um 15:18: On 2 Dec 2018, at 19:01, Hans Hagen wrote: This super/supscript stuff is a bit more tricky because when a superscript 2 is in the font, and a superscript 3 isn't, using a fake ^3 alongside that ^2 quite certainly will look bad because the 2 is

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-06 Thread Hans Åberg
> On 2 Dec 2018, at 19:01, Hans Hagen wrote: > > This super/supscript stuff is a bit more tricky because when a superscript 2 > is in the font, and a superscript 3 isn't, using a fake ^3 alongside that ^2 > quite certainly will look bad because the 2 is normally of a different design > that

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Åberg
> On 2 Dec 2018, at 19:01, Hans Hagen wrote: > > On 12/2/2018 6:33 PM, Hans Åberg wrote: >> Maybe as a part of general features: A font fallback that selects the >> character from a sequence of fonts if not available, which could involve >> ranges, too, but not necessarily. And being able to

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Hagen
On 12/2/2018 6:33 PM, Hans Åberg wrote: On 2 Dec 2018, at 16:55, Hans Hagen wrote: On 12/2/2018 3:44 PM, Hans Åberg wrote: On 2 Dec 2018, at 10:19, Henning Hraban Ramm wrote: STIX fonts don’t contain super and subscript numbers. They are in STIX Two, so I can get them using

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Åberg
> On 2 Dec 2018, at 16:55, Hans Hagen wrote: > > On 12/2/2018 3:44 PM, Hans Åberg wrote: >>> On 2 Dec 2018, at 10:19, Henning Hraban Ramm wrote: >>> >>> STIX fonts don’t contain super and subscript numbers. >> They are in STIX Two, so I can get t

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Hagen
On 12/2/2018 3:44 PM, Hans Åberg wrote: On 2 Dec 2018, at 10:19, Henning Hraban Ramm wrote: STIX fonts don’t contain super and subscript numbers. They are in STIX Two, so I can get them using: \definefontfamily[stix-two][mono][Stix Two Text] \definefontfamily[stix-two][math][Stix Two

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Hans Åberg
> On 2 Dec 2018, at 10:19, Henning Hraban Ramm wrote: > > STIX fonts don’t contain super and subscript numbers. They are in STIX Two, so I can get them using: \definefontfamily[stix-two][mono][Stix Two Text] \definefontfamily[stix-two][math][Stix Two Math] \setupbodyfont[stix

Re: [NTG-context] Typing Unicode subscript and superscript numbers

2018-12-02 Thread Henning Hraban Ramm
STIX fonts don’t contain super and subscript numbers. Greetlings, Hraban --- https://www.fiee.net http://wiki.contextgarden.net https://www.dreiviertelhaus.de GPG Key ID 1C9B22FD Am 2018-12-01 um 23:30 schrieb Hans Åberg : > Only some of the Unicode subscript and superscript numbers and si

[NTG-context] Typing Unicode subscript and superscript numbers

2018-12-01 Thread Hans Åberg
Only some of the Unicode subscript and superscript numbers and signs show up in the example below in the typing and text environments, though all correct in the formula environment. — \setupbodyfont[stix,10pt] \starttext \startformula \startalign \NC 푨₀ 0 ₁ 1 ₂ 2 ₃ 3 ₄ 4 ₅ 5 ₆ 6

Re: [NTG-context] vertically centering line numbers

2018-12-01 Thread Pablo Rodriguez
On 12/1/18 9:49 AM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 30.11.18 um 19:29: >> [...] >> Is there a way to center vertically the line numbers? > > \defineshift [RaiseNumber] [dy=-0.25,style=\tfxx] > > \setuplinenumbering [step=3,command=\RaiseNumber

Re: [NTG-context] vertically centering line numbers

2018-12-01 Thread Wolfgang Schuster
the line numbers? \defineshift [RaiseNumber] [dy=-0.25,style=\tfxx] \setuplinenumbering [step=3,command=\RaiseNumber] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki

[NTG-context] vertically centering line numbers

2018-11-30 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuplinenumbering[step=3, style=\tfxx] \starttext \startlinenumbering \dorecurse{40}{This is a verse.\\} \stoplinenumbering \stoptext Is there a way to center vertically the line numbers? Many thanks for your help, Pablo

Re: [NTG-context] Align TOC section numbers flushright

2018-06-26 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 25 Jun 2018 14:20:03 -0600, Wolfgang Schuster wrote: If one turns on \showframe, one sees that the width value does not prevent crossing the left side of the textblock (a good thing). OTOH, getting the TOC numerals to lineup with the left side is a matter of trial and error.

Re: [NTG-context] Align TOC section numbers flushright

2018-06-25 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد 25. Juni 2018 um 21:42 On Mon, 25 Jun 2018 13:17:40 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد schrieb: \setuphead[chapter] [conversion=R] \setuplist[chapter][width=2.8em]

Re: [NTG-context] Align TOC section numbers flushright

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 25 Jun 2018 13:17:40 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد schrieb: \setuphead[chapter] [conversion=R] \setuplist[chapter][width=2.8em] \definecombinedlist [content] [chapter] [level=chapter, alternative=c, numberalign=flushright] Use \setuplist

Re: [NTG-context] Align TOC section numbers flushright

2018-06-25 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد schrieb: \setuphead[chapter] [conversion=R] \setuplist[chapter][width=2.8em] \definecombinedlist [content] [chapter] [level=chapter, alternative=c, numberalign=flushright] Use \setuplist to change the numeralign setting, you need also a distance

[NTG-context] Align TOC section numbers flushright

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد
Dear gang, Trying to get the sectioning numerals in the left margin of the TOC to be fushright; by default they are flushleft; see attached and below: === \setuphead[chapter] [conversion=R] \setuplist[chapter][width=2.8em] \definecombinedlist [content] [chapter] [level=chapter,

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

2018-06-25 Thread Idris Samawi Hamid ادريس سماوي حامد
On Mon, 25 Jun 2018 01:10:18 -0600, Wolfgang Schuster wrote: Idris Samawi Hamid ادريس سماوي حامد 25. Juni 2018 um 01:17 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

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

2018-06-25 Thread Wolfgang Schuster
Idris Samawi Hamid ادريس سماوي حامد 25. Juni 2018 um 01:17 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

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

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 a

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

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{%

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 }

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!registerpages\empty

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 move

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

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
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 some > sense. >

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." <thomas.schm...@uni-bonn.de> 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 nu

Re: [NTG-context] Line numbers in output

2017-08-21 Thread Schmitz Thomas A.
> On 21. Aug 2017, at 16:25, Roger Mason <rma...@mun.ca> 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

[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
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. Using

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 <mic...@gmail.com> wrote: > Hi! > > The example below gives strange numbers (4110) and (1410) in the pdf > file, and the latte

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

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

2016-11-07 Thread Willi Egger
e 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 create two commands to be used in th

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

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

  1   2   3   4   5   6   7   8   >