Re: [NTG-context] feature request
Am 13.11.2011 um 22:33 schrieb Andreas Schneider: > On 13.11.2011 11:55, Steffen Wolfrum wrote: >> >> I am looking for the same functionality as the traditional TeX comment >> (starting with %), but used in-line not only after a paragraph. > > That sounds a bit strange, because a paragraph doesn't end with a line break. > That's how I usually do my comments too; just add a comment and continue > after the line break with the content/sentence/paragraph: > > -8< > This is %some comment > an example. > ->8 > > ... will end up as: "This is an example." maybe "paragraph" was the wrong word (even though in your example between "comment" and "an" there is a pilcrow too, which is commonly used to denote individual paragraphs). that's what I meant: a true in-line comment ... without a line-break, parapgraph-break, pilcrow for ending the comment: This is ¿some comment¡ an example. Steffen ___ 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] scaling the mp figure in ConTeXt
Dear all, I use MetaFun to create a figure and embed it using \processMPbuffer[]. for example, \startbuffer[test] draw fullcircle scaled 3cm; \stopbuffer \starttext \placefigure[][]{} \processMPbuffer[test] \stoptext But sometimes, I need to rescaling the mp figure to fit the page. Is there a way of rescaling the figure at the stage \processMPbuffer or \useMPgraphic? In the above example, I got a circle of radius 3cm. How to get a circle of radius 2cm? 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 ___
Re: [NTG-context] "Too many }'s" in latest beta
On Mon, Nov 14 2011, Hans Hagen wrote: > context.environment(false, "my-env ") Thanks, this solves all problems! > msybe \environment should accept [name] as well You've already added support for this in January: http://archive.contextgarden.net/message/20110114.182134.7ec49be5.en.html -- 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] Simplefonts question
2011/11/11 Wolfgang Schuster : > > Am 11.11.2011 um 13:01 schrieb Lutz Haseloff: > >> Hi Wolfgang, >> >> I'm looking for documentation for your handy module. >> >> Particularly i'd like to know all the options i can use for >> the commands \setmainfont and \setupsimplefonts. >> >> My goal is to use a font in my document in >> different sizes (say 12, 17 and 35pt) with adequate >> line spacing. > > Do you want a whole family in this size or only a single style of a font? I need Linux Libertine as Serif, Aller as SansSerif and Aller in 35pt for large titles with proper line spacing. My success so far: \definefontfeature[cond][default][extend=.8] \usemodule[simplefonts] \setmainfont[linuxlibertineo] \setsansfont[aller][features=cond] \mainlanguage[de] \starttext Dudelsackpfeifenmachergeselle {\it Dudelsackpfeifenmachergeselle } {\bf Dudelsackpfeifenmachergeselle } {\bi Dudelsackpfeifenmachergeselle } \ss Dudelsackpfeifenmachergeselle {\it Dudelsackpfeifenmachergeselle } {\bf Dudelsackpfeifenmachergeselle } {\bi Dudelsackpfeifenmachergeselle } \stoptext Now some questions remain: How can i set the size of the fonts? \setsansfont[aller][features=cond,size=14pt] seems not to work. How can i define the 35pt .8 condensed Aller? Greetings Lutz ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Metafun manual section titles
On 13.11.2011, at 23:24, Romain Diss wrote: > Hello, > > I'm trying to make some section titles which look like the ones of the > metafun > manual: title and number underlined, with number in margin. I thougth it > would > not be too hard but I can't do it. > > Actually, I'm using a frame with an overlay with a \startuniqueMPgraphic to > underline the title but I can't make a frame for both the section number > which > is in the margin and the text which is not. > > I tried to make the underlining of the title text extend in the margin but > it's not easy because the frame background seems to be centered automatically > on the frame. Maybe I should adjust some offsets but how can I know the size > of > the section number... > > Anybody can help me on that problem ? Hi, you can try something like this: \setuplayout[width=middle,backspace=4cm] \startuseMPgraphic{line} drawoptions(withcolor \MPcolor{\framedparameter{framecolor}}) ; draw bottomboundary OverlayBox withpen pencircle scaled 3pt ; setbounds currentpicture to OverlayBox ; \stopuseMPgraphic \defineoverlay[head:line][\useMPgraphic{line}] \defineframedtext [framedHead] [align=right,width=fit, offset=overlay,boffset=.25ex, frame=off,framecolor=yellow:4, background=head:line] \defineheadplacement [MyPlacement] [vertical] {\setwidthof{#1\hskip\leftmargindistance}\to\MyWidth\hskip-\MyWidth \startframedHead #1\hskip\leftmargindistance #2 \stopframedHead} \setuphead [chapter,section] [alternative=MyPlacement] \starttext \showframe \dorecurse{3}{ \chapter{Chapter #1} \dorecurse{3}{\section{Section ##1} \dorecurse{3}{\subsection{Subsection}} } } \stoptext But I’m sure there are better solutions … Best wishes Andreas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] "Too many }'s" in latest beta
On 14-11-2011 00:31, Wolfgang Schuster wrote: Am 14.11.2011 um 00:25 schrieb Hans Hagen: On 14-11-2011 00:10, Peter Münster wrote: On Mon, Nov 14 2011, Peter Münster wrote: context"Amount: 123" Or just a space:context" " context.environment(false, "my-env ") msybe \environment should accept [name] as well \environment does accept “[…]”. sure but i meant a variant at the lua end (sort of special case as [{..}] gets passed now, normally ok - 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] "Too many }'s" in latest beta
Am 14.11.2011 um 00:25 schrieb Hans Hagen: > On 14-11-2011 00:10, Peter Münster wrote: >> On Mon, Nov 14 2011, Peter Münster wrote: >> >>> context"Amount: 123" >> >> Or just a space:context" " >> > > context.environment(false, "my-env ") > > msybe \environment should accept [name] as well \environment does accept “[…]”. 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] "Too many }'s" in latest beta
On 14-11-2011 00:10, Peter Münster wrote: On Mon, Nov 14 2011, Peter Münster wrote: context"Amount: 123" Or just a space:context" " context.environment(false, "my-env ") msybe \environment should accept [name] as well -- - 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] Undefined control sequence with latest beta
Hello, When running `context test.cld' on this file: --8<---cut here---start->8--- io.output"my-env.tex" io.write"\\startenvironment my-env\n\\def\\myTest{bla}\n\\stopenvironment\n" context.environment{"my-env"} context.starttext() context.myTest() context.stoptext() --8<---cut here---end--->8--- I get an `undefined control sequence' error for \myTest. How could I solve this problem please? TIA for any help, -- 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] "Too many }'s" in latest beta
On Mon, Nov 14 2011, Peter Münster wrote: > context"Amount: 123" Or just a space:context" " -- 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 ___
[NTG-context] "Too many }'s" in latest beta
Hello, When running `context test.cld' on this file: --8<---cut here---start->8--- context.environment{"my-env"} -- it does not matter, if this file exists or not context.starttext() context.startalignment{"middle"} context"Amount: 123" context.stopalignment() context.stoptext() --8<---cut here---end--->8--- I get the following error: system > tex > error on line 11 in file test.run: Too many }'s ... [1] How could I solve this problem please? core-env.mkiv is patched on line 226 as suggested by Wolfgang. TIA for any help, -- Peter [1]: test.run has only one line... ;-) ___ 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] Metafun manual section titles
Hello, I'm trying to make some section titles which look like the ones of the metafun manual: title and number underlined, with number in margin. I thougth it would not be too hard but I can't do it. Actually, I'm using a frame with an overlay with a \startuniqueMPgraphic to underline the title but I can't make a frame for both the section number which is in the margin and the text which is not. I tried to make the underlining of the title text extend in the margin but it's not easy because the frame background seems to be centered automatically on the frame. Maybe I should adjust some offsets but how can I know the size of the section number... Anybody can help me on that problem ? -- Romain Diss ___ 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] extra white after equation
I guess I have found the culprit in the bad placement of formulas without an equationnumber. The minimal example I used is that found in strc-mat.mkiv, added a [-] in the middle one. \setuppapersize[A6][A6] \setupformulae[spacebefore=0pt,spaceafter=0pt] % \starttext \placenamedformula[one]{first} \startformula a = 1 \stopformula \endgraf \placeformula[-] \startformula a = 2 \stopformula \endgraf \placenamedformula {second} \startformula a = 3 \stopformula \endgraf \stoptext It appears that in the case of an absent equationnumber extra stretching takes place at the position of the (now absent) equationnumber. Placing phantom ()'s remedies this. The effect is best seen by enabling the \rlap{\tracedformulamode}%-line. May I ask Hans to take a look and change it in the next beta if this indeed a correct solution? For my suggestion for the change see below. Thanks in advance. Hans van der Meer On 13 nov. 2011, at 14:57, Hans van der Meer wrote: > I find that the placement of an equation number makes a difference on the > amount of white after the equation. Should they both give the same amount of > whitespace? Or is the difference intentional? But then why? > I add a minimal example. > > Output (1) as in Context ver: 2011.11.04 14:15 MKIV Output (2) with redefined \ dododoformulanumber % lines 240+ in strc-mat.mkiv \def\dododoformulanumber {\ifconditional\handleformulanumber \hbox\bgroup % main counter \ifconditional\insidesubformulas % nothing \else \ifcase\formulasnumbermode \ifcase\placeformulanumbermode \dohandleformulanumbering \or \dohandleformulanumbering \or % nothing THIS SEEMS BAD \phantom{()}% THIS GIVES CORRECT SPACING \or \dohandleformulanumbering \fi \or \dohandleformulanumbering \or % nothing \or \dohandleformulanumbering \fi \fi % subcounter \ifconditional\insidesubformulas \ifcase\subformulasnumbermode % nothing \or \dohandlesubformulanumbering \or % nothing NOT CHECKED BUT PROBABLY SAME AS ABOVE \phantom{()}% PROBABLY HERE TOO \or \dohandlesubformulanumbering \fi \fi %\rlap{\tracedformulamode}% \egroup \fi} equationwhite-bad.pdf Description: equationwhite-bad.pdf equationwhite-good.pdf Description: equationwhite-good.pdf ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] feature request
On 13.11.2011 11:55, Steffen Wolfrum wrote: I am looking for the same functionality as the traditional TeX comment (starting with %), but used in-line not only after a paragraph. That sounds a bit strange, because a paragraph doesn't end with a line break. That's how I usually do my comments too; just add a comment and continue after the line break with the content/sentence/paragraph: -8< This is %some comment an example. ->8 ... will end up as: "This is an example." -- Best Regards, Andreas Schneider ___ 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] wiki correction
I think I spotted a small error in the parameterlisting of \setupformulae on the wiki: parameter "after dimension" probably should be "spaceafter dimension" because calling with the former has no effect, the latter does. Though using it does not change the difference in spaceafter between \placeformula and \placeformula[-]. 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] [solved] Project structure: Do macros go into the environment?
Am Sonntag, den 13.11.2011, 20:09 +0100 schrieb Wolfgang Schuster: > Am 13.11.2011 um 20:05 schrieb Paul Menzel: > > I am using the project layout [1] and have a file `env.tex` which gets > > loaded. > > > >\startenvironment env > > > >\mainlanguage[de] > > > >\setupinteraction > > [title=Titel, > > author=John Doe, > > keyword={keyword}] > > > >\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} > >\def\ahref#1{\color[linkcolor]{\ttx \href{#1}{<#1>}}} > >\def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}} > >\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]} > >\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]} > > > >[…] > >\stopenvironment > > > > My question is if all macro definitions (and setups like for > > interaction) should go in there? > > Yes. As always, thank you for the fast response! Thanks, Paul signature.asc Description: This is a digitally signed message part ___ 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] Project structure: Do macros go into the environment?
Am 13.11.2011 um 20:05 schrieb Paul Menzel: > Dear ConTeXt folks, > > > I am using the project layout [1] and have a file `env.tex` which gets > loaded. > >\startenvironment env > >\mainlanguage[de] > >\setupinteraction > [title=Titel, > author=John Doe, > keyword={keyword}] > >\def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} >\def\ahref#1{\color[linkcolor]{\ttx \href{#1}{<#1>}}} >\def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}} >\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]} >\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]} > >[…] >\stopenvironment > > My question is if all macro definitions (and setups like for > interaction) should go in there? Yes. 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] Project structure: Do macros go into the environment?
Dear ConTeXt folks, I am using the project layout [1] and have a file `env.tex` which gets loaded. \startenvironment env \mainlanguage[de] \setupinteraction [title=Titel, author=John Doe, keyword={keyword}] \def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} \def\ahref#1{\color[linkcolor]{\ttx \href{#1}{<#1>}}} \def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}} \def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]} \def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]} […] \stopenvironment My question is if all macro definitions (and setups like for interaction) should go in there? Thanks, Paul [1] http://wiki.contextgarden.net/Project_structure signature.asc Description: This is a digitally signed message part ___ 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] url: Add macros to the ConTeXt core
Dear ConTeXt folks, looking into typesetting URLs I find typesetting URLs quite cumbersome. Maybe I have not used that feature that often so I am not seeing the advantage to first define a URL somewhere and give it a name \useURL[aurl] [http://xkcd.com/149/] [] [I prefer hot dogs.] and then later use it. \url[aurl] The proposed macros(?) in the section »Tipps and Tricks« [2] \def\href#1#2{\useURL[#2][{#2}][][{#1}]\goto{\url[#2]}[url(#1)]} \def\ahref#1{\color[linkcolor]{\ttx \href{#1}{<#1>}}} \def\fullahref#1{\color[linkcolor]{\ttx \href{#1}{http://#1}}} \def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]} \def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]} seem quite useful. Could they be added to the ConTeXt core(?)? Thanks, Paul [1] http://wiki.contextgarden.net/url [2] http://wiki.contextgarden.net/url#Tipps_and_Tricks signature.asc Description: This is a digitally signed message part ___ 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] extra white after equation
I find that the placement of an equation number makes a difference on the amount of white after the equation. Should they both give the same amount of whitespace? Or is the difference intentional? But then why? I add a minimal example. Hans van der Meer % Test white after formula with and without equation number. \starttext \input tufte \placeformula\startformula a^2 + b^2 = c^2 \stopformula % no extra white \input tufte \placeformula[-]\startformula a^2 + b^2 = c^2 \stopformula % extra white \input tufte \stoptext equationwhite.pdf Description: Adobe PDF 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] Project structure and modes
Thanks many times Wolfgang. You were right! I forgot to regenerate the format in the standalone version, respectively I instead regenerated ConTeXt format in TeXLive 2011, which you probably assumed in your mail :-). Everything is in order now. Thanks again. Jaroslav Dne 13.11.2011 14:43, Wolfgang Schuster napsal(a): Am 13.11.2011 um 14:38 schrieb Jaroslav Hajtmar: Thanks Wolfgang, but unfortunately for me it still does not work… Minimal example: \startcomponent test \input knuth \stopcomponent With the current beta this fails but after I changed \def\resetsystemmode#1% {\ifcsname\@mode@:\systemmodeprefix#1\endcsname \expandafter\popmacro\csname\@mode@:\systemmodeprefix#1\endcsname \csname\@mode@\systemmodeprefix#1\endcsname\csname\@mode@:\systemmodeprefix#1\endcsname\relax \fi} to \def\popsystemmode#1% {\ifcsname\@mode@:\systemmodeprefix#1\endcsname \expandafter\popmacro\csname\@mode@:\systemmodeprefix#1\endcsname \csname\@mode@\systemmodeprefix#1\endcsname\csname\@mode@:\systemmodeprefix#1\endcsname\relax \fi} and regenerated the format (context --make) it compiles fine. 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] Project structure and modes
Am 13.11.2011 um 14:38 schrieb Jaroslav Hajtmar: > Thanks Wolfgang, but unfortunately for me it still does not work… Minimal example: \startcomponent test \input knuth \stopcomponent With the current beta this fails but after I changed \def\resetsystemmode#1% {\ifcsname\@mode@:\systemmodeprefix#1\endcsname \expandafter\popmacro\csname\@mode@:\systemmodeprefix#1\endcsname \csname\@mode@\systemmodeprefix#1\endcsname\csname\@mode@:\systemmodeprefix#1\endcsname\relax \fi} to \def\popsystemmode#1% {\ifcsname\@mode@:\systemmodeprefix#1\endcsname \expandafter\popmacro\csname\@mode@:\systemmodeprefix#1\endcsname \csname\@mode@\systemmodeprefix#1\endcsname\csname\@mode@:\systemmodeprefix#1\endcsname\relax \fi} and regenerated the format (context --make) it compiles fine. 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] Project structure and modes
Thanks Wolfgang, but unfortunately for me it still does not work... Jaroslav Dne 13.11.2011 14:13, Wolfgang Schuster napsal(a): -\def\resetsystemmode#1% +\def\popsystemmode#1% {\ifcsname\@mode@:\systemmodeprefix#1\endcsname \expandafter\popmacro\csname\@mode@:\systemmodeprefix#1\endcsname \csname\@mode@\systemmodeprefix#1\endcsname\csname\@mode@:\systemmodeprefix#1\endcsname\relax \fi} ___ 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] Project structure and modes
Am 13.11.2011 um 13:36 schrieb Salil Sayed: > Hi, > > I get a similar error with a beta updated today. See below. core-env.mkiv (line 226): -\def\resetsystemmode#1% +\def\popsystemmode#1% {\ifcsname\@mode@:\systemmodeprefix#1\endcsname \expandafter\popmacro\csname\@mode@:\systemmodeprefix#1\endcsname \csname\@mode@\systemmodeprefix#1\endcsname\csname\@mode@:\systemmodeprefix#1\endcsname\relax \fi} 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] Project structure and modes
Hi, I get a similar error with a beta updated today. See below. BR, Salil ! Undefined control sequence. system > tex > error on line 1 in file project_manuscript.tex: Undefined control sequence ... 1 >> \startproject project_manuscript 2 3 \environment env_manuscript 4 5 \product manuscript 6 7 8 \stopproject 9 \stopcomponentindeed ->\popsystemmode \v!component \popreferenceprefix \stop... l.1 \stopcomponentindeed \ctxcommand ...\directlua \zerocount {commands.#1} \stopcomponent ->\ctxcommand {stopcomponent ()} \honorendofinput l.10 \stopcomponent ? From: Jaroslav Hajtmar To: Hans Hagen Cc: mailing list for ConTeXt users Sent: Sunday, November 13, 2011 12:06 PM Subject: Re: [NTG-context] Project structure and modes Hello Hans. Is it possible that I'm still not working? I just updated and always ends the same compilation error. My older projects do not compile. It can be a problem in anything else? When I ignore the error message, then finally generates a PDF file, but the first three rows in PDF file are listed keywords: project environment Thanx Jaroslav Here is error message: ctx drakiada_201110 mtx-context | run 1: luatex --fmt="C:/context/tex/texmf-cache/luatex-cache/c ontext/2448223e6631addb83df348d74153606/formats/cont-en" --lua="C:/context/tex/t exmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en .lui" --backend="pdf" "./drakiada_201110" \stoptext This is LuaTeX, Version beta-0.70.1-200321 (rev 4277) \write18 enabled. (drakiada_201110.tex ConTeXt ver: 2011.11.12 12:34 MKIV fmt: 2011.11.13 int: english/english system > cont-new.mkiv loaded (C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > drakiada_201110.top loaded (drakiada_201110.top) fonts > latin modern fonts are not preloaded languages > language en is active {C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) (C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (C:/context/tex/te xmf-context/tex/context/base/type-otf.mkiv) files > readfile > asked name: 'loc', not found {C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts /map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded (../obstastnik.tex (../t-obstastnik_env.mkiv loading > ConTeXt User Module / Noviny (C:/context/tex/texmf-context/tex/context/base/colo-imp-rgb.mkiv) colors > system rgb is loaded ) ! Undefined control sequence. system > tex > error on line 1 in file drakiada_201110.tex: Undefined c ontrol sequence ... 1 >> \startcomponent drakiada_201110 2 \product obst_201110 3 \project obstastnik 4 \environment obstastnik_env % nahrazeno volanim knihovny 5 \environment setcolorsii_env 6 \setuplayout[normalpage] % \setuplayout[width=fit, height=fit,backspace=1 0mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,leftmarg indistance=0mm,rightmargindistance=0mm\setuplayout[width=fit, height=fit,backspa ce=10mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,left margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes 7 8 %\setupinitial[hesloinitial][location=text,n=2,color=red,before=\unblank] %, distance=-1em, hoffset=1em, voffset=-3ex, before=\blank] 9 10 % \def\nadpisT{\hcolor\sst} 11 % \def\nadpisG{\hcolor\ssg} \stopprojectindeed ->\popsystemmode \v!project \stoptext \signalendofinput \... l.1 \stopprojectindeed \ctxcommand ...\directlua \zerocount {commands.#1} \stopproject ->\ctxcommand {stopproject ()} \honorendofinput l.22 \stopproject ? !^C EmergChcete ukončit dávkovou úlohu (A/N)? ency stop. system > tex > error on line 1 in file drakiada_201110.tex: Emergency s top ... 1 >> \startcomponent drakiada_201110 2 \product obst_201110 3 \project obstastnik 4 \environment obstastnik_env % nahrazeno volanim knihovny 5 \environment setcolorsii_env 6 \setuplayout[normalpage] % \setuplayout[width=fit, height=fit,backspace=1 0mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,leftmarg indistance=0mm,rightmargindistance=0mm\setuplayout[width=fit, height=fit,backspa ce=10mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,left margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes 7 8 %\setupinitial[hesloinitial][location=text,n=2,color=red,before=\unblank] %, distance=-1em, hoffset=1em, voffset=-3ex, before=\blank] 9 10 % \def\n
Re: [NTG-context] Migrating from old ConTeXt to new
Am 13.11.2011 um 12:23 schrieb Gerben Wierda: > Important for me is the use of Optima, which is now done in an environment > file. Will this still work? > >> […] With LuaTeX and XeTeX you can use the predefined typescript to use Optima. LuaTeX (context ): \usetypescriptfile[type-mac] \setupbodyfont[optima] \starttext \input zapf \stoptext XeTeX (“context --xetex ” or ”texexec --xtx ”): \usetypescriptfile[type-mac] \usetypescript[optima] \setupbodyfont[optima] \starttext \input zapf \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] Migrating from old ConTeXt to new
Hello folks, I have been putting this off for years, but I think somewhere the coming months I'll want to migrate from my current ConTeXt setup to the most recent one so that when I encounter typesetting/ConTeXt problems, I will be asking for solutions in the current actively maintained environments. When I compile a book project, it currently looks like this: > texexec --pdf --mode=editor ../products/prd_book.tex > MTXrun | kpse fallback with progname 'context' initialized in 0.047062 seconds > TeXExec | processing document '../products/prd_book.tex' > TeXExec | no ctx file found > TeXExec | tex processing method: context > TeXExec | TeX run 1 > TeXExec | writing option file prd_book.top > TeXExec | using randomseed 1038 > TeXExec | tex engine: pdftex > TeXExec | tex format: cont-en > This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010) > restricted \write18 enabled. > (/usr/local/texlive/2010/texmf/web2c/natural.tcx) > entering extended mode > (../products/prd_book.tex > > ConTeXt ver: 2010.05.24 13:05 MKII fmt: 2010.7.21 int: english/english As I understand, I need to setup a different way to run tex. (BTW, I'm going to migrate to MacTeX 2011 first) Important for me is the use of Optima, which is now done in an environment file. Will this still work? > % Bypassing type-gtamacfonts.tex > \starttypescript [sans,serif] [optima] [texnansi,ec] > \definefontsynonym [Optima-Regular] [\typescriptthree-OptimaRegular] > [encoding=\typescriptthree] > \definefontsynonym [Optima-Italic] [\typescriptthree-OptimaItalic] > [encoding=\typescriptthree] > \definefontsynonym [Optima-Bold] [\typescriptthree-OptimaBold] > [encoding=\typescriptthree] > \definefontsynonym [Optima-BoldItalic] [\typescriptthree-OptimaBoldItalic] > [encoding=\typescriptthree] > \definefontsynonym [Optima-ExtraBlack] [\typescriptthree-OptimaExtraBlack] > [encoding=\typescriptthree] > \stoptypescript > \starttypescript [sans,serif] [optima] [name] > \setups[font:fallback:\typescriptone] > \definefontsynonym [\typescriptprefix\typescriptone] [Optima-Regular] > \definefontsynonym [\typescriptprefix\typescriptone Italic] [Optima-Italic] > \definefontsynonym [\typescriptprefix\typescriptone Bold] [Optima-Bold] > \definefontsynonym [\typescriptprefix\typescriptone BoldItalic] > [Optima-BoldItalic] > \definefontsynonym [\typescriptprefix\typescriptone Black] [Optima-ExtraBlack] > \stoptypescript > \definetypeface[allsans][rm][serif][optima][default][encoding=texnansi] > \definetypeface[allsans][ss][sans][optima][default][encoding=texnansi] > \loadmapfile [gtamacfonts.map] > \setupbodyfont[allsans,12pt] Yours, G ___ 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] margin notes at page breaks
Hi Hans, sorry to bother you again with this. I just had a look again on this issue with 2012 12:34 MkIV. In the first part of your example, I see the three stacked footnotes and the first lines of the paragraph moved to the next page. In your second example I get the three notes stacked on the first page, one being in the bottom margin, and the paragraph properly wrapped, with two lines on the first page. This seems to be correct. Unfortunately I don't understand how this should help me with my (now updated) previous example: \starttext \dorecurse{4}{\input knuth} \blank[2*line] \inmargin[stack=yes]{This note ends up in the bottom margin} \input tufte \stoptext It still looks the same. Does the stacking only influence the behaviour of (the breaking between) multiple margin notes? Thank you for looking into this. Best regards, Stefan On 02.11.2011 17:34, Hans Hagen wrote: On 31-10-2011 13:57, Stefan Müller wrote: Hi list! In my document I have some margin notes that appear right before a page break and so end up in the bottom margin, see the following example. \starttext \dorecurse{4}{\input knuth} \blank[2*line] \inmargin{This note ends up in the bottom margin} %\margintext{This note ends up in the bottom margin} \input tufte \stoptext Is it possible to automatically move the margin note in those cases to the next page? I had a look at the manual where the issue is addressed. As I understood it "\margintext{...}" should be able to handle this, but it did not change anything in my example. In the garden I found "\setupinmargin[stack=yes]" but this didn't help either. This seems not to hard, but I can't find a way to fix it... it's not supported in the current code but the next beta will have : starttext \dorecurse{4}{\input knuth} \blank[2*line] \dorecurse{3}{\inmargin[stack=yes]{note}} \input tufte \page \dorecurse{4}{\input knuth} \blank[2*line] \dorecurse{3}{\inmargin[stack=yes,bottomspace=10cm]{note}} \input tufte \stoptext with bottomspace one can set the threshold Hans ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] feature request
Hi Idris, Am 11.11.2011 um 19:47 schrieb Idris Samawi Hamid ادريس سماوي حامد: > On Fri, 11 Nov 2011 08:34:28 -0700, Steffen Wolfrum > wrote: > >> quite often I wish we could have a kind of in line comment: >> Something like ¿this is my comment¡ this. > > I think the mechanism for fancy in-line comments is already there, developed > one-or-two years ago as we were working on some critical-edition-related > stuff ... > > I saw the other answers: Could you elaborate more about exactly what you're > looking for, just in case their suggestions don't quite hit the spot? I am looking for the same functionality as the traditional TeX comment (starting with %), but used in-line not only after a paragraph. This means, it is only meant for writing/reading comments in the source. And its presence must not affect the typeset file, eg. the resulting PDF, in any respect, of course! Is the mechanism you mention best suited for that purpose? Steffen ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] (long) footnotes in column sets messed up
Hi again, I tried MkIV 2012 12:34 now and added "\setupfootnotes[location=columns]", trying also all other values listed in [1], at the beginning of my example below. They don't seem to do something that looks as if it is intended behaviour. The only thing I can do by now is using \setupfootnotes[location=text] together with \placefootnotes after \stopcolumnset, but I don't like that very much in my current document. I also note that, whichever method I use to place the footnotes, the number always ends up in the first column, never in the second (even with \placefootnotes between \start...\stopcolumnset). I hope someone can give me some insight here. Thanks in advance and best regards, Stefan [1] http://wiki.contextgarden.net/Reference/en/setupfootnotes On 31.10.2011 17:53, Stefan Müller wrote: Hi folks, please consider the following example. \starttext \startcolumnset[n=2] \dorecurse{4}{\input knuth\footnote{Some footnote which is not wrapped correctly and has a bad number}} \stoptext The footnotes are very messed-up (overlapping, numbers all in left column). Is there a better way to place such footnotes in column sets? Am I doing something wrong? I'm using 20111028 22:32 MKIV. Thank you very much in advance! Stefan ___ 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] Project structure and modes
Hello Hans. Is it possible that I'm still not working? I just updated and always ends the same compilation error. My older projects do not compile. It can be a problem in anything else? When I ignore the error message, then finally generates a PDF file, but the first three rows in PDF file are listed keywords: project environment Thanx Jaroslav Here is error message: ctx drakiada_201110 mtx-context | run 1: luatex --fmt="C:/context/tex/texmf-cache/luatex-cache/c ontext/2448223e6631addb83df348d74153606/formats/cont-en" --lua="C:/context/tex/t exmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en .lui" --backend="pdf" "./drakiada_201110" \stoptext This is LuaTeX, Version beta-0.70.1-200321 (rev 4277) \write18 enabled. (drakiada_201110.tex ConTeXt ver: 2011.11.12 12:34 MKIV fmt: 2011.11.13 int: english/english system > cont-new.mkiv loaded (C:/context/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > drakiada_201110.top loaded (drakiada_201110.top) fonts > latin modern fonts are not preloaded languages > language en is active {C:/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) (C:/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (C:/context/tex/te xmf-context/tex/context/base/type-otf.mkiv) files > readfile > asked name: 'loc', not found {C:/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{C:/context/tex/texmf/fonts /map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded (../obstastnik.tex (../t-obstastnik_env.mkiv loading > ConTeXt User Module / Noviny (C:/context/tex/texmf-context/tex/context/base/colo-imp-rgb.mkiv) colors > system rgb is loaded ) ! Undefined control sequence. system > tex > error on line 1 in file drakiada_201110.tex: Undefined c ontrol sequence ... 1 >> \startcomponent drakiada_201110 2 \product obst_201110 3 \project obstastnik 4 \environment obstastnik_env % nahrazeno volanim knihovny 5 \environment setcolorsii_env 6 \setuplayout[normalpage] % \setuplayout[width=fit, height=fit,backspace=1 0mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,leftmarg indistance=0mm,rightmargindistance=0mm\setuplayout[width=fit, height=fit,backspa ce=10mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,left margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes 7 8 %\setupinitial[hesloinitial][location=text,n=2,color=red,before=\unblank] %, distance=-1em, hoffset=1em, voffset=-3ex, before=\blank] 9 10 % \def\nadpisT{\hcolor\sst} 11 % \def\nadpisG{\hcolor\ssg} \stopprojectindeed ->\popsystemmode \v!project \stoptext \signalendofinput \... l.1 \stopprojectindeed \ctxcommand ...\directlua \zerocount {commands.#1} \stopproject ->\ctxcommand {stopproject ()} \honorendofinput l.22 \stopproject ? !^C EmergChcete ukončit dávkovou úlohu (A/N)? ency stop. system > tex > error on line 1 in file drakiada_201110.tex: Emergency s top ... 1 >> \startcomponent drakiada_201110 2 \product obst_201110 3 \project obstastnik 4 \environment obstastnik_env % nahrazeno volanim knihovny 5 \environment setcolorsii_env 6 \setuplayout[normalpage] % \setuplayout[width=fit, height=fit,backspace=1 0mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,leftmarg indistance=0mm,rightmargindistance=0mm\setuplayout[width=fit, height=fit,backspa ce=10mm, topspace=0mm, header=1cm, footer=10mm,bottom=5mm, rightmargin=10mm,left margindistance=0mm,rightmargindistance=0mm] %,grid=yes] %,grid=yes 7 8 %\setupinitial[hesloinitial][location=text,n=2,color=red,before=\unblank] %, distance=-1em, hoffset=1em, voffset=-3ex, before=\blank] 9 10 % \def\nadpisT{\hcolor\sst} 11 % \def\nadpisG{\hcolor\ssg} \stopprojectindeed ->\popsystemmode \v!project \stoptext \signalendofinput \... l.1 \stopprojectindeed \ctxcommand ...\directlua \zerocount {commands.#1} \stopproject ->\ctxcommand {stopproject ()} \honorendofinput l.22 \stopproject ! ==> Fatal error occurred, no output PDF file produced!^ Dne 12.11.2011 13:59, Hans Hagen napsal(a): On 12-11-2011 13:55, Jaroslav Hajtmar wrote: OK... thanx I'm sorry to bother you., but give the corrected version to download soon? I am not working at the moment the project. normally the garden syncs on the (half) hour 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
[NTG-context] missing --delete flags in mtx-update.lua
Hello, When running first-setup.sh, some of the rsync commands are missing the --delete flag: /opt/context/tex/texmf-context: ok /opt/context/tex/texmf-linux-64: no --delete flag /opt/context/tex/texmf: ok /opt/context/tex/texmf-modules: no --delete flag -- 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 ___