[NTG-context] Problem loading a DLL with the latest Ctx beta
Any way to re-enable user DLL loading into ConTeXt, even in the future, would be appreciated... I have just uploaded dynamically linked luatex and luajittex. I hope that you can again load your lua DLL modules in a few days. Further, standard C functions can be used in ffi without loading a C DLL. For example, my previous example can be changed as follows: % % context test.tex % \starttext \placeformula \startformula j_1(2.387) = \startluacode local ffi = require("ffi") ffi.cdef[[ double _j1(double x); ]] tex.print(ffi.C._j1(2.387)) \stopluacode \stopformula \stoptext Best, Akira ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] notes in the margin
Am 2017-04-05 um 20:42 schrieb Pablo Rodriguez : > On 04/04/2017 10:27 AM, Henning Hraban Ramm wrote: >>> In my layout, left margin width is zero, but \inmargin always uses left >>> margin. >> Ok, I can use \inouter. > > doesn’t \setupmargindata[inmargin][location=right] do the trick? No, but \setupmargindata[inmargin][location=outer] Thank you! ;) The notes collide with my moved "foot"notes, but I wasn’t planning to use both anyway. >>> Further I’d like to place "foot"notes into the margin. >>> It works like this: >> >> "it works" means: The footnotes are placed in the margin, but collected at >> the bottom, like normal footnotes. >> I’d like numbered marginals. > > Sorry, my ConTeXt ignorance cannot deal with that. > > But I guess that this may be implemented (if Hans agrees) with > \setupnote[location=margin]. That would be very nice. I guess the stacking mechanism from \inmargin could be reused, so that the notes start at the same height as the footnote marker, if there is enough space. I don’t understand the code – is this in page-one.mkiv? Or should I try to use marginblocks (page-mbk.mvi) or margindata (typo-mar.mkiv)? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] side caption top aligned on grid -- not implemented?
> There’s still one catch: When I change the caption key „location“ to „bottom“ > together with „inbetween={\blank[-\strutdepth]}“ the picture is aligned with > the black line (top of the first text line). > This would actually be the preferred solution also for „{left,high}“. Yet I > couldn’t find a possibility to shift the picture vertically by some > millimeters. > Is there? To whoever might be trying to get this to work, too: \offset[y=2mm] *inside* \placeongrid will do this. Best, Florian. ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] side caption top aligned on grid -- not implemented?
By trial-and-error I’ve come up with the following. It seems like a hack but both variants are close enough to my requirements that I would be able to work with one of them. There’s still one catch: When I change the caption key „location“ to „bottom“ together with „inbetween={\blank[-\strutdepth]}“ the picture is aligned with the black line (top of the first text line). This would actually be the preferred solution also for „{left,high}“. Yet I couldn’t find a possibility to shift the picture vertically by some millimeters. Is there? Best regards, Florian. \useMPlibrary[dum] \setuplayout [grid=yes] \setupinterlinespace [line=20pt] \setupcaption [figure] [ location={left,high}, %% location={bottom}, %different alignment number=no, % inbetween={\blank[-.01mm]}, %Variant 1: picture top-aligned, caption on grid inbetween={\blank[-\strutdepth]}, %Variant 2: picture and caption top-aligned, caption not on grid ] \starttext \showgrid \startplacefigure [location=top,none,title={There is not so much basic instruction, as of now, as there was in the old days, showing the differences between good and bad typographic design.}, ] \placeongrid[max]{ \externalfigure [dummy] [width=.6\textwidth] } \stopplacefigure \input zapf \stoptext > Den 6. apr. 2017 kl. 10.12 skrev Florian Grammel : > > At http://tex.stackexchange.com/q/362215/6819 I asked: How can I place the > top line of the caption (location={left, high}) on the grid and have it align > with the figure at same height. > > I hoped this to be solvable by some simple instructions that I just haven’t > been able to figure out. But Henri Menke suggested in a comment that the > mechanism might not be implemented. > Is this really the case? > And if so: is there any way to achieve the alignment anyway? > > I’d greatly appreciate any help as this is an important requirement for my > present project! > > Best regards, > Florian. > Florian Grammel Copenhagen, Denmark ___ 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://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___