[NTG-context] Difference in whitespace around section head from mkII to mkIV
hi all, i'm experiencing some unwanted whitespace related to a section head. the whitespace is present when using lua (texexec --lua funk.tex) and absent when using mkII (texexec funk.tex). i've confirmed the correct mkII behaviour on the garden's live tool, and my own minimals installation: This is LuaTeX, Version beta-0.60.1-2010050621 (rev 3678) \write18 enabled. (funk.tex ConTeXt ver: 2010.05.13 12:15 MKIV fmt: 2010.5.21 int: english/english if you run the document below on mkII, you'll see that the first text on each slide is right up against the top of the text area. this is good. if you use my version of luatex, a line is skipped. why the difference? i'm not actually using anything lua (i've just started using Context in the past weeks, and i've got a conference presentation due in 3 days, so i've got weird habits. i'm just now getting my head around the copious amounts of documentation for the system, and all the differences between context, luatex, pdftex, mkII, mkIV, and all the other new terms), so i'll probably just "texexec funk.tex" as a workaround. /however/, when i get some free time, i'll be playing with lua, and i'd like it to work right. i've been a latex user since my undergrad a couple of years ago, and i just found metapost maybe one month ago. what an eye opener! i love programming and i love making dorky little vector images... it's the perfect marriage! maybe somebody bright can shed some light on this? thanks everybody, adam % author: adam fuller % date: 24/5/2010 % description: why does placehead=no,page=yes in \definehead push % the first line of a slide down by one? when a slide is too long % and breaks to another page, that page starts right up at the top, % without the annoying extra whitespace. trying to unravel it. \setupheadertexts[myslide][] \setupheader[state=start] \setuppagenumbering[state=stop] \definehead[myslide][subsubsection] \setuphead[myslide][style=slanted,placehead=no,page=yes] \definestartstop[slide][ before={\page\startalignment[right,nothyphenated,hanging]\tf}, after={\stopalignment}] \starttext \showframe[text]% \showframe[header]% \myslide{}% \midaligned\framed[location=middle,align=center,offset=none,frame=off]{ %\blank[2*big,force] {\bfa Adam Fuller} \blank[1*big,force] {\em from} \blank[1*big,force] {\bfa U. Canterbury} \blank[1*big,force] {\em talks about} \blank[1*big,force] {\bfa Adapting simplified propeller turbines to higher specific speeds: CFD studies} \blank[1*big,force] {\em at} \blank[1*big,force] {\bfa Hidroenergia 2010} } \page% \myslide{Where I start from}% My Ph.D. research has been to increase the specific speed ($N_S$), starting with an existing range, while maintaining a turbine efficiency of 70\%. By \em{adapting}, I mean taking an existing design \em{philosophy} to a new design \em{point}. This \em{philosophy} is just a list of rules that reflect the turbines' intended use: \startitemize \item no guide vanes \item run at 1500~rev/min only \item use flat blades \stopitemize \myslide{New design point, new challenges} The paper discusses how increasing the specific speed may impact on the design of such a turbine's three main components. The adapted version of each component brings its own challenges. At higher $N_S$ \startitemize \item draft tube performance is increasingly important. How sensitive is its performance to the inputs in this particular case? \item velocity triangles at the runner's leading and trailing edge become less forgiving to uncertainty (dimensional and fluid dynamical) \item the volute's priority changes from \quote{provide swirl $x$} to \quote{provide uniform axial flow at mimimum loss}. How must the design change? \stopitemize \myslide{For this presentation} To illuminate these three points, I worked up a CFD study related to each component. To summarize the studies: \startitemize \item Draft tube: $C_p = f({\rm swirl}, \theta)$. What is $f$? I'll try to put my result in the context of the literature. \item Runner: from the desktop-design stage, the ratios \startformula \omega r:V_a:\Delta V_t\approx 8:4:1, \stopformula are expected to cause problems with sensitivity of output and efficiency to speed. I'll talk about how my CFD results suprised me. \item Volute: Trying to reconcile the need for predictable axial runner inlet flow, low loss, and no flow-spanning vanes or struts has led to an adaptation of previous Giddens volutes. I'll talk about the changes that were made, and show that the new volute looks to meet the requirements. \stopitemize \stoptext <>___ If your question is of interest to others as well, please add an ent
[NTG-context] Frontmatter page numbers and using ifodd / pageno
With the page layout setups I'm using, the first table of contents entry on each page (except for the first page) is formatted as if it were on the preceding page. I assume that the page number is not advancing until some number of objects are placed on the page. When I compiled the example included below, it was the first three entries on each page (after the first page) that were formatted as if they were on the previous page. Related to this, I need "invisible" page numbers on the table of contents pages to enable different formatting by odd/even page number (which I accomplish now by using \phantom as a style command for page numbering), but I'd like for the page numbering of the body matter to start at 1. Also, how can I number the front matter backward? Like: xi, x, ix, viii, vii, vi, v, iv, iii, ii, i. \def\SectionListEntry#1#2#3% { \noindent \noexpand{\ifodd\pageno \simplealignedbox{left}{.63667\textwidth}{#2} \simplealignedbox{middle}{.06\textwidth}{·} \simplealignedbox{right}{.30333\textwidth}{#3} \else \simplealignedbox{left}{.30333\textwidth}{#3} \simplealignedbox{middle}{.06\textwidth}{·} \simplealignedbox{right}{.63667\textwidth}{#2} \fi} \par\blank } \setuplist[section] [alternative=command, command=\SectionListEntry] \def\TableOfContents% { \page[empty] \page[odd] \setuppagenumbering[style=command, command=\phantom] \setuppagenumber[state=start] \placelist[section] \setuppagenumber[state=stop] \page[empty] \page[odd] } \startfrontmatter \TableOfContents \stopfrontmatter \startbodymatter \setuppagenumber[state=start] \dorecurse{45}{\section{Section title}\input tufte} \stopbodymatter Thanks, Scott - This is a work of fiction. Names, characters, places, and incidents either are the product of the writer's imagination or are used fictitiously, and any resemblance to actual persons, living or dead, businesses, companies, events, or locales is entirely coïncidental. ___ 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] Title page layout
I'm trying to anchor a table or box containing my title and subtitle to the bottom right corner of the textblock (on a title page). The following comes very close to doing what I want, but there is still some vertical space between the bottom of the text of the subtitle and the last major horizontal gridline. How can I have the subtitle text be (above and) flush with the last major horizontal gridline in the same way that it is flush with the rightmost vertical gridline? NOTE: Small adjustments to the example I provide might not be helpful for me since, in actuality, I'm using Adobe Jenson, which makes both the metrics and the expression of the problem slightly different. Also, are there max/min functions for dealing with dimexpr's? %\definetypeface[jenson][rm][Xserif][Adobe Jenson Pro] %\setupbodyfont[jenson, 11pt] \definepapersize[pocket][width=4.25in, height=6.875in] \setuppapersize[pocket][pocket] \setuplayout[location=middle, width=0.815\paperwidth, rightmargindistance=0in, leftmargindistance=0in, height=middle, margin=0.08\paperwidth, backspace=0.115\paperwidth, marking=off, grid=yes, topspace=0.018889\paperheight, header=0.04\paperheight, footer=0.04\paperheight, bottomspace=0.038889\paperheight] \setuppagenumbering[alternative=doublesided, location={footer,marginedge}] \def\givewidthof#1\to#2% { \bgroup \setbox\scratchbox\hbox{#1}% \expanded{\egroup\def\noexpand#2{\the\wd\scratchbox}} } % From a response by Hans to a mailing list question. It was originally \setwidthof#1\to#2, which—in English at least—sounds somewhat ambiguous with regard to which variable is providing a width. \def\TitlePage#1#2% { \givewidthof{\scc #2}\to\SubtitleWidth \newdimen\TitlePageVar \TitlePageVar=\dimexpr(\textwidth-\SubtitleWidth) \dontleavehmode\vfill \starttable[s(0pt)|lw(\TitlePageVar)|cw(\SubtitleWidth)|] \NC\NC{\scd #1}\AR \NC\NC{\scc #2} \stoptable \page } \showgrid \startfrontmatter \TitlePage{Title}{Longer Subtitle} \stopfrontmatter Thanks, Scott - This is a work of fiction. Names, characters, places, and incidents either are the product of the writer's imagination or are used fictitiously, and any resemblance to actual persons, living or dead, businesses, companies, events, or locales is entirely coïncidental. ___ 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] Multiple pleas for help (long)
If anyone has any insight on how to keep the footnotes from having their numbers in the margin and from having line-breaks after each one, that is the only issue from the original email that is still unsolved, I think. ——— In Latex, \fancybreak was part of a package called, I believe, fancyheader or fancypage. It produced a break frequently seen in published prose (I'm currently reading {\em Bluebeard} where Kurt Vonnegut uses it liberally) with significant vertical space between two paragraphs and, centered both in that vertical space as well as horizontally, a number of well-spaced marks. There are usually 3 marks, and they are frequently asterisks or traditional dingbats/fleurons. This sort of break is generally used when the author wishes to indicate a break more significant than a change in paragraph but short of an outright new chapter. \def\FancyBreak{\par\blank\hfill* * *\hfill\hfill\par\blank} \starttext \input tufte \FancyBreak \input tufte \stoptext I don't understand why I need the two consecutive \hfill's at the end for the marks to be centered, but the definition works well for me. ——— Thanks, Wolfgang, for your help with the emoticons—they work now. \useexternalfigure[frowny][Frowny][factor=8,type=pdf] \def\Frowny{\dontleavehmode\smash[h]{\externalfigure[frowny]}} Also, thanks for the \simplealignedbox, which works very well in my table of contents (although I have to put a \par at the end of it or it stays on one line and goes off the page). I don't understand why, but Tex didn't like having a \par inside the type of definition you used, but it allowed the following: \def\SectionListEntry#1#2#3% { \noindent \simplealignedbox{left}{2cm}{#2}% \simplealignedbox{middle}{5mm}{·}% \simplealignedbox{right}{3cm}{#3}% \par } (I have a few issues with my table of contents, but these are now less specific to \placelist, so I'm including them in a different posting.) Thanks again for all the help, Scott - This is a work of fiction. Names, characters, places, and incidents either are the product of the writer's imagination or are used fictitiously, and any resemblance to actual persons, living or dead, businesses, companies, events, or locales is entirely coïncidental. ___ 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] Strange expansion behavior in XML/luatex
On 29-5-2010 12:01, Martin Kolařík wrote: I do not know, if it is a bug or a feature :-); but notwithstanding the fact, similar code I used in MkII worked very well. effectively you as for: \starttext \edef\content{\processaction[x][something=>A thing, nothing=>Hic sunt leones]} \stoptext and that will not work; ok, we could make processaction unexpandable but i'm sure that you want something different you can save the content this way: \edef\content{#1} and do this later on: \xmlflush{\content} 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] Syllabus title page (newbie problems)
Hello, Maybe my previous mail was puzzled, let me put it simple. How to achieve this, using \fillinrules or other command "" 20__ ? Vyatcheslav ___ 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] luatools not finding files in TL 2010
Hans Hagen wrote: On 31-5-2010 8:12, Taco Hoekwater wrote: And here is why: luatools is using TEXMFSCRIPTS as search path because of the .lua extension and (quite predictably) TEXMFSCRIPTS does not contain the TEXINPUTS directories in TeX Live (nor should it, I think). puzzles me as on my machine it only uses that when no LUAINPUTS is defined That is the core of the problem: on linux, the current luatools ignores LUAINPUTS. More email in private as it gets very technical. 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] luatools not finding files in TL 2010
On 31-5-2010 8:12, Taco Hoekwater wrote: And here is why: luatools is using TEXMFSCRIPTS as search path because of the .lua extension and (quite predictably) TEXMFSCRIPTS does not contain the TEXINPUTS directories in TeX Live (nor should it, I think). puzzles me as on my machine it only uses that when no LUAINPUTS is defined It would be much better if luatools used LUAINPUTS for .lua files, but it may be too late for fixing luatools. We can probably convince Karl to add this to web2c/texmf.cnf: TEXMFSCRIPTS.context=.;$TEXMF/scripts/{$progname,$engine,}//;$TEXINPUTS sure 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] luatools not finding files in TL 2010
On 31-5-2010 7:05, Mojca Miklavec wrote: Hans, if I run mtxrun --script patterns --convert on TeX Live 2010 it stops working with cannot open : No such file or directory hm, i generate them using explicit path (call mentioned at the bottom of mtx-patterns as i don't want to depend on tex live ... lessons from the past have taught me to keep an eye on it not sure where the message comes from .. do they ship the same mtxrun as context does? (i.e. we use different stubs than the other tex things) #1 feature request: it would be nice to have a slightly more informative feedback The problem appears in the following line: function scripts.patterns.prepare() dofile(resolvers.find_file("char-def.lua")) end inside mtx-patterns.lua since apparently luatools doesn't find char-def.lua it does here and in my minimals so what fails in tl? i have LUAINPUTS = .;$CTXDEVLUPATH;$TEXINPUTS;$TEXMF/scripts/context/lua// luatools char-def.lua [no response] kpsewhich char-def.lua /Users/mojca/soft/texlive/2010/texmf-dist/tex/context/base/char-def.lua [kpsewhich finds the file] In ConTeXt minimals this works fine. #2 bugfix request: any idea why it fails or how to fix it? well, i don't have tex live installed as i switched to the minimals ... so now you want me to go back in time? 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] referenceformat MkIV
taco wrote: > > Hi, > Yury G. Kudryashov wrote: >>> It seems that \ineq doesn't clear some variables, and the next \in uses >>> the previous format. >> Please, apply the attached patch upstream. It fixed the problem for me. > This problem was already fixed in the latest (internal?) beta. I shall test once this beta will be published. >> Another problem fixed by my patch: >> >> \definereferenceformat[ineq][text=equation] >> \starttext >> \placeformula[first] >> \startformula 1=1\stopformula >> \ineq[first] >> \stoptext >> printed "1", not "equation 1". > > This problem is still there and needs fixing, but I think your patch > has a bug (possibly because of the already done other bugfix). > > After patching, I think \doinatreferenceone should look like > this: > > \def\doinatreferenceone >{\ifx\next\bgroup > \afterassignment\doinatreferenceonetwo > \expandafter\leftreferencetoks > \else\ifx\textofreference\empty > \leftreferencetoks\emptytoks > \expandafter\expandafter\expandafter\dodoinatreferencenone > \else > \leftreferencetoks{\textofreference}% > \expandafter\expandafter\expandafter\doinatreferenceonetwo > \fi\fi} With published beta, I didn't need these \expandafter, but probably I missed some corner case, or they're needed with your internal fix. ___ 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] referenceformat MkIV
Hi, Yury G. Kudryashov wrote: It seems that \ineq doesn't clear some variables, and the next \in uses the previous format. Please, apply the attached patch upstream. It fixed the problem for me. This problem was already fixed in the latest (internal?) beta. Another problem fixed by my patch: \definereferenceformat[ineq][text=equation] \starttext \placeformula[first] \startformula 1=1\stopformula \ineq[first] \stoptext printed "1", not "equation 1". This problem is still there and needs fixing, but I think your patch has a bug (possibly because of the already done other bugfix). After patching, I think \doinatreferenceone should look like this: \def\doinatreferenceone {\ifx\next\bgroup \afterassignment\doinatreferenceonetwo \expandafter\leftreferencetoks \else\ifx\textofreference\empty \leftreferencetoks\emptytoks \expandafter\expandafter\expandafter\dodoinatreferencenone \else \leftreferencetoks{\textofreference}% \expandafter\expandafter\expandafter\doinatreferenceonetwo \fi\fi} 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] referenceformat MkIV
Yury G. Kudryashov wrote: > Hi! > > I try the following: > > \definereferenceformat[ineq][left=(,right=),text=Equation] > \starttext > \placeformula[first] > \startformula > 2=2 > \stopformula > In \in[first] ineq \ineq[first] in \in[first]. > \stoptext > > The result is: > 2 = 2 (1) > In 1 ineq (1) in (1). > > It seems that \ineq doesn't clear some variables, and the next \in uses > the previous format. Please, apply the attached patch upstream. It fixed the problem for me. Another problem fixed by my patch: \definereferenceformat[ineq][text=equation] \starttext \placeformula[first] \startformula 1=1\stopformula \ineq[first] \stoptext printed "1", not "equation 1".--- a/tex/texmf-context/tex/context/base/strc-ref.mkiv 2010-05-21 15:44:04.0 +0400 +++ b/tex/texmf-context/tex/context/base/strc-ref.mkiv 2010-05-31 22:18:38.0 +0400 @@ -983,10 +983,13 @@ {\ifx\next\bgroup \afterassignment\doinatreferenceonetwo \expandafter\leftreferencetoks - \else + \else\ifx\textofreference\empty \leftreferencetoks\emptytoks \expandafter\dodoinatreferencenone - \fi} + \else + \leftreferencetoks{\textofreference}% + \expandafter\doinatreferenceonetwo + \fi\fi} \def\doinatreferenceonetwo {\futurelet\next\doinatreferencetwo} @@ -1022,7 +1025,11 @@ \doifreferencefoundelse{#4} {\doifelsenothing{#1}\dosymbolreference\dowantedreference{#1}{#2}[#4]}% {\dounknownreference{#1}{#2}[#4]}% - \endgroup} + \endgroup% + \global\let\leftofreference\relax + \global\let\rightofreference\relax + \global\let\textofreference\empty + } \let\dosymbolreference\dowantedreference ___ 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] luatools not finding files in TL 2010
Mojca Miklavec wrote: On Mon, May 31, 2010 at 19:36, Aditya Mahajan wrote: As an experiment, does it work if you explicitly enter $TEXMF/tex/context// to LUAINPUTS. No. But maybe it's just my installation. Can anyone else try to test the new TL? Taco? Does luatools char-def.lua return anything on your installation? Same problem you have: it doesn't find it. And here is why: luatools is using TEXMFSCRIPTS as search path because of the .lua extension and (quite predictably) TEXMFSCRIPTS does not contain the TEXINPUTS directories in TeX Live (nor should it, I think). It would be much better if luatools used LUAINPUTS for .lua files, but it may be too late for fixing luatools. We can probably convince Karl to add this to web2c/texmf.cnf: TEXMFSCRIPTS.context=.;$TEXMF/scripts/{$progname,$engine,}//;$TEXINPUTS with that addition, and after --generate: [t...@ntg tmp]$ luatools char-def.lua /home/taco/texlive/2010/texmf-dist/tex/context/base/char-def.lua all is well again. 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] luatools not finding files in TL 2010
On Mon, May 31, 2010 at 20:03, Mojca Miklavec wrote: > On Mon, May 31, 2010 at 19:36, Aditya Mahajan wrote: >> >> As an experiment, does it work if you explicitly enter $TEXMF/tex/context// >> to LUAINPUTS. > > No. > > But maybe it's just my installation. Can anyone else try to test the > new TL? Taco? Does > luatools char-def.lua > return anything on your installation? If I ask on the TL mailing list, the sole answer will be "it works with kpathsea, so the texmf.cnf configuration must be right". One thing that I don't understand: the ConTeXt format does generate. I have no idea why only this fails. 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] luatools not finding files in TL 2010
On Mon, May 31, 2010 at 19:36, Aditya Mahajan wrote: > > As an experiment, does it work if you explicitly enter $TEXMF/tex/context// > to LUAINPUTS. No. But maybe it's just my installation. Can anyone else try to test the new TL? Taco? Does luatools char-def.lua return anything on your installation? 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] luatools not finding files in TL 2010
On Mon, 31 May 2010, Mojca Miklavec wrote: On Mon, May 31, 2010 at 19:19, Aditya Mahajan wrote: On Mon, 31 May 2010, Mojca Miklavec wrote: On Mon, May 31, 2010 at 19:08, Aditya Mahajan wrote: Did you run luatools --generate? What is the value of $TEXMFCACHE? Is it writable by the user? Yes, I did. The cache is written to ~/.texlive2010/texmf-var/luatex-cache/. It seems that only *.lua files in base folder aren't found with luatools (and maybe some others?) The lua files in scripts/context/lua/ are found without a problem. Isn't there a variable for that? $LUASCRIPTS or $LUAINPUTS LUAINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXINPUTS with TEXINPUTS being an extremely long & complicated list that maybe luatools fails to interpret in the same way as kpathsea: As an experiment, does it work if you explicitly enter $TEXMF/tex/context// to LUAINPUTS. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatools not finding files in TL 2010
On Mon, May 31, 2010 at 19:19, Aditya Mahajan wrote: > On Mon, 31 May 2010, Mojca Miklavec wrote: > >> On Mon, May 31, 2010 at 19:08, Aditya Mahajan wrote: >>> >>> Did you run luatools --generate? What is the value of $TEXMFCACHE? Is it >>> writable by the user? >> >> Yes, I did. The cache is written to >> ~/.texlive2010/texmf-var/luatex-cache/. >> >> It seems that only *.lua files in base folder aren't found with >> luatools (and maybe some others?) The lua files in >> scripts/context/lua/ are found without a problem. > > Isn't there a variable for that? $LUASCRIPTS or $LUAINPUTS LUAINPUTS = .;$TEXMF/scripts/{$progname,$engine,}/{lua,}//;$TEXINPUTS with TEXINPUTS being an extremely long & complicated list that maybe luatools fails to interpret in the same way as kpathsea: [many many lines] TEXINPUTS.context = .;$TEXMF/tex/{context,plain,generic,}// % Earlier entries override later ones, so put this generic one last. TEXINPUTS = .;$TEXMF/tex/{$progname,generic,}// 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] luatools not finding files in TL 2010
On Mon, 31 May 2010, Mojca Miklavec wrote: On Mon, May 31, 2010 at 19:08, Aditya Mahajan wrote: Did you run luatools --generate? What is the value of $TEXMFCACHE? Is it writable by the user? Yes, I did. The cache is written to ~/.texlive2010/texmf-var/luatex-cache/. It seems that only *.lua files in base folder aren't found with luatools (and maybe some others?) The lua files in scripts/context/lua/ are found without a problem. Isn't there a variable for that? $LUASCRIPTS or $LUAINPUTS Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luatools not finding files in TL 2010
On Mon, May 31, 2010 at 19:08, Aditya Mahajan wrote: > > Did you run luatools --generate? What is the value of $TEXMFCACHE? Is it > writable by the user? Yes, I did. The cache is written to ~/.texlive2010/texmf-var/luatex-cache/. It seems that only *.lua files in base folder aren't found with luatools (and maybe some others?) The lua files in scripts/context/lua/ are found without a problem. 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] luatools not finding files in TL 2010
On Mon, 31 May 2010, Mojca Miklavec wrote: Hans, if I run mtxrun --script patterns --convert on TeX Live 2010 it stops working with cannot open : No such file or directory #1 feature request: it would be nice to have a slightly more informative feedback The problem appears in the following line: function scripts.patterns.prepare() dofile(resolvers.find_file("char-def.lua")) end inside mtx-patterns.lua since apparently luatools doesn't find char-def.lua luatools char-def.lua [no response] kpsewhich char-def.lua /Users/mojca/soft/texlive/2010/texmf-dist/tex/context/base/char-def.lua [kpsewhich finds the file] In ConTeXt minimals this works fine. #2 bugfix request: any idea why it fails or how to fix it? Did you run luatools --generate? What is the value of $TEXMFCACHE? Is it writable by the user? Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] luatools not finding files in TL 2010
Hans, if I run mtxrun --script patterns --convert on TeX Live 2010 it stops working with cannot open : No such file or directory #1 feature request: it would be nice to have a slightly more informative feedback The problem appears in the following line: function scripts.patterns.prepare() dofile(resolvers.find_file("char-def.lua")) end inside mtx-patterns.lua since apparently luatools doesn't find char-def.lua > luatools char-def.lua [no response] > kpsewhich char-def.lua /Users/mojca/soft/texlive/2010/texmf-dist/tex/context/base/char-def.lua [kpsewhich finds the file] In ConTeXt minimals this works fine. #2 bugfix request: any idea why it fails or how to fix it? Thanks a lot, 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] Windows Minimals installer is broken -- mtxrun does not, work
On Mon, May 31, 2010 at 17:36, Vyatcheslav Yatskovsky wrote: > For me, it looks rather like a bug, not a feature :) > > In the installer, I need to setup PATH variable before executing the real > script, and this thing bothers me. Hasn't the problem been fixed yet? (I admit that I have not tested yet.) 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] Windows Minimals installer is broken -- mtxrun does not, work
For me, it looks rather like a bug, not a feature :) In the installer, I need to setup PATH variable before executing the real script, and this thing bothers me. -- Best Regards, Vyatcheslav Yatskovsky ___ 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] Algorithmic (was: stelinterliniein)
Attached is my test file where I used examples from the algorithmic package for LaTeX. Wolfgang Thanks, could be handy. I wish this test file was added to extras along with the module. -- Best Regards, Vyatcheslav Yatskovsky ___ 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] Syllabus title page (newbie problems)
Hi, I'm making my syllabus title page with standard "bureaucratic" elements, like signature stamps, etc. Please, look at the attached png file for idea how it should look like. I started new page using \startstandardmakeup, which centered the text too. But I have problems with signature: how to reset the alignment to left, and, more important, how to place two \fillinrules in one line of text ("_day_"_month_ year)? Now my script looks as follows: --- \setupbodyfont[mscore,rm,14pt] \usemodule[fullpage][style={cm,headings}] \starttext \startstandardmakeup[doublesided=no,align=center,style={\switchtobodyfont[ss,18pt]}] \setupbackgrounds[header][text][background=] \setupindenting[none] \setupinterlinespace[28pt] % \let\\=\blank {\bf NATIONAL AVIATION UNIVERSITY} INSTITUTE OF ELECTRONICS AND CONTROL SYSTEMS Airspace control systems faculty Aviation computer-integrated complexes department \startstandardmakeup[align=left] %is there better command for this? \setupnarrower[left=12cm] \startnarrower[left] "Approved" Deputy Rector for Academics \fillinrules[]{}{A.Polukhin} \fillinrules{"}{"}\fillinrules[]{}{\currentdate[year]}\par %have problem here: need to keep two rules on one line \stopnarrower \stopstandardmakeup \par\vfill {\tfx Kiyv \currentdate[year]} \stopstandardmakeup \stoptext -- Best Regards, Vyatcheslav Yatskovsky <>___ 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] Algorithmic (was: stelinterliniein)
Am 31.05.10 15:42, schrieb Vyatcheslav Yatskovsky: Hi, Wolfgang I would be nice to see what your Algorithms package can do ;) I mean example PDF. Attached is my test file where I used examples from the algorithmic package for LaTeX. Wolfgang algorithmic-test.tex Description: TeX document t-algorithmic.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] stelinterliniein
Hi, Wolfgang I would be nice to see what your Algorithms package can do ;) I mean example PDF. Regards, Vyatcheslav ___ 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] Windows Minimals installer is broken -- mtxrun does not work
Mojca Miklavec wrote: Moreover, mtxrun.exe is not working at all, complaining "mtxrun: unable to locate texlua.exe on the search path", while texlua.exe is present in the same folder! Confirmed. mtxrun.exe doesn't find texlua.exe when it's in the same folder. Hans - is there a way to fix that? I would call that a (security) feature. If the current folder is not in the search path, it should not be possible for executables to be executed from it unless by the user him/herself. 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] Windows Minimals installer is broken -- mtxrun does not work
On Sun, May 30, 2010 at 19:36, Vyatcheslav Yatskovsky wrote: > Hello everybody and esp. Mojca, > > I started updating my Windows installer code to include "--extras" switch. > Unfortunately, I found that mtxrun.cmd does not exist anymore and is > replaced by mtxrun.exe. It seems to work after fixing that (replacing call mtxrun.cmd with mtxrun.exe). > Moreover, mtxrun.exe is not working at all, > complaining "mtxrun: unable to locate texlua.exe on the search path", while > texlua.exe is present in the same folder! Confirmed. mtxrun.exe doesn't find texlua.exe when it's in the same folder. Hans - is there a way to fix that? 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] LuaTeX error ... object in use
On 30-5-2010 11:24, Michael Saunders wrote: \definefontfeature[body][default][script=latn,onum=yes,pnum=yes,calt=yes,protrusion=quality,expansion=quality] \definefontfeature[in][body][sinf=yes]%inferior \definefontfeature[su][body][sups=yes,ordn=yes]%superior \definefontfeature[nu][body][numr=yes]%numerator \definefontfeature[de][body][dnom=yes]%denominator in {\addff{in}123} su {\addff{su}123} nu {\addff{nu}123} de {\addff{de}123} produces only proportional oldstyle figures. i have a fix for it but first idris has to do some testing with his fonts as this mechanism was primarily made for very complex setups and i want to make sure that nothing breaks .. so no beta today, maybe later this week 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] setups in typescripts
>> i have made a typescript which works. the only thing is that i have in my >> typescript something like: >> >> \startsetups [fallbackfonts] >> … >> \stopsetups >> >> \starttypescript [bla] >> \setups[fallbackfonts] >> … >> \stoptypescript >> >> referring in my document to the typescriptfile with >> \usetypescriptfile[Mytypescript] does not load the setups and so the font >> fallback is not working (obviously \usetypescriptfile only loads the >> typescripts). >> When i do: >> >> \input Mytypescript > > \usetypescriptfile[Mytypescript] > \usetypescript[bla] > \setupbodyfont[bla,12pt] > > should work > > Willi yes this works normal, but the \startsetups[fontfallback] … \stopsetups are not loaded with \usetypescriptfile - only the \starttypescript … \stoptypescript sections. Please see my second post. There are the file attachments which should demonstrate the behaviour. best regards Bernhard ___ 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] definesynonyms & infull [mkiv]
Hi, the following example works in mkii, but in mkiv the first 'infull' won't appear: \enableregime [utf] \definesynonyms [StandardAbbrev] [StandardAbbrevs] [\infull] \definesynonyms [TechAbbrev] [TechAbbrevs] [\infull] \StandardAbbrev [DIN] {\kap{din}} {Deutsches Institut für Normung~e.\,V.} \TechAbbrev [FAME] {\kap{fame}} {Fatty Acid Methyl Ester} \starttext \DIN\ (\infull{DIN}) \FAME\ (\infull{FAME}) \stoptext Any ideas? Thank you. Thomas This is LuaTeX, Version beta-0.60.1-2010052906 (Web2C 2010/pretest) (rev 3685) ConTeXt ver: 2010.05.24 13:05 MKIV fmt: 2010.5.31 int: english/english ___ 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] Aditya "using-external-filters" module
Nice http://randomdeterminism.wordpress.com/2010/05/30/using-external-filters/ -- 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 ___