Find all words set into the margin
Am 26.11.2012 18:01, schrieb ntg-context-request@ntg.nl:
where some word is printed into the margin? (Maybe because of bad hyphenation or something else.) - Would be perfect for manual check-up and corrections! \version[temporary]
Is there a command or a macro to find all occurences in a file (or projekt), prints blocks next to lines that run into the margin. http://wiki.contextgarden.net/Command/version Is that what you're looking for?
--Sietse
Thanks for that! These black blocks are quite useful, but not as powerful, as I am looking for. I am looking for a command, which builds a register of all occurences of these blocks. Imagine I am working on a 300-page book, than I have to check every single page for these margin-runs (f.e. after changing the layout), with these black boxes its much easier, of course, but still a mess. Is there a command like "\showallmarginruns", which gives something like this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the blocks of \version[temporary], that would be perfect for me. Could I make clear, what I am looking for (sorry for my leck of English)? Thanks. Huseyin
On Tue, Nov 27, 2012 at 7:36 AM, "H. Özoguz"
Am 26.11.2012 18:01, schrieb ntg-context-request@ntg.nl:
Is there a command or a macro to find all occurences in a file (or projekt),
where some word is printed into the margin? (Maybe because of bad hyphenation or something else.) - Would be perfect for manual check-up and corrections!
\version[temporary] prints blocks next to lines that run into the margin. http://wiki.contextgarden.net/Command/version Is that what you're looking for?
--Sietse
Thanks for that! These black blocks are quite useful, but not as powerful, as I am looking for.
I am looking for a command, which builds a register of all occurences of these blocks. Imagine I am working on a 300-page book, than I have to check every single page for these margin-runs (f.e. after changing the layout), with these black boxes its much easier, of course, but still a mess.
Is there a command like "\showallmarginruns", which gives something like this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the blocks of \version[temporary], that would be perfect for me.
Could I make clear, what I am looking for (sorry for my leck of English)? Not an answer, but do you have seen the informations of the log ?
Huseyin wrote:
Is there a command like "\showallmarginruns", which gives something like this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the blocks of \version[temporary], that would be perfect for me.
Could I make clear, what I am looking for (sorry for my leck of English)?
Yes, that is very clear. Your English is very good. I have no answer,
but some pointers:
* Printing these blocks is done by using the TeX primitive
\overfullrule (setting it to 5pt, specifically).
* Patrick Gundlach wrote a LuaTeX callback that changes the color of
the \overfullrule, but it uses the post_linebreak_filter callback, and
I don't know if the page number information is known yet at that
point.
* The log, like Luigi mentions, reports the source location of
overfull hboxes. This might help you at least a bit in finding the
output page.
Overfull \hbox (15.80962pt too wide) in paragraph at lines 1--25
\3>modern-designsize-12pt-rm-tf-0--0 par-al-lel, and|
Cheers,
-Sietse
On Tue, Nov 27, 2012 at 8:23 AM, luigi scarso
On Tue, Nov 27, 2012 at 7:36 AM, "H. Özoguz"
wrote: Am 26.11.2012 18:01, schrieb ntg-context-request@ntg.nl:
Is there a command or a macro to find all occurences in a file (or projekt),
where some word is printed into the margin? (Maybe because of bad hyphenation or something else.) - Would be perfect for manual check-up and corrections!
\version[temporary] prints blocks next to lines that run into the margin. http://wiki.contextgarden.net/Command/version Is that what you're looking for?
--Sietse
Thanks for that! These black blocks are quite useful, but not as powerful, as I am looking for.
I am looking for a command, which builds a register of all occurences of these blocks. Imagine I am working on a 300-page book, than I have to check every single page for these margin-runs (f.e. after changing the layout), with these black boxes its much easier, of course, but still a mess.
Is there a command like "\showallmarginruns", which gives something like this: "Margin runs on p. 34,67,101,145,204,298" - it may use somehow the blocks of \version[temporary], that would be perfect for me.
Could I make clear, what I am looking for (sorry for my leck of English)? Not an answer, but do you have seen the informations of the log ?
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 ___________________________________________________________________________________
On 11/27/2012 11:19 AM, Sietse Brouwer wrote:
* The log, like Luigi mentions, reports the source location of overfull hboxes. This might help you at least a bit in finding the output page. Overfull \hbox (15.80962pt too wide) in paragraph at lines 1--25 \3>modern-designsize-12pt-rm-tf-0--0 par-al-lel, and|
i uploaded a beta with some gimmicks \starttext \showjustification \showframe {\notragged \input ward \blank} {\raggedright \input ward \blank} {\raggedleft \input ward \blank} {\raggedcenter \input ward \blank} {\hsize1cm \notragged x x xxxxxx xxxxxxxxxxxxxxxxxxx\par} \blank \framed[width=10cm,align=middle]{test} \stoptext blue: natural width is larger than hsize green: natural width is smaller than hsize magenta: natural width is smaller than hsize (raggedright) cyan: natural width is smaller than hsize (raggedleft) yellow: natural width is smaller than hsize (raggedcenter) red: probably bad news I'm pretty sure that in a year or so I've forgotten about (as I already had forgotten about some experimental early luatex code doing something similar). 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 -----------------------------------------------------------------
participants (4)
-
"H. Özoguz"
-
Hans Hagen
-
luigi scarso
-
Sietse Brouwer