[NTG-context] \cite not working with notes in xtables

2017-12-05 Thread Michael Eidenbenz
Hello List, I have this MWE that reflects my current layout where I have images in an xtable with captions defined as note. Both, footnotes and captions are set in the margin. The Example compiles correct with just one caption in a xcell. If there are two (as in the MWE) the \cite command

Re: [NTG-context] sql / swiglib doesnt find lib

2017-10-02 Thread Michael Eidenbenz
lt;pra...@wxs.nl> wrote: > > On 10/2/2017 10:26 AM, Michael Eidenbenz wrote: >> this doesnt work either. >> Do I haven't to install the luasql-mysql module? >> ...exp/tex/texmf-context/tex/context/base/mkiv/util-lib.lua:246: module >> 'luasql.mysql' not found: >

Re: [NTG-context] sql / swiglib doesnt find lib

2017-10-02 Thread Michael Eidenbenz
/context/base/mkiv/util-sql.lua:114: in function '__index' ...exp/tex/texmf-context/tex/context/base/mkiv/util-sql.lua:288: in function 'execute' [ctxlua]:19: in main chunk > On 02 Oct 2017, at 09:29, Hans Hagen <pra...@wxs.nl> wrote: > > On 10/1/2017 11:47 PM, Mi

[NTG-context] sql / swiglib doesnt find lib

2017-10-01 Thread Michael Eidenbenz
Hello, I'm experimenting with the SQL interface in context. My testfile compiles with: utilities.sql.setmethod("client"), but I don't manage to setup the swiglib method. Following the instruction described in swiglib-mkiv.pdf, I compiled the mysql library for osx, and put it into:

[NTG-context] bug in cldf-int.lua

2017-03-20 Thread Michael Eidenbenz
hello this bug shows up when using the lua function "interfaces.definecommand". michael cldf-int.lua interfaces = interfaces or { } - _clmh_ = utilities.parsers.settings_to_array + _clmh_ = utilities.parsers.settings_to_hash _clma_ = utilities.parsers.settings_to_array

Re: [NTG-context] everybeforeoutput vs everyafteroutput

2017-03-11 Thread Michael Eidenbenz
is shipped out. pageinjection [previouspage] sort of does what i want, but its a blank page without the layout. any hints how i can solve this? many thanks michael > On 10 Mar 2017, at 17:36, Hans Hagen <pra...@wxs.nl> wrote: > > On 3/10/2017 10:07 AM, Michael Eidenbenz wrote: >

[NTG-context] everybeforeoutput vs everyafteroutput

2017-03-10 Thread Michael Eidenbenz
hello, i try to understand the difference of everybeforeoutput and everafteroutput to inject some pages. it seems as there is no difference. \the\everybeforeoutput is placed after the output of the page: \newtoks\Before \appendtoks \the\Before \global\Before\emptytoks \to\everybeforeoutput

Re: [NTG-context] btx/xml tree - entry with missing field

2016-12-22 Thread Michael Eidenbenz
thanks a lot hans! > Am 22.12.2016 um 18:30 schrieb Hans Hagen <pra...@wxs.nl>: > > On 12/22/2016 6:06 PM, Michael Eidenbenz wrote: >> Hello >> >> I use the xml interface to list all publications that dont match a >> search crit

[NTG-context] btx/xml tree - entry with missing field

2016-12-22 Thread Michael Eidenbenz
/bibtex /* /field[@name='keywords' and not (contains(text(),'alpha'))] /.. /command(btx:tag) } \stopxmlsetups \starttext \xmlsetup{btx:database}{btx:demo} \stoptext Michael Eidenbenz / Senior Researcher eidenb...@arch.ethz.ch <mailto:eidenb...@arch.ethz.ch>

Re: [NTG-context] hbox after \page[disable]

2016-12-06 Thread Michael Eidenbenz
> Am 05.12.2016 um 22:21 schrieb Hans Hagen <pra...@wxs.nl>: > > On 12/5/2016 9:32 PM, Michael Eidenbenz wrote: >> Ok I got it. >> >> page[disable] is not taken into account by page[odd] so I changed it in >> page-brk.mkiv: >> >> \inst

Re: [NTG-context] hbox after \page[disable]

2016-12-05 Thread Michael Eidenbenz
{\externalfigure[dummy][factor=fit]} \dorecurse{4}{\input{knuth}\par} \Figure{\externalfigure[dummy][height=\textheight]} % \dorecurse{8}{\input{ward}\par} \stoptext > Am 04.12.2016 um 21:14 schrieb Michael Eidenbenz <eidenb...@arch.ethz.ch>: > > Dear Hans, > > than

Re: [NTG-context] hbox after \page[disable]

2016-12-04 Thread Michael Eidenbenz
finding the \page[disable] definition in the code but could not find it. any further suggestions how I can solve this issue? thanks Michael > Am 04.12.2016 um 18:13 schrieb Hans Hagen <pra...@wxs.nl>: > > On 12/4/2016 2:12 PM, Michael Eidenbenz wrote: >> I have

[NTG-context] hbox after \page[disable]

2016-12-04 Thread Michael Eidenbenz
I have a doublesided layout. On the right side i place the text, figures (if i have any) go on the left side. the MWE below works quite nice. But if i want the figure to be full height, two pages are skipped. This is becaus the hbox right below of the figure. I think it is placed during the

[NTG-context] (another) bug with embeddedxtables

2016-12-02 Thread Michael Eidenbenz
Settings made to \startembeddedxtable or \startxrow they will only work in the first call of the macro. In every further call the settings are ignored. On the other hand, settings made to \startxcell work for every call of the macro. I assume this is a bug. Regards Michael

[NTG-context] bug in xtables with spanning and spacing

2016-11-30 Thread Michael Eidenbenz
the spanned cells should be aligned. \startxtable[distance=5mm,spaceinbetween=5mm] \startxrow \startxcell[ny=2] one + alpha\stopxcell \startxcell[nx=2] two + three \stopxcell \stopxrow \startxrow \startxcell beta \stopxcell \startxcell gamma \stopxcell \stopxrow \stopxtable

Re: [NTG-context] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
thanks wolfgang. > On 29 Nov 2016, at 15:55, Wolfgang Schuster <schuster.wolfg...@gmail.com> > wrote: > >> Michael Eidenbenz <mailto:eidenb...@arch.ethz.ch> 29. November 2016 um 15:30 >> sorry, but what does "mlv" stand for? > It’s mvl whic

Re: [NTG-context] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
sorry, but what does "mlv" stand for? > On 29 Nov 2016, at 11:23, Hans Hagen <pra...@wxs.nl> wrote: > > On 11/29/2016 11:01 AM, Michael Eidenbenz wrote: >> \vbox{\placefigure[][]{}{\externalfigure[][]}} >> >> does the trick (but why?) >

Re: [NTG-context] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
\vbox{\placefigure[][]{}{\externalfigure[][]}} does the trick (but why?) > On 29 Nov 2016, at 09:29, Michael Eidenbenz <eidenb...@arch.ethz.ch> wrote: > > Hello, > > this M(not)WE gives me the following error: > > You can't use `\prevdepth' in restricted horizon

[NTG-context] error with floats in xtables with defined width

2016-11-29 Thread Michael Eidenbenz
Hello, this M(not)WE gives me the following error: You can't use `\prevdepth' in restricted horizontal mode Is this a bug? I'm running: 2016.11.24 12:05 MKIV beta thanks Michael \starttext \startxtable \startxrow % \startxcell \startxcell[width=10cm] % this leads to an error

Re: [NTG-context] startxtable, stopxtable in macro

2016-11-25 Thread Michael Eidenbenz
23:02, Pablo Rodriguez <oi...@gmx.es> wrote: > > On 11/25/2016 08:46 PM, Michael Eidenbenz wrote: >> why does this produce an TeX capacity exeeded error? >> thanks > > Hi Michael, > > I don’t know, but replacing your definitions with the following on

[NTG-context] startxtable, stopxtable in macro

2016-11-25 Thread Michael Eidenbenz
why does this produce an TeX capacity exeeded error? thanks Michael \define\startTable{\startxtable} \define\stopTable{\stopxtable} \starttext \startTable \startxrow \startxcell hello \stopxcell \stopxrow \stopTable \stoptext

[NTG-context] floats in xtable flush with frame

2016-11-05 Thread Michael Eidenbenz
Hello, I want to place floats in an xtable but cannot get rid of the gap between the float and the frame. I sort of can eliminate the gap on the top with \setupfloat [offset=-2.5pt] but this doesnt seem to be the right way. Is there a parameter to control this? Thanks Michael \showframe

[NTG-context] grid, interlinespace

2016-11-02 Thread Michael Eidenbenz
Hello I want my text on a grid and there should be no gap between the top and the capital letters of the first line. I managed to get this by changing the height parameter of \setupinterlinespace with a factor I calculated for the font with this formula: CapHeight/exheight / line = height

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Michael Eidenbenz
m 1.512, tfm 1.000, 4 instances, > load time 0.161 seconds > mkiv lua stats > used platform: linux-64, type: unix, binary subtree: bin > mkiv lua stats > luatex banner: this is luatex, version 0.95.0 (tex live > 2016)mkiv lua stats > control sequences: 43813 of 65536 + 10

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Michael Eidenbenz
t; > If I add this to my .emacs is always texlive 2016 is invoked when I compile > > (eval-after-load "tex" > '(add-to-list 'TeX-command-list > '("context" > "(/home/fab/context)/setuptex&" > T

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Michael Eidenbenz
sorry that should be: (path to textree)/setuptex && context . > > cd (path to textree) && setuptex && context etc... ___ If your question is of interest to others as well, please add an entry to the Wiki!

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Michael Eidenbenz
check which binary is used with which context and correct our PATH according to your needs. you can always add more C-c C-c commands for multiple installations (beta, current, texlive ..) as I wrote before. just change the command to cd (path to textree) && setuptex && context etc... Michael

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Michael Eidenbenz
you can add any TeX command (the ones you call with C-c C-c) to your init.el like this: '(add-to-list 'TeX-command-list '("contex" "context %t --nonstopmode --purgeall" % change the command to your needs TeX-run-TeX nil

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Michael Eidenbenz
[rightquotation] #1 \stopnarrower} \starttext \startCitation \input knuth \stopCitation \footnote{This is a Quote of Donald Knuth} \input knuth \stoptext > On 26 Oct 2016, at 18:40, Wolfgang Schuster <schuster.wolfg...@gmail.com> > wrote: > >> Michael Eid

Re: [NTG-context] avoid newline after definestartstop

2016-10-26 Thread Michael Eidenbenz
after some readings in the TeX book I came up with the following solution that works for me without having to change all my instances of startstopCitation in the text. \definestartstop [Citation] [ before={\hangindent=20mm\hangafter=0\symbol[leftquotation]},

Re: [NTG-context] avoid newline after definestartstop

2016-10-25 Thread Michael Eidenbenz
thanks everybody for their input. michael ___ 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

Re: [NTG-context] avoid newline after definestartstop

2016-10-24 Thread Michael Eidenbenz
u wish. > If you have quotations without footnotes, then you may define another > start-stop. > > Best regards: OK > >> On 24 Oct 2016, at 12:42, Michael Eidenbenz <eidenb...@arch.ethz.ch >> <mailto:eidenb...@arch.ethz.ch>> wrote: >> >> hello, >&

Re: [NTG-context] Text editors

2016-10-24 Thread Michael Eidenbenz
Hi, I use emacs with the spacemacs distribution. To manage my bibliographies (and also images) I use ebib (http://joostkremers.github.io/ebib/ ) instead of reftex. Regards, Michael > On 24 Oct 2016, at 13:41, Henning Hraban Ramm wrote: >

Re: [NTG-context] avoid newline after definestartstop

2016-10-24 Thread Michael Eidenbenz
uotation, it >> ends up inside the '' character at the end. If it is after \stopquotation, >> it >> becomes the beginning of the next paragraph. > > > AFAIK this is only possible when you place the quotation marks by hand. > > Wolfgang > > On 20 Oct 2

[NTG-context] avoid newline after definestartstop

2016-10-20 Thread Michael Eidenbenz
hello, how can I put the footnote number right after the quotationmarks without having a newline? dontleavehmode does not work. thanks michael \definestartstop[Citation] [before={\startnarrower[left,right]\startquotation},

Re: [NTG-context] Typset Text on odd pages only

2016-09-11 Thread Michael Eidenbenz
thanks a lot. I definitely have to look at the basics of TeX sooner or later. michael > On 09 Sep 2016, at 08:10, Hans Hagen <pra...@wxs.nl> wrote: > > On 9/6/2016 5:48 PM, Michael Eidenbenz wrote: >> Hello, >> >> I'm looking for a way to produce a doublesi

[NTG-context] Typset Text on odd pages only

2016-09-06 Thread Michael Eidenbenz
Hello, I'm looking for a way to produce a doublesided document with text on the odd pages only and floats on the even pages. Can somebody guide me in the right direction? Will something like \doifoddpageelse {typsettext} {\page} work? Thanks Michael

Re: [NTG-context] caption in margin

2016-08-22 Thread Michael Eidenbenz
self-answering (for the record) rightmargin / leftmargin has to be used in combination with an additional position keyword (low, middle, key), otherwise the caption is missing. I think a default position (low) would be nice in this case. Best Michael this works: \useMPlibrary[dum]

Re: [NTG-context] replacement for \getcitedata

2016-07-12 Thread Michael Eidenbenz
thanks. but i'm encountering my old problem: \externalfigure[\cite[file][Eidenbenz2016]] gives me an error. Do I need a lua approach here? Michael > On 12 Jul 2016, at 16:09, Alan BRASLAU <alan.bras...@cea.fr> wrote: > > On Tue, 12 Jul 2016 10:51:06 +0200 > Mich

[NTG-context] replacement for \getcitedata

2016-07-12 Thread Michael Eidenbenz
is there a way to extract data from the bib database to use it in a macro? something like a replacement for the old \getcitedata thanks! ___ If your question is of interest to others as well, please add an entry to

[NTG-context] XML filtering and \setupcombinations

2015-05-19 Thread Michael Eidenbenz
Hello, I'm enjoying the power of the new publication framework and started to manage my images with it. This works quite nice. But now I reached the point where my (limited) context knowledge comes to an end. I would like to print a contact sheet of my large image database. To save paper I