Re: [NTG-context] Margin heading problem, was Re: sections
On 6/2/2014 3:44 AM, Rik Kabel wrote: On 2014-06-01 12:52, Hans Hagen wrote: On 6/1/2014 5:40 PM, Rik wrote: Is this also the cause of problems I noted with heading placed into the margin, as in the example below? no, unrelated, try this: \setuphead [section] [after={\strut\blank[-2*line,samepage,disable]}, command=\SectionCommand, distance=0pt] \define[2]\SectionCommand{\inleft{XX}} That was fine until it ran into \setupwhitespace with a non-zero value. Fiddling with the after key \blank does not appear to help. \define[2]\MarginHead{\inmargin{#1\\#2}} \setuphead[section] [command=\MarginHead, distance=0pt, after={\strut\blank[-2*line,samepage,disable]}] %% With no \setupwhitespace, or any \setupwhitespace setting that %% results in zero interparagraph whitespace, all is well. %setupwhitespace [none]%okay %setupwhitespace [fix]% okay %% With non-zero interparagraph whitespace, the heading separates %% from the text \setupwhitespace [line]%bad \starttext \startchapter[title={Weisman}] \input weisman\par \input weisman \startsection[title={Thuan}] \input thuan\par \input thuan \stopsection \stopchapter \stoptext you can always skip back whitespace or add 'nowhite' - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Publications working in latest beta?
I’m still not having luck with the new publications system. The behaviour of the original minimal example has changed in the most recent beta (2014.06.01 13:44); now the example renders (author:Eijkhout1991)” for the citation, and there is still no rendering of the publications list, which should presumably have just a single entry. Or is there some error in my example? Robin On 28 May 2014, at 0:08, Robin Kirkham robin.kirk...@csiro.au wrote: Dear List, After some time absent from Context-land, I thought I’d try the new non-BibTeX publications system. However I can’t get the following minimal example to work … \cite seems to expand to a () and there is no rendering of the publications list. Is the problem my example, or is it a bug? Robin \definebtxdataset[test] \usebtxdataset[test][sample.bib] \definebtxrendering[test] \setupbtxrendering[test][numbering=yes] \starttext As \cite[author][test::Eijkhout1991] already indicated, bibtex is a \LATEX||centric program. \placebtxrendering[test] \stoptext ConTeXt ver: 2014.05.23 23:24 MKIV beta fmt: 2014.5.27 int: english/english ___ 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] Two levels of itemization with the 'intext' option
Hello, How can I get the output given by the following code with the itemize environment? \starttext \quad---~Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo.\par \quad---~Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo.\par \quad\quad~---~Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo.\par \quad\quad~---~Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo.\par \quad---~Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. \stoptext I have tried this, but without success (it works only when there is one level of itemization): \definesymbol[emdashone][\quad---~] \definesymbol[emdashtwo][\quad\quad~---~] \setupitemize[1][packed, fit, intext][symbol=emdashone] \setupitemize[2][packed, fit, intext][symbol=emdashtwo] \starttext \startitemize \item Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. \item Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. \startitemize \item Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. \item Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. \stopitemize \item Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. \stopitemize \stoptext Best regards. ___ 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] Thumbnail sample.
The wiki shows two thumbnail samples. I like the first one. But I want to use MKIV. When I do the first sample blows up on the second chapter entry. Obviously there is some code in sample 1 that doesn't work under MKIV. By a process of elimination it centers on the thumbnail description proper. The file looks like this: --- \unprotected \def\rawsectionnumber#1{\countervalue{\??se#1}}%will be in kernel \setuppagenumbering [alternative=doublesided] \setupcolors [state=start] \setupbackgrounds [page] [background=thumbs] \defineoverlay [thumbs] [\setups{thumbs}] \def\NOfChapters{4} % i need to make this one available \startsetups thumbs \definemeasure[thumbheight][\dimexpr\paperheight/\NOfChapters\relax] \vbox to \paperheight \bgroup \vskip \rawsectionnumber{section-2} \measure{thumbheight} \vskip -1 \measure{thumbheight} \doifoddpageelse\hfill\donothing \framed [background=color, backgroundcolor=darkgray, frame=off, foregroundcolor=white, height=\measure{thumbheight},width=1cm] {\bfa \rawsectionnumber{section-2}} \doifoddpageelse\donothing\hfill \vss \egroup \stopsetups \starttext \chapter{first} \dorecurse{10}{\input tufte } \chapter{second} \dorecurse{10}{\input davis } \chapter{third} \dorecurse{10}{\input zapf } \chapter{fourth} \dorecurse{10}{\input bryson } \stoptext --- It works under MKII but not under MKIV. The error message occurs after the first chapter. But the chapters by themselves work OK. I will continue to experiment -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at 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 ___
Re: [NTG-context] Unable To Render Table With Over 3000 Rows
Are there instructions for installing the beta? I can't find them. Thanks, Neal On Fri, May 30, 2014 at 12:19 PM, john Culleton j...@wexfordpress.com wrote: On Fri, 30 May 2014 18:11:46 +0200 Hans Hagen pra...@wxs.nl wrote: On 5/28/2014 6:34 PM, Neal Lester wrote: When I attempt to render a table with more than about 3000 rows I get the following error. Searching the archives I found one message suggesting that [save size] is hard coded and cannot be increased. The application is rendering business reports; they are relatively simple documents but we definitely need more than 3000 rows. Is there a way to configure context to render tables of this size? at some point you will hit other limitations you can jump the number by changing a line in the source code but as that is cumbersome I changed the beta a bit so that you can add this line in the texmfcnf.lua file in the directives section: [luatex.savesize] = 10, (i now report the relevant values at the end of a context --make run as some need to be saved with the format due to startup relationships) I also set the value to 100K by default. Hans Thanks, Neal Lester (C:/projects/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2014.01.03 00:40 MKIV current fmt: 2014.5.28 int: english/english system 'cont-new.mkiv' loaded (C:/projects/context/tex/texmf-context/tex/context/base/cont-new.mkiv) system files jobname 'temp-AF5678CF-250D-4CB8-8505-21D1DAA5FA47', input './temp-AF5678CF-250D-4CB8-8505-21D1DAA5FA47', result 'temp-AF5678CF-250D-4CB8-8505-21D1DAA5FA47' fontslatin modern fonts are not preloaded languageslanguage 'en' is active (C:/projects/jinny/report_builder/temp-AF5678CF-250D-4CB8-8505-21D1DAA5FA47.tex{C:/projects/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fontspreloading latin modern fonts (second stage) fonts typescripts unknown library 'loc' {C:/projects/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/projects/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts'fallback modern rm 12pt' is loaded structuresectioning part @ level 1 : 1 - ! TeX capacity exceeded, sorry [save size=5] system tex error on line 5025 in file C:/projects/jinny/report_builder/temp-AF5678CF-250D-4CB8-8505-21D1DAA5FA47.tex: TeX capacity exceeded, sorry [ ... 5015 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,992\eTD \eTR 5016 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,993\eTD \eTR 5017 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,994\eTD \eTR 5018 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,995\eTD \eTR 5019 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,996\eTD \eTR 5020 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,997\eTD \eTR 5021 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,998\eTD \eTR 5022 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 4,999\eTD \eTR 5023 \bTR \bTD This is an arbitrary label\eTD \bTD[nc=1,align=flushright] 5,000\eTD \eTR 5024 \eTABLEbody 5025 \eTABLE 5026 \stoptext 5027 If you really absolutely need more capacity, you can ask a wizard to enlarge me. ! == Fatal error occurred, no output PDF file produced! ___ 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 ___ This sounds like a job for a programming language with printing features, and not a DTP program. In my days as a COBOL programmer printing a report from a data file with a million entries was not unusual. As my father used to say there are horses for courses. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: Create Book Covers with Scribus available at 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 :
Re: [NTG-context] Unable To Render Table With Over 3000 Rows
On 6/2/2014 8:32 PM, Neal Lester wrote: Are there instructions for installing the beta? I can't find them. Did you look at contextgarden.net? At the top of the page there is a link. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Margin heading problem, was Re: sections
On 2014-06-02 04:09, Hans Hagen wrote: On 6/2/2014 3:44 AM, Rik Kabel wrote: On 2014-06-01 12:52, Hans Hagen wrote: On 6/1/2014 5:40 PM, Rik wrote: Is this also the cause of problems I noted with heading placed into the margin, as in the example below? no, unrelated, try this: \setuphead [section] [after={\strut\blank[-2*line,samepage,disable]}, command=\SectionCommand, distance=0pt] \define[2]\SectionCommand{\inleft{XX}} That was fine until it ran into \setupwhitespace with a non-zero value. Fiddling with the after key \blank does not appear to help. \define[2]\MarginHead{\inmargin{#1\\#2}} \setuphead[section] [command=\MarginHead, distance=0pt, after={\strut\blank[-2*line,samepage,disable]}] %% With no \setupwhitespace, or any \setupwhitespace setting that %% results in zero interparagraph whitespace, all is well. %setupwhitespace [none]%okay %setupwhitespace [fix]% okay %% With non-zero interparagraph whitespace, the heading separates %% from the text \setupwhitespace [line]%bad \starttext \startchapter[title={Weisman}] \input weisman\par \input weisman \startsection[title={Thuan}] \input thuan\par \input thuan \stopsection \stopchapter \stoptext you can always skip back whitespace or add 'nowhite' Well, nowhite is a start, but the solution is still a way off. Meanwhile, the following works for non-grid layouts with reasonable values for \setupwhitespace, although perhaps somebody can come up with a more eloquent way to write it: \newdimen\SectionHeadSkip \SectionHeadSkip\dimexpr-2\lineheight-\parskip\relax \setuphead [section] [command=\SectionCommand, distance=0pt, after={\strut\blank[\the\SectionHeadSkip,samepage,disable,nowhite]}, ] \define[2]\SectionCommand {\inmargin{#1 -- #2}} When enabling grid layouts, the number of lines needs to be adjusted. Floats that appear as the first thing after a heading may present problems, especially with larger values for \setupwhitespace. (The default, with no location= specified, is pretty good, but when location={left,force} or such, there is often an unwanted offset from the header. and page breaks still appear between the heading and figure at times, despite the samepage setting for \blank.) So, this is quite fragile. It requires careful checking of every heading, and manual tuning when one breaks. Not a desirable solution, but at least it is possible. -- Rik Kabel ___ 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 ___