Re: [NTG-context] typewriter style with Constantia
Hi Hans, I do not know the complexity of the under the hood working of font loading, but how about a a command to force the loading of fonts that are not loaded, yet: \forceloadingoffonts or \updatefontsnow or the like! would be a nice feature for such cases! regards Keith. Am 28.03.2014 um 11:49 schrieb Hans Hagen pra...@wxs.nl: On 3/28/2014 7:53 AM, Aditya Mahajan wrote: On Thu, 27 Mar 2014, Wolfgang Schuster wrote: Am 27.03.2014 um 16:21 schrieb Peter Münster pmli...@free.fr: Hi, With the following setup and ConTeXt version 2014.02.14 I got typewriter style: --8---cut here---start-8--- \definefontfamily[constantia][sans][Constantia] \setupbodyfont[constantia] \starttext normal and \type{mono} \stoptext --8---cut here---end---8--- But not with version 2014.03.25. What should I do to get typewriter style please? You have to specify a font for monospaced text and it’s better to set also a font for math. It would be nicer if the unset styles (in particular math) would fall back to the defaults. the problem is that font loading is delayed so it's not known at the right moment .. maybe i figure out something some day Hans ___ 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] links to external documents
On 4/2/2014 9:11 PM, Alan Bowen wrote: I am exploring the feasibility of presenting two interacting PDF files side by side. Thus far my experiments with \usereferences have managed only to produce a lua error: fixed in next beta (there can be more issues for a while as i'm cleanign up that code) btw, no .tex in: \at{page}[testA::firstpage] -- - 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] URL oddity
On 4/3/2014 4:14 AM, Rik Kabel wrote: Below are two MWEs. The only difference is with \setupinteraction. When the resulting link is copied from the pdf and pasted into a browser, one can see that there is a trailing / added to the interactive version, but not to the non-interactive version. For this url (and many others), that causes a 404 failure. Additional experimentation shows that a second / is not added when a trailing slash has been provided. This is not the case with TL2013. It is the case with 2014.03.28 15:04 MKIV beta. Why has the trailing slash added? Is this an intentional change? If so, is there a method to invoke the older behavior. \starttext \useURL[aurl][http://www.mieleusa.com/manuals_pdf/Residential/Ovens/H387-2_us.pdf] \from[aurl] \stoptext that's not done by context but the viewer (can be an annoying automatism btw) \setupinteraction[state=start] \starttext \useURL[aurl][http://www.mieleusa.com/manuals_pdf/Residential/Ovens/H387-2_us.pdf] \from[aurl] \stoptext fixed in next beta - 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] links to external documents
Thanks, Hans--for the new beta *and* the tip about the filename. Alan On Thu, Apr 3, 2014 at 4:47 AM, Hans Hagen pra...@wxs.nl wrote: On 4/2/2014 9:11 PM, Alan Bowen wrote: I am exploring the feasibility of presenting two interacting PDF files side by side. Thus far my experiments with \usereferences have managed only to produce a lua error: fixed in next beta (there can be more issues for a while as i'm cleanign up that code) btw, no .tex in: \at{page}[testA::firstpage] -- - 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 ___ ___ 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] Bugs in linenumbering ?
On 4/2/2014 3:17 PM, Stéphane Goujet wrote: Hello, Here is an example that highlights a few problems I have with linenumbering. When the line numbers are located in the margin, everything is fine. But when the number is located in the text: 1) Text overflows in the right margin. 2) Paragraph indenting does not work. We can even see a kind of right indentation appear. 1+2 = First line of the paragraph is too short, netx ones are too long. 3) linenumbering does not work within footnotes (neither with line numbers in margin nor in text). Perhaps (3) is not implemented, but I suppose (1) and (2) are not the expected behaviour. == \setuppapersize[A4] \setupindenting[yes,first,medium] \definelinenumbering[lnbasic] \definelinenumbering[lntext] \definelinenumbering[lntextandnullwidth] \definelinenumbering[lntextandwidth] \setuplinenumbering[lnbasic][] \setuplinenumbering[lntext][location=text] \setuplinenumbering[lntextandnullwidth][location=text,width=0pt] \setuplinenumbering[lntextandwidth][location=text,width=.75em] \starttext {\bf A normal paragraph for reference}. \input tufte \startlinenumbering[lnbasic] {\bf Numbers in margin : correct right margin, paragraph indentation.} \input tufte \stoplinenumbering \startlinenumbering[lntext] {\bf Numbers in text, default width : overflow, no indentation of the first line but some kind of right indentation!} \input tufte \stoplinenumbering \startlinenumbering[lntextandnullwidth] {\bf Numbers in text, 0 width : no overflow but overtype on numbers, same problem with indentation.} \input tufte \stoplinenumbering \startlinenumbering[lntextandwidth] {\bf Numbers in text, average width : average overflow, same problem with indentation.} \input tufte \stoplinenumbering It also affects the previous lines when {em line numbering} starts from the middle of the line and not on a new paragraph. \startlinenumbering[lntext] {\bf Numbers in text, default width : overflow, no indentation of the first line but some kind of right indentation!} \input tufte \stoplinenumbering Line numbering does not work in footnotes\footnote{ \startlinenumbering[lnbasic] {\bf Numbers in margins.} \input tufte \stoplinenumbering } \footnote{ \startlinenumbering[lntext] {\bf Numbers in text.} \input tufte \stoplinenumbering }. \stoptext you probably didn't test with the beta because most looks ok i've added support for notes (somewhat tricky) \starttext Here we have a footnote \footnote{% \startlinenumbering \input tufte \par % somehow needed \stoplinenumbering } \stoptext with respect to text: you need to go narrower or set the distance to (e.g.) -1cm - 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] Bug in ligature lookup
I do not know, why the mailing-list shows question-marks here, in my mailing programm this unicode symbol is correctly shown. To be sure, I attached an text-file with the word in it, s.t. everybody should be able to test this bug. Did that work now? Huseyin Am 02.04.2014 10:50, schrieb "H. Özoguz": Hi, used font: http://fonts.qurancomplex.gov.sa/wp-content/uploads/2012/06/UthmanTN1-Ver10.zip Minexample: \definefont[uthm][file:UthmanTN1Ver10*arabic at 20pt] \starttext \uthm \setupalign[r2l] \stoptext You see, that the letters are not connected, it should be look like the attached image with this ligature. In the image you see the same font and the same above unicode-text, but rendered with CorelDraw instead. So it may or may not be a font-issue, but solvable in ConText? Thanks. Huseyin كَلَّآ___ 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] \definelabel -- location
The documentation has an example for placing a label in the margin, but it doesn't work, it is still in the text: \definelabel[video][text=Video,location=inmargin] \starttext The label\video\ (Video 1) is not in the margin \stoptext or did I misunderstand the meaning of location? current minimal Herbert ___ 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] label in Metapost
Ten years ago I made a book with ConText and some Metapost. I made a circle and wrote the number into it: \startuseMPgraphic{Pagenumber} defaultfont := pxb; defaultscale := 1.5; fill fullcircle scaled 36pt withcolor .75white; numeric i; string pagex; i := PageNumber; pagenum = decimal i; label( pagenum, center currentpicture) withcolor black; \stopuseMPgraphic label does not write the number into the circle - years ago this was working. What changed in new Metapost? How can I get the number into the circle? ___ 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] links to external documents
Hi, Hans-- The new beta now processes without interruption but does not actually collect and display the reference. All I get right now is: page note rather than page 1 note 1 The setup (revised)-- %testA.tex \starttext text text.\reference[firstpage]{} text text.\footnote[fnote]{A note.} \stoptext %LinkTest.tex \setupinteraction[state=start] \useexternaldocument[testA.tex] \usereferences[testA.tex] \starttext \at{page}[testA::firstpage] \in{note}[testA::fnote] \stoptext Alan On Thu, Apr 3, 2014 at 6:25 AM, Alan Bowen bowenala...@gmail.com wrote: Thanks, Hans--for the new beta *and* the tip about the filename. Alan On Thu, Apr 3, 2014 at 4:47 AM, Hans Hagen pra...@wxs.nl wrote: On 4/2/2014 9:11 PM, Alan Bowen wrote: I am exploring the feasibility of presenting two interacting PDF files side by side. Thus far my experiments with \usereferences have managed only to produce a lua error: fixed in next beta (there can be more issues for a while as i'm cleanign up that code) btw, no .tex in: \at{page}[testA::firstpage] -- - 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 ___ ___ 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] Bugs in linenumbering ?
On 04/03/2014 04:19 PM, Hans Hagen wrote: On 4/2/2014 3:17 PM, Stéphane Goujet wrote: 3) linenumbering does not work within footnotes (neither with line numbers in margin nor in text). i've added support for notes (somewhat tricky) Sorry, but I cannot refrain from asking: how about having line numbers in \setupnote and being optional to have different or the same counting than the rest of the page? Pablo -- http://www.ousia.tk ___ 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] bug with head in indices
Hans, I’m afraid that the last beta (from today) introduced a bug that prevents heads to be generated with indices. The minimal sample: \starttext \index{æ}ae \chapter{Index place} \placeindex %~ \completeindex \stoptext It doesn’t work either with \placeindex or \completeindex. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] Bugs in linenumbering ?
Le Thu, 03 Apr 2014 16:19:18 +0200, Hans Hagen pra...@wxs.nl a écrit : you probably didn't test with the beta because most looks ok Dammit, you are right. And yet I was using fairly recent versions (25/03 and 27/03). with respect to text: you need to go narrower or set the distance to (e.g.) -1cm It seems I can indeed get nice results with \setuplinenumbering[location=text] \startnarrower[left] \startlinenumbering Thanks ! i've added support for notes (somewhat tricky) \starttext Here we have a footnote \footnote{% \startlinenumbering \input tufte A few numbers : 012345679. \par % somehow needed \stoplinenumbering } \stoptext Thank you again. To annoy you one more time, still one thing : the font size of the line numbers is the one of the main text, no the smaller one that numbers should have in the footnote part (just add a few numbers in the footnote text to compare easily). Faithfully yours, Stéphane. ___ 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] [luatex-plain] disappearing math-on node
Hi, This is a bug report based on the issue discussed at https://github.com/lualatex/luaotfload/issues/212 \font\tenrm{file:lmroman10-regular.otf:mode=node;script=latn}\tenrm \setbox0\vbox{% x\penalty-1 $a$x$a$ } \unvbox0 \setbox0\lastbox \unhbox0 \end The plain tex code shown above fails with a lua error: luatex-fonts-merged.lua:9616: attempt to index local 'current' (a nil value) My guess is: as math-on (math-off too) is a discardable item after a linebreak, the first math-on node has gone away. So the math-on/math-off pair has become broken, by which the behavior of node.end_of_math is confused. Regards, -- Dohyun Kim Seoul, Republic of Korea ___ 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] Bugs in linenumbering ?
On 2014-04-03 13:16, Stéphane Goujet wrote: Le Thu, 03 Apr 2014 16:19:18 +0200, Hans Hagen pra...@wxs.nl a écrit : you probably didn't test with the beta because most looks ok Dammit, you are right. And yet I was using fairly recent versions (25/03 and 27/03). with respect to text: you need to go narrower or set the distance to (e.g.) -1cm It seems I can indeed get nice results with \setuplinenumbering[location=text] \startnarrower[left] \startlinenumbering Thanks ! i've added support for notes (somewhat tricky) \starttext Here we have a footnote \footnote{% \startlinenumbering \input tufte A few numbers : 012345679. \par % somehow needed \stoplinenumbering } \stoptext Thank you again. To annoy you one more time, still one thing : the font size of the line numbers is the one of the main text, no the smaller one that numbers should have in the footnote part (just add a few numbers in the footnote text to compare easily). As to the size in footnotes, try: \definelinenumbering[fntext] \setuplinenumbering[fntext][style=\ssxx] or similar. However, for the general case, there is still an issue with linenumbering that begins after the beginning of a paragraph. The work-around of \startnarrower cannot help in this case, since it appears to always start a new paragraph. Thus, it cannot be used to reproduce the form of quotation we are trying to replicate (from Thomas Bowdler, The Family Shakespeare, 1807): ___ 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] Bugs in linenumbering ?
Le Thu, 03 Apr 2014 13:01:04 -0400, Rik Kabel cont...@rik.users.panix.com a écrit : However, for the general case, there is still an issue with linenumbering that begins after the beginning of a paragraph. The work-around of \startnarrower cannot help in this case, since it appears to always start a new paragraph. Have you tried \startnarrower[before=] ? I haven't yet, but I will go back to it soon. ___ 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] [luatex-plain] disappearing math-on node
On 4/3/2014 6:29 PM, Dohyun Kim wrote: Hi, This is a bug report based on the issue discussed at https://github.com/lualatex/luaotfload/issues/212 \font\tenrm{file:lmroman10-regular.otf:mode=node;script=latn}\tenrm \setbox0\vbox{% x\penalty-1 $a$x$a$ } \unvbox0 \setbox0\lastbox \unhbox0 \end The plain tex code shown above fails with a lua error: luatex-fonts-merged.lua:9616: attempt to index local 'current' (a nil value) My guess is: as math-on (math-off too) is a discardable item after a linebreak, the first math-on node has gone away. So the math-on/math-off pair has become broken, by which the behavior of node.end_of_math is confused. mtxrun --script plain test.tex runs ok here so i need an example that fails with context or luatex-plain normally the font callback is called on a hlist and there are always paired math nodes (what is line 9616 in the current beta?) If indeed the end_of_math is a problem i can remove that optimiziation in the generic code 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] bug with head in indices
On 4/3/2014 5:56 PM, Pablo Rodriguez wrote: Hans, I’m afraid that the last beta (from today) introduced a bug that prevents heads to be generated with indices. The minimal sample: \starttext \index{æ}ae \chapter{Index place} \placeindex %~ \completeindex \stoptext It doesn’t work either with \placeindex or \completeindex. in fact all text preceding mixed columns was gone .. side effect of playing with numbered (commented flush) fixed - 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] Bugs in linenumbering ?
Le Thu, 03 Apr 2014 13:01:04 -0400, Rik Kabel cont...@rik.users.panix.com a écrit : On 2014-04-03 13:16, Stéphane Goujet wrote: Le Thu, 03 Apr 2014 16:19:18 +0200, Hans Hagen pra...@wxs.nl a écrit : with respect to text: you need to go narrower or set the distance to (e.g.) -1cm It seems I can indeed get nice results with \setuplinenumbering[location=text] \startnarrower[left] \startlinenumbering i've added support for notes (somewhat tricky) \starttext Here we have a footnote \footnote{% \startlinenumbering \input tufte A few numbers : 012345679. \par % somehow needed \stoplinenumbering } \stoptext As to the size in footnotes, try: \definelinenumbering[fntext] \setuplinenumbering[fntext][style=\ssxx] If I could avoid defining another set of different macros, I would prefer... (For I have already 2 start macros, 2 stop macros, and 1 intermediate macro: it already lacks a bit of automatising). However, for the general case, there is still an issue with linenumbering that begins after the beginning of a paragraph. The work-around of \startnarrower cannot help in this case, since it appears to always start a new paragraph. So, with the [before=] (and [after=] for continuing text after \stopnarrower), it is possible. Here is what I have done so far. Not too bad a result, but there are still 2 main problems: -- when the quotation begins after the beginning of the paragraph, the whole paragraph is affected by *narrower*; -- when the text continues after the end of the quotation, it is impossible to insert the *\par* that, as Hans noticed and told us, is needed to have *narrower* work, so it is as if there was no *narrower* and the whole line numbering of the paragraph is messed up. and 2 minor ones: -- no paragraph indentation in footnotes. -- Alignment of the first quoted paragraph in respect to the following quoted paragraphs is not perfect (because I use different symbols for the quotation opening («) and the quotation repetition (»), I guess). But this point is good enough for me. == \setuppapersize[A4] \enableregime[utf-8] \mainlanguage[fr] \language[fr] \setcharacterspacing[frenchpunctuation] \setupindenting[first,yes,medium] \setupnotation[footnote][location=margin] \define\repsym{»} \newdimen\repshift \repshift=.75em \definelinenumbering[repcite] \setuplinenumbering[repcite][location=text,command=\repmark,before=,after=] \definelinenumbering[repcitel] \setuplinenumbering[repcitel][location=text,command={\repsym\gobbleoneargument}] \defineexpandable[1]\repmark{\doifnot{#1}{1}{\repsym}} \definenarrower[narcite][left=\repshift,before=,after=] \define\startbloccite{\startnarcite[left]\setupindenting[first,yes,\dimexpr\parindent-\repshift]\startlinenumbering[repcite]«} \define\startbloccitel{\startnarcite[left]\setupindenting[first,yes,\dimexpr\parindent-\repshift]\startlinenumbering[repcitel]«} \define\stopbloccite{»\par\stoplinenumbering\stopnarrower} \define\stopbloccitel{»\stoplinenumbering\stopnarrower} \define\bloccitepar{\stoplinenumbering \par \startlinenumbering[repcite]\leavevmode\hbox to\repshift{\repsym}\hskip0pt } \starttext First check: «normal spacing of guillemets». Second check: a normal paragraph, to show {\bf normal right margin limit}. \input tufte «Third check : paragraph starting with guillemets.» Let's start with a quote block on a {\bf new line} : \startbloccite %First paragraph ({\bf quote repetition symbol is really not wanted here}): \input tufte (\the\hsize) Second paragraph ({\bf indenting and margins are correct}): \input tufte \bloccitepar Second paragraph ({\bf indenting and margins are correct}): \input tufte \bloccitepar Third paragraph ({\bf now I put a different sentence here to check hyphenation. Weird, it looks OK now, I cannot reproduce the overflow.}): \input tufte \stopbloccite Now, a quote block starting just there, {\bf in the middle of a line} ({\bf the problem is that \char`\\startnarrower affects the whole paragraph : every lines are narrowed, even the ones before the environment starts}):\startbloccitel\input tufte \bloccitepar \input tufte \stopbloccitel . This a bit of text at the end of the quotation. {\bf The whole paragraph is wrong because I could not end it with a \char`\\par}. And let's call a {\bf footnote}\footnote{\startbloccite\input tufte \bloccitepar \input tufte \stopbloccite}. {\bf Fine : quote repetition symbols do now appear in it. But there is no paragraph indentation.}. \stoptext == Goodbye, Stéphane. ___ 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 :
Re: [NTG-context] Bugs in linenumbering ?
On 2014-04-03 20:15, Stéphane Goujet wrote: ... Here is what I have done so far. Not too bad a result, but there are still 2 main problems: -- when the quotation begins after the beginning of the paragraph, the whole paragraph is affected by *narrower*; -- when the text continues after the end of the quotation, it is impossible to insert the *\par* that, as Hans noticed and told us, is needed to have *narrower* work, so it is as if there was no *narrower* and the whole line numbering of the paragraph is messed up. That is the big one for me. As the example png I posted shows, I need to have support for multiple quoted sections and unquoted text at the end. and 2 minor ones: -- no paragraph indentation in footnotes. I have some very long footnotes and have moved to endnotes. The same issues present themselves, and many others related to commands that do not work in margins, footnotes, and other floating environments, but I think the solution is to write them as a separate chapter and manage the cross-references (footnote marks) myself. -- Alignment of the first quoted paragraph in respect to the following quoted paragraphs is not perfect (because I use different symbols for the quotation opening («) and the quotation repetition (»), I guess). But this point is good enough for me. The opening and repetition guillemot in paragraphs started by \startbloccite and \bloccitepar align correctly. The difference in alignment of the first text character in those paragraphs appears to be about 0.45pt, which can be handled by the \hskip at the end of the definition of \bloccitepar. That value is absolute, so may need adjusting for other fonts and sizes. Perhaps an hskip of 0.375em might be more flexible. Another problem occurs when protrusion is enabled. A guillemot in running text that happens to be placed at the beginning of a line will protrude into the left margin channel, but the guillemots that are generated by this mechanism will not protrude. When these are on the same page it is ugly. ... Goodbye, Stéphane. -- Rik ___ 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] bug with head in indices
On 04/04/2014 12:12 AM, Hans Hagen wrote: On 4/3/2014 5:56 PM, Pablo Rodriguez wrote: Hans, I’m afraid that the last beta (from today) introduced a bug that prevents heads to be generated with indices. in fact all text preceding mixed columns was gone .. side effect of playing with numbered (commented flush) fixed Many thanks for the fast fix. Pablo -- http://www.ousia.tk ___ 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 ___