[NTG-context] link to component
Hi, I'm using a product/component structure with interaction but it seems that hyperlink targets pointing to manually set pagereferences in another component file do not work as they should: The line/page numbers on the link is correct, but the hyperlinks points to _component.pdf_ (which opens, if it has been compiled by itself before, otherwise the link is just going nowhere) instead of the page in product.pdf On the other hand, hyperlinks to a chapter/... head work as expected. I haven't used interaction much until now, so I might well be missing something, but this seems like a bug to me. Thanks in advance! Daniel Working minimal example: --- My product.tex looks like this: \setupinteraction[state=start] \startproduct product \startbodymatter %\at and \inline - \pagereference[knuth] don't work cf. Knuth at \at{p.}[knuthpage] \inline{line}[knuth] % \in - \chapter[knuthchap] works in \in{Chapter}[knuthchap]. \stopbodymatter \startappendices \component appendix \stopappendices \stopproduct -- And my appendix.tex looks like this: \startcomponent appendix \product product \chapter[knuthchap]{Knuth} \startlinenumbering \startline[knuth]\input knuth\stopline[knuth] \stoplinenumbering \page Some problem here.\pagereference[knuthpage] \stopcomponent ___ 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] link to component
Sorry, I forgot: I'm using MkIV version 2012.12.10 23:20 Am 11.01.13 15:52, schrieb Daniel Schopper: Hi, I'm using a product/component structure with interaction but it seems that hyperlink targets pointing to manually set pagereferences in another component file do not work as they should: The line/page numbers on the link is correct, but the hyperlinks points to _component.pdf_ (which opens, if it has been compiled by itself before, otherwise the link is just going nowhere) instead of the page in product.pdf On the other hand, hyperlinks to a chapter/... head work as expected. I haven't used interaction much until now, so I might well be missing something, but this seems like a bug to me. Thanks in advance! Daniel Working minimal example: --- My product.tex looks like this: \setupinteraction[state=start] \startproduct product \startbodymatter %\at and \inline - \pagereference[knuth] don't work cf. Knuth at \at{p.}[knuthpage] \inline{line}[knuth] % \in - \chapter[knuthchap] works in \in{Chapter}[knuthchap]. \stopbodymatter \startappendices \component appendix \stopappendices \stopproduct -- And my appendix.tex looks like this: \startcomponent appendix \product product \chapter[knuthchap]{Knuth} \startlinenumbering \startline[knuth]\input knuth\stopline[knuth] \stoplinenumbering \page Some problem here.\pagereference[knuthpage] \stopcomponent ___ 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 ___ ___ 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] underbar/margin text
Thank you very much, Wolfgang and Luigi, that was exactly what I was looking for! Footnotes disable the rule with the \resetallattributes command but it’s up to Hans to add it to the margin notes. Maybe there could be parameter like \setupmarginframed[resetfeatures=(yes|no|underbar|color|…)] … (I know that underbar is controversial feature, unfortunately in this special case it's a requirement which I can't change…) Best, Daniel Am 21.11.12 10:02, schrieb luigi scarso: On Wed, Nov 21, 2012 at 9:52 AM, Wolfgang Schuster wolfgang.schus...@gmail.com mailto:wolfgang.schus...@gmail.com wrote: Am 21.11.2012 um 09:42 schrieb luigi scarso luigi.sca...@gmail.com mailto:luigi.sca...@gmail.com: On Wed, Nov 21, 2012 at 9:36 AM, Wolfgang Schuster wolfgang.schus...@gmail.com mailto:wolfgang.schus...@gmail.com wrote: Am 03.09.2012 um 13:08 schrieb Daniel Schopper daniel.schop...@aon.at mailto:daniel.schop...@aon.at: Hi, I have to typeset some underlined text with margin notes by its side. Is there a way to prevent the notes themself to get underlined? I tried putting the note-command in a group, simplifying its content etc. (In my real file I use \defineinmargin, btw.) \starttext \underbar{Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{marginal} Test Test Test Test Test \par} \stoptext (As one can see, there’s also an issue with the footnote-sign breaking the continued line, which is not urgent for me, at least by now.) Footnotes disable the rule with the \resetallattributes command but it’s up to Hans to add it to the margin notes. but you can add by hand \starttext \underbar{% Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{\resetallattributes \color[red]{\overbar{marginal}}} Test Test Test Test Test \par } \stoptext and disable features which rely on attributes :) \starttext Test\inleft[color=blue]{\resetallattributes marginal} Test \stoptext exactly, that's the meaning of my prev. line \inleft{\resetallattributes \color[red]{\overbar{marginal}}} reset all attributes and turn on some of them. Can help in some situations. ___ 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 ___ ___ 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] underbar/margin text
Dear all, sorry to have to ask again, but I haven't been able to find a solution to this by now… Is there no way to prevent underlining in marginal notes when it is inside an underlined group? It shouldn’t be too difficult as it does work with footnotes, but I have no clue where to start… \starttext \underbar{% Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{marginal} Test Test Test Test Test \par } \stoptext Any help is very much appreciated! Daniel ___ 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] pre-stepwise / current
dear all, I’m trying to build a stepwise presentation, but the following minimal example (got it from the ML[1]) produces an error: ConTeXt ver: 2012.09.06 23:03 MKIV fmt: 2012.9.9 … !LuaTeX error: There should have been a lua node here, not an object with type string! The example compiles with standalone 2012.06.13 while it is broken from 2012.07.27 onwards. Is the stepper-module no longer supported? TIA, Daniel \usemodule[pre-stepwise] \setupinteraction[state=start,click=off] \setupbodyfont[palatino] \starttext \StartSteps \starttabulate \NC test \FlushStep \NC test \FlushStep \NC \NR \NC test \FlushStep \NC test \FlushStep \NC \NR \NC test \FlushStep \NC test \FlushStep \NC \NR \stoptabulate \StopSteps \stoptext [1] http://www.mail-archive.com/ntg-context@ntg.nl/msg55196.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] underbar/margin text
Hi, I have to typeset some underlined text with margin notes by its side. Is there a way to prevent the notes themself to get underlined? I tried putting the note-command in a group, simplifying its content etc. (In my real file I use \defineinmargin, btw.) \starttext \underbar{Test Test Test\footnote{footnote}~Test Test Test\par Test\inleft{marginal} Test Test Test Test Test \par} \stoptext (As one can see, there’s also an issue with the footnote-sign breaking the continued line, which is not urgent for me, at least by now.) Cheers, Daniel ___ 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] checkparameters and current beta (20120802)
Great, thanks! Am 03.08.12 22:44, schrieb Wolfgang Schuster: Am 03.08.2012 um 21:12 schrieb Daniel Schopper daniel.schop...@aon.at: Hi, \checkparameters seems broken in the current beta. The following example used to work at least with version 2012.06.13 - \def\myCom[#1]{% \checkparameters[#1] \ifparameters \getparameters[do][one=1,two=2,#1] \doone\ \dotwo \else #1 \fi } \starttext \myCom[one] \myCom[one=one,two=two] \stoptext You have to change this on syst-aux.mkiv: \unexpanded\def\checkparameters[#1]% - {\syst_helpers_get_empty_parameters#1=@@\_e_o_s_} + {\syst_helpers_check_parameters#1=@@\_e_o_s_} You can also use \doifassignmentelse to check the content of your macro. \def\mycommand[#1]% {\doifassignmentelse{#1} {\getrawparameters[mycommand][one=1,two=2,#1]% \mycommandone\ \mycommandtwo} {#1}} When you want to use \if… \else … \fi in your command you can use this: \def\mycommand[#1]% {\doifassignmentelse{#1}\donetrue\donefalse \ifdone \getrawparameters[mycommand][one=1,two=2,#1]% \mycommandone\ \mycommandtwo \else #1% \fi} 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 ___ ___ 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] author-title cite command
Dear list, I'm trying to come to grips with creating a customized author-title cite command, based on this[1] thread. I was wondering how I can check on the value of the [artauthor] or [author] fields extracted by \getcitedata? Eventually I'd need a footnote citation style that prints a full citation for the first reference and then uses a author-title style for the subsequent ones: For @incollection only author and title of the article, for @book the author and title of the book. Which is why I'd need to for the existance of an artauthor… Or how can I just grab the bibtex-type? \getcitedata[bibtype] doesn’t seem to return anything. I guess this should be quite easy for someone more experienced. TIA, Daniel \setupbibtex [database=sample] \setuppublications[alternative=apa] \def\MYauthor#1#2#3#4#5{#3} \def\specialcite#1[#2]% {\bgroup \getcitedata[author1][#2] to \mauthors \getcitedata[artauthor1][#2] to \martauthors \getcitedata[arttitle][#2] to \marttitle \getcitedata[title][#2] to \mtitle \getcitedata[bibtype][#2] to \mbibtype \doifsomethingelse{\marttitle}{\marttitle}{\mtitle} % This works % % Pseudo-Code: \doifsomethingelse{\martauthors}{\martauthors}{\mauthors} % This, of course, doesn't \mbibtype % This neither \egroup} \starttext \cite[hh2010a] \cite[Eijkhout1991] \specialcite[hh2010a] \specialcite[Eijkhout1991] \stoptext [1] http://www.mail-archive.com/ntg-context@ntg.nl/msg55534.htm ___ 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] author-title cite command
Sorry, got the wrong URL. That's the right one: http://article.gmane.org/gmane.comp.tex.context/68200/ Am 03.08.12 14:44, schrieb Daniel Schopper: Dear list, I'm trying to come to grips with creating a customized author-title cite command, based on this[1] thread. I was wondering how I can check on the value of the [artauthor] or [author] fields extracted by \getcitedata? Eventually I'd need a footnote citation style that prints a full citation for the first reference and then uses a author-title style for the subsequent ones: For @incollection only author and title of the article, for @book the author and title of the book. Which is why I'd need to for the existance of an artauthor… Or how can I just grab the bibtex-type? \getcitedata[bibtype] doesn’t seem to return anything. I guess this should be quite easy for someone more experienced. TIA, Daniel \setupbibtex [database=sample] \setuppublications[alternative=apa] \def\MYauthor#1#2#3#4#5{#3} \def\specialcite#1[#2]% {\bgroup \getcitedata[author1][#2] to \mauthors \getcitedata[artauthor1][#2] to \martauthors \getcitedata[arttitle][#2] to \marttitle \getcitedata[title][#2] to \mtitle \getcitedata[bibtype][#2] to \mbibtype \doifsomethingelse{\marttitle}{\marttitle}{\mtitle} % This works % % Pseudo-Code: \doifsomethingelse{\martauthors}{\martauthors}{\mauthors} % This, of course, doesn't \mbibtype % This neither \egroup} \starttext \cite[hh2010a] \cite[Eijkhout1991] \specialcite[hh2010a] \specialcite[Eijkhout1991] \stoptext [1] http://www.mail-archive.com/ntg-context@ntg.nl/msg55534.htm ___ 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 ___ ___ 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] checkparameters and current beta (20120802)
Hi, \checkparameters seems broken in the current beta. The following example used to work at least with version 2012.06.13 - \def\myCom[#1]{% \checkparameters[#1] \ifparameters \getparameters[do][one=1,two=2,#1] \doone\ \dotwo \else #1 \fi } \starttext \myCom[one] \myCom[one=one,two=two] \stoptext - … while with the current beta (2012.08.02) it results in: system tex error on line 11 in file testcheckparameters.tex: Undefined control sequence ... 1 \def\myCom[#1]{% 2 \checkparameters[#1] 3 \ifparameters 4 \getparameters[do][one=1,two=2,#1] 5 \doone\ \dotwo 6 \else 7 #1 8 \fi 9 } 10 \starttext 11 \myCom[one] 12 13 \myCom[one=one,two=two] 14 \stoptext \checkparameters ..._helpers_get_empty_parameters #1=@@\_e_o_s_ \myCom [#1]-\checkparameters [#1] \ifparameters \getparameters [do][one=1,t... l.11 \myCom[one] Thanks in advance, Daniel ___ 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] inheritance of footnotes
dear list, until some months ago it was possible to define/setup a series of notes and then use them as kind of interface, i.e. to let their copies inherit their setups yet be independent sets of notes – However now such copies seem to be get mereley added to the set of notes they are based upon. -- In the following minimal example none of the notes get printed when the first series of notes are not placed; on the other hand their respective \placenotes-commands are completely ignored. Thanks in advance! Daniel \definenote[first] \setupnote[first][location=text] \setupnotation[first][number=no] \definenote[second][first] \definenote[third][first] \starttext That’s my first par.\first{First note set} That’s my second par.\second{Second note set} That’s my third par.\third{Third noteset} \page %\placenotes[first]% all notes get printed when this is not commented \placenotes[second] % those are ignored \placenotes[third]% those are ignored \stoptext I'm sure I' missing some new mechanism ... or do I have to set them up each one of them?! This seems a bit cumbersome to me … \definenote[first] \definenote[second] \definenote[third] \setupnote[first][location=text] \setupnote[second][location=text] \setupnote[third][location=text] \setupnotation[first][number=no] \setupnotation[second][number=no] \setupnotation[third][number=no] \starttext That’s my first par.\first{First note set} That’s my second par.\second{Second note set} That’s my third par.\third{Third noteset} \page \placenotes[first] \placenotes[second] \placenotes[third] \stoptext -- Daniel Schopper Jahngasse 30/7 1050 Wien mobil. +43 676 4302747 tel. +43 1 5851767 mail. daniel.schop...@aon.at ___ 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] nesting commands with optional arguments
Dear list, I have a question concerning nesting commands with optional arguments. I'm trying to put a command with an optional argument inside the optional argument of another one … For sure this is just a simple expansion problem but I have no clue how to handle this … Thanks for any hints! Daniel Please consider the following minimal example: \def\one{\dosingleempty\doOne} \def\doOne[#1]{% in 1st: \doifsomethingelse{#1}{#1}{no arg}\par% } \def\two{\dosingleempty\doTwo} \def\doTwo[#1]{% in 2nd: \doifsomethingelse{#1}{#1}{no arg}\par% } \def\three#1{in 3rd: #1\par} \starttext \one\two \blank \one[\three{myArg}] \blank \one[\two[Argument]] \stoptext This is what I get: ! Use of \doOne doesn't match its definition. system tex error on line 18 in file testOpt.tex: Use of ... \doifnextoptionalelse ...xt_optional_command_yes { #1}\def \next_optional_com... argument \two [Argument \doifsomethingelse #1-\edef \!!stringa {#1 }\ifx \!!stringa \empty \expandaf... \doOne [#1]-in 1st: \doifsomethingelse {#1} {#1}{no arg}\par l.18 \one[\two[Argument] ] ___ 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] nesting commands with optional arguments
Of course, should have tried that … thanks! btw. since when is this working? (I tried it with a pretty old minimal from 2011-08, where I got this error) Am 28.03.12 16:51, schrieb Hans Hagen: On 28-3-2012 16:49, Daniel Schopper wrote: Dear list, I have a question concerning nesting commands with optional arguments. I'm trying to put a command with an optional argument inside the optional argument of another one … For sure this is just a simple expansion problem but I have no clue how to handle this … Thanks for any hints! Daniel Please consider the following minimal example: \def\one{\dosingleempty\doOne} \def\doOne[#1]{% in 1st: \doifsomethingelse{#1}{#1}{no arg}\par% } \def\two{\dosingleempty\doTwo} \def\doTwo[#1]{% in 2nd: \doifsomethingelse{#1}{#1}{no arg}\par% } \def\three#1{in 3rd: #1\par} \starttext \one\two \blank \one[\three{myArg}] \blank \one[\two[Argument]] \stoptext \one[{\two[Argument]}] - 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 endnotes throws a missing number error
Thanks, it’s working now! Am 21.09.11 13:06, schrieb Wolfgang Schuster: Am 20.09.2011 um 21:14 schrieb Daniel Schopper: Dear list, I’m running into a strange issue with endnotes. I seem to hit a limit of how many endnotes I can place in a document - although there are only 52 of them in the document. Recursing the following minimal example 12 times works fine on my machine (using today’s beta 2011.09.20 00:09) Any clues? Thanks in advance! Daniel Here’s an example: - \definenote[myFirstEndnote][endnote] \definenote[mySecondEndnote][endnote] \definenote[myThirdEndnote][endnote] \definenote[myFourthEndnote][endnote] \starttext \dorecurse{13}{ \myFirstEndnote{endnote} \input tufte \mySecondEndnote{endnote} \input tufte \myThirdEndnote{endnote} \input tufte \myFourthEndnote{endnote} \input tufte } \page \placenotes[myFirstEndnote] \placenotes[mySecondEndnote] \placenotes[myThirdEndnote] \placenotes[myFourthEndnote] \stoptext Use \placenotes[…][height=\textheight]. 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 ___ ___ 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] placing endnotes throws a missing number error
Dear list, I’m running into a strange issue with endnotes. I seem to hit a limit of how many endnotes I can place in a document - although there are only 52 of them in the document. Recursing the following minimal example 12 times works fine on my machine (using today’s beta 2011.09.20 00:09) Any clues? Thanks in advance! Daniel Here’s an example: - \definenote[myFirstEndnote][endnote] \definenote[mySecondEndnote][endnote] \definenote[myThirdEndnote][endnote] \definenote[myFourthEndnote][endnote] \starttext \dorecurse{13}{ \myFirstEndnote{endnote} \input tufte \mySecondEndnote{endnote} \input tufte \myThirdEndnote{endnote} \input tufte \myFourthEndnote{endnote} \input tufte } \page \placenotes[myFirstEndnote] \placenotes[mySecondEndnote] \placenotes[myThirdEndnote] \placenotes[myFourthEndnote] \stoptext - … this leads to a missing number error: ! Missing number, treated as zero. system tex error on line 106 in file enTest.tex: Missing number, treated as zero ... to be read again f \v!fit -f it \dochecknote ...\dimexpr \noteparameter \c!height *\scratchcounter \relax \f... \doprocesssomenote ...n \currentnote \dochecknote \ifbottomnotes \else \done... \dopagecontents ...tomnotes \else \donefalse \fi } \ifcase \kindofpagetextare... \normalsettextpagecontent ... \dopagecontents #2#3 }}\dp #1\zeropoint \setbox... ... l.22 ___ 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] combining character (unicode 0364)
anyway, if it fails, in order to check it we need a complete example + font of course, sorry! here it is the minimal example and the typescript (which is based on the one by Wolfgang Schuster). please find the font attached. Thanks! \usetypescript[djajunicode] \setupbodyfont[djajunicode,18pt] \starttext combined characters: aͤoͤuͤ\par precomposed letters: \stoptext % DJA Junicode typescript, based on Wolfgang Schuster’s type-junicode.tex \definefontfeature[default][% script=latn, mode=node, mark=yes, mkmk=yes, liga=yes, % dlig=yes, % hlig=yes, ccmp=yes, calt=yes, locl=yes ] \starttypescript [serif] [djajunicode] \setups[font:fallback:serif] \definefontsynonym [Serif] [DJA-Junicode-Regular] [features=default] \definefontsynonym [SerifItalic] [DJA-Junicode-Italic] [features=default] \definefontsynonym [SerifBold] [DJA-Junicode-Bold] [features=default] \definefontsynonym [SerifBoldItalic] [DJA-Junicode-BoldItalic] [features=default] \stoptypescript \starttypescript [serif] [djajunicode] \definefontsynonym [DJA-Junicode-Regular] [name:djajunicoderegular][features=default] \definefontsynonym [DJA-Junicode-Italic] [name:djajunicodeitalic] [features=default] \definefontsynonym [DJA-Junicode-Bold] [name:djajunicodebold] [features=default] \definefontsynonym [DJA-Junicode-BoldItalic] [name:djajunicodeBoldItalic] [features=default] \stoptypescript \starttypescript [djajunicode] \definetypeface [djajunicode] [rm] [serif] [djajunicode] [default] \definetypeface [djajunicode] [mm] [math] [xits] [default] \quittypescriptscanning \stoptypescript \endinput Am 15.06.11 09:58, schrieb Hans Hagen: On 15-6-2011 8:51, Daniel Schopper wrote: Hi, ok, I checked the font in indesign (well…) and there the positioning worked as expected. I’ll update ConTeXt, hopefully that helps… anyway, if it fails, in order to check it we need a complete example + font 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] combining character (unicode 0364)
Ok, I updated again and this works now beautifully in the current beta 2011.06.16. 00:34. Thanks a lot! Daniel Am 16.06.11 10:35, schrieb Hans Hagen: On 16-6-2011 10:18, Daniel Schopper wrote: \usetypescript[djajunicode] \setupbodyfont[djajunicode,18pt] \starttext combined characters: aͤoͤuͤ\par precomposed letters: \stoptext % DJA Junicode typescript, based on Wolfgang Schuster’s type-junicode.tex \definefontfeature[default][% script=latn, mode=node, mark=yes, mkmk=yes, liga=yes, % dlig=yes, % hlig=yes, ccmp=yes, calt=yes, locl=yes ] \starttypescript [serif] [djajunicode] \setups[font:fallback:serif] \definefontsynonym [Serif] [DJA-Junicode-Regular] [features=default] \definefontsynonym [SerifItalic] [DJA-Junicode-Italic] [features=default] \definefontsynonym [SerifBold] [DJA-Junicode-Bold] [features=default] \definefontsynonym [SerifBoldItalic] [DJA-Junicode-BoldItalic] [features=default] \stoptypescript \starttypescript [serif] [djajunicode] \definefontsynonym [DJA-Junicode-Regular] [name:djajunicoderegular] [features=default] \definefontsynonym [DJA-Junicode-Italic] [name:djajunicodeitalic] [features=default] \definefontsynonym [DJA-Junicode-Bold] [name:djajunicodebold] [features=default] \definefontsynonym [DJA-Junicode-BoldItalic] [name:djajunicodeBoldItalic] [features=default] \stoptypescript \starttypescript [djajunicode] \definetypeface [djajunicode] [rm] [serif] [djajunicode] [default] \definetypeface [djajunicode] [mm] [math] [xits] [default] \quittypescriptscanning \stoptypescript \endinput with the junicode downloaded from ctan, and using: \definefontfeature [default] [script=latn, mode=node, mark=yes, mkmk=yes, liga=yes, % dlig=yes, % hlig=yes, ccmp=yes, calt=yes, locl=yes] \starttypescript [serif] [djajunicode] \setups[font:fallback:serif] \definefontsynonym [Serif] [Junicode-Regular] [features=default] \definefontsynonym [SerifItalic] [Junicode-Italic] [features=default] \definefontsynonym [SerifBold] [Junicode-Bold] [features=default] \definefontsynonym [SerifBoldItalic] [Junicode-BoldItalic] [features=default] \stoptypescript \starttypescript [serif] [djajunicode] \definefontsynonym [Junicode-Regular] [file:junicoderegular] [features=default] \definefontsynonym [Junicode-Italic] [file:junicodeitalic] [features=default] \definefontsynonym [Junicode-Bold] [file:junicodebold] [features=default] \definefontsynonym [Junicode-BoldItalic] [file:junicodeBoldItalic] [features=default] \stoptypescript \starttypescript [djajunicode] \definetypeface [djajunicode] [rm] [serif] [djajunicode] [default] \definetypeface [djajunicode] [mm] [math] [xits] [default] \quittypescriptscanning \stoptypescript \setupbodyfont[djajunicode,18pt] \starttext combined characters: aͤoͤuͤ\par precomposed letters: \stoptext I get two times aou with e's on top. I also get a message about an unsupported coverage contextsub which I will look into. 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] combining character (unicode 0364)
Hi, ok, I checked the font in indesign (well…) and there the positioning worked as expected. I’ll update ConTeXt, hopefully that helps… Thanks for the hints! Am 15.06.11 08:20, schrieb Mojca Miklavec: On Wed, Jun 15, 2011 at 00:38, Daniel Schopper wrote: Hi Mojca, indicated by the anchor… so I guess that has to be some issue with the font… You can try if XeTeX positions the accent properly if you want to test the font (XeTeX is at least a bit more reliable to do it properly and it has the feature enabled by default). \font\a=YourFont.otf \a your-sequence-with-combining-characters (By the way, I’m using mkiv beta, 2011.04.13) I suspect that the version you are using might be too old anyway. Back in May the feature conditionally worked for me in ConTeXt MKIV. Whenever there were some kind of boxes included, alignment was destroyed. 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] combining character (unicode 0364)
Dear list, a question concerning combining characters: I try to make a letter out of a small elevated „e“ (unicode 0364, combining latin small letter e) with „a“, „o“ and „u“ using Junicode with Wolfgang Schuster’s typescript. In Fontforge the mark positioning lookup looks good to me, but ConTeXt somehow seems to ignore the anchors in the font. The „mark“-feature is enabled in the typescript. Maybe someone can give me a hint how to get this working? Thanks in advance! Daniel ___ 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] combining character (unicode 0364)
Hi Mojca, thanks for the answer! By now I’ve enabled: \definefontfeature[default][% script=latn, mode=node, mark=yes, mkmk=yes, liga=yes, ccmp=yes, calt=yes, locl=yes ] but still the combining character doesn’t get attached to the position indicated by the anchor… so I guess that has to be some issue with the font… (By the way, I’m using mkiv beta, 2011.04.13) Thanks anyway! Daniel Am 14.06.11 22:12, schrieb Mojca Miklavec: On Tue, Jun 14, 2011 at 21:11, Daniel Schopper wrote: Dear list, a question concerning combining characters: I try to make a letter out of a small elevated „e“ (unicode 0364, combining latin small letter e) with „a“, „o“ and „u“ using Junicode with Wolfgang Schuster’s typescript. In Fontforge the mark positioning lookup looks good to me, but ConTeXt somehow seems to ignore the anchors in the font. The „mark“-feature is enabled in the typescript. Maybe someone can give me a hint how to get this working? Thanks in advance! You need at least mode=node,mark=yes features enabled. 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] endnotes/critical apparatus
Great! Thanks a lot, Wolfgang! Yet… I have some other questions: - What about a simplified \page inside the lemma (not really common, but anyway…)? Adding \appendtoks\def\page[#1]{}\to\simplifiedcommands is ignored. - How can I tweak the note mechanism to put the apparatus notes inside one single paragraph, concatenated by some arbitrary separator (\quad or -- or something similar)? (Eventually I‘d like the lemmatas which appear on the same page to be grouped in a paragraph) - I guess it should be somewhere in strc-not.mkiv but must have missed it… Thanks again for the effort! Daniel minimal example: \def\doifelsesamepagereference#1#2% {\doifelse {\doifreferencefoundelse{#1}{\currentreferencepage}{-}} {\doifreferencefoundelse{#2}{\currentreferencepage}{+}} } \define[2]\Apparatus {\ifdefined\ApparatusCounter \doglobal\increment\ApparatusCounter \else \doglobal\newcounter\ApparatusCounter \fi \pagereference[apparatus:startpage:\ApparatusCounter]% \startline[apparatus:line:\ApparatusCounter]{#1}\stopline[apparatus:line:\ApparatusCounter]% \pagereference[apparatus:stoppage:\ApparatusCounter] \expanded{ \endnote{ {\bf\at[apparatus:startpage:\ApparatusCounter]% \noexpand\doifelsesamepagereference{apparatus:startpage:\ApparatusCounter}{apparatus:stoppage:\ApparatusCounter}{}{-\at[apparatus:stoppage:\ApparatusCounter]}}% /\noexpand\inline{{}}[apparatus:line:\ApparatusCounter]~% {\noexpand\simplifycommands #1}]~{#2} } }% } \setuplinenumbering[ method=page, distance=0.3em ] \appendtoks\def\blackrule[#1]{}\to\simplifiedcommands \appendtoks \def\crlf{/}\to\simplifiedcommands \appendtoks \def\bf{}\to\simplifiedcommands \appendtoks\def\page[#1]{\textbar\textbar}\to\simplifiedcommands %\setuplabeltext[en][lines=,line=] \setupnote [endnote] [textcommand=\gobbleoneargument, command=\gobbleoneargument, n=2] \starttext \startlinenumbering That’s a \Apparatus{\bf qui\crlf te \page long lemma}{That’s a variant reading…}.\crlf And here comes \Apparatus{another one}{the second one}. \stoplinenumbering \placenotes[endnote] \stoptext Am 19.05.11 23:23, schrieb Wolfgang Schuster: Am 19.05.2011 um 17:42 schrieb Daniel Schopper: Dear list, I’m fiddling around with a simple apparatus for critical editions with endnotes. For now this is working ok - but I’m wondering if somebody could advise me on some aspects of it (see below). Here’s a minimal example: […] Now, this is obviously a really primitive approach (I’m still learning…) which I’d like to improve in some ways: - How can I get rid of the blackrule in the apparatus? \noexpand\let\blackrule[#1]=\noexpand\relax throws an error (You can't use `macro parameter character #' in vertical mode.) while \noexpand\let\blackrule=\noexpand\relax eliminates the rule but simply prints the arguments in the square brackets. (Same holds true for every macro with arguments.) You can use \simplifycommands, see my example below. - What to do if I’d want to gobble \crlf or \par in the lemma while using them as separators after each apparatus entry? I tried to \let them to \relax, which ends in luatex getting stuck when it tries to import the .en-file. - How could I reset gobbled commands like \bf to their original meaning (I’d like to ignore \bf inside a lemma but still be able to have bold page numbers at the beginning of the apparatus entry)? I’m sure there are much more elegant ways to do this (probably in lua?), maybe someone could provide me with a hint where to start from? You can use contexts own note mechanism to collect the data and place them later in your document. \define[2]\Apparatus {\ifdefined\ApparatusCounter \doglobal\increment\ApparatusCounter \else \doglobal\newcounter\ApparatusCounter \fi \pagereference[apparatus:page:\ApparatusCounter]% \startline[apparatus:line:\ApparatusCounter]{#1}\stopline[apparatus:line:\ApparatusCounter]% \begingroup\simplifycommands \expanded{\endnote{\at[apparatus:page:\ApparatusCounter]/\noexpand\inline[apparatus:line:\ApparatusCounter]~{#1}]~{#2}}}% \endgroup} \appendtoks\def\blackrule[#1]{}\to\simplifiedcommands \appendtoks \def\crlf{}\to\simplifiedcommands \appendtoks \def\bf{}\to\simplifiedcommands \setuplabeltext[en][lines=,line=] \setupnote [endnote] [textcommand=\gobbleoneargument, command=\gobbleoneargument] \starttext \startlinenumbering That’s a \Apparatus{\bf lemma}{That’s a variant reading…}. \input tufte But then there’s a blackrule \Apparatus{\blackrule[width=5cm]\crlf and a linebreak}{-- which we don’t want to repeat in the apparatus.}. \stoplinenumbering \placenotes[endnote] \stoptext Wolfgang
[NTG-context] endnotes/critical apparatus
Dear list, I’m fiddling around with a simple apparatus for critical editions with endnotes. For now this is working ok - but I’m wondering if somebody could advise me on some aspects of it (see below). Here’s a minimal example: \newwrite\enotes \newread\readenotes \immediate\openout\enotes = \jobname.en \immediate\write\enotes{ % \noexpand\let\noexpand\stretchednormalcase=\noexpand\relax \noexpand\let\noexpand\tfc=\noexpand\relax \noexpand\let\noexpand\bf=\noexpand\relax % \noexpand\let\par=\noexpand\relax % seems to make luatex hang? } \newcount\entrycounter \entrycounter=0 \setuplabeltext[en][lines=,line=] \def\enseparator{\crlf} \long\def\appEntry#1#2{ \expandafter\startline[line:\the\entrycounter]% \expandafter\pagereference[page:\the\entrycounter]% {#1} \expandafter\stopline[line:\the\entrycounter]% \immediate\write\enotes{% {\expandafter\at[page:\the\entrycounter]}/{\noexpand\csname inline\expandafter\endcsname[line:\the\entrycounter]}~{#1}] {#2}\enseparator% }% \global\advance\entrycounter by 1\relax } \def\printendnotes{ \immediate\closeout\enotes \page[right] \expandafter\input\jobname.en } \starttext \startlinenumbering That’s a \appEntry{\bf lemma}{That’s a variant reading…}. \input tufte\crlf But then there’s a blackrule \appEntry{\blackrule[width=5cm]\crlf and a linebreak}{-- which we don’t want to repeat in the apparatus.}. \stoplinenumbering \printendnotes \stoptext Now, this is obviously a really primitive approach (I’m still learning…) which I’d like to improve in some ways: - How can I get rid of the blackrule in the apparatus? \noexpand\let\blackrule[#1]=\noexpand\relax throws an error (You can't use `macro parameter character #' in vertical mode.) while \noexpand\let\blackrule=\noexpand\relax eliminates the rule but simply prints the arguments in the square brackets. (Same holds true for every macro with arguments.) - What to do if I’d want to gobble \crlf or \par in the lemma while using them as separators after each apparatus entry? I tried to \let them to \relax, which ends in luatex getting stuck when it tries to import the .en-file. - How could I reset gobbled commands like \bf to their original meaning (I’d like to ignore \bf inside a lemma but still be able to have bold page numbers at the beginning of the apparatus entry)? I’m sure there are much more elegant ways to do this (probably in lua?), maybe someone could provide me with a hint where to start from? Thanks in advance, Daniel ___ 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] dashed underbar
Sorry to bother you again… Unfortunately this doesn't work out right in descriptions: after the first line the underlining starts at the left margin not with the other indented lines. Anything one can do about this? Thanks! \definetextbackground [dashed] [ location=text, framecolor=black, alternative=1, voffset=-1.2\strutdp, background=, frame=off, dash=1] \definedescription [desc] [ width=2em, headstyle=normal] \starttext \startdesc{Desc:}\startdashed\input ward\stopdashed\stopdesc \stoptext \definetextbackground [dashed] [ location=text, framecolor=black, alternative=1, voffset=-\strutdp, background=, frame=off, dash=1] \starttext \startdashed\input ward \stopdashed \stoptext ___ 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] dashed underbar
Dear all, I'm looking for a solution for dashed underlining. Hacking around I've come quite close, with the only problem that when the underlining begins at the start of a paragraph there gets an empty (grid) line inserted before it. See: \defineoverlay [backgraphics] [\positionoverlay{backgraphics}] \setupbackgrounds [page] [background={backgraphics}] \setupMPvariables[mpos:par][gridtype=1,gridshift=-0.5ex,gridwidth=0.1ex, gridcolor=black,fillcolor=white,linecolor=white] \newcount\dashulinecounter \dashulinecounter=1 \definestartstop[dashuline][before={\dostartdashuline},after={\dostopdashuline}] \def\dostartdashuline{% \startpositionoverlay{backgraphics}% \setMPpositiongraphic{b:uline:\the\dashulinecounter}{mpos:par}{self=uline:\the\dashulinecounter}% \stoppositionoverlay \fpos{uline:\the\dashulinecounter}% } \def\dostopdashuline{% \tpos{uline:\the\dashulinecounter}% \advance\dashulinecounter by 1% } \starttext No Line \startdashuline \dorecurse{20}{This is just a test. }\stopdashuline \par \startdashuline \dorecurse{20}{This is just a test. }\stopdashuline \stoptext I'm sure some of you know a simpler and more elegant solution that maybe allows even dotted underlining?! Or does anyone have a hint how to get rid of the empty line? Cheers, Daniel ___ 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] dashed underbar
Well, that was really simple… Any chance to get this working also with dots? (Where could I find more on those features? I guess anch-pgr.mkiv which seems quite complicated…) Thanks a lot! Am 05.04.11 22:29, schrieb Wolfgang Schuster: \definetextbackground [dashed] [ location=text, framecolor=black, alternative=1, voffset=-\strutdp, background=, frame=off, dash=1] \starttext \startdashed\input ward \stopdashed \stoptext ___ 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] compare locations of two pagereferences
Dear all, how can one compare the locations of two pagereferences for conditional processing? I tried it with this (mkiv, 2011.01.10): \starttext \pagereference[page:a]bla \pagereference[page:b]bla \at[page:a] % 1 \at[page:b] % also 1 \doifsamestringelse{\at[page:a]}{\at[page:b]}{same page}{different page} % yet, the else-branch gets executed \stoptext Of course this is clumsy, but although I tried to peek into strc-ref I couldn't quite sort out how to directly access the results of \at. Thanks Daniel ___ 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] \lgroup in mkIV
Just tried the new beta, works perfectly! Thank you very very much! Am 09.01.11 04:24, schrieb Aditya Mahajan: On Sat, 8 Jan 2011, Khaled Hosny wrote: On Sat, Jan 08, 2011 at 12:52:38PM -0500, Aditya Mahajan wrote: On Sat, 8 Jan 2011, Daniel Schopper wrote: Hi, are the delimiters \lgroup and \rgroup supported in MkIV? This \starttext $$\bigg\lgroup\dots\bigg\rgroup$$ \stoptext is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the delimiters are not shown. (By the way, the same holds true for \rmoustache and \lmoustache.) Am I missing something? No. The math mappings of virtual fonts are incomplete. The symbols should work correctly with unicode math fonts like cambria, asana, and xits. But, it appears that lgroup and rgroup are missing from xits (Khaled?) There are, but context is looking for the wring character; it is looking for U+3014 (which I think is a CJK bracket and does not look like \lgroup either) while it should be looking for U+27EE (whose Unicode annotation precisely says lgroup): \setupbodyfont[xits] \starttext $$\bigg\lgroup\dots\bigg\rgroup$$ \def\lgroup{\Udelimiter 4 0 27EE} \def\rgroup{\Udelimiter 4 0 27EF} $$\bigg\lgroup\dots\bigg\rgroup$$ \stoptext It was not extensible though, the version in git now grow, but starts with a relatively large size, check and tell me if it should be smaller. Looks OK to me, but I am not really an expert on the shapes of the symbols. Can you also make lmoustache and rmoustache extensible? Hans, I am attaching the patch for char-def.lua that corrects the location of lgroup and rgroup. I still do not know how to fix this for lm virtual math font. 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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \lgroup in mkIV
Hi, are the delimiters \lgroup and \rgroup supported in MkIV? This \starttext $$\bigg\lgroup\dots\bigg\rgroup$$ \stoptext is ok in MkII (ConTeXt ver: 2011.01.06) but when compiled with MkIV (ConTeXt ver: 2010.07.30 11:35 and ver: 2010.07.30 11:35) the delimiters are not shown. (By the way, the same holds true for \rmoustache and \lmoustache.) Am I missing something? Searching the list archive and the contextgarden unfortunately didn't bring up in anything. Thanks in advance, Daniel ___ 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] counter values as label names
Thomas and Aditya, thank you both for your replies! As Thomas already suspected it was a mere typo that \advance\entrycounter lied outside of the macro definition - sorry for the unnecessary confusion. I tried to compile Aditya's attempt (MKIV ver: 2010.12.31) but receive the following errors: references : unknown reference [][lr:b:line:0] ! Missing control sequence inserted. inserted text \inaccessible I am not sure what you want to do, My simple idea - being a total newbie to macro programming - was to create an automation of the following, in which the unique numbers in the label names would be inserted by a counter: \starttext \startlinenumbering This is a sample % % wrapper macro would start here \startline[line:1]\pagereference[page:1]lemma\stopline[line:1] \footnote{\at[page:1] \inline[line:1] some comment}% % and end here . \crlf And this is another \startline[line:2]\pagereference[page:2]one\stopline[line:2]\footnote{\at[page:2] \inline[line:2] another comment}. \crlf \stoplinenumbering \bigskip Endnotes \placefootnotes \stoptext But probably my whole approach is completely out of the (Con)TeXt-Way of thinking… (May it be possible to collect the endnotes into various buffers and recurse over them at the end?) Thanks for the hints, Daniel Am 03.01.11 23:23, schrieb Aditya Mahajan: On Mon, 3 Jan 2011, Daniel Schopper wrote: First of all thanks for the advice and sorry for my naïve posting! Here's a test file for what I try to do. The problem is that the page- and linenumbers printed by \placefootnotes all take the values of the last reference. \setupfootnotes[ location=text, numberconversion=empty, paragraph=, ] \newcount\entrycounter \entrycounter=0 \def\appentry#1#2{% \startline[line:\the\entrycounter]% \pagereference[page:\the\entrycounter]% #1% \stopline[line:\the\entrycounter]% \footnote{{\bf \at[page:\the\entrycounter]} \inline[line:\the\entrycounter] #1] #2}}% \advance\entrycounter by1% \starttext\startlinenumbering This is a sample \appentry{paragraph}{om. h1}.\\ An this is another \appentry{one}{sentence}. \stoplinenumbering \bigskip Endnotes \placefootnotes \stoptext Finally: is the format of your apparatus (endnotes) a requirement? Yes, unfortunately it is. I am not sure what you want to do, but the following at least increments the references (in MKIV) \setupfootnotes [ location=text, numberconversion=empty, paragraph=, ] \newcount\entrycounter \entrycounter=0 \def\appentry#1#2% {\expanded {\startline[line:\the\entrycounter]% \noexpand\pagereference[page:\the\entrycounter]% #1% \noexpand\stopline[line:\the\entrycounter]% \noexpand\footnote{{\bf \at[page:\the\entrycounter]} \inline[line:\the\entrycounter] #1 #2}}% \advance\entrycounter by 1\relax} \starttext \startlinenumbering This is a sample \appentry{paragraph}{om. h1}. \crlf An this is another \appentry{one}{sentence}. \stoplinenumbering \bigskip Endnotes \placefootnotes \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 : http://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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] counter values as label names
Dear list, this seems a really basic question (and probably not even strictly ConTeXt-focused) - so please accept my apologies… I'm trying to construct a macro which first creates two labels in the text (\start/stopline and \pagereference) with the value of a counter as the label name and then a footnote which prints the page and line numbers of those two. Supposedly because of my limited understanding of TeX's expansion mechanism I haven't been able to get things working with this code: \setuplinenumbering[% location=inner, step=5, method=page, style=\tfxx, align=left, distance=1.5cm, width=0.3cm] \setupfootnotes[ location=text, numberconversion=empty, paragraph=yes, ] \definenumber[entrycounter] \setnumber[entrycounter]{0} \def\appentry#1#2{% \startline[line:\getnumber[entrycounter]]% \pagereference[page:\getnumber[entrycounter]]% #1% \stopline[line:\getnumber[entrycounter]]% \footnote{{\bf \at[page:\getnumber[entrycounter]]}% \inline[line:\getnumber[entrycounter]] #1] #2}% \incrementnumber[entrycounter]% } By now I tried to adapt a LaTeX-only-solution which Uwe Lueck suggested on the texhax-mailinglist some years ago (cf. http://tug.org/pipermail/texhax/2006-July/006599.html) but failed quite miserably. I also tried the same with plain TeX registers (\newcount\entrycounter \entrycounter=0 etc.) instead of ConTeXt counters. Could it be easier to stuff the \pagereference and \startline-commands into before= and after= of setupfootnotes? Could anyone please give me a hint on this? The purpose of this: I'm trying to use mkIV's page and linenumbering facilities for a critical apparatus (in this case endnotes with page and line references). As I didn't succeed with Hans Hagen's recent suggestion (cf. http://www.mail-archive.com/ntg-context@ntg.nl/msg49695.html) I tried this quick and dirty way. Although it's far away from being perfect (in an ideal world the endnotes should be grouped into one paragraph per page and of course there would be more then one apparatus and so on) this seems to be a first approach to me… Cheers, Daniel ___ 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] counter values as label names
First of all thanks for the advice and sorry for my naïve posting! Here's a test file for what I try to do. The problem is that the page- and linenumbers printed by \placefootnotes all take the values of the last reference. \setupfootnotes[ location=text, numberconversion=empty, paragraph=, ] \newcount\entrycounter \entrycounter=0 \def\appentry#1#2{% \startline[line:\the\entrycounter]% \pagereference[page:\the\entrycounter]% #1% \stopline[line:\the\entrycounter]% \footnote{{\bf \at[page:\the\entrycounter]} \inline[line:\the\entrycounter] #1] #2}}% \advance\entrycounter by1% \starttext\startlinenumbering This is a sample \appentry{paragraph}{om. h1}.\\ An this is another \appentry{one}{sentence}. \stoplinenumbering \bigskip Endnotes \placefootnotes \stoptext Finally: is the format of your apparatus (endnotes) a requirement? Yes, unfortunately it is. Thanks again, Daniel ___ 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] line numbers - method=page
Ok, thanks for the info! Daniel Am 02.01.11 11:17, schrieb Thomas Schmitz: On Sun, 02 Jan 2011 00:34:12 +0100 Daniel Schopper daniel.schop...@aon.at wrote: I'm using ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.12.31 which should be the newest version available on http://tlcontrib.metatex.org/2010. You will have to use a more recent (beta) version. I have added a sentence to the wiki page explaining that. Thomas ___ 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 ___ -- Daniel Schopper Esterhazygasse 31/1/9 1060 Wien mobil. +43 676 4302747 tel. +43 1 5851767 mail. daniel.schop...@aon.at ___ 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] line numbers - method=page
Dear all, on trying to reproduce the TEI to ConTeXt example on http://wiki.contextgarden.net/TEI_xml I haven't been able to get the line numbering per page working right. I directly copy-pasted the relevant part of the seventh listing which goes like this: \setuplinenumbering[location=inner, step=5, method=page, style=\tfxx, align=left, distance=0.3em, width=0.3cm] - unfortunately to no avail. method=page isn't mentioned neither in the context manual nor in the wiki so I fear I'll have to find some workaround? Being a absolute newbie to ConTeXt I actually tried some primitive fiddling with variations of \setupheadertexts[\setcounter{linenumber}{0}] I'm using ConTeXt ver: 2010.07.30 11:35 MKIV fmt: 2010.12.31 which should be the newest version available on http://tlcontrib.metatex.org/2010. Any kind of help is highly appreciated! Please forgive me if there has been already mentioned a solution on this list which I missed… Thanks in advance! Daniel ___ 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 ___