Re: [NTG-context] arranging vs. \page[last]
Mari Voipio writes: > On Mon, Jan 28, 2013 at 10:17 PM, Henning Hraban Ramm wrote: >> >> What would you suggest to put something onto the last (i.e. back) page? > > The wiki has a trick, but I think it stopped working at some stage - > maybe somebody can fix it (if it is broken): > http://wiki.contextgarden.net/Imposition#Getting_the_last_page_of_a_Booklet > > (Obviously we aren't the only ones with this problem...) > I use the following code (luatex only). \startusercode function fillsignature(pages) -- skip the cover pages = pages - 2 local originalpages = pages --set needed pages to 0 local neededpages = 0 local modulo = pages % 4 if modulo ~= 0 then neededpages = 4 - modulo end if neededpages ~= 0 then global.texio.write_nl('term and log', "Here I added " .. neededpages .. " pages") tex.print("\\dorecurse{" .. neededpages .. "}{\\page[empty]}") else global.texio.write_nl('No page needed!') end end \stopusercode \define[1]\fillthesignature{ \usercode{fillsignature(#1)}} \define\bookletclosing{ \fillthesignature{\the\realpageno} \page[empty]} \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setuppagenumbering[alternative=doublesided] \starttext \dorecurse{10}{ \input knuth \page[yes] \input knuth } \bookletclosing This is the last page \stoptext Best wishes -- Marco ___ 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] [test suite] two linenote related testfiles fail
FAILING: https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/mkiv/critical/testlinenotes-007.tex and https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/mkiv/critical/testlinenotes-008.tex Also, it appears that \linenote was not present in TL12, so I don't have a reference for all the testlinenotes files. I'd be glad if someone more introduced to this feature let me know if the output with the latest beta is fine. ! Missing number, treated as zero. system > tex > error on line 9 in file testlinenotes-007.tex: Missing number, treated as zero ... 1 \starttext 2 3 \setuppapersize[S6][S6] 4 \setuplayout[width=middle,height=middle,margin=1.5cm,footer=0pt,header=1cm] 5 6 \setupcolors[state=start] \setuptyping[option=color] 7 8 \definelinenote[extralinenote][rule=off,frame=on,framecolor=darkgreen] 9 >> \setuplinenote [linenote] [rule=off,frame=on,framecolor=darkred,n=2] 10 11 \showframe 12 13 \title{Bidi} 14 15 \subject{Issues:} 16 17 \startitemize 18 \item Line-numeral ranges need to be configurable: 1--4 and 4--1. It should 19 not be harwired, since eg, Persian, may prefer to keep an LR-style range. \relax \dorecurse #1->\ifcase #1\relax \expandafter \gobbletwoarguments \or \expand... ...c!levels }\dorecurse \p_levels {\strc_define_commands_not... \define_notation ...\fi \the \everydefinenotation \let \currentnotation \sav... ...noteparent ][\c!type =\v!note ] \fi \ctxcommand {definenot... \define_note ...te }\fi \fi \the \everydefinenote \let \currentnote \saved_d... ... l.9 \setuplinenote [linenote] [rule=off,frame=on,framecolor=darkred,n=2] ? X -- Marco ___ 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] [test suite] Column-related fails to compile
https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/mkiv/columns/sets-001.tex fails to compile, but it's not a regression since TL, where it fails too. Cheers system > tex > error on line 20 in file sets-001.tex: Missing number, treated as zero ... 10 11 \showframe 12 13 \starttext 14 15 \setuppagenumbering[alternative=doublesided]] 16 \definecolumnset[mycolumnset][n=2] 17 \definecolumnsetarea[einschub][left][x=1,y=1,nx=3,ny=20,background=contrast,state=start,leftoffset=1cm,rightoffset=1cm] 18 19 \startcolumnset[mycolumnset] 20 >> \dorecurse{15}{\input tufte\par} 21 \stopcolumnset 22 23 \stoptext 24 25 \advance \docalculatecolumnsetspan ...c!backspace \advance \!!widtha \namedlayoutpara... \dodoplacecolumntextareas ...lculatecolumnsetspan \!!heighta \columntextarea... \docommand ...oplacecolumntextareas {#1}{\v!left } \else \doglobal \removefro... \9>>1 #1,->\docommand {#1} \syst_helpers_do_process_comma_item \syst_helpers_do_process_comma_list ...rgument #1, ]\relax \global \advance \... ... l.20 \dorecurse{15}{\input tufte\par} ? X -- Marco ___ 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] [test suite] Bidi and line numbering
Hello there. https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/mkiv/bidi/linenumbers-001.tex The line numbering positioning is messed up and overlaps the text, or is on the wrong side. With TL12 the output was good. Cheers -- Marco ___ 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 math integral
Hans Hagen writes: > Keep in mind that mkiv and mkii will never produce the same results > (e.g.: more granularity in font metrics in mkiv, less juggling with > combined shapes in mkiv, etc). SO, it can never be the pixel wise > reference. I'm well aware of this, but having something at least similar which can be compared easily is better than nothing. Once you say the issue can be considered fixed, I'll replace the reference with the new, good one. Having a failing test, reminding that the issue is open, makes sense to me. Best wishes -- Marco ___ 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] [test suite] Bibtex-related test fails to compile.
I've imported most of the testfiles kindly provided by Hans. Now the test suite has grown to ~900 files. I'm running them in chunks and I'll keep reporting, even if I don't need the feature. If you prefer me to post to another list, please let me know. https://github.com/melmothx/context-unofficial-test-suite/tree/master/src/mkiv/bibtex collapse-001.tex fails to compile. See below the log. progressive-005.tex picks a different LM font, but probably because I don't have the required fonts installed and it's using a different one as fallback (I don't know which one is supposed to be the good one, probably noone :-). The other differences are just due to different distances, so I'm promoting them to references. Best wishes context collapse-001.tex mtx-context | run 1: luatex --fmt="/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en" --jobname="collapse-001" --lua="/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/cont-en.lui" --no-parse-first-line --c:currentrun=1 --c:fulljobname="./collapse-001.tex" --c:input="./collapse-001.tex" --c:kindofrun=1 "cont-yes.mkiv" This is LuaTeX, Version beta-0.70.1-2012052416 (rev 4277) \write18 enabled. (/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2012.10.22 11:01 MKIV fmt: 2012.10.22 int: english/english system > cont-new.mkiv loaded (/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > files > jobname: collapse-001, input: collapse-001, result: collapse-001 fonts > latin modern fonts are not preloaded languages > language en is active (collapse-001.tex{/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/media/data/melmoth/progetti/context-cutting-edge/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/context-cutting-edge/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded publications> file collapse-001.bbl not found, waiting for bibtex ! Undefined control sequence. system > tex > error on line 27 in file collapse-001.tex: Undefined control sequence ... 17 \stoppublication 18 19 \setuppublications[state=start,refcommand=authoryear,authoretallimit=1] 20 21 \setupcite[author][left=,right=] 22 23 \starttext 24 25 [\cite{Me2011}]\par 26 [\cite{Me2011,Me2012}] \par 27 >> [\cite{Me2013}]\par 28 29 \stoptext 30 \handlemultiplebibauthors ...et \currentbibauthor \empty \def \bibprocessaut... \setcurrentbibauthor ...hors {\commalistsize }{#1} \fi \dodobibauthoryear ...t }\setcurrentbibauthor {#1} \ifnum \scratchcounter =\p... \9>>1 #1,->\dodobibauthoryear {#1} \syst_helpers_do_process_comma_item \syst_helpers_do_process_comma_list ...rgument #1, ]\relax \global \advance \... \docite ...cite {#1}{#2}\else \donumberedcite {#1} \fi \endgroup l.27 [\cite{Me2013} ]\par ? -- Marco ___ 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] Test suite report
> Any clue about which directory can be safely dropped? Nevermind, I'm finding the way. -- Marco ___ 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] Test suite report
Hans Hagen writes: > there is s zip with lots of test files, it might make sense to take > some from them (not all make sense in a visual compare) There are more then 800 files in http://www.pragma-ade.com/context/latest/cont-tst.7z Any clue about which directory can be safely dropped? -- Marco ___ 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] Test suite report
Hello there. Aditya added a couple of testfiles. Thanks a lot. I encourage anyone reporting bugs to send a minimal example to me too, via mail or via pull requests on github, so people running the tests can catch regressions. I modified the code, so a unique filename for each test is not required anymore. I promoted to references the PDF which have a minimal shifting, because they generated too much noise, but I left one just as a reminder of the different distance between columns. Issue still pending (as far as I know): https://github.com/melmothx/context-unofficial-test-suite/blob/master/src/base/core-ver/core-ver-003.tex > Number should continue.There are several long lines. Are the numbers correctly > managed with long lines? > \startcode[continue] But it doesn't continue and it's reset to 1. Cheers -- Marco ___ 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] ConTeXt unofficial test suite stub
Hans Hagen writes: > On 17-10-2012 20:08, Marco Patzer wrote: >> 2012-10-17 Marco Pessotto: >> >>> Ok, this is my first bug report. I noticed that the column width/margin >>> is quite altered since TL12. There are some other problems, tough. >>> >>> Full report here: >>> >>> https://github.com/melmothx/context-unofficial-test-suite/commit/8575456ae9e5dfe1f5dea5ac1224f75b5d1eb0a2 >>> >>> (It's stored in the commit log). >>> >>> I also caught some problems which are fixed in the beta, but broken in >>> TL12. >> >> I don't know if Hans appreciates a test suite, seems like plenty of >> work for him ;) > > I'm not alone doing this, am I? > > It all depends on how serious an issue is. For instance, columns use a > new mechanism so it might be as simple as changing some defaults. Well, there aren't *so many* issues. If the columns are fine with you, they are fine with me too. Changing the references is not a problem. (Well, if they keep changing every week, well, that could be a problem for the well-being of the test suite). Some things, like the chemical stuff, require someone who actually does know what they are (I don't). The whole point of having a test suite is to catch the regressions before they pile up. I just reported everything I saw. Best wishes -- Marco ___ 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] ConTeXt unofficial test suite stub
Ok, this is my first bug report. I noticed that the column width/margin is quite altered since TL12. There are some other problems, tough. Full report here: https://github.com/melmothx/context-unofficial-test-suite/commit/8575456ae9e5dfe1f5dea5ac1224f75b5d1eb0a2 (It's stored in the commit log). I also caught some problems which are fixed in the beta, but broken in TL12. Hans Hagen writes: > vertical shifts are probably more an issue; for horizontal shifts you > can use a threshold of .1em because that catches spaces and distances > etc but ignores differences in fonts. I'm comparing pixel by pixel, I don't have any idea how to implement a sensible treshold system, without writing another TeX engine... Best wishes. -- Marco ___ 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] ConTeXt unofficial test suite stub
Marco Patzer writes: >> Looking at the diffs, many of the differences are really tiny, but >> differences exist nevertheless. It will take me some time to sort out >> which ones are just tiny space shifting, and which ones give really >> different output. > > That's why I use a header for each test file. You can specify > “sensitivity=low|medium|high”, this sets a predefined tolerance for > the page difference. I don't see any other option. There is no > single value which is sensitive enough, for instance to detect if a > footnote is subscripted or not and at the same time tolerant enough > not to always mark a fifty page document as “failed”. I'm not sure that exists a “fuzzy” algorithm for the tolerance. From my testing, a minimal shift, say, to the right, on a full page will generate a lot of noise, because each glyph will be “doubled”. I'm generating, with the visual diffs, a script to launch two PDF viewers and eventually promote the generated to the new reference. I guess there is no shortcuts to the manual ispection of the diffs. -- Marco ___ 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] ConTeXt unofficial test suite stub
luigi scarso writes: > It's not a huge difference, but it can integrated better with mkiv; see > http://meeting.contextgarden.net/2011/talks/day1_05_luigi_graphicmagick/ > (if you like these kind of things) I think I'll have to run some benchmark to see if it can save some resources and speed up the testing. I don't care too much for the mkiv integration. The other Marco's idea was exactly to make conTeXt run the tests. I prefer to let ConTeXt do the typesetting and do the dirty stuff with perl. So far I've included the testfiles from contexttest, parking the failing ones in a dedicated directory. There are 62 files now, and the test takes 13 minutes to run on my humble machine. These are the results for version 2012.10.16 23:38 against TeXlive2012: | File name | Success | Differs Avg | Worst value | Pages | Time | | arrows-001 | OK | 6.105634 | 6.105634 | 1 |5 | |catcodes-001 | OK | 50.219512| 50.219512| 1 |3 | | columnsets-001 | OK | 0.00 | 0.00 |10 |7 | |core-des-001 | OK | 0.324862 | 0.658451 |23 |9 | |core-des-002 | OK | 1.527666 | 2.651408 | 7 |8 | |core-itm-001 | OK | 11.947183| 13.753521| 5 |5 | |core-mat-001 | OK | 0.070423 | 0.070423 | 1 |5 | |core-mat-002 | OK | 0.00 | 0.00 | 1 |5 | |core-mat-003 | OK | 1.788732 | 1.788732 | 1 |5 | |core-mat-004 | OK | 0.00 | 0.00 | 2 |5 | |core-mat-005 | OK | 0.00 | 0.00 | 1 |3 | |core-rul-001 | OK | 0.151408 | 0.151408 | 1 |4 | |core-sec-001 | OK | 0.00 | 0.00 | 1 |3 | |core-ver-001 | OK | 0.00 | 0.00 | 1 |4 | |core-ver-002 | OK | 0.00 | 0.00 | 1 |4 | |core-ver-003 | OK | 0.131162 | 0.524648 | 4 |5 | |core-ver-004 | OK | 0.00 | 0.00 | 1 |4 | |core-ver-005 | OK | 0.00 | 0.00 | 1 |4 | |core-ver-007 | OK | 0.00 | 0.00 | 1 |4 | |date-002 | OK | 0.00 | 0.00 | 1 |3 | | dates-001 | OK | 3.880282 | 3.880282 | 1 |4 | | dates-002 | OK | 0.359155 | 0.359155 | 1 |4 | |enco-pfr-001 | OK | 0.095070 | 0.095070 | 1 |4 | | floats-001 | OK | 31.651408| 31.651408| 1 |4 | | floats-002 | OK | 31.651408| 31.651408| 1 |5 | | hsv-001 | OK | 0.00 | 0.00 | 8 | 14 | | inclusion | OK | 0.00 | 0.00 | 1 |4 | |math-pln-001 | OK | 0.049296 | 0.049296 | 1 |4 | |meta-ini-001 | OK | 0.00 | 0.00 | 2 |4 | |metapost-001 | OK | 0.00 | 0.00 | 1 |4 | |metapost-002 | OK | 0.00 | 0.00 | 1 |3 | | mixed-001 | OK | 21.327465| 37.492958| 2 |4 | | narrower-bidi-001 | OK | 0.00 | 0.00 | 4 |4 | |page-run-001 | OK | 0.00 | 0.00 | 1 |4 | |page-txt-001 | OK | 0.445171 | 0.496479 | 7 |5 | | ppchtex-001 | OK | 1.573944 | 1.573944 | 1 |4 | | ppchtex-005 | OK | 1.169014 | 1.169014 | 1 |4 | | ppchtex-006 | OK | 0.00 | 0.00 | 1 |4 | |spacing-grid-001 | OK | 10.443662| 10.531690| 3 |5 | |spacing-grid-005 | OK | 11.602993| 14.975352| 8 |9 | | spacing-space-001 | OK | 0.00 | 0.00 | 1 |3 | | spacing-space-002 | OK | 0.00 | 0.00 | 2 |4 | | spacing-space-003 | OK | 0.00 | 0.00 | 1 |4 | | spacing-space-004 | OK | 0.00 | 0.00 | 1 |4 | |spec-mis-001 | FAILED | 0.00 | 0.00 | 0 |0 | |spot-001 | OK | 0.00 | 0.00 | 1 |4 | |struc-allkind-tex-001 | OK | 0.292254| 0.292254 | 1 |5 | |struc-allkind-xml-001 | OK | 1.471831| 1.471831 | 1 |6 | | struc-itemize-001 | OK | 0.176056 | 0.176056 | 1 |4 | | struc-itemize-002 | OK | 0.00 | 0.00 | 1 |3 | | struc-page-001 | OK | 6.237676 | 7.066901 | 4 | 14 | | struc-sections-002
Re: [NTG-context] ConTeXt unofficial test suite stub
luigi scarso writes: > On Wed, Oct 17, 2012 at 8:44 AM, Marco Pessotto wrote: > > Aditya Mahajan writes: > > > It may be worthwhile to merge the two repos. > > I'm on my way. I'll keep you posted. > > Can you use graphicsmagick ? So far I've used imagemagick. I guess that it shouldn't be a problem to replace it with its fork, if it offers the same features. I've never used graphicsmagick. Can we expect better performances? -- Marco ___ 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] ConTeXt unofficial test suite stub
Aditya Mahajan writes: > It may be worthwhile to merge the two repos. I'm on my way. I'll keep you posted. -- Marco ___ 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] ConTeXt unofficial test suite stub
Hello there! TL;DR: https://github.com/melmothx/context-unofficial-test-suite A week ago I had a conversation with mpfusion and another user over IRC about the ConTeXt test suite. mpfusion had a tarball with some test and an elaborate machinery to see if the testfiles compile. He kindly provided the tarball, and I took the liberty to do it my way (I didn't hear back from him, I assume he's working on his solution), using the testfiles and rewriting the code. My solution is quite simple, is written in perl (300 lines all included) and probably is not portable to non-unix machines. It uses imagemagick and pdftoppm to raster the PDF, and it's resonably fast (with a trick to speed up the difference parsing). It produces an ascii table like this: ./run-test.pl --run Using /usr/local/bin/context mtx-context | ConTeXt Process Management 0.52 mtx-context | mtx-context | main context file: /usr/local/texlive/2012/texmf-dist/tex/context/base/context.mkiv mtx-context | current version: 2012.05.30 11:26 . | File name | Success | Differs Avg | Worst value | Pages | Time | | arrows-001 | OK | 0.00 | 0.00 | 1 |2 | |catcodes-001 | OK | 0.00 | 0.00 | 1 |2 | | columnsets-001 | OK | 0.00 | 0.00 |10 |4 | |date-002 | OK | 0.00 | 0.00 | 1 |2 | | dates-001 | OK | 0.605634 | 0.605634 | 1 |2 | | dates-002 | OK | 0.00 | 0.00 | 1 |3 | | hsv-001 | OK | 0.00 | 0.00 | 8 |5 | | inclusion | OK | 0.00 | 0.00 | 1 |2 | |metapost-001 | OK | 0.00 | 0.00 | 1 |2 | |metapost-002 | OK | 0.00 | 0.00 | 1 |2 | | mixed-001 | OK | 0.00 | 0.00 | 2 |2 | | narrower-bidi-001 | OK | 0.00 | 0.00 | 4 |2 | | ppchtex-001 | OK | 0.00 | 0.00 | 1 |2 | | ppchtex-005 | OK | 0.00 | 0.00 | 1 |2 | | ppchtex-006 | OK | 0.00 | 0.00 | 1 |2 | |spot-001 | OK | 0.00 | 0.00 | 1 |3 | | tables-001 | OK | 0.00 | 0.00 | 1 |1 | It leaves the visual diffs as png images under diffs/ I'd like to know if there is some interest in this thing, as (obviously) the test suit is not really populated to have any kind of value. There is also room for improvement (like custom arguments to the compilation). Happy euroTeXt to the lucky partecipants. Enjoy! Best wishes -- Marco ___ 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] modules.contextgarden.net internal error on /gfsdidot
Mojca Miklavec writes: > but that is a very old package written in 2005 to support using Greek > fonts in ConTeXt MKII. The author (Thomas) would probably suggest you > to use MKIV instead of this package for MKII. Ok, no problem, I just stumbled on that error browsing the wiki and thought it would be nice to report the error. Best wishes -- Marco ___ 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] modules.contextgarden.net internal error on /gfsdidot
Hello there. I get an internal error pointing the browser to http://modules.contextgarden.net/gfsdidot : > Internal error, please contact p...@contextgarden.net I tried the address above, but it fails: Diagnostic-Code: smtp; 550 5.1.1 : Recipient address rejected: User unknown in local recipient table So I'm posting here the problem. Best wishes -- Marco ___ 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] TeXlive 2012 (testing again)
Hans Hagen writes: > On 10-6-2012 18:39, Marco Pessotto wrote: >> >> Hello there. >> >> I can't get (again) the fonts installed in the texmf-local directory in >> the TeXlive 2012 pretest. >> >> It's quite possible I'm doing something wrong (but I recall that putting >> the files under texmf-local/fonts/data was enough to get them >> imported). > > texmf-local is one of the paths that get prescanned so did you run > mtxrun --generate"? Ok, mtxrun --generate ; mtxrun --script fonts --reload ; did the trick. I'll have to tattoo these mtxrun commands somewhere on my hands, so I won't forget. Thanks and sorry for the noise. -- Marco ___ 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] TeXlive 2012 (testing again)
Hello there. I can't get (again) the fonts installed in the texmf-local directory in the TeXlive 2012 pretest. It's quite possible I'm doing something wrong (but I recall that putting the files under texmf-local/fonts/data was enough to get them imported). Setup: find texmf-local/fonts/data/ -type f -exec md5sum {} \; 25e5b8b98c516abdf0d2815067d691d6 texmf-local/fonts/data/charis/CharisSIL-I.ttf 61c9cd7d9ffd2e149ad586945b135e55 texmf-local/fonts/data/charis/CharisSIL-BI.ttf 76c44f99f6209ecea79724429dbcba3e texmf-local/fonts/data/charis/CharisSIL-B.ttf d39f8f29432ac164dae8bb1dfd5eeb3b texmf-local/fonts/data/charis/Andika-R.ttf 20becdd98504161dc918be59c47e2268 texmf-local/fonts/data/charis/CharisSIL-R.ttf 79d2b1fe536079a3c69069f7961e8436 texmf-local/fonts/data/leaguegothic/League_Gothic.otf The configuration is the same that an older (texlive-pretest) installation one: pwd /media/data/melmoth/tex-live-hacking/tl2012-june [18:28] melmoth@universe:/media/data/melmoth/tex-live-hacking/tl2012-june$ find texmf-local/fonts/data/ -type f -exec md5sum {} \; | (cd ../install-dir/ && md5sum -c -) texmf-local/fonts/data/charis/CharisSIL-I.ttf: OK texmf-local/fonts/data/charis/CharisSIL-BI.ttf: OK texmf-local/fonts/data/charis/CharisSIL-B.ttf: OK texmf-local/fonts/data/charis/Andika-R.ttf: OK texmf-local/fonts/data/charis/CharisSIL-R.ttf: OK texmf-local/fonts/data/leaguegothic/League_Gothic.otf: OK Minimal example: \setupbodyfont[charissil,11pt] \definefont[AuxFont][file:League_Gothic sa *] \starttext test test test {\AuxFont hello} \stoptext mtxrun --script fonts --reload [...] /media/data/melmoth/tex-live-hacking/tl2012-june/texmf-local for ttf files fonts | names | 4 entries found, 0 ttf files checked, 0 okay fonts | names | scanning [...] mtxrun --script fonts --list --method=file --all | grep -i char => empty This is LuaTeX, Version beta-0.70.2-2012052323 (TeX Live 2012) mtx-context | current version: 2012.05.30 11:26 The same mtxrun produced: fonts | names | scanning /media/data/melmoth/tex-live-hacking/install-dir/texmf-local for ttf files fonts | names | 18 entries found, 10 ttf files checked, 10 okay mtx-context | current version: 2012.05.29 00:12 This is LuaTeX, Version beta-0.70.2-2012052323 (TeX Live 2012) Best wishes. -- Marco ___ 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 break after “/” (no hyphen)
> On Wed, 6 Jun 2012, Alan Bowen wrote: > > I dimly recall discussion of linebreaking after “/”, but have > not been able to retrieve it from the archives. Also \setbreakpoints[compound] should do the trick without typing the pipe symbols. Cheers -- Marco ___ 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] \setuplayout[location=duplex] not working? (probably since a year)
Hans Hagen writes: > On 31-5-2012 10:43, Marco Pessotto wrote: >> Hans Hagen writes: >> >>> there is no 'duplex' in context, only 'doublesided' >> >> Ok, this just means there is an error in the “Layout in ConTeXt” manual, >> p.97. Do you want me to create an Errata page on the wiki? > > ok (one for the fonts manual and one for layout) Done http://wiki.contextgarden.net/Fonts_in_ConTeXt_Errata (empty) http://wiki.contextgarden.net/Layouts_in_ConTeXt_Errata (one item) They should be linked from the homepage (for that I don't have the supercow powers), near the manual links, to make sense. Best wishes. -- Marco ___ 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] \setuplayout[location=duplex] not working? (probably since a year)
Hans Hagen writes: > there is no 'duplex' in context, only 'doublesided' Ok, this just means there is an error in the “Layout in ConTeXt” manual, p.97. Do you want me to create an Errata page on the wiki? -- Marco ___ 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] Is it possible to define a custom imposition schema? (sure it is, but how?)
As a follow-up, just in case someone will search the archive for a similar problem, this is my “solution”, regardless of the question if the imposition scheme is really suitable for binding or not. It's quite an hack, but it seems to work and is way simpler for a profane like me to create a custom imposition schema (code below). I dropped the ConTeXt-based solution with layers because of the amount of work required to bootstrap it. As a side note, I stumbled in a psutils bug (no surprise, the version on the CTAN is *12* years old), where the %%BoundingBox and %%DocumentMedia header where inserted correctly, but the original preserved, leading to viewer (and even printer?) to believe the PS had still the old dimensions (so I removed them with sed before passing it to pstops). Cheers #!/bin/bash set -e set -o pipefail # avoid to use polluted path, or the debug will be impossible export PATH=/usr/bin:/bin # the input document should have exactly the width set to half of # this, and the height set to half too, which means 16cmx22cm. Paper # is 32cm x 44cm width=907 height=1247 # usual check if [ ! -f "$1" ]; then echo "$1 is not a file, exiting" exit fi # naming convention input=$1 output=${input%%.pdf}-imposed.pdf # the scheme: U means rotated 180°, the parens indicate the shifting # after the rotation. We use the w and h flag to avoid math :-) # pages are numbered from 0. p1="15(0,0)+0(0.5w,0)+12U(0.5w,1h)+3U(1w,1h)" p2="1(0,0)+14(0.5w,0)+2U(0.5w,1h)+13U(1w,1h)" p3="11(0,0)+4(0.5w,0)+8U(0.5w,1h)+7U(1w,1h)" p4="5(0,0)+10(0.5w,0)+6U(0.5w,1h)+9U(1w,1h)" # the sed string is needed to avoid a broken DSC pdftops -level3 "$input" - | \ sed -e '/^%%BoundingBox:/d' -e '/^%%DocumentMedia:/d' | \ pstops -b -w$width -h$height \ "16:$p1,$p2,$p3,$p4" | \ ps2pdf -dPDFSETTINGS=/prepress \ -dDEVICEWIDTHPOINTS=$width -dDEVICEHEIGHTPOINTS=$height \ - "$output" pdfinfo "$output" pdffonts "$output" echo "$input => $output" exit 0 -- Marco ___ 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] Is it possible to define a custom imposition schema? (sure it is, but how?)
Willi Egger writes: > To my knowledge the printer will have more hand-work than accepting > that e.g. the 2*4*2 or the 2*2*4 scheme is used. - Again, if I > understand you correctly, then the folding machine can only do a > single fold. So after assembling the section with two folded sheets > still a manual fold must be made along the spine. I expect that the > assembly is quite unstable if it has to be stitched/sewn. > > In the first case one can pick two sheets and fold them twice, > resulting in a 16 pages section. Such folded sections are stable for > stitching/sewing. Even more easy is the 2*2*4 approach, with a > single folding over the spine you end up with a section of 16 > pages. This kind of section is reasonably stable for > stitching/sewing. Hi Willi, thanks for your truly inshightful reply. I'll discuss this with the people doing the printing/folding/binding, because, as you noted, something here doesn't feel right. Thanks again Best wishes -- Marco ___ 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] Is it possible to define a custom imposition schema? (sure it is, but how?)
Willi Egger writes: > Hi Marco, > > If I understand correctly what you need is a system which is basically > based on booklet-printing but each booklet should be restricted to 16 > pages. In this case you might try > > \setuparranging[2*2*4] > > This scheme put two pages on the front and two pages on the backside > of a sheet of paper. Then it uses 4 sheets to complete the section. > > Willi Hello Willi, thanks for your reply. No, the scheme is quite complicated (from 1 to 16) because the pages are first folded, then the two *folded* sheets are inserted one into the other, and then signature is bound and trimmed. So the scheme looks so (R means rotated 180°): 13 R | 4 R --- 16 | 1 3 R | 14 R --- 2| 15 9 R | 8 R --- 12 | 5 7R | 10R -- 6| 11 Yes, that's crazy (if you ask me). As I said, I'll go with the layers and a perl helper, the outcome looks almost fine. Best wishes -- Marco ___ 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] Is it possible to define a custom imposition schema? (sure it is, but how?)
Hans Hagen writes: > On 29-5-2012 19:06, Marco Pessotto wrote: > >> 3. page-imp.mkiv would be the best solution (obviously). I've dug a bit >> into the code, but I'm in deep waters. I can't understand where the >> sequence of the pages is defined. the \pusharrangedpageSCHEMA seems just >> to define the position inside the page, not the sequence of the shipped >> out page. Also, what are \c_page_marks_nx and \c_page_marks_ny? Any >> hint about how this machinery works? > > You also need a popper as in: > > \installpagearrangement 2*8 > {\dosetuparrangement{4}{2}{8}{5}{3}% > \pusharrangedpageSIXTEEN\poparrangedpagesAB\relax} > > how/what depends on the scheme Hello Hans, thanks for the reply. I looked at the poppers and I can't understand what they do. I think I'll go with the layers solution :-) (I'm good at workarounds and hacking there is an overkill for what I'm trying to do) Best wishes -- Marco ___ 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] Is it possible to define a custom imposition schema? (sure it is, but how?)
Hello there. I'd need a custom imposition schema, just like the 2*4*2, but first the sheets will be folded, then inserted in signatures of 16 pages, and then finally bound. (They said the machine can fold only one sheet). I came up with 3 "solutions" (or 3 hacks, as you wish): 1. psutils/pstops 2. layers 3. hack page-imp.mkiv 1. The first solution would be the faster, but after spending a day on it I gave up, because I have endless issue with cropped pages, paper dimension not correctly set, and I only scratched the surface. I don't know if exists some support for psutils (doesn't look so), but I have the feeling that software is pretty dead. 2. Layers: I'm attaching the code below. Does it seem sensible, or is there a better way to do it? (I'll create a template from that, and will loop over every 16 pages with the usual perl hack). It seems to work, even if visually it looks a bit shifted to right (I can adjust it manually). [An alternate approach could be just various \hbox, but maybe the layer solution is better for absolute positioning] 3. page-imp.mkiv would be the best solution (obviously). I've dug a bit into the code, but I'm in deep waters. I can't understand where the sequence of the pages is defined. the \pusharrangedpageSCHEMA seems just to define the position inside the page, not the sequence of the shipped out page. Also, what are \c_page_marks_nx and \c_page_marks_ny? Any hint about how this machinery works? Thanks Best wishes % start draft \definepapersize[carta][width=320mm,height=440mm] \setuppapersize[carta][carta] \setuplayout [topspace=0pt, backspace=0pt, header=0pt, footer=0pt, margin=0pt, marking=on, width=320mm, height=440mm, location=middle] \setuppagenumbering[alternative=doublesided,location=] \setuprotate[location=depth,rotation=180] % \showframe \starttext % page one \definelayer[PageLayer1][position=no] \setuplayer [PageLayer] [preset=topleft, height=\paperheight,width=\paperwidth] \setlayer[PageLayer1][x=0mm,y=0mm]{ \rotate{ \externalfigure[libretto.pdf][page=13] } } \setlayer[PageLayer1][x=160mm,y=0mm]{ \rotate{ \externalfigure[libretto.pdf][page=4] } } \setlayer[PageLayer1][x=0mm,y=220mm]{ \externalfigure[libretto.pdf][page=16] } \setlayer[PageLayer1][x=160mm,y=220mm]{ \externalfigure[libretto.pdf][page=1] } \placelayer[PageLayer1] %%% page 2 \definelayer[PageLayer2][position=no] \setuplayer [PageLayer] [preset=topleft, option=test, height=\paperheight,width=\paperwidth] \setlayer[PageLayer2][x=0mm,y=0mm]{ \rotate{ \externalfigure[libretto.pdf][page=3] } } \setlayer[PageLayer2][x=160mm,y=0mm]{ \rotate{ \externalfigure[libretto.pdf][page=14] } } \setlayer[PageLayer2][x=0mm,y=220mm]{ \externalfigure[libretto.pdf][page=2] } \setlayer[PageLayer2][x=160mm,y=220mm]{ \externalfigure[libretto.pdf][page=15] } \placelayer[PageLayer2] %page 3 \definelayer[PageLayer3][position=no] \setuplayer [PageLayer] [preset=topleft, option=test, height=\paperheight,width=\paperwidth] \setlayer[PageLayer3][x=0mm,y=0mm]{ \rotate{ \externalfigure[libretto.pdf][page=9] } } \setlayer[PageLayer3][x=160mm,y=0mm]{ \rotate{ \externalfigure[libretto.pdf][page=8] } } \setlayer[PageLayer3][x=0mm,y=220mm]{ \externalfigure[libretto.pdf][page=12] } \setlayer[PageLayer3][x=160mm,y=220mm]{ \externalfigure[libretto.pdf][page=5] } \placelayer[PageLayer3] % page 4 \definelayer[PageLayer4][position=no] \setuplayer [PageLayer] [preset=topleft, option=test, height=\paperheight,width=\paperwidth] \setlayer[PageLayer4][x=0mm,y=0mm]{ \rotate{ \externalfigure[libretto.pdf][page=7] } } \setlayer[PageLayer4][x=160mm,y=0mm]{ \rotate{ \externalfigure[libretto.pdf][page=10] } } \setlayer[PageLayer4][x=0mm,y=220mm]{ \externalfigure[libretto.pdf][page=6] } \setlayer[PageLayer4][x=160mm,y=220mm]{ \externalfigure[libretto.pdf][page=11] } \placelayer[PageLayer4] \stoptext -- Marco ___ 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] \setuplayout[location=duplex] not working? (probably since a year)
Wolfgang Schuster writes: > Am 29.05.2012 um 10:10 schrieb Marco Pessotto: > > You can set “location=doublesided” but “duplex” isn’t a valid argument > and even then it works only when you have a double sided document. Well, I took it from the printed manual (Layouts in ConTeXt, p.97), I didn't invent it myself. > \setuppapersize[A5][A4] > \setuplayout[location=doublesided] > \setuppagenumbering[alternative=doublesided] > \starttext > \dorecurse{20}{ > \input knuth > } > \stoptext This indeed works. Thanks. -- Marco ___ 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] \setuplayout[location=duplex] not working? (probably since a year)
Hello there. I'm messing around with imposition schemas and I think I've hit a bug or a dropped feature (but documented in the printed manual). Minimal example: \setuppapersize[A5][A4] \setuplayout[location=duplex] \starttext \dorecurse{20}{ \input knuth } \stoptext As far as I can see, the duplex location is ignored, as the page is always put in the left corner. Am I doing something wrong? The behaviour is the same with the one-year-old ConTeXt from TeXlive2011. -- Marco ___ 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] \footnote numbering starting with 3
Wolfgang Schuster writes: > Am 28.05.2012 um 19:36 schrieb Marco Pessotto: > >> >> Ok, here we are: >> >> \starttext >> >> \placelist[chapter,section] >> >> hello\footnote{ciao} >> >> \chapter{Hello\footnote{weird!}} >> >> \section{Hello\footnote{another fn}} >> >> hello\footnote{ciao} >> >> \stoptext >> >> The first footnote will start at 3 by itself. >> >> There is some weird interference between the placelist and the >> footnote, as removing the \placelist the numbering starts correctly. >> >> Found in both the latest minimals and in the TeXlive pretest. > > I sent a fix to the dev list. > > Wolfgang Thanks! -- Marco ___ 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] \footnote numbering starting with 3 [Was: ConTeXt MKIV 2012.05.22 and \footnote]
Ok, here we are: \starttext \placelist[chapter,section] hello\footnote{ciao} \chapter{Hello\footnote{weird!}} \section{Hello\footnote{another fn}} hello\footnote{ciao} \stoptext The first footnote will start at 3 by itself. There is some weird interference between the placelist and the footnote, as removing the \placelist the numbering starts correctly. Found in both the latest minimals and in the TeXlive pretest. Best wishes -- Marco ___ 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] ConTeXt MKIV 2012.05.22 and \footnote
Wolfgang Schuster writes: > Am 28.05.2012 um 19:05 schrieb Marco Pessotto: > >> >> Hello there >> >> Some further testing shows problems with footnotes: >> >> %% start minimal >> \setupfootnotes[way=bychapter] > > \setupnotation[footnote][way=bychapter,start=2] Ok, thanks, that works for the bychapter thing. (Apologies, I didn't keep track of this setup change). But the "3" numbering is another problem. It starts at "3" by itself. As I said, I'm trying to figure out what it triggers it, as the document is long and will take a while to strip it down. -- Marco ___ 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] Missing "missing character" warning
Hans Hagen writes: > On 28-5-2012 18:26, Marco Pessotto wrote: > >> After a lot of mumbling by myself... Is there a reason not to have the >> fonts.missing tracker enabled by default? Performance hit? > > indeed but you can enable it in your local cont-sys.tex file or in > your texmfcnf.lua additions I see, thanks! Best wishes -- Marco ___ 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] ConTeXt MKIV 2012.05.22 and \footnote
Hello there Some further testing shows problems with footnotes: %% start minimal \setupfootnotes[way=bychapter] \starttext \chapter{chap} hello\footnote{ciao} \chapter{chap} hello\footnote{ciao} \stoptext %%% stop The numbering is not by chapter any more. (from TeXlive pretest) mtx-context | current version: 2012.05.25 18:21 also happens with the Minimals mtx-context | current version: 2012.05.26 16:40 Further problems are found on a document of mine, which once compiled with these versions, have the first footnote starting with the number 3. I'm bisecting and I'll let you know once I've found what it triggers it (because it's longish and doesn't really help as it is now). Best wishes. -- Marco ___ 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] Missing "missing character" warning
Marco Pessotto writes: > Hans Hagen writes: > >> On 25-5-2012 09:45, luigi scarso wrote: >> >>> enabletrackers[fonts.missing] >>> \mainlanguage[hr] >>> \starttext ȃ\stoptext >> >> indeed better After a lot of mumbling by myself... Is there a reason not to have the fonts.missing tracker enabled by default? Performance hit? -- Marco ___ 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] Math fonts in TeXLive 2012
Mojca Miklavec writes: > Another weird observation: Kurier is not working at all. > > Plus, Asana-Math and Xits are not installed as part of ConTeXt scheme. > Should I add them? (It's size is 0.5 + 1.5 MB while in tar.xz.) If you feel like adding some packages to the ConTeXt scheme, I'd strongly suggest libertineotf. It's one of the best free font around (I believe it's not by chance that they were used on Fonts in ConTeXt and Layouts in ConTeXt), its coverage is *huge* and the typescript is included in the core. It increases the installation size by a 8 MB (I think it's worth of). Ok, not a big deal, because it can be installed, but just my two cents (the same goes ever for the Minimals, anyway... not a big deal but nice to have). -- Marco ___ 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] Missing "missing character" warning
Hans Hagen writes: > On 25-5-2012 09:45, luigi scarso wrote: > >> enabletrackers[fonts.missing] >> \mainlanguage[hr] >> \starttext ȃ\stoptext > > indeed better > Wikified. http://wiki.contextgarden.net/Fonts_in_LuaTeX#Get_a_warning_if_the_glyph_is_missing Cheers -- Marco ___ 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] Missing "missing character" warning
Hans Hagen writes: > You can add this: > > \checkcharactersinfont > > and get missing characters reported to the terminal. Unfortunately I > forgot () when adapting this command to the command namespace ... > > \unexpanded\def\checkcharactersinfont > {\ctxcommand{checkcharactersinfont()}} > > (fixed in next beta) And indeed this works. Thanks! -- Marco ___ 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] Missing "missing character" warning
Hello all. Reading the manual “Fonts in ConTeXt” I found the following statement (p.97): “In both cases we end up with a message in the log file and a resulting file with missing data”. [When the font doesn't provide a glyph]. Now, the only case when the warning is issued is using mkii with xetex (texexec -xtx), not with mkiv. (Unsurprisingly, the file with missing data is always there :-) Minimal example: %% start \mainlanguage[hr] \starttext Ja sam sȃm, i sȃm sam došao da izvršim pravdu. \stoptext %% stop The name of the char is: LATIN SMALL LETTER A WITH INVERTED BREVE (0x0203) So: $ context prova.tex $ grep -i -E '(warn|miss)' prova.* [ match nothing ] $ texexec --xtx prova.tex $ grep -i -E '(warn|miss)' prova.* prova.log:Missing character: There is no ȃ in font [lmroman12-regular]:+liga;+kern;mappi prova.log:Missing character: There is no ȃ in font [lmroman12-regular]:+liga;+kern;mappi It's not a regression, since the behaviour is the same with the last year ConTeXt. Best wishes -- Marco ___ 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] updated binaries, please keep testing TL 2012
Mojca Miklavec writes: > Hello, > > the majority of binaries in ConTeXt distribution have been updated > from TeX Live 2012 now (missing are only linux-64, linux-ppc by Thomas > S., and possibly some from windows). I've synced the repo, reinstalled all from 0 (scheme full) [because I read about problems with tlmgr] and run the tests. All the previous issues (crashes, texmf-local not found) are fixed. Putting the font files in install-dir/texmf-local/fonts/data/names*/ is enough to get them properly located. Hurray! Thanks to all for the wonderful work. P.S. I don't work with math, so I can't really help testing that. -- Marco ___ 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] ConTeXt MKIV 2012.05.22 and \footnote
Hans Hagen writes: > On 23-5-2012 09:12, Marco Pessotto wrote: >> Alan Bowen writes: >> >>> The latest ConTeXt MKIV (standalone) does not produce footnotes. >>> >>> \startcomponent >>> Stuff\footnote{a note.} >>> \stopcomponent >>> >> >> Confirmed on the latest pretest TeXlive too. >> >> \starttext >> \input knuth >> \footnote{a note} >> \stoptext > > new beta (needs testing ... it has to do with initializing notes at > several places and that has to be done efficiently) In the beta seems fixed. I'll do some further testing once it's propagated to the TeXlive pretest (tomorrow, I think). Best wishes -- Marco ___ 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] Local texmf directory in TeXLive 2012
Going ahead with the TeXlive testing, I found the following problem. Probably I'm doing something wrong, but as far as I can see, the texmf-local directory is ignored. Best wishes. [09:35] melmoth@universe:~/progetti/debug$ which context /home/melmoth/progetti/texlive2012/bin/i386-linux/context [09:35] melmoth@universe:~/progetti/debug$ mktexlsr mktexlsr: Updating /media/data/melmoth/progetti/texlive2012/texmf/ls-R... mktexlsr: Updating /media/data/melmoth/progetti/texlive2012/texmf-config/ls-R... mktexlsr: Updating /media/data/melmoth/progetti/texlive2012/texmf-dist/ls-R... mktexlsr: Updating /media/data/melmoth/progetti/texlive2012/texmf-local/ls-R... mktexlsr: Updating /media/data/melmoth/progetti/texlive2012/texmf-var/ls-R... mktexlsr: Done. [09:36] melmoth@universe:~/progetti/debug$ grep -i -E '(leag|chari)' /media/data/melmoth/progetti/texlive2012/texmf-local/ls-R charis leaguegothic ./fonts/charis: CharisSIL-BI.ttf CharisSIL-B.ttf CharisSIL-I.ttf CharisSIL-R.ttf ./fonts/leaguegothic: League_Gothic.otf [09:36] melmoth@universe:~/progetti/debug$ mtxrun --script fonts --reload fonts | names | warnings are disabled (tracker 'fonts.warnings') fonts | names | identifying tree font files with suffix otf fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-config for otf files fonts | names | 6 entries found, 0 otf files checked, 0 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-dist for otf files fonts | names | 73615 entries found, 579 otf files checked, 579 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf for otf files fonts | names | 563 entries found, 0 otf files checked, 0 okay fonts | names | identifying tree font files with suffix OTF fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-config for OTF files fonts | names | 6 entries found, 0 OTF files checked, 0 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-dist for OTF files fonts | names | 73615 entries found, 0 OTF files checked, 0 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf for OTF files fonts | names | 563 entries found, 0 OTF files checked, 0 okay fonts | names | 579 tree files identified, 183 skipped, 122 duplicates, 396 hash entries added, runtime 20.652 seconds fonts | names | identifying tree font files with suffix ttf fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-config for ttf files fonts | names | 6 entries found, 0 ttf files checked, 0 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-dist for ttf files fonts | names | 73615 entries found, 227 ttf files checked, 227 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf for ttf files fonts | names | 563 entries found, 0 ttf files checked, 0 okay fonts | names | identifying tree font files with suffix TTF fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-config for TTF files fonts | names | 6 entries found, 0 TTF files checked, 0 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-dist for TTF files fonts | names | 73615 entries found, 0 TTF files checked, 0 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf for TTF files fonts | names | 563 entries found, 0 TTF files checked, 0 okay fonts | names | 227 tree files identified, 101 skipped, 54 duplicates, 126 hash entries added, runtime 1.257 seconds fonts | names | identifying tree font files with suffix ttc fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-config for ttc files fonts | names | 6 entries found, 0 ttc files checked, 0 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-dist for ttc files fonts | names | 73615 entries found, 0 ttc files checked, 0 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf for ttc files fonts | names | 563 entries found, 0 ttc files checked, 0 okay fonts | names | identifying tree font files with suffix TTC fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-config for TTC files fonts | names | 6 entries found, 0 TTC files checked, 0 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf-dist for TTC files fonts | names | 73615 entries found, 0 TTC files checked, 0 okay fonts | names | scanning /media/data/melmoth/progetti/texlive2012/texmf for TTC files fonts | names | 563 entries found, 0 TTC files checked,
Re: [NTG-context] ConTeXt MKIV 2012.05.22 and \footnote
Alan Bowen writes: > The latest ConTeXt MKIV (standalone) does not produce footnotes. > > \startcomponent > Stuff\footnote{a note.} > \stopcomponent > Confirmed on the latest pretest TeXlive too. \starttext \input knuth \footnote{a note} \stoptext Best wishes -- Marco ___ 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] Testing TeX Live 2012
Marco Pessotto writes: > Checked out, compiled and tested. And it works (of course :-). I spoke too early. I have at least three issues with images. First case: failing, but no crash. % minimal \starttext \externalfigure[cow] \stoptext % stop The second and the third case are under the following debug output. I can't still provide a minimal example (I'm working on it, but it won't reach you before tomorrow), but I have *plenty* of backtraces (see below). I apologize for all this output, but I'm feeling a bit lost. Best wishes export PATH=~/progetti/texlive2012/bin/i386-linux:$PATH [21:01] melmoth@universe:/tmp$ context prova.tex mtx-context | run 1: luatex --fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./prova.tex" \stoptext This is LuaTeX, Version beta-0.70.2-2012052117 (TeX Live 2012) \write18 enabled. (prova.tex jobcontrol > version mismatch with jobfile: 1.14 <> 1.19 ConTeXt ver: 2012.05.14 16:00 MKIV fmt: 2012.5.21 int: english/english system > cont-new.mkiv loaded (/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > prova.top loaded (prova.top) fonts > latin modern fonts are not preloaded languages > language en is active {/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded floatblocks > 1 placed backend > xmp > using file '/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/lpdf-pdx.xml' mtx-context | fatal error: no return code, message: luatex: execution interrupted[21:01] melmoth@universe:/tmp$ gdb luatex GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex...done. (gdb) set logging on Copying output to gdb.txt. (gdb) run --fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./prova.tex" Starting program: /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex --fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./prova.tex" This is LuaTeX, Version beta-0.70.2-2012052117 (TeX Live 2012) \write18 enabled. (prova.tex jobcontrol > version mismatch with jobfile: 1.14 <> 1.19 ConTeXt ver: 2012.05.14 16:00 MKIV fmt: 2012.5.21 int: english/english system > cont-new.mkiv loaded (/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > prova.top loaded (prova.top) fonts > latin modern fonts are not preloaded languages > language en is active {/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded floatblocks
Re: [NTG-context] Testing TeX Live 2012
Taco Hoekwater writes: > On 05/18/2012 08:20 PM, Marco Pessotto wrote: >> Mojca Miklavec writes: >> >>> You can try to checkout revision 26300 from TeX Live repository. That >>> should give you a good reference. >>> http://tug.org/svn/texlive?view=revision&revision=26301 >>> [...] >>> If you could also try to build revision 26300 with debugging symbols > > r26542 (just committed) should fix this crash, which was the result of > bad include ordering after TL has enabled large file support. Checked out, compiled and tested. And it works (of course :-). Thanks! -- Marco ___ 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] Testing TeX Live 2012
Mojca Miklavec writes: > You can try to checkout revision 26300 from TeX Live repository. That > should give you a good reference. > http://tug.org/svn/texlive?view=revision&revision=26301 > [...] > If you could also try to build revision 26300 with debugging symbols > (and possibly try to upload the binary somewhere, so that others could > try as well), that might help. I either have or can try to install a > virtual machine with i386-linux, but building TeX Live in virtual > machine will take forever, so having a working binary with all > debugging symbols could help. (I'm not 100% sure if the binary for mac > has been compiled before or after poppler update.) The crashy binary with debug symbols is here: http://theanarchistlibrary.org/docs/luatex-crash-unstripped.tar.gz Sha1sum (of the binary inside the tgz): e092818935b3ea109380409b5fa9fc3ee8f58b71 luatex revision 26300 = luatex --credits This is LuaTeX, Version beta-0.70.1-2012051819 (TeX Live 2012) [...] Compiled with libpng 1.5.10; using libpng 1.5.10 Compiled with zlib 1.2.7; using zlib 1.2.7 Compiled with poppler version 0.18.4 Same crash. bt full at the end of this mail, but there's nothing new, I think. Any revision other revision I can pick to pinpoint where the problem started? > If you like debugging, you could set a few breakpoints in the > following lines that work with poststruct: I don't have the slightest idea of how to do it. I can do it if you guide me. > ./texk/web2c/luatexdir/lua/lpdflib.c:pdf_set_pos(static_pdf, > static_pdf->posstruct->pos); > ./texk/web2c/luatexdir/lua/lpdflib.c:(void) > calc_pdfpos(static_pdf->pstruct, static_pdf->posstruct->pos); > ./texk/web2c/luatexdir/lua/lpdflib.c:(void) > calc_pdfpos(static_pdf->pstruct, static_pdf->posstruct->pos); > ./texk/web2c/luatexdir/lua/lpdflib.c:lua_pushnumber(L, > static_pdf->posstruct->pos.h); > ./texk/web2c/luatexdir/lua/lpdflib.c:lua_pushnumber(L, > static_pdf->posstruct->pos.v); > ./texk/web2c/synctexdir/synctex-luatex.h:#define SYNCTEX_CURV > (dimen_par(page_height_code)-static_pdf->posstruct->pos.v) > ./texk/web2c/synctexdir/synctex-luatex.h:#define SYNCTEX_CURH > static_pdf->posstruct->pos.h > > and compare behaviour of old & new luatex. But that's just a blind guess. > > Mojca Backtrace: /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex --fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./ciao.tex" Program received signal SIGSEGV, Segmentation fault. 0x0813e713 in getpdf (L=0x88b8158) at ../../../texk/web2c/luatexdir/lua/lpdflib.c:615 615 lua_pushnumber(L, static_pdf->posstruct->pos.h); #0 0x0813e713 in getpdf (L=0x88b8158) at ../../../texk/web2c/luatexdir/lua/lpdflib.c:615 #1 0x082c9a65 in luaD_precall (L=0x88b8158, func=0xaf453fc, nresults=1) at ../../../texk/web2c/luatexdir/lua51/ldo.c:319 #2 0x082c9ca8 in luaD_call (L=0x88b8158, func=0xaf453fc, nResults=1) at ../../../texk/web2c/luatexdir/lua51/ldo.c:376 #3 0x082da1b7 in callTMres (L=0x88b8158, res=0xaf45360, f=0x88d63e0, p1=0xaf45360, p2=0x8edfaec) at ../../../texk/web2c/luatexdir/lua51/lvm.c:88 #4 0x082da45d in luaV_gettable (L=0x88b8158, t=0xaf45360, key=0x8edfaec, val=0xaf45360) at ../../../texk/web2c/luatexdir/lua51/lvm.c:125 #5 0x082db4ec in luaV_execute (L=0x88b8158, nexeccalls=2) at ../../../texk/web2c/luatexdir/lua51/lvm.c:437 #6 0x082c9cbf in luaD_call (L=0x88b8158, func=0xaf45318, nResults=0) at ../../../texk/web2c/luatexdir/lua51/ldo.c:377 #7 0x082c25dd in f_call (L=0x88b8158, ud=0xbfffdc8c) at ../../../texk/web2c/luatexdir/lua51/lapi.c:795 #8 0x082c8efd in luaD_rawrunprotected (L=0x88b8158, f=0x82c25b3 , ud=0xbfffdc8c) at ../../../texk/web2c/luatexdir/lua51/ldo.c:116 #9 0x082ca009 in luaD_pcall (L=0x88b8158, func=0x82c25b3 , u=0xbfffdc8c, old_top=288, ef=276) at ../../../texk/web2c/luatexdir/lua51/ldo.c:457 #10 0x082c2677 in lua_pcall (L=0x88b8158, nargs=0, nresults=0, errfunc=23) at ../../../texk/web2c/luatexdir/lua51/lapi.c:816 #11 0x080c3452 in luacall (p=195, nameptr=0, is_string=1) at ../../../texk/web2c/luatexdir/lua/luastuff.w:397 #12 0x080c357d in late_lua (pdf=0x894b270, p=964) at ../../../texk/web2c/luatexdir/lua/luastuff.w:419 #13 0x08193559 in out_what (pdf=0x894b270, p=964) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:270 #14 0x081947c0 in hlist_out (pdf=0x894b270, this_box=2463) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:567 #15 0x08193fbc in hlist_out (pdf=0x894b270, this_box=844) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #16 0x08193fbc in hlist_out (pdf=0x894b270, this_box=853) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #17 0x08195aa8 in vlist_out (pdf=0x894b270, this_box=879) a
Re: [NTG-context] Testing TeX Live 2012
Taco Hoekwater writes: > I guessed as much. Unfortunately, as I cannot reproduce the bug, this is > where it ends for me. Perhaps Hartmut has a 32-bit system somewhere (CC). > > Best wishes, > Taco > > PS Hartmut: full thread is here: > http://archive.contextgarden.net/message/20120516.012657.49ebfe34.en.html Just for the sake of giving more (probably useless) information: 1. I updated the sources today and rebuild luatex (0.70.2). Same crash (not that I thought it would be magically fixed by itself, but just to be sure). 2. I diffed the luatex sources of texlive-2011 with the pretest one, and are just a bunch of chunks. Now, I don't know anything about C, but it doesn't seem a radical change. So I thought that maybe it's poppler the culprit, and I tried to rebuild with the sistem poppler. But here it fails miserably during compilation. g++ -DHAVE_CONFIG_H -I. -I../../../texk/web2c -I./w2c -I/home/melmoth/progetti/debug/sources/Work/texk -I/home/melmoth/progetti/debug/sources/texk -I/home/melmoth/progetti/debug/sources/Work/libs/libpng/include -DPOPPLER_VERSION=\"0.12.4\" -I/usr/include/poppler -I/home/melmoth/progetti/debug/sources/Work/libs/obsdcompat -I/home/melmoth/progetti/debug/sources/libs/obsdcompat -I../../../texk/web2c/libmd5 -I../../../texk/web2c/luatexdir -I../../../texk/web2c/luatexdir/lua51 -DpdfTeX -I../../../texk/web2c/synctexdir -DSYNCTEX_ENGINE_H='' -g -MT libluatex_a-lepdflib.o -MD -MP -MF .deps/libluatex_a-lepdflib.Tpo -c -o libluatex_a-lepdflib.o `test -f 'luatexdir/lua/lepdflib.cc' || echo '../../../texk/web2c/'`luatexdir/lua/lepdflib.cc ../../../texk/web2c/luatexdir/lua/lepdflib.cc: In function 'int m_Dict_hasKey(lua_State*)': ../../../texk/web2c/luatexdir/lua/lepdflib.cc:845: error: 'class Dict' has no member named 'hasKey' Now, shooting in the dark: the sources of TeXlive ship poppler 0.20. I compiled and tested the svn trunk of luatex, and it works (no crash, as reported by Luigi), but it's linked against poppler 0.18, as far as I can see. Well, that was all I could do, please let me know if I can do anything else. Best wishes -- Marco ___ 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] imposition 2UP = empty pages
Hans Hagen writes: > quick hack that you can put in cont-new.mkiv > > \def\handlearrangedpageTWOUP > {\splitoffarrangedpagesTWO >\ifconditional\arrangedswapstate > \global\setbox\arrangedpageA\hbox >{\box\arrangedpageA > \box\arrangedpageB}% > \setfalse\arrangedswapstate >\else > \global\setbox\arrangedpageA\hbox >{\box\arrangedpageB > \box\arrangedpageA}% > \settrue\arrangedswapstate >\fi >\ht\arrangedpageA\paperheight >\global\setbox\arrangedpageB\box\scratchbox} Tested and works like a charm. Thanks! -- Marco ___ 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] imposition 2UP = empty pages
Hans Hagen writes: > is there a simple test file > Sure: %% start \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setuppagenumbering[alternative=doublesided] \starttext \dorecurse{20}{ \input knuth } \stoptext % stop This produces 6 white pages with the latest beta (while output correctly with 2011.11.29 23:11). Best wishes -- Marco ___ 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] imposition 2UP = empty pages
Henning Hraban Ramm writes: > 2012/5/18 Marco Pessotto : >> Version 2011.11.29 23:11 works. I think you can get it on the git >> repository. There was a thread recently about how to fetch it from >> there. > > Yes, e.g. "my" thread. I'm working with such an old version for the > project where I can’t live without 2UP imposition. But there are other > problems with that, and I really don’t like to switch ConTeXt versions > all the time. The 2UP can’t be that hard to fix, can it? Other > imposition schemes still work. Even if I think that the imposition schemas are a wonderful ConTeXt feature, I don't believe that helps (actually, I'm pretty sure it doesn't) repeating that you need the now-broken feature. Anyway, for simple 2UP scheme, if you need it badly and urgently, you may want to try pdfjam (which uses LaTeX under the hood, I used it for a while) or the psutils, with a pdf -> ps -> pdf trip (psbook), (both are shipped with ConTeXt, I used them for a while and were really fine) or even write your own imposer which uses ConTeXt under the hood. I wrote and rewrote mine a couple of times (because I need a dinamically determinated signature) and it's not that difficult. [1] Best wishes [1] https://gitorious.org/amuse-wiki/amuse-wiki/blobs/master/Text-Muse/lib/Text/Muse/Compile.pm -- Marco ___ 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] Testing TeX Live 2012
Taco Hoekwater writes: > On 05/17/2012 07:31 PM, Marco Pessotto wrote: >> >> Anyway, I think I got the backtrace: > > Nice backtrace. > > You could try to print these in the debugger > > (gdb) p static_pdf > (gdb) p static_pdf->posstruct > (gdb) p *static_pdf->posstruct > > you should get something like this: > > $1 = (PDF) 0x174de00 > $2 = (posstructure *) 0x175e1c0 > $3 = {pos = {h = 0, v = 0}, dir = 0} > > but I cannot help much further as the crash does not happen on my > architecture: Ubuntu 12.04, x86_64. > > Best wishes, > Taco $1 = (PDF) 0x89a9270 $2 = (posstructure *) 0x1 Cannot access memory at address 0x1 Best wishes Full backtrace: Starting program: /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex --fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./ciao.tex" Program received signal SIGSEGV, Segmentation fault. 0x08148923 in getpdf (L=0x8916158) at ../../../texk/web2c/luatexdir/lua/lpdflib.c:615 615 lua_pushnumber(L, static_pdf->posstruct->pos.h); #0 0x08148923 in getpdf (L=0x8916158) at ../../../texk/web2c/luatexdir/lua/lpdflib.c:615 #1 0x082d3c75 in luaD_precall (L=0x8916158, func=0xafa36c4, nresults=1) at ../../../texk/web2c/luatexdir/lua51/ldo.c:319 #2 0x082d3eb8 in luaD_call (L=0x8916158, func=0xafa36c4, nResults=1) at ../../../texk/web2c/luatexdir/lua51/ldo.c:376 #3 0x082e43c7 in callTMres (L=0x8916158, res=0xafa3628, f=0x89343e0, p1=0xafa3628, p2=0x8f3daec) at ../../../texk/web2c/luatexdir/lua51/lvm.c:88 #4 0x082e466d in luaV_gettable (L=0x8916158, t=0xafa3628, key=0x8f3daec, val=0xafa3628) at ../../../texk/web2c/luatexdir/lua51/lvm.c:125 #5 0x082e56fc in luaV_execute (L=0x8916158, nexeccalls=2) at ../../../texk/web2c/luatexdir/lua51/lvm.c:437 #6 0x082d3ecf in luaD_call (L=0x8916158, func=0xafa35e0, nResults=0) at ../../../texk/web2c/luatexdir/lua51/ldo.c:377 #7 0x082cc7ed in f_call (L=0x8916158, ud=0xbfffdc8c) at ../../../texk/web2c/luatexdir/lua51/lapi.c:795 #8 0x082d310d in luaD_rawrunprotected (L=0x8916158, f=0x82cc7c3 , ud=0xbfffdc8c) at ../../../texk/web2c/luatexdir/lua51/ldo.c:116 #9 0x082d4219 in luaD_pcall (L=0x8916158, func=0x82cc7c3 , u=0xbfffdc8c, old_top=288, ef=276) at ../../../texk/web2c/luatexdir/lua51/ldo.c:457 #10 0x082cc887 in lua_pcall (L=0x8916158, nargs=0, nresults=0, errfunc=23) at ../../../texk/web2c/luatexdir/lua51/lapi.c:816 #11 0x080cd562 in luacall (p=195, nameptr=0, is_string=1) at ../../../texk/web2c/luatexdir/lua/luastuff.w:397 #12 0x080cd68d in late_lua (pdf=0x89a9270, p=964) at ../../../texk/web2c/luatexdir/lua/luastuff.w:419 #13 0x0819d769 in out_what (pdf=0x89a9270, p=964) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:270 #14 0x0819e9d0 in hlist_out (pdf=0x89a9270, this_box=2463) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:567 #15 0x0819e1cc in hlist_out (pdf=0x89a9270, this_box=844) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #16 0x0819e1cc in hlist_out (pdf=0x89a9270, this_box=853) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #17 0x0819fcb8 in vlist_out (pdf=0x89a9270, this_box=879) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911 #18 0x0819e1b8 in hlist_out (pdf=0x89a9270, this_box=2236) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:457 #19 0x0819fcb8 in vlist_out (pdf=0x89a9270, this_box=2245) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911 #20 0x0819e1b8 in hlist_out (pdf=0x89a9270, this_box=2258) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:457 #21 0x0819e1cc in hlist_out (pdf=0x89a9270, this_box=2267) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #22 0x0819e1cc in hlist_out (pdf=0x89a9270, this_box=2318) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #23 0x0819e1cc in hlist_out (pdf=0x89a9270, this_box=2350) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #24 0x0819fcb8 in vlist_out (pdf=0x89a9270, this_box=2359) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911 #25 0x0819fca4 in vlist_out (pdf=0x89a9270, this_box=2372) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:909 #26 0x0819e1b8 in hlist_out (pdf=0x89a9270, this_box=2421) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:457 #27 0x0819fcb8 in vlist_out (pdf=0x89a9270, this_box=2430) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911 #28 0x0819fca4 in vlist_out (pdf=0x89a9270, this_box=2445) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:909 #29 0x0819fca4 in vlist_out (pdf=0x89a9270, this_box=968) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:909 #30 0x0
Re: [NTG-context] imposition 2UP = empty pages
Henning Hraban Ramm writes: > Am 2012-04-23 um 20:10 schrieb Henning Hraban Ramm: > >> Am 2012-04-20 um 17:58 schrieb Henning Hraban Ramm: >> >>> Hi there, >>> >>> like in January (see mail by Mari), the latest beta produces only >>> empty pages with 2UP imposition schema; others work (tested 2SIDE >>> and 2DOWN). >>> >> >> PING >> Any news on that? Today's beta still is buggy. >> Unfortunately I need 2UP imposition urgently. >> >> Greetlings, Hraban > > PING > still the same with latest beta. Version 2011.11.29 23:11 works. I think you can get it on the git repository. There was a thread recently about how to fetch it from there. -- Marco ___ 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] Testing TeX Live 2012
Mojca Miklavec writes: > On Thu, May 17, 2012 at 6:25 PM, Marco Pessotto wrote: >> The following message is a courtesy copy of an article >> that has been posted to gmane.comp.tex.context as well. Gmane today hates me... >> Mojca Miklavec writes: >> >>> (But that luatex is probably stripped.) >> >> So the next question is: how can I build luatex from those sources with >> the debug symbols? > > Fetch sources from here: > > http://www.tug.org/texlive/build.html > > Just run ./Build --debug, or, if you want to save time, this was the > command that didn't work for me (I think that I excluded too many > things): > > ./Build --debug --enable-cxx-runtime-hack \ > --disable-all-pkgs \ > [...] The ./Build seems to accept only the first argument, because ./Build --debug --disable-xindy -without-x --disable-xetex \ --disable-xdvipdfmx is building the whole world. Anyway, I think I got the backtrace: Starting program: /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex --fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./ciao.tex" Program received signal SIGSEGV, Segmentation fault. 0x08148923 in getpdf (L=0x8916158) at ../../../texk/web2c/luatexdir/lua/lpdflib.c:615 615 lua_pushnumber(L, static_pdf->posstruct->pos.h); #0 0x08148923 in getpdf (L=0x8916158) at ../../../texk/web2c/luatexdir/lua/lpdflib.c:615 #1 0x082d3c75 in luaD_precall (L=0x8916158, func=0xafa362c, nresults=1) at ../../../texk/web2c/luatexdir/lua51/ldo.c:319 #2 0x082d3eb8 in luaD_call (L=0x8916158, func=0xafa362c, nResults=1) at ../../../texk/web2c/luatexdir/lua51/ldo.c:376 #3 0x082e43c7 in callTMres (L=0x8916158, res=0xafa3590, f=0x89343e8, p1=0xafa3590, p2=0x8f3daf4) at ../../../texk/web2c/luatexdir/lua51/lvm.c:88 #4 0x082e466d in luaV_gettable (L=0x8916158, t=0xafa3590, key=0x8f3daf4, val=0xafa3590) at ../../../texk/web2c/luatexdir/lua51/lvm.c:125 #5 0x082e56fc in luaV_execute (L=0x8916158, nexeccalls=2) at ../../../texk/web2c/luatexdir/lua51/lvm.c:437 #6 0x082d3ecf in luaD_call (L=0x8916158, func=0xafa3548, nResults=0) at ../../../texk/web2c/luatexdir/lua51/ldo.c:377 #7 0x082cc7ed in f_call (L=0x8916158, ud=0xbfffdc8c) at ../../../texk/web2c/luatexdir/lua51/lapi.c:795 #8 0x082d310d in luaD_rawrunprotected (L=0x8916158, f=0x82cc7c3 , ud=0xbfffdc8c) at ../../../texk/web2c/luatexdir/lua51/ldo.c:116 #9 0x082d4219 in luaD_pcall (L=0x8916158, func=0x82cc7c3 , u=0xbfffdc8c, old_top=288, ef=276) at ../../../texk/web2c/luatexdir/lua51/ldo.c:457 #10 0x082cc887 in lua_pcall (L=0x8916158, nargs=0, nresults=0, errfunc=23) at ../../../texk/web2c/luatexdir/lua51/lapi.c:816 #11 0x080cd562 in luacall (p=195, nameptr=0, is_string=1) at ../../../texk/web2c/luatexdir/lua/luastuff.w:397 #12 0x080cd68d in late_lua (pdf=0x89a9278, p=964) at ../../../texk/web2c/luatexdir/lua/luastuff.w:419 #13 0x0819d769 in out_what (pdf=0x89a9278, p=964) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:270 #14 0x0819e9d0 in hlist_out (pdf=0x89a9278, this_box=2463) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:567 #15 0x0819e1cc in hlist_out (pdf=0x89a9278, this_box=844) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #16 0x0819e1cc in hlist_out (pdf=0x89a9278, this_box=853) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #17 0x0819fcb8 in vlist_out (pdf=0x89a9278, this_box=879) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911 #18 0x0819e1b8 in hlist_out (pdf=0x89a9278, this_box=2236) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:457 #19 0x0819fcb8 in vlist_out (pdf=0x89a9278, this_box=2245) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911 #20 0x0819e1b8 in hlist_out (pdf=0x89a9278, this_box=2258) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:457 #21 0x0819e1cc in hlist_out (pdf=0x89a9278, this_box=2267) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #22 0x0819e1cc in hlist_out (pdf=0x89a9278, this_box=2318) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #23 0x0819e1cc in hlist_out (pdf=0x89a9278, this_box=2350) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:459 #24 0x0819fcb8 in vlist_out (pdf=0x89a9278, this_box=2359) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911 #25 0x0819fca4 in vlist_out (pdf=0x89a9278, this_box=2372) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:909 #26 0x0819e1b8 in hlist_out (pdf=0x89a9278, this_box=2421) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:457 #27 0x0819fcb8 in vlist_out (pdf=0x89a9278, this_box=2430) at ../../../texk/web2c/luatexdir/pdf/pdflistout.w:911 #28 0x0819fca4 in vlist_out (pdf=0x89a9278, this_box=2445) at ../..
Re: [NTG-context] Testing TeX Live 2012
Mojca Miklavec writes: > (But that luatex is probably stripped.) So the next question is: how can I build luatex from those sources with the debug symbols? -- Marco ___ 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] Testing TeX Live 2012
Mojca Miklavec writes: > On Thu, May 17, 2012 at 2:37 PM, Marco Pessotto wrote: >> Hans Hagen writes: >> >>> On 16-5-2012 21:02, Marco Pessotto wrote: >>> >>>> mtx-context | fatal error: no return code, message: luatex: execution >>>> interrupted[21:00] >>> >>> looks like a crashing luatex >> >> I forgot to report the architecture and the platform, which is Gnu/Linux >> i386, Debian stable. >> >> If you send me instructions how to give you a backtrace, I'll be glad to >> do it. > > gdb luatex > r > --fmt="/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" > --lua="/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" > --backend="pdf" "./ciao.tex" > > (But that luatex is probably stripped.) Indeed it is. [17:32] melmoth@universe:~/progetti/debug$ gdb luatex GNU gdb (GDB) 7.0.1-debian Copyright (C) 2009 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>... Reading symbols from /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex...(no debugging symbols found)...done. (gdb) run --fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./ciao.tex" Starting program: /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex --fmt="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/media/data/melmoth/progetti/texlive2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./ciao.tex" This is LuaTeX, Version beta-0.70.1-2012051323 (TeX Live 2012) \write18 enabled. (ciao.tex ConTeXt ver: 2012.05.14 16:00 MKIV fmt: 2012.5.17 int: english/english system > cont-new.mkiv loaded (/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > ciao.top loaded (ciao.top) fonts > latin modern fonts are not preloaded languages > language en is active {/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/texlive2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded backend > xmp > using file '/media/data/melmoth/progetti/texlive2012/texmf-dist/tex/context/base/lpdf-pdx.xml' Program received signal SIGSEGV, Segmentation fault. 0x08132e87 in ?? () (gdb) bt #0 0x08132e87 in ?? () #1 0x0826d4dd in ?? () #2 0x0826d700 in ?? () #3 0x0827b935 in ?? () #4 0x0827bac2 in ?? () #5 0x0827c684 in ?? () #6 0x0826d751 in ?? () #7 0x08266921 in ?? () #8 0x0826ccf0 in ?? () #9 0x0826da18 in ?? () #10 0x0826698a in lua_pcall () #11 0x080d173f in ?? () #12 0x080d188b in late_lua () #13 0x0817434e in out_what () #14 0x08174f2e in hlist_out () #15 0x03c4 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) quit A debugging session is active. Inferior 1 [process 12490] will be killed. Quit anyway? (y or n) y > Is the problem reproducible if you copy Luatex from TeX Live to > ConTeXt distribution? Since the version of ConTeXt is exactly the > same. Same outcome: cp /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex `which luatex` [17:38] melmoth@universe:~/progetti/debug$ which luatex /media/data/melmoth/progetti/context-cutting-edge/tex/texmf-linux/bin/luatex [17:38] melmoth@universe:~/progetti/debug$ cp /media/data/melmoth/progetti/texlive2012/bin/i386-linux/luatex `which luatex` [17:38] melmoth@universe:~/progetti/debug$ which context /media/data/melmoth/progetti/context-cutting-edge/tex/texmf-linux/bin/conte
Re: [NTG-context] Local modules not found
"Rogers, Michael K" writes: > Hi, > > I upgraded to the latest beta from the 2011 stable version for the > first time. Now my local modules are not found. Having searched the > wiki and the mailing list, I can find no help. Any ideas? Try to put the modules in /path/where/the/new/context/lives/tex/texmf-local Or even in the current directory or in the parent (..) -- Marco ___ 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] Testing TeX Live 2012
Hans Hagen writes: > On 16-5-2012 21:02, Marco Pessotto wrote: > >> mtx-context | fatal error: no return code, message: luatex: execution >> interrupted[21:00] > > looks like a crashing luatex I forgot to report the architecture and the platform, which is Gnu/Linux i386, Debian stable. If you send me instructions how to give you a backtrace, I'll be glad to do it. -- Marco ___ 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] Testing TeX Live 2012
Mojca Miklavec writes: > Dear ConTeXt users, > > TeX Live 2012 is going to be released soon. After the first successful > year of ConTeXt in TeX Live, it would be great to get enough testers > before the release (to make sure that it works flawlessly) and to get > rid of as many bugs as possible. Should the ConteXt-related problems be reported here? If so: I have a failing minimal example with the today's pretest (and works perfectly with the latest minimals). I'm available for testing. Best regards Else: Sorry for the noise. % cut here \setupinteraction[state=start,color=black,contrastcolor=black,style=bold] \starttext \placecontent \chapter{hello} \stoptext %% stop Log: context --version mtx-context | ConTeXt Process Management 0.52 mtx-context | mtx-context | main context file: /media/data/melmoth/progetti/texlive-2012/texmf-dist/tex/context/base/context.mkiv mtx-context | current version: 2012.05.14 16:00 [21:00] melmoth@universe:/tmp$ context ciao.tex mtx-context | run 1: luatex --fmt="/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./ciao.tex" \stoptext This is LuaTeX, Version beta-0.70.1-2012051323 (TeX Live 2012) \write18 enabled. (ciao.tex ConTeXt ver: 2012.05.14 16:00 MKIV fmt: 2012.5.16 int: english/english system > cont-new.mkiv loaded (/media/data/melmoth/progetti/texlive-2012/texmf-dist/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > ciao.top loaded (ciao.top) fonts > latin modern fonts are not preloaded languages > language en is active {/media/data/melmoth/progetti/texlive-2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/media/data/melmoth/progetti/texlive-2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/texlive-2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded structure > sectioning > chapter @ level 2 : 0.1 -> hello backend > xmp > using file '/media/data/melmoth/progetti/texlive-2012/texmf-dist/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 ) mkiv lua stats > used config file - selfautoparent:texmf/web2c/texmfcnf.lua mkiv lua stats > used cache path - /media/data/melmoth/progetti/texlive-2012/texmf-var/luatex-cache/context/2448223e6631addb83df348d74153606 mkiv lua stats > resource resolver - loadtime 0.142 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 46 found files, scanned paths: mkiv lua stats > stored bytecode data - 303 modules, 65 tables, 368 chunks mkiv lua stats > cleaned up reserved nodes - 39 nodes, 9 lists of 438 mkiv lua stats > node memory usage - 2 glue, 2 penalty, 12 attribute, 28 glue_spec, 3 attribute_list mkiv lua stats > node list callback tasks - 6 unique task lists, 5 instances (re)created, 151 calls mkiv lua stats > used backend - pdf (backend for directly generating pdf output) mkiv lua stats > loaded patterns - en::2 mkiv lua stats > jobdata time - 0.001 seconds saving, 0.000 seconds loading mkiv lua stats > callbacks - 279 direct, 567 indirect, 846 total mkiv lua stats > lxml preparation time - 0.000 seconds, 0 nodes, 11 lpath calls, 0 cached calls mkiv lua stats > interactive elements - 0 references, 1 destinations mkiv lua stats > result saved in file - ciao.pdf mkiv lua stats > loaded fonts - 34 files: stmary10.afm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman10-regular.otf lmroman12-bold.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm mkiv lua stats > fonts load time - 0.378 seconds mkiv lua stats > luatex banner - this is luatex, version beta-0.70.1-2012051323 (tex live 2012) mkiv lua stats > control sequences - 33576 of 65536 + 10 mkiv lua stats > current memory usage - 39 MB (ctx: 39 MB) mkiv lua stats > runtime - 1.175 seconds, 1 processed pages, 1 shipped pages, 0.851 pages/second mtx-context | run 2: luatex --fmt="/media/data/melmot
Re: [NTG-context] "Typescripts for Dummies"
Bill Meahan writes: > Is there a document anywhere that would be the equivalent of > "Typescripts for Dummies?" (as if such a book really existed) I guess real documentation is a fantastic booklet: http://www.h2o-books.com/node/11 Cheers -- Marco ___ 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] \footnote in \startlines[space=on] overflows
Philipp Gesang writes: > On 2012-04-22 19:38, Marco Pessotto wrote: >> Thanks! Still there is the problem of the footnote. I can live with some >> random space (expecially if there is the workaround!), but the footnotes >> are quite an issue. > > Took some code digging but finally: And indeed it works like a charm. Thanks a lot. > > \startsetups get_back_my_spacing > \activatespacehandler{off} > \stopsetups > > \setupnote[footnote][setups=get_back_my_spacing] > > \starttext > > \startlines[space=on] > > this is a {\em test} with a long long long long > line\footnote{this is a test with a long long long long line this is a test > with a long long long long line this is a test with a long long long long > line this is a test with a long long long long line} > another line, obeying spaces once more > this is no haiku > > \stoplines > > \stoptext > > > (NB the “setups” parameter is declared “experimental” in > strc-not.mkvi; it might misbehave some time in the future ...) > > Regards > Philipp -- Marco ___ 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] \footnote in \startlines[space=on] overflows
Philipp Gesang writes: > On 2012-04-22 17:16, Marco Pessotto wrote: > n> I remember I brought this up a while ago: > http://archive.contextgarden.net/message/20100916.124413.0e12af0e.en.html > Seems like one can avoid the spaces through grouping (or with > “\gobbleoneargument”; or by using a single-argument wrapper > instead of a font switch; or by using an active character for > termination of the macro name; refer to spac-lin.mkiv, lines > 18--31, for the official options). Thanks! Still there is the problem of the footnote. I can live with some random space (expecially if there is the workaround!), but the footnotes are quite an issue. -- Marco ___ 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] \footnote in \startlines[space=on] overflows
Dear list, I use \(start|stop)lines[spaces=on] to typeset poetry, which seems the right thing to do to preserve eventual initial whitespace. Anyway, I encounter the following issues: = cut here = % \starttext this is normal text. \startlines[space=on] this is a {\em test} with a long long long long line\footnote{this is a test with a long long long long line this is a test with a long long long long line this is a test with a long long long long line this is a test with a long long long long line} \stoplines Normal text again. \stoptext = cut here = % First, the {\em test} consumes a whitespace, even if after a command the space is supposed to be eaten. Second, the footnote overflows. (Tested with the latest beta). Thanks in advance. Best regards -- Marco ___ 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] hyphenation of hyphenated words
S Barmeier writes: > non-standard breaks as > > non-stan- > dard > > Is there a way to tell context to break the word at the hyphen that > already exists? \setbreakpoints[compound] should do the trick. Cheers -- Marco ___ 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] Scribus vs ConTeXt
Martin Schröder writes: > 2012/2/29 William Adams : >> I wrote up a longer comparison once upon a time --- Scribus isn't that much >> different from InDesign and Quark, so the criticism holds: > > wikify please! http://wiki.contextgarden.net/Comparison_between_ConTeXt_and_other_typesetting_programs (But it's not linked from anywhere) -- Marco ___ 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] Scribus vs ConTeXt
William Adams writes: > With a graphical tool, one is limited to the automation which the > developers are willing to build into the tool and sentenced to > handling manually _everything_ else, _every_ time that there's a > change, e.g., if you have a keyword block on your opening article > pages aligned against the outside gutter and the layout program can't > place it automatically and contextually, then _every_ time the article > changes from opening to a left to a right or vice-versa one has to > make that change manually. > [...] This is the best comparison I've seen in ages. Thanks for this. It was a delight to read. -- Marco ___ 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] \startstopcomment fails on latest beta
Wolfgang Schuster writes: > Am 03.02.2012 um 10:13 schrieb Marco Pessotto: > >> This is better, as the compilation doesn't fail and the comment appears >> as comment, but on the page there is a literal "[title=,]" (in the first >> example) or "[title=commentname,]" in the second and third example. > > scrn-wid.mkvi > > \def\scrn_comment_start_indeed[#title][#settings]% > {\bgroup >\doifassignmentelse{#title} > -{\setupcurrentcomment[\currentcomment][#title]} > -{\setupcurrentcomment[\currentcomment][\c!title=#title,#settings]}% > +{\setupcurrentcomment[#title]} > +{\setupcurrentcomment[\c!title=#title,#settings]}% >\def\scrn_comment_stop{\scrn_comment_inject\egroup}% > > \grabbufferdatadirect\v!comment{\e!start\currentcomment}{\e!stop\currentcomment}} > Tested and works like a charm. Thanks a lot. Best wishes -- Marco ___ 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] \startstopcomment fails on latest beta
Hans Hagen writes: > On 1-2-2012 19:31, Marco Pessotto wrote: >> >> Hello there. >> >> See the following minimal example. Without the \setupinteraction the >> document compiles just fine. > > as there is no beta this week, you can patch yourself ... scrn-wid.lua > ... should either have > > b_scrn_comment_link > > or > > scrn_comment_box_link > > (depending on what's n your system; you can search in scrn-wid.mkiv > for the right box name) > Well, I've applied this change and executed context --make --- ./tex/texmf-context/tex/context/base/scrn-wid.lua~ 2011-05-24 11:32:54.0 +0200 +++ ./tex/texmf-context/tex/context/base/scrn-wid.lua 2012-02-03 09:44:14.0 +0100 @@ -117,7 +117,7 @@ end function commands.insertcomment(specification) -tex.box["scrn_comment_box_link"] = comments.insert(specification) +tex.box["b_scrn_comment_link"] = comments.insert(specification) end -- Soundclips This is better, as the compilation doesn't fail and the comment appears as comment, but on the page there is a literal "[title=,]" (in the first example) or "[title=commentname,]" in the second and third example. \setupinteraction[state=start] \starttext Regular 1 \startcomment 1. This won't be published, but attached as a comment \stopcomment Regular 2 \startcomment[commentname] 2. This won't be published, but attached as a comment \stopcomment Regular 3 \startcomment[commentname][] 3. This won't be published, but attached as a comment \stopcomment \stoptext There is no problem in the "current" version (2011.05.18), but is present in version 2011.11.29 23:11 (which is the other previous version I have on my machine). Thanks for your attention and all your work. Best regards. -- Marco ___ 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] \startstopcomment fails on latest beta
Hello there. See the following minimal example. Without the \setupinteraction the document compiles just fine. %% begin \setupinteraction[state=start] \starttext hello \startcomment This won’t be published \stopcomment \stoptext %% end Best regards. Error log: mtx-context | run 1: luatex --fmt="/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en" --lua="/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont-en.lui" --backend="pdf" "./min.tex" \stoptext This is LuaTeX, Version beta-0.70.1-2011051923 (rev 4277) \write18 enabled. (min.tex ConTeXt ver: 2012.01.25 14:16 MKIV fmt: 2012.2.1 int: english/english system > cont-new.mkiv loaded (/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > min.top loaded (min.top) fonts > latin modern fonts are not preloaded languages > language en is active {/media/data/melmoth/progetti/context-cutting-edge/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) fonts > typescripts > unknown: library 'loc' {/media/data/melmoth/progetti/context-cutting-edge/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/media/data/melmoth/progetti/context-cutting-edge/tex/texmf/fonts/map/dvips/lm/lm-rm.map} fonts > fallback modern rm 12pt is loaded check > missing or ungrouped '=' after 'comment' in line 10 (182>comment:) ! LuaTeX error ...edge/tex/texmf-context/tex/context/base/scrn-wid.lua:120: incorrect index value -1 for tex.setbox() stack traceback: [C]: ? ...edge/tex/texmf-context/tex/context/base/scrn-wid.lua:120: in function 'insertcomment' :1: in main chunk. system > tex > error on line 13 in file min.tex: LuaTeX error ... 3 \setupinteraction[state=start] 4 5 \starttext 6 7 hello 8 9 \startcomment 10 11 This won’t be published 12 13 >> \stopcomment 14 15 \stoptext 16 \ctxcommand ...\directlua \zerocount {commands.#1} \184>normal ...\commentparameter \c!textlayer " }} \wd \b_scrn_comment_link \... \scrn_comment_stop ->\scrn_comment_inject \egroup l.13 \stopcomment ? X -- Marco ___ 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] setupheads[sectionnumber=no] (and retrocompatibility issue)
Wolfgang Schuster writes: > Am 01.02.2012 um 12:36 schrieb Marco Pessotto: >> http://wiki.contextgarden.net/Reference/en/setupheads says that the >> right command is sectionnumber, but it's obviously outdated. > > The reference pages (and also the other wiki pages) explain often the > behaviors of MkII but for MkIV the numbering mechanism has slightly > changed. > > There are different ways to disable numbering for the heading, for a > whole sectionblock you can disable them with > \setupsectionblock[…][number=no] and for individual heading you can > use \setuphead[…][number=no] or \setuphead[…][incrementnumber=no]. > > Wolfgang Thanks. I guess \setupheads[number=no,sectionnumber=no] won't harm in any case (so the document will compile correctly on both the beta and the current). Cheers. -- Marco ___ 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] setupheads[sectionnumber=no] (and retrocompatibility issue)
Hello there. See this minimal example. %% cut here \setupheads[sectionnumber=no] \starttext \placecontent \chapter{Chapter} \section{Section} \subsection{Subsection} \stoptext %% end With version: 2012.01.25 14:16 the numbers are there (and if I tweak the ToC listing I get a mess). With the current (2011.05.18 22:26) everything is fine. Using [number=no] with the beta the numbers disapper, while the current prints out the numer (and again a mess in the ToC). http://wiki.contextgarden.net/Reference/en/setupheads says that the right command is sectionnumber, but it's obviously outdated. Thanks in advance for the attention. Cheers -- Marco ___ 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] What’s your favorite command?
Wolfgang Schuster writes: > Hi all, > > to bring some traffic to the list I have a question where I hope even > non regulars send a answer. The ConTeXt package is huge and provides > dozen of commands but I guess many have *one* favorite command (maybe > also functionality). \startmode & company changed my life. And the unicode support of luatex, of course. Many thanks to Taco and Hans (and the others contributors) for such beautiful tools. -- Marco ___ 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] Canonical way to escape the square brackets?
Wolfgang Schuster writes: > Am 28.01.2012 um 16:41 schrieb Marco Pessotto: > >> Dear list, >> >> I swear I searched the internet, but I guess the terms are too generic. >> The question is: is there a safe way to escape the square brackets, >> preventing them to be eaten by the previous command? For example: > No, there isn’t but you can stop ConTeXt to look for a optional with a \relax > after the command , e.g. \item\relax. > Ok, thanks a lot. Cheers -- Marco ___ 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] Canonical way to escape the square brackets?
Dear list, I swear I searched the internet, but I guess the terms are too generic. The question is: is there a safe way to escape the square brackets, preventing them to be eaten by the previous command? For example: \item [this should be in brackets] My solution is: \define\leftsquarebracket{[} \define\rightsquarebracket{]} \item \leftsquarebracket this should be in brackets\rightsquarebracket I'm pretty sure there is already a built-in command for them, so I'm asking the list. Thanks in advance. Best regards -- Marco ___ 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] pdf arrange
"Meer, H. van der" writes: > I am afraid I did not phrase my question clear enough. The problem is > producing a rearranged pdf from an existing one. > > Hans van der Meer > AFAIK, nothing bundled. But you can create a new PDF selecting and rearranging the pages. You could use pdfjam, which is LaTeX and Bourne shell based. Some time ago I wrote a perl script for this purpose, emulating pdfjam but without LaTeX (using only ConTeXt). https://gitorious.org/the-anarchist-library-tools/the-anarchist-library-tools/blobs/master/context-imposition/imposer.pl I hope this helps. Cheers -- Marco ___ 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] pdf arrange
Hans van der Meer writes: > I think I saw in the recent past here something about rearranging the pages > of a pdf. However, I cannot find it, therefore I take the liberty to place > this question. > The idea is to change the pages from 1,2,3,4,etc, into 1,3,2,4,etc. > Can it be done with one of the tools in the ConTeXt distribution, or else..? > Thanks in advance It's described in "Layouts in context". There are plenty of schemas for the imposition. For example: \setuppapersize[A5][A4,landscape] \setuparranging[2UP] % or \setuparranging[2*2*2] \setuppagenumbering[alternative=doublesided] \starttext \dorecurse{20}{\input knuth} \stoptext Then compile with context --arrange source.tex Bests. -- Marco ___ 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] \placelist and \writetolist
Wolfgang Schuster writes: > Replace \setuplist with \definelist, before you use a list you should create > it. I knew I was missing something obvious... Thanks a lot, it works. Best wishes -- Marco ___ 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] \placelist and \writetolist
Hello! I can't understand what I'm doing wrong here: % \setuplist[mylist] [alternative=c, width=0mm, style=\tfx, criterium=all] \starttext \placelist[mylist] \page[yes] \input knuth \writetolist[mylist]{}{Item} \stoptext % The document compiles fine with version 2011.05.18 22:2, but it fails miserably with the latest (2011.11.29 23:11) ! Missing number, treated as zero. system > tex > error on line 11 in file prova.tex: Missing number, treated as zero ... 1 \setuplist[mylist] 2 [alternative=c, 3 width=0mm, 4 style=\tfx, 5 criterium=all] 6 7 8 \starttext 9 10 \placelist[mylist] 11 >> 12 \page[yes] 13 14 \input knuth 15 16 \writetolist[mylist]{}{Item} 17 18 \stoptext , \doplacestructurelist ...um = "#2", number = "#3", extras = "#4", order = "#... \doplacerawlist ...ras }{\listparameter \c!order } \stoplistreferences \endgr... \doplacelist ...ginoflist \doplacerawlist [#1][#2] \doendoflist \dodoubleemptyonespaced #1#2->#1[{#2}][] \par l.11 ? H A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) Thanks in advance. -- Marco ___ 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] Imposition eats footnote numbers (on the latest beta) [FIXED]
On version: 2011.11.17 23:31 it works again. Thanks Hans! -- Marco ___ 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] Imposition eats footnote numbers (on the latest beta)
Hans Hagen writes: >> %% start minimal example >> >> \setuppapersize[A5][A4,landscape] >> \setuparranging[2UP] >> >> \setupnotedefinition[footnote][location=serried] >> >> \showframe >> >> >> \starttext >> >> test\footnote{\input knuth} >> \inmargin{this is in the margin} >> >> \stoptext >> %% stop. >> >> All the in-margin material has been eaten during the imposition. > > depends on how you run ... --arrange will take care of it normally > > Hans With current all is OK. With the latest beta even with the --arrange switch the margin material is lost. Best wishes -- Marco ___ 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] Imposition eats footnote numbers (on the latest beta)
Willi Egger writes: > Hi, > > Thanks for spotting this. I tested with my project where there are only few > footnotes, indeed the reference-numbers are gone once arranging is set on. > It looks like it's a in-margin material problem, not a footnote one. See the next example: %% start minimal example \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \setupnotedefinition[footnote][location=serried] \showframe \starttext test\footnote{\input knuth} \inmargin{this is in the margin} \stoptext %% stop. All the in-margin material has been eaten during the imposition. Best wishes -- Marco ___ 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] "doublesided=no" ignored on \startstandardmakeup with the latest beta
Wolfgang Schuster writes: > Am 12.11.2011 um 17:42 schrieb Marco Pessotto: > >> Wolfgang Schuster writes: >> >>> The argument of makeup commands are processed after context switch to >>> the right page and your setting “page=no” comes to late. Make the >>> changes at the begin of the document with \setupmakeup and you don’t >>> get the extra page. >>> >> >> Thanks for your reply. With the following example I still have 4 pages, >> >> the front >> [empty] >> the back >> [empty] >> >> %%% start example >> >> \setuppagenumbering[alternative=doublesided] >> \setupmakeup[page=no,doublesided=no] > > \setupmakeup[standard][…] > This indeed works. Thanks! -- Marco ___ 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] "doublesided=no" ignored on \startstandardmakeup with the latest beta
Wolfgang Schuster writes: > The argument of makeup commands are processed after context switch to > the right page and your setting “page=no” comes to late. Make the > changes at the begin of the document with \setupmakeup and you don’t > get the extra page. > Thanks for your reply. With the following example I still have 4 pages, the front [empty] the back [empty] %%% start example \setuppagenumbering[alternative=doublesided] \setupmakeup[page=no,doublesided=no] \starttext \startstandardmakeup ...the front \stopstandardmakeup \startstandardmakeup ...the back \stopstandardmakeup \stoptext %%% stop example. However, defining a custom makeup works. %%% start working example \setuppagenumbering[alternative=doublesided] \definemakeup[mypage][page=no,doublesided=no] \starttext \startmypagemakeup ...the front \stopmypagemakeup \startmypagemakeup ...the back \stopmypagemakeup \stoptext %%% stop Best wishes. -- Marco ___ 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] "doublesided=no" ignored on \startstandardmakeup with the latest beta
Hi! See the next minimal example (copied from "Layout in Context"): \setuppagenumbering[alternative=doublesided] \starttext \startstandardmakeup[doublesided=no] ...the front \stopstandardmakeup \startstandardmakeup[page=no] ...the back \stopstandardmakeup \stoptext The manual says it should generate 2 pages with no page number. With current (2011.05.18) this indeed happens. With the latest beta I have 4 pages: ...the front [1] ...the back [empty page] I guess there's a bug somewhere. Best wishes -- Marco ___ 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] Help on centering text inside the standard makeup
Wolfgang Schuster writes: > As a new feature in MkIV there is also a layout with the same name as the > makeup > environment and you can control the margins of your new title page environment > with \setuplayout[titlepage][…]. > > Wolfgang > This looks like the real right solution(tm). Thanks Wolfgang. (Also updated http://wiki.contextgarden.net/Simple_Cover_Page) Thanks again Best wishes -- Marco ___ 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] Help on centering text inside the standard makeup
Andreas Harder writes: > On 11.11.2011, at 13:27, Marco Pessotto wrote: > >> >> Hello! >> >> I have some problem centering the text inside the standardmakeup. The >> resulting alignment is centered, yes, but relative to the text block of >> the defined layout, and being a doublesided document, the left space is >> lesser then the right space (which is not what I wanted, as it's >> supposed to be the cover of a booklet). >> >> For example: >> >> % >> \setuppagenumbering[alternative=doublesided] >> \showframe >> >> \starttext >> >> \startstandardmakeup >> \raggedcenter >> This should be the long title >> \stopstandardmakeup >> >> \input tufte >> >> \stoptext >> % > > Hi, > > there is also a page makeup > > \startpagemakeup[align=center] > {\bfc This should be the long title} > \stoppagemakeup > > > Regards > Andreas That did the trick! I've updated the wiki at http://wiki.contextgarden.net/Simple_Cover_Page Thanks a lot Best wishes -- Marco ___ 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] Help on centering text inside the standard makeup
Hello! I have some problem centering the text inside the standardmakeup. The resulting alignment is centered, yes, but relative to the text block of the defined layout, and being a doublesided document, the left space is lesser then the right space (which is not what I wanted, as it's supposed to be the cover of a booklet). For example: % \setuppagenumbering[alternative=doublesided] \showframe \starttext \startstandardmakeup \raggedcenter This should be the long title \stopstandardmakeup \input tufte \stoptext % The \showframe still shows the defined layout for the whole document. I'm reading from Layouts in Context that the standard makeup should “exclude text from the standard pagebody and its layout”. The other solution could using frames, layers and the backgrounds, but I'm pretty sure I'm missing something here and that using the makups is the right thing to do. Setting width=\paperwidth,height=\paperheight makes the thing worse. It's like the width starts at the text block of the defined layout. % \setuppagenumbering[alternative=doublesided] \showframe \definemakeup[titlepage][width=\paperwidth, height=\paperheight,voffset=0mm,hoffset=0mm] \starttext \starttitlepagemakeup \raggedcenter \bfc This should be the long, long, very long title \stoptitlepagemakeup \input tufte \stoptext % Thanks in advance. Cheers -- Marco ___ 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] Imposition eats footnote numbers (on the latest beta)
Hello there. With the latest beta, the following example fails to show the footnote number. Commenting the setuparranging shows it again. %% start minimal example \setuppapersize[A5][A4,landscape] \setuparranging[2UP] \starttext test\footnote{this is the note} \stoptext %% stop. Current (2011.05.18) is not affected. Best wishes -- Marco ___ 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] highlight problems on xml export
Hans Hagen writes: > On 7-11-2011 17:48, Marco Pessotto wrote: >> >> Well, after some trial and errors, I think I get what is going on with >> the highlight. When on the generated pdf the is at the edge >> of the paper, the space is eaten. Hacky workaround follows: > > i rewrote some of the 'heuristics' so best test the next beta In my testing the latest beta (2011.11.08 15:20) works well, and it fixes some other problems (random , space eaten before which I noticed only now diff'ing the output and which my infamous hacky workaround didn't fix). Thanks a lot! Best wishes -- Marco ___ 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] highlight problems on xml export [hacky workaround included]
Hans Hagen writes: > On 7-11-2011 17:48, Marco Pessotto wrote: >> >> Well, after some trial and errors, I think I get what is going on with >> the highlight. When on the generated pdf the is at the edge >> of the paper, the space is eaten. Hacky workaround follows: > > i rewrote some of the 'heuristics' so best test the next beta > I will for sure. Looking forward to the beta. Thanks Best wishes -- Marco ___ 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] highlight problems on xml export [hacky workaround included]
Aditya Mahajan writes: > TeX does finite precision arithematics, so infinity is not > possible. But you can set paper width (and paper height) to \maxdimen, > which is the maximum dimension TeX can handle. > > \definepapersize[max][paperwidth=\maxdimen, paperheight=\maxdimen] > \setuppapersize[max] Thanks! -- Marco ___ 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] highlight problems on xml export [hacky workaround included]
Well, after some trial and errors, I think I get what is going on with the highlight. When on the generated pdf the is at the edge of the paper, the space is eaten. Hacky workaround follows: %% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \startmode[huge] \definepapersize[huge][width=4000mm] \setuppapersize[huge][huge] \setupbodyfont[8pt] \stopmode \starttext \startparagraph Published on \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \startparagraph Published on vol. I Published on vol. I Published on vol. I Published on \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \startparagraph Published on vol. I Published on vol. I Published on vol. I Published on blablabla \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \stoptext %%% stop example Compiled with context prova.tex, the space is eaten on the second paragraph. See produced pdf. http://www.w3.org/1998/Math/MathML";> Published on Dissonanze vol. I Published on vol. I Published on vol. I Published on vol. I Published on Dissonanzevol. I Published on vol. I Published on vol. I Published on vol. I Published on blablabla Dissonanze vol. I With `context --mode=huge prova.tex` everything is fine (As the paper is 4 meters long on 8pt!) http://www.w3.org/1998/Math/MathML";> Published on Dissonanze vol. I Published on vol. I Published on vol. I Published on vol. I Published on Dissonanze vol. I Published on vol. I Published on vol. I Published on vol. I Published on blablabla Dissonanze vol. I So, my impression is that for exporting the modal compilation is not an option. Is there a way to set the paper width to infinity? (Even if, speaking about impression, I believe the 4 meters are enough for the average usage). Best wishes -- Marco ___ 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] highlight problems on xml export (Was: Missing while exporting to xml before )
I think I'm hitting another bug with highlights: See this following example: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext \startparagraph Published on \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \startparagraph Published on vol. I Published on vol. I Published on vol. I Published on \dontleavehmode\emph{Dissonanze} vol. I \stopparagraph \stoptext %%% stop example Output: http://www.w3.org/1998/Math/MathML";> Published on Dissonanze vol. I Published on vol. I Published on vol. I Published on vol. I Published on Dissonanzevol. I As you can see, in the first case the space after "Dissonanze" is preserved, while in the second paragraph the space is eaten and there's no way to add it. The only thing that changes is the lenght of the paragraph. (Oh, and thanks for the previous reply). Best wishes -- Marco ___ 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] Missing while exporting to xml before
Hi! The highlight seems to act strangely. In addition to the previous report, I get an unwanted : %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext \section{test} \emph{Hello} world! \stoptext %%% stop example And the output is: http://www.w3.org/1998/Math/MathML";> 1 test Hello world! Am I doing it wrong? Best wishes -- Marco ___ 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] Missing while exporting to xml before
Hi! See the following minimal example: %%% start example \setupbackend[export=yes] \definehighlight[emph][style=italic] \starttext Hey, hello! \emph{Hello world!} \stoptext %%% stop example And the output is: http://www.w3.org/1998/Math/MathML";> Hey, hello! Hello world! Best regards -- Marco ___ 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] \unknown lost on xml export
Hello there. While exporting the ellipses are completely lost. Is there a workaround for cases like that (I have the feeling this is the top of the iceberg)? The following minimal example should be clear enough: %%% start example \setupbackend[export=yes] \starttext Hello\unknown{} world! \stoptext %%% end example Which leads to: http://www.w3.org/1998/Math/MathML";> Hello world! Best regards -- Marco ___ 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] Layouts in ConTeXt book finished and available
Taco Hoekwater writes: > PS > We have received a cease&desist for http://www.boekplan.nl/ from the > company that owns http://www.boekenplan.nl/, we have switched to the new > name "H2O Boeken" (H2O Books). This new name is based on the first > letters of the last names of the owners of the company. > The bank account still says To: Boekplan Account number: 390392065 IBAN: NL05TRIO0390392065 SWIFT: TRIONL2UXXX Banking institution: Triodos N.V. Is it correct, now that the name changed? Best wishes -- Marco ___ 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] \crlf breaks alignment inheritance
Wolfgang Schuster writes: > Am 26.05.2011 um 16:02 schrieb Marco Pessotto: > >> In the example I provided, I can't break the line without starting a new >> paragraph and without messing it, unless I reset the "middle" in the nested >> alignment. So I believe there's something in the inheritance that breaks. > > The “middle” is necessary because \crlf use a flag insert \hfill at > the end of the line where it was put when you have left aligned text. > > This flag is reset with \setupalign and also \startalignment and > the command thinks you have left aligned text unless you add the “middle” > keyword and \crlf does now know that it shouldn’t insert \hfill. > > With a new paragraph this doesn’t happen and you get always the correct > output. > > Wolfgang Thanks again :-) -- Marco ___ 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] \crlf breaks alignment inheritance
Wolfgang Schuster writes: > Am 26.05.2011 um 16:02 schrieb Marco Pessotto: > >> So what's the correct way to force a line break without starting a new >> paragraph, like \\ in LaTeX? Maybe the paragraph is marked also by more >> spacing, and that particular linebreak is not meant to be a paragraph >> ending. Like, e.g., for poems. And I believed the \crlf was the correct >> way to do it. Please correct me if I'm wrong. > > To suppress whitespace between paragraph you can use the packed environment. > > For poems i suggest to use the lines environment where the end of each line > is also the end of a paragraph, you can also change the alignment of > the content with the align key of the environment, e.g. > > \startlines[align=middle] > … > \stoplines > > or change the settings global (i.e. \setuplines[align=middle]). > > Wolfgang Ok, thanks for your answers. -- Marco ___ 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] \crlf breaks alignment inheritance
Wolfgang Schuster writes: > Am 26.05.2011 um 15:25 schrieb Marco Pessotto: > >> Wolfgang Schuster writes: >> >>> Am 26.05.2011 um 10:53 schrieb Marco Pessotto: >>> >>>> >>>> Hello there! >>>> >>>> I've found a problem with the latest ConTeXt, but I guess it's been >>>> present for a while. >>> >>> Use \par or an empty line. >>> >>> Wolfgang >> >> The workaround was already present in the minimal example (setting again >> the middle alignment). I was just reporting a problem. > > \par (or a empty line) isn’t a workaround, it’s the correct way to end > a paragraph and \crlf is the workaround which doesn’t work in all cases. So what's the correct way to force a line break without starting a new paragraph, like \\ in LaTeX? Maybe the paragraph is marked also by more spacing, and that particular linebreak is not meant to be a paragraph ending. Like, e.g., for poems. And I believed the \crlf was the correct way to do it. Please correct me if I'm wrong. In the example I provided, I can't break the line without starting a new paragraph and without messing it, unless I reset the "middle" in the nested alignment. So I believe there's something in the inheritance that breaks. Bests -- Marco ___ 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 ___