Re: [NTG-context] $n\choose k$-issue with OpenType math fonts
Am 06.03.2011 um 15:33 schrieb Hans Hagen: > On 6-3-2011 1:22, Andreas Harder wrote: > >> I don't know the best value either, but et least one could manipulate it. > > the next beta will support parameter overload in the goodies > >parameters = { -- test values >FactorA = 123.456, >FactorB = false, >FactorC = function(value,target,original) return 7.89 * > target.factor end, >FactorD = "Hi There!", >}, Many thanks, Hans! I'm looking forward to try it. Regards Andreas ___ 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] change interwordspace twice
Am 12.03.2011 um 10:01 schrieb Steffen Wolfrum: > > Am 11.03.2011 um 19:56 schrieb Wolfgang Schuster: > >> >> Am 11.03.2011 um 12:36 schrieb Steffen Wolfrum: >> >>> Hi, >>> >>> one time it works, the second it doesn't: >>> >>> \starttext >>> >>> \interwordspace 20.7pt Big Space >>> >>> \par >>> >>> \interwordspace 2.7pt Big Space >>> >>> \par >>> >>> \interwordspace 20.7pt Big Space >>> >>> \stoptext >>> >>> Does someone can explain how and when interwordspace is successfully set? >> >> That’s the only context way to change it: >> >> \starttext >> >> text text text >> >> \setuptolerance[space] >> >> text text text text >> >> \stoptext > > > Is there only one "space" or s is possible to set more fine-tuned values? You can define your own space. \definetolerancemethod [horizontal] [smallspace] {\spaceskip.2em plus.1em minus.05em\relax} \definetolerancemethod [horizontal] [mediumspace] {\spaceskip.33em plus.25em minus.1em\relax} \definetolerancemethod [horizontal] [bigspace] {\spaceskip.5em plus.25em minus.25em\relax} \starttext \showframe[text] \start \setuptolerance[smallspace] \input tufte \par \stop \blank \start \setuptolerance[mediumspace] \input tufte \par \stop \blank \start \setuptolerance[bigspace]\input tufte \par \stop \blank % default: \input tufte \stoptext Greeting Andreas ___ 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] change interwordspace twice
Am 12.03.2011 um 17:00 schrieb Wolfgang Schuster: > > Am 12.03.2011 um 13:04 schrieb Andreas Harder: > >> Am 12.03.2011 um 10:01 schrieb Steffen Wolfrum: >> >>> Is there only one "space" or s is possible to set more fine-tuned values? >> >> You can define your own space. >> >> \definetolerancemethod >> [horizontal] >> [smallspace] >> {\spaceskip.2em plus.1em minus.05em\relax} > > Yes this is a possibility but i would prefer something like this: > > \definespace[smallspace][width=.2em,shrink=.05em,stretch=.1em] Me too. > \starttext > ... > \setupspace[smallspace] % Better \enablespace[smallspace] or > \setspace[smallspace]? > ... > \stoptext > > 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 > ___ ___ 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] $n\choose k$-issue with OpenType math fonts
Am 06.03.2011 um 15:33 schrieb Hans Hagen: > On 6-3-2011 1:22, Andreas Harder wrote: > >> I don't know the best value either, but et least one could manipulate it. > > the next beta will support parameter overload in the goodies > >parameters = { -- test values >FactorA = 123.456, >FactorB = false, >FactorC = function(value,target,original) return 7.89 * > target.factor end, >FactorD = "Hi There!", >}, I'm afraid, I don't get it. Here is what I tried: I copied all stack-relevant values from asana-math.tma and put them in the return section of the goodies file (like showed in lm-math.lfg). But even if I set all values to zero, the output remains the same. Im I doing something wrong? asana-math.lfg Description: Binary data test-goodies.tex Description: Binary data Greeting Andreas___ 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] $n\choose k$-issue with OpenType math fonts
Am 13.03.2011 um 16:51 schrieb Aditya Mahajan: > On Sun, 13 Mar 2011, Andreas Harder wrote: > >> I'm afraid, I don't get it. Here is what I tried: >> I copied all stack-relevant values from asana-math.tma and put them in = >> the return section of the goodies file (like showed in lm-math.lfg). But = >> even if I set all values to zero, the output remains the same. Im I = >> doing something wrong?=20 >> >> [snip] >> >> return { >> name = "lm-asana", >> version = "1.00", >> comment = "Goodies that complement asana.", >> author = "Hans Hagen", >> copyright = "ConTeXt development team", >> parameters = { -- test values >> -- data = { >> metadata = { >> math = { >> StackBottomDisplayStyleShiftDown = 0, >> StackBottomShiftDown = 0, >> StackDisplayStyleGapMin = 0, >> StackGapMin = 0, >> StackTopDisplayStyleShiftUp = 0, >> StackTopShiftUp = 0, >> StretchStackBottomShiftDown = 0, >> StretchStackGapAboveMin = 0, >> StretchStackGapBelowMin = 0, >> StretchStackTopShiftUp = 0, >> }, >> }, >> -- }, >> }, >> } > > The return name "lm-asana" is a bit strange. I am not sure if that is > relevant or not. I think "lm-asana" is right, otherwise compilation ends with " Math error: parameter \Umathquad\displaystyle is not set." Andreas ___ 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] Problems with current experimental branch
Hi Hans, I don't know it its legible to post problems with the current experimental, so tell me if its not. 1) With OpenType math fonts italic will not work. \setupbodyfont[asana] % \setupbodyfont[cambria] % \setupbodyfont[xits] % \setupbodyfont[euler] \starttext {\it test} \stoptext 2) Actually it's not possible to load Cambria, Xits or Euler at all. \setupbodyfont[cambria] % \setupbodyfont[xits] % \setupbodyfont[euler] \starttext test \stoptext 3) The fit option for itemize causes an error. \starttext \startitemize[fit] \item test \stopitemize \stoptext Greeting Andreas ___ 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] Problems with current experimental branch
Am 22.03.2011 um 14:07 schrieb Hans Hagen:On 22-3-2011 1:01, Andreas Harder wrote:I don't know it its legible to post problems with the current experimental, so tell me if its not.What exactly is current experimental? Works ok here the real experimental -)I tried again with the one from http://minimals.contextgarden.net/current/context/experimental/ \setupbodyfont[cambria]\starttexttest\stoptextLog attached. otf-math.log Description: Binary data The other examples don't work either.Andreas___ 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] beta (asana goodies)
Hi Hans, with the latest beta asana-math.lfg don't seem to have any influence of the output. \setupbodyfont[asana] \startTEXpage[offset=1ex] $\binom{n}{k}\quad \dbinom{n}{k}$ \stopTEXpage It used to work with the experimental two or three days ago. Greeting Andreas ___ 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] beta (itemize fit-option)
Hi all, the fit-option in itemize-environments seem to be broken. Can someone confirm this? \starttext \startitemize[R,fit] % ,fit -> error \dorecurse{8}{\item test} \stopitemize \stoptext Greeting Andreas ___ 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] beta (backend)
Here is another error with the latest beta: \setupbackend[format=PDF/X-4p] \starttext test \stoptext Greeting Andreas ___ 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] Capital spacing feature
Consider the following example \definefontfeature[capital spacing] [cpsp=yes] \definefontfeature[small capitals] [c2sc=yes] \starttext \setfontfeature{capital spacing} % not OK % \setfontfeature{small capitals} % OK ABCDEFGHIJKLMNOPQRSTUVWXYZ \stoptext It works okay with small capitals but with capital spacing the context throws an error: …/node-inj.lua:70: attempt to index local 'spec' (a nil value) Greeting Andreas ___ 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 and metapost: using \frac
Am 26.04.2011 um 13:36 schrieb Matthieu Stigler: > > Le 26/04/2011 12:36, Hans Hagen a écrit : >> On 26-4-2011 12:02, Matthieu Stigler wrote: >>> Dear Hans >>> >>> Thanks for your quick answer! I was however not able to produce the >>> graph with the textext code... Should I actually then use another >>> compiler? I tried with context and texexec (I thought texexec is the >>> compiler for mkiv, right? I'm on linux ubuntu). >> >> no, use the 'context' command as texexec is for mkii >> > ok, so I was using the right compiler I get a mystake while trying to > compile a file with the code you sent... you didn't? Would you be so nice and > send complete file, so I can check what is wrong? > > >>> I saw also that, as you mention, context has a \frac: >>> http://wiki.contextgarden.net/Math_with_newmat >> >> indeed, \frac is already there for a long time (ams compatible command) > >> btw, in mkiv there is no m-newmath >> >>> I tried then to simply add \usemodule[newmat] and compile with context, >>> but did not work... Code below, error message below below... >>> ! Math error: parameter \Umathfraction_del_size\displaystyle is not set. >>> l.3 ...t{411}{$\displaystyle \frac {\sigma _t}{a}$ >>> } >>> ...ore.mp ; fi ; ;;;]===], false)} >> >> make sure that a font is loaded that has math before \starttext is seen >> >> (try with \setupbodyfont[palatino] at the top of your file) >> > this does not work neither I still get error message with this code: > > \usemodule[newmat] > > \setupbodyfont[palatino] > > \starttext > > \startMPpage > > label.top(textext("$ \frac{\sigma_t}{a}$") scaled 1.00, (1, 1)); > > %label.top(btex $ \frac{\sigma_t}{a}$ etex, (0, 10)); > > %label.top(textext( $\displaystyle \frac{\sigma_t}{a}$ ) scaled 1.00, (1, > 1)); > > \stopMPpage > > \stoptext Hi, this works for me. \setupbodyfont[palatino] \startMPpage[offset=1ex] u := cm ; label.top(textext("$ \frac{\sigma_t}{a}$") scaled 2, origin); label.top(textext("$ \frac{\sigma_t}{a}$"), (u,u)); label.top(textext("$\dfrac{\sigma_t}{a}$") scaled .5, (u,0)); \stopMPpage Greeting Andreas ___ 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] Skipping item numbers in an itemized list?
Am 27.04.2011 um 16:39 schrieb Ulrike Fischer: > Am Wed, 27 Apr 2011 16:19:45 +0200 schrieb Wolfgang Schuster: > >> Am 27.04.2011 um 15:53 schrieb Alasdair McAndrew: >> >>> Hello, >>> >>> The effect I want is something like: >>> >>> 1. First item >>> 2. Second item >>> 5. Fifth item >>> 6. Sixth item >>> 8. Eight item > >>> and so on. Every now and then I need to skip a number or two. >>> In LaTeX I could do this with \addtocounter{enumi}{2} - but how >>> is this done in ConTeXt? > >> \starttext >> >> \startitemize >> \sym{1.} First item >> \sym{2.} Second item >> \sym{5.} Fifth item >> \sym{6.} Sixth item >> \sym{8.} Eight item >> \stopitemize >> >> \stoptext > > You can't be serious ;-). Do you really think one should enter all > numbers manually only because someone wants to skip e.g. the number > "13"? There must be a counter around and a way to advance it. > > From the code I think this should be used: > > \starttext > > \startitemize[n] > \item here we list the points, > \item one after the other. > \doadvanceitem > \item blub > \stopitemize > \stoptext What about the following? \starttext \startitemize[n] \item one \noitem \item three \stopitemize \stoptext Andreas ___ 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] (URGENT) floating objects causing bug
Am 15.05.2011 um 12:39 schrieb Taco Hoekwater: > On 05/15/2011 11:35 AM, Steffen Wolfrum wrote: >> Hi Hans, >> >> while finishing a big project (900 pages, 300 floating tables/figures) I >> noticed that the first line of each page is moving up/down (almost half a >> line)! >> >> Reason: As soon a a floating object is placed the next page is disturbed. > > The problem is that the vertical space collapser is collapsing *into* > topskip's spec field, thereby changing its value. That much is > clear to me. I do not know how to fix this nicely, but a crude > workaround to fix your project is: > > \appendtoks \global\topskip=10pt plus 50pt \to \everyafteroutput What about \setupinterlinespace[top=0]? I had once a related (?) problem: http://archive.contextgarden.net/message/20110224.131537.352b2342.en.html Greeting Andreas___ 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] \lohi{…}{…}
Hi Hans, something goes wrong with \lohi{high}{low}. <> \starttext \lohi{high}{low} \stoptext Greeting Andreas___ 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] \setupbodyfont[dejavu]
Hi Hans, with the latest beta (as well as experimental) \setupbodyfont[dejavu] \starttext test \stoptext breaks with ! LuaTeX error ...xt-new/tex/texmf-context/tex/context/base/l-file.lua:121: bad argument #1 to 'find' (string expected, got nil) Greeting Andreas ___ 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] Footnote number followed by a dot
Hi all, I'm pretty sure the following example worked a white ago \setupnote [footnote] [numbercommand=,right={.}] \starttext \dorecurse{12}{test\footnote{test}} \stoptext Can someone help? I would like to have: 1. First footnote 2. Second footnote etc. Greeting Andreas ___ 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] Footnote number followed by a dot
Am 02.07.2011 um 14:42 schrieb Wolfgang Schuster: > > Am 02.07.2011 um 14:20 schrieb Andreas Harder: > >> Hi all, >> >> I'm pretty sure the following example worked a white ago >> >> \setupnote [footnote] [numbercommand=,right={.}] > > Use \setupnotedefinition. Hi Woflgang, I tried this allready \setupnote [footnote] [numbercommand=,] \setupnotedefinition [footnote] [right={.}] \starttext \dorecurse{12}{test\footnote{test}} \stoptext The output is the same. Andreas ___ 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] Footnote number followed by a dot
Am 02.07.2011 um 15:52 schrieb Wolfgang Schuster: > > Am 02.07.2011 um 15:05 schrieb Andreas Harder: > >> I tried this allready >> >> \setupnote [footnote] [numbercommand=,] >> \setupnotedefinition [footnote] [right={.}] >> >> \starttext >> \dorecurse{12}{test\footnote{test}} >> \stoptext >> >> The output is the same. > > Use this: > > \setupnote [footnote] [numbercommand=\groupedcommand{}{.}] > > \starttext > \dorecurse{12}{test\footnote{test} } > \stoptext Thanks Wolfgang! Andreas ___ 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] Export problems
Hi, I played a little with the export feature. It's really fun. So far I've two questions/problems. 1. \setupbackend[export=yes,xhtml=yes,css=yes] \starttext before \quotation{test \quote{test}} after \stoptext exports to: before “test ‘test’ ” after -^ (space between ’ and ”) But sometimes there is no space between the closing quote symbol and the following word. (I‘m trying to make an example). 2. Is there a possibility to “ignore” content the other way round? Something like: \startmode[export] … \stopmode Concrete it‘s problematic to export texts with onum- and pnum-features enabled. Greeting Andreas ___ 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] beta
Am 14.07.2011 um 17:24 schrieb Hans Hagen: > (also see http://www.pragma-ade.com/show-mag-13.htm) So it's recommended to load the \environment before the \start- \stopcomponent and \start- \stopproduct? So far I've done it vice versa, but this changes my page break. Greeting Andreas ___ 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] beta
Am 15.07.2011 um 13:33 schrieb Hans Hagen: > On 15-7-2011 1:00, Andreas Harder wrote: > >> The problematic part was \setupblank[medium]. Would it be possible to make >> this setup work also before \start[component | prodoct | text]? > > Well, in that case you need to initialize the bodyfont beforehand. Normally > it should sync itself so there must be some interference somewhere. If I'm getting you right, this should work? \startbuffer \setupbodyfont[modern] \setupblank[medium] \showframe \stopbuffer \getbuffer % \setupblank[medium] not applied \starttext % \getbuffer % \setupblank[medium] applied \dorecurse{17}{\dorecurse{35}{test }\par\blank} \stoptext Andreas ___ 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] beta
Am 15.07.2011 um 14:28 schrieb Wolfgang Schuster: > > Am 15.07.2011 um 13:43 schrieb Andreas Harder: > >> If I'm getting you right, this should work? >> >> \startbuffer >> \setupbodyfont[modern] >> \setupblank[medium] >> \showframe >> \stopbuffer >> >> \getbuffer % \setupblank[medium] not applied >> \starttext >> % \getbuffer % \setupblank[medium] applied >> >> \dorecurse{17}{\dorecurse{35}{test }\par\blank} >> \stoptext > > No, there are a few settings which can only be set *after* \starttext because > ConTeXt resets them at this point. Okay, so I will stick to that. Thanks! Andreas ___ 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 \automigrateinserts
Hi, if one uses \automigrateinsers footnotes in captions will be eaten. \automigrateinserts % kill footnotes in captions! \starttext \in{Footnote}[foot:a] \par \in{Footnote}[foot:b] \par \in{Footnote}[foot:c] \placefigure[here] [pic:ref:h]{test\footnote[foot:a]{a footnote}}{} \placefigure[top] [pic:ref:t]{test\footnote[foot:b]{a footnote}}{} \placefigure[bottom][pic:ref:b]{test\footnote[foot:c]{a footnote}}{} \in{Footnote}[foot:a] \par \in{Footnote}[foot:b] \par \in{Footnote}[foot:c] \stoptext Greeting Andreas ___ 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] \environment before vs. after \startproduct
Hi, here is another problem regarding \environments. % \setupbodyfont[palatino] % OK \starttext \setupbodyfont[palatino] % not OK \startformula \binom{n}{0} \stopformula \stoptext To avoid it, I'd have to use something like the following? \environment font-setups \startproduct \environment blank-setups Greeting Andreas ___ 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 \automigrateinserts
Am 16.07.2011 um 15:28 schrieb Wolfgang Schuster: > > Am 16.07.2011 um 13:40 schrieb Andreas Harder: > >> Hi, >> >> if one uses \automigrateinsers footnotes in captions will be eaten. >> >> \automigrateinserts % kill footnotes in captions! > > Do the notes appear when you comment \automigrateinserts? Yes, they do. And now I see, it's mentioned in the source (node-mig.mkiv). Andreas ___ 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 \automigrateinserts
Am 18.07.2011 um 13:39 schrieb Hans Hagen: > On 16-7-2011 1:40, Andreas Harder wrote: >> Hi, >> >> if one uses \automigrateinsers footnotes in captions will be eaten. >> >> \automigrateinserts % kill footnotes in captions! > > experimental hack in next version Thanks a lot! It works. Andreas ___ 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] vertical alignment in TOC
Am 19.07.2011 um 20:36 schrieb Thomas A. Schmitz: > Hi all, > > for an edited volume, entries in the TOC have two lines, title, then author. > Is is possible to have the page number aligned to the title, i.e. the first > of these lines? > > Example: > > \setuphead[chapter] > [number=no] > > \setuplist[chapter] > [width=0cm] > > \starttext > > \startchapter[title=One,list={A Title \crlf An Author}] > > \input knuth > > \stopchapter > > \page > > \placelist[chapter][criterium=text] \define[3]\ChapterList% {\bTABLE[offset=none,rulethickness=0pt,width=broad] \bTR % \bTD #1 \eTD \bTD #2 \eTD \bTD[width=1.5em,align={left,high}]\strut #3 \eTD \eTR \eTABLE} \setuplist[chapter][alternative=command,command=\ChapterList] \placelist[chapter][criterium=text] \stoptext If I got your right, this should work. Greeting Andreas ___ 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] simplefonts and protrusion/expansion
Hi Wolfgang, what is the correct way to setup protrusion and expansion with your simplefonts module? I've tried: \usemodule[simplefonts] \setmainfont[texgyrepagella][expansion=yes,protrusion=yes] % \definefontfeature [default] [default] [mode=node,expansion=quality,protrusion=quality] % \setupbodyfont[pagella] \setupalign[hz,hanging] \starttext \startcolumns \input tufte \stopcolumns \stoptext Greeting Andreas ___ 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] MetaPost glyph operator
Hi all, the following used to work not so long time ago. \startMPpage[offset=1ex] fontmapfile "=lm-ec.map" ; picture q ; path p ; q := (glyph "Q" of "ec-lmr10") ; for item within q : p := pathpart item ; draw p ; endfor ; \stopMPpage With the current beta the compilation interrupts with: mtx-context | fatal error: no return code, message: luatex: execution interrupted Any hints? Greeting Andreas ___ 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] dejavu fonts
On 14.08.2011, at 21:41, Mojca Miklavec wrote: > On Sun, Aug 14, 2011 at 19:50, Hans Hagen wrote: >> >> Am I right that there is no monospace condensed (imo more useful than the >> other condensed), > > Sadly that's the same conclusion that I came to earlier. Hi, I just found http://permalink.gmane.org/gmane.comp.fonts.dejavu/4107 Greeting Andreas ___ 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] Long word out of text area/No proper line wrap with flushleft
On 20.09.2011, at 11:31, Stefan Müller wrote: > Hi again, > > in one of my documents I want the text to be flushedleft and not hyphenated, > see the following example. > > \setupalign[flushleft, nothyphenated] > \starttext > \showlayout > bb bb bb bb bb > aa bb > \stoptext \setupalign[flushleft,nothyphenated,broad] \starttext \showframe bb bb bb bb bb aa bb \stoptext Greeting Andreas ___ 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] Long word out of text area/No proper line wrap with flushleft
On 20.09.2011, at 11:50, Stefan Müller wrote: > Ah, thank you very much! Can you tell me why it's called "broad"? I don't > get the intention behind this key… I’ve no clue. Wolfgang Schuster postet this solution a several times, so I've remembered it. Andreas ___ 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] Latest Beta
Hello, in some rare circumstances the enabled italic correction (\setupitaliccorrection[always]) cause the following error: /tex/texmf-context/tex/context/base/typo-itc.lua:99: attempt to index local 'cd' (a nil value) In needed I will try to make a minimal example. I’ve asked it already, bun since I got no answer … Would it be possible to expand the the cross referencing mechanism, so that it would be possible to store the component files in a subfolder? Here is a test: http://www.ntg.nl/pipermail/ntg-context/2011/062335.html Thanks in advance Andreas ___ 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 latest beta
On 13.10.2011, at 21:46, Hans Hagen wrote: > On 13-10-2011 09:37, luigi scarso wrote: > >> Please type another input file name: > > A new beta ... better check mp code as I've split all mkii/mkiv mp related > code (i.e. metafun ii is frozen and metafun iv will be mainstream). I might > have messed when cleaning up the code. The compilation of \startMPpage[offset=1ex] draw function (1,"x","sin(x)",0,2*pi,.001) scaled 20 ; \stopMPpage ends with "! Improper `addto'." … Greeting Andreas ___ 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] Item-referencing broken in latest beta
Hi, here is a test file: \startcomponent test \startitemize[n] \item[itm:1] test \stopitemize In \in{item}[itm:1] \stopcomponent and the relevant log excerpt: references > itm:1={ { ["error"]="unknown inner", ["inner"]="itm:1", ["reference"]="itm:1", }, ["n"]=1, ["prefix"]="test", ["reference"]="itm:1", } references > unknown reference [test][itm:1] Greeting Andreas ___ 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] No \colon with pxmath
Hi, the colon sign disappears if one uses pxmath fonts (latest beta MkIV). \setupbodyfont[palatino] % not OK % \setupbodyfont[asana] % OK \startTEXpage $a:b$\par $a\colon b$ \stopTEXpage Regards Andreas ___ 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] xmldir
Hello, I would like to use some tricks described in xmldir manual (only with MkIV) but mtxrun --script tool --dirtoxml stops with /Users/ah/context-old/tex/texmf-osx-64/bin/mtxrun:3248: bad argument #1 to '(for generator)' (directory metatable expected, got nil) Regards Andreas ___ 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 latest beta
Hi Hans, something is wrong with the \mathprime definition in math-pln.mkiv. The compilation of \starttext $f'(x)$ \stoptext Stopps with: \dodomathprime ->\normalprime \futurelet \nexttoken \dododomathprime Regards Andreas ___ 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] xmldir (mtxrun still unpatched?)
Hi Hans, with the latest beta I still have to patch mtxrun to make xmldir work … Besides, the root-parameter (--root=some/path) don’t seem to have any impact. As an workaround I’m using \startmode[*first] \executesystemcommand {cd some/path && mtxrun --script tools --dirtoxml --pattern=*.pdf --output=some/path/xmldir.xml} \stopmode Thanks in advance Andreas ___ 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] Links in exported XHTML file
Hi all, how do I manage to get proper links in the exported XHTML document. It works well with intern references. \setupinteraction[state=start] \setupbackend[export=yes,xhtml=yes,css=export-example.css] \starttext \useURL[google][http://www.google.com/][][Google] \from[google] \textreference[txt:ref]{some text} \in[txt:ref] % OK \goto{Google}[url(http://www.google.com/)] \stoptext I would appreciate any tips. Regards Andreas ___ 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] Error with anglebetween(…)
Hello Hans, has something changed with the anglebetween definition in MetaPost? I’m sure this worked a couple of betas ago. \startMPpage path p,q ; p := origin -- (50,0) ; q := origin -- (50,50); drawarrow anglebetween(p,q,"somelabel") ; \stopMPpage ! Missing `)' has been inserted. Regards Andreas ___ 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] Links in exported XHTML file
On 25.10.2011, at 00:20, Hans Hagen wrote: > On 24-10-2011 23:22, Andreas Harder wrote: >> >> On 24.10.2011, at 15:01, Hans Hagen wrote: >> >>> On 21-10-2011 11:27, Andreas Harder wrote: >>>> \setupinteraction[state=start] >>>> >>>> \setupbackend[export=yes,xhtml=yes,css=export-example.css] >>>> >>>> \starttext >>>> \useURL[google][http://www.google.com/][][Google] \from[google] >>>> \textreference[txt:ref]{some text} \in[txt:ref] % OK >>>> \goto{Google}[url(http://www.google.com/)] >>>> \stoptext >>> >>> in next beta >> >> Thanks Hans, but now the text reference is *not* wrapped in xhml:a-tags. > > at.href = "#" .. gsub(at.location,":","_") > > => > >href = "#" .. gsub(at.location,":","_") Thanks again, but here is another one … sorry for complaining \setupinteraction[state=start] \setupbackend[export=yes,xhtml=yes,css=export-example.css] \starttext \goto{Pragma (url)}[url(http://www.pragma-ade.com/)] % OK \goto{PDF (file)}[file(http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf)] \goto{PDF (fileorurl)}[fileorurl(http://www.pragma-ade.com/general/manuals/ms-cb-en.pdf)] \stoptext Andreas ___ 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] Wrong reference number
Hi all, I'm not sure if this was introduced with the latest beta, but I just realized that the referencing numbers not right. \starttext \chapter{First} \in{Figure}[fig:a] % should be 1.1 \placefigure[here][fig:a]{}{} \in{Figure}[fig:b] % should be 1.2 \placefigure[here][fig:b]{}{} \stoptext Regards Andreas ___ 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] No numbers with `\ref` and floats like `\placetable`
On 29.10.2011, at 23:47, Paul Menzel wrote: > Dear ConTeXt folks, > > > I am sorry for another reference related question. Using > >ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: > english/english That's also true for yesterdays beta. \starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext Regards Andreas ___ 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] No numbers with `\ref` and floats like `\placetable`
On 30.10.2011, at 09:45, Wolfgang Schuster wrote: > > Am 29.10.2011 um 23:57 schrieb Andreas Harder: > >> >> On 29.10.2011, at 23:47, Paul Menzel wrote: >> >>> Dear ConTeXt folks, >>> >>> >>> I am sorry for another reference related question. Using >>> >>> ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: >>> english/english >> >> That's also true for yesterdays beta. > > I’m aware of this but I hadn’t time so far to write a fix for this. Okay. Thank you in advance. Andreas ___ 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] Italic correction spoils XHTML-output
Hi all, I spotted an curious side effect while using italic correction together with the export feature. The XHTML-export has unwanted spaces while the PDF is fine. \startbuffer[css] highlight[detail=emph] { font-style: italic } \stopbuffer \savebuffer[css][test.css] % -> do not work! \setupbackend[export=yes,xhtml=yes,css={test.css}] \definefontfeature[default][default][itlc=yes] \setupitaliccorrection[always] % not OK % \setupitaliccorrection[always,global] % OK \definehighlight[emph][style=\it] \starttext \emph{example} % ex am ple \spottiest Regards Andreas PS. By composing this example I noticed that \savebuffer do nothing. ___ 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] No numbers with `\ref` and floats like `\placetable`
On 30.10.2011, at 09:45, Wolfgang Schuster wrote: > > Am 29.10.2011 um 23:57 schrieb Andreas Harder: > >> >> On 29.10.2011, at 23:47, Paul Menzel wrote: >> >>> Dear ConTeXt folks, >>> >>> >>> I am sorry for another reference related question. Using >>> >>> ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: >>> english/english >> >> That's also true for yesterdays beta. > > I’m aware of this but I hadn’t time so far to write a fix for this. Hi Wolfgang, still no fix? \starttext \placeformula[eq:1] \startformula a+b \stopformula \in{Equation:}[eq:1] \stoptext Regards Andreas ___ 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] No numbers with `\ref` and floats like `\placetable`
On 07.11.2011, at 12:03, Wolfgang Schuster wrote: > > Am 07.11.2011 um 11:53 schrieb Andreas Harder: > >> >> On 30.10.2011, at 09:45, Wolfgang Schuster wrote: >> >>> >>> Am 29.10.2011 um 23:57 schrieb Andreas Harder: >>> >>>> >>>> On 29.10.2011, at 23:47, Paul Menzel wrote: >>>> >>>>> Dear ConTeXt folks, >>>>> >>>>> >>>>> I am sorry for another reference related question. Using >>>>> >>>>>ConTeXt ver: 2011.10.14 22:47 MKIV fmt: 2011.10.15 int: >>>>> english/english >>>> >>>> That's also true for yesterdays beta. >>> >>> I’m aware of this but I hadn’t time so far to write a fix for this. >> >> Hi Wolfgang, >> >> still no fix? >> >> \starttext >> \placeformula[eq:1] >> \startformula a+b \stopformula >> \in{Equation:}[eq:1] >> \stoptext > > When you don’t need subformulas change this in strc-mat.mkiv: I don’t, thanks. Andreas ___ 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] No numbers with `\ref` and floats like `\placetable`
On 07.11.2011, at 13:02, Wolfgang Schuster wrote: > > Am 07.11.2011 um 12:45 schrieb Andreas Harder: > >>> When you don’t need subformulas change this in strc-mat.mkiv: >> >> I don’t, thanks. > > Instead of patching strc-mat.mkiv you can create a file with the name > cont-loc.mkiv > in your working directory where you add both modified commands. With this > method > you don’t have to make the changes in the core and when it’s fixed just > delete this file. This is a really useful tip! Thanks again. Andreas ___ 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] Export \thinspace
Hi Hans! If one uses the HZ-algorithm the behavior of (the exported) \thinspace depends on the line break. \definefontfeature[default][default][expansion=quality] \setupalign[hz] \setupbackend[export=yes,css=yes,xhtml=yes] \starttext \startbuffer narrow\,nonbreaking\,space \stopbuffer \getbuffer \par \dorecurse{10}{\getbuffer} \stoptext exports to: narrownonbreakingspace narrow nonbreaking … Would it be possible to export \, to ? Regards Andreas ___ 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] Italic correction (line starts with comma)
Hi Hans, as a side effect of italic correction some lines start with an comma. \setuppapersize[A5] \definefontfeature[default][default][itlc=yes] \setupitaliccorrection[always] \starttext \showframe[text] \startbuffer {\it italic}, normal, {\em emphasized}, normal \stopbuffer \dorecurse{20}{\getbuffer} \stoptext Regards Andreas ___ 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] page number placement in multiline TOC entry
On 07.11.2011, at 15:51, Michael Guravage wrote: > Greetings, > > At the recent ConTeXt workshop someone mentioned that they had achieved > placing a pagenumber to the right of the first line of a multiline table of > contents entry. Can anyone describe how to acomplish this? Hi, something like this? \define[3]\ChapterList {\bTABLE[offset=0pt,rulethickness=0pt,strut=yes,frame=off,width=broad] \bTR \bTD[width=2em] \begstrut#1\endstrut \eTD \bTD\begstrut#2\endstrut \eTD \bTD[width=2em,align={left,high}] \begstrut#3\endstrut \eTD \eTR \eTABLE} \setuplist[chapter][alternative=command,command=\ChapterList] \starttext \showframe \placelist[chapter] \dorecurse{3}{\chapter{Some very long title. Some very long title. Some very long title. Some very long title. Some very long title. }} \stoptext Regards Andreas ___ 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] beta
On 08.11.2011, at 15:28, Hans Hagen wrote: > > […] I might have introduced some issues there. Hi Hans! \setupbackend[export=yes] \setupcaptions[number=no] \starttext \startplacefigure[title={Some Caption},location=right] % OK with "here" \externalfigure[dummy] \stopplacefigure \stoptext exports to: Some Caption The floatcaption- and floattext-tags are missing. Regards Andreas___ 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] beta
On 08.11.2011, at 18:31, Hans Hagen wrote: > On 8-11-2011 16:58, Andreas Harder wrote: > >> The floatcaption- and floattext-tags are missing. > > added in next beta (same for empty floats) Thanks, it works! Andreas ___ 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] Splitting (x)tables
Hi all, I think there is a bug with \placefloat and split option. \starttext \showframe[text] \setupxtable [split=yes,option=stretch, width=4cm,height=3cm, align={middle,middle}] \startbuffer \startxtable \dorecurse{15}{% \startxrow \dorecurse{5}{\startxcell cell: #1 x ##1 \stopxcell} \stopxrow} \stopxtable \stopbuffer % \getbuffer % OK \placetable[here,split]{A big table}{\getbuffer} \stoptext By the way, what is the analogous split-option name if one uses the \start- \stopplacetable syntax? Regards Andreas ___ 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] Splitting (x)tables
On 09.11.2011, at 17:05, Wolfgang Schuster wrote: > > Am 09.11.2011 um 16:55 schrieb Andreas Harder: > >> Hi all, >> >> I think there is a bug with \placefloat and split option. >> >> \starttext \showframe[text] >> >> \setupxtable >> [split=yes,option=stretch, >> width=4cm,height=3cm, >> align={middle,middle}] >> >> \startbuffer >> \startxtable >> \dorecurse{15}{% >> \startxrow >> \dorecurse{5}{\startxcell cell: #1 x ##1 \stopxcell} >> \stopxrow} >> \stopxtable >> \stopbuffer >> >> % \getbuffer % OK >> >> \placetable[here,split]{A big table}{\getbuffer} >> >> \stoptext >> >> By the way, what is the analogous split-option name if one uses the \start- >> \stopplacetable syntax? > > \startplacetable[location={split,…},…] Thanks Wolfgang. I tried „split=yes“, „option=split“ … Andreas ___ 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] Splitting (x)tables
On 09.11.2011, at 21:09, Hans Hagen wrote: > On 9-11-2011 16:55, Andreas Harder wrote: >> Hi all, >> >> I think there is a bug with \placefloat and split option. > > fixed but it needs testing (the float code has been cleaned up a bit and as a > side effect grouping is slightly different) Thank you. I still have problems with local footnotes. It worked a couple of betas before. I will try to make a minimal example. Andreas ___ 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] Local footnotes
Hi Hans, here is the minimal example which shows the problem with local footnotes. \starttext \startlocalfootnotes \dorecurse{23}{footnote\footnote{footnote}\par} % error % \dorecurse{22}{footnote\footnote{footnote}\par} % OK \placelocalfootnotes \stoplocalfootnotes \stoptext Regards Andreas ___ 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] Local footnotes
On 10.11.2011, at 14:27, Wolfgang Schuster wrote: > > Am 10.11.2011 um 10:47 schrieb Andreas Harder: > >> Hi Hans, >> >> here is the minimal example which shows the problem with local footnotes. >> >> \starttext >> \startlocalfootnotes >> \dorecurse{23}{footnote\footnote{footnote}\par} % error >> % \dorecurse{22}{footnote\footnote{footnote}\par} % OK >> \placelocalfootnotes >> \stoplocalfootnotes >> \stoptext > > \placelocalfootnotes[height=\textheight] Thank you Wolfgang, this solved the problem. Andreas ___ 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] No colons with pxmath fonts
Hi, there is (still) no colon if one uses the pxmath fonts. By the way, \setupTEXpage causes an error (Undefined control sequence). \setupbodyfont[palatino] % no colon % \setupbodyfont[asana] % OK % \setupTEXpage[offset=1ex] % error \startTEXpage % [offset=1ex] % OK $a$:\,$b$\par $a\colon b$ \stopTEXpage Regards Andreas ___ 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] Help on centering text inside the standard makeup
On 11.11.2011, at 13:27, Marco Pessotto wrote: > > Hello! > > I have some problem centering the text inside the standardmakeup. The > resulting alignment is centered, yes, but relative to the text block of > the defined layout, and being a doublesided document, the left space is > lesser then the right space (which is not what I wanted, as it's > supposed to be the cover of a booklet). > > For example: > > % > \setuppagenumbering[alternative=doublesided] > \showframe > > \starttext > > \startstandardmakeup > \raggedcenter > This should be the long title > \stopstandardmakeup > > \input tufte > > \stoptext > % Hi, there is also a page makeup \startpagemakeup[align=center] {\bfc This should be the long title} \stoppagemakeup Regards Andreas ___ 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] feature request
On 11.11.2011, at 16:34, Steffen Wolfrum wrote: > Hi Hans, > > quite often I wish we could have a kind of in line comment: > Something like ¿this is my comment¡ this. Isn't there already \comment{…}? \starttext test \comment{comment} test \stoptext Andreas ___ 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 option toggles caption font size
Hello Hans, it seems that with the split option the body font setting from tabulate is also applied to the float caption. \starttext \startbuffer \setuptabulate[bodyfont=small] \starttabulate \NC test \NC test \NC\NR \stoptabulate \stopbuffer \placetable[split]{Should be in normal font size}{\getbuffer} \stoptext Regards Andreas ___ 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] Metafun manual section titles
On 13.11.2011, at 23:24, Romain Diss wrote: > Hello, > > I'm trying to make some section titles which look like the ones of the > metafun > manual: title and number underlined, with number in margin. I thougth it > would > not be too hard but I can't do it. > > Actually, I'm using a frame with an overlay with a \startuniqueMPgraphic to > underline the title but I can't make a frame for both the section number > which > is in the margin and the text which is not. > > I tried to make the underlining of the title text extend in the margin but > it's not easy because the frame background seems to be centered automatically > on the frame. Maybe I should adjust some offsets but how can I know the size > of > the section number... > > Anybody can help me on that problem ? Hi, you can try something like this: \setuplayout[width=middle,backspace=4cm] \startuseMPgraphic{line} drawoptions(withcolor \MPcolor{\framedparameter{framecolor}}) ; draw bottomboundary OverlayBox withpen pencircle scaled 3pt ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[head:line][\useMPgraphic{line}] \defineframedtext [framedHead] [align=right,width=fit, offset=overlay,boffset=.25ex, frame=off,framecolor=yellow:4, background=head:line] \defineheadplacement [MyPlacement] [vertical] {\setwidthof{#1\hskip\leftmargindistance}\to\MyWidth\hskip-\MyWidth \startframedHead #1\hskip\leftmargindistance #2 \stopframedHead} \setuphead [chapter,section] [alternative=MyPlacement] \starttext \showframe \dorecurse{3}{ \chapter{Chapter #1} \dorecurse{3}{\section{Section ##1} \dorecurse{3}{\subsection{Subsection}} } } \stoptext But I’m sure there are better solutions … Best wishes Andreas ___ 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] Error with export
Hi Hans, todays beta breaks the following example. It worked the day before yesterday. \setupbackend[export=yes] \definehighlight[Title][color=red] \startsetups document:start \Title{\documentvariable{title}} \stopsetups \startdocument [title=Test] some text \stopdocument Thank you in advance Andreas ___ 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] defineframed has no effect
On 14.11.2011, at 21:54, Christian wrote: > This gives only a framed Hello, no red, frame still on. > Did something change for setting up own frames? > > \defineframed[GreyBg][backgroung=color,backgroundcolor=red,frame=off] You’ve written backgroung instead of background. Greeting Andreas ___ 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] defineframed has no effect
On 14.11.2011, at 22:12, Aditya Mahajan wrote: > On Mon, 14 Nov 2011, Christian wrote: > > This gives only a framed Hello, no red, frame still on. > Did something change for setting up own frames? > > >>> \defineframed[GreyBg][backgroung=color,backgroundcolor=red,frame=off] You’ve written backgroung instead of background. >>> >>> Lol, that's what I get for copy-pasting the wiki :D >>> >>> Seriously, the typo is in the wiki code... >>> http://wiki.contextgarden.net/Reference/en/defineframed >>> >>> Works now! >> >> I spoke too soon. The style is ignored. Example: >> >> \defineframed[myFrame][frame=on,align=middle,style={\it}] >> \starttext >> \myFrame{Hello} >> \stoptext >> >> Is it on purpose? > > IIRC, the name of the key is foregroundstyle. Or use \framedtext{…} \defineframedtext[myFrame][frame=on,align=middle,style=\it,width=fit] Andreas ___ 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 cell colo(u)rs
On 16.11.2011, at 15:21, Pavneet Arora wrote: > Hello, > > I am trying to do a simple cell background shading in a table using the > example at the wiki: > > http://wiki.contextgarden.net/Table > > Unfortunately, I get an "Undefined control sequence ..." error: > > ! Undefined control sequence. > > system > tex > error on line 4 in file tmp.tex: Undefined control > sequence ... > > 1 \setupcolors[state=start] > 2 \starttable[|l|l|] > 3 \HL > 4 >> \BL[1]\SR > 5 \NC Command \NC Meaning \NC\SR > 6 \HL > 7 \NC \tex{NC}\NC next column \NC\FR > 8 \NC \tex{NR}\NC next row\NC\LR > 9 \HL > 10 \CL[green]\SR > 11 \NC \tex{AR} \NC automatic row\NC\SR > 12 \HL > 13 \stoptable > 14 > > \BL > > l.4 \BL > [1]\SR > ? > > Any suggestions? I think the using \start- \stoptable is not recommended (MkIV) any more. Instead you can use \starttabulate[|l|l|] \CM[yellow] Command \NCMeaning \NC\NR\FL \NC \tex{NC} \NCnext column \NC\NR \NC \tex{NR} \CM[green] next row\NC\NR \NC \tex{HL} \CM[blue] horizontal line \NC\NR\FL \stoptabulate Or as already suggested the \bTABLE … \eTABLE or the new xtable-environment. Greeting Andreas ___ 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] cross referencing suite
On 22.11.2011, at 00:13, Aditya Mahajan wrote: > On Mon, 21 Nov 2011, Idris Samawi Hamid ادريس سماوي حامد wrote: > >> Dear Knights, >> >> http://www.pragma-ade.com/general/magazines/mag-1103.pdf >> >> mentions a 4-file test site, but I can't find it in my context tree ... Can >> someone point me to it? > > The test suite used to refer to http://wiki.contextgarden.net/Test, but it > hasn't been updated in years. Perhaps Hans has a local version of the test > suite. http://pragma-ade.com/download-4.htm There you will find a folder named project … Greeting Andreas ___ 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] Placing text in the margin of a header or the top right corner of a page
On 23.11.2011, at 06:11, Christian wrote: > I think I see what you mean. It disappeared after I tossed the box 1mm to the > right with adjusting the x position: > change > x=180mm > to > x=181mm > > Is that it? Hi, there are already presets and \setlayerframed. See my attached example. layerpresets.tex Description: Binary data Best wishes Andreas___ 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] xtable (\getbuffer vs. \processxtablebuffer)
Hi Hans, it seems \processtablebuffer ignores the table settings (at least the stretch-option). \starttext \startbuffer[my:xtable] \startxtable[option=stretch] \startxrow \startxcell alpha \stopxcell \startxcell beta \stopxcell \startxcell gamma \stopxcell \stopxrow \stopxtable \stopbuffer \getbuffer[my:xtable]\blank \processxtablebuffer[my:xtable] \stoptext Regards Andreas ___ 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] xtable (\getbuffer vs. \processxtablebuffer)
On 24.11.2011, at 17:19, Hans Hagen wrote: > On 24-11-2011 11:24, Andreas Harder wrote: >> Hi Hans, >> >> it seems \processtablebuffer ignores the table settings (at least the >> stretch-option). >> >> \starttext >> >> \startbuffer[my:xtable] >> \startxtable[option=stretch] >> \startxrow >> \startxcell alpha \stopxcell >> \startxcell beta \stopxcell >> \startxcell gamma \stopxcell >> \stopxrow >> \stopxtable >> \stopbuffer >> >> \getbuffer[my:xtable]\blank >> \processxtablebuffer[my:xtable] >> >> \stoptext > > fixed in next beta but no nesting of xtables ... too much coding and it would > nil the advantage (if there is any) anyway Okay, thanks! Andreas ___ 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] \start- \stopalign (in formulas) is broken
Hi, with the latest beta the following do not work anymore (example from math-ali.mkiv). \starttext \placeformula \startformula \startalign \NC a \EQ b \NR[+] \NC c \EQ d \NR \NC\EQ f \NR[for:demo-a-1] \NC\EQ g \NR[for:demo-a-2][a] \NC\EQ h \NR[for:demo-a-3][b] \NC\EQ i \NR \stopalign \stopformula \stoptext error: Missing number, treated as zero … Regards Andreas ___ 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] Tabulate-export
Hi Hans, it seems that tabulate environments are not exported correctly. Here is an example. \setupbackend[export=yes] \starttext \starttabulate[|l|c|r|] \NC left \NC center \NC right \NC \NR \NC l\NC c \NC r \NC \NR \stoptabulate \stoptext exports to: Regards Andreas ___ 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] itemize option
Hi all, is there an itemize option, so that the \blank[-line] in the following example is not needed? If not, can we have one? \starttext \showframe \definedescription[Test] \startTest {head} % \blank[-line] \startitemize[joinedup] \item one \item two \stopitemize \stopTest \stoptext Regards Andreas ___ 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] Header spoils X(HT)ML export
Hi Hans, please consider the following example. \setupbackend[export=yes,xhtml=yes,css=yes] \setupheadertexts[{\startelement[header] test \stopelement}] \starttext \startbuffer \startparagraph \input tufte \stopparagraph \startparagraph \input ward \stopparagraph \stopbuffer \startsection[title=first head] \getbuffer \stopsection \startsection[title=second head] \getbuffer \stopsection %% try to comment this section \startsection[title=third head] \getbuffer \stopsection \stoptext The section-title order is now 3, 1, 2 (in the XHTML output). This problem appears only if there is a page break. After commenting the last section the XHTML output looks like expected. Best wishes Andreas PS. I’ve encountered another export problem. Perhaps it is because of an not intending using of \settaggedmetadata … Here is an example. \setupbackend[export=yes,xhtml=yes,css=yes] \startsetups document:start \settaggedmetadata[title=\documentvariable{title}] \stopsetups \startdocument [title=This document title is wrapped in section-tags] \startsection[title=test] \startparagraph \input tufte \stopparagraph \stopsection \stopdocument ___ 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] Keep struggling with old style numerals!
On 08.12.2011, at 10:56, Verhaag, G.C.H.M. wrote: > Hi ConTeXt user's, > > A few days ago I installed the latest ConTeXt version but now my oldstyle > settings don't seem to work any more! > > I use the following settings in my preamble: > > \usetypescript[schola] > \setupbodyfont[schola,10pt] > > \definefontfeature [oldstyle] [default] [onum=yes] > \addff{oldstyle} Hi, you can play with my example. It seems "script=auto" (default) is not that robust. Setting it to "latn" or "dflt" should help. \definefontfeature [default] [default] [script=latin] \definefontfeature [osf] [onum=yes] \definefontfeature [oldstyle][default] [onum=yes] \definealternativestyle [osf] [\addff{osf}] [\addff{osf}] \setuphead[section][style=osf] \setupbodyfont[schola] \starttext \section{0123456789 -- ---} {\addff{osf}0123456789 -- ---} \par {\osf 0123456789 -- ---} \par {\setff{oldstyle}0123456789 -- ---} \par {\os 0123456789 -- ---} \stoptext Regards Andreas ___ 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] Export (table cell alignment)
Hi Hans, I’ve stumbled upon another export problem, concerning (natural) tables. The first table exports fine but in the second table the first column is ignored. \startbuffer[css] document { display: block } table { display: table ; width: 100% } tablerow { display: table-row } tablecell { display: table-cell ; border-style: solid ; padding: 1ex } tablecell[align="flushright"] { display: table-cell ; text-align: right } tablecell[align="flushleft"] { display: table-cell ; text-align: left } tablecell[align="middle"] { display: table-cell ; text-align: center } \stopbuffer \savebuffer[css] \setupbackend[export=yes,xhtml=yes,css={\jobname-css.tmp}] \starttext \startbuffer \bTR\bTD flush right \eTD\bTD ~ \eTD\bTD ~~ \eTD\eTR \bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR \bTR\bTD ~ ~ \eTD\bTD ~ \eTD\bTD middle \eTD\eTR \stopbuffer \bTABLE[width=broad] \getbuffer \eTABLE % OK \bTABLE[width=broad] \setupTABLE [c] [1] [align=flushright] \setupTABLE [c] [2] [align=flushleft] \setupTABLE [c] [3] [align=middle] \getbuffer % not OK! \eTABLE \stoptext Best wishes Andreas ___ 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] Export (table cell alignment)
On 10.12.2011, at 00:28, Hans Hagen wrote: > On 9-12-2011 21:58, Andreas Harder wrote: >> Hi Hans, >> >> I’ve stumbled upon another export problem, concerning (natural) tables. The >> first table exports fine but in the second table the first column is ignored. >> >> \startbuffer[css] >> document { display: block } >> table { display: table ; width: 100% } >> tablerow { display: table-row } >> tablecell { display: table-cell ; border-style: solid ; padding: 1ex } >> tablecell[align="flushright"] { display: table-cell ; text-align: right } >> tablecell[align="flushleft"] { display: table-cell ; text-align: left } >> tablecell[align="middle"] { display: table-cell ; text-align: center } >> \stopbuffer \savebuffer[css] >> >> \setupbackend[export=yes,xhtml=yes,css={\jobname-css.tmp}] >> >> \starttext >> >> \startbuffer >> \bTR\bTD flush right \eTD\bTD ~ \eTD\bTD ~~ \eTD\eTR >> \bTR\bTD ~ ~ \eTD\bTD flush left \eTD\bTD ~~ \eTD\eTR >> \bTR\bTD ~ ~ \eTD\bTD ~ \eTD\bTD middle \eTD\eTR >> \stopbuffer >> >> \bTABLE[width=broad] \getbuffer \eTABLE % OK >> >> \bTABLE[width=broad] >> \setupTABLE [c] [1] [align=flushright] >> \setupTABLE [c] [2] [align=flushleft] >> \setupTABLE [c] [3] [align=middle] >> \getbuffer % not OK! >> \eTABLE >> >> \stoptext > > tricky but fixed Thank you! Andreas ___ 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] \definestartstop (not functioning before/after keys)
Hi Hans, has something changed with \definestartstop? Setting before and after do not change the output. \definestartstop[test][before=\blank,after=\blank] \starttext before \test{test} after \stoptext Tested with the current beta- and experimental-branch. Regards Andreas ___ 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] \definestartstop (not functioning before/after keys)
On 12.12.2011, at 13:00, Wolfgang Schuster wrote: > > Am 12.12.2011 um 12:55 schrieb Andreas Harder: > >> Hi Hans, >> >> has something changed with \definestartstop? Setting before and after do not >> change the output. >> >> \definestartstop[test][before=\blank,after=\blank] >> \starttext >> before \test{test} after >> \stoptext >> >> Tested with the current beta- and experimental-branch. > > \starttext …\stoptest is not the same as \test{…}, while the environment use > the before and after keys the command use the inbetween key. Okay, I see. So, sorry for the noise. Andreas ___ 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] \definelayout
Hi all, would someone please enlighten me. What is the correct usage of \definelayout? \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt] % \setuplayout[default] % needed? \definelayout[first] [default][header=2cm] \definelayout[unknown][default]%[reset] % \definelayout[2] [default]%[reset] \definelayout[last] [default][footer=2cm] \starttext \showframe % \checkcurrentlayout %% Variant A: fails with \default[unknown] first\page unknown=(2)\page \page unknown=(3)\page last %% Variant B: fails with \definelayout[2] % first\page unknown=(2)=last \stoptext By the way the output differs with the latest beta in comparison with the latest experimental. Regards Andreas ___ 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] \definelayout
On 13.12.2011, at 16:44, Wolfgang Schuster wrote: > > Am 13.12.2011 um 16:26 schrieb Andreas Harder: > >> Hi all, >> >> would someone please enlighten me. What is the correct usage of >> \definelayout? >> >> \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt] >> % \setuplayout[default] % needed? >> \definelayout[first] [default][header=2cm] >> \definelayout[unknown][default]%[reset] >> % \definelayout[2] [default]%[reset] >> \definelayout[last] [default][footer=2cm] >> >> \starttext \showframe % \checkcurrentlayout >> %% Variant A: fails with \default[unknown] >> first\page unknown=(2)\page \page unknown=(3)\page last >> >> %% Variant B: fails with \definelayout[2] >> % first\page unknown=(2)=last >> \stoptext >> >> By the way the output differs with the latest beta in comparison with the >> latest experimental. > > Hans changed part of the \setuplayout code in the last betas (there are more > than you can see in the ctx suite). > > When context checks the layout (happens with \starttext and when it starts a > new page) it test for the following defined layouts: > > • “” > • “-” > • “last” (is only used for the last page of the document) > • “first” (is only used for the first page of the document) > • “unknown” > • “current” > • “odd” and “even” (used for left and right pages) > > All entries in this list are reserved names but you can also define your own > layout but in this case > you have to enable it with \setuplayout[]. > > One of the new features in MkIV is that layout parameters can be inherited, > e.g. when > you define a layout with the name “one” {\definelayout[one][..,..=..,..]) and > another one with > the name two (\definelayout[two][one][..,..=..,..]) this will take the values > from one of there > are nothing set for a value from one and when there is also nothing set for > one the global > values are used (\setuplayout[..,..=..,..]). Hi Wolfgang, I modified the example (hopefully in a meaningful manner). I get the desired output with the old beta, but it still fails with todays beta. \setuplayout [width=middle,height=middle,header=0pt,footer=0pt] \definelayout[first] [header=2cm] \definelayout[last] [footer=2cm] \definelayout[current] \starttext \showframe % \checkcurrentlayout % \dorecurse{2}{test\page} % last is wrong \dorecurse{5}{test\page} % page 2 and „last“ are wrong \stoptext Andreas ___ 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] beta
On 14.12.2011, at 00:10, Hans Hagen wrote: > On 13-12-2011 21:07, Otared Kavian wrote: >> Hi Hans, >> >> Thanks for the new beta. >> It seems that with the new beta there is a bug with itemize: no numbers show >> up with \item. >> >> \starttext >> \startitemize[n] >> \item One >> \item Two >> \stopitemize >> \stoptext >> >> Best regards: OK > > I'll look into it ... \startitem ... \stopitem should be ok. Hi Hans, another problem with itemization. \starttext \startitemize[text] \item alpha \item beta \item gamma \startitem alpha \stopitem \startitem beta \stopitem \startitem gamma \stopitem \stopitemize \stoptext Regards Andreas ___ 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] Itemize option “text”
Hi Hans, itemize with option “text” gives me still an error (beta: 15-Dec-2011 09:27). \startitemize[text] \item alpha \item beta \item gamma \stopitemize Regards Andreas ___ 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] Export itemize
Hi Hans, many thanks fort the itemize fixes! I’ve found another problem with the latest beta. \setupbackend[export=yes] \starttext \startitemize \item test \stopitemize \stoptext Regards Andreas ___ 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] Layer preset: leftbottom
Hi Hans, it seems that the layer preset "leftbottom" is broken. \definelayer[page] [width=\paperwidth,height=\paperheight] \setlayer [page] [preset=leftbottom] {\red TEST} % error % \setlayer [page] [preset=rightbottom] {\red TEST} % OK \setupbackgrounds[page][background=page] \starttext \page[empty] \stoptext Regards Andreas ___ 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] Layer preset: leftbottom
On 18.12.2011, at 11:14, Wolfgang Schuster wrote: > > Am 18.12.2011 um 11:00 schrieb Andreas Harder: > >> Hi Hans, >> >> it seems that the layer preset "leftbottom" is broken. > > I posted this fix a few days ago on the dev list: > > supp-box.mkiv: > > -\unexpanded\def\righttopbox_finish > +\def\boxes_righttopbox_finish > {\global\boxhdisplacement\boxoffset > \global\boxvdisplacement-\dp\nextbox > \global\advance\boxvdisplacement-\boxoffset > \boxcursor\hskip\boxhdisplacement\raise-\boxvdisplacement\box\nextbox > \egroup} Thanks Wolfgang! By the way … Sorry to bother you, but I’m still run into problems according \definelayout. This example used to work with the beta from November 29 (desired output attached). \setuplayout [width=middle,height=middle,header=0pt,footer=0pt] \definelayout[first] [header=2cm] \definelayout[last] [footer=2cm] \definelayout[current] % current|unknown \starttext \showframe % \checkcurrentlayout % \dorecurse{2}{test\page} % last is wrong \dorecurse{5}{test\page} % page 2 and „last“ are wrong \stoptext Two+Pages.pdf Description: Adobe PDF document TwoPages.pdf Description: Adobe PDF document Thank you in advance Andreas___ 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] tabulate error
Hi Hans, a line break in tabulate p-column leads to an error. ! TeX capacity exceeded, sorry [input stack size=1]. \starttext \starttabulate[|p|] % \NC \dorecurse{7}{paragraph, } \NC\NR % OK \NC \dorecurse{8}{paragraph, } \NC\NR % -> line break (error) \stoptabulate \stoptext Regards Andreas ___ 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] tabulate error
On 19.12.2011, at 20:03, Hans Hagen wrote: > On 19-12-2011 17:15, Andreas Harder wrote: >> Hi Hans, >> >> a line break in tabulate p-column leads to an error. >> >> ! TeX capacity exceeded, sorry [input stack size=1]. >> >> \starttext >> \starttabulate[|p|] >> % \NC \dorecurse{7}{paragraph, } \NC\NR % OK >> \NC \dorecurse{8}{paragraph, } \NC\NR % -> line break (error) >> \stoptabulate >> \stoptext > > line 452 of tabl-tbl.mkiv should be > > \tabulatedummy\expandafter{\the\tabulatedummy\NC}% Thanks! Andreas ___ 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 or feature?
Hi, with the latest beta there is always a line break after a \blackrule … bug or feature? \starttext % \dontleavehmode% \blackrule[width=3cm] unwanted line break! \stoptext Regards Andreas ___ 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 or feature?
On 21.12.2011, at 12:33, Wolfgang Schuster wrote: > > Am 21.12.2011 um 12:04 schrieb Andreas Harder: > >> Hi, >> >> with the latest beta there is always a line break after a \blackrule … bug >> or feature? >> >> \starttext >> % \dontleavehmode% >> \blackrule[width=3cm] unwanted line break! >> \stoptext > > It’s neither a bug nor a feature, just a result of TeX’s horizontal and > vertical modes, the same happens when you use \framed in vertical mode. > > \starttext > \framed{line 1} > \framed{line 2} > \stoptext Yes, you are right. My example was too minimal. I used \defineheadplacement and since yesterdays beta the line break is introduced. \starttext \defineheadplacement[MyPlacement][vertical] {\vbox{\localheadsetup\begstrut\blackrule[width=3cm] #2}} \setuphead[subject][alternative=MyPlacement] \subject{test Äg} \stoptext Andreas ___ 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] Preserve line height with TABLE
Hi, is there a way to mimic the tabulate behavior with TABLE (or xtable)? \starttext \def\HtTest#1% {\setbox\scratchbox\vbox{#1}hight=\the\ht\scratchbox\par\vbox{#1}\blank} \HtTest{\strut (Äg) first line\par second line\par (Äg) third line} \setuptabulate[before=,after=,] \HtTest{\starttabulate[|l|] \NC (Äg) first line \NC\NR \NC second line \NC\NR \NC (Äg) third line \NC\NR \stoptabulate} \HtTest{\bTABLE[frame=off,offset=overlay,left=\strut] % ,rulethickness=0pt \bTR\bTD (Äg) first line \eTD\eTR \bTR\bTD second line \eTD\eTR \bTR\bTD (Äg) third line \eTD\eTR \eTABLE} \HtTest{\startembeddedxtable[frame=off,offset=overlay] \startxrow \startxcell (Äg) first line \stopxcell \stopxrow \startxrow \startxcell second line \stopxcell \stopxrow \startxrow \startxcell (Äg) third line \stopxcell \stopxrow \stopembeddedxtable} \stoptext Thanks in advance Andreas ___ 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] Preserve line height with TABLE
On 21.12.2011, at 14:20, Wolfgang Schuster wrote: > > Am 21.12.2011 um 13:24 schrieb Andreas Harder: > >> Hi, >> >> is there a way to mimic the tabulate behavior with TABLE (or stable)? > > You need “offset=0pt” and “strut=yes” (not left=\strut). Thanks Wolfgang, but it still not the hight from tabulate … Andreas ___ 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] Preserve line height with TABLE
On 21.12.2011, at 14:39, Wolfgang Schuster wrote: > > Am 21.12.2011 um 14:28 schrieb Andreas Harder: > >> >> On 21.12.2011, at 14:20, Wolfgang Schuster wrote: >> >>> >>> Am 21.12.2011 um 13:24 schrieb Andreas Harder: >>> >>>> Hi, >>>> >>>> is there a way to mimic the tabulate behavior with TABLE (or stable)? >>> >>> You need “offset=0pt” and “strut=yes” (not left=\strut). >> >> Thanks Wolfgang, >> >> but it still not the hight from tabulate … > > The here and also in your other question is that \begstrut is broken, when > you add (the definition of \begstrut) > > \starttexcode > \unexpanded\def\begstrut > {\relax\ifcase\strutht > % \ignorespaces % maybe > \else > \spacing_begstrut > \fi} > \stoptexcode > > at the begin of your example you get a output for TABLE and stable which > comes close to tabulate. Thank you very much! Andreas ___ 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] Hyphenation in Natural Table
Hi, try it with: > \starttext \bTABLE[align=normal] > \bTR > \bTD Topic\eTD \bTD Text\eTD > \eTR > \bTR > \bTD Foo\crlf Bar\eTD > \bTD \input tufte \eTD > \eTR > \bTR > \bTD BAR \crlf FOO\eTD > \bTD > \startitemize > \item \input tufte > \item \input tufte > \stopitemize > \eTD > \eTR > \eTABLE > > \stoptext Greeting Andreas ___ 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 \date (experimental branch)
Hi Hans, a "day" is prefixed to every day-number. \starttext \date[d=29,m=12,y=2011] \currentdate \stoptext outputs December day29, 2011 December day30, 2011 Regards Andreas ___ 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] Custom chapter footer
Hi Hans, the following used to work. Has the syntax changed? \definetext[chapter][footer][pagenumber] \setuphead [chapter][footer=chapter] \starttext \chapter{test} \stoptext ! Undefined control sequence. Regards Andreas ___ 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] \setlayerframed align-option causes shift
Hi Hans, setting the align-option of \setlayerframed causes a small (but visible) right shift. \definelayer[page][width=\paperwidth,height=\paperheight] \setupbackgrounds[page][background=page] \starttext \showframe \setlayerframed [page] [x=\backspace,y=\topspace] [width=broad,height=\headerheight,align=right] {Not OK} % [width=broad,height=\headerheight] {OK} \page[empty] \stoptext Regards Andreas ___ 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 ___