Re: [NTG-context] noalign hassles
On 16 mrt. 2013, at 23:50, Aditya Mahajan adit...@umich.edu wrote: On Sat, 16 Mar 2013, H. van der Meer wrote: I am stuck with the following problem. Inside an \halign (table) I can insert a colored rule with: \noalign{\color[red]{\hrule height#1 depth\zeropoint}} Now I want something more involved like: \color[red]{\hrule height#1 width2mm}% fixed length colored block \color[black]{\hrule height#1}% filling the width left \color[red]{\hrule height#1 width2mm}% fixed length colored block producing [red][black black black …][red] However, this doesn't work. I tried various options as: enclosing in \vbox, \hbox, box with leaders. Nothing worked out. IIUC, you want the frame at the bottom of the first and last column to be red, and rest of the columns to be black. \noalign is the wrong construct for this. You want aligned rules. So, create a new row (of approrpriate height) and set the rule in each column. Yes, I guess that is the way to go. I awoke with that thought this morning. Is there some guru who knows how to accomplish this? Why are using inserting color rule manually. Both the table and the TABLE mechanisms allow you to easily adjust the color of the rules. Why not use those for creating tables. Because since a long time I have my own table macro with which I am quite comfortable: I can make it do exactly as I wish. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] noalign hassles
I am stuck with the following problem. Inside an \halign (table) I can insert a colored rule with: \noalign{\color[red]{\hrule height#1 depth\zeropoint}} Now I want something more involved like: \color[red]{\hrule height#1 width2mm}% fixed length colored block \color[black]{\hrule height#1}% filling the width left \color[red]{\hrule height#1 width2mm}% fixed length colored block producing [red][black black black …][red] However, this doesn't work. I tried various options as: enclosing in \vbox, \hbox, box with leaders. Nothing worked out. Is there some guru who knows how to accomplish this? Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] noalign hassles
On Sat, 16 Mar 2013, H. van der Meer wrote: I am stuck with the following problem. Inside an \halign (table) I can insert a colored rule with: \noalign{\color[red]{\hrule height#1 depth\zeropoint}} Now I want something more involved like: \color[red]{\hrule height#1 width2mm}% fixed length colored block \color[black]{\hrule height#1}% filling the width left \color[red]{\hrule height#1 width2mm}% fixed length colored block producing [red][black black black …][red] However, this doesn't work. I tried various options as: enclosing in \vbox, \hbox, box with leaders. Nothing worked out. IIUC, you want the frame at the bottom of the first and last column to be red, and rest of the columns to be black. \noalign is the wrong construct for this. You want aligned rules. So, create a new row (of approrpriate height) and set the rule in each column. Is there some guru who knows how to accomplish this? Why are using inserting color rule manually. Both the table and the TABLE mechanisms allow you to easily adjust the color of the rules. Why not use those for creating tables. Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] noalign in tabulate
Hi, How do I insert a noalign in tabulate. It seems that noalign messes up the width calculations of paragraphs. This is what I tried. \starttext \starttabulate \NC tufte \NC \input tufte \NR \NC zapf \NC \input zapf \NR \stoptabulate \starttabulate \NC tufte \NC \input tufte \NR \noalign{Some quotes} \NC zapf \NC \input zapf \NR \stoptabulate \starttabulate \NC tufte \NC \input tufte \NR \TABLEnoalign{Some quotes} \NC zapf \NC \input zapf \NR \stoptabulate \stoptext Suggestions? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] noalign in tabulate
Aditya Mahajan wrote: Hi, How do I insert a noalign in tabulate. It seems that noalign messes up the width calculations of paragraphs. This is what I tried. \starttext \starttabulate \NC tufte \NC \input tufte \NR \NC zapf \NC \input zapf \NR \stoptabulate \starttabulate \NC tufte \NC \input tufte \NR \noalign{Some quotes} \NC zapf \NC \input zapf \NR \stoptabulate \starttabulate \NC tufte \NC \input tufte \NR \TABLEnoalign{Some quotes} \NC zapf \NC \input zapf \NR \stoptabulate \stoptext Suggestions? as much trial and error for me as for you \starttabulate \NC tufte \NC \input tufte \NR \NC zapf \NC \input zapf \NR \stoptabulate \starttabulate \NC tufte \NC \input tufte \NR \noalign{\hbox{Some quotes}} \NC zapf \NC \input zapf \NR \stoptabulate \starttabulate \NC tufte \NC \input tufte \NR \TABLEnoalign{\hbox{Some quotes}} \NC zapf \NC \input zapf \NR \stoptabulate otherwise you get a paragraph - 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 - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] noalign in tabulate
On Mon, 13 Aug 2007, Hans Hagen wrote: Aditya Mahajan wrote: Hi, How do I insert a noalign in tabulate. It seems that noalign messes up the width calculations of paragraphs. This is what I tried. \starttext \starttabulate \NC tufte \NC \input tufte \NR \NC zapf \NC \input zapf \NR \stoptabulate \starttabulate \NC tufte \NC \input tufte \NR \noalign{Some quotes} \NC zapf \NC \input zapf \NR \stoptabulate \starttabulate \NC tufte \NC \input tufte \NR \TABLEnoalign{Some quotes} \NC zapf \NC \input zapf \NR \stoptabulate \stoptext Suggestions? as much trial and error for me as for you \starttabulate \NC tufte \NC \input tufte \NR \NC zapf \NC \input zapf \NR \stoptabulate \starttabulate \NC tufte \NC \input tufte \NR \noalign{\hbox{Some quotes}} \NC zapf \NC \input zapf \NR \stoptabulate \starttabulate \NC tufte \NC \input tufte \NR \TABLEnoalign{\hbox{Some quotes}} \NC zapf \NC \input zapf \NR \stoptabulate otherwise you get a paragraph It seems that noalign messes up width calculation. Here is one possibility: \startbuffer \starttabulate \NC nofautotabulate \NC \the\nofautotabulate \NC \NR \NC tabulatewidth \NC \the\tabulatewidth \NC \NR \NC tufte \NC \input tufte \NC \NR \mynoalign{\vbox{some quotes that are used for generating sample text in a lot of \CONTEXT\ documents again and again}} \NC zapf \NC \input zapf \NC \NR \stoptabulate \stopbuffer \starttext \let\mynoalign\noalign \getbuffer \page \def\mynoalign {\iftrialtypesetting \expandafter\gobbleoneargument \else \expandafter\TABLEnoalign \fi} \getbuffer \stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \noalign?
Hans Hagen wrote: which tables allow using \noalign and in what places? \NC one \NC two \NC three \NC\AR \HL\noalign{\pause}% \NC one \NC two \NC three \NC\AR \noalign{\pause}\HL it all depends on what you want to achieve I want to place a \pdfspecial in front of the \HL. Peter Rolf pointed out correctly (and I had seen that myself as well) that the problem seems to be with \AR only. I'll try and check if I can make the whole thing work transparently with \AR or if I have to ask users to use \FR, \MR, \LR for this usage pattern. (Usage: You build a table line by line in a presentation.) regards, Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \noalign?
Christopher Creutzig wrote: Salvete, which tables allow using \noalign and in what places? E.g., the first of these works, but I'd also like to be allowed the second one (ignore what \pause does for the moment ...): \starttable[|c|c|c|] \HL \NC one \NC two \NC three \NC\AR \HL\noalign{\pause}% \NC one \NC two \NC three \NC\AR \noalign{\pause}\HL \stoptable I assume this has to do with trial typesetting or something like this, but what should I type instead? how about \TABLEnoalign (see core-tab.tex for defintion) without any guarantees :) Servus, Peter regards, Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \noalign?
Peter Rolf wrote: how about \TABLEnoalign (see core-tab.tex for defintion) I did try that. But I don't see why it should help. After all, the place I'm trying to do a \noalign is not inside some other \noalign and that's the only thing \TABLEnoalign adds – as far as I read the source. Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \noalign?
Christopher Creutzig wrote: Salvete, which tables allow using \noalign and in what places? E.g., the first of these works, but I'd also like to be allowed the second one (ignore what \pause does for the moment ...): \starttable[|c|c|c|] \HL \NC one \NC two \NC three \NC\AR \HL\noalign{\pause}% \NC one \NC two \NC three \NC\AR \noalign{\pause}\HL \stoptable I assume this has to do with trial typesetting or something like this, but what should I type instead? it all depends on what you want to achieve 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
Re: [NTG-context] \noalign?
Christopher Creutzig wrote: Peter Rolf wrote: how about \TABLEnoalign (see core-tab.tex for defintion) I did try that. But I don't see why it should help. After all, the place I'm trying to do a \noalign is not inside some other \noalign and that's the only thing \TABLEnoalign adds – as far as I read the source. Sorry to hear. I was just browsing through an old table, as I remembered your question. After some reading and testing I have found out, that \AR is the cause of the problem. Your example works with \SR \FR \LR..., but not with \AR. Adding a \TB[] in front of \noalign works, but surely has some unwanted side effects. Sandman is calling, Peter Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \noalign?
Salvete, which tables allow using \noalign and in what places? E.g., the first of these works, but I'd also like to be allowed the second one (ignore what \pause does for the moment ...): \starttable[|c|c|c|] \HL \NC one \NC two \NC three \NC\AR \HL\noalign{\pause}% \NC one \NC two \NC three \NC\AR \noalign{\pause}\HL \stoptable I assume this has to do with trial typesetting or something like this, but what should I type instead? regards, Christopher ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context