Re: [NTG-context] Placing table of contents in a frame
Frank, I am also trying to do a similar project. My way not be a good one, but here is how I am trying to do it. Basically, I use columnsets (see manual columns.pdf from PRAGMA) to typeset my newsletter. I am using a 3 column layout and want a column containing the Table of Contents on the right side (3rd column). \definecolumnset[example][n=3] \setupcolumnsetlines[example][1][3][-50] % From Page 1, Column 3, % remove 50 lines % I will put the TOC on % Column 3 \starttext \startcolumnset[example] \placefigure[fxtb:3*1]{none}{\framed[frame=off, height=5cm, width=\textwidth, background=color, backgroundcolor=yellow]{\blue\txx\placecontent}} \input Newsletter_Final \stopcolumnset \stoptext Saji .. I'm trying to move a newsletter from a DTP program to ConTeXt. In this layout we have a blue column on the left side of the page with a table of contents. I played around with the framed command and layers, but did not find a way to put the TOC in a frame at a specific location. What would be a ConTeXt way of doing this? Regards, Frank ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] sample={99}
All, Was I surprised to find that my numbering went to multiples of 2 when I added the option sample={99}. Is this a bug? \defineenumeration [question] [text=,] \setupenumerations [question] [location=left, width=fit, distance=1em, hang=2, sample={99}, margin=0pt, headcolor=green, right=., way=bysection, sectionnumber=no] \setupcolumns[page=no] \starttext \startcolumns[n=2] \noindent Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \noindent Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startcolumns[n=2] \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \stopcolumns \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Losing our hang
All, why do we lose our hang in the second question? \defineenumeration [question] [text=,] \setupenumerations [question] [location=left, width=fit, distance=1em, hang=100, margin=0pt, headcolor=green, right=., way=bysection, sectionnumber=no] \setupcolumns[page=no] \starttext \startcolumns[n=2] \noindent Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. Now is the time for all good men to come to the aid of their county. \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \placeformula[-] \startformula f(x)=x^2 \stopformula An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \stopcolumns \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Placing table of contents in a frame
Frank ... forgot to mention that you may need to typeset on a grid when using the following way. \setuplayout [grid=yes] saji Frank, I am also trying to do a similar project. My way not be a good one, but here is how I am trying to do it. Basically, I use columnsets (see manual columns.pdf from PRAGMA) to typeset my newsletter. I am using a 3 column layout and want a column containing the Table of Contents on the right side (3rd column). \definecolumnset[example][n=3] \setupcolumnsetlines[example][1][3][-50] % From Page 1, Column 3, % remove 50 lines % I will put the TOC on % Column 3 \starttext \startcolumnset[example] \placefigure[fxtb:3*1]{none}{\framed[frame=off, height=5cm, width=\textwidth, background=color, backgroundcolor=yellow]{\blue\txx\placecontent}} \input Newsletter_Final \stopcolumnset \stoptext Saji .. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] enumerations and fomrula with same counter
On 7/7/06, David Arnold wrote: All, Let me adjust my previous post with this request. How can I get my enumerations and my formulae to use the same counter? All, How do you get two enumerations to use a common counter? This didn't work. \setupoutput[pdf] \newcounter\NonFigCtr \define\nctr{\doglobal\increment\NonFigCtr \color[red]{[\NonFigCtr]}} \defineenumeration [remark] [location=serried, width=broad, text=Remark, headstyle=bold, inbetween=\blank, before=\blank, after=\blank, way=bysection, number=nctr] \defineenumeration [definition] [location=serried, width=broad, text=Definition, headstyle=bold, inbetween=\blank, before=\blank, after=\blank, way=bysection, number=nctr] \starttext \startremark Foo \stopremark \placeformula[eqa;one] \startformula f(x)=x^2 \stopformula \startdefinition Foo \stopdefinition \stoptext The goal is to have these come out: Remark 1. f(x)=x^2 (2) Definition 3. A second goal is to include the section number. Remark 5-1. f(x)=x^2 (5-2) Definition 5-3. My idea was to trigger commands such as \nextdefinition, \nextremark, \incrementnumber[formula] in after=, but \nextdefinition for example gives an error. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Size of Heading
Hi! I have a question concerning the size of headings. When I say \setuphead[section][numberstyle={\switchtobodyfont [12pt]}], I found that the resulting head number is actually bigger than 12pt. How do I fix that? Thanks a lot!! Colin ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] positiongraphics
First everything is OK and then suddenly I start getting errors in (metafun) position graphics: ! Missing `)' has been inserted. to be read again ; l.118 ...926pt,72.9016pt)--(95.23926pt,72.9016pt); The mpgraph.mp file says at this point: PlainTextArea:=boundingbox((95.23926pt,72.9016pt)--(95.23926pt, 72.9016pt); shifted (609.52148pt,476.59792pt));; What is happening? Hans van der Meer ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] positiongraphics
I have some further information on the problem below. It turns out not something with position graphics. Instead it is a rogue footnote (that is being colored). It seems that this happens only when the footnote is at a particular point on the page; it is therefore next to impossible to give a minimal example. With some extra thought what happens seems to be this. PlainTextArea:=boundingbox((95.23926pt,72.9016pt)--(95.23926pt, 72.9016pt); The area above is made and somehow finished with a semicolon. Then the next part, the shift is put out: shifted (609.52148pt,476.59792pt));; Together making a statement which is correct except for the intervening semicolon. As it occurs only at specificly placed footnotes, it looks like a subtle flaw in the footnote background generation. I would be happy for a solution, because otherwise typesetting text with footnotes could become a nightmare. Hans van der Meer On Jul 8, 2006, at 20:49, Hans van der Meer wrote: First everything is OK and then suddenly I start getting errors in (metafun) position graphics: ! Missing `)' has been inserted. to be read again ; l.118 ...926pt,72.9016pt)--(95.23926pt,72.9016pt); The mpgraph.mp file says at this point: PlainTextArea:=boundingbox((95.23926pt,72.9016pt)--(95.23926pt, 72.9016pt); shifted (609.52148pt,476.59792pt));; What is happening? ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Strange behaviour of widetilde
Why does \enableregime[utf] \starttext $\widetilde ñ$ %This is greek rho (does not paste properly on email %client \stoptext give this error \AMSwidetilde ...ox \scratchbox \hbox [EMAIL PROTECTED] #1$} \ifdim \wd \scratchbox 2e... l.3 $\widetilde - ü$ ? while \widetilde {ñ} and \widetilde\rho work fine. Aditya ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Left justify numbers on left margin edge
On 7/7/06, David Arnold wrote: All, Why is it I cannot get my numbers to abut up against the left margin edge? They are always a few points indented. \setuplabeltext[question=] \defineenumeration [question] [text=\labeltext{question}] \setupenumerations [question] [location=left, width=broad, hang=1, headcolor=green, right=., way=bysection, sectionnumber=no] \starttext \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \stoptext It seems that you're reading my mind. I guess that it must be approximately the same reason as why I can't get Question Q1 Question Q2 With \defineenumeration [question] [text=Question Q] \startquestion Why are there so many spaces? \stopquestion I get Question Q 1 (but I can't find a way to get Q1 as is possible in sections - the space seems to be there by default). I thought that headcommand=\myquestioncommand (command spotted when I took a look at texshow, it's not in the manual) and \def\myquestioncommand#1{Question Q#1} would solve that, but I don't see any evidence of \myquestioncommand ever being called/executed. I would be very happy if this issue was solved as well. Perhas a left=,right= pair of keywords could solve the problem (left= and right= surrounding the number; but then we would also have to surround the label with something as well), where the default of left= would be a space. \[whatever]commad= could also solve the problem. Mojca ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Left justify numbers on left margin edge
On Sun, 9 Jul 2006, Mojca Miklavec wrote: On 7/7/06, David Arnold wrote: All, Why is it I cannot get my numbers to abut up against the left margin edge? They are always a few points indented. \setuplabeltext[question=] \defineenumeration [question] [text=\labeltext{question}] \setupenumerations [question] [location=left, width=broad, hang=1, headcolor=green, right=., way=bysection, sectionnumber=no] \starttext \startquestion An icon is a representation of an action or the name of a computer program. Icons are frequently used in operating systems on several computer platforms. \stopquestion \stoptext It seems that you're reading my mind. I guess that it must be approximately the same reason as why I can't get Question Q1 Question Q2 With \defineenumeration [question] [text=Question Q] \startquestion Why are there so many spaces? \stopquestion I get Question Q 1 (but I can't find a way to get Q1 as is possible in sections - the space seems to be there by default). I thought that headcommand=\myquestioncommand (command spotted when I took a look at texshow, it's not in the manual) and \def\myquestioncommand#1{Question Q#1} would solve that, but I don't see any evidence of \myquestioncommand ever being called/executed. I would be very happy if this issue was solved as well. Perhas a left=,right= pair of keywords could solve the problem (left= and right= surrounding the number; but then we would also have to surround the label with something as well), where the default of left= would be a space. \[whatever]commad= could also solve the problem. left=Q works. The label is textspaceleftnumberstopperright, so this works \defineenumeration [question] [text=Question, left=Q] \starttext \startquestion[abc] Why are there so many spaces in \in[abc]? \stopquestion \stoptext ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Left justify numbers on left margin edge
On 7/9/06, Aditya Mahajan wrote: Perhas a left=,right= pair of keywords could solve the problem (left= and right= surrounding the number; but then we would also have to surround the label with something as well), where the default of left= would be a space. \[whatever]commad= could also solve the problem. left=Q works. The label is Sigh! A prisoner sitting in the cell thinking about how to escape never realizes that the door is not locked at all. Thanks a lot. textspaceleftnumberstopperright, so this works I won't ask where this is documented. \defineenumeration [question] [text=Question, left=Q] \starttext \startquestion[abc] Why are there so many spaces in \in[abc]? \stopquestion \stoptext If we're talking about \in-s, references, ... It would simplify my style file considerably if I was able to get the chapters labelled as C1, C1, ... instead of only 1, 2, ... I could get rid of left= which I do need when referencing to the questions. That means: \defineenumeration [question] [text=Question, way=bychapter, sectionnumber=yes, separator={Q.}] \chapter{About Something} \section{First Section} \placeformula \startformula f(x)=x^2 \stopformula \startquestion Is it easy to do that? \stopquestion \chapter{About Something Else} should give C1 About Something C1.1First section f(x)=x^2 (C1.1) question C1Q.1 C2 About Something Else Mojca PS: To David (and Aditya): why not simply \defineenumeration [question] [text=, left=\labeltext{question}] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Left justify numbers on left margin edge
On Sun, 9 Jul 2006, Mojca Miklavec wrote: On 7/9/06, Aditya Mahajan wrote: Perhas a left=,right= pair of keywords could solve the problem (left= and right= surrounding the number; but then we would also have to surround the label with something as well), where the default of left= would be a space. \[whatever]commad= could also solve the problem. left=Q works. The label is Sigh! A prisoner sitting in the cell thinking about how to escape never realizes that the door is not locked at all. Thanks a lot. textspaceleftnumberstopperright, so this works I won't ask where this is documented. I learnt it the hard way --- trial and error :) \defineenumeration [question] [text=Question, left=Q] \starttext \startquestion[abc] Why are there so many spaces in \in[abc]? \stopquestion \stoptext If we're talking about \in-s, references, ... It would simplify my style file considerably if I was able to get the chapters labelled as C1, C1, ... instead of only 1, 2, ... I could get rid of left= which I do need when referencing to the questions. I would also like such a feature. I frequently have \defineitemgroup[features] \setupitemgroup[features][each][left=(F,right=),stopper=] \setupitemgroup[features][each][n,2*broad] and the I usually do \definereferenceformat[infeature][left=(F,right=)] and use \infeature. It would be nice if one could have referenceleft and referenceright in most setup commands. Aditya That means: \defineenumeration [question] [text=Question, way=bychapter, sectionnumber=yes, separator={Q.}] \chapter{About Something} \section{First Section} \placeformula \startformula f(x)=x^2 \stopformula \startquestion Is it easy to do that? \stopquestion \chapter{About Something Else} should give C1 About Something C1.1First section f(x)=x^2 (C1.1) question C1Q.1 C2 About Something Else Mojca PS: To David (and Aditya): why not simply \defineenumeration [question] [text=, left=\labeltext{question}] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context