[NTG-context] Balancing vertical placement of table
I have a single page layout as follows: * Landscape + letter page * Block of multi-line text (variable number of lines) which occupies the left third of the page * Table with variable number of rows which occupies the right two-thirds of the page I'm using \framed for the left text block and \placetable for the table. Is their a way to vertically place the table such that one-third of the vertical whitespace (above and below the table) is placed above the table, two-thirds below the table? The number of rows in the table varies enough that a fixed top position looks sub-optimal. Is it possible to do something similar with the block of text, perhaps using a different top/bottom split for the vertical whitespace? Are \framed and \placetable the best way to do this? david ___ 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] table, middle
On Fri, 29 Jan 2010, R. Bastian wrote: Hello, I wish to align horizontally a table at the middle of \textwidth. without "Table xx.y". \placetable[here,none]{}{\starttable ... \stoptable} or \midaligned{\starttable ... \stoptable} My environment: Debian/Gnome Context mkii Snow : 11cm, Temperature : 3.2 Celsius :-) 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] Split Table Footnotes Problem
Hi All, If a split table includes a footnote then the footnote is constrained to the same width as the first column of the table, not the page width. Example (also attached as tadtest5.tex): \automigrateinserts % or else footnotes don't show up at all \starttext \dorecurse{3}{\input knuth\par} \placetable[split]{Table Caption}% { \bTABLE[split=repeat]% \bTR\bTD table cell with footnote\footnote{This footnote is constrained to the width of the first table column.} \eTD \dorecurse{3}{\bTD table cell \eTD}\eTR \dorecurse{10}{\bTR\dorecurse{4}{\bTD table cell \eTD}\eTR} \bTR\bTD table cell footnote 2\footnote{This is another footnote that is constrained to the width of the first table column.} \eTD \dorecurse{3}{\bTD table cell \eTD}\eTR \eTABLE} \stoptext Does this have something to do with the \automigrateinserts command or is there something I'm not doing right? Thanks, Tad tadtest5.tex Description: TeX document ___ 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] Unexpected Consequence of Turning Off Subsubsection Numbering
Hi All, If I setup the table caption numbering to be 'bychapter' and then turn off the numbering of subsubsections, any table within a subsubsection won't have the chapter number as part of the table number. Example (also attached as tadtest4.tex): \setupcaption[table][way=bychapter] \setuphead[subsubsection][number=no] \starttext \chapter{Chapter Name} \placetable[split]{First Table}% {\bTABLE\bTR\bTD table row \eTD\eTR\eTABLE} \section{Section Name} \placetable[split]{Second Table}% {\bTABLE\bTR\bTD table row \eTD\eTR\eTABLE} \subsection{Subsection Name} \placetable[split]{Third Table}% {\bTABLE\bTR\bTD table row \eTD\eTR\eTABLE} \subsubsection{Subsubsection Name} \placetable[split]{Fourth Table}% {\bTABLE\bTR\bTD table row \eTD\eTR\eTABLE} \stoptext The example above has "Table 4" instead of "Table 1.4". Is this unintentional behavior, or am I doing it wrong? Thanks, Tad tadtest4.tex Description: TeX document ___ 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] Split Table Numbering
Hi All, How do I go about getting split tables to be numbered as, for example, 1.3a and 1.3b, instead of 1.3 and 1.4? I'm using "bychapter" numbering. Example (also attached as tadtest3.tex): \setupcaption[table][way=bychapter] \starttext \chapter{Chapter Name} \dorecurse{3}{\input knuth\par} \placetable[split]{Table Caption}% { \bTABLE[split=repeat]% \bTABLEhead \bTR\bTH Table Header \eTH\eTR \eTABLEhead \bTABLEbody \dorecurse{10}{\bTR\bTD table row \eTD\eTR} \eTABLEbody \eTABLE} \stoptext The problem with the current numbering scheme is that it doesn't indicate that a single, split table is different than two separate tables. Another problem is that the tables end up getting numbered differently for different output formats (e.g. print vs. screen). So for instance, you can't refer to "table 4.7" in an e-mail, because you might be looking at the presentation version of the document, but others might be looking at the printed version. Thanks, Tad tadtest3.tex Description: TeX document ___ 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] New Section Causes the Previous Page to Break Differently
Hi All, I can create a document with text that ends at the bottom of a page. Like so (also attached as tadtest2a.tex): \showframe \starttext \section{section 1} \input bryson\par\blank \input davis\par\blank \input linden\par\blank \input weisman\par \input linden This should be a the top of page 2. \stoptext (I hope the vertical spacing works out the same on your machine as it does on mine. I'm using the latest minimals, 2010.01.25 11:09.) But if I happen to start a new section after that text, then part of the last paragraph from the first page gets pushed to the second page, leaving the text on page 1 short. Here is an example (also attached as tadtest2b.tex): \showframe \starttext \section{section 1} \input bryson\par\blank \input davis\par\blank \input linden\par\blank \input weisman\par \input linden \section{section 2} This should be the first sentence of page 2, but it's not. \stoptext This also happens for itemized lists. First the full page version (also attached as tadtest2c.tex): \showframe \starttext \section{section 1} \startitemize[n] \item \input bryson \item \input davis \item \input dawkins \item \input weisman \stopitemize This should be a the top of page 2. \stoptext Now the "spill-over" version (also attached as tadtest2d.tex): \showframe \starttext \section{section 1} \startitemize[n] \item \input bryson \item \input davis \item \input dawkins \item \input weisman \stopitemize \section{section 2} This should be the first sentence of page 2, but it's not. \stoptext If this is the expected behavior, is there any way to disable it? Thanks, Tad tadtest2a.tex Description: TeX document tadtest2b.tex Description: TeX document tadtest2c.tex Description: TeX document tadtest2d.tex Description: TeX document ___ 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] Problem With an Enumeration After a Forced Float
Hi All, Here's a corner case for you: place a figure with the 'force' option, followed by an enumeration with a background. Like this (also attached as tadtest1.tex): \defineenumeration[enum][before={\startbackground},after={\stopbackground}] \starttext \dorecurse{3}{\input knuth\par} \placefigure[force]{Moo}{\externalfigure[cow.pdf][width=.7\textwidth]} \startenum The contents of a test enumeration. \stopenum \stoptext The enumeration will start at the top of the next page (after the figure) even though there's plenty of room below the figure on the same page. If you take the background away from the enumeration (delete the 'before' and 'after' options), OR take the 'force' option off the \placefigure command, then the problem goes away. I suspect that this isn't the expected behavior. :-) Thanks, Tad tadtest1.tex Description: TeX document ___ 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] Verbatim Text with Embedded Formatting Commands (MkIV)
Hans Hagen wrote: > On 9-1-2010 0:52, Tad Ashlock wrote: > > > ... > > you can try the beta with > > \enabletrackers[buffers.visualize] > > \starttext > > \definetyping[C] % [option=C] > \setuptyping[C][escape=yes] > > \startC > #include > int main(){ >return 0; >/BTEX{\em unreachedCode;}/ETEX > } > \stopC > > \setuptyping[escape=yes] > > \startTEX > /BTEX\em sometex/ETEX > /BTEX\em sometex/ETEX \after > \before /BTEX\em sometex/ETEX > \before /BTEX\em sometex/ETEX \after > \before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after > \before \after > \stopTEX > > \setuptyping[TEX][escape=no] > > \startTEX > /BTEX\em sometex/ETEX > /BTEX\em sometex/ETEX \after > \before /BTEX\em sometex/ETEX > \before /BTEX\em sometex/ETEX \after > \before /BTEX\em sometex/ETEX \inbetween /BTEX\em sometex/ETEX \after > \before \after > \stopTEX > > \stoptext I did try the beta with that example and it worked, of course. But if I add a second \startC ... \stopC section, then it breaks. For example, this code (also attached as tadtest0.tex): \enabletrackers[buffers.visualize] \starttext \definetyping[C] % [option=C] \setuptyping[C][escape=yes] \startC #include int main(){ return 0; /BTEX{\em unreachedCode;}/ETEX } \stopC \startC printf("The second C segment doesn't work.\n"); \stopC \stoptext Produces this output: systems : begin file test.tex at line 3 !buffers: mapping 'c' visualizer onto 'typing' !buffers: setting escape range for visualizer 'C' to /BTEX -> /ETEX ! LuaTeX error ...text/tex/texmf-context/tex/context/base/buff-ini.lua:705: attempt to index local 'visualizer' (a number value) stack traceback: ...text/tex/texmf-context/tex/context/base/buff-ini.lua:705: in function 'set_escape' :1: in main chunk. \setupcommandsintype ...rameter \c!escape \!!es )} \doinitializeverbatim ...\everyinitializeverbatim \relax \nododowithbuffer ->\egroup \doinitializeverbatim \beginofverbatimlines \ctx... l.18 \stopC Tad tadtest0.tex Description: TeX document ___ 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] Symbols for copyright and registered
On Thursday 28 January 2010 17:59:07 Wolfgang Schuster wrote: > Am 28.01.10 23:43, schrieb John Culleton: > > In the past I have used defs like > > \def\reg{\char174} > > Is there a more universal way to get these symbols? > > ® and © > > or > > \registered and \copyright :) > > Wolfgang Thnks a bunch. Where did you find the documentation on these two characters? -- John Culleton "Create Book Covers with Scribus" Printable E-book 38 pages $5.95 http://www.booklocker.com/books/4055.html ___ 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] table, middle
Hello, I wish to align horizontally a table at the middle of \textwidth. without "Table xx.y". All the examples I found were left aligned. My environment: Debian/Gnome Context mkii Snow : 11cm, Temperature : 3.2 Celsius Please, what is the trick ? -- René Bastian www.pythoneon.org www.musiques-rb.org ___ 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] context scite
On 1/28/10, Milton R S wrote: > Hi Context users, > > I try to use Scite with Context in Ubuntu Linux, and followed the > instructions in the ''Scite in Context'' manual. > 1. Copied /usr/share/texmf/context/data/cont-*-scite.properties files to > /usr/share/scite where scite's properties files reside. > 2. From Options menu, I selected Open User Options File (that happens to be > /home/milton/.SciTEUser.properties) and inserted the line > import context > in that file > 2. Copied /usr/share/texmf/context/data/context.properties file to my home, > that is, /home/milton since it is where the SciTEUser.properties file also > resides (in Linux it is .SciTEUser.properties) > > Result: > 1. I get the Tools menu. > 2. I do not the autocompletion. This is the much needed one. > > Is there any properties that I have not set correctly? > > Regards > ---Milton > -- Sent from my mobile device Prof M Braun Tel.:27-12-4298006/8027 Physics Department Fax.: 27-12-4293643 University of South Africa (UNISA) moritz.br...@gmail.com P.O. Box 392 0003 UNISA South Africa ___ 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] Symbols for copyright and registered
On Fri, Jan 29, 2010 at 10:03 AM, zs wrote: > On Fri, 29 Jan 2010 00:36:13 +0100 > Bernhard Rosensteiner wrote: > >> is there a source where i can find such definitions? I mean for other >> symbols and „hard to type“ characters >> >> best regards >> Bernhard > > > for my purpose, I made utf-8 text containing all unusual characters and I > copy and paste them. > It's the most convenient way, IMO. > > example: > > ≈≐∿ > №©®™ℎℏ°℃ > ⌀ diameter 2300 > ∅ empty set 2205 > ⍉ 2349 > ¼½¾⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟ > ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ > ⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ √(x² ˖ y²) > √∛∜∢ nice idea It would be nice to collect the most used unicode char in a wiki page and also in a txt file to include in minimals just as convenience when typesetting in mkiv -- luigi ___ 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] Symbols for copyright and registered
On Fri, 29 Jan 2010 00:36:13 +0100 Bernhard Rosensteiner wrote: > is there a source where i can find such definitions? I mean for other symbols > and „hard to type“ characters > > best regards > Bernhard for my purpose, I made utf-8 text containing all unusual characters and I copy and paste them. It's the most convenient way, IMO. example: ≈≐∿ №©®™ℎℏ°℃ ⌀ diameter 2300 ∅ empty set 2205 ⍉ 2349 ¼½¾⅓⅔⅕⅖⅗⅘⅙⅚⅛⅜⅝⅞⅟ ₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎ ⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾ √(x² ˖ y²) √∛∜∢ Regards Zdenek ___ 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] Context bug - output is shifted about 0.5 cm left
2010/1/28 Quiark : > Hello, > > I couldn't find any note of this problem on the internet, so I'm reporting > it. I think because it's not a problem . > > In the latest ConTeXt, the output of any document is shifted somewhat to the > left. true from almost ten years see page 37 of pdf cont-enp.pdf 3.3 page composition (the page of pdf, not those printed on document) > To reproduce: create a document with a few paragraphs of text. To make the > problem more visible, use \showlayout. On the right side of the page, there > is about 0.5 cm gap. When the PDF is opened in Inkscape, we can see that the > lines produced by \showlayout are outside the page on the left side. true and it's ok, because you are using the default \setuppapersize[A4][A4] Try \setuppapersize[A4][A3] \setuplayout[location=middle] \showlayout \starttext \input knuth \stoptext > > It happens on live.contextgarden.net as well as on my windows machine with > the minimal context distribution. true > The problem does not occur in plain luatex. here I don't understand you . Are you using context mkiv ? > The problem happens with pdftex engine as well. here too I have some problems . Are you using context mkii ? > I tried viewing the PDF in multiple viewers. > > As this is an important problem, I suspect you are already aware of it, but > I couldn't find any notice about it. true :-( Maybe we will collect the answer here and then update the wiki http://wiki.contextgarden.net/Layout Of course... can be a bug . -- luigi ___ 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 ___