Re: [NTG-context] latest beta Minimals: interactive bookmarks for equations broken
On 18-4-2010 1:59, Ralf. Braun wrote: 2) Running "context hello-world.tex" with the example file from the wiki (Sanjoy Mahajan) you need to ask for the bookmarks: \placebookmarks[chapter] i need to look in the figures not being listed Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ! Undefined control sequence
On Fri, Apr 23 2010, Wolfgang Schuster wrote: > \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}] Hello Wolfgang, It works event without \setvariables: \defineitemgroup[Tst] \setupTst[1][n,\getvariable{tst}{broad}*broad] \starttext \setvariables[tst][broad=1] \startTst \item text \stopTst \setvariables[tst][broad=5] \startTst \item text \stopTst \stoptext But why? I don't see any "\noexpand" in the definition of \getvariable... Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___ 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] Re :! Undefined control sequence
Am 23.04.10 19:20, schrieb Wolfgang Werners-Lucchini: What is the following command for: \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad] }] This is enough, or are there any problems? \setupTst[1][n,\getvariable{tst}{broad}*broad] To explain it with simpler macros \setvariables[tst][set={...}] is similar to \def\tstset{\setupTst[1][n,\tstbroad*broad]} and \setvariables[tst][broad=5] is similar to \def\tstbroad{5} but the special thing is now that \setvariables calls \tstset (or to be concrete the value of the 'set' key in \setvariables after the) value was assigned to broad. In a complete and simple example this is what happens: \defineitemgroup[Tst] \def\tstset{\setupTst[1][\tstbroad*broad]} \starttext \startTst \item text \stopTst \def\tstbroad{5}\tstset \startTst \item text \stopTst \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] float at fixed position
On 22-4-2010 8:15, Peter Rolf wrote: Hi, in a multi column layout I want to place a figure at a fixed position. Inserting a floating object at a fixed position doesn't make any sense, but I need the correct caption (number) for the graphic. Sadly \placefigure fails with nx=3 - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \textvisiblespace
On 23-4-2010 1:53, Wolfgang Werners-Lucchini wrote: Hallo, shouldn't \textvisiblespace work in mkiv? i'll add \let\textvisiblespace\normalcontrolspace - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] page-break
On 23-4-2010 12:09, Jörg Hagmann wrote: No reaction to this question so far. I realise that, without a minimal example, it is difficult to know what is happening. But I don't believe that the problem never occurs to others. Maybe you have some general suggestions as what to try? The page breaks as soon as the paragraph starting with "S. 33 Zwergammer..." contains more than one line. An additional information: \adaptlayout[43][lines=+1] (or height=+ something] gives an error (on any page in the document): change \rawdoifinsetelse into \rawdoifinset \def\adaptpagedimensionsindeed {\rawdoifinset\realfolio\adaptedpages - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Testing TeX macros through Lua
On 22-4-2010 9:15, Taco Hoekwater wrote: Jaroslav Hajtmar wrote: Hello everybody. Is there any possibility discover through Lua in ConTeXt whether it has been defined in ConTeXt source any regular TeX macros? \starttext \directlua{print(token.command_name(token.create('starttext')))} \directlua{print(token.command_name(token.create('starttextx')))} \stoptext In short: if the result of command_name is "undefined_cs", the corresponding identifier is undefined (at this moment at this level). What command_name returns is a string representation of the internal command, of which there are some 140. normal macros are "call", conditionals are "if_test", box commands are "box_set", etc. There is no list of returned names in the manual, but you can generate one by something like this: \directlua{ i=0 while i<200 do v = token.command_name({i,0,0}) if not v then break end print(i, v) i=i+1 end} Alternatively, you can do this: \directlua{print(token.csname_name(token.create('starttext')))} if the returned string is empty, the command was undefined, otherwise you get the string back that you gave yourself (but with this option you don't know what kind of command it was). \starttext \startluacode function interfaces.valid_command(str) return (str and str ~= "" and token.csname_name(token.create(str)) ~= "") or false end print(interfaces.is_command()) print(interfaces.is_command("")) print(interfaces.is_command("interesting")) print(interfaces.is_command("starttext")) \stopluacode \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Re :! Undefined control sequence
Hallo Taco and Wolfgang, > > Why is this? > > Because \setupitemgroup expands its third argument. > > > And how can I make it work in position 2? > >\setupitemgroup[Tst][1][n,\noexpand\broad ] > thank you very much! > \defineitemgroup[Tst] > > \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broa > d]}] > > \starttext > > \startTst > \item text > \stopTst > > \setvariables[tst][broad=5] > > \startTst > \item text > \stopTst > > \stoptext > > Wolfgang What is the following command for: \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad] }] This is enough, or are there any problems? \setupTst[1][n,\getvariable{tst}{broad}*broad] 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] Problem with \doifelse testing of UTF-8 chars
On 23-4-2010 2:31, Mojca Miklavec wrote: Last time when I tried the UTF-8 didn't work with mkii (if the first character in cell wasn't an ascii character). another trick: \bgroup \keeputfcharacters \doifelse{slovenian mkii utf} {whatever} {\egroup ..} {\egroup ..} - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \doifelse testing of UTF-8 chars
Wow, great, thanks a lot! It works much better now. Mojca ___ 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 \doifelse testing of UTF-8 chars
On 23-4-2010 2:31, Mojca Miklavec wrote: On Fri, Apr 23, 2010 at 00:30, Jaroslav Hajtmar wrote: Thank you very much. Due to your suggestion it was my problem resolved. Problem has been truly in unexpanded macros. Can the solution be applied to the m-database.tex module as well? Last time when I tried the UTF-8 didn't work with mkii (if the first character in cell wasn't an ascii character). Mojca Example: \enableregime[utf-8] \usemodule[database] \defineseparatedlist[CSV] [separator=comma, before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD] \starttext \startCSV a,b,c,č d,e,f,š \stopCSV \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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - %D \module %D [ file=m-database, %Dversion=2006.04.23, %D title=\CONTEXT\ Modules, %D subtitle=Database Thingies, %D author=Hans Hagen\& Taco Hoekwater, %D date=\currentdate, %D copyright=PRAGMA %D ] %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See mreadme.pdf for %C details. \unprotect % % % to be added to mult-* files % % % % todo: \dontcollectseparatedlist via k/v \definesystemvariable{ls} \def\c!first {first} \def\c!last {last} \def\c!quotechar {quotechar} \l...@nx\noexpand %D {processquotedlist} %D %D An even more general list processing macro is the %D following one: %D %D \starttyping %D \processquotedlist{beginsym}{endsym}{separator}\docommand list %D \stoptyping %D %D This one supports arbitrary open and close symbols as well %D as user defined separators. %D %D \starttyping %D \processquotedlist(){,}{"}\docommand(a=>b=>c=>d) %D \stoptyping \def\processquotedlist#1#2#3#4#5% {\def\csvquotechar{#4}% \edef\doconvertcsvquoteditem#4##1#4##2% {...@nx\ifx##2#3% \l...@nx\next\@NX\doconvertcsvlist \d...@nx\arg{#3}% \ed...@nx\temp{##1}% \...@nx\expanded{\@nx#...@nx\temp}}% \...@nx\else \l...@nx\next\@NX\redoconvertcsvquoteditem \d...@nx\arg{##1\@NX\csvquotechar}% \...@nx\fi \...@nx\expandafter\@nx\ne...@nx\arg}% \edef\redoconvertcsvquoteditem##1#4##2% {...@nx\ifx##2#3% \l...@nx\next\@NX\doconvertcsvlist \d...@nx\arg{#3}% \ed...@nx\temp{##1}% \...@nx\expanded{\@nx#...@nx\temp}}% \...@nx\else \l...@nx\next\@NX\redoconvertcsvquoteditem \d...@nx\arg{##1\@NX\csvquotechar}% \...@nx\fi \...@nx\expandafter\@nx\ne...@nx\arg}% \edef\doconvertcsvitem##1#3% {\ed...@nx\temp{##1}% \...@nx\expanded{\@nx#...@nx\temp}}% \...@nx\doconvertcsvlist#3}% \edef\doconvertcsvlist#3##1% {...@nx\ifx##1\@NX#2% \l...@nx\next \...@nx\gobbleoneargument \...@nx\else\@NX\ifx##1#4% \l...@nx\next \...@nx\doconvertcsvquoteditem \...@nx\else \l...@nx\next \...@nx\doconvertcsvitem \...@nx\fi\@NX\fi \...@nx\next##1}% \doconvertcsvitem} \gdef\doprocessseparatedquoteditem#1% {\appendseparatedlistparameter\c!left% \appendseparatedlistcontent{#1}% \appendseparatedlistparameter\c!right} % % % so far % \def\dodefineprocessseplist#1#2% separator \docommand % {\def\dodoprocessseplist##1##2#1% % {\ifx\relax##1% % \expandafter\nodoprocessseplist % \else\ifx##1#1% % #2{}% % #2{##2}% % \expandafter\expandafter\expandafter\dodoprocessseplist % \else % #2{##1##2}% % \expandafter\expandafter\expandafter\dodoprocessseplist % \fi\fi}% %\def\doprocessseplist##1\relax % {\dodoprocessseplist##1#1\relax#1\relax\relax\end}} % % a version more robust with regard to {a a} b c d situations \edef\detokenizedrelax{\detokenize{\relax}} \def\dodefineprocessseplist#1#2% separator \docommand {\def\dodoprocessseplist##1##2#1% {\edef\!!stringa{\detokenize{##1}}% \ifx\detokenizedrelax\!!stringa \expandafter\nodoprocessseplist \else\ifx\!!stringa#1% #2{}% #2{##2}% \expandafter\expandafter\expandafter\dodoprocessseplist \else #2{##1##2}% \expandafter\expandafter\
Re: [NTG-context] \doifinset
Am 23.04.10 17:57, schrieb Wolfgang Werners-Lucchini: Hallo, on the garden at http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions one can read to the command \doifinset 'If the first string expands 'empty', it is considered to be always in the set.' But \starttext \doifinset{}{A,B,C}{should go} \stoptext seams to show that this is wrong. Is my example wrong or my understanding of the above sentence? The sentence is wrong, if the first argument is empty ConTeXt considers the argument to be *not* in the set (verified in the source). 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] ! Undefined control sequence
Wolfgang Schuster wrote: don't you think it's better to show users a better alternative if possible? You are assuming I know how ;) Nice solution, btw. 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] ! Undefined control sequence
Am 23.04.10 17:32, schrieb Taco Hoekwater: - Why is this? Because \setupitemgroup expands its third argument. And how can I make it work in position 2? \setupitemgroup[Tst][1][n,\noexpand\broad ] Best wishes, Taco Taco, don't you think it's better to show users a better alternative if possible? \defineitemgroup[Tst] \setvariables[tst][set={\setupTst[1][n,\getvariable{tst}{broad}*broad]}] \starttext \startTst \item text \stopTst \setvariables[tst][broad=5] \startTst \item text \stopTst \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] \doifinset
Hallo, on the garden at http://wiki.contextgarden.net/System_Macros/Branches_and_Decisions one can read to the command \doifinset 'If the first string expands 'empty', it is considered to be always in the set.' But \starttext \doifinset{}{A,B,C}{should go} \stoptext seams to show that this is wrong. Is my example wrong or my understanding of the above sentence? 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] ! Undefined control sequence
- Why is this? Because \setupitemgroup expands its third argument. And how can I make it work in position 2? \setupitemgroup[Tst][1][n,\noexpand\broad ] 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] how to make uppercase characters?
On Fri, Apr 23, 2010 at 4:56 PM, Marius wrote: > Hello, > > There is \uppercase command in tex, but it works just with plane characters. > > \uppercase{xxx} prints XXX, while > > \def\xxx{xxx} > \uppercase{\xxx} prints "xxx", but I want "XXX". > > Maybe there is a ConTeXt command of \uppercase, like in LaTeX \MakeUppercase ? \def\xxx{xxx} \starttext \uppercased{\xxx} \uppercased{xxx} \uppercase{\xxx} \uppercase{xxx} \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] how to make uppercase characters?
Am 23.04.10 16:56, schrieb Marius: Hello, There is \uppercase command in tex, but it works just with plane characters. \uppercase{xxx} prints XXX, while \def\xxx{xxx} \uppercase{\xxx} prints "xxx", but I want "XXX". Maybe there is a ConTeXt command of \uppercase, like in LaTeX \MakeUppercase ? \WORD{...} for more commands see page 96 at cont-enp.pdf (http://pragma-ade.com/show-man-9.htm) 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] how to make uppercase characters?
Hello, There is \uppercase command in tex, but it works just with plane characters. \uppercase{xxx} prints XXX, while \def\xxx{xxx} \uppercase{\xxx} prints "xxx", but I want "XXX". Maybe there is a ConTeXt command of \uppercase, like in LaTeX \MakeUppercase ? Thanks, Marius ___ 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] ! Undefined control sequence
Hallo, I have a little problem which I can not solve. The following example works with the definition of \broad in position 1 and it fails in position 2. - % Position 1 % \def\broad{5*broad} \defineitemgroup[Tst] \setupitemgroup[Tst][1][n,\broad ] % Position 2 \def\broad{5*broad} \starttext \startTst \item Test \stopTst \stoptext - Why is this? And how can I make it work in position 2? 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] page-break
On 4/23/10 2:45 PM, Taco Hoekwater wrote: Jörg Hagmann wrote: No reaction to this question so far. I realise that, without a minimal example, it is difficult to know what is happening. But I don't believe that the problem never occurs to others. Maybe you have some general suggestions as what to try? The page breaks as soon as the paragraph starting with "S. 33 Zwergammer..." contains more than one line. An additional information: \adaptlayout[43][lines=+1] (or height=+ something] gives an error (on any page in the document): Works for me, but that is probably because of missing test file (you seem to be inside \obeylines for some reason). It works for me in other files as well, so context seems to be ok. Jörg ___ 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 ___ -- Prof. Jörg Hagmann-Zanolari MD University of Basel Department of Biomedicine Institute of Biochemistry and Genetics Mattenstrasse 28 CH-4058 Basel Switzerland Phone +41 (0)61 267 3565 ___ 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-break
Jörg Hagmann wrote: No reaction to this question so far. I realise that, without a minimal example, it is difficult to know what is happening. But I don't believe that the problem never occurs to others. Maybe you have some general suggestions as what to try? The page breaks as soon as the paragraph starting with "S. 33 Zwergammer..." contains more than one line. An additional information: \adaptlayout[43][lines=+1] (or height=+ something] gives an error (on any page in the document): Works for me, but that is probably because of missing test file (you seem to be inside \obeylines for some reason). 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] Problem with \doifelse testing of UTF-8 chars
On Fri, Apr 23, 2010 at 00:30, Jaroslav Hajtmar wrote: > Thank you very much. Due to your suggestion it was my problem resolved. > Problem has been truly in unexpanded macros. Can the solution be applied to the m-database.tex module as well? Last time when I tried the UTF-8 didn't work with mkii (if the first character in cell wasn't an ascii character). Mojca Example: \enableregime[utf-8] \usemodule[database] \defineseparatedlist[CSV] [separator=comma, before=\bTABLE, after=\eTABLE, first=\bTR, last=\eTR, left=\bTD, right=\eTD] \starttext \startCSV a,b,c,č d,e,f,š \stopCSV \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] setuppagenumbering command
Am 23.04.10 08:10, schrieb Marius: I am using the given command below to change numbering format, but I get numbers instead of roman numerals. Looks like conversion option has no effect. \setuppagenumbering [location=right, alternative=doublesided, conversion=Romannumerals, style=bold] \setupuserpagenumber[numberconversion=Romannumerals] 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] the last page of a document
Marius wrote: On Fri, Apr 23, 2010 at 9:34 AM, Taco Hoekwater wrote: Marius wrote: Hello, I am writing an environment for a document and there should be a page with some text at the end of the document. In LaTeX I use \AtEndDocument{} command, but how does one achieve the same effect in ConTeXt? \appendtoks (stuff I want to do) \to\everystoptext Thank you for the help, but with this command I have a little problem. The two pages at the end of the attached document should be the same, but, as given in this example, the \vfill command does not work as expected, if added to the \appendtoks. The \vfill fills just half of the page. That is because \stoptext adds another \vfill at the bottom of the page. This works: \appendtoks \page must be at the top\vfill must be at the bottom\vfillneg \to\everystoptext 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] the last page of a document
On Fri, Apr 23, 2010 at 9:34 AM, Taco Hoekwater wrote: > Marius wrote: >> >> Hello, >> >> I am writing an environment for a document and there should be a page >> with some text at the end of the document. In LaTeX I use >> \AtEndDocument{} command, but how does one achieve the same effect in >> ConTeXt? > > \appendtoks (stuff I want to do) \to\everystoptext Thank you for the help, but with this command I have a little problem. The two pages at the end of the attached document should be the same, but, as given in this example, the \vfill command does not work as expected, if added to the \appendtoks. The \vfill fills just half of the page. test2.pdf Description: Adobe PDF document test2.tex Description: TeX document ___ 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] Fullpage module
On Thu, Apr 22, 2010 at 20:34, Wolfgang Schuster wrote: > > The module is now on the garden, it’s Mojcas job to include it in the > minimals. It's there. Mojca ___ 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-break
No reaction to this question so far. I realise that, without a minimal example, it is difficult to know what is happening. But I don't believe that the problem never occurs to others. Maybe you have some general suggestions as what to try? The page breaks as soon as the paragraph starting with "S. 33 Zwergammer..." contains more than one line. An additional information: \adaptlayout[43][lines=+1] (or height=+ something] gives an error (on any page in the document): -snip verfull \hbox (40.14098pt too wide) in paragraph at lines 345--345 [][]\*jhgentium10.5ptrmbf* Som-m-er-gold-hähn-chen \*jhgentium10.5ptrmtf* -- \*jhgentium10.5ptrmit* Roi-te-let à triple ban-deau \*jhgentium10.5ptrmtf* -- Regu-lus igni-ca-pilla: Januar/Februar-Beob- !pages : flushing realpage 38, userpage 40 !pages : flushing realpage 39, userpage 41 !pages : flushing realpage 40, userpage 42 !pages : flushing realpage 41, userpage 43 !pages : flushing realpage 42, userpage 44 layout : textheight adapted with +2 lines at page 43 ! Extra \else. \handlestreamoutput ...aultstreamoutput \fi \else \the \normalstreamoutput \fi \invokenormaloutputroutine ...\OTRcommand \output \fi ...e \everybeforeoutput \the \mainoutput \the \everyafteroutput } \obeyedline ->\par \futurelet \next \dobetweenthelines l.399 ...htung eines Ind. am 20.9. bei Seltisberg. ? ---snip-- Please have a look at the pdf-files (http://www.ogbasel.ch/version-1.pdf and http://www.ogbasel.ch/version-page-no.pdf) and tell me what you think. Thank you, Jörg On 4/20/10 10:05 AM, Jörg Hagmann wrote: Dear list members, My biggest problem have always been seemingly arbitrary page breaks occuring every now and then in larger documents; and because I don't see a pattern, I can't create a minimal example. But maybe you can make a suggestion based on the following: The section below produces a page break seen in http://www.ogbasel.ch/version-1.pdf. If the line "\page[no]" is inserted, the page break occurs as shown in http://www.ogbasel.ch/version-page-no.pdf Mark IV, on linux and Leopard Context version 2010.03.02 12:34 The font is Gentium at 10.5 Thanks, Jörg -snip-- {\bf Grauammer} -- {\it Bruant proyer} -- Emberiza calandra: Am 28.2. konnte LEU einen Sänger in der PCA feststellen. Am 29.3. sah und hörte KEL 3 Ind. in Iselisboden bei Hésingue und 1 Ind. bei der Neudörfler Lache bei Village-Neuf. AMA meldet die Beobachtung eines Ind. am 8.6. in der PCA und KEL eines Ind. am 21.6. in Iselisboden bei Hésingue. OES sah am 3.7. 1 Ind. in einer Buntbrache zwischen Reinach und Aesch. \stoplines %\stoplinenumbering \section{Nachträge zum Jahresbericht 2007} %\startlinenumbering S. 29 Goldhähnchenlaubsänger -- Pouillot de Pallas -- Phylloscopus proregulus: Am 15.12. sah M. Solari 1 Ind. bei St-Louis. Die Beobachtung wurde vom Comité National de Homologation angenommen (mitgeteilt durch BLA). \page[no] %%% < without this line in version-1.pdf, with the line in version-page-no.pdf S. 33 Zwergammer -- Bruant nain -- Emberiza pusilla: Am 5.10. wurde in der PCA 1 Ind. von M.Baumann, B. Scaar et al. gefangen. Die Bestimmung wurde vom Comité National de Homologation angenommen (mitgeteilt durch BLA). %\stoplinenumbering \section{Zitierte Literatur} %\startlinenumbering Volet, B. 2006: Liste der Vogelarten der Schweiz. Ornithol. Beobachter 103: 271-294 %\stoplinenumbering \section[title:abbrev]{Abkürzungen -- Abbréviations} \subsubsubject{Abkürzungen der erwähnten Einsenderinnen und Einsender von Beobachtungen} snip- ___ 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] [ppchtex] \normalifx: Undefined control sequence
Le vendredi 23/04/10 à 09h34, Hans Hagen a écrit : > we have context mkii and context mkiv; the new ppchtex module is for > mkiv and uses a combination of lua, tex and mp; as context and latex > are quite different (and even more when you consider mkiv) the new > ppchtex code targets at context Too bad... but I can understand... Thanks! -- Denis ___ 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] [ppchtex] \normalifx: Undefined control sequence
On 23-4-2010 7:37, Denis Bitouzé wrote: Le jeudi 22/04/10 à 23h32, Hans Hagen a écrit : btw, in mkiv ppchtex is reimplemented; it still has some flaws but it has more room for extensions and is now part of the context mkiv kernel As I'm not using ConTeXt for the moment (but it may change! :), what are the consequences of this for a LaTeX user? we have context mkii and context mkiv; the new ppchtex module is for mkiv and uses a combination of lua, tex and mp; as context and latex are quite different (and even more when you consider mkiv) the new ppchtex code targets at context Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___