Re: [NTG-context] lecturer
On 29-7-2010 6:37, Aditya Mahajan wrote: This is similar to what Hans' presentation modules do...each step is a new layer on the slide and clicking on screen toggles visibility. The interesting feature is that page down and page up also step the slides, so this can be used with a wireless presenter (while Hans's modules cannot). depends on if we can hook into those keys ... i tend to be careful with those features as they are rather view version dependent (it often takes a couple of versions for something annotation related to get reasonable stable) - 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] Placing footnotes in right margin en bloc at bottom of page
Am 28.07.10 13:19, schrieb Elias Oltmanns: Hi there, not being a ConTeXt user myself, I have been advised on the tex-d-l list of the German TUG that a certain problem could possibly be solved more easily in ConTeXt than in LaTeX. So, here is what I'm trying to achieve: The numerous but short footnotes of a document shall be placed in the right margin rather than below the main text area. Additionally, though, the footnotes should not be placed near the call up (similar to what \marginpar does), but type set en bloc at the bottom of the page. In other words, the main text area should have fixed margins all round across all pages and the footnotes should be printed in a small rectangular block beside the main text area such that the height of this block varies according to the number of footnotes on the page, but the block is always flushed to the bottom of the page. You'll find an ascii art illustration below. Is such a layout feasible in ConTeXt without too much hassle at all? This is easy: \setupnote[footnote][location=text] \setuptexttexts[margin][][{\framed[frame=off,offset=none,align=low,height=\textheight,width=broad]{\placenotes[footnote]}}] %\showframe \starttext text\footnote{one} text\footnote{two} text\footnote{\input tufte\par} text \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 ___
Re: [NTG-context] Lua code inside database module
Hallo ConTeXtist, Thanx to Hans for his advice. I further experimented with Mojca database module. I want get interaction database module with my lua application which process CSV files otherwise. My application can list arbitrary fields from any CSV file namely in completely arbitrary format i.e. in rows format: field11, field13, field15, ... etc... field21, field23, field25, ... etc... field31, field33, field35, ... etc... this is one of reasons why I want use Mojca database module. Meanwhile, I too can not run it. Problem is, perhaps, that I can not work properly with the expansion. Perhaps I can get progressively. Here are some insights to the functioning of the previous examples. \usemodule[database] \defineseparatedlist [NaturalTable] [separator=comma, before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] \starttext 1. Normal example \startseparatedlist[NaturalTable] col1,col2,col3 \stopseparatedlist 2. This example with expand dont work ... \expanded{\startseparatedlist[NaturalTable] \ctxlua{tex.print(col1,col2,col3)}} \stopseparatedlist 3. This example work but no output! WHY? \startluacode context.startseparatedlist {NaturalTable} tex.print(col1,col2,col3) context.stopseparatedlist() \stopluacode 4. This work OK but only with adding tex.print() \startluacode context.startseparatedlist { NaturalTable } tex.print() -- without this line dont work (ie without output data) try remark it tex.print(col1,col2,col3) context.stopseparatedlist() \stopluacode 5. With tex.print work but with tex.sprint fails! WHY?? \startluacode context.startseparatedlist { NaturalTable } tex.print() --tex.sprint(col1,col2,col3) -- Try remove remark context.stopseparatedlist() \stopluacode \stoptext Best greetings Jaroslav On 26-7-2010 8:36, Jaroslav Hajtmar wrote: Hello all, Is there any possibility use Lua commands in \startseparatedlist[NaturalTable] ... \stopseparatedlist environment in database module? I would like using database module im my Lua application. Thanx Jaroslav Here is mimimal example: \usemodule[database] \defineseparatedlist [NaturalTable] [separator=comma, before=\bTABLE,after=\eTABLE, first=\bTR,last=\eTR, left=\bTD,right=\eTD] \starttext \startseparatedlist[NaturalTable] col1,col2,col3 \stopseparatedlist \startseparatedlist[NaturalTable] \directlua{tex.print(col1,col2,col3)} % here program fails \stopseparatedlist \stoptext you could expand the content \expanded{\startseparatedlist[NaturalTable] \ctxlua{tex.print(col1,col2,col3)}} \stopseparatedlist or use \startluacode context.startseparatedlist { NaturalTable } tex.print(col1,col2,col3) context.stopseparatedlist() \stopluacode of course you can also do all at the lua end (reminds me that I promised mojca to rewrite the database module) ___ 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] Setting up protrusion, side-effects
I hate to pick up on this again, but... The basic Palatino, together with protrusion and small caps is causing issues. Essentially horizontal placing of the characters fails (see previous PDF). In the example below, I can reliably cause the effect by commenting out (or not) the line with the \sc. This effect shows up the my real files. While trying to find the trigger by culling down the files, for a moment I could reliably (!) turn the effect on and off with the line %\setupfootertexts[chapter][pagenumber] and not changing the \sc lines. Weird side effect? Sorry, I can't reproduce that one anymore. One way to reduce, but not prevent the effect, is if more plain text is output before using \sc. eg by adding an \input tufte beforehand. But once the text after the \sc is a bit longer ie. 10x tufte the effect will show again. Gut feeling: successive and cumulative rounding errors. Question: Am I tripping over side effects? Is using SmallCaps a bad idea when using protrusion? It just feels odd that something like this would be so uncontrollable. Particularly since the palatino font is from the TexGyre set (so close to home) Thanks for thoughts! Martin \definefontfeature [default][default][protrusion=quality,expansion=quality] \setupalign[hz,hanging] %\setupfooter[text][before=\hairline,leftwidth=.85\textwidth,style=\tfx] %\setupfootertexts[chapter][pagenumber] %\usetypescript[palatino] \setupbodyfont[palatino,12pt] \starttext %\input tufte {\sc Erster Teil} \input tufte \stoptext Fonts are sometimes special and when ypu load a font it's setting (e.g. ligatures, protrusion etc.) are frozen. To change the settings you need \definefontfeature before \setupbodyfont, 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] Minimals Beta on Windows 64bit
On Mon, 26 Jul 2010 18:07:24 +0200, Mojca Miklavec mojca.miklavec.li...@gmail.com wrote: The problem is that I'm not able to reproduce the problem you are reporting. Did anyone else experience the same problem? Mojca It seems to have been fixed in the meantime. I just tried it again and rsync worked fine. The crash still happened, so I deleted the texmf-mswin directory and let rsync refetch it, and now that works too. So it seems my context on win64 runs fine again. No idea what caused the problem, but at least it works now :) Thanks for taking a look! Best Regards, 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] Placing footnotes in right margin en bloc at bottom of page
Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: [...] This is easy: \setupnote[footnote][location=text] \setuptexttexts[margin][][{\framed[frame=off,offset=none,align=low,height=\textheight,width=broad]{\placenotes[footnote]}}] %\showframe \starttext text\footnote{one} text\footnote{two} text\footnote{\input tufte\par} text \stoptext Thanks for the snippet. Unfortunately, the footnotes don't seem to make it onto the page though. Would this be due to using ConTeXt MKII by any chance? If not, I'd rather not change my current texlive installation just now. log-output is attached. Thanks for your time, Elias This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009) (format=cont-en 2010.7.29) 29 JUL 2010 15:05 entering extended mode %-line parsing enabled. (/opt/tl/2009/texmf/web2c/natural.tcx) **con-footnote.tex \emergencyend (./con-footnote.tex ConTeXt ver: 2009.08.19 17:10 MKII fmt: 2010.7.29 int: english/english system : cont-new loaded (/opt/tl/2009/texmf-dist/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/opt/tl/2009/texmf-dist/tex/context/base/cont-new.mkii)) system : cont-fil loaded (/opt/tl/2009/texmf-dist/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/opt/tl/2009/texmf-dist/tex/context/user/cont-sys.rme (/opt/tl/2009/texmf-dist/tex/context/base/type-tmf.tex (/opt/tl/2009/texmf-dist/tex/context/base/type-tmf.mkii)) (/opt/tl/2009/texmf-dist/tex/context/base/type-siz.tex (/opt/tl/2009/texmf-dist/tex/context/base/type-siz.mkii)) (/opt/tl/2009/texmf-dist/tex/context/base/type-one.tex (/opt/tl/2009/texmf-dist/tex/context/base/type-one.mkii))) system : con-footnote.top loaded (./con-footnote.top) bodyfont: 12pt rm is loaded language: patterns nl-texnansi:texnansi-1-2:2 nl-ec:ec-2-2:2 us- ec:ec-3-2:3 de-texnansi:texnansi-4-3:3 de-ec:ec-5-3:3 da-ec:ec-6-2:2 sv-ec:ec-7-2:2 gb-ec:ec-8-2:2 fr-texnansi:texnansi-9-2:2 fr-ec:ec-1 0-2:2 es-ec:ec-11-2:2 ca-ec:ec-12-2:2 it-texnansi:texnansi-13-2:2 it- ec:ec-14-2:2 la-ec:ec-15-2:2 pt-texnansi:texnansi-16-2:2 pt-ec:ec-17 -2:2 ro-ec:ec-18-2:2 pl-pl0:pl0-19-2:2 pl-ec:ec-20-2:2 pl-qx:qx-21- 2:2 cs-il2:il2-22-2:2 cs-ec:ec-23-2:2 sk-il2:il2-24-2:2 sk-ec:ec-25 -2:2 hr-ec:ec-26-2:2 sl-ec:ec-27-2:2 tr-ec:ec-28-2:2 agr-agr:agr-30 -2:2 fi-ec:ec-31-2:2 hu-ec:ec-32-2:2 ru-t2a:t2a-34-2:2 uk-t2a:t2a-3 5-3:3 loaded specials: dvips loaded \openout3 = `con-footnote.tui'. \openout0 = `con-footnote-mpgraph.mp'. \openout0 = `mpgraph.mp'. systems : system commands are disabled language: language en is active specials: loading definition file tpd (/opt/tl/2009/texmf-dist/tex/context/base/spec-tpd.mkii specials: loading definition file fdf (/opt/tl/2009/texmf-dist/tex/context/base/spec-fdf.mkii)) (./con-footnote.tuo) (./con-footnote.tuo) (./con-footnote.tuo) (./con-footnote.tuo) (./con-footnote.tuo) (./con-footnote.tuo) (./con-footnote.tuo) (./con-footnote.tuo) (./con-footnote.tuo) (./con-footnote.tuo) (./con-footnote.tuo) (./con-footnote.tuo) systems : begin file con-footnote at line 7 references : unknown reference [][fnt:t:1] references : unknown reference [][fnt:t:2] references : unknown reference [][fnt:t:3] (/opt/tl/2009/texmf-dist/tex/context/sample/tufte.tex) fonts : resetting map file list {/opt/tl/2009/texmf-dist/fonts/map/pdftex/context/original-empty.map} fonts : using map file: original-base {/opt/tl/2009/texmf-dist/fonts/map/pdftex/context/original-base.map} fonts : using map file: original-ams-base {/opt/tl/2009/texmf-dist/fonts/map/pdftex/context/original-ams-base.map} fonts : using map file: original-public-lm {/opt/tl/2009/texmf-dist/fonts/map/pdftex/context/original-public-lm.map} fonts : using map file: lm-ec {/opt/tl/2009/texmf-dist/fonts/map/dvips/lm/lm-ec.map} fonts : using map file: lm-math {/opt/tl/2009/texmf-dist/fonts/map/dvips/lm/lm-math.map} fonts : using map file: lm-rm {/opt/tl/2009/texmf-dist/fonts/map/dvips/lm/lm-rm.map} fonts : using map file: original-ams-euler {/opt/tl/2009/texmf-dist/fonts/map/pdftex/context/original-ams-euler.map} (/opt/tl/2009/texmf-dist/tex/context/base/sort-def.mkii) (/opt/tl/2009/texmf-dist/tex/context/base/sort-lan.mkii) [1.1] systems : end file con-footnote at line 9 system : cont-err loaded (/opt/tl/2009/texmf-dist/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) ) Here is how much of TeX's memory you used: 1045 strings out of 457152 16610 string characters out of 2541996 4687853 words of memory out of 7118750 40822 multiletter control sequences out of 15000+20 140365 words of font info for 63 fonts, out of 300 for 9000 396 hyphenation exceptions out of 8191 48i,20n,59p,274b,757s stack positions out of
Re: [NTG-context] Placing footnotes in right margin en bloc at bottom of page
Hi Elias, erfreut habe ich gesehen, dass dir mit ConTeXt wohl geholfen werden kann. Elias Oltmanns e...@nebensachen.de writes: Thanks for the snippet. Unfortunately, the footnotes don't seem to make it onto the page though. Would this be due to using ConTeXt MKII by any chance? If not, I'd rather not change my current texlive installation just now. Ohne direkt auf das Problem eingehen zu können: Wenn du ConTeXt benutzt, installier am besten die Minimals. Die Installation ist denkbar einfach und hier beschrieben: http://wiki.contextgarden.net/ConTeXt_Minimals#Simple_instructions_for_installing_on_Unix_like_system_.28Linux.2FMac_OSX.2FFreeBSD.2FSolaris.29 Abweichend zu dieser Beschreibung habe ich in meiner .zshrc (.bashrc sollte genauso funktionieren) folgende Zeile geschrieben: alias minimals='source ~/context/tex/setuptex' Damit kann ich bequem in einer Shell mittels Eingabe von 'minimals' zur ConTeXt-Installation wechseln und habe sonst weiterhin die TeXLive-Binaries und -Pfade. Gruß, olli -- Oliver Heins he...@sopos.org http://www.sopos.org/olli GPG: F27A BA8C 1CFB B905 65A8 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html ___ 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] how to jump to figure and return to the original postion?
Dear all, In the presentation, I'd like to jump to a figure and return to the original position. For that purpose, I set a label for a figure like \placefigure[][fig:test]... and put \goto{figure}[fig:test] It works fine. It generates a ling to the figure so I click it, I can move to the figure. But I don't know how to come back. I tried similarly. Set a label like \item[start] ... and \goto{return}[start] It also displays return in changed color but the link is not working. Is there a way to come back to the original position? Thank you. 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] Setting up protrusion, side-effects
On 29-7-2010 12:12, Martin Althoff wrote: I hate to pick up on this again, but... The basic Palatino, together with protrusion and small caps is causing issues. Essentially horizontal placing of the characters fails (see previous PDF). In the example below, I can reliably cause the effect by commenting out (or not) the line with the \sc. Could as well be a luatex backend problem so I have to discuss it with Taco and Hartmut. 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] how to jump to figure and return to the original postion?
On 29-7-2010 5:21, dalyoung wrote: Dear all, In the presentation, I'd like to jump to a figure and return to the original position. For that purpose, I set a label for a figure like \placefigure[][fig:test]... and put \goto{figure}[fig:test] It works fine. It generates a ling to the figure so I click it, I can move to the figure. But I don't know how to come back. I tried similarly. Set a label like \item[start] ... and \goto{return}[start] It also displays return in changed color but the link is not working. Is there a way to come back to the original position? \setupinteraction[state=start] \starttext \dorecurse {20} { see \in{figure}[fig:#1] \placefigure [here] [fig:#1] {} {\button[offset=overlay]{\externalfigure[cow.pdf]}[PreviousJump]} } \stoptext - 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] Placing footnotes in right margin en bloc at bottom of page
Oliver Heins o...@sopos.org wrote: Hi Elias, erfreut habe ich gesehen, dass dir mit ConTeXt wohl geholfen werden kann. Elias Oltmanns e...@nebensachen.de writes: Thanks for the snippet. Unfortunately, the footnotes don't seem to make it onto the page though. Would this be due to using ConTeXt MKII by any chance? If not, I'd rather not change my current texlive installation just now. Ohne direkt auf das Problem eingehen zu können: Wenn du ConTeXt benutzt, installier am besten die Minimals. Die Installation ist denkbar einfach und hier beschrieben: http://wiki.contextgarden.net/ConTeXt_Minimals#Simple_instructions_for_installing_on_Unix_like_system_.28Linux.2FMac_OSX.2FFreeBSD.2FSolaris.29 Vielen Dank für den Hinweis und die weiteren Tips. Allerdings habe ich das Minimalbeispiel auch einmal im contextgarden online kompilieren lassen, was das gleiche Problem mit sehr ähnlichen log-Meldungen aufgeworfen hat. Es scheint also nicht unbedingt an meiner Installation zu liegen. Vielleicht kann Wolfgang oder jemand anderes sagen, ob dem Minimalbeispiel noch etwas hinzugefügt oder korrigiert werden muss, damit das gewünschte Ergebnis erzielt wird. Wenn ConTeXt sich schließlich als geeignete Lösung erweisen sollte, ist es aber wahrscheinlich eine gute Idee, deine Idee mit paralleler Nutzung von texlive und context minimal aufzugreifen. Gruß, Elias ___ 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] \startcolumns ... \stopcolumns
Hello: After \startcolumns ... \stopcolumns there a big blank space. This sample shows it. % \starttext \startcolumns \input tufte \input tufte \input tufte \stopcolumns {\bf This should appear in the first page, below {\em tufte,} there is enough room.} \stoptext % why the last line jumps to a new page? Thankyou very much. Horacio Suarez ___ 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] Placing footnotes in right margin en bloc at bottom of page
Am 29.07.10 15:33, schrieb Elias Oltmanns: Wolfgang Schusterschuster.wolfg...@googlemail.com wrote: [...] This is easy: \setupnote[footnote][location=text] \setuptexttexts[margin][][{\framed[frame=off,offset=none,align=low,height=\textheight,width=broad]{\placenotes[footnote]}}] %\showframe \starttext text\footnote{one} text\footnote{two} text\footnote{\input tufte\par} text \stoptext Thanks for the snippet. Unfortunately, the footnotes don't seem to make it onto the page though. Would this be due to using ConTeXt MKII by any chance? If not, I'd rather not change my current texlive installation just now. You need a different setup for the footnote in Mark 2: \setupnote[footnote][width=\rightmarginwidth] 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 ___