[NTG-context] Re: ConTeXt Group Subscriptions
Hi Keith, > On 18 Nov 2023, at 18:16, Keith McKay wrote: > > Hi, > > I was wondering if the reminder for the ConTeXt Group Membership > subscriptions had been sent out? It's been over a year since I took out > membership and I thought I would have had a reminder by now. I hope I haven't > missed the email. > Rest assured, we definitely have you registered as a member! Usually we send out the membership invoices at the end of the winter, and communication for the next meetings tends to pickup around easter. Best wishes, Taco — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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: learning about the grid
Am 19.11.23 um 23:17 schrieb madiazm.eo...@gmail.com: Thanks, Pablo and Henning I suppose I am making a mistake with my setupinterlinearspace. My school asks for Times New Roman (I use termes) 12pt and onehalfspacing. In latex I used linespread{1.3} and so I supposed setting ConTeXt with setupinterlinearspace[1.3ex] was the right way (I read somewhere that vertical spaces should be measured in ex and horizontal spaces in em; maybe it's not widely accepted). I tried setting my interlinearspace to 3ex and it looked much better, but I must compare it with a onehalfspacing of wordprocessors to be sure it is not such different. Sorry for not providing an example (again my lack of experience), I will do it from now on. thanks, I will try to learn a little more to get an idea of how ConTeXt ist built It’s \setupinterlinespace, and the default is 2.8ex, so 1.3ex is too small. Try to understand https://wiki.contextgarden.net/Command/setupinterlinespace Hraban ___ 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: unwanted blank page
sorry if i dont get your problem right understood, but i'm completely new to context. I use a hack not to get the number not printed in the title page (though I define sectionblocks for keeping different numbering systems for the table of contents and the document) I use \setuppagenumbering[location=] for not getting the number printed and then I reset the page numbering for the next sections. I copy my code so that you know what I do. Sorry if it doesnt help %% %%% LOS BLOQUES % %%% \definesectionblock[portada][number=no] \defineconversionset [portada:pagenumber][][characters] \defineconversionset [frontpart:pagenumber][][romannumerals] \defineconversionset [bodypart:pagenumber][][numbers] \defineconversionset [appendixpart:pagenumber][][Characters] %%% %%% NUMERACIÓN DE PÁGINAS, SETUP % %%% \setuppagenumbering[alternative=doublesided,location={footer,inmargin}] \setupuserpagenumber[way=byblock] \starttext \startsectionblock[portada] \setuppagenumbering[location=] \input{03_portadaEval.tex}%this is my title page \stopsectionblock \startfrontmatter[] \start \setuplayout[reset] \setupinterlinespace[.8ex] \completecontent \stop \stopfrontmatter \startbodymatter[] \input{50_Evaluacion.tex}%a piece of text \stopbodymatter \stoptext ___ 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: learning about the grid
Thanks, Pablo and Henning I suppose I am making a mistake with my setupinterlinearspace. My school asks for Times New Roman (I use termes) 12pt and onehalfspacing. In latex I used linespread{1.3} and so I supposed setting ConTeXt with setupinterlinearspace[1.3ex] was the right way (I read somewhere that vertical spaces should be measured in ex and horizontal spaces in em; maybe it's not widely accepted). I tried setting my interlinearspace to 3ex and it looked much better, but I must compare it with a onehalfspacing of wordprocessors to be sure it is not such different. Sorry for not providing an example (again my lack of experience), I will do it from now on. thanks, I will try to learn a little more to get an idea of how ConTeXt ist built ___ 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: Strange behavior with anglestriped()
Hi Fabrice,It seems to me the colors are the same, although they may appear different at first sight because the « with » of the lines are different (the width is larger in the lower rectangle).I attach the PDF created with your code.Best regards: Otared hachage-couleur.pdf Description: Adobe PDF document On 19 Nov 2023, at 18:56, Fabrice Couvreurwrote:Hi,I don't understand why the hatching of the two rectangles is not the same color. Thanks for your help.Fabrice\starttext \setupbodyfont[8pt] \startMPcode path p, q, r, b ; z[0] = (2cm,0cm) ; z[1] = (2cm,2cm) ; z[2] = (0cm,2cm) ; p := unitsquare xyscaled (9cm, 5cm) ; q := llcorner p--z[0]--z[1]--z[2]--cycle ; r := unitsquare xyscaled (7cm,3cm) shifted(2cm,2cm) ; b := z[2]--z[1]--ulcorner r--urcorner p--lrcorner r--z[1]-- z[0]--llcorner p--cycle ; draw b anglestriped (1,45,2) withcolor cyan; draw q anglestriped (1,45,2) withcolor cyan; draw p ; label.llft("A", p) ; label.lrt("D", p) ; label.ulft("B", p) ; label.urt("C", p) ; label.lft("M", z[2]) ; label.ulft("N", z[1]) ; label.bot("P", z[0]) ; label.top("J", ulcorner r) ; label.rt("I", lrcorner r) ; label.bot(btex $x$ etex,(llcorner p+z[0])/2); label.lft(btex $x$ etex,(llcorner p+z[2])/2); \stopMPcode\stoptext ___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.nlwebpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)archive : https://github.com/contextgarden/contextwiki : https://wiki.contextgarden.net___ Otared Kaviane-mail: ota...@gmail.comPhone: +33 6 88 26 70 95 ___ 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: Metapost label text surrounded by white border
Am 19.11.23 um 16:41 schrieb Emanuel Han via ntg-context: I'd like to surround black text with a white 1mm thick border in a Metapost label. Here is my code, which doesn't draw the border at all and which draws the text in white instead of black (I'm using mkiv and mkxl version 2023.09.26 18:19 on osx-arm6): | |beginfig(1); % Define the text and colors string label_text; label_text = "Your Text"; color text_color, border_color; text_color = black; border_color = white; % Draw the label with the specified colors label(textext(label_text) scaled 1.0, origin) withcolor text_color withpen pencircle scaled 1mm withcolor border_color; endfig;| Have a look into luametafun.pdf (p.10) if lmt_outline does what you want. Hraban ___ 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] Strange behavior with anglestriped()
Hi, I don't understand why the hatching of the two rectangles is not the same color. Thanks for your help. Fabrice \starttext \setupbodyfont[8pt] \startMPcode path p, q, r, b ; z[0] = (2cm,0cm) ; z[1] = (2cm,2cm) ; z[2] = (0cm,2cm) ; p := unitsquare xyscaled (9cm, 5cm) ; q := llcorner p--z[0]--z[1]--z[2]--cycle ; r := unitsquare xyscaled (7cm,3cm) shifted(2cm,2cm) ; b := z[2]--z[1]--ulcorner r--urcorner p--lrcorner r--z[1]-- z[0]--llcorner p--cycle ; draw b anglestriped (1,45,2) withcolor cyan; draw q anglestriped (1,45,2) withcolor cyan; draw p ; label.llft("A", p) ; label.lrt("D", p) ; label.ulft("B", p) ; label.urt("C", p) ; label.lft("M", z[2]) ; label.ulft("N", z[1]) ; label.bot("P", z[0]) ; label.top("J", ulcorner r) ; label.rt("I", lrcorner r) ; label.bot(btex $x$ etex,(llcorner p+z[0])/2); label.lft(btex $x$ etex,(llcorner p+z[2])/2); \stopMPcode \stoptext ___ 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] Metapost label text surrounded by white border
I'd like to surround black text with a white 1mm thick border in a Metapost label. Here is my code, which doesn't draw the border at all and which draws the text in white instead of black (I'm using mkiv and mkxl version 2023.09.26 18:19 on osx-arm6): beginfig(1); % Define the text and colors string label_text; label_text = "Your Text"; color text_color, border_color; text_color = black; border_color = white; % Draw the label with the specified colors label(textext(label_text) scaled 1.0, origin) withcolor text_color withpen pencircle scaled 1mm withcolor border_color; endfig;___ 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: learning about the grid
Am 19.11.23 um 13:27 schrieb Miguel Diaz: 1. Why are the lines printed one over the other when grid=no? how do profis then use context without grid? That usually only happens in one of the column modes that requires the grid. It doesn’t happen in usual one-column typesetting. There must be something wrong in your setup. Please make a minimal example (MWE). 2. Is there a document where I can read how the grid is conceived to work for the many options in a simple way? AFAIK, the details manual is the only documentation for it. Hraban ___ 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: learning about the grid
On 11/19/23 13:27, Miguel Diaz wrote: > [...] Hi Miguel, I don’t use the grid. This is also the default in ConTeXt. I’m not sure whether I’m getting your point here. See what the difference between not enabling the grid and enabling it: \showframe\showgrid \setupwhitespace[medium] \starttext \input knuth \setuplayout[grid=yes]\page \input knuth \stoptext > 1. Why are the lines printed one over the other when grid=no? how do > profis then use context without grid? As said, ConTeXt is \setuplayout[grid=no] by default. As far as I can recall it, the default value is \setupinterlinespace[line=2.85ex]. I have just discovered that with values such as line=1.3ex, \setuplayout[grid=yes] behaves very differently than with values such as line=2ex (and above). I mean, lines follow the grid when the text fits. See the difference with: \showframe\showgrid \setupinterlinespace[line=1.3ex] \starttext \dorecurse{25}{asa aeo eau} \setuplayout[grid=yes]\page \dorecurse{25}{asa aeo eau} \stoptext According to https://wiki.contextgarden.net/Grid_typesetting (feel free to improve the article), a way of solving this would be to wrap your stuff inside: \startlinecorrection ... \stoplinecorrection The problem is that your interline space is too small to prevent line collapsing. ex is the height of the lowercase 'x'. Are you sure that your school doesn’t require 1.3em (height of capital 'M') as interline space instead? You can get yourself the values: \starttext \the\exheight\\ %\the \dimexpr1.3\exheight\\ \the\emwidth \stoptext The first line will give you 1ex is about 5.7pt (with the default font used by ConTeXt). 1.3ex would be less than 6.75pt. The value of 1em is the value of the font size. Default for ConTeXt is 12pt, so 1em has to be 12pt. I think it is clear now that an interline space of 1.3ex calls for line overlapping. That being said, I don’t know why the grid avoids collapsing them (if the person explicitly asks for this). > 2. Is there a document where I can read how the grid is conceived to > work for the many options in a simple way? See the wiki article above. The mailing list is also a way of getting help. One suggestion, please always provide a minimal working sample (that can be copied, pasted and compiled automatically), when you ask for help. How minimal? Well, they cannot lack essential parts to be compiled. Other than that, they should only contain required content to reproduce your issue. This minimal working sample helps the one who reads to understand what you are dealing with. Otherwise, it is really hard to understand which kind of issue you might be facing (consider that no one else may read your mind or be in front of your computer). I hope it might help, 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] learning about the grid
Hi everyone, being a newbie I just discovered how different setups for the grid may affect my (very simple) document. In the Details manual (which of course I don't understand because of my unexperience) I read that many people don't use the grid, but when I configure grid=no the whole lines of a section are printed one over the other. Playing with the options and setupinterlinespace I got the unhappily desired 1.3ex that may school requieres for the teaching programs (grid=line, interlinespace=1.3ex), but I somehow feel that's not the right way to go. 1. Why are the lines printed one over the other when grid=no? how do profis then use context without grid? 2. Is there a document where I can read how the grid is conceived to work for the many options in a simple way? thanks in advance ___ 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: unwanted blank page
Hans van der Meer via ntg-context schrieb am 19.11.2023 um 11:56: I should have a first page without pagenumber and pagenumbers on the subsequent ones. However the MWE here introduces an unwanted blank page from the call to \setuppagenumbering[state=start]. And the \setuppagenumbering has to come after the \page, of course. Should I program otherwise? There is nothing you can do here for the moment, the empty page is caused by a new piece of code in page-lay.mkxl (see below) to go to the next odd page when you use the \setuppagenumbering command. page-lay.mkxl (line 1436): \appendtoks \ifnum\realpageno>\plusone \page[\v!odd]% \setuplayout \fi \to \everysetuppagenumbering 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] unwanted blank page
I should have a first page without pagenumber and pagenumbers on the subsequent ones.However the MWE here introduces an unwanted blank page from the call to \setuppagenumbering[state=start].And the \setuppagenumbering has to come after the \page, of course.Should I program otherwise? yours sincerelydr. Hans van der Meer % test pagenumbering start-stop\setuppapersize[A5][A5]\starttext\setuppagenumbering[state=stop]\ConTeXt\space\contextversion\blankThis is page 1 without pagenumber.\crlf\page\setuppagenumbering[state=start]This should be a page with pagenumber 2.\crlfBut the pagenumber is 3 instead after blank page 2.\stoptext extrapage.pdf Description: Adobe PDF document ___ 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 ___