Re: [NTG-context] setupinmargin failing?
On Tue, Mar 23, 2010 at 10:36 PM, Hans van der Meer wrote: > I tried this code with both > \setupinmargin[left][...] and \setupinmargin[][...]. > The first one worked, the second obviously not. I take it therefore that the > [left]-argument is mandatory. > > In the manual I have, the \setupinmargin[][] description has its first > argument printed slanted. I checked the manual's introduction and expressis > verbis it is mentioned there that "Optional arguments are displayed as > slanted text." So I would not easily have inferred the necessity to specify > a value in both the arguments. Even to the point of having > \setupinmargin[{left,right}][...] needed to set both margin notes to the > same value. > > So, thanks of pointing this out. Given that we are talking about mkiv, I usually search for *lua /*mkiv/*tex file --- actually page-mar.mkiv. Also # context --ctx=s-mod.ctx page-mar.mkiv I also expected some differences in respect to mkii --- maybe bugs. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupinmargin failing?
I tried this code with both \setupinmargin[left][...] and \setupinmargin[][...]. The first one worked, the second obviously not. I take it therefore that the [left]-argument is mandatory. In the manual I have, the \setupinmargin[][] description has its first argument printed slanted. I checked the manual's introduction and expressis verbis it is mentioned there that "Optional arguments are displayed as slanted text." So I would not easily have inferred the necessity to specify a value in both the arguments. Even to the point of having \setupinmargin[{left,right}][...] needed to set both margin notes to the same value. So, thanks of pointing this out. Hans van der Meer On 23 mrt 2010, at 20:56, luigi scarso wrote: On Tue, Mar 23, 2010 at 7:34 PM, Hans van der Meer > wrote: I tested margin notes and may have found a discrepancy with the (albeit old) manual. \setupcolors[state=start] \setupinmargin[][align=right,foregroundcolor=red] \starttext ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1}} \inleft{L1} \stoptext This shows un uncolored "L1". But according to the manual there is a parameter choice as in \setupframed. This means for example colored contents with foregroundcolor. The code above leaves "L1" black, but does honor the color inside the framed. I also fail to see a difference between the align options right, middle, left. Something wrong? Or something not understood? ConTeXt ver: 2010.03.20 22:59 MKIV fmt: 2010.3.23 int: english/ english Hans van der Meer \showframe \setuppapersize[A4][A3] \setuplayout[location=middle] \setupinmargin[left][align=left,foregroundcolor=red] \setupinmargin[right][align=right,foregroundcolor=blue] \starttext ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1 }} %% override blue, but not for frame \inleft{\tfx A small note in this margin. But we need to setup something before \ldots } \stoptext -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] setupinmargin failing?
Am 23.03.10 19:34, schrieb Hans van der Meer: I tested margin notes and may have found a discrepancy with the (albeit old) manual. \setupcolors[state=start] In MKIV colors are enabled by default. \setupinmargin[][align=right,foregroundcolor=red] All margin texts: \setupinmargin[color=red] Texts in the left margin: \setupinmargin[left][foregroundcolor=red] % color=red is possible too Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] setupinmargin failing?
On Tue, Mar 23, 2010 at 7:34 PM, Hans van der Meer wrote: > I tested margin notes and may have found a discrepancy with the (albeit old) > manual. > \setupcolors[state=start] > \setupinmargin[][align=right,foregroundcolor=red] > \starttext > ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1}} > \inleft{L1} > \stoptext > This shows un uncolored "L1". But according to the manual there is a > parameter choice as in \setupframed. This means for example colored contents > with foregroundcolor. > The code above leaves "L1" black, but does honor the color inside the > framed. > I also fail to see a difference between the align options right, middle, > left. > Something wrong? Or something not understood? > ConTeXt ver: 2010.03.20 22:59 MKIV fmt: 2010.3.23 int: english/english > Hans van der Meer \showframe \setuppapersize[A4][A3] \setuplayout[location=middle] \setupinmargin[left][align=left,foregroundcolor=red] \setupinmargin[right][align=right,foregroundcolor=blue] \starttext ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1 }} %% override blue, but not for frame \inleft{\tfx A small note in this margin. But we need to setup something before \ldots } \stoptext -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] code with reserved words
Based on the pretty printer in the wiki, I wrote my own. If I understood you well, you want a b/w pretty printer with reserved words bold. The pretty printer is capable of doing both. An example is attached. Probably missing is the functionality to control the typesetting of reserved words in TeX. This is done in the lua code. I didn't mind up to now. Any feedback is welcome. Erik 2010/3/23 R. Bastian > On Tue, 23 Mar 2010 13:24:09 +0100 > luigi scarso scribit: > > > On Tue, Mar 23, 2010 at 1:17 PM, R. Bastian wrote: > > > Hello, > > > > > > is there a way to get Python code with reserved words highlighted ? > > > Not colored as in > > > http://wiki.contextgarden.net/Verbatim_with_LuaTeX > > > but {\bf ...} > > > > > > I use context 2010.01.26 Mk IV or texexec > > well, I'm working to a pretty-printer for Python with low priority > > Attendo ;-) > > > > > -- > > luigi > > > ___ > > If your question is of interest to others as well, please add an entry to > the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > > archive : http://foundry.supelec.fr/projects/contextrev/ > > wiki : http://contextgarden.net > > > ___ > > > > > -- > René Bastian > www.pythoneon.org > www.musiques-rb.org > http://www.soundsurvey.org.uk/ > > > > ___ > 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 > > ___ > sample.tex Description: TeX document if not modules then modules = { } end modules ['pret-py'] = { version = 0.001, comment = "companion to buff-ver.mkiv", author= "Erik Margraf", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files" } local utf = unicode.utf8 local utfcharacters, utfvalues = string.utfcharacters, string.utfvalues local utfbyte, utffind = utf.byte, utf.find local byte, sub, find, match = string.byte, string.sub, string.find, string.match local texsprint, texwrite = tex.sprint, tex.write local ctxcatcodes = tex.ctxcatcodes local visualizer = buffers.newvisualizer("py") visualizer.identifiers = { } visualizer.identifiers.core = { "and", "as", "assert", "break", "class", "continue", "def", "del", "elif", "else", "except","exec", "finally", "for", "from", "global", "if", "import", "in", "is", "lambda", "not", "or", "pass", "print", "raise", "return", "try", "while", "with", "yield" } visualizer.identifiers.base = { "False", "None", "True" } visualizer.identifiers.delimiters = { "@", "%", "^", "&", "*", "(", ")", "-", "+", "=", "|", "\\", "/", "{", "}", "[", "]", ":", ";", "\"", "\'", "<", ">", ",", ".", "?", " " , "#" } local known_words = { } for k,v in pairs(visualizer.identifiers) do for _,w in pairs(v) do known_words[w] = k end end visualizer.styles = { core = "\\bf\\ss ", base = "\\sl ", } local styles = visualizer.styles local declarations = { ["def"]=1, ["class"]=1 } local colors = { "prettyone", "prettytwo", "prettythree", "prettyfour", } local change_state, finish_state = buffers.change_state, buffers.finish_state local function flush_python_word(state, word) if word then local id = known_words[word] if id then state = change_state(1,state) if styles[id] then texsprint(ctxcatcodes,styles[id]) end texwrite(word) state = finish_state(state) if declarations[word] then state = change_state(3,state) end else texwrite(word) state = finish_state(state) -- ? end else state = finish_state(state) end return state end local in_py_long_string = false function visualizer.flush_line(str,nested) local i, result , word = 1, { }, "" local state = 0 local delimiters=visualizer.identifiers.delimiters local is_delimiter = false local in_string = false local string_end = "" buffers.currentcolors = colors while i <= #str do c=string.sub(str,i,i) if in_py_long_string then state = buffers.change_state(2,state) if c=="\'" and string.sub(str,i,i+2)=="\'\'\'" then texwrite(string.sub(str,i,i+2)) i=i+2 in_py_long_string=fa
[NTG-context] setupinmargin failing?
I tested margin notes and may have found a discrepancy with the (albeit old) manual. \setupcolors[state=start] \setupinmargin[][align=right,foregroundcolor=red] \starttext ABC\inright{\framed[width=10mm,height=5mm,foregroundcolor=red]{R1}} \inleft{L1} \stoptext This shows un uncolored "L1". But according to the manual there is a parameter choice as in \setupframed. This means for example colored contents with foregroundcolor. The code above leaves "L1" black, but does honor the color inside the framed. I also fail to see a difference between the align options right, middle, left. Something wrong? Or something not understood? ConTeXt ver: 2010.03.20 22:59 MKIV fmt: 2010.3.23 int: english/ english Hans van der Meer ___ 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] overlays not working
Great, enabling \write18 as described on the wiki page solves the problem, Thanks! ___ 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] framedtext
On 23-3-2010 13:34, Hans van der Meer wrote: I experience the following behaviour of framedtext in relation to inright and inleft. With \startframedtext[offset=value] the positioning of left and right margin inserts shifts with the size of 'value'. The next example shows the shift to the right of L2 and R2 (both mkii and mkiv). Change the offset to see the margin notes L2/R2 shift. \starttext \showframe[text,margin,edge] ABC \inright{\framed[width=10mm,height=5mm]{R1}} \inleft{\framed[width=10mm,height=5mm]{L1}} \startframedtext[offset=2cm] XYZ \inright{\framed[width=10mm,height=5mm]{R2}} \inleft{\framed[width=10mm,height=5mm]{L2}} \stopframedtext \stoptext Pictured: ...L1.|...|.R1 ..|.L2|.R2 ..|...| ..^...^ ^ = frame lines of showpage I wonder if this is correct behaviour. The margins are imho fixed areas, defined as the areas on the left/right of the textframe. One would expect the margin texts put just there, not influenced by something that happens to be placed in the text. Or am I amiss? indeed ... inleft and inright use vadjust and that is somewhat special i will come up with an alternative in mkiv maybe \margintitle{...} works ok (delays till a paragraph) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] xml and catcode switching
On 22-3-2010 10:53, Philipp Gesang wrote: Hi, I'm formatting lots of urls and as some of them have ampersands in them I switch& to letter wherever they are placed. This works fine unless combined with XML which seems to impose its own catcodes on things. How could I fix things in the following example? \goto{\hyphenatedurl{...}}[url(...)] or something like that - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Incorrect font size in captions
Am 23.03.10 15:37, schrieb Tom: \setupcaptions[style={\switchtobodyfont[9pt]}, location=bottom,number=no,align=raggedcenter] 'align' in \setupcaptions has nothing to do with the alignment of the captiontext, as i wrote in my other mail you need style={\switchtobodyfont[9pt]\raggedcenter} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Incorrect font size in captions
On Tue, 23 Mar 2010, Tom wrote: Captions for individual figures display in the proper (9 pt) font but those for combinations do not. See example: \setupcombinations[style={\switchtobodyfont[9pt]}] Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Incorrect font size in captions
Captions for individual figures display in the proper (9 pt) font but those for combinations do not. See example: \definepapersize[6X9][width=6.14in, height=9.21in] \setuppapersize[6X9][6X9] \setuplayout[ width=middle, height=middle, backspace=.75 in, topspace=.5 in, header=.25 in, footer=0 in, headerdistance=.25 in, footerdistance=0 in, bottomspace=0.9 in, cutspace=.875 in, ] \setupcaptions[style={\switchtobodyfont[9pt]}, location=bottom,number=no,align=raggedcenter] \starttext \placefigure [here]{none} \startcombination[2*1] {\externalfigure[s033-1b][width=.481\textwidth]} {Martin Wheelock\\{\it Cumberland County Historical Society}\\ {\it Carlisle, PA}} {\externalfigure[041-1b][width=.459\textwidth]} {Antonio Lubo\\{\it U. S. Army Military History Institute}} \stopcombination Some text for comparison of font size with captions. \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax Twitter: @TomBenjey ___ 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] mongodb and ConTeXt?
On Tue, Mar 23, 2010 at 1:56 PM, Xan wrote: > Hi, > > Just a curious idea: is there anything from connecting mongodb (or any other > nosql database) and ConTexT? I'm thinking in load the data from the database > into the ConTeXt document, and in save some information from ConTeXt > document to database (for example paragraphs or cells in tables). > > Technically I think it's possible. > > Thanks in advance, > Xan. I' will see couchDB (not soon) But maybe you can find interesting this (for mkiv) http://www.lua.org/pil/10.1.html -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] mongodb and ConTeXt?
Hi, Just a curious idea: is there anything from connecting mongodb (or any other nosql database) and ConTexT? I'm thinking in load the data from the database into the ConTeXt document, and in save some information from ConTeXt document to database (for example paragraphs or cells in tables). Technically I think it's possible. Thanks in advance, Xan. PS: Please, CCme. ___ 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] framedtext
I experience the following behaviour of framedtext in relation to inright and inleft. With \startframedtext[offset=value] the positioning of left and right margin inserts shifts with the size of 'value'. The next example shows the shift to the right of L2 and R2 (both mkii and mkiv). Change the offset to see the margin notes L2/R2 shift. \starttext \showframe[text,margin,edge] ABC \inright{\framed[width=10mm,height=5mm]{R1}} \inleft{\framed[width=10mm,height=5mm]{L1}} \startframedtext[offset=2cm] XYZ \inright{\framed[width=10mm,height=5mm]{R2}} \inleft{\framed[width=10mm,height=5mm]{L2}} \stopframedtext \stoptext Pictured: ..L1.|...|.R1 .|.L2|.R2 .|...| .^...^ ^ = frame lines of showpage I wonder if this is correct behaviour. The margins are imho fixed areas, defined as the areas on the left/right of the textframe. One would expect the margin texts put just there, not influenced by something that happens to be placed in the text. Or am I amiss? Hans van der Meer ___ 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] code with reserved words
On Tue, 23 Mar 2010 13:24:09 +0100 luigi scarso scribit: > On Tue, Mar 23, 2010 at 1:17 PM, R. Bastian wrote: > > Hello, > > > > is there a way to get Python code with reserved words highlighted ? > > Not colored as in > > http://wiki.contextgarden.net/Verbatim_with_LuaTeX > > but {\bf ...} > > > > I use context 2010.01.26 Mk IV or texexec > well, I'm working to a pretty-printer for Python with low priority Attendo ;-) > > -- > luigi > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/ ___ 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] code with reserved words
On Tue, Mar 23, 2010 at 1:17 PM, R. Bastian wrote: > Hello, > > is there a way to get Python code with reserved words highlighted ? > Not colored as in > http://wiki.contextgarden.net/Verbatim_with_LuaTeX > but {\bf ...} > > I use context 2010.01.26 Mk IV or texexec well, I'm working to a pretty-printer for Python with low priority -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] code with reserved words
Hello, is there a way to get Python code with reserved words highlighted ? Not colored as in http://wiki.contextgarden.net/Verbatim_with_LuaTeX but {\bf ...} I use context 2010.01.26 Mk IV or texexec Thanks -- René Bastian www.pythoneon.org www.musiques-rb.org http://www.soundsurvey.org.uk/ ___ 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] \framedtext vs. \framed in columns
Hi all, pleas have a look at the following example \setuplayout[grid=yes] \starttext \startcolumns \input tufte \par \input tufte \par \startframedtext[width=broad] % ,location=high \input tufte \par \stopframedtext \stopcolumns \page \startcolumns \input tufte \par \input tufte \par \framed[align=normal,width=broad]{\input tufte \par} \stopcolumns \stoptext shouldn't location=high be the default behaviour? 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] header in the middle on doublesided layout
On Tue, Mar 23, 2010 at 12:19 PM, Wolfgang Schuster wrote: > Am 23.03.10 12:11, schrieb luigi scarso: >> >> It seem that for mkii a blank page is not part of a chapter --- this >> is logical: the chapter ends before. >> For mkiv blank page is part of a chapter --- this is also ok: the >> chapter ends just before the next chapter. >> > > This affects only marks and not other header/footer texts, is this now also > correct? > > \showframe > > \setuppagenumbering[alternative=doublesided,location=footer] > > \setupheader > [text] > [lefttext=left, > > middletext=\strut\doifoddpageelse{\getmarking[section][first]}{\getmarking[section][last]}] > > \starttext > \dorecurse{2} > {\chapter{Chapter #1} > \dorecurse{3}{\section{Section #1.##1}\input knuth \ifnum#1=2\relax\input > tufte \fi}} > \stoptext No, mkii != mkiv at page 2; mkiv shows 'Section 1.3' at middle and 'left' at the right side, while mkii shows only 'left' at the right side. Now I should say that mkiv is right --- at least it looks more reasonable than mkii . -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header in the middle on doublesided layout
Am 23.03.10 12:11, schrieb luigi scarso: It seem that for mkii a blank page is not part of a chapter --- this is logical: the chapter ends before. For mkiv blank page is part of a chapter --- this is also ok: the chapter ends just before the next chapter. This affects only marks and not other header/footer texts, is this now also correct? \showframe \setuppagenumbering[alternative=doublesided,location=footer] \setupheader [text] [lefttext=left, middletext=\strut\doifoddpageelse{\getmarking[section][first]}{\getmarking[section][last]}] \starttext \dorecurse{2} {\chapter{Chapter #1} \dorecurse{3}{\section{Section #1.##1}\input knuth \ifnum#1=2\relax\input tufte \fi}} \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 ___
Re: [NTG-context] header in the middle on doublesided layout
On Tue, Mar 23, 2010 at 12:00 PM, Wolfgang Schuster wrote: > Am 23.03.10 11:55, schrieb luigi scarso: >> >> different behavior between mkiv and mkii --- what is right ? > > I think mkiv is right, the left page should contain the header (last section > here) unless specified otherwise. I don't know. This is right, for both. \showframe \setuppagenumbering[alternative=doublesided,location=footer] \setupheader[text][middletext=\strut\doifoddpageelse{\getmarking[section][first]}{\getmarking[section][last]}] \starttext \dorecurse{4} {\chapter{Chapter #1} \dorecurse{3}{\section{Section #1.##1}\input knuth \input tufte }} \stoptext It seem that for mkii a blank page is not part of a chapter --- this is logical: the chapter ends before. For mkiv blank page is part of a chapter --- this is also ok: the chapter ends just before the next chapter. -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header in the middle on doublesided layout
Am 23.03.10 11:55, schrieb luigi scarso: different behavior between mkiv and mkii --- what is right ? I think mkiv is right, the left page should contain the header (last section here) unless specified otherwise. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header in the middle on doublesided layout
On Tue, Mar 23, 2010 at 11:50 AM, Wolfgang Schuster wrote: > Am 23.03.10 07:06, schrieb Wolfgang Schuster: >> >> You can replace the nested boxes with framedtext > > And another one: > > \showframe > > \setuppagenumbering[alternative=doublesided,location=footer] > > \setupheader[text][middletext=\strut\doifoddpageelse{\getmarking[section][first]}{\getmarking[section][last]}] > > \starttext > \dorecurse{4} > {\chapter{Chapter #1} > \dorecurse{3}{\section{Section #1.##1}}} > \stoptext > > Wolfgang different behavior between mkiv and mkii --- what is right ? -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] header in the middle on doublesided layout
Am 23.03.10 07:06, schrieb Wolfgang Schuster: You can replace the nested boxes with framedtext And another one: \showframe \setuppagenumbering[alternative=doublesided,location=footer] \setupheader[text][middletext=\strut\doifoddpageelse{\getmarking[section][first]}{\getmarking[section][last]}] \starttext \dorecurse{4} {\chapter{Chapter #1} \dorecurse{3}{\section{Section #1.##1}}} \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 ___
Re: [NTG-context] beta: \underbar is broken (mkiv)
Am 23.03.2010 11:02, schrieb Taco Hoekwater: > > > Hans Hagen wrote: >> On 22-3-2010 21:06, Peter Rolf wrote: >>> Hi, >>> >>> the underbar line is drawn vertically here. >>> >>> \starttext >>> sonder\underbar{bar} >>> \stoptext >>> >>> MTXrun | current version: 2010.03.20 22:59 >>> This is LuaTeX, Version beta-0.53.0-2010032213 (rev 3535) >> >> looks like a but in luatex ... when i use a long word we get a rule with >> much ht/dp while in fact quite some wd is set; the node reports the >> right values ... i'll test it with taco tommorrow > > Fixed in the luatex repository. > yep, looks good again. thanks for the quick fix. best wishes, Peter ___ 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: \underbar is broken (mkiv)
Hans Hagen wrote: > On 22-3-2010 21:06, Peter Rolf wrote: >> Hi, >> >> the underbar line is drawn vertically here. >> >> \starttext >> sonder\underbar{bar} >> \stoptext >> >> MTXrun | current version: 2010.03.20 22:59 >> This is LuaTeX, Version beta-0.53.0-2010032213 (rev 3535) > > looks like a but in luatex ... when i use a long word we get a rule with > much ht/dp while in fact quite some wd is set; the node reports the > right values ... i'll test it with taco tommorrow Fixed in the luatex repository. Best wishes, Taco ___ 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] synctex broken
Hi Taco, > Synctex support should be fixed in the latest revision (3536). Thanks very much. I have confirmed that synctex works as before in revision 3536. Thanks, Akira ___ 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 ___