* Find all words set into the margin [not found] <mailman.390.1353949275.2161.ntg-context@ntg.nl> @ 2012-11-27 6:36 ` "H. Özoguz" 2012-11-27 7:23 ` luigi scarso 0 siblings, 1 reply; 10+ messages in thread From: "H. Özoguz" @ 2012-11-27 6:36 UTC (permalink / raw) To: ntg-context 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)? 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Find all words set into the margin 2012-11-27 6:36 ` Find all words set into the margin "H. Özoguz" @ 2012-11-27 7:23 ` luigi scarso 2012-11-27 10:19 ` Sietse Brouwer 0 siblings, 1 reply; 10+ messages in thread From: luigi scarso @ 2012-11-27 7:23 UTC (permalink / raw) To: mailing list for ConTeXt users On Tue, Nov 27, 2012 at 7:36 AM, "H. Özoguz" <h.oezoguz@mmnetz.de> 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Find all words set into the margin 2012-11-27 7:23 ` luigi scarso @ 2012-11-27 10:19 ` Sietse Brouwer 2012-11-27 15:07 ` Hans Hagen 0 siblings, 1 reply; 10+ messages in thread From: Sietse Brouwer @ 2012-11-27 10:19 UTC (permalink / raw) To: mailing list for ConTeXt users 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 <luigi.scarso@gmail.com> wrote: > On Tue, Nov 27, 2012 at 7:36 AM, "H. Özoguz" <h.oezoguz@mmnetz.de> 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 > ___________________________________________________________________________________ ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Find all words set into the margin 2012-11-27 10:19 ` Sietse Brouwer @ 2012-11-27 15:07 ` Hans Hagen 0 siblings, 0 replies; 10+ messages in thread From: Hans Hagen @ 2012-11-27 15:07 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ----------------------------------------------------------------- ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <mailman.424.1354052349.2161.ntg-context@ntg.nl>]
* Find all words set into the margin [not found] <mailman.424.1354052349.2161.ntg-context@ntg.nl> @ 2012-11-28 6:45 ` "H. Özoguz" 0 siblings, 0 replies; 10+ messages in thread From: "H. Özoguz" @ 2012-11-28 6:45 UTC (permalink / raw) To: ntg-context Am 27.11.2012 22:39, schrieb ntg-context-request@ntg.nl: > (just run your docs with \setupalign[verytolerant,stretch] and you're > okay in most cases) That is not possible, because I want to have very nice word-distances, and I want the margin-runs to be there, to correct them myselve manually. So for now, I will go through every single page, and look for black boxes (or in your gimmick red boxes). 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <mailman.413.1354037841.2161.ntg-context@ntg.nl>]
* Find all words set into the margin [not found] <mailman.413.1354037841.2161.ntg-context@ntg.nl> @ 2012-11-27 19:22 ` "H. Özoguz" 2012-11-27 21:27 ` Hans Hagen 0 siblings, 1 reply; 10+ messages in thread From: "H. Özoguz" @ 2012-11-27 19:22 UTC (permalink / raw) To: ntg-context Am 27.11.2012 18:37, schrieb ntg-context-request@ntg.nl: > 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). Thanks, thats quite nice. Is it pirincipal possible to programm this macro I am looking for, which lists all "reds" (in your gimmick) in a TOC with pagenumbers? (I am not asking you to do that, just curious, maybe I want to programm some macro myself one day, not only getting gifts from you and all other programmers :)) 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Find all words set into the margin 2012-11-27 19:22 ` "H. Özoguz" @ 2012-11-27 21:27 ` Hans Hagen 0 siblings, 0 replies; 10+ messages in thread From: Hans Hagen @ 2012-11-27 21:27 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: "H. Özoguz" On 11/27/2012 8:22 PM, "H. Özoguz" wrote: > Am 27.11.2012 18:37, schrieb ntg-context-request@ntg.nl: >> 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). > Thanks, thats quite nice. Is it pirincipal possible to programm this > macro I am looking for, which lists all "reds" (in your gimmick) in a > TOC with pagenumbers? (I am not asking you to do that, just curious, > maybe I want to programm some macro myself one day, not only getting > gifts from you and all other programmers :)) sure that's possible but not now (just run your docs with \setupalign[verytolerant,stretch] and you're okay in most cases) ----------------------------------------------------------------- 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Find all words set into the margin @ 2012-11-26 12:52 "H. Özoguz" 2012-11-26 14:40 ` Sietse Brouwer 2013-09-30 15:13 ` john Culleton 0 siblings, 2 replies; 10+ messages in thread From: "H. Özoguz" @ 2012-11-26 12:52 UTC (permalink / raw) To: ntg-context [-- Attachment #1.1: Type: text/plain, Size: 444 bytes --] I use \definefontfeature[default][default][expansion=quality,protrusion=quality] \setupalign[hz,hanging] \usetypescript[times] \setupbodyfont[times,11pt] \setuptolerance[verystrict] 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! Thanks. Huseyin [-- Attachment #1.2: Type: text/html, Size: 1877 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Find all words set into the margin 2012-11-26 12:52 "H. Özoguz" @ 2012-11-26 14:40 ` Sietse Brouwer 2013-09-30 15:13 ` john Culleton 1 sibling, 0 replies; 10+ messages in thread From: Sietse Brouwer @ 2012-11-26 14:40 UTC (permalink / raw) To: mailing list for ConTeXt users "H. Özoguz" wrote: > 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Find all words set into the margin 2012-11-26 12:52 "H. Özoguz" 2012-11-26 14:40 ` Sietse Brouwer @ 2013-09-30 15:13 ` john Culleton 1 sibling, 0 replies; 10+ messages in thread From: john Culleton @ 2013-09-30 15:13 UTC (permalink / raw) To: ntg-context On Mon, 26 Nov 2012 13:52:52 +0100 "H. Özoguz" <h.oezoguz@mmnetz.de> wrote: > I use > > \definefontfeature[default][default][expansion=quality,protrusion=quality] > > \setupalign[hz,hanging] > > \usetypescript[times] > > \setupbodyfont[times,11pt] > > > \setuptolerance[verystrict] > > > 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! > > > Thanks. > Huseyin > > You could try setting \overfullrule=5pt This is an original TeX primitive. Plain TeX sets it at 5pt. You can then scan pages looking for a black rectangle in the right margin. I cannot determine which code to search for in e.g., grep but perhaps you can. I just tested it and \overfillrule works with MKIV context if it is set for some value other than zero. -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: "Create Book Covers with Scribus" available at http://www.booklocker.com/books/4055.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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2013-09-30 15:13 UTC | newest] Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <mailman.390.1353949275.2161.ntg-context@ntg.nl> 2012-11-27 6:36 ` Find all words set into the margin "H. Özoguz" 2012-11-27 7:23 ` luigi scarso 2012-11-27 10:19 ` Sietse Brouwer 2012-11-27 15:07 ` Hans Hagen [not found] <mailman.424.1354052349.2161.ntg-context@ntg.nl> 2012-11-28 6:45 ` "H. Özoguz" [not found] <mailman.413.1354037841.2161.ntg-context@ntg.nl> 2012-11-27 19:22 ` "H. Özoguz" 2012-11-27 21:27 ` Hans Hagen 2012-11-26 12:52 "H. Özoguz" 2012-11-26 14:40 ` Sietse Brouwer 2013-09-30 15:13 ` john Culleton
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).