[NTG-context] Turn Off Header and Footer
Hi, I'm writing a report about my internship at the moment with ConTeXt. There's one problem: I would like to turn off the header and footer on the page with the table of contents. I've found the command \page[header,footer] but it has no effect. :( Command reference for \page command: http://wiki.contextgarden.net/Reference/en/page Here you can see my present code: http://pastebin.com/JNtXji1i I placed the \page command before \completecontent to turn off header and footer, however they are typeset. Maybe somebody has a tip how to solve this problem. Thank you. Benedikt ___ 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] Turn Off Header and Footer
Am 16.07.2011 um 15:51 schrieb Bene dikt: Hi, I'm writing a report about my internship at the moment with ConTeXt. There's one problem: I would like to turn off the header and footer on the page with the table of contents. I've found the command \page[header,footer] but it has no effect. :( Command reference for \page command: http://wiki.contextgarden.net/Reference/en/page Here you can see my present code: http://pastebin.com/JNtXji1i I placed the \page command before \completecontent to turn off header and footer, however they are typeset. Maybe somebody has a tip how to solve this problem. \definehead[content] \setuphead[content][header=empty,footer=empty] \starttext \content{Inhaltsverzeichnis} \placecontent \stoptext BTW: You can remove \language[de] because \mainlanguage[de] loads the german pattern. 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] Fw: A question about layers
Am 16.07.2011 um 19:35 schrieb Marcin Borkowski: Anybody help, please...? Layers are objects which can be placed on any place of the page. The difference between \setupbackgrounds and \flushlayer can be seen in the example below. With \setupbackground the layer content is put on the requested position (behind the text) after TeX has finished the page. With \flushlayer ConTeXt starts a new page where all collected layers are placed without any other text. \definelayer[one] \definelayer[two] \setupbackgrounds[text][text][background=one] \starttext \input ward \setlayer[one][x=3cm,y=3cm]{\tt One} \page \setlayer[two][x=3cm,y=3cm]{\tt Two} \input ward \flushlayer[two] \input ward \stoptext As your plan is to make a document with layers only \flushlayer is the better choice because you can do this: \definelayer[content] \definestartstop [PAGE] [after={\flushlayer[content]}] \setuplayout[page] \starttext \startPAGE \setlayer[content][x=3cm,y=4cm]{A} \setlayerframed[content][x=7cm,y=2cm,frame=off,foregroundcolor=blue]{B} \stopPAGE \startPAGE \setlayer[content][x=3cm,y=8cm]{\externalfigure[cow]} \stopPAGE \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] about suppressing prefix in section number
Dear Wolfgang, Thank you for the solutions. But for the question 2, I didn't explain well what I want to. Actually, the codes \def\circlednum#1{\uchar{36}{95+#1}} \defineconversion[cnum][\circlednum] working well by saying that \startitemize[cnum][stopper=] ... And, your suggested method works well, too. My question is that is it able to define new itemize header, for example, circled number using \defineitemgroup so that I got circled number in the 3rd level automatically without saying that \startitemize[cnum]. In the wiki, \defineitemgroup[ltxitm][levels=5] % \setupitemgroup[ltxitm][1][1] \setupitemgroup[ltxitm][2][2] \setupitemgroup[ltxitm][3][3,packed] \setupitemgroup[ltxitm][4][4,packed] \setupitemgroup[ltxitm][5][5,packed] % I tried to define the third level with cnum, but it is not working. Some official documents has their own numbering system. In that case, it is very convenient to define new itemgroup following its rule and forget defining the symbol for each level every time. There is no problem to use predefined symbols but I couldn't succeed to insert my defined symbol for some level. Is there a way to do that? Thank you again. Best regards, Dalyoung ___ 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] about suppressing prefix in section number
Am 17.07.2011 um 13:16 schrieb Jeong Dalyoung: Dear Wolfgang, Thank you for the solutions. But for the question 2, I didn't explain well what I want to. Actually, the codes \def\circlednum#1{\uchar{36}{95+#1}} \defineconversion[cnum][\circlednum] working well by saying that \startitemize[cnum][stopper=] ... And, your suggested method works well, too. My question is that is it able to define new itemize header, for example, circled number using \defineitemgroup so that I got circled number in the 3rd level automatically without saying that \startitemize[cnum]. In the wiki, \defineitemgroup[ltxitm][levels=5] % \setupitemgroup[ltxitm][1][1] \setupitemgroup[ltxitm][2][2] \setupitemgroup[ltxitm][3][3,packed] \setupitemgroup[ltxitm][4][4,packed] \setupitemgroup[ltxitm][5][5,packed] % I tried to define the third level with cnum, but it is not working. Some official documents has their own numbering system. In that case, it is very convenient to define new itemgroup following its rule and forget defining the symbol for each level every time. There is no problem to use predefined symbols but I couldn't succeed to insert my defined symbol for some level. Is there a way to do that? \setupitemgroup[ltxitm][3][circlednumber,packed][stopper=] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Finding values of the context macros inside Lua functions (=expansion inside Lua functions?)
Hello all, For several hours trying to find solutions of problem. My minimal example (I mention it at the end of email) for clear reasons show, that : 7 is not number. 7 is number. 7is not number. 7is not number. In the first is argument '\value' negotiable to the value, in second it is not possible (but for clear reasons too). I would need to find from argument ie macro '\\value' in the LUA function its numerical value. Is there any function that would do that? I need something as a function of context (...), which would, however, its output is not located into ConTeXt, but its result get to back to a Lua function or into variable. It is something like the expansion of an existing ConTeXt macro to its value. Thanx Jaroslav Here is my minimal example: \startluacode function test(arg) if type(arg)=='number' then context(arg.. is number.\\par ) else context(arg.. is not number.\\par) end if type(tonumber(arg))=='number' then context(arg.. is number.\\par ) else context(arg.. is not number.\\par) end end \stopluacode \starttext \def\value{7} \ctxlua{test('\value');} \blank[big] \ctxlua{test('\\value');} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Finding values of the context macros inside Lua functions (=expansion inside Lua functions?)
Am 17.07.2011 um 14:01 schrieb Jaroslav Hajtmar: Hello all, For several hours trying to find solutions of problem. My minimal example (I mention it at the end of email) for clear reasons show, that : 7 is not number. 7 is number. 7is not number. 7is not number. In the first is argument '\value' negotiable to the value, in second it is not possible (but for clear reasons too). I would need to find from argument ie macro '\\value' in the LUA function its numerical value. Is there any function that would do that? I need something as a function of context (...), which would, however, its output is not located into ConTeXt, but its result get to back to a Lua function or into variable. It is something like the expansion of an existing ConTeXt macro to its value. \startluacode function test(arg) -- use thirddata namespace for real functions if type(tonumber(arg)) == number then if tonumber(arg) 0 then context(The argument \\quotation{%s} is a positive number,arg) else context(The argument \\quotation{%s} is a negative number,arg) end else context(The argument \\quotation{%s} is a string.,arg) end end \stopluacode \starttext \ctxlua{test(7)} \ctxlua{test(-4)} \ctxlua{test(text)} \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] Finding values of the context macros inside Lua functions (=expansion inside Lua functions?)
Thanx Wolfgang. But I guess I was wrong to express.. I need to pass parameter '\\macroI' to the function and turn it up a inside luafunction expand to its value. Ie when \def\macroI{6} Then I need when I make in your example \ctxlua{test(\\macroI)} get the result : The argument “6” is a positive number and not result The argument “6” is a string. see: I modify your example : \startluacode function test(arg) -- use thirddata namespace for real functions if type(tonumber(arg)) == number then if tonumber(arg) 0 then context(The argument \\quotation{%s} is a positive number,arg) else context(The argument \\quotation{%s} is a negative number,arg) end else context(The argument \\quotation{%s} is a string.,arg) end end \stopluacode \starttext \ctxlua{test(7)} \ctxlua{test(-4)} \ctxlua{test(text)} \def\macroI{6} \ctxlua{test(\macroI)} \ctxlua{test(\\macroI)} \stoptext Dne 17.7.2011 14:19, Wolfgang Schuster napsal(a): Am 17.07.2011 um 14:01 schrieb Jaroslav Hajtmar: Hello all, For several hours trying to find solutions of problem. My minimal example (I mention it at the end of email) for clear reasons show, that : 7 is not number. 7 is number. 7is not number. 7is not number. In the first is argument '\value' negotiable to the value, in second it is not possible (but for clear reasons too). I would need to find from argument ie macro '\\value' in the LUA function its numerical value. Is there any function that would do that? I need something as a function of context (...), which would, however, its output is not located into ConTeXt, but its result get to back to a Lua function or into variable. It is something like the expansion of an existing ConTeXt macro to its value. \startluacode function test(arg) -- use thirddata namespace for real functions if type(tonumber(arg)) == number then if tonumber(arg) 0 then context(The argument \\quotation{%s} is a positive number,arg) else context(The argument \\quotation{%s} is a negative number,arg) end else context(The argument \\quotation{%s} is a string.,arg) end end \stopluacode \starttext \ctxlua{test(7)} \ctxlua{test(-4)} \ctxlua{test(text)} \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] Finding values of the context macros inside Lua functions (=expansion inside Lua functions?)
Am 17.07.2011 um 14:42 schrieb Jaroslav Hajtmar: Thanx Wolfgang. But I guess I was wrong to express.. I need to pass parameter '\\macroI' to the function and turn it up a inside luafunction expand to its value. Not possible. Ie when \def\macroI{6} Then I need when I make in your example \ctxlua{test(\\macroI)} get the result : The argument “6” is a positive number and not result The argument “6” is a string. That’s odd because for me \ctxlua{test(\macroI)} results in The argument “6” is a positive number. and \ctxlua{test(\\macroI)} in The argument “6” is a string. 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] Finding values of the context macros inside Lua functions (=expansion inside Lua functions?)
Wolfgang, Me too. This is because the parameter '\macroI' is evaluated as a number, but the parameter '\\macroI' is in fact really a string - the name of a context macro. context (...) command properly put correctly content of the '\macroI' macro into the ConTeXt, but without knowledge of his contents ... If you write that: Not possible. then it's not for me very good news, because I thus probably not my module to process only at the Lua language ... Thanx Jaroslav... Dne 17.7.2011 14:53, Wolfgang Schuster napsal(a): Am 17.07.2011 um 14:42 schrieb Jaroslav Hajtmar: Thanx Wolfgang. But I guess I was wrong to express.. I need to pass parameter '\\macroI' to the function and turn it up a inside luafunction expand to its value. Not possible. Ie when \def\macroI{6} Then I need when I make in your example \ctxlua{test(\\macroI)} get the result : The argument “6” is a positive number and not result The argument “6” is a string. That’s odd because for me \ctxlua{test(\macroI)} results in The argument “6” is a positive number. and \ctxlua{test(\\macroI)} in The argument “6” is a string. 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] Finding values of the context macros inside Lua functions (=expansion inside Lua functions?)
Am 17.07.2011 um 15:10 schrieb Jaroslav Hajtmar: then it's not for me very good news, because I thus probably not my module to process only at the Lua language ... You can’t expand macro from Lua but the following is possible: \startluacode values = { I = 1, II = 2, } function test(arg) if string.find(arg,\\macro) then arg = string.gsub(arg,\\macro,) if values[arg] then context(values[arg]) else context(Invalid index.) end else context(Invalid command.) end end \stopluacode \starttext \starttabulate \NC \type{\macroI} \EQ \ctxlua{test(\\macroI)} \NC\NR \NC \type{\macroII} \EQ \ctxlua{test(\\macroII)} \NC\NR \NC \type{\macroIII} \EQ \ctxlua{test(\\macroIII)} \NC\NR \NC \type{\foo} \EQ \ctxlua{test(\\foo)} \NC\NR \stoptabulate \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] Finding values of the context macros inside Lua functions (=expansion inside Lua functions?)
Thanx Wolfgang. It is a good example, which I will definitely come in handy sometimes, but unfortunately I can not help my problem to solve. Once again, many thanks Jaroslav Dne 17.7.2011 15:40, Wolfgang Schuster napsal(a): You can’t expand macro from Lua but the following is possible: \startluacode values = { I = 1, II = 2, } function test(arg) if string.find(arg,\\macro) then arg = string.gsub(arg,\\macro,) if values[arg] then context(values[arg]) else context(Invalid index.) end else context(Invalid command.) end end \stopluacode \starttext \starttabulate \NC \type{\macroI} \EQ \ctxlua{test(\\macroI)} \NC\NR \NC \type{\macroII} \EQ \ctxlua{test(\\macroII)} \NC\NR \NC \type{\macroIII} \EQ \ctxlua{test(\\macroIII)} \NC\NR \NC \type{\foo} \EQ \ctxlua{test(\\foo)} \NC\NR \stoptabulate \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 ___
[NTG-context] Heading with linebreaks in pdf bookmarks: linebreak sign stays
Hi, as soon I have a linebreak inside a heading via \\ I get this \\ also in the text of that heading in the pdf-bookmarks: \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section] \starttext \completecontent[criterium=all] \chapter{A very,\\very long long title} \chapter{A very, very long long title} \stoptext What did I forgot to get rid of the linebreak sign in the pdf bookmarks? ___ 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] setup-en.pdf
Hi, there are many unwanted line breaks in the command reference. \usemodule[set-11]\loadsetups[cont-en.xml] \starttext \setup[definehead] \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] Heading with linebreaks in pdf bookmarks: linebreak sign stays
On 7/17/11 4:51 PM, Peter Schorsch wrote: Hi, as soon I have a linebreak inside a heading via \\ I get this \\ also in the text of that heading in the pdf-bookmarks: \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section] \starttext \completecontent[criterium=all] \chapter{A very,\\very long long title} \chapter{A very, very long long title} \stoptext What did I forgot to get rid of the linebreak sign in the pdf bookmarks? \startchapter[title={A very,\\very long long title},bookmark={A very, very long long title}] Bla \stopchapter HTH Thomas ___ 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] about suppressing prefix in section number
Dear Wolfgang, \setupitemgroup[ltxitm][3][circlednumber,packed][stopper=] It is working. It depends on the fonts. Also, \def\circlednum#1{\uchar{36}{95+#1}} \defineconversion[cnum][\circlednum] \defineitemgroup[txitm][levels=5] % \setupitemgroup[txitm][1][R] \setupitemgroup[txitm][2][a] \setupitemgroup[txitm][3][cnum,packed][stopper=] is working too. Thank you so much. Best regards, Dalyoung ___ 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] right and left alignment in header w/ linebreak sign
Hi, I am trying to have the header text aligned at the outer border of margin. At the moment I have \setupheadertexts[margin][][\rightaligned{\CurrentChapter}][\leftaligned{\CurrentChapter}][] and in the text \chapter{A very, very long long heading} and it works like I expect it. But as soon I have a linebreak in the heading (via \\) I get following error message: structuresectioning chapter @ level 2 : 0.1 - A very,\\very long long title ! Extra }, or forgotten \endgroup. system tex error on line 1 in file context-test-struktur3.tex: Extra }, or forgotten ... As soon I remove the alignment in the header also the chapter with the linebreak sign works - but of course I get then a wrong alignment. How can I make that the header works with the correct alignment and linebreaks in the heading? (header should be still without linebreaks) Thanks in advance! Complete example: -8 % define margins \definelayout[WithMarginnotes][location={duplex},grid=no,topspace=3cm,height=24cm,backspace=3cm,cutspace=0cm,leftmargin=1cm,leftmargindistance=0.4cm,width=12.1cm,rightmargindistance=0.4cm,rightmargin=3.5cm] \setuplayout[WithMarginnotes] \setuppagenumbering[alternative=doublesided,location=] \showframe % define header \define\CurrentChapter% {\doiftextelse {\getmarking[chapternumber]}% {\getmarking[chapternumber].~\getmarking[chapter]}% {\getmarking[chapter]}% } \setupheadertexts[margin][][\rightaligned{\CurrentChapter}][\leftaligned{\CurrentChapter}][]% % \starttext \completecontent[criterium=all] \chapter{A very,\\very long long heading} \chapter{A very, very long long heading} \chapter{End} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Heading with linebreaks in pdf bookmarks: linebreak sign stays
Am 17.07.2011 um 16:51 schrieb Peter Schorsch: Hi, as soon I have a linebreak inside a heading via \\ I get this \\ also in the text of that heading in the pdf-bookmarks: \setupinteraction[state=start] \placebookmarks[chapter,section,subsection][chapter,section] \starttext \completecontent[criterium=all] \chapter{A very,\\very long long title} \chapter{A very, very long long title} \stoptext What did I forgot to get rid of the linebreak sign in the pdf bookmarks? Use \startchapter as Thomas suggests or add \appendtoks\def\\{ }\to \simplifiedcommands to the begin of your document. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] right and left alignment in header w/ linebreak sign
Am 17.07.2011 um 17:48 schrieb Peter Schorsch: % define header \define\CurrentChapter% {\doiftextelse {\getmarking[chapternumber]}% {\getmarking[chapternumber].~\getmarking[chapter]}% {\getmarking[chapter]}% } \appendtoks\def\\{ }\to\simplifiedcommands \define\CurrentChapter {\bgroup\simplifycommands \doiftextelse{\getmarking[chapternumber]} {\getmarking[chapternumber].~\getmarking[chapter]} {\getmarking[chapter]}% \egroup} or use \startchapter[title={…\\…},marking={…}] … \stopchapter 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] Fw: A question about layers
In addition to my previous mail there is also an article published in the MAPS39 which shows an example of using layers. You can download it from here : http://www.ntg.nl/maps/39/ (Willi Egger, Decorating CD-ROMs and DVDs (English), MAPS 39, 2009, 59-71) Willi On 16 Jul 2011, at 19:35, Marcin Borkowski wrote: Anybody help, please...? Dnia 2011-07-14, o godz. 23:37:29 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a): I think that the general problem is that I have a wrong conceptual model of layers in ConTeXt. You know, when I hear the word layer, I have some ideas about how it should/could/might work, and probably these ideas are different than Hans'. So I'm going to briefly describe my idea (already modified by the answers) and please tell me what's wrong with it. So I imagine that \definelayer / \setuplayer defines a rectangular shape on the page, possibly framed/colored/etc., which is going to appear on all pages (default) or on selected ones. The contents of layers are set with \setlayer, (with some - mysterious for me - setups trickery if they are going to change from page to page), and they are actually put on the page by \setupbackgrounds. (And I have no idea what \flushlayer does in this conceptual framework.) So layers are actually kind of beneath ordinary page contents. Some of these commands (which ones?) should moreover be placed before \startext. OK, so where am I right and where am I wrong now? Best -- Marcin Borkowski ___ 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 ___
[NTG-context] Making bibliography references interactive in mkiv
Hello list, I'm currently using the built in bib-module in mkiv together with a bib database file. How can I set it up so that clicking on a reference takes me to the corresponding entry in the publication list? Example: ...lots of text... You can find more information in [23]. ...many more pages of text... Publications ... [23] Hoekwater, T. (2006). CONTEXT Publication Module, The user documententation. ... When clicking on [23] in the text, I want to jump right to the [23] entry in the publication list. Is this possible? ___ 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] inner/outer margin: wrong width at double sided
Hi, sorry that I repeat my question but I have really no idea how to solve this. When I use \ininner and \inouter directly, always the correct width is used. \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte But as soon I put it into a function the wrong margin width is often used. \unexpanded\def\startParagraph {\dosingleempty\dostartParagraph} \def\dostartParagraph[#1]% {\getrawparameters[Paragraph][heading=,mark=,#1]% \incrementnumber[ParagraphNumber]% \ininner{\tfx\getnumber[ParagraphNumber]}% \doifsomething\Paragraphheading{\inouter{\Paragraphheading}}% \doifsomething\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}% \ignorespaces} \unexpanded\def\stopParagraph {\blank[medium]} \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph In the attached pdf file in the thread-starting post you can see the broken results on page 6. -8 % define start- stopParagraph \definenumber[ParagraphNumber][way=bysection,prefixsegments=100] \unexpanded\def\startParagraph {\dosingleempty\dostartParagraph} \def\dostartParagraph[#1]% {\getrawparameters[Paragraph][heading=,mark=,#1]% \incrementnumber[ParagraphNumber]% \ininner{\tfx\getnumber[ParagraphNumber]}% \doifsomething\Paragraphheading{\inouter{\Paragraphheading}}% \doifsomething\Paragraphmark{\expanded{\textreference[\Paragraphmark]{\fullheadnumber/\rawnumber[ParagraphNumber]}}}% \ignorespaces} \unexpanded\def\stopParagraph {\blank[medium]} % Setup margins and double sided \definelayout[WithMarginnotes][location={duplex},grid=no,topspace=3cm,height=24cm,backspace=3cm,cutspace=0cm,leftmargin=1cm,leftmargindistance=0.4cm,width=12.1cm,rightmargindistance=0.4cm,rightmargin=3.5cm] \setuplayout[WithMarginnotes] \setuppagenumbering[alternative=doublesided,location=] \showframe % \starttext % direct use: works \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte \ininner{X X X X X X X X X X X X}\inouter{M M M M M M M M M M M M }\input tufte % used via fucntion: does not work correctly \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \startParagraph[heading={M M M M M M M M M M M M }] \input tufte \stopParagraph \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] math-align / subformulas not working
Hi, I just tried an example from math-ali.mkiv: \starttext \placeformula \startformula \startalign \NC a \NC \eq b \NR[+] \NC c \NC \neq d \NR \NC \NC \neq f \NR[+] \NC \NC \geq g \NR[+][a] \NC \NC \leq h \NR[+][b] \NC \NC \eq i \NR \stopalign \stopformula \stoptext But the subformula ...[+][a] and ...[+][b] are not shown as expected... they are shown as normal formula numbers - but they should be subformula numbers. Is there a new way to create subformulas? P. ___ 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] Making bibliography references interactive in mkiv
2011/7/18 Christian meta...@gmx.de: Hello list, I'm currently using the built in bib-module in mkiv together with a bib database file. How can I set it up so that clicking on a reference takes me to the corresponding entry in the publication list? maybe '\setupinteraction[state=start, focus=standard]' can help you. -- Best regards, Li Yanrui ___ 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] unwanted page break
Dear all, I have a strange output today. Writing a sentences, it makes a page break even though there are enough space for the remaining sentences. Here are sample output.(the lines is a frame) As you see there are enough space, I think. inline: bottom.tiff inline: topnewpage.jpg Sometimes, the section title is located at the bottom of the page, so I put \page to make the new section starts from a new page. In this case, is it possible to make section starts from a new page without saying \page? Thank you for reading. Best regards, Dalyoung ___ 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 ___