Re: [NTG-context] linenotes/footnotes
Thomas A. Schmitz wrote: Hans Hagen wrote: it actually is (and has been present for a while) n=0 should do that but a few days ago i found out that it got broken when i implemented multiple notes, i'll send you the latest core-not file Hans How could I ever doubt it? :-) But the patch isn't quite working, now notes are typeset on top of each other. hm, can you send me your (small) test file? (make sure that at place time the same settings apply ! so either use \setupnote or also provide the setting sto \place... 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] 'Glossary' on every page
� wrote: Hello to all, I have a problem: I want to add a kind of glossary on a book. It will be, in fact, an explanation of acronyms ('NATO: North Atlantic Treaty Organisation' for instance). But... I'd want it on every page, only for the acronyms used on the current page (and alphabetically sorted if possible)... I tried using layers (with or without tying them to backgrounds), blocks (\begin... \end...), buffers, list of synonyms, etc. but I had problems with one of the requirements or another. :-) My first idea was to use blocks for each page : \beginABREV[1] NATO: North Atlantic Treaty Organisation \endABREV \beginABREV[1] BLOB: Binary Large Object \endABREV and to use them with \useblocks[ABREV][\pagenumber] in the footer. To be sure to give the right page number to \beginABREV, I tried to define a label and use it, something like (from memory, I don't have my code near to me): \reference[abbrev\ABREVcount]% Put a label \beginABREV[{\ref[r][abbrev\ABREVcount]}]% and use the label to get the current page on subsequent runs. but I went on a nightmare of expansion problems... Plus it didn't eliminate duplicates nor sort the acronyms. But it would have been a start... :-) Can someone point me to the right direction? well, instead of making some complex new mechanism, why not misuse notes % output=pdf \definenote [glossary] [way=bypage, location={page,high}, factor=0, width=\leftmarginwidth, scope=page, conversion=empty, % no number rule=, before=, after=] \setuplayout [width=middle, height=middle, backspace=5cm, margin=4cm, margindistance=.25cm, cutspace=2cm] \setuptexttexts [margin] [\setups{glossary}] [] \startsetups glossary \vbox to \textheight { \placenotes[glossary] \vfill } \stopsetups \setupnotedefinition [glossary] [location=left, width=fit, distance=.5em, align={right,tolerant,stretch}, headstyle=bold, hang=1] % ok, we will plug in some code (will go into the kernel) \unprotect \def\ownnotesymbol#1% #1 gets number passed {\executeifdefined{\??vn::\currentnote}\empty} \def\setnotesymbol[#1]#2#3% {\prewordbreak % prevent lookback \gdef\lastnotenumber{#2}% \setgvalue{\??vn::#1}{#3} \dolastnotesymbol} \def\ownnote[#1]#2#3#4% {\setnotesymbol[#1]{#2}{#3}% \setnotetext [#1]{#4}} \protect % here we hook the code into the footnote handler \defineconversion [ownnote] [\ownnotesymbol] \setupnote [glossary] [conversion=ownnote, textcommand=, textstyle=, numbercommand=] \showframe \starttext \dorecurse{10} {\dorecurse{5} {I'm \ownnote[glossary]{whowing}{whow}{whatever needs to be glossed:~\recurselevel} a bit. \input tufte \relax}} \stoptext if there is interest i can add the glossary defs (maybe using a different name) to the kernel. I'm a bit puzzled why the notes don't split well ... maybe taco has an idea (he knows ttp -) concerning abbreviations ... maybe some day i'll add a feature like this to it Hans Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] footnote text formatting
Hi Hans, Looking back on this, is it possible to add a key like [notetextcommand=command#1] so that one can control things like indentation without resorting to redefining things?: \setupnote[endnote][location=none,margindistance=0em, notetextcommand=\hskip1.2em] seems nice... Best Idris = Original Message From Thomas A. Schmitz [EMAIL PROTECTED] = Idris, here's my hack for achieving this footnote format (which seems much more common in the humanities than the default provided by ConTeXt): \def\NoteNumber#1{\hbox to 15pt{\hfill #1.}} \setupfootnotes[rule=off, distance=-3em, margindistance=-3em, numbercommand=\NoteNumber] \def\MyFootnote#1{\footnote{\hskip4em #1}} Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] a small typo
Hi all, IMHO type-dis.tex should contain the line: \definefontsynonym[il2-lmtti10] [csitt10] [encoding=il2] instead of bad: \definefontsynonym[il2-lmtti10] [cstti10] [encoding=il2] -- the difference is in csitt/cstti font name. Have a nice day, Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Hans Hagen Sent: Tuesday, March 29, 2005 1:31 AM To: mailing list for ConTeXt users Subject: Re: [NTG-context] footnote placement Gerben Wierda wrote: I have been trying to do this for a test with larger notes, but this fails: \starttext \startbuffer[tufte] \input tufte \stopbuffer \startbuffer[knuth] \input knuth \stopbuffer \dorecurse{100}{test \footnote{\typebuffer[knuth]} \endnote{eee}\endgraf} \page \placenotes[endnote] \setupnote[endnote][location=none] \starttext \dorecurse{100}{test \endnote{eee}\endgraf} \page \placenotes[endnote] \stoptext i'll make location=none the defautl for endnotes; (other alternatives will snap and add backgrounds and such which is one reason for the notes not breaking 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] footnote placement
Gerben Wierda wrote: I have been trying to do this for a test with larger notes, but this fails: \starttext \startbuffer[tufte] \input tufte \stopbuffer \startbuffer[knuth] \input knuth \stopbuffer \dorecurse{100}{test \footnote{\typebuffer[knuth]} \endnote{eee}\endgraf} \page \placenotes[endnote] \setupnote[endnote][location=none] \starttext \dorecurse{100}{test \endnote{eee}\endgraf} \page \placenotes[endnote] \stoptext i'll make location=none the defautl for endnotes; (other alternatives will snap and add backgrounds and such which is one reason for the notes not breaking 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] critical editions in context
Thomas A.Schmitz wrote: Sorry, hit the send button by accident. OK, I feel guilty resurrecting this stale thread, but I can't resist asking again. I found this in m-arabtex.tex: %\pushmacro\edmacloaded \let \edmacloaded \undefined and later %\popmacro\edmacloaded Both lines are commented out, so I'm still wondering if edmac will work with ConTeXt out of the box. The absolute basics that are needed for critical editions are: 1. Capability to have footnotes with reference to line-number instead of counter. These notes must not end with a newline character (see ASCII-art at end of post), but must provide the possibility to have several on one line. These notes must not flow, they have to stay on the same page as the reference. Horizontal tolerance can be set to very sloppy to achieve this 2. Must be possible to apply a format like \bf vel. sim. to the reference. 3. Within these notes, it should be possible to refer to other line numbers. 4. Nice, but not quite essential: possibility to have notes in more than one column. 5. Not absolutely basic, but important for serious work: have more than one set of notes referring to the same passage. Is this possible in ConTeXt out of the box? If not, I'd be willing to roll up my sleeves and help, but would like to know which would be a good starting point. I looked at core-ltn.tex. I'm not sure if core-nnt and page-nnt refer to core-not and page-not; I couldn't find anything appropriate in these files. the files are in the main distribution for some time; i'm still waiting for idris to test them; following is my test file (seems that it has a patch -) % interface=en \unprotect \def\dohandlelinenote#1#2#3% {\bgroup \expanded{\beforesplitstring#2}\at--\to\linenotelinenumber \ifnum\linenotelinenumber=\linenumber\relax \def\linenotelinenumber##1{#2}% \setupnote[#1] [\c!numbercommand=\linenotelinenumber, \c!textcommand=\gobbleoneargument]% \setnote[#1]{#3}% \fi \egroup} \protect \starttext \tracelinenotestrue \setuppapersize[S6][S6] \setuplayout[width=middle,height=middle,margin=1.5cm,footer=0pt,header=1cm] \setupcolors[state=start] \setuptyping[option=color] \definelinenote[extralinenote][rule=off,frame=on,framecolor=darkgreen] \setuplinenote [linenote] [rule=off,frame=on,framecolor=darkred,n=2] \showframe \startbuffer[test] \doglobal\increment\DummyNumber % else dups due to reuse \startlinenumbering[100] test \linenote {oeps} test test test test test test test \startlinenote [well:\DummyNumber] {oeps} test test test test test test test \linenote {oeps} test test test test test test test \extralinenote {oeps} test test test test test test test \linenote {oeps} test test test test test test test \extralinenote {oeps} test test test test test test test \stoplinenote [well] test test test test test test \stoplinenumbering \stopbuffer {\typebuffer[test] \getbuffer[test]} \page \startbuffer[setup] \setuplinenumbering [align=left] \stopbuffer {\typebuffer[setup] \getbuffer[setup,test]} \page \startbuffer[setup] \setuplinenumbering [width=1em, align=left] \stopbuffer {\typebuffer[setup] \getbuffer[setup,test]} \page \startbuffer[setup] \setuplinenumbering [width=2em, distance=.5em, align=left] \stopbuffer {\typebuffer[setup] \getbuffer[setup,test]} \page \startbuffer[setup] \setuplinenumbering [width=2em, align=middle] \stopbuffer {\typebuffer[setup] \getbuffer[setup,test]} \page \startbuffer[setup] \setuplinenumbering [conversion=romannumerals, start=1, step=1, location=text, style=slanted, color=blue, width=1.5em] \stopbuffer {\typebuffer[setup] \startnarrower\getbuffer[setup,test]\stopnarrower} \page \startbuffer[setup] \setuplinenumbering [width=4em, left=--, right=--, align=middle] \stopbuffer {\typebuffer[setup] \getbuffer[setup,test]} \page \startbuffer[setup-1] \setuplinenumbering [style=\bfxx, command=\WatchThis] \stopbuffer \startbuffer[setup-2] \def\WatchThis#1% {\ifodd\linenumber \definecolor[linecolor][red]% \else \definecolor[linecolor][green]% \fi \inframed [offset=1pt,frame=off,background=color,backgroundcolor=linecolor] {#1}} \stopbuffer {\typebuffer[setup-1,setup-2] \getbuffer[setup-1,setup-2,test]} \page \startbuffer[setup-1] \setuplinenumbering [location=inright, style=\bfxx, command=\WatchThis] \stopbuffer {\typebuffer[setup-1] \getbuffer[setup-1,setup-2,test]} \page \stoptext Best Thomas Example what should be possible: 1 This manual is about ConTEXt, a system for typesetting documents. 2 Central element in this name is the word TEX because the typographical 3 programming language TEX is the base for ConTEXt. People who are used 4 to TEX will probably identify this manual as a TEX document. They recognise 5 the use of \. One may also notice that the way pararaphs are broken into lines 6 is often better than in the avarage typesetting system. 1 manual A: handbook B 2 name