Re: [NTG-context] vertical square root upstroke (instead of having a slant)
On 12/1/2013 8:57 PM, Sanjoy Mahajan wrote: With the following minimal file on MkIV (2013.05.28 00:36 MKIV current), the upstroke of the square root is vertical instead of having the usual slant toward the right. With MkII it has the usual slant. I see this problem only with certain arrangements of variables (that recur often in my book chapter on springs and piano strings). For example, it goes away after changing the \rho to a b. \starttext \startformula \sqrt{Tb^2\over \rho}. \stopformula \stoptext I know that the big math symbols are constructed differently in MkIV and MkII. Does the example above show an intended difference? a radical has a couple of increasing sizes (discrete steps, if they have a slant depends of the font designer) before it switches to an extensible that then normally has no slant (in context one can hook in a mp variant that keeps the slant) (if needed we can make it an option to omit steps and always use upright) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] line notes compress
Hi, The linenote compression options (and control) has been upgraded: \definepapersize [mine] [width=8cm, height=6cm] \setuplayout [location=middle, width=middle, height=middle, headerdistance=5mm] \setuppapersize [mine] [oversized] \definelinenote [MyNote] \setupnote [MyNote] [paragraph=yes] \setupnotation [MyNote] [alternative=serried, distance=.5em, width=broad] \setupalign [verytolerant] \showframe \startbuffer \setupfootertexts[\ttxx compress=\namednoteparameter{MyNote}{compress}\quad compressmethod=\namednoteparameter{MyNote}{compressmethod}] \startlinenumbering This\MyNote{That} context\MyNote{document} is\MyNote{was} a sample\MyNote{an example} that I\MyNote{she} want\MyNote{didn’t want} to show\MyNote{publish} \stoplinenumbering \page \stopbuffer \starttext \setupnote[MyNote][compress=yes,compressmethod=stopper] \getbuffer \setupnote[MyNote][compress=yes,compressmethod=separator] \getbuffer \setupnote[MyNote][compress=yes,compressmethod=space] \getbuffer \setupnote[MyNote][compress=yes,compressmethod=] \getbuffer \setupnote[MyNote][compress=no,compressmethod=stopper]\getbuffer \setupnote[MyNote][compress=no,compressmethod=separator] \getbuffer \setupnote[MyNote][compress=no,compressmethod=space] \getbuffer \setupnote[MyNote][compress=no,compressmethod=] \getbuffer \stoptext Keep in mind that paragraph notes are somewhat special so some tolerance in alignment helps. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \attachment
On 11/29/2013 12:51 AM, Aditya Mahajan wrote: It seems that there is a mixup in the backend code for including an attachment. For example, when I use: \setupinteraction[state=start] \starttext The current file is \attachment[tag][file=\jobname.tex, name=test.tex, title={Whatever}] \stoptext I was expecting that the current file will be attached as test.tex and title Whatever. However, the title of the attached file is tag. See the attached screenshot from Adobe Reader. It seems that in the back end, tag is written to the PDF file where title should have been written. we can do this (line 308 of lpdf-wid) if author == and title ~= then author = title title = filename or end but you can also add an author field to the specification as what shows up in the pdf is partly the side effect of fallbacks for missing fields (and ... it's one of these pdf features that is unreliable anyway as it's viewer dependent .. read: specs before implementations and then acrobat behavior defining what will happen; the whole 'associate rendering with some annotation mechanism is fragile as depending on the version of acrobat it works this or that way, probably because no application uses plugged-in rendering, it's the same with form fields ... a depressing mess) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Keeping titles together with the following text when grid is on
On 2013-12-02 H. Özoguz wrote: On 2013-12-01 Jan Tosovsky wrote: when grid is on, orphan and widows have to be eliminated using additional penalty settings. Whereas it works fine for body text, section titles are still sometimes left at the bottom of the page. this is not the same question as handling orphan and widows - because you surely do not want some titles with only 2-3 lines of body text after them. I always use \testpage[x] to handle those issues, see your example with testpage: \setuphead[section][before={\testpage[8]\blank}] Thanks, it works! Another magic command not documented anywhere in the ConTeXt Guide or Wiki... I was looking for any alternative for XSL-FO's keep-with-next=always. This is a different approach, but it doesn't matter. Btw, I still don't understand why keeping the title and text behaves differently when grid is on... Jan ___ 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 notes compress
On 12/02/2013 03:31 PM, Hans Hagen wrote: Hi, The linenote compression options (and control) has been upgraded: Hi Hans, many thanks for the new compression options. Keep in mind that paragraph notes are somewhat special so some tolerance in alignment helps. This is not directly related to linenotes, but to paragraph notes. There are some cases a note starts in the next page to body text it refers to. With the following scenario (I have seen this): poetry with verses numbered to the page, two apparatus (critical and similar) and the first linenote on at least one apparatus comes from the previous page (so numbers in this apparatus go from 30 to 2). Is \setupnote[linenote][split=verystrict,scope=page] a reliable method to avoid this? I mean, if you have to typeset a critical edition of the Illiad or the Odyssey, you cannot check every single page looking for displaced linenotes. 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] Keeping titles together with the following text when grid is on
On 12/02/2013 09:02 PM, Jan Tosovsky wrote: Thanks, it works! Another magic command not documented anywhere in the ConTeXt Guide or Wiki... So have you added it yet? Thomas ___ 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] Keeping titles together with the following text when grid is on
On Mon, 2 Dec 2013, Jan Tosovsky wrote: \setuphead[section][before={\testpage[8]\blank}] Thanks, it works! Another magic command not documented anywhere in the ConTeXt Guide or Wiki... In that case, please add it to the wiki. 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] Keeping titles together with the following text when grid is on
On 2013-12-02 Thomas A. Schmitz wrote: On 12/02/2013 09:02 PM, Jan Tosovsky wrote: Thanks, it works! Another magic command not documented anywhere in the ConTeXt Guide or Wiki... So have you added it yet? I plan to update some pages in near future, but rather in form of examples of use. It is hard to describe commands without knowing what exactly they do, in which versions they are supported (I work in most recent MkIV which is not the case of everybody), whether they are perspective/deprecated or if there are any limitations when they are used. Nowadays most of API/command references are generated automatically directly from the source code comments. It ensures up to date data, but it helps also to programmers. Descriptive comments in the source helps to understand the given code when editing older parts. I do not know to what extent it could be implemented here, but the respective person could give it a try. Jan ___ 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] Keeping titles together with the following text when grid is on
On Mon, 2 Dec 2013 21:40:55 +0100 Jan Tosovsky j.tosov...@email.cz wrote: Nowadays most of API/command references are generated automatically directly from the source code comments. It ensures up to date data, but it helps also to programmers. Descriptive comments in the source helps to understand the given code when editing older parts. I do not know to what extent it could be implemented here, but the respective person could give it a try Sometimes/often the answers to many questions can be found in the source code, indeed. Also, most names are intended to be quite descriptive, and ConTeXt does not error in the use of terse, cryptic labels. In fact, descriptive comments in the source then become redundant when the code is written in such an explicit style. This does not mean that there is no need for good documentation and tutorials. Alan ___ 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 ___