How to use columns inside another column?
![](https://secure.gravatar.com/avatar/117a058bed6945e7fa1b40ff2f6e7aa7.jpg?s=120&d=mm&r=g)
Hi everybody I used --------------------------- \definecolumnset[example][n=2] \definecolumnset[innerexample][n=2] \starttext \startcolumnset[example] \dorecurse{15}{\input knuth\par} \startcolumnset[innerexample] \input knuth\par \stopcolumnset \dorecurse{15}{\input knuth\par} \stopcolumnset \stoptext --------------------------- but nothing happened, can I use columns inside another column? -- Sincerely yours, Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/117a058bed6945e7fa1b40ff2f6e7aa7.jpg?s=120&d=mm&r=g)
Hi,
Can anybody give me a hand now? There are too many source files in ConTeXt
and I don't even know which file will give me a hint.
I don't want to hasten, but I really hope somebody could told me which file
I sould read or which way should go, or even it is impossible by now. Any
information will do.
Thanks
On 1/15/07, Zhichu Chen
Hi everybody
I used
---------------------------
\definecolumnset[example][n=2] \definecolumnset[innerexample][n=2]
\starttext
\startcolumnset[example] \dorecurse{15}{\input knuth\par} \startcolumnset[innerexample] \input knuth\par \stopcolumnset \dorecurse{15}{\input knuth\par} \stopcolumnset
\stoptext ---------------------------
but nothing happened, can I use columns inside another column?
-- Sincerely yours, Chen ----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------
-- Sincerely yours, Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/565476157eb3895a9c928ffce26d988d.jpg?s=120&d=mm&r=g)
Zhichu Chen wrote:
Hi,
Can anybody give me a hand now? There are too many source files in ConTeXt and I don't even know which file will give me a hint.
I don't want to hasten, but I really hope somebody could told me which file I sould read or which way should go, or even it is impossible by now. Any information will do.
I don't believe you can do columnsets inside columnsets. Best, Taco
![](https://secure.gravatar.com/avatar/117a058bed6945e7fa1b40ff2f6e7aa7.jpg?s=120&d=mm&r=g)
Thanks, Mr. Hoekwater
If the texts are short, say they won't go to the next column, they could be
stored into a \vbox whose \hsize is half of the width of current column
(maybe less) and \vsplit it into two equally high ones.
But when it's long enough, I think I need to know the rest room for the
current column. Is there any primitives just behavior like \pagegoal?
Best regards
On 1/16/07, Taco Hoekwater
Zhichu Chen wrote:
Hi,
Can anybody give me a hand now? There are too many source files in ConTeXt and I don't even know which file will give me a hint.
I don't want to hasten, but I really hope somebody could told me which file I sould read or which way should go, or even it is impossible by now. Any information will do.
I don't believe you can do columnsets inside columnsets.
Best, Taco _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Sincerely yours, Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
Zhichu Chen wrote:
Thanks, Mr. Hoekwater
If the texts are short, say they won't go to the next column, they could be stored into a \vbox whose \hsize is half of the width of current column (maybe less) and \vsplit it into two equally high ones.
But when it's long enough, I think I need to know the rest room for the current column. Is there any primitives just behavior like \pagegoal?
for those willing to experiment ... m-streams (and page-str) implement page streams and to some extend one can make columned subpages and feed them back into the main vertical list Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/117a058bed6945e7fa1b40ff2f6e7aa7.jpg?s=120&d=mm&r=g)
Thank you very much, Mr. Hagen, and all the other gentlemen that helped me
or were willing to help.
For there is no easy ways available, I think I should read these two files
thoroughly. I hope I can master ConTeXt like you guys so that I could help
others who have weird requests like me one day.
Best regards to you
On 1/16/07, Hans Hagen
Zhichu Chen wrote:
Thanks, Mr. Hoekwater
If the texts are short, say they won't go to the next column, they could be stored into a \vbox whose \hsize is half of the width of current column (maybe less) and \vsplit it into two equally high ones.
But when it's long enough, I think I need to know the rest room for the current column. Is there any primitives just behavior like \pagegoal?
for those willing to experiment ... m-streams (and page-str) implement page streams and to some extend one can make columned subpages and feed them back into the main vertical list
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Sincerely yours, Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/117a058bed6945e7fa1b40ff2f6e7aa7.jpg?s=120&d=mm&r=g)
Hi, Hans
I've been reading page-str and m-streams these days, but I'm so unfamiliar
with ConTeXt's output routine. So one thing leads to another, I have to read
more files to look for the definitions of some low-level macros used in
these files. And I get confused.
Maybe this kind of extension is too hard for me now. Could you give me an
example (as small as possible) to make subpages and combine them onto one
page?
By the way, the m-streams module seems not working pretty well with columns.
I think maybe more setups should be put into "streamlayer:block:settings"
but I really don't know what to do.
Thanks
On 1/16/07, Hans Hagen
Zhichu Chen wrote:
Thanks, Mr. Hoekwater
If the texts are short, say they won't go to the next column, they could be stored into a \vbox whose \hsize is half of the width of current column (maybe less) and \vsplit it into two equally high ones.
But when it's long enough, I think I need to know the rest room for the current column. Is there any primitives just behavior like \pagegoal?
for those willing to experiment ... m-streams (and page-str) implement page streams and to some extend one can make columned subpages and feed them back into the main vertical list
Hans
----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Sincerely yours, Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/117a058bed6945e7fa1b40ff2f6e7aa7.jpg?s=120&d=mm&r=g)
Sorry to have bothered you guys, I've solved my problem now. Thank you for your kind helps. -- Sincerely yours, Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Tue, 16 Jan 2007, Zhichu Chen wrote:
Hi,
Can anybody give me a hand now? There are too many source files in ConTeXt and I don't even know which file will give me a hint.
I don't want to hasten, but I really hope somebody could told me which file I sould read or which way should go, or even it is impossible by now. Any information will do.
Have you read the columnset documentation? http://pragma-ade.com/general/manuals/columns.pdf There are examples where the visual affect is the same as nested columns. I have not read the details of how they are implemented. HTH, Aditya
On 1/15/07, Zhichu Chen
wrote: Hi everybody
I used
---------------------------
\definecolumnset[example][n=2] \definecolumnset[innerexample][n=2]
\starttext
\startcolumnset[example] \dorecurse{15}{\input knuth\par} \startcolumnset[innerexample] \input knuth\par \stopcolumnset \dorecurse{15}{\input knuth\par} \stopcolumnset
\stoptext ---------------------------
but nothing happened, can I use columns inside another column?
-- Sincerely yours, Chen ----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------
-- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008
![](https://secure.gravatar.com/avatar/117a058bed6945e7fa1b40ff2f6e7aa7.jpg?s=120&d=mm&r=g)
Thanks Mr. Mahajan
I've read the article, but one can only "span" some texts over two or more
columns rather than split a column into two. I've tried double the column
numbers and span the other text over two columns. But of course it failed
for I want the small inner column to be balanced.
I'm now reading the "page-mul.tex." It is a long and confusing file---I'm
wondering how Hans and other guys wrote such long files that hardly had a
bug---but I really hope I can get some tricks from it.
On 1/16/07, Aditya Mahajan
On Tue, 16 Jan 2007, Zhichu Chen wrote:
Hi,
Can anybody give me a hand now? There are too many source files in ConTeXt and I don't even know which file will give me a hint.
I don't want to hasten, but I really hope somebody could told me which file I sould read or which way should go, or even it is impossible by now. Any information will do.
Have you read the columnset documentation? http://pragma-ade.com/general/manuals/columns.pdf
There are examples where the visual affect is the same as nested columns. I have not read the details of how they are implemented.
HTH, Aditya
On 1/15/07, Zhichu Chen
wrote: Hi everybody
I used
---------------------------
\definecolumnset[example][n=2] \definecolumnset[innerexample][n=2]
\starttext
\startcolumnset[example] \dorecurse{15}{\input knuth\par} \startcolumnset[innerexample] \input knuth\par \stopcolumnset \dorecurse{15}{\input knuth\par} \stopcolumnset
\stoptext ---------------------------
but nothing happened, can I use columns inside another column?
-- Sincerely yours, Chen ----------------------------------------------------------------
Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------
-- Aditya Mahajan | EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam | Ph: 734.262.4008 _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
-- Sincerely yours, Chen ---------------------------------------------------------------- Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ----------------------------------------------------------------
participants (4)
-
Aditya Mahajan
-
Hans Hagen
-
Taco Hoekwater
-
Zhichu Chen