[NTG-context] Re: Why is only the first frame protruding into the margin?
yeee that's it. adding the command after the scripts solved the protruding. thanks to all of you who took time to look into the thing... and to you Hans. It would be imposible that I had thought of this as the source of my problem!!! ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why is only the first frame protruding into the margin?
On 5/17/2024 8:22 PM, madiazm.eo...@gmail.com wrote: thanks Pablo, but this is strange If I reproduce your code in a new file I see the perfect alignment of the frames. But I had changed the code in my original file as suggested by Wolfgang and I additionally commented all lines in the "firstHeadings" definitions following your advice and after compiling... the same result. The strange thing is that it is only the first section that protrudes, the other sections are right (as seen in the link). Therefore it must not be the code definition, since in that case all sections should protrude... Over the weekend I will slowly move my code to a new file with your code adding a bit everytime to try to spot the moment when I get this strange behaviour and then I will write again. ps. I included the link because there is no attach option here in the online-mailing-list. Sorry if it not ok. thanks if you do something \switchtobodyfont without ever having loaded it (before starttext) spaces can creep in depending on what files are loaded for that font also, in order to avoid grouping issues / side effects you can do this before \starttext: \usebodyfont[foo] when you use multiple bodyfont sets Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: MyWay from dl.contextgarden.net
On 5/17/2024 10:49 PM, garu...@azules.eu wrote: Several documents previously stored on dl.contextgarden.net are no longer accessible. https://wiki.contextgarden.net/This_Way_-_My_Way#MyWay Are they available on another server ? or is there a copy somewhere else ? Thanks for your help everything that makes sense (also historically) is in the distribution under doc Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] MyWay from dl.contextgarden.net
Several documents previously stored on dl.contextgarden.net are no longer accessible. https://wiki.contextgarden.net/This_Way_-_My_Way#MyWay Are they available on another server ? or is there a copy somewhere else ? Thanks for your help Garulfo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Wiki - test/proposal to further clarify documentation
I have tested on 2 pages : - https://wiki.contextgarden.net/Sciences (only mathematics part) - https://wiki.contextgarden.net/Fonts After these tests, I think this may help users to find their way around the various sources of documentation : In one small table he/she has an overview of the documentation for a given topic, : - the few key tutorials - link to one "main wiki page" about the topic - the few key manuals - the reference for commands I'm not sure I've selected the few documents that are considered by the community as the key tutorials. Thanks for your feedback again. PS : in order to benefit from mediawiki page organization features, I moved some pages, for example wiki.contextgarden.net/blablabla ==> wiki.contextgarden.net/Topic/blablabla ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why is only the first frame protruding into the margin?
here again... incredibly the protruding comes after creating the second script. If I only use the libertinus fonts every thing is ok. the code definitions don't find the cormorant font and use libertinus. But after adding the second typescript and compiling... there comes the protruding of the first frame!! I deleted all spaces in the definitions for the case, but no. Definitively I can't get it right and I don't find a logical explanation. here is the last part of my script (the prior definitions are not problematic, since they worked when only using "miFuente". It seems to be something in "miCorm" that produces the protruding \starttypescript[miFuente] \definetypeface [miFuente] [rm] [serif] [libertinus] [default] \definetypeface [miFuente] [ss] [sans] [libertinussans] [default] \definetypeface [miFuente] [tt] [mono] [libertinusmono] [default] \stoptypescript \starttypescript[miCorm] \definetypeface[miCorm][rm][serif][cormorant][default] \stoptypescript ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why is only the first frame protruding into the margin?
thanks Pablo, but this is strange If I reproduce your code in a new file I see the perfect alignment of the frames. But I had changed the code in my original file as suggested by Wolfgang and I additionally commented all lines in the "firstHeadings" definitions following your advice and after compiling... the same result. The strange thing is that it is only the first section that protrudes, the other sections are right (as seen in the link). Therefore it must not be the code definition, since in that case all sections should protrude... Over the weekend I will slowly move my code to a new file with your code adding a bit everytime to try to spot the moment when I get this strange behaviour and then I will write again. ps. I included the link because there is no attach option here in the online-mailing-list. Sorry if it not ok. thanks ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
receiving incremental file list ./ ctan.lsr document-2.htm download-1.htm download-2.htm logo-ade.png logo-cts.png logo-pod.png rss.xml show-fil.pdf context/latest/ context/latest/cont-lmt.zip context/latest/cont-mpd.zip context/latest/cont-ppc.zip context/latest/cont-sci.zip context/latest/cont-tmf.zip context/latest/cont-tst.7z context/latest/cont-tst.tar.xz context/latest/cont-tst.zip general/manuals/ general/manuals/pdfmerge.pdf general/qrcs/ general/qrcs/setup-mapping-en.pdf general/qrcs/setup-mapping-it.pdf sent 185,981 bytes received 43,500,122 bytes 2,647,642.61 bytes/sec total size is 581,971,883 speedup is 13.32 Running archiver: New dir: /var/www/aanhet.net/context//htdocs/archives/context-2024-05-17.17 248030043 /var/www/aanhet.net/context//htdocs/archives/context-2024-05-17.17/latest 126745317 /var/www/aanhet.net/context//htdocs/archives/context-2024-05-17.17/current 374779456 /var/www/aanhet.net/context//htdocs/archives/context-2024-05-17.17 374779456 total ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] update
Hi, This weekends update: - we're currently checking the upcoming math manual and in the process we streamline some mechanisms - as part of the BT presentation about par passes we introduced \toddlerpenalty but we leave it to the user to guess what that is (it fits into widow, club and orphan penalty collection) - we could already produce pdf 2.0 but especially when one mises with older files, some care is needed; the inclusion 'compact' mechanism has been cleaned up a bit and the merge interface is converging (it has to do with efficient font sharing, cleanup and fixing of files outside our control); when one has issues with inclusion, try with compact= (set to nothing) - although we're mostly done with tagging it will get some attention as we go; it's mostly about playing safe and getting valid pdf's - for rhaban (posters) another fancy feature was added: \startTEXpage[offset=1ts] \samplefile{tufte}\removeunwantedspaces\space \startshadow[contrastcolor=red,weight=100]\blue\samplefile{tufte}\removeunwantedspaces\stopshadow\space \samplefile{tufte}\removeunwantedspaces\space \startshadow[contrastcolor=red,weight=100,dx=0,dy=0]\blue\samplefile{tufte}\removeunwantedspaces\stopshadow\space \samplefile{tufte} \blank \setupshadows[shadowed][unit=pt,dx=.5,dy=-.5,weight=200] \shadowed{\bfd Tufte\setstrut\strut} \stopTEXpage Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why is only the first frame protruding into the margin?
On 5/17/24 11:02, madiazm.eo...@gmail.com wrote: > thanks Wolfgang for your advice and sorry for being so verbose, but > since the margins are "included" in the problem I decided to put my > layout there too. > > I made your suggested changes and unfortunately it doesnt work, but > being a bit surprised by the margins I printed a copy of the page > and still worse... Hi Miguel, this should work (also in the sense of a minimal sample): \showframe\showgrid \defineframedtext[FunnyText] [frame=on, align=flushright,location=right] \def\FrameTitle#1% {\setMPtext{FunnyFrame} {\hbox spread 1em{\hss\strut \color[blue]{\tfx Apartado #1}\hss}}} \define[2]\firstHeadings{% \dontleavehmode \switchtobodyfont[miCorm]% \FrameTitle#1% \startFunnyText {\switchtobodyfont[miCorm,20.7pt] #2} \stopFunnyText} \setuphead [section] [command=\firstHeadings, indentnext=no] \starttext \startsection[title=a] b \stopsection \startsection[title=a] b \stopsection \startsection[title=a] b \stopsection \stoptext BTW, you inadvertely introduce the space here: \define[2]\firstHeadings{% \dontleavehmode \switchtobodyfont[miCorm]% \FrameTitle#1% Unless you comment the space after the right bracket, it will be included in your definition of first headings. As for external downloads, better avoid unless required. In any case, the minimal code should be part of your message. Just in case it helps, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why is only the first frame protruding into the margin?
I finally found showframe (so difficult to remember things...) to see and indeed the first frame is ignoring the margin-distance (apart from the issues of printed margins in paper, that I should persue too... page with frames: https://drive.google.com/file/d/1684nQRH_Cgm2P_5dW1JbODJjdscrj3tB/view?usp=sharing ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why is only the first frame protruding into the margin?
thanks Wolfgang for your advice and sorry for being so verbose, but since the margins are "included" in the problem I decided to put my layout there too. I made your suggested changes and unfortunately it doesnt work, but being a bit surprised by the margins I printed a copy of the page and still worse... It semms that the first frame is good aligned to the specified margin, and it is the rest of the text that gets more than 5mm extra space at the right margin and about 2 mm less in the left margin. I think the printer is a bit involved too, but since in the pdf we can see this protruding I think there must be something strange to get this outcome. The papers are for my fellows, so it is not critical if it stays so, but since I'm trying to learn a bit more to use context, it annoys me that I don't get to understand some problems... thanks again for taking time ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why is only the first frame protruding into the margin?
madiazm.eo...@gmail.com schrieb am 17.05.2024 um 00:05: Hi, I used some code from the meta-fun manual to recreate a labelled frame around my sections. But the first framedtext protrudes a couple of mm into the margin. Only the first one in the page. I intentionaly added other sections and the frames aline to the margin ok. I tried to put something before the first frame (noindentation, dontleavehmode) because I sometimes read it solves problems, but not the case here. so Why is the first frame protruding and only the first? [...] Include only setups in your examples which are necessary to show the problem, the custom layout isn't necessary and can be left out. \startuseMPgraphic{FunnyFrame} picture p ; numeric w, h, o ; p := textext.rt(\MPstring{FunnyFrame}) ; w := OverlayWidth ; h := OverlayHeight ; o := BodyFontSize ; p := p shifted (2o,h-ypart center p) ; draw p ; drawoptions (withpen pencircle scaled .25pt withcolor blue) ; draw (2o,h)--(0,h)--(0,0)--(w,0)--(w,h)--(xpart urcorner p,h) ; %draw boundingbox p ; %%%quitamos el frame pequeño setbounds currentpicture to unitsquare xyscaled(w,h) ; \stopuseMPgraphic \defineoverlay[FunnyFrame][\useMPgraphic{FunnyFrame}] \defineframedtext[FunnyText][width=.85\textwidth, height=20mm, frame=off, background=FunnyFrame, align=flushright,location=right, after={\blank[2*big]}]%foregroundsytel amplía la palabra Apartado \def\FrameTitle#1% {\setMPtext{FunnyFrame}{\hbox spread 1em{\hss\strut \color[blue]{\tfx Apartado #1}\hss}}} \setMPtext{FunnyFrame}{} % initialize the text variable \define[2]\firstHeadings{% \dontleavehmode \switchtobodyfont[miCorm] \FrameTitle#1% \dontleavehmode \startFunnyText {\switchtobodyfont[miCorm,20.7pt] #2} \stopFunnyText } \setuphead [section] [color=blue, command=\firstHeadings, indentnext=no] Get rid of \dontleavehmode in your custom section layout, avoid blank lines in definitions and move the font changes to \setuphead. \define[2]\firstHeadings {\FrameTitle{#1}% \startFunnyText #2% \stopFunnyText} \setuphead [section] [color=blue, style={\switchtobodyfont[miCorm]}, textstyle={\switchtobodyfont[20.7pt]}, command=\firstHeadings, indentnext=no] \startsection[title=Aspectos generales] Esta guía contiene toda la documentación necesaria para administrar la prueba unificada de certificación que ha diseñado la comisión de alemán. Se ruega al profesorado\footnote{Todas las alusiones a la forma del masculino genérico que se recogen en este documento deberán entenderse referidas a la condición masculina o femenina de cada persona según corresponda.} que se familiarice con las secciones del documento a través del índice y acuda a ellas según vaya siendo necesario, de manera que se pueda administrar y corregir la prueba de la manera más satisfactoria posible. \stopsection Use dummy text when it possible to keep the example short and clean. \startsection[title=Aspectos generales] \samplefile{lorem} \stopsection Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why is only the first frame protruding into the margin?
buahhh, I'm on context-on-web too, but I get this protruding... I even tried to put something before the section (letter k in the pdf) to see if the reason was being the frame the first thing on the page, but persists... ... I can't atach my pdf! here the link https://drive.google.com/file/d/1pICcD3EY7q1CVP7Q5tJSDJzRTh-uorzj/view?usp=sharing thanks for comparing... ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___