[NTG-context] beta: graphictext (mkiv)

2011-01-03 Thread Peter Rolf
Hi, Using the following code \useMPlibrary[txt] \startMPpage graphictext "FOO"; \stopMPpage results in ! Undefined control sequence. \douseMPlibrary ...stprefix #1}\makeshortfilename [\truefilename {\f!metapos... \next1 #1,->\douseMPlibrary {#

[NTG-context] \pagenumber geeft altijd 1

2011-01-03 Thread Cecil Westerhof
I am using the folowing code: \def\UsePageNumbers{ \setuplayout[pagenumbers] \setupfootertexts[Page \pagenumber \space of \lastpage] } The number of pages is displayed correctly, but the pagenumber is always 1. What am I doing wrong? -- Cecil Westerhof ___

Re: [NTG-context] How to get graph module (metapost) to work with ConTeXt minimals?

2011-01-03 Thread Verhaag, G.C.H.M.
Wolfgang Schuster wrote: Am 31.12.2010 um 10:36 schrieb Verhaag, G.C.H.M.: So I understand that both statements: \loadmarkfile{m-graph} \usemodule[graph] are actually the same thing! Both work but they are not the same thing. \loadmarkfile loads only the given file with the exten

[NTG-context] Working with conditionals

2011-01-03 Thread Cecil Westerhof
I have the folowing function for a title: \def\Title[#1]{ \testpage[10] \startalignment[center] { \blank[2*big] \switchtobodyfont[1.5em] \bf\em#1 } \blank \stopalignment } What I would like is that there is an optional second parameter. When it is there, it is used in

[NTG-context] How to use boxit MetaPost macros with ConTeXt minimals?

2011-01-03 Thread Verhaag, G.C.H.M.
Hi, I'd like to use the boxit MetaPost macros with ConTeXt minimals. Is there a way to tackle this or do I need the chart module for that. Am I right in saying that the boxit macros give more flexibility compared to the chart module? Or is it just a matter of taste? Regards, Gerard Verhaag

Re: [NTG-context] Working with conditionals

2011-01-03 Thread Vianney le Clément
\def\Title{\dodoubleempty\doTitle} \def\doTitle[#1][#2]{ \ifsecondargument \testpage[#2] \else \testpage[10] \fi \startalignment[center] { \blank[2*big] \switchtobodyfont[1.5em] \bf\em#1 } \blank \stopalignment } Vianney On Mon, Jan 3, 2011 at 10:46, Cecil Westerh

Re: [NTG-context] Working with conditionals

2011-01-03 Thread luigi scarso
2011/1/3 Vianney le Clément : > \def\Title{\dodoubleempty\doTitle} > \def\doTitle[#1][#2]{ >  \ifsecondargument >     \testpage[#2] >  \else >     \testpage[10] >  \fi >  \startalignment[center] >  { >     \blank[2*big] >     \switchtobodyfont[1.5em] >     \bf\em#1 >  } >  \blank >  \stopalignment

Re: [NTG-context] Working with conditionals

2011-01-03 Thread luigi scarso
On Mon, Jan 3, 2011 at 11:05 AM, luigi scarso wrote: > You can also use a key/value approach, which is more flexible > > \unprotect > \def\Title[#1]{ >  \getparameters[CecWes@@][param1={default},param2={default2}, > param3={default3},#1] >  \testpage[10] >  \startalignment[center] >  { >     \blan

Re: [NTG-context] \pagenumber geeft altijd 1

2011-01-03 Thread Wolfgang Schuster
Am 03.01.2011 um 10:32 schrieb Cecil Westerhof: > I am using the folowing code: > \def\UsePageNumbers{ > \setuplayout[pagenumbers] > \setupfootertexts[Page \pagenumber \space of \lastpage] > } > > The number of pages is displayed correctly, but the pagenumber is > always 1. What am I doing wro

Re: [NTG-context] \pagenumber geeft altijd 1

2011-01-03 Thread Jaroslav Hajtmar
Hello Cecil, Are you calling \UsePageNumbers macro at start? I don't see any problem ... For example this short code is working: \setupfootertexts[Page \pagenumber \space of \lastpage] \starttext \dorecurse{20}{\input tufte } \stoptext Jaroslav Dne 3.1.2011 10:32, Cecil Westerhof napsal(a)

Re: [NTG-context] \pagenumber geeft altijd 1

2011-01-03 Thread Cecil Westerhof
2011/1/3 Wolfgang Schuster : > > Am 03.01.2011 um 10:32 schrieb Cecil Westerhof: > >> I am using the folowing code: >> \def\UsePageNumbers{ >>  \setuplayout[pagenumbers] >>  \setupfootertexts[Page \pagenumber \space of \lastpage] >> } >> >> The number of pages is displayed correctly, but the pagenu

Re: [NTG-context] \pagenumber geeft altijd 1

2011-01-03 Thread Wolfgang Schuster
Am 03.01.2011 um 11:53 schrieb Cecil Westerhof: > Attached are the tex and pdf file. You stop pagenumbering and wonder why context doesn’t report the current pagenumber. Line 15: \setuppagenumbering[state=stop] Wolfgang ___

Re: [NTG-context] \pagenumber geeft altijd 1

2011-01-03 Thread Jaroslav Hajtmar
Hello, \UsePageNumbers must be after \starttext \starttext \UsePageNumbers Is working... Jaroslav Dne 3.1.2011 11:54, Jaroslav Hajtmar napsal(a): Hello Cecil, Are you calling \UsePageNumbers macro at start? I don't see any problem ... For example this short code is working: \setupfoot

Re: [NTG-context] Working with conditionals

2011-01-03 Thread Cecil Westerhof
2011/1/3 Vianney le Clément : > \def\Title{\dodoubleempty\doTitle} > \def\doTitle[#1][#2]{ >  \ifsecondargument >     \testpage[#2] >  \else >     \testpage[10] >  \fi >  \startalignment[center] >  { >     \blank[2*big] >     \switchtobodyfont[1.5em] >     \bf\em#1 >  } >  \blank >  \stopalignment

Re: [NTG-context] \pagenumber geeft altijd 1

2011-01-03 Thread Cecil Westerhof
2011/1/3 Wolfgang Schuster : > You stop pagenumbering and wonder why context doesn’t report the current > pagenumber. > > Line 15: \setuppagenumbering[state=stop] I thought that \setuplayout[pagenumbers] took care of that. I changed UsePageNumbers to: \def\UsePageNumbers{ \setuppagenumbering[st

Re: [NTG-context] export and pagebreak

2011-01-03 Thread Achim Jander
Am 02.01.2011 15:57, schrieb Hans Hagen: On 31-12-2010 7:22, Achim Jander wrote: is it possible to get a into the exported XML? I'll send you a small patch to play wit Hello Hans, many thanks! I've tested a bit and it seems to work great! Two little suggestions for improvement: - would it p

[NTG-context] counter values as label names

2011-01-03 Thread Daniel Schopper
Dear list, this seems a really basic question (and probably not even strictly ConTeXt-focused) - so please accept my apologies… I'm trying to construct a macro which first creates two labels in the text (\start/stopline and \pagereference) with the value of a counter as the label name and the

Re: [NTG-context] export and pagebreak

2011-01-03 Thread Hans Hagen
On 3-1-2011 12:54, Achim Jander wrote: - would it possible to switch both (spaces and pagebreak) to on? It seems that in the Moment only one of them can be enabled. does not make much sense as equals anyway (the default is a space) - would it be possible to include the pagenumber as attr

Re: [NTG-context] How to get numbered cases'ed equations ?

2011-01-03 Thread Cedric Mauclair
Hi, Maybe someone had the same problem, no ? Best regards. -- Cédric On Tue, Dec 21, 2010 at 09:19, Cedric Mauclair wrote: > On Mon, Dec 20, 2010 at 16:45, Cedric Mauclair > wrote: >> Hi list, >> >> How can I get a numbered equation when using cases in MkIV? The "hack" >> proposed by Aditya

Re: [NTG-context] export and pagebreak

2011-01-03 Thread Achim Jander
Am 03.01.2011 15:43, schrieb Hans Hagen: On 3-1-2011 12:54, Achim Jander wrote: - would it possible to switch both (spaces and pagebreak) to on? It seems that in the Moment only one of them can be enabled. does not make much sense as equals anyway (the default is a space) Hi Hans, maybe

Re: [NTG-context] export and pagebreak

2011-01-03 Thread Hans Hagen
On 3-1-2011 4:11, Achim Jander wrote: So it would be more convenient to have filter, lump, skip, but that could be also done in the postprocessing. indeed this belongs to postprocessing (if only because there is no space at a pagebreak) .. similar would be: abcdef where is no linebreak is ne

Re: [NTG-context] export and pagebreak

2011-01-03 Thread Achim Jander
Hi Hans, thanks again. At least the first tests of the new version give me the expected result. Great!! Achim Am 03.01.2011 16:19, schrieb Hans Hagen: On 3-1-2011 4:11, Achim Jander wrote: So it would be more convenient to have filter, lump, skip, but that could be also done in the postproc

[NTG-context] still struggling with footnotes

2011-01-03 Thread Achim Jander
Hi all, I am still trying to get the footnote numbers aligned in a special way: flushright, but the width depends on the width of the max footnote-number on page, so to get 1 2 and ~9 10 After reading the manuals and the source given in strc-not.lua thats how far i am at the moment: \enable

Re: [NTG-context] counter values as label names

2011-01-03 Thread Thomas A. Schmitz
On Jan 3, 2011, at 3:11 PM, Daniel Schopper wrote: > Dear list, > this seems a really basic question (and probably not even strictly > ConTeXt-focused) - so please accept my apologies… > > I'm trying to construct a macro which first creates two labels in the text > (\start/stopline and \pagere

Re: [NTG-context] counter values as label names

2011-01-03 Thread Daniel Schopper
First of all thanks for the advice and sorry for my naïve posting! Here's a test file for what I try to do. The problem is that the page- and linenumbers printed by \placefootnotes all take the values of the last reference. \setupfootnotes[ location=text, numberconversion=empty

Re: [NTG-context] counter values as label names

2011-01-03 Thread Thomas A. Schmitz
On Jan 3, 2011, at 7:09 PM, Daniel Schopper wrote: > \setupfootnotes[ > location=text, > numberconversion=empty, > paragraph=, > ] > \newcount\entrycounter > \entrycounter=0 > \def\appentry#1#2{% > \startline[line:\the\entrycounter]% > \pagereference[page:\the\

Re: [NTG-context] counter values as label names

2011-01-03 Thread Aditya Mahajan
On Mon, 3 Jan 2011, Daniel Schopper wrote: First of all thanks for the advice and sorry for my naïve posting! Here's a test file for what I try to do. The problem is that the page- and linenumbers printed by \placefootnotes all take the values of the last reference. \setupfootnotes[