Re: [NTG-context] backgrounds
在 2014年10月17日 19:32, Procházka Lukáš Ing. - Pontex s. r. o. 写道: Source & result attached. I didn't expect your source even to compile since you missed out the \starttext thing. ___ 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] Problem with last version of ConTeXt
Hello Thanx Hans for the advice - too me it could attack itself :-). When I use \tracingall, then I managed to figure out what the problem was. In fact, there was an error retrieving data from an external file (the library), and it while trying to load ConTeXt buffer command. The original content of this buffer was: \startbuffer[hlavička_kú]% {\bf Katastrálnímu úřadu pro \VART{SMLOUVA}{KU_kraj} kraj\br% \expdoifelse{\getvariable{SMLOUVA}{KU_sidlo}}{\empty}{}{se sídlem \VART{SMLOUVA}{KU_sidlo}\br}% Katastrálnímu pracovišti \VART{SMLOUVA}{KU_pracoviste}}% \stopbuffer% This content has caused the error in the latest version of ConTeXt standalone (but in past versions of ConTeXt or standalone version of TeXLive 2014, I did not noticed this error message). When I made the following changes: \startbuffer[hlavička_kú]% \bgroup% \bf Katastrálnímu úřadu pro \VART{SMLOUVA}{KU_kraj} kraj\br% \expdoifelse{\getvariable{SMLOUVA}{KU_sidlo}}{\empty}{}{se sídlem \VART{SMLOUVA}{KU_sidlo}\br}% Katastrálnímu pracovišti \VART{SMLOUVA}{KU_pracoviste}% \egroup% \stopbuffer% then everything goes smoothly and everything is OK. Thanks very much for your help and assistance. I'm not sure if this irregularities those revelations this somehow help you. It is at least strange that ConTeXt version of TeXLive 2014 the code untroubled eat ...: -) ... Thanks again and have a lot of energy ... Jaroslav Hajtmar PS: Just to explain the code of \VART macro (probably irrelevant to You): \def\random#1#2{ \startluacode local cislo=math.random(10) if cislo > 3 then context('\\getvariable{#1}{#2}') else context('\\fakenwords{1}{'..math.random(10,15)..'}') end \stopluacode } \def\VART#1#2{% \doifmodeelse{koncept}% { \doifmodeelse{security}% {\random{#1}{#2}} {% \expdoifelse{\getvariable{#1}{#2}}{}{{\ERRORSCOLOR #1.#2 ERROR}}{{\VARSCOLOR\getvariable{#1}{#2}}}%\removeunwantedspaces} }% } {% \expdoifelse{\getvariable{#1}{#2}}{}{{\ERRORSCOLOR #1.#2 ERROR}}{{\VARSCOLOR\getvariable{#1}{#2}}}%\removeunwantedspaces }% }% Dne 19.10.2014 10:49, Hans Hagen napsal(a): On 10/18/2014 9:20 PM, Jaroslav Hajtmar wrote: Thanx Hans for reply. A few hours I was looking for a problem in my source file and library that load at the beginning of my file. It seems that the problem has nothing to do with the error message means that it has not nothing to do with the itemize environment nor setupitemize (nothing like this in the file does not resp. when sections of code to comment out these environments, so nothing changes). The problem probably is related to some a side effect, because in older versions of ConTeXt Standalone not appear (and does not appear in Context, which is included in the latest distribution TeXLive 2014). In my library are very old pieces of code that I used many years ago in plainTEX in combination with ConTeXtovým code (including frequent use \setvariables). Unfortunately I was despite my great efforts failed to create a "reasonable" minimal example, so I'll probably have to wait some time until someone else runs into a similar problem and will be able to describe properly document and create a minimum sample example (already with me it happened several times and each time it finally was resolved). just put a \tracingall someplace ... (bottom up) then you can see where it stops - 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] bug in \useURL?
> Am 19.10.2014 um 21:52 schrieb Pablo Rodriguez : > > Dear list, > > I have the following sample: > >\asciimode >\starttext >\useURL[url][only#one]\from[url] >\stoptext > > \asciimode seems to repeat the hash char. > > I’m afraid this might be a bug. It’s a known side effect of the \detokenize (a TeX primitive) command. \starttext \detokenize{#} \stoptext The same effect happens with the \hypenatedurl command which uses \detokenize as well to pass the argument to Lua. 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 ___
Re: [NTG-context] indentnext=no and \item
On 10/19/2014 09:49 PM, Wolfgang Schuster wrote: >>[...] >>\setupindenting[medium, always] >>\starttext >>\startitemize[a, indentnext=no] >>\item This is not indented. >> >>This shouldn’t be indented, but it is. >>\stopitemize >>\stoptext >> [...] > 1. You can’t put a keyword (the “a” option) and a assignment > (indentnext=no) into the same argument of a command. > > 2. The indent next option controls whether the paragraph after the > environment is indented or not but what you need is the indenting key. > > 3. You have to use \startitemize[a][indenting=no] in your document. Many thanks for your fast reply and you excellent explanation, Wolfgang. Pablo -- http://www.ousia.tk ___ 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] bug in \useURL?
Dear list, I have the following sample: \asciimode \starttext \useURL[url][only#one]\from[url] \stoptext \asciimode seems to repeat the hash char. I’m afraid this might be a bug. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] indentnext=no and \item
> Am 19.10.2014 um 21:10 schrieb Pablo Rodriguez : > > Dear list, > > I have the following sample: > >\setupindenting[medium, always] >\starttext >\startitemize[a, indentnext=no] >\item This is not indented. > >This shouldn’t be indented, but it is. >\stopitemize >\stoptext > > How can I get that the paragraphs other than the first in the item don’t > get indented? > > Many thanks for your help, 1. You can’t put a keyword (the “a” option) and a assignment (indentnext=no) into the same argument of a command. 2. The indent next option controls whether the paragraph after the environment is indented or not but what you need is the indenting key. 3. You have to use \startitemize[a][indenting=no] in your document. 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 ___
[NTG-context] indentnext=no and \item
Dear list, I have the following sample: \setupindenting[medium, always] \starttext \startitemize[a, indentnext=no] \item This is not indented. This shouldn’t be indented, but it is. \stopitemize \stoptext How can I get that the paragraphs other than the first in the item don’t get indented? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] displaymath, grid, vertical spacing, setupformulas
On Sat, Oct 18, 2014 at 7:22 PM, Mikael P. Sundqvist wrote: > Hi, > > I have problems to tune the vertical spacing before and after > displaymathformulas in grid typesetting. With the example below, I > like the spacing in the second formula but not the first (too big). If > I comment out the \setupformulas part, then the first one looks OK, > but the second is good. > > Is there a configure to get both of these to occupy three lines? > > I use the latest standalone. > > /Mikael > > \setuplayout[ > grid=tolerant, > ] > \showgrid > > %\setupformulas[ > %spacebefore=, > %spaceafter=, > %] > > > \starttext > \dorecurse{10}{This is a statement. } > \startformula > 1+2+\cdots+(n-1)+n=\frac{1+n}{2}n. > \stopformula > \dorecurse{10}{This is a statement. } > \startformula > 1+2+\cdots+(n-1)+n=\tfrac{1+n}{2}n. > \stopformula > \dorecurse{10}{This is a statement. } > \stoptext Sorry for answering my question by myself. I fixed my issue (for now at least) by defining a new formula. If anyone else is interested, the solution is given below. /Mikael \setuplayout[ grid=tolerant, ] \showgrid \setupformulas[ spacebefore=, spaceafter=, ] \defineformula[line][ spacebefore=big, spaceafter=big, ] \starttext \dorecurse{10}{This is a statement. } \startformula 1+2+\cdots+(n-1)+n=\frac{1+n}{2}n. \stopformula \dorecurse{10}{This is a statement. } \startlineformula 1+2+\cdots+(n-1)+n=\tfrac{1+n}{2}n. \stoplineformula \dorecurse{10}{This is a statement. } \stoptext ___ 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] Structure of titles in MkIV
The following seems to work well for me. Unfortunately, I do not remember what references.bookmarks.preroll accomplishes but searching the sources (and the mailing list archives) should help answer this question... % % make chapter bookmarks visible when opening document % \setupinteraction[state=start,option=bookmark,contrastcolor=interactioncolor] \setupinteractionscreen[option=bookmark] \placebookmarks[part,chapter,title,section,subject,subsection][part,chapter,title] \enabledirectives[references.bookmarks.preroll] I must point-out that whereas adobe reader handles bookmarks, many other pdf viewers do not. Alan On Sat, 18 Oct 2014 13:57:23 +0200 Michał Goliński wrote: > Thank you very much for the example. Indeed, now the structure of the > table of contents looks OK. Unfortunately, it breaks the PDF > bookmarks (which was initially my main concern). For this file (based > on your MWE), I get only Prologue in the bookmarks, although the > links in the table of contents work perfectly: > > \setupinteraction[state=start] > \placebookmarks[part,chapter][part,chapter][number=no] > > \starttext > \placecontent > > \startfrontmatter > \startchapter[title=Prologue] > \input knuth > \stopchapter > \stopfrontmatter > > \startpart[title={Part A}] > \startchapter[title=One] > \input knuth > \stopchapter > \stoppart > > \startbackmatter > \startchapter[title=Epilogue] > \input knuth > \stopchapter > \stopbackmatter > > \stoptext > > > Regards > Michał > > W dniu 2014-10-15 14:25, Keith Schultz napisał(a): > > > > Below I have a MWE to show the FLAW. > > > > MWE: > > > > \starttext > > \placecontent > > > > %\startfrontmatter % uncomment line to show what you would expect > > > > > > \startchapter[title=Prologue] > > \input knuth > > \stopchapter > > > > %\stopfrontmatter % uncomment line to show what you would expect > > > > \startpart[title={Part A}] > > \startchapter[title=One] > > \input knuth > > \stopchapter > > \stoppart > > > > % FLAW: sectioned under Part A should expect sectioning level 1 > > % or throw error that part needed here! > > \startchapter[title={not at top level}] > > \input knuth > > \stopchapter > > > > \startpart[title={Part B}] > > \startchapter[title=One] > > \input knuth > > \stopchapter > > \stoppart > > > > % \startbackmatter % uncomment line to show what you would expect > > > > > > % FLAW: sectioned under Part B should expect sectioning level 1 > > % or throw error that part needed here! > > \startchapter[title=Epilogue] > > \input knuth > > \stopchapter > > > > > > %\stopbackmatter % uncomment line to show what you would expect > > > > \stoptext > > > > regards > > Keith. ___ 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] Problem with last version of ConTeXt
On 10/18/2014 9:20 PM, Jaroslav Hajtmar wrote: Thanx Hans for reply. A few hours I was looking for a problem in my source file and library that load at the beginning of my file. It seems that the problem has nothing to do with the error message means that it has not nothing to do with the itemize environment nor setupitemize (nothing like this in the file does not resp. when sections of code to comment out these environments, so nothing changes). The problem probably is related to some a side effect, because in older versions of ConTeXt Standalone not appear (and does not appear in Context, which is included in the latest distribution TeXLive 2014). In my library are very old pieces of code that I used many years ago in plainTEX in combination with ConTeXtovým code (including frequent use \setvariables). Unfortunately I was despite my great efforts failed to create a "reasonable" minimal example, so I'll probably have to wait some time until someone else runs into a similar problem and will be able to describe properly document and create a minimum sample example (already with me it happened several times and each time it finally was resolved). just put a \tracingall someplace ... (bottom up) then you can see where it stops - 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 ___