[NTG-context] French letter style and date
Dear all, I can't manage to get the date on a french letter style. I am using ConTeXt ver: 2013.04.07 01:04 MKIV beta fmt: 2013.4.7 int: english/english I also tried some older versions and with ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.31 int: english/english I get a date printed above the destination address. I also get a date with other styles. Did anything change in the letter module between this two versions? Does anyone know how to get the date with the new version? Here is my test file. \usemodule[letter] \useletterstyle[french] \setupletter[ date={20 juin 2013}, toname={Jane Doe}, toaddress={24 rue des acacias\\63265 Trifoullis les Oies}, signature={John Doe}, opening={Mademoiselle,}, closing={Je vous prie de recevoir, Mademoiselle, mes meilleures salutations.} ] \setupletterlayer[reference][list={date}] \startletter \input knuth \stopletter Thank you for your help. -- Jean-Philippe Rey jp...@noos.fr ___ 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] Failure building standalone
Hi All, Mojca, please excuse my ignorance of the inner workings of windows, but would it not be possible to have the permissions corrected by the first-setup.sh script after the rsync? regards Keith. Am 21.06.2013 um 07:56 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com: On Thu, Jun 20, 2013 at 6:39 PM, hwit...@gmail.com wrote: Thanks Mojca. Re-running the command today got me a little further. Thank you. The problem encounted now is: sh ./first-setup.sh --modules=all --engine=luatex --context=current receiving incremental file list sent 64 bytes received 322 bytes 85.78 bytes/sec total size is 10993585 speedup is 28480.79 env: mtxrun: Permission denied I explicity set the permissions to allow me execute access, but script fails toward the end. But, it looks lke the sh script itself is chaning the perameters. Or else my setup is intentionally tricking me. Unless you comment out the part of first-setup.sh which syncs ./bin/mtxrun.exe, the file is going to be overwritten each time and the file on server wasn't executable (because it usually doesn't make any difference for windows users anyway). I fixed the executable bits on server. Please try again. (But please note that when we user rsync as provided by rsync in past, binaries were broken even if the executable bit was set on the server. We had to use set cygwin nontsec or something like this to overcome the problem, or run chmod after each sync. I hope that you won't be bitten by this, but we were.) Mojca ___ 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] French letter style and date
Am 20.06.2013 um 20:50 schrieb Jean-Philippe Rey jp...@noos.fr: Dear all, I can't manage to get the date on a french letter style. I am using ConTeXt ver: 2013.04.07 01:04 MKIV beta fmt: 2013.4.7 int: english/english I also tried some older versions and with ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2011.7.31 int: english/english I get a date printed above the destination address. I also get a date with other styles. Did anything change in the letter module between this two versions? Does anyone know how to get the date with the new version? I put a new version online which fixes the problem, if you don’t want to wait you can add \setupletterlayer[location][alternative=french] to your document. Wolfgang ___ 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] Failure building standalone
On Fri, Jun 21, 2013 at 9:54 AM, Keith J. Schultz wrote: Hi All, Mojca, please excuse my ignorance of the inner workings of windows, but would it not be possible to have the permissions corrected by the first-setup.sh script after the rsync? (I'm not sure to which part you were replying.) Sure it could, but it's way better if the original file on the server already has the right permissions, else rsync will keep reverting the change, over and over again. (We are talking about using cygwin directly now.) The problems that we had on native windows (using cygwin's rsync only) was that even with proper permissions on the server, cygwin did something very bad/weird with permissions on the client's side, so the resulting binaries were completely useless. Of course, running chmod helped, but that's a weird cure because it has to be repeated after each sync. Each sync fixes (= destroys) permissions again. Using the weird nontsec setting solved the problem, even though I still believe that that could be considered a bug in rsync or its port to Windows. Mojca ___ 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] Failure building standalone
Hi Mojca, I agree with you fully. It was just a thought. The problem is most likely a bug in the port. I had figured that first-setup.sh should be run anyway using chmod should do the trick. In other words for cygwin first-setup.sh cleans up what has gone wrong during transfer. regards Keith. Am 21.06.2013 um 11:16 schrieb Mojca Miklavec mojca.miklavec.li...@gmail.com: On Fri, Jun 21, 2013 at 9:54 AM, Keith J. Schultz wrote: Hi All, Mojca, please excuse my ignorance of the inner workings of windows, but would it not be possible to have the permissions corrected by the first-setup.sh script after the rsync? (I'm not sure to which part you were replying.) Sure it could, but it's way better if the original file on the server already has the right permissions, else rsync will keep reverting the change, over and over again. (We are talking about using cygwin directly now.) The problems that we had on native windows (using cygwin's rsync only) was that even with proper permissions on the server, cygwin did something very bad/weird with permissions on the client's side, so the resulting binaries were completely useless. Of course, running chmod helped, but that's a weird cure because it has to be repeated after each sync. Each sync fixes (= destroys) permissions again. Using the weird nontsec setting solved the problem, even though I still believe that that could be considered a bug in rsync or its port to Windows. ___ 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] bad column break
Hi, IMO, ConTeXt should start a new column *before* the section title, not *after* it: --8---cut here---start-8--- \def\Section#1{% \startsection[title=Title] \dorecurse{#1}{\dorecurse{12}{bla }} \stopsection} \starttext \startcolumns[n=2] \Section{15} \Section{10} %\column %%% Why do we need this?! \Section{10} \Section{10} \Section{2} \stopcolumns \stoptext --8---cut here---end---8--- -- Peter ___ 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] \startTEXpage and alternative=doublesided woes...
Hello all, I'm trying to get two pages from a PDF inserted into a document with a different paper size (6x9) which happens to be doublesided... I want the inserted pages to retain their original size (letter), and to be centered as they are in the original document, not relocated due to the pagelayout set up by doublesided. When I use \startTEXpage \externalfigure... \stopTEXpage \startTEXpage \externalfigure... \stopTEXpage I get an extra page inserted between the two that I'm including. When I use \setuppagesize[letter][letter] \copypages[...][n=2] \setuppagesize[draft][draft] I get the desired results, aside from the margins... the pages are imported into the pagelayout as defined by doublesided. Help? Thanks, --Jake ___ 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] two questions on paragraphed linenotes
On 20/06/13 18:51, Hans Hagen wrote: On 6/19/2013 9:45 PM, Pablo Rodríguez wrote: [...] The second question is on the space before linenotes that separates from text body. With your fix from last week, things have improved a lot. You told me is tricky. If you allow me a (naive) question: wouldn't it be possible that ConTeXt would check whether body lines respect the before distance of the first paragraphed linenotes and move as many lines that don't respect this distance to the next page? linenotes are just notes so no fundamental difference apart from tricky referencing paragraph nodes are somewhat complex because we need to fake vertical height while adding horizontal content the possibilities and limitations are mostly related to limitations in tex itself of course i'll do my best to bypass/correct problems when possible using lua magic Would samples help you with this task? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] Fraktur fonts
Hello Luigi, Khaled and Hans, I have to apologize to you for not having written up to now. I simply didn't see your answers. Today, a young woman from the environment of Dante e.V. pointed me to here. She gave me some good advice to the topic too. Thanks a lot to you, now I have to digest your answers first. Regards, Rudolf ___ 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] counters identifying notes
Dear list, I have the following code: \definenumber[lnt] \setupnote[linenote][paragraph=yes] \def\variant#1#2{% \startlinenote[0]{#1] #2}#1% \stoplinenote[0]} \starttext \startlinenumbering \variant{body text}{variant} \stoplinenumbering \stoptext And I would like to make \variant operative, so I thought I could replace 0 with a counter, redefining it so: \def\variant#1#2{% \startlinenote[\getnumber[lnt]]{#1] #2}#1% \stoplinenote[\getnumber[lnt]]% \incrementnumber[lnt]} But it doesn't work. How could I make that \variant handles a different reference for the linenote each time is invoked? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] \startTEXpage and alternative=doublesided woes...
On Fri, 21 Jun 2013, Jacob Peck wrote: Hello all, I'm trying to get two pages from a PDF inserted into a document with a different paper size (6x9) which happens to be doublesided... I want the inserted pages to retain their original size (letter), and to be centered as they are in the original document, not relocated due to the pagelayout set up by doublesided. When I use \startTEXpage \externalfigure... \stopTEXpage \startTEXpage \externalfigure... \stopTEXpage I get an extra page inserted between the two that I'm including. When I use \setuppagesize[letter][letter] \copypages[...][n=2] \setuppagesize[draft][draft] I get the desired results, aside from the margins... the pages are imported into the pagelayout as defined by doublesided. Please post a minimum working example that illustrates the problem. Aditya ___ 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] Fraktur fonts
On 21/06/13 18:53, Rudolf Bahr wrote: Hello Luigi, Khaled and Hans, I have to apologize to you for not having written up to now. I simply didn't see your answers. Today, a young woman from the environment of Dante e.V. pointed me to here. She gave me some good advice to the topic too. Thanks a lot to you, now I have to digest your answers first. Hi Rudolf, using UnifrakturMaguntia (from http://unifraktur.sf.net), here is a small sample: \mainlanguage[deo] \definefontfeature[default][default]% [script=latn,ss06=yes,cv01=yes,ss01=yes,ss03=yes] \usemodule[simplefonts] \setmainfont[UnifrakturMaguntia] \starttext \startlines Habe nun, ach! Philosophie, Juristerey und Medicin, Und leider auch Theologie! Durchaus studirt, mit heißem Bemühn. Da steh’ ich nun, ich armer Thor! \stoplines \stoptext I think that it's easier to use the simplefonts module than the standard ConTeXt method. I guess one of the advantages of simplefonts is to invoke font by OS name. I must admit I'm biased here: I don't actually know how to use the standard ConTeXt font system :-). Just in case they were needed (sorry if they aren't), two tips: \setmainfont sets the font for the whole document. If you want only to use it in a passage or from a given point \definesimplefonttypeface[UnifratkturMaguncia] or \definesimplefont[UnifrakturMaguncia]. OpenType features are enabled for the whole document with \definefontfeature and they are enabled or disabled using the four-character tag equals to yes or no. I hope is clear. Don't hesitate to ask, if anything isn't. I hope it might help, Pablo -- http://www.ousia.tk ___ 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] Using \setupinterlinespace with \setuparranging[XY], and more
Hello, I am using Willi's MAPS 37 and the Example section from the \setuppaper command: http://wiki.contextgarden.net/Command/setuppaper to print a set of labels, 2x6 configuration on U.S. Letter waterproof label paper. For the most part things are working well, but I have a number of questions: 1. A difference between MAPS 37 and wiki entry for \setuppaper is the inclusion of the following line in the later: \setuplayout[location=middle] which seems to play a significant role. Otherwise, I cannot get the labels to honour the topspace and backspace specified in the setuppaper command. My question is why is this significant? What role does it play? This can be tested by simply deleting the line in the MWE below. 2. I would like to have every label centered, i.e., \framed[alignment=center] should be set for all labels. However, including it in the setupframedtexts command doesn't seem to have any effect as shown in the MWE down below. Is there another way for all labels to inherit this alignment setting? 3. I cannot get interlinespacing to affect the line spacing even though the baselineskip variable is changed as shown in the MWE. advTHANKSance. EXAMPLE: \definepapersize [Label] [width=4in,height=3.33in] \setuppapersize[Label][letter,portrait] \setuppaper [topspace=0.4688in, backspace=0.1875in, dx=0.1875in, dy=0in, nx=2, ny=3] \setuplayout [topspace=0in, backspace=0in, margin=0in, width=4in, height=3.33in, header=0in, footer=0in] \setuparranging[XY] \setupframedtexts [width=\textwidth, height=\textheight, alignment=center, frame=off, location=lohi, alignment=center, offset=0pt] \setuplayout[location=middle] \definelayer [Label] [width=\paperwidth, height=\paperheight] \usemodule[simplefonts] \setmainfont[schola] \setupbodyfont[rm,48pt] \setupinterlinespace[line=2.8ex] \showframe \starttext \the\baselineskip\page \framed[frame=off,width=\textwidth,height=\textheight,aligment=center]{Label 1}\page \the\baselineskip\page \framed[frame=off,width=\textwidth,height=\textheight,aligment=center]{\definedfont[Serif at 18pt]\setupinterlinespace \the\baselineskip\crlf A long description label that needs to be have its interline spacing adjusted.}\page Label 2\page Label 3\page Label 4\page Label 5\page Label 6\page Label 7\page Label 8\page \stoptext -- Pavneet Arora m: 647.406.6843 Waroc Informatikt: 416.937.9276 ___ 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] bad column break
Am 21.06.2013 um 15:34 schrieb Peter Münster pmli...@free.fr: Hi, IMO, ConTeXt should start a new column *before* the section title, not *after* it: --8---cut here---start-8--- \def\Section#1{% \startsection[title=Title] \dorecurse{#1}{\dorecurse{12}{bla }} \stopsection} \starttext \startcolumns[n=2] \Section{15} \Section{10} %\column %%% Why do we need this?! \Section{10} \Section{10} \Section{2} \stopcolumns \stoptext --8---cut here---end---8--- Use the new mixedcolumns environment. \starttext \startmixedcolumns … \stopmixedcolumns \stoptext Wolfgang ___ 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] counters identifying notes
Am 21.06.2013 um 19:40 schrieb Pablo Rodríguez oi...@web.de: Dear list, I have the following code: \definenumber[lnt] \setupnote[linenote][paragraph=yes] \def\variant#1#2{% \startlinenote[0]{#1] #2}#1% \stoplinenote[0]} \starttext \startlinenumbering \variant{body text}{variant} \stoplinenumbering \stoptext And I would like to make \variant operative, so I thought I could replace 0 with a counter, redefining it so: \def\variant#1#2{% \startlinenote[\getnumber[lnt]]{#1] #2}#1% \stoplinenote[\getnumber[lnt]]% \incrementnumber[lnt]} But it doesn't work. How could I make that \variant handles a different reference for the linenote each time is invoked? Many thanks for your help, 1. Use came case for your own command names to avoid conflicts with core commands. 2. Don’t use simple numbers as reference names. 3. You can’t use nested brackets which causes problems with the parser for the arguments. What you have to do in this such a case is to hide the pair with braces, e.g. [{[…]}]. 4. ConTeXt has another counter mechanism which doesn’t has this problem. \newcounter\LineNote \setupnote[linenote][paragraph=yes] \define[2]\Variant {\increment\LineNote \startlinenote[LineNote:\LineNote]{#1 #2} #1% \stoplinenote[LineNote:\LineNote]} \starttext \startlinenumbering \Variant{body text}{variant} \stoplinenumbering \inline[LineNote:1] \stoptext Wolfgang ___ 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] Auto selecting optical sizes for a font
Hello friends. I'm trying to design a book using the typescript you can find at the end of this message. I'm using the beautiful EBGaramond fonts from Georg Duffner (http://www.georgduffner.at/ebgaramond/). This font provides optical sizes to be used in different sizes (named 12 for 10.1pt or more, and 8 for 10 or less. These fonts automatically work as expected in latex, thanks to a recent package included in CTAN (ebgaramond package), selecting the correct font for the appropriate size. However, the typescript I'm using selects the 8 size for everything, without taking the type size into consideration. Is there any way to make ConTeXt do this automatic selection of fonts regarding of type size? I'm using version 2013.06.10 22:51. Here is my example: %%% \enableregime[utf-8] \mainlanguage[es] \setupcapitals[sc=yes] \definefontfeature[default][default] [mode=node,calt=yes,liga=yes,dlig=yes,hlig=yes,ccmp=yes,kern=yes,mark=yes,mkmk=yes,onum=yes,pnum=yes,salt=yes,size=yes,expansion=quality,protrusion=quality] \definefontfeature[smallcaps][smallcaps] [mode=node,script=latn,smcp=yes,c2sc=yes,calt=yes,liga=yes,dlig=yes,hlig=yes,ccmp=yes,kern=yes,mark=yes,mkmk=yes,onum=yes,pnum=yes,salt=yes,size=yes,expansion=quality,protrusion=quality] \starttypescript[serif][ebgaramond] \setups[font:fallback:serif] \definefontsynonym [EBGaramond-Regular][name:EBGaramond-Regular] \definefontsynonym [EBGaramond-Italic] [name:EBGaramond-Italic] \stoptypescript \starttypescript[serif][ebgaramond] \definefontsynonym [Serif] [EBGaramond-Regular] [features=default] \definefontsynonym [SerifItalic] [EBGaramond-Italic] [features=default] \definefontsynonym [SerifCaps] [Serif] [features=smallcaps] \stoptypescript \definetypeface[ebg][rm][serif][ebgaramond][default] \setupbodyfont[ebg,12pt] \setupbodyfontenvironment[default][em=italic] \setupinterlinespace[line=3.2ex] \setupalign[lesshyphenation,hz,hanging] \doublehyphendemerits=3 \setupspacing[packed] \starttext \showframe \showgrid \input tufte \stoptext %%% Thank so much for all your good work and help. :) ___ 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 ___