* Using the width of the page with start/stop tabulate @ 2011-08-03 8:37 Cecil Westerhof 2011-08-03 8:51 ` Cecil Westerhof 2011-08-03 15:13 ` Willi Egger 0 siblings, 2 replies; 12+ messages in thread From: Cecil Westerhof @ 2011-08-03 8:37 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 607 bytes --] I am using the following code: \starttabulate[|l|l|] \HL \NC {\bf Primair} \NC {\bf Secundair} \NC\NR \HL \NC C en C++ \NC Java \NC\NR \NC Python \NC Perl \NC\NR \NC shell-script \NC Lisp \NC\NR \NC SQL \NC HTML-4 en JavaScript \NC\NR \NC \NC PHP \NC\NR \NC \NC Pascal \NC\NR \HL \stoptabulate But this uses only the necessary space. I would like to have the table using the width of the page and both columns having the same size. Is this possible? -- Cecil Westerhof [-- Attachment #1.2: Type: text/html, Size: 679 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 8:37 Using the width of the page with start/stop tabulate Cecil Westerhof @ 2011-08-03 8:51 ` Cecil Westerhof 2011-08-03 16:18 ` Wolfgang Schuster 2011-08-03 15:13 ` Willi Egger 1 sibling, 1 reply; 12+ messages in thread From: Cecil Westerhof @ 2011-08-03 8:51 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 789 bytes --] 2011/8/3 Cecil Westerhof <cldwesterhof@gmail.com> > I am using the following code: > \starttabulate[|l|l|] > \HL > \NC {\bf Primair} \NC {\bf Secundair} \NC\NR > \HL > \NC C en C++ \NC Java \NC\NR > \NC Python \NC Perl \NC\NR > \NC shell-script \NC Lisp \NC\NR > \NC SQL \NC HTML-4 en JavaScript \NC\NR > \NC \NC PHP \NC\NR > \NC \NC Pascal \NC\NR > \HL > \stoptabulate > > But this uses only the necessary space. I would like to have the table > using the width of the page and both columns having the same size. > Is this possible? > I found it. I should start the table with: \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|] -- Cecil Westerhof [-- Attachment #1.2: Type: text/html, Size: 1080 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 8:51 ` Cecil Westerhof @ 2011-08-03 16:18 ` Wolfgang Schuster 2011-08-03 16:47 ` Cecil Westerhof 0 siblings, 1 reply; 12+ messages in thread From: Wolfgang Schuster @ 2011-08-03 16:18 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 885 bytes --] Am 03.08.2011 um 10:51 schrieb Cecil Westerhof: > 2011/8/3 Cecil Westerhof <cldwesterhof@gmail.com> > I am using the following code: > \starttabulate[|l|l|] > \HL > \NC {\bf Primair} \NC {\bf Secundair} \NC\NR > \HL > \NC C en C++ \NC Java \NC\NR > \NC Python \NC Perl \NC\NR > \NC shell-script \NC Lisp \NC\NR > \NC SQL \NC HTML-4 en JavaScript \NC\NR > \NC \NC PHP \NC\NR > \NC \NC Pascal \NC\NR > \HL > \stoptabulate > > But this uses only the necessary space. I would like to have the table using the width of the page and both columns having the same size. > Is this possible? > > I found it. I should start the table with: > \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|] \starttabulate[|p|p|] Wolfgang [-- Attachment #1.2: Type: text/html, Size: 2086 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 16:18 ` Wolfgang Schuster @ 2011-08-03 16:47 ` Cecil Westerhof 2011-08-03 17:03 ` Wolfgang Schuster 0 siblings, 1 reply; 12+ messages in thread From: Cecil Westerhof @ 2011-08-03 16:47 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 963 bytes --] 2011/8/3 Wolfgang Schuster <schuster.wolfgang@googlemail.com> > I am using the following code: > > \starttabulate[|l|l|] >> \HL >> \NC {\bf Primair} \NC {\bf Secundair} \NC\NR >> \HL >> \NC C en C++ \NC Java \NC\NR >> \NC Python \NC Perl \NC\NR >> \NC shell-script \NC Lisp \NC\NR >> \NC SQL \NC HTML-4 en JavaScript \NC\NR >> \NC \NC PHP \NC\NR >> \NC \NC Pascal \NC\NR >> \HL >> \stoptabulate >> >> But this uses only the necessary space. I would like to have the table >> using the width of the page and both columns having the same size. >> Is this possible? >> > > I found it. I should start the table with: > \starttabulate[|lw(.5\textwidth)|lw(.5\textwidth)|] > > > \starttabulate[|p|p|] > That is in this case a better solution. For one in my solution the table became to wide. (Do not know why.) -- Cecil Westerhof [-- Attachment #1.2: Type: text/html, Size: 1539 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 16:47 ` Cecil Westerhof @ 2011-08-03 17:03 ` Wolfgang Schuster 2011-08-03 17:18 ` Cecil Westerhof 0 siblings, 1 reply; 12+ messages in thread From: Wolfgang Schuster @ 2011-08-03 17:03 UTC (permalink / raw) To: mailing list for ConTeXt users Am 03.08.2011 um 18:47 schrieb Cecil Westerhof: > That is in this case a better solution. For one in my solution the table became to wide. (Do not know why.) The combined width of the columns in your table had been \textwidth but there is also a space between the columns which makes the table wider than the normal text. Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 17:03 ` Wolfgang Schuster @ 2011-08-03 17:18 ` Cecil Westerhof 2011-08-03 17:24 ` Wolfgang Schuster 0 siblings, 1 reply; 12+ messages in thread From: Cecil Westerhof @ 2011-08-03 17:18 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 570 bytes --] 2011/8/3 Wolfgang Schuster <schuster.wolfgang@googlemail.com> > > That is in this case a better solution. For one in my solution the table > became to wide. (Do not know why.) > > The combined width of the columns in your table had been \textwidth but > there is also a space between the columns which makes the table wider than > the normal text. > Is it know how much spave this is? For another table I now use: \starttable[|w(.10\textwidth)|p(.82\textwidth)|] This looks about right, but if there is a better way to do it … -- Cecil Westerhof [-- Attachment #1.2: Type: text/html, Size: 851 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 17:18 ` Cecil Westerhof @ 2011-08-03 17:24 ` Wolfgang Schuster 2011-08-03 17:54 ` Cecil Westerhof 0 siblings, 1 reply; 12+ messages in thread From: Wolfgang Schuster @ 2011-08-03 17:24 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 709 bytes --] Am 03.08.2011 um 19:18 schrieb Cecil Westerhof: > 2011/8/3 Wolfgang Schuster <schuster.wolfgang@googlemail.com> > > That is in this case a better solution. For one in my solution the table became to wide. (Do not know why.) > > The combined width of the columns in your table had been \textwidth but there is also a space between the columns which makes the table wider than the normal text. > > Is it know how much spave this is? For another table I now use: > \starttable[|w(.10\textwidth)|p(.82\textwidth)|] > > This looks about right, but if there is a better way to do it … Set only a width for the first column, the width of the “p” column is calculated by ConTeXt. Wolfgang [-- Attachment #1.2: Type: text/html, Size: 1429 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 17:24 ` Wolfgang Schuster @ 2011-08-03 17:54 ` Cecil Westerhof 2011-08-03 18:06 ` Wolfgang Schuster 0 siblings, 1 reply; 12+ messages in thread From: Cecil Westerhof @ 2011-08-03 17:54 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1064 bytes --] 2011/8/3 Wolfgang Schuster <schuster.wolfgang@googlemail.com> > > That is in this case a better solution. For one in my solution the table > became to wide. (Do not know why.) > > >> The combined width of the columns in your table had been \textwidth but >> there is also a space between the columns which makes the table wider than >> the normal text. >> > > Is it know how much spave this is? For another table I now use: > \starttable[|w(.10\textwidth)|p(.82\textwidth)|] > > This looks about right, but if there is a better way to do it … > > > Set only a width for the first column, the width of the “p” column > is calculated by ConTeXt. > That does not work. The p column will become as long as the first column: \starttext \starttable[|w(.10\textwidth)|p(.82\textwidth)|] \HL \NC Field one \NC A quit long field to show what goes wrong \NC\AR \HL \stoptable \starttable[|w(.10\textwidth)|p|] \HL \NC Field one \NC A quit long field to show what goes wrong \NC\AR \HL \stoptable \stoptext -- Cecil Westerhof [-- Attachment #1.2: Type: text/html, Size: 1751 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 17:54 ` Cecil Westerhof @ 2011-08-03 18:06 ` Wolfgang Schuster 2011-08-03 18:09 ` Cecil Westerhof 0 siblings, 1 reply; 12+ messages in thread From: Wolfgang Schuster @ 2011-08-03 18:06 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 998 bytes --] Am 03.08.2011 um 19:54 schrieb Cecil Westerhof: > 2011/8/3 Wolfgang Schuster <schuster.wolfgang@googlemail.com> > > That is in this case a better solution. For one in my solution the table became to wide. (Do not know why.) >> >> The combined width of the columns in your table had been \textwidth but there is also a space between the columns which makes the table wider than the normal text. >> >> Is it know how much spave this is? For another table I now use: >> \starttable[|w(.10\textwidth)|p(.82\textwidth)|] >> >> This looks about right, but if there is a better way to do it … > > Set only a width for the first column, the width of the “p” column > is calculated by ConTeXt. > > That does not work. The p column will become as long as the first column: > \starttext I hadn’t noticed you switched from tabulate to table in your example. Look into the wiki, maybe you find some info or use natural tables which don’t use a space between columns. Wolfgang [-- Attachment #1.2: Type: text/html, Size: 2176 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 18:06 ` Wolfgang Schuster @ 2011-08-03 18:09 ` Cecil Westerhof 2011-08-04 8:28 ` Cecil Westerhof 0 siblings, 1 reply; 12+ messages in thread From: Cecil Westerhof @ 2011-08-03 18:09 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 1101 bytes --] 2011/8/3 Wolfgang Schuster <schuster.wolfgang@googlemail.com> > > That is in this case a better solution. For one in my solution the table > became to wide. (Do not know why.) > > >>> The combined width of the columns in your table had been \textwidth but >>> there is also a space between the columns which makes the table wider than >>> the normal text. >>> >> >> Is it know how much spave this is? For another table I now use: >> \starttable[|w(.10\textwidth)|p(.82\textwidth)|] >> >> This looks about right, but if there is a better way to do it … >> >> >> Set only a width for the first column, the width of the “p” column >> is calculated by ConTeXt. >> > > That does not work. The p column will become as long as the first column: > \starttext > > > I hadn’t noticed you switched from tabulate to table in your example. > \stoptabulate can not be handled by macros. So I had to switch. Look into the wiki, maybe you find some info or use natural tables > which don’t use a space between columns. > I'll continue my search. ;-} -- Cecil Westerhof [-- Attachment #1.2: Type: text/html, Size: 2365 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 18:09 ` Cecil Westerhof @ 2011-08-04 8:28 ` Cecil Westerhof 0 siblings, 0 replies; 12+ messages in thread From: Cecil Westerhof @ 2011-08-04 8:28 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 2398 bytes --] 2011/8/3 Cecil Westerhof <cldwesterhof@gmail.com> > Look into the wiki, maybe you find some info or use natural tables > >> which don’t use a space between columns. >> > > I'll continue my search. ;-} > I came up with the following: \setupbodyfont[10pt] \define[1]\ActivityWorkTable{ \bTR \RowWorkTable{}{\bullet\space #1} \eTR } \define[2]\RowWorkTable{ \bTD #1 \eTD \bTD #2 \eTD } \define[2]\StartWorkTable{ \blank[2*big] \setupTABLE[frame=off] \setupTABLE[c][1][width=.14\textwidth] \setupTABLE[c][2][width=.87\textwidth] \bTABLE \bTR[topframe=on, bottomframe=on] \RowWorkTable{#1}{#2} \eTR \bTR \RowWorkTable{}{\bf Gedaan} \eTR } \define[1]\StopWorkTable{ \bTR[topframe=on]\RowWorkTable{}{\bf Gebruikt} \eTR \bTR[bottomframe=on]\RowWorkTable{}{\bullet\space #1} \eTR \eTABLE } \starttext \StartWorkTable{Huidig}{Senior software engineer bij Artex} \ActivityWorkTable{Teamleader voor een groep van 5 PHP-programmeurs die werken volgens scrum/agile principes. Dit team ontwikkeld grootschalige web applicaties met gebruikmaking van PHP/AJAX/Zend en HTML5. } \ActivityWorkTable{Quality Management} \ActivityWorkTable{Schrijven documentatie, zowel technische als gebruikers} \ActivityWorkTable{Definieren nieuwe functionaliteiten} \ActivityWorkTable{Installeren subversion server en definiëren werkwijze} \StopWorkTable{Linux, Windows, \ConTeXt, PHP, shell-scripting, MySql, phpMyAdmin} \StartWorkTable{2008 - 2009}{Senior software engineer bij het Kadaster} \ActivityWorkTable{Bij het Kadaster was men bezig met de migratie van TRU64 naar HP-UX. Ik heb hierbij geholpen met het overzetten van systeemdelen geschreven in C\high{++} en het overzetten van shell-scripts. } \StopWorkTable{Linux, Windows, OpenVMS, C en C\high{++}, shell-scripting, Emacs, Lisp, Fortran } \stoptext Work reasonable good. And it is now very easy to change the tables. I only have two problems: - I like the alignment to be filled. (The default in normal text not in a table.) How can I do this? - I use bullets before my points. But when a line is to long it and it wraps around, the next line starts at the same place as the bullet. I would like it to be indented in the same way as with \startitemize (or this point). How would I do this? -- Cecil Westerhof [-- Attachment #1.2: Type: text/html, Size: 3055 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Using the width of the page with start/stop tabulate 2011-08-03 8:37 Using the width of the page with start/stop tabulate Cecil Westerhof 2011-08-03 8:51 ` Cecil Westerhof @ 2011-08-03 15:13 ` Willi Egger 1 sibling, 0 replies; 12+ messages in thread From: Willi Egger @ 2011-08-03 15:13 UTC (permalink / raw) To: mailing list for ConTeXt users Though older, there is an article in MAPS22 (see ntg-website) explaining what tabulate can do. Willi On 3 Aug 2011, at 10:37, Cecil Westerhof wrote: > I am using the following code: > \starttabulate[|l|l|] > \HL > \NC {\bf Primair} \NC {\bf Secundair} \NC\NR > \HL > \NC C en C++ \NC Java \NC\NR > \NC Python \NC Perl \NC\NR > \NC shell-script \NC Lisp \NC\NR > \NC SQL \NC HTML-4 en JavaScript \NC\NR > \NC \NC PHP \NC\NR > \NC \NC Pascal \NC\NR > \HL > \stoptabulate > > But this uses only the necessary space. I would like to have the table using the width of the page and both columns having the same size. > Is this possible? > > -- > Cecil Westerhof > ___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2011-08-04 8:28 UTC | newest] Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-08-03 8:37 Using the width of the page with start/stop tabulate Cecil Westerhof 2011-08-03 8:51 ` Cecil Westerhof 2011-08-03 16:18 ` Wolfgang Schuster 2011-08-03 16:47 ` Cecil Westerhof 2011-08-03 17:03 ` Wolfgang Schuster 2011-08-03 17:18 ` Cecil Westerhof 2011-08-03 17:24 ` Wolfgang Schuster 2011-08-03 17:54 ` Cecil Westerhof 2011-08-03 18:06 ` Wolfgang Schuster 2011-08-03 18:09 ` Cecil Westerhof 2011-08-04 8:28 ` Cecil Westerhof 2011-08-03 15:13 ` Willi Egger
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).