Re: [NTG-context] LuaTeX on Mac OS X
Dear Otared, Thank you for your mail. Since there is no echo at all on this matter for a few days, I think that I am the only person who has the installation problem. I tired in many ways. I repeated the installation process three times from the scratch. But I have no progress at all. I made ".luatex"(it is described by Thomas in ntg-context digest vol 39, issue 30), and got the following result. there is a little difference. luatools tried to load texmf.cnf but face to an error soon. dalyoung$ source ~/.luatex dalyoung$ luatools --generate LuaTools | skipping /usr/local/texlive/2007/bin/powerpc-darwin/texmf.cnf LuaTools | skipping /usr/local/texlive/2007/bin/powerpc-darwin/share/ texmf-local/web2c/texmf.cnf ... LuaTools | skipping /usr/local/texlive/2007/bin/texmf.cnf LuaTools | skipping /usr/local/texlive/2007/bin/texmf/web2c/texmf.cnf LuaTools | skipping /usr/local/texlive/2007/texmf.cnf LuaTools | loading /usr/local/texlive/2007/texmf/web2c/texmf.cnf LuaTools | skipping /./texmf.cnfError in lua file loading: /usr/ texbin/luatools:1108: bad argument #1 to 'sum' (string expected, got table) %%% As you see, the output of luatools --variables also gave the same output. ~ dalyoung$ luatools --variables Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1 to 'sum' (string expected, got table) ~ dalyoung$ luatools --show-path Error in lua file loading: /usr/texbin/luatools:1108: bad argument #1 to 'sum' (string expected, got table) %%% There may be something that is unknown to us in our system. For information, I use mac G5(OSX 10.4.10, PPC) and installed MacTeX 2007 version. That is all that I can say right now. If you have anything good, please let me know. Thank you for your concern. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to process simple HTML files with LuaTeX
On 9/16/07, Hans Hagen wrote: > > i rewrote the parser (both xml and semi-xpath) so it may have been > broken, i'll upload a new beta tomorrow Hello Hans, Thanks a lot for fixing the issue with non-working \xmlatt. Now, I'm still slightly lost regarding two issues: - How to remove unneeded space? With \ignorespaces? - How to use the new verbatim code? I have tried to use \xmlsetfunction{main}{pre}{lxml.verbatim} but it didn't really work. % test.tex: \startxmlsetups all:html \xmlsetsetup{main}{h1|pre}{*} \stopxmlsetups \xmlregistersetup{all:html} % is this the proper way? \startxmlsetups h1 \subject{\ignorespaces\xmlflush{#1}} \stopxmlsetups \startxmlsetups pre {\bgroup\tt\obeylines\xmlflush{#1}\egroup} \stopxmlsetups \starttext \xmlprocess{main}{test.html}{} \stoptext % test.html How to get rid of this spacing in some elegant way? Title followed by a paragraph ... and some source [EMAIL PROTECTED] Also, this fails because of the empty line: How to get rid of this spacing in some elegant way? 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] numbered subitems
Hi Alan, On Mon, 1 Oct 2007, Alan Bowen wrote: > 1. History > 1.1 Pre-Greek (Babylonian and Egyptian) sundials > 1.2 Greek and Roman sundials > 1.3 Byzantine sundials > > is the goal. Sadly, adding “serried” destroys the indentation of the > subitems. I could not find a clean way to do this. So, I redefined \checkforrepeatedlistitem. Hans, isn't there a clean way to do this? \setupitemize[1][fit,broad] \setupitemize[2][width=2em] \setupitemize[each][n] \def\checkforrepeatedlistitem {\ifnum\itemlevel=\plusone \initializeboxstack{item}% \fi \ifconditional\repeatlistitem \savebox{item}{\itemlevel}{\hbox{\copy8}}% \setbox8\hbox %to \wd8 {\setbox\scratchbox\hbox {\scratchcounter\itemlevel \advance\scratchcounter\minusone \dorecurse\scratchcounter{\foundbox{item}{\recurselevel}}}% \ifnum\itemlevel>\plusone \ifdim\wd\scratchbox>\zeropoint %\hskip-\dimen2 \box\scratchbox \fi \fi \box8 }% \fi} \starttext \startitemize[repeat] \item item 1 \startitemize \item item 1.1 \item item 1.2 \item item 1.3 \stopitemize \item item 2 \startitemize \item item 2.1 \item item 2.2 \item item 2.3 \stopitemize \item item 3 \startitemize \item item 3.1 \item item 3.2 \stopitemize \stopitemize \stoptext 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] LuaTeX on Mac OS X
Dear Dalyoung, Like many other ConTeXt users I followed up the many threads about how to install, successfully, LuaTeX. In particular I was interested in your experience since I had more or less the same problems as the ones you described in your latest messages on the list. Now my question is: did you succeed to install and use LuaTeX on Mac OS X? --- If yes, could you please describe how you did proceed? --- If no, this means we have to wait more for our salvation... Thanks for your attention and best regards: OK ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] placefigure[hang] in columns
Christof Meigen wrote: > > Hi, > > I'm quite new to ConTeXT, so excuse me if the solution is obvious. > > I'm trying to typeset a document with three columns which contains _a > lot_ of graphics, most of which are pretty small, about one third of a > column. > > Unfortunately, while \placefigure[left,hang] works fine with one > column, the text doesn't float around the picture when using two or > more columns, so when I do this is not supported in column mode Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] placefigure[hang] in columns
Hi, I'm quite new to ConTeXT, so excuse me if the solution is obvious. I'm trying to typeset a document with three columns which contains _a lot_ of graphics, most of which are pretty small, about one third of a column. Unfortunately, while \placefigure[left,hang] works fine with one column, the text doesn't float around the picture when using two or more columns, so when I do -- \starttext \startcolumns[n=2] \placefigure[left,hang]{none}{\externalfigure[somepic][width=1.6cm]} sometext \stopcolumns \stoptext -- "sometext" appears in the second column, instead of next to the figure in the first column. To get an impression of what I want to achive you might try the following link: http://213.239.210.141/cgi-bin/lex.pl?titel=David%20Lynch&db=Berlin&id=58,165,166,638,2298,3749,6687,6889,8070,10392,11347,12117,14491,15640 While this comes close to what I mean (it's done in LaTeX), there are some limitations in LaTeX which make the job very painful, one of which is that it's impossible to have floats in columns for larger pictures that span one column (this works fine in Context). Am I just missing something? Ok, if that was too easy, here is the tough problem: *Actually* I would like to let the small pictures float _within_ the paragraph, so that if, say, the paragraph starts three lines before the end of the column, the picture would be set after the first three lines of the paragraph (and thus in the next column). I've experimented with writing \pdflastypos to logfiles, analysing them with a perl script, changing automatically the TeX-File and rerunning latex for days, but the results are ... well, ok, but not perfect. Thanks in advance for any hints, Christof Meigen ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] numbered subitems
Hi, Aditya— Many thanks. That works and looks quite good. I experimented and find that \startitemize[repeat,broad]\getbuffer\stopitemize looks best. The only downside is that there is still largish a gap between the stopper and the text of the main item as in 1.History 1.1 Pre-Greek (Babylonian and Egyptian) sundials 1.2 Greek and Roman sundials 1.3 Byzantine sundials when 1. History 1.1 Pre-Greek (Babylonian and Egyptian) sundials 1.2 Greek and Roman sundials 1.3 Byzantine sundials is the goal. Sadly, adding “serried” destroys the indentation of the subitems. Alan On Sep 30, 2007, at 5:29 PM, Aditya Mahajan wrote: On Sun, 30 Sep 2007, Alan Bowen wrote: Thanks, Aditya, I have adapted this as follows— \startbuffer \item item 1 \startitemize[n,stopper={},width=1em] \item item 1.1 \item item 1.2 \item item 1.3 \stopitemize \item item 2 \startitemize[n,stopper={},width=1em] \item item 2.1 \item item 2.2 \item item 2.3 \stopitemize \item item 3 \startitemize[n,stopper={},width=1em] \item item 3.1 \item item 3.2 \stopitemize \stopbuffer % \setupitemize[n,serried,packed,joinedup] \startitemize[repeat,4*borad]\getbuffer\stopitemize ^^^ (add this) and everything works, except that I cannot seems get the subitems indented. Right now they fall directly beneath the main items. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net __ _ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bib-mod: Formatting of Publication Lists and Cites
Peter Daum wrote: > > > Hoekwater(2001, p. 55) > -+ > smallcaps > normal > > This is "my" macro for the cites: > \define[2]\FCP{\footnote{\cite[extras={, #2}][#1]}} Something like this, then \define[2]\FCP{\footnote{{\sc\cite[author][#1]}, (\cite[alternative=year,extras={, #2}][#1]})} I hope you get the idea. 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] numbered subitems
Am 2007-09-30 um 23:29 schrieb Aditya Mahajan: >> \startitemize[repeat,4*borad]\getbuffer\stopitemize > ^^^ > (add this) been too much to the movies, eh? ;-) I guess that should be "broad"... Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bib-mod: Formatting of Publication Lists and Cites
Hi Taco > > I'd like to try to tell bib-mod to - fill in a vertical space between > > the entries in the publication list (the distance parameter did not > > help); > > \setuppublicationlist[before={\setupwhitespace[5pt]}] Works perfectly, thank you! > This works: {\sc\cite[something]}, so just wrap that in macro: > > \def\sccite#1{{\sc\cite[#1]}} Unforunately, this doesn't, at least for me. Your solution converts the whole cite to sc, including the extras. The latter I'd like to avoid. I'd like to see: Hoekwater(2001, p. 55) -+ smallcaps normal This is "my" macro for the cites: \define[2]\FCP{\footnote{\cite[extras={, #2}][#1]}} Are there any other suggestions? Thanks very much. Best Peter Original-Nachricht > Datum: Mon, 01 Oct 2007 09:08:57 +0200 > Von: Taco Hoekwater <[EMAIL PROTECTED]> > An: mailing list for ConTeXt users > Betreff: Re: [NTG-context] Bib-mod: Formatting of Publication Lists and Cites > Peter Daum wrote: > > Hi all > > > > I'd like to try to tell bib-mod to - fill in a vertical space between > > the entries in the publication list (the distance parameter did not > > help); > > \setuppublicationlist[before={\setupwhitespace[5pt]}] > > > - format the author's name in the cite as small caps (I > > managed to do it for the list, but unfortunately stayed unsuccessful > > for the cite). > > This works: {\sc\cite[something]}, so just wrap that in macro: > > \def\sccite#1{{\sc\cite[#1]}} > > 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 : https://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ -- Pt! Schon vom neuen GMX MultiMessenger gehört? Der kanns mit allen: http://www.gmx.net/de/go/multimessenger ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bib-mod: Formatting of Publication Lists and Cites
Peter Daum wrote: > Hi all > > I'd like to try to tell bib-mod to - fill in a vertical space between > the entries in the publication list (the distance parameter did not > help); \setuppublicationlist[before={\setupwhitespace[5pt]}] > - format the author's name in the cite as small caps (I > managed to do it for the list, but unfortunately stayed unsuccessful > for the cite). This works: {\sc\cite[something]}, so just wrap that in macro: \def\sccite#1{{\sc\cite[#1]}} 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___