[NTG-context] publication list: bounding box problems
Hi there, I am fine tuning my doc. I have problems with the publication list, as some of the publications extend to the margin of my document. I have not been able to find a solution. This is probably a very common issue. I assume some of you had/have the same problem. Is there a quick way to fix this? This is quite urgent (picture attached). Cheers Andreas [cid:633B7855-1447-4534-9F43-580B58659B88@uzl-wlan.uni-luebeck.de] inline: references.png___ 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] mathcommand / mfunction now italic
Hi, did something change in consideration of mathcommand/mfunction? I get italic operators instead of the usual (I suppose) upright typesetting. Thanks! Cheers Andreas minimal example \definemathcommand[diag][nolop]{\mfunction{diag}} \starttext $\diag(1,\ldots,1)$ % diag is italic, but should be upright \stoptext minimal example ConTeXt ver: 2013.01.24 10:07 MKIV fmt: 2013.1.24 ___ 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] placeinitial broken (mkiv)?
Hi there, the example from the garden (http://wiki.contextgarden.net/Initials; with reference to [NTG-context] Lettrine not Working as Expected) does not work for me: minimal \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3] % known parameters: font, distance, state, n, command \starttext \placeinitial \input knuth \stoptext minimal ConTeXt ver: 2013.01.13 23:10 MKIV fmt: 2013.1.17 Is there a problem or am I doing something wrong?! Thanks in advance for your help. Cheers Andreas ___ 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] placeinitial broken (mkiv)?
Hi Wolfgang. Thanks for looking into this. Am Jan 23, 2013 um 8:25 AM schrieb Wolfgang Schuster wolfgang.schus...@gmail.com: Am 23.01.2013 um 08:16 schrieb Andreas Mang m...@imt.uni-luebeck.de: Hi there, the example from the garden (http://wiki.contextgarden.net/Initials; with reference to [NTG-context] Lettrine not Working as Expected) does not work for me: minimal \setupinitial[color=red,font=Bold sa 4,distance=3pt,state=start,n=3] % known parameters: font, distance, state, n, command \starttext \placeinitial \input knuth \stoptext minimal ConTeXt ver: 2013.01.13 23:10 MKIV fmt: 2013.1.17 Is there a problem or am I doing something wrong?! What doesn’t work, do you get a error message or is the output wrong? When I process the example I get a pdf with a red T as initial. ConTeXt ver: 2013.01.21 18:18 MKII fmt: 2013.1.21 int: english/english Sorry for being imprecise. I've used MKIV. I gave it another try and now I also get the correct result (after getting the plain text without a big red T for a couple of times). I wonder how you managed to heal my local installation ;) So, sorry for wasting your time and for being stupid, too. I don't know what I've been doing. Time to go on holidays. Cheers Andreas ___ 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] seeindex: no indent (random pattern?)
Hi there, I have a problem with my index. There randomly (at least I do not see a pattern) is a missing indent in front of the words referenced by seeindex. Unfortunatelly, I cannot reproduce this nor do I see any pattern, as for why this problem exists. Is someone having the same issue, and if so, could this person point me to the reason so that I / someone can do something about it?! Minimal WORKING( - i.e. gives the desired output; it's there to explain my problem) example below. Cheers, Andreas I know that I am not supposed to ask questions like this, but this bothers me for quite a while now. I thought that I will discover the problem (a pattern) at some point, but I give up. \starttext \index{IBVP} \seeindex{Initial Boundary Value Problem}{IBVP} \placeindex \stoptext I would expect: Initial Boundary Value Problem [ ]see IBVP where [ ] represents the indent. However, at some places in my index I get: Initial Boundary Value Problem see IBVP ___ 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] index: distinguish entries by pagestyle
Am Jan 14, 2013 um 5:36 PM schrieb Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de: ···date: 2013-01-14, Monday···from: Schmitz Thomas A.··· On Jan 14, 2013, at 2:54 PM, Andreas Mang m...@imt.uni-luebeck.de wrote: Hi there, I got a question considering the registers. I'd like to distinguish between the definition of some term and its appearance/use somewhere else (boldface vs. normal font of page number for instance). The garden provides a solution, which does not seem to work for me: %%% \setupregister[index][nb][pagestyle=bold] \starttext My \index[nb::dog]{dog}dog is a cat\index{cat}. \placeindex \stoptext %%% (modified from http://wiki.contextgarden.net/Registers). What I'd like to have is, that dog appears with a bold page number and that cat doesn't. Your example produces the expected output with Mkii, and your code is OK, so i assume this must be a bug in Mkiv. Hans? Hi Andreas and Thomas, this was reported a while back [0] but is still a “todo” in the source [1]. [0] http://www.ntg.nl/pipermail/ntg-context/2011/059544.html [1] http://repo.or.cz/w/context.git/blob/refs/heads/origin:/tex/context/base/strc-reg.mkiv Hi there, Thomas Philipp: Thanks a lot for looking into this. In my opinion this is a very helpful feature, as it allows to differentiate between definition and use. @Hans: May I humbly ask, if it is possible to fix this?! (it doesn't hurt to ask, I suppose ;) ) Cheers, Andreas ___ 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] index: distinguish entries by pagestyle
Hi there, I got a question considering the registers. I'd like to distinguish between the definition of some term and its appearance/use somewhere else (boldface vs. normal font of page number for instance). The garden provides a solution, which does not seem to work for me: %%% \setupregister[index][nb][pagestyle=bold] \starttext My \index[nb::dog]{dog}dog is a cat\index{cat}. \placeindex \stoptext %%% (modified from http://wiki.contextgarden.net/Registers). What I'd like to have is, that dog appears with a bold page number and that cat doesn't. ConTeXt ver: 2013.01.10 01:04 MKIV fmt: 2013.1.11 Cheers, Andreas ___ 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] Installing beta.
Hi André Caldas, I suppose this helps: http://wiki.contextgarden.net/ConTeXt_Standalone fetch first-setup.sh, put it to a folder of your liking (e.g. /usr/local/contextBETA) and do something like sh ./first-setup.sh --context=current (wrt. the system you are using, of course) Cheers Andreas Am Jan 10, 2013 um 2:07 AM schrieb Andre Caldas andre.em.cal...@gmail.com: What is the correct way to install the beta version of context? André Caldas. ___ 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 ___ ___ 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] empty TOC
Dear Wolfgang, Dear Hans, sorry for putting my oar in. I hope you do not mind. This is true for the bibliography, too (see no bibliography when using bodymatter/backmatter/; the example provided there works nicely with ConTeXt ver: 2012.12.10 23:20 MKIV, which is what I am currently using). Cheers, Andreas Am Jan 7, 2013 um 10:21 PM schrieb Wolfgang Schuster wolfgang.schus...@gmail.com: Am 07.01.2013 um 22:15 schrieb Hans Hagen pra...@wxs.nl: On 1/7/2013 2:11 PM, Peter Rolf wrote: Hi, I get an empty TOC again when compiling the documentation for the drops module. The entries for the TOC are set in the *.tuc file, but the TOC in the document stays empty. I tried the [criterium=all] option, same result. A TOC example from the wiki worked, so this time not a general problem. The *.log and the *.tuc file are attached, source can be sent off-list. small test needed There is a problem when section blocks are used: \starttext \startfrontmatter \completecontent \chapter{Intro} \stopfrontmatter \startbodymatter \chapter{One} \chapter{Two} \stopbodymatter \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 ___ ___ 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] how to cite URLs in BibTeX bibliographies
Hi, your example is not very instructive. You might want to spend some time and mess around in the bibfile to make things look properly (the how published key seems to be missing from misc). I could get it to run after I have added \goto{http://www.bloom-lang.org}[url(http://www.bloom-lang.org)] to note (see http://wiki.contextgarden.net/url and http://wiki.contextgarden.net/Bibliography). There might be other options - this is just a quick shot. Cheers, Andreas @misc{bloom, Key = {Bloom}, Note = {\goto{http://www.bloom-lang.org}[url(http://www.bloom-lang.org)]}, Title = {Bloom programming language}} % ConTeXt ver: 2013.01.02 18:19 MKIV %%% minimal example %%% \setupinteraction[state=start] \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=sample] % do not to put the reference into a bib file called sample.bib \setuppublications[numbering=yesalternative=myapa-de] \starttext \cite[bloom] \placepublications[criterium=text] \stoptext %%% minimal example %%% Am Jan 6, 2013 um 8:35 AM schrieb 土卜皿 pengcz.n...@gmail.commailto:pengcz.n...@gmail.com: hi,all In latex, the following bib item: @misc{bloom, title = {Bloom programming language}, howpublished = {\url{http://www.bloom-lang.orghttp://www.bloom-lang.org/}}, key = {Bloom} } will compile it into the following bibliographies in pdf: [9] Bloom programming language. http://www.bloom-lang.orghttp://www.bloom-lang.org/. But in context, the bib item can not be successfully compiled , what should I do to cite this? Thanks! BEST REGARDS PengCZ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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 ___ ___ 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] how to cite URLs in BibTeX bibliographies
there is an error: it should be \setuppublications[numbering=yes] and not \setuppublications[numbering=yesalternative=myapa-de] but it does not matter :) Am Jan 6, 2013 um 9:45 AM schrieb Andreas Mang m...@imt.uni-luebeck.demailto:m...@imt.uni-luebeck.de: Hi, your example is not very instructive. You might want to spend some time and mess around in the bibfile to make things look properly (the how published key seems to be missing from misc). I could get it to run after I have added \goto{http://www.bloom-lang.orghttp://www.bloom-lang.org/}[url(http://www.bloom-lang.orghttp://www.bloom-lang.org/)] to note (see http://wiki.contextgarden.net/url and http://wiki.contextgarden.net/Bibliography). There might be other options - this is just a quick shot. Cheers, Andreas @misc{bloom, Key = {Bloom}, Note = {\goto{http://www.bloom-lang.orghttp://www.bloom-lang.org/}[url(http://www.bloom-lang.orghttp://www.bloom-lang.org/)]}, Title = {Bloom programming language}} % ConTeXt ver: 2013.01.02 18:19 MKIV %%% minimal example %%% \setupinteraction[state=start] \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=sample] % do not to put the reference into a bib file called sample.bib \setuppublications[numbering=yesalternative=myapa-de] \starttext \cite[bloom] \placepublications[criterium=text] \stoptext %%% minimal example %%% Am Jan 6, 2013 um 8:35 AM schrieb 土卜皿 pengcz.n...@gmail.commailto:pengcz.n...@gmail.com: hi,all In latex, the following bib item: @misc{bloom, title = {Bloom programming language}, howpublished = {\url{http://www.bloom-lang.orghttp://www.bloom-lang.org/}}, key = {Bloom} } will compile it into the following bibliographies in pdf: [9] Bloom programming language. http://www.bloom-lang.orghttp://www.bloom-lang.org/. But in context, the bib item can not be successfully compiled , what should I do to cite this? Thanks! BEST REGARDS PengCZ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net/ ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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 ___ ___ 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] makeupwidth in externalfigure yields invalid escape sequence
Dear... ...invisible man probably known as Hans... Thanks for fixing this! Cheers, Andreas FYI followers: \starttext \externalfigure[cow][width=0.5\makeupwidth] \stoptext works with the latest beta (MKIV) Am Jan 1, 2013 um 2:10 PM schrieb Andreas Mang m...@imt.uni-luebeck.de: Hi, Thanks for the quick responses. The \externalfigure commands passes the values of the width/height keys to Lua which can’t handle relative values [...] to convert a relative (e.g. \textwidth) in a absolute value (e.g. 12pt) you can use the \dimexpr command. \externalfigure[…][width=\the\dimexpr.3\textwidth\relax] I'm seem to be not educated enough about dos and don'ts: To me it seemed mandatory to use relative sizes as I might have to change the layout of my document (*). So, do I get it right that the idea of this change is to stick to a rigid A4 setting (i.e. all figures are e.g. of width 5 cm) and then simply change the print out size to A5: \setuppapersize[A4][A5] A quick yes, keep it rigid or no, do it adaptively would be enough to get me on track (in case I am not telling bull). I'll adapt my doc accordingly. Cheers, Andreas (*) I am currently working on a document, which Iis going through assessment in A4 and very likely published in A5 ___ 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 ___ ___ 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] no bibliography when using bodymatter/backmatter/...
Hi there, after updating I have spotted serious flaws in my layout. Spending some time in the wonderful garden I could fix most issues. However, I might still be doing something wrong: My TOC and the bib entries were gone. I could reanimate the TOC for the bodymatter, but not for the remaining parts of my document. Secondly, the bibliography is still missing. I have attached a minimal example to demonstrate my problems. I am probably missing flags / settings. My problems are: 1) The section title Backmatter does not appear in the TOC. 2) the bibliography does not appear nor is the citation added (this is different, if I put the placepublication command into the bodymatter) Cheers, Andreas % ConTeXt ver: 2013.01.02 18:19 MKIV %%% minimal example %%% \setupcombinedlist[content][level=4, alternative=c] \startsectionblockenvironment[bodypart] \setupuserpagenumber[numberconversion=numbers] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=sample] \setuppublications[numbering=yes] \starttext \placecontent[criterum all] \startbodymatter \section{Bodymatter} % this heading does not appear in the TOC \ConTeXt \cite[hh2010a] \stopbodymatter \startbackmatter \section{Backmatter} \placepublications[criterium=text] \stopbackmatter \stoptext %%% minimal example %%% ___ 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] no bibliography when using bodymatter/backmatter/...
Excellent work, Andreas - it's really amazing how you always remember to attach things... I've used the standard example from the garden as a bib file (see attached ;) ). sample.bib Description: sample.bib Am Jan 4, 2013 um 1:04 AM schrieb Andreas Mang m...@imt.uni-luebeck.de: Hi there, after updating I have spotted serious flaws in my layout. Spending some time in the wonderful garden I could fix most issues. However, I might still be doing something wrong: My TOC and the bib entries were gone. I could reanimate the TOC for the bodymatter, but not for the remaining parts of my document. Secondly, the bibliography is still missing. I have attached a minimal example to demonstrate my problems. I am probably missing flags / settings. My problems are: 1) The section title Backmatter does not appear in the TOC. 2) the bibliography does not appear nor is the citation added (this is different, if I put the placepublication command into the bodymatter) Cheers, Andreas % ConTeXt ver: 2013.01.02 18:19 MKIV %%% minimal example %%% \setupcombinedlist[content][level=4, alternative=c] \startsectionblockenvironment[bodypart] \setupuserpagenumber[numberconversion=numbers] \setuppagenumber[number=1] \stopsectionblockenvironment \startsectionblockenvironment[backpart] \setupuserpagenumber[numberconversion=numbers] \stopsectionblockenvironment \usemodule[bib] \usemodule[bibltx] \setupbibtex[database=sample] \setuppublications[numbering=yes] \starttext \placecontent[criterum all] \startbodymatter \section{Bodymatter} % this heading does not appear in the TOC \ConTeXt \cite[hh2010a] \stopbodymatter \startbackmatter \section{Backmatter} \placepublications[criterium=text] \stopbackmatter \stoptext %%% minimal example %%% ___ 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 ___ ___ 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] makeupwidth in externalfigure yields invalid escape sequence
Hi, Thanks for the quick responses. The \externalfigure commands passes the values of the width/height keys to Lua which can’t handle relative values [...] to convert a relative (e.g. \textwidth) in a absolute value (e.g. 12pt) you can use the \dimexpr command. \externalfigure[…][width=\the\dimexpr.3\textwidth\relax] I'm seem to be not educated enough about dos and don'ts: To me it seemed mandatory to use relative sizes as I might have to change the layout of my document (*). So, do I get it right that the idea of this change is to stick to a rigid A4 setting (i.e. all figures are e.g. of width 5 cm) and then simply change the print out size to A5: \setuppapersize[A4][A5] A quick yes, keep it rigid or no, do it adaptively would be enough to get me on track (in case I am not telling bull). I'll adapt my doc accordingly. Cheers, Andreas (*) I am currently working on a document, which Iis going through assessment in A4 and very likely published in A5 ___ 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] makeupwidth in externalfigure yields invalid escape sequence
Hi there, did I miss something or is there a problem with the use of makeupwidth in conection with the externalfigure command in the latest beta? The error I get (minimal example below) is: ! LuaTeX error [string \directlua ]:1: invalid escape sequence near '\m'. Cheers, Andreas ConTeXt ver: 2012.12.28 20:30 MKIV %%% minimal example %%% \starttext \externalfigure[cow][width=5cm] % works \externalfigure[cow][width=0.5\makeupwidth] % error \stoptext %%% minimal example %%% Bart Simpson mode: You should never update your context version during holidays. You should never update your context version during holidays. You should never update your context version during holidays. You should never update your context version during holidays. Happy New Year's Eve to y'all. ___ 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] spacing: units in math
Dear Hans, On 12/19/2012 7:18 PM, Andreas Mang wrote: Hi there, sorry for being such a pain in the neck. Is there going to be a solution considering the spacing problems with the use of units (native mkiv command) in near future (within 2-3 weeks)? If there is none and I am not doing something wrong, I'll add a local work around every time I use units. As this is much work, I'd appreciate if someone told me if this is something that might be fixed soon. If not I'm good - I just need to know. Explanation of my problem: Maybe I am doing something wrong, but in the resulting document the spacing is bigger in math mode then in the text mode in case I use \units{...}. In particular, the distance for the decimal separator is as if I would type $1,2$ instead of $1{,}2$ (example: $\units{1,2}$).. can you try \appendtoks \disablemathpunctuation \to \everyunits Thanks for looking into this. The problem with the decimal separator is solved. You made my day with just 4 commands! Just that you know: I still observe a tiny difference in the blank space between numbers and times symbol (\times) when comparing math mode to standard text mode (minimal example below). AFAIK this does not make a difference. If I find the time i might just put every unit stuff into math mode (for consistency reasons). So my document is ready for being published (in this respect). It just still lacks content :) Happy holidays to all of you. Andreas % MINIMAL EXAMPLE \appendtoks \disablemathpunctuation \to \everyunits \starttext \unit{1,2e3 meter} $\unit{1,2e3 meter}$ \stoptext % MINIMAL EXAMPLE ___ 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] spacing: units in math
Hi there, sorry for being such a pain in the neck. Is there going to be a solution considering the spacing problems with the use of units (native mkiv command) in near future (within 2-3 weeks)? If there is none and I am not doing something wrong, I'll add a local work around every time I use units. As this is much work, I'd appreciate if someone told me if this is something that might be fixed soon. If not I'm good - I just need to know. Explanation of my problem: Maybe I am doing something wrong, but in the resulting document the spacing is bigger in math mode then in the text mode in case I use \units{...}. In particular, the distance for the decimal separator is as if I would type $1,2$ instead of $1{,}2$ (example: $\units{1,2}$). Thanks. Cheers, Andreas Am Dec 11, 2012 um 1:49 PM schrieb Andreas Mang m...@imt.uni-luebeck.de: Hi, I still do have problems with a wrong spacing between number and unit in math mode (minimal example below). Clearly, I could do something like $\alpha = $ \unit{1,2 meter} but I think this is likely to result in problems with the look of the result in case this is close to a line break. Cheers, Andreas MINIMAL EXAMPLE \starttext \unit{1,2 meter} % what I would expect $\unit{1,2 meter}$ % wrong spacing $\unit{1{,}2 meter}$ % there is no output after 1 \stoptext MINIMAL EXAMPLE Am Nov 30, 2012 um 8:43 PM schrieb Romain Diss romain.d...@yahoo.fr: Le jeudi 29 novembre 2012, Andreas Mang a écrit : Hi there, I encountered some problems with the built in units command in MKIV. I provide a minimal example which should demonstrate my problems. Maybe I am doing something wrong... \setupbodyfont[pagella] \starttext \unit{11,1e-1 micro mol per second} \par $\unit{11,1e-1 micro mol per second}$ \par \unit{11,1e-1 per second} \par \unit{11,1e-1 / second} \par \stoptext Don't know for the first two, but the last two should be replaced by: \unit{11,1e-1 inverse second} All the best. -- Romain Diss romain.d...@yahoo.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 ___ ___ 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 ___ ___ 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] framed algorithm / float: problems with line break
Dear Wolfgang, thanks for looking into this. Works nicely. I can add a “color” key to the algorithmic environment which allows you to set the color with \setupalgorithmic and you don’t need the \white command after \startalgorithmic anymore. The coloring in my minimal example was simply taken from contextgarden to make sure that I am consistent with what is typically used as an example. Personally, I think this is way to fancy. I'll use some faint color so that I do not need to change the text color. So from my perspective there is no need for a color command. Cheers, Andreas ___ 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] framed algorithm / float: problems with line break
Dear all, Quick access: there is no line break in case algorithmic is used together with framed as a float. I'd like to put some pseudocode in my document. I've used the algorithmic module. Since I'd like to refer to the algorithm in the text, I've defined a float environment. However, putting the pseudocode into my document, I've realised that it does not really stand out from the text. My first idea was to put some box around it. In the garden I've found some example for using framed together with floats: http://wiki.contextgarden.net/Framed However, this screws up the line break in the algorithmic environment. I could define manually the size of the box, but I think there might be better solutions. Any ideas or better ways for achieving this or a similar behaviour?! Thanks in advance. Cheers, Andreas ConTeXt ver: 2012.12.10 23:20 MKIV fmt: 2012.12.14 %%% MINIMAL EXAMPLE %%% \usemodule[algorithmic] \definefloat[algorithm][algorithms] \setuplabeltext[de][algorithm=Algorithmus ] \setupcaption[algorithm][ headstyle=bold, location=top, width=0.95\textwidth] \starttext \placealgorithm[top][alg:some-algorithm]{Some description of some algorithm.}{ \framed [background=color,backgroundcolor=darkblue, foreground=color,foregroundcolor=white,width=broad]{ \startalgorithmic \STATE choose $\alpha\in(0,1)$ \WHILE{$\alpha 100$} \STATE $\alpha \leftarrow \alpha + \alpha$ \ENDWHILE \stopalgorithmic } } \stoptext %%% MINIMAL EXAMPLE %%% ___ 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] Desperate help needed: Formular numbering and List of Formulas
Hi, The minimal example below works for me (ConTeXt ver: 2012.12.10 23:20 MKIV; I've added some stuff of your preamble to check). Cheers Gruss Andreas %%% MINIMAL EXAMPLE %%% \usemodule[newmath] \setupformulas[way=bytext,prefix=no] \setupsubformulas[conversion=romannumerals] \starttext \startsubformulas[eq:ax=b] \placeformula \startformula \startalign[n=3] \NC A x\NC = b,\NR[eq:example-one][a] \NC A x\NC = b,\NR[eq:example-two][a] \stopalign \stopformula \stopsubformulas \stoptext %%% MINIMAL EXAMPLE %%% Am Dec 16, 2012 um 8:16 PM schrieb Zenlima p...@zenlima.eu: Hi, I am closing my dissertation (finally) but I had to realize that subnumbering of formulas is still not working in mkiv. Unluckily going back to mkii is not an option for other reasons. For that I really need help to bring back a fully working formula numbering. I searched the entire wiki and mailing list for possible examples and put all in one test file - I got non to work but maybe I also made a mistake somewhere. Additionally I wrote everything on my talk page of the wiki: http://wiki.contextgarden.net/User_talk:Zenlima If every method has to be fixed my priority is the \NR[+][c]-method. Maybe someone can give additionally hints how to get a proper list of formulas. I attached the test file with its pdf result in addition to the wiki page. Thanks H. context-test-mathe.pdfcontext-test-mathe.tex___ 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 ___ ___ 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] spacing: units in math
Hi, I still do have problems with a wrong spacing between number and unit in math mode (minimal example below). Clearly, I could do something like $\alpha = $ \unit{1,2 meter} but I think this is likely to result in problems with the look of the result in case this is close to a line break. Cheers, Andreas MINIMAL EXAMPLE \starttext \unit{1,2 meter} % what I would expect $\unit{1,2 meter}$ % wrong spacing $\unit{1{,}2 meter}$ % there is no output after 1 \stoptext MINIMAL EXAMPLE Am Nov 30, 2012 um 8:43 PM schrieb Romain Diss romain.d...@yahoo.fr: Le jeudi 29 novembre 2012, Andreas Mang a écrit : Hi there, I encountered some problems with the built in units command in MKIV. I provide a minimal example which should demonstrate my problems. Maybe I am doing something wrong... \setupbodyfont[pagella] \starttext \unit{11,1e-1 micro mol per second} \par $\unit{11,1e-1 micro mol per second}$ \par \unit{11,1e-1 per second} \par \unit{11,1e-1 / second} \par \stoptext Don't know for the first two, but the last two should be replaced by: \unit{11,1e-1 inverse second} All the best. -- Romain Diss romain.d...@yahoo.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 ___ ___ 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] MKIV math: arrow symbols undefined
Dear all, I've noticed that \leadsto, \rightsquigarrow and \leftrightsquigarrow are not defined in MKIV (ConTeXt ver: 2012.12.06 18:39 MKIV). However, they appear in MKII (ConTeXt ver: 2012.12.06 18:39 MKII). I've tested the entire set at http://www.access2science.com/latex/Arrows.html Cheers, Andreas %%% MINIMAL EXAMPLE %%% \starttext leadsto: $\leadsto$ squidarrow: $\leftrightsquigarrow$ squidarrow: $\rightsquigarrow$ \stoptext %%% MINIMAL EXAMPLE %%% ___ 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] problems with units
Hi there, I encountered some problems with the built in units command in MKIV. I provide a minimal example which should demonstrate my problems. Maybe I am doing something wrong... Cheers, Andreas %MINIMAL EXAMPLE% \setupbodyfont[pagella] \starttext % this is just my default setting - if I comment the next line I get the same behaviour \setupunits[method=3,order=reverse,separator=small] \unit{11,1e-1 micro mol per second} \par %no effect if I change the separator (holds also for cdot) $\unit{11,1e-1 micro mol per second}$ \par %wrong spacing \unit{11,1e-1 per second} \par % one over is not working (no unit displayed) \unit{11,1e-1 / second} \par % one over not working (no unit displayed) \stoptext %MINIMAL EXAMPLE% ___ 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] italic smallcaps
Dear all, is there a simple way to convince context to put small caps in italic? Thanks. Andreas ConTeXt ver: 2012.11.23 17:35 MKIV minimal example \starttext % this is what I intended to do \emph{\smallcaps Something} Something % not italic % this is what if tried: {\it\sc Something} % not italic {\italic\smallcaps Something} % not italic {\slanted\smallcaps Something} % not italic {\smallcaps\italic Something} % no small caps \stoptext minimal example ___ 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] formulas: numbering problem
Dear all, I've spotted a problem with the numbering of the formulas (default setting: (CHAPTER.FORMULANUMBER)): If a heading that does not come with a number is introduced, the chapter number vanishes from the reference number for the formula. I have provided a minimal example to illustrate the behaviour. Any ideas for a quick fix?! Thanks, Andreas ConTeXt ver: 2012.11.23 17:35 MKIV minimal example \setuphead[subsection][number=no] \starttext \chapter{First Chapter} \section{First Section} \placeformula \startformula Ax=b % as expected: (1.1) \stopformula \subsection{First Subsection} \placeformula \startformula Ax=b % not as expected: (2) instead of (1.2) \stopformula \stoptext minimal example ___ 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] intertext (math): alignment problems
Dear all, if I set up my formulas with a right alignment that has some indentation to it, I am experiencing problems with intertext. I would assume the text was flushed left. However, it aligns to the formulas (i.e. it is aligned to the left margin defined in \setupformulas). Minimal example below. If I comment the setupformulas, the equation is aligned to the center and the intertext is flushed left. Any suggestions? Cheers, Andreas ConTeXt ver: 2012.11.19 19:04 MKIV fmt: 2012.11.20 %%% \setupformulas[align=right,leftmargin=3.5em] \starttext \startformula \startalign[n=2] \NC b \NC = Ax\NR \startintertext likewise % should be flushed left \stopintertext \NC q \NC = Ay\NR \stopalign \stopformula \stoptext %%% ___ 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] apa like bibliography: entries not indexed correctly
Dear all, I am experiencing problems with the bibliography. My bibliographystyle is apa like. In the minimal example given below the maybe year is not set up correctly. That is I would expect to have (Firstauthor et al., 2012a,2011,2012b) but I get (Firstauthor et al., 2012,2011,2012). It took me some time to reproduce this error. My description of the error is probably quite difficult to follow. I hope the example is more intuitive: The reason for this problem to occur is that the entries in the bbl file are probably processed according to the alphabetic order of the last name of the authors. If one refers to an author publishing several articles in a single year (in my example 2012) and there is an additional publication that is published in another year (in my example 2011), the ordering is essentially determined by the first letter of the last name of the second author (if it was a different second author, otherwise third author and so on). If the letter of the second author in the publication published in the year in which there was only a single publication (in my example 2011) happens to be inbetween the letter of the second author on the two publications published in the year in which there have been two publications (in my example the publications in 2012), the publication (in my example 2011) will appear inbetween those that appeared in the same year (in my example 2012). This results in the maybeyear to be screwed up. The listing will be Firstauthor et al., 2012 Firstauthor et al., 2011 Firstauthor et al. 2012 instead of Firstauthor et al., 2012a Firstauthor et al., 2011 Firstauthor et al., 2012b Cheers, Andreas 2012.11.06 09:56 MKIV fmt: 2012.11.7 int: english/english \setuppublications[ alternative=apa-de, sorttype=bbl ] \setuppublicationlist[] %bibtex support \setupbibtex[database={references-example},sort=author] %\setupbibtex[database={references},sort=author] MINIMAL EXAMPLE \starttext \cite[Firstauthor:2012b,Firstauthor:2011a,Firstauthor:2012a] \placepublications[criterium=text] \stoptext MINIMAL EXAMPLE references-example.bib Description: references-example.bib ___ 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] Numbering subformulas
Dear all, Dear Wolfgang, This is already in the core (str-mat.mkiv) but I found a typo in another macro in font-new.mkiv Thanks. That's indeed interesting. I still get an error. I have deleted everything and have updated to the most recent beta: 2012.10.06 15:31 MKIV fmt: 2012.10.15 If I replace the function \strc_formulas_handle_sub_numbering as described before, erveryting works nicely. Probably your fix has not yet been uploaded, yet. I just wanted to let you know. Maybe this clarifies something or indicates additional problems. Cheers, Andreas ___ 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] Numbering subformulas
Hi there, I suppose the following fixes your problem though I can not tell for sure, since you did not provide the error message: Replace the stuff connected to \strc_formulas_handle_sub_numbering in cont-new.mkiv with \def\strc_formulas_handle_sub_numbering {\let\strc_formulas_handle_sub_numbering\relax % else error \doiftextelse\currentsubformulasuffix {\strc_counters_setown_sub\v!formula\plustwo\currentsubformulasuffix} {\strc_counters_increment_sub\v!formula\plustwo}% \placecurrentformulanumber} This works for me. I do this every time I update context. Please consult [NTG-context] subformulas: error in latest beta in the mailing list. This is where I reported this bug earlier. Hans himself provided the fix. Hope this helps. Cheers, Andreas Am Oct 14, 2012 um 9:07 PM schrieb Aditya Mahajan: On Sun, 14 Oct 2012, Otared Kavian wrote: Hi Aditya, It seems that numbering subformulas as described in your « My Way » magazine entitled « Using \startalign » does not work with mkiv. The following minimal example taken from page 6 of the above mentioned manual, does not result in what is described there: \starttext \placesubformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[eq:c][c] \NC a_2 x + b_2 y \NC = c_2 \NR[eq:d][d] \stopalign \stopformula (\in[eq:c]) and (\in[eq:d]) form a linear system of equations. \stoptext Is this a known bug? I can confirm the bug. Using \startsubformulas does not work either. I don't completely understand the new implementation of ConTeXt numbers, so I cannot suggest an immediate fix for this. 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 ___ ___ 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] math: \text does not scale properly
Hi there, As Aditya mentioned in a former posting (*) that \text{ ... } should scale properly when used as super- or subscript, I have prepared a minimal example to demonstrate that it doesn't. In my document I have switched from \text{ } to \normal, which works. Kind regards, Andreas ConTeXt ver: 2012.09.25 21:44 MKIV fmt: 2012.10.1 %% MINIMAL EXAMPLE \setupbodyfont[xits] \starttext $f_{\text{text}_{\text{text}_{\text{text$ $f_{{\normal text}_{{\normal text}_{\normal text}}}$ \stoptext %% MINIMAL EXAMPLE (*) see [NTG-context] punctuation vs font switch ___ 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: \text does not scale properly
Hi Alan, thanks for your help. That's indeed an option, but not much of a difference to using \normal I suppose. In addition, \text has the nice feature of preserving the space character, which makes it very useful for lazy people (of course I can add \, and friends but...). Cheers, Andreas ConTeXt ver: 2012.09.25 21:44 MKIV fmt: 2012.10.1 MINIMAL EXAMPLE \setupbodyfont[xits] \starttext $f_{\mathrm{text and text}_{\mathrm{text and text}_{\mathrm{text and text$ $f_{\text{text and text}_{\text{text and text}_{\text{text and text$ $f_{{\normal text}_{{\normal text}_{\normal text}}}$ \stoptext MINIMAL EXAMPLE Am Oct 4, 2012 um 9:27 AM schrieb Alan BRASLAU: On Thu, 4 Oct 2012 09:10:17 +0200 Andreas Mang m...@imt.uni-luebeck.de wrote: Hi there, As Aditya mentioned in a former posting (*) that \text{ ... } should scale properly when used as super- or subscript, I have prepared a minimal example to demonstrate that it doesn't. In my document I have switched from \text{ } to \normal, which works. Kind regards, Andreas ConTeXt ver: 2012.09.25 21:44 MKIV fmt: 2012.10.1 %% MINIMAL EXAMPLE \setupbodyfont[xits] \starttext $f_{\text{text}_{\text{text}_{\text{text$ $f_{{\normal text}_{{\normal text}_{\normal text}}}$ \stoptext %% MINIMAL EXAMPLE (*) see [NTG-context] punctuation vs font switch Hello, I generally use \mathrm{} (maybe this is a leftover from LaTeX practice), and this works fine. Alan \setupbodyfont [xits] \starttext $f_{\mathrm{text}_{\mathrm{text}_{\mathrm{text$ $f_{{\normal text}_{{\normal text}_{\normal text}}}$ \stoptext ___ 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] punctuation vs font switch
Dear all, at the risk of being met with an incredulous shake of the head: I am using xits as math font and pagella as main font (for several reasons). Obviously, the punctuation (in particular comma) does not match. Is there an easy and quick global fix!? Your help is very much appreciated. Cheers, Andreas % minimal example \starttypescript [myface] \definetypeface [\typescriptone] [rm] [serif] [pagella] [default] \definetypeface [\typescriptone] [ss] [sans] [helvetica] [default] \definetypeface [\typescriptone] [tt] [mono] [modern] [default] \definetypeface [\typescriptone] [mm] [math] [xits] [default] \stoptypescript \setupbodyfont[myface,11pt] \starttext $1{,}2$ 1,2 % difference $1\text{,}2$ % not so nice work around and problematic since the font size does not change (superscript, subscript,...) \stoptext % stop minimal example P.S. Clearly, this does not matter for formulas but its different for inline (in text) math expressions. ___ 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] xits font: some spacing and scaling problems
Hi, yet another one: \setupbodyfont[xits] \starttext $A \setminus B$ \stoptext looks strange to me. Cheers, Andreas Am Sep 27, 2012 um 7:01 PM schrieb Aditya Mahajan: On Thu, 27 Sep 2012, Khaled Hosny wrote: On Thu, Sep 27, 2012 at 04:58:11PM +0200, Andreas Mang wrote: Hi there, Not quite sure if this is the right place. I wanted to send this directly to Khaled Hosny, but then I thought it might be good to have some additional opinion on some of these issues (I am not quite sure if some of this is intended behaviour). I have collected some examples for which I think there are some scaling and spacing problems in xits. Also, small caps are not supported. Is this intended?! Thanks for your help. Cheers, Andreas MINIMAL EXAMPLE \setupbodyfont[xits,11pt] \starttext $\diamond$ % too small?! $\square$ % OK?! $\blacktriangleright$ % too big?! $\blacktriangleleft$ % too big?! $\blacktriangle$ % too big?! $\blacktriangledown$ % too big?! None of those glyphs were changed in XITS, they are exactly the same as the ones in STIX fonts, so possibly ConTeXt is using the wrong Unicode character for those symbols. The later two are smaller with LaTeX package unicode-math. That is most likely the issue. I never really understood what all these triangles should map to. Should we target unicode-math the reference implmentation? 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 ___ ___ 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] xits font: some spacing and scaling problems
Hi there, Not quite sure if this is the right place. I wanted to send this directly to Khaled Hosny, but then I thought it might be good to have some additional opinion on some of these issues (I am not quite sure if some of this is intended behaviour). I have collected some examples for which I think there are some scaling and spacing problems in xits. Also, small caps are not supported. Is this intended?! Thanks for your help. Cheers, Andreas MINIMAL EXAMPLE \setupbodyfont[xits,11pt] \starttext $\diamond$ % too small?! $\square$ % OK?! $\blacktriangleright$ % too big?! $\blacktriangleleft$ % too big?! $\blacktriangle$ % too big?! $\blacktriangledown$ % too big?! {\sc Word} % not supported ?! $\tilde{W}^i$ $W^i$ % using a superscript in case % an accent is used results in % a too small distance between letter % and superscript $f^i$ % distance too small (seems to be just the case for $f$, see e.g. $h^i$ $t^i$) \stoptext MINIMAL EXAMPLE ___ 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] Referring to multiple elements
Hi Marco, I do not know if there is a solution to this. The following would work for your example: \in{figure}[alpha]--\in[gamma] Of course this is a quite rigid solution, that does not safeguard against changes in figure order...So probably not what you were looking for. Cheers, Andreas Am Sep 13, 2012 um 12:15 PM schrieb Marco Patzer: Hi, how can I refer to multiple elements at the same time? \starttext \startplacefigure [title=foo, reference=alpha] \stopplacefigure \startplacefigure [title=bar, reference=beta] \stopplacefigure \startplacefigure [title=bar, reference=gamma] \stopplacefigure \in{figure}[alpha,beta,gamma] \stoptext This outputs “figure 1”. What I'd like to have is “figure 1-3”. 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 ___ ___ 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] bibliography: multiple categories
Dear all, is there a way to split the bibliography (at the end of the document with bibtex support) in several categories, which have different headings (similar to what latexs' multibib or splitbib does)? Cheers, Andreas This is what I would like to have as an output: == Original Papers My Name and Friends, Some Title, Some Journal, Some Year My Name and Friends, Some Title, Some Conference, Some Year References (other authors) Author A. and Friends, Some Title, Some Journal, Some Year Author B. and Friends, Some Title, Some Conference, Some Year Author C. and Friends, Some Title, Some Conference, Some Year == ___ 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] built-in units command (mkiv) fails
Hi there, Did / Do I miss something or is there a problem with the built-in \unit command? minimal example: start example \starttext 10 \unit{km/h} \stoptext stop example output: 10 kilometersolidushour ConTeXt: ver: 2012.08.16 22:20 MKIV fmt: 2012.8.22 Similar results are obtained for all examples in the Using the built-in command on http://wiki.contextgarden.net/Units Cheers, Andreas ___ 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] subformulas: error in latest beta
Am Aug 19, 2012 um 11:55 AM schrieb Hans Hagen: You can put this in cont-new.mkiv (after \unprotect): \def\strc_formulas_handle_sub_numbering {\let\strc_formulas_handle_sub_numbering\relax % else error \doiftextelse\currentsubformulasuffix {\strc_counters_setown_sub\v!formula\plustwo\currentsubformulasuffix} {\strc_counters_increment_sub\v!formula\plustwo}% \placecurrentformulanumber} Thanks Hans! Works nicely (as always). Just as minor comment in case someone faces the same problem: There's already a \def\strc_formulas_handle_sub_numbering in cont-new.mkiv (line 36; ConTeXt ver: 2012.08.16 22:20 MKIV fmt: 2012.8.21). So to make this fix work I had to redefine / replace the original command instead of just putting it there. Cheers, Andreas ___ 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] subformulas: error in latest beta
Dear all, I am having problems with subformulas. The following example does not display a subnumber (i.e. I get (1) and (2) instead of (1a) and (1b)): % start example \starttext % from % does not display subformula numbers \placesubformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[+][a] \NC a_2 x + b_2 y \NC = c_2 \NR[+][b] \stopalign \stopformula % stop example % This example is taken from http://dl.contextgarden.net/myway/mathalign.pdf page 6 I am not quite sure for how long this is not working. I have been using the following alternative, which used to work but now gives me an error with the latest beta (ConTeXt ver: 2012.08.16 22:20 MKIV fmt: 2012.8.18): % start example % the following used to work in an earlier version \startsubformulas[eq:ax=b] \placeformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[+][a] \NC a_2 x + b_2 y \NC = c_2 \NR[+][b] \stopalign \stopformula \stoptext % stop example % Any suggestions? Cheers, Andreas ___ 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] subformulas: error in latest beta
sorry... the error message is: TeX capacity exceeded, sorry [ ... \strc_formulas_handle_sub_numbering ..._numbering \fi \strc_formulas_handle_sub_numbering ..._numbering \fi \strc_formulas_handle_sub_numbering ..._numbering \fi \strc_formulas_handle_sub_numbering ..._numbering \fi \strc_formulas_handle_sub_numbering ..._numbering \fi \strc_formulas_handle_sub_numbering ..._numbering \fi Am Aug 18, 2012 um 9:01 PM schrieb Andreas Mang: Dear all, I am having problems with subformulas. The following example does not display a subnumber (i.e. I get (1) and (2) instead of (1a) and (1b)): % start example \starttext % from % does not display subformula numbers \placesubformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[+][a] \NC a_2 x + b_2 y \NC = c_2 \NR[+][b] \stopalign \stopformula % stop example % This example is taken from http://dl.contextgarden.net/myway/mathalign.pdf page 6 I am not quite sure for how long this is not working. I have been using the following alternative, which used to work but now gives me an error with the latest beta (ConTeXt ver: 2012.08.16 22:20 MKIV fmt: 2012.8.18): % start example % the following used to work in an earlier version \startsubformulas[eq:ax=b] \placeformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[+][a] \NC a_2 x + b_2 y \NC = c_2 \NR[+][b] \stopalign \stopformula \stoptext % stop example % Any suggestions? Cheers, Andreas ___ 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 ___ -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ 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] superscript spacing: xits math font
Hi there, Likewise to an issue reported earlier to this list (Math other issues for TL 2012) there seems to be a problem with the spacing of the superscript in the xits math font, which cannot be controlled via the setupmathematics[italix=n] option: %%% start example \setupbodyfont[xits] \starttext ${\cal P}^hx$ $P^h_mx$ $C^hx$ $W^{-1}x$ \stoptext %%% stop example For me (ConTeXt ver: 2012.08.10 00:32 MKIV fmt: 2012.8.10) these examples yield a too small spacing / negative spacing between the letter and the corresponding superscript. Any ideas? Cheers, Andreas Not quite sure if this is a pure font problem and should be sent to some other place than this list? ___ 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] advice 4 math font
Hi there, I have a rather general question regarding the options for math fonts in ConTeXt. As I understand from reading older posts to this list, there are currently efforts for making either pagella math or an updated modern font available. I am looking into this for quite some time now, but did not find a solution of my liking. I am currently using \setupbodyfont[modern-designsize] However, I like the rendering of latex's mathpazo a lot better, since in modern design the math font does not match the modern text font. Plain pagella currently is no option, since (i) fraktur is not supported (see P.S.) (ii) I am not happy with px math (integrals…) Another option would to use tex gyre pagella math (which is different from the currently available \setupbodyfong[pagella], right?!): ftp://ftp.mpi-sb.mpg.de/pub/tex/mirror/ftp.dante.de/pub/tex/fonts/tex-gyre-math/doc/presentation-tg_pagella_math.pdf As I understand I'd have to put the tff / otf files into a folder that is recognized by ConTeXt (right?!). However, downloading the zip from here: http://www.ctan.org/tex-archive/fonts/tex-gyre-math gives me only the regular fonts (i.e. there is no math - or am I missing something?!) Are there any other options, is there someone listening, who was able to mimic mathpazo (I know about math times, but there's money envolved, which I'd rather like to not spend) and could provide me with a solution or are there other options, which I have overseen? I have had a look at the descriptions about handling fonts in the manual(s), but I did not really get into it. I'd have to come up with a solution of my liking in a couple of months (deadline). Your help is very much appreciated. Sorry for bringing this up, especially since it is a stupid discussion about taste, but I spend too much time on this and am quite sure that someone out there must have a solution to these problems or at least point me into the right direction... Cheers, Andreas START EXAMPLE \setupbodyfont[pagella,12pt] \starttext $\mathfrak{F}$ {\frak F} \stoptext STOP EXAMPLE ___ 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 symbol: blacktriangle
Hi Hans, On 17-7-2012 20:41, Andreas Mang wrote: mathname=blacktriangle, to [0x25B4]={ adobename=blackuppointingsmalltriangle, category=so, description=BLACK UP-POINTING SMALL TRIANGLE, direction=on, linebreak=al, unicodeslot=0x25B4, }, why not 25B2 (the bigger one) [0x25BE]={ category=so, description=BLACK DOWN-POINTING SMALL TRIANGLE, direction=on, linebreak=al, unicodeslot=0x25BE, }, with mathname=blacktriangledown under the assumption you'd like to be consistent with the naming convention of latex. or 25BC (the bigger one) To make it short: I think Hans is correct. From my perspective there is an error in char-def.lua for blacktriangleleft and secondly the internet page I have looked this up is not consistent with what is implemented in ConTeXt, both facts of which lead me into the wrong direction (see below (P.S.), if you are interested). Both, http://www.unicodemap.org/details/0x25B2/index.html and http://www.unicodemap.org/details/0x25BC/index.html look consistent to \blacktriangleright (which I am already using in my document): http://www.unicodemap.org/details/0x25B6/index.html Cheers, Andreas P.S.: When I started to look into this I thought it might be possilble to define some command in the preamble of my document that uses unicode. From searching the internet I found http://www-sop.inria.fr/marelle/tralics/doc-b.html which says The \blacktriangle command is valid only in math mode. Its translation is moblacktriangle;/mo (Unicode U+25B4, ▴). However, there indeed is a problem (which I have not spotted in the first place). I had a look at char-def.lua which at first confirmed my impression on using small triangels: [0x25B8]={ category=so, description=BLACK RIGHT-POINTING SMALL TRIANGLE, direction=on, linebreak=al, mathclass=bin, mathname=blacktriangleleft, unicodeslot=0x25B8, }, However, this is not consistent with what you can find on the internetpage from above, since it 0x25B8 should be blacktriangleright The \blacktriangleright command is valid only in math mode. Its translation is moblacktriangleright;/mo (Unicode U+25B8, ▸). Secondly, the \triangleleft, which I have not used before, does not work (at least for me ConTeXt ver: 2012.07.10 09:52 MKIV fmt: 2012.7.15 int: english/english): simple example: \starttext $\blacktriangleleft$ % does not appear $\blacktriangleright$ % works \stoptext For the blacktriangleright we have: [0x25B6]={ adobename=blackrightpointingtriangle, category=so, cjkwd=a, description=BLACK RIGHT-POINTING TRIANGLE, direction=on, linebreak=ai, mathclass=bin, mathname=blacktriangleright, unicodeslot=0x25B6, }, which is _not_ consistent with The \blacktriangleright command is valid only in math mode. Its translation is moblacktriangleright;/mo (Unicode U+25B8, ▸). However, looking at http://www.unicodemap.org/details/0x25B6/index.html and given the fact that blacktriangleright works nicely, I'd assume that Hans is correct and it indeed is not the small ones but the big tirangles. ___ 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 symbol: blacktriangle
Hi, Thanks Hans. It works for me :) Relating the output (\blacktriangleright and \blacktriangle) to some figure I have created with latex + tikz I do not see any difference. Cheers, Andreas Am Jul 18, 2012 um 10:37 AM schrieb Hans Hagen: Hi, I uploaded a new beta .. still not ok I guess: \setuplayout[header=0pt,footer=0pt,height=middle,width=middle] \setupbodyfont[dejavu,10pt] \startbuffer \starttabulate[|||pT|] \HL \NC \type{\blacktriangle } \NC \blacktriangle \NC \meaning\blacktriangle \NC \NR \NC \type{\blacktriangledown } \NC \blacktriangledown \NC \meaning\blacktriangledown \NC \NR \NC \type{\blacktriangleleft } \NC \blacktriangleleft \NC \meaning\blacktriangleleft \NC \NR \NC \type{\blacktriangleright} \NC \blacktriangleright \NC \meaning\blacktriangleright \NC \NR \HL \NC \type{\triangle } \NC \triangle \NC \meaning\triangle \NC \NR \NC \type{\bigtriangleup} \NC \bigtriangleup \NC \meaning\bigtriangleup \NC \NR \NC \type{\triangledown } \NC \triangledown \NC \meaning\triangledown \NC \NR \NC \type{\bigtriangledown}\NC \bigtriangledown\NC \meaning\bigtriangledown\NC \NR \NC \type{\triangleleft } \NC \triangleleft \NC \meaning\triangleleft \NC \NR \NC \type{\triangleright} \NC \triangleright \NC \meaning\triangleright \NC \NR \HL \stoptabulate \stopbuffer \starttext \switchtobodyfont[modern-designsize] \subject{modern-designsize} \getbuffer \blank \switchtobodyfont[modern]\subject{modern} \getbuffer \blank \switchtobodyfont[xits] \subject{xits} \getbuffer \blank \switchtobodyfont[pagella] \subject{pagella} \getbuffer \blank \stoptext I tend to taking xits as reference. 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 - -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ 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] math symbol: blacktriangle
Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? Cheers, Andreas ___ 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 symbol: blacktriangle
Hi Aditya, Thanks for the advice. As I am a newby, I'd decided to respond to the list: I had a look at char-def.lua and I think the only thing that needs to be done is to add mathname=blacktriangle, to [0x25B4]={ adobename=blackuppointingsmalltriangle, category=so, description=BLACK UP-POINTING SMALL TRIANGLE, direction=on, linebreak=al, unicodeslot=0x25B4, }, The unicodeslot is consistent to what I've found in the famous WWW http://www.fileformat.info/info/unicode/char/25b4/index.htm Same goes for [0x25BE]={ category=so, description=BLACK DOWN-POINTING SMALL TRIANGLE, direction=on, linebreak=al, unicodeslot=0x25BE, }, with mathname=blacktriangledown under the assumption you'd like to be consistent with the naming convention of latex. Right? Cheers, Andreas On Jul 17, 2012, at 7:39 PM, Aditya Mahajan wrote: On Tue, 17 Jul 2012, Andreas Mang wrote: Dear all, The \blacktriangle and \blacktriangledown symbol seem to be missing, though \blacktriangleright and \...-left are defined. Is there a quick way to add missing symbols by myself from the knowledge of Unicode / XML identifier (http://www-sop.inria.fr/marelle/tralics/doc-b.html)? For opentype math fonts, have a look at char-def.lua. To add missing symbols, you need to add appropriate fields in the lua table. The hard part is verifying the symbol to unicode slot mapping (the list at tralics is not always consistent with the ams list that is used by unicode-math package). If you know the right mappings, add a patch to char-def.lua and send it to the list (or the dev-context list); otherwise, just send the mappings and I can add them to the lua table. 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 ___ -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ 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] math: diagonal dots
Dear all, It seems that the \ddots in modern is mapped to the wrong Symbol: % \setupbodyfont[modern,12pt] \starttext $\ddots$ \stoptext % System: ConTeXt ver: 2012.07.10 09:52 MKIV result: three dots from bottom left to top right (corresponds to \iddots (which btw. does not exist in context, as it seems)) expected result: three dots from top left to bottom right Seems just to be the case for modern. Cheers, Andreas ___ 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] multi column index register broken
Dear all, Firstly, thanks for the fixes in the index register. Works nicely... However, I am facing an new problem with this very register: It seems that the current beta only works for index registers put in a single column (see below) or did the interface change? Cheers, Andreas VERSION: ConTeXt ver: 2012.07.16 20:58 MKIV fmt: 2012.7.16 MINIMAL EXAMPLE: % \starttext ABC\index{ABC} DEF\index{DEF} GHI\index{GHI} JKL\index{JKL} MNO\index{MNO} % \placeindex[n=1] % works % \completeindex[n=1] % works \completeindex % does not work %\placeindex[n=2] % does not work %\completeindex[n=2] % does not work \stoptext % ERROR MESSAGE: Illegal unit of measure (pt inserted) … to be read again \relax \settotalinsertionheight ...on_height \s!topfloat +\page_insert_insertion_he... \page_mul_set_n_of_lines ...ttotalinsertionheight \d_page_mul_temp \dimexpr ... \page_otr_command_set_vsize ...mul_set_n_of_lines \d_page_mul_temp \nofcolum... \page_mul_start ... \plusone \page_mul_start_yes \else \page_mul_start_nop ... \strc_registers_place ...rparameter \c!tolerance ] \strc_registers_place_inde... … ___ 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] Bibliographycal style in spanish
Hi Manuel, Not quite sure if there's a simpler way, but what I've done in order to create my own style is to copy and paste one of the style files in PATH TO CONTEXT FOLDER/tex/texmf-context/tex/context/bib/ to my local folder (bibl-SOMENAME.tex) and edit it accordingly. I found this quite intuitive and it gave me full control on the look of my bibliography. What you'd have to do is change in \setupcite the entry in the field andtext to y. You'd also have to change \c!lastnamesep={ y }, \c!finalnamesep={ y }, in \setuppublicationlist. At least that's how it worked for me. You'd also have to tell setuppublications in your preamble to look for the bibl-SOMENAME.tex file: alternative=SOMENAME. There might be an easier way, but - as I said - you get full control of the look of your bib. Hope this helps. Cheers, Andreas Am Jul 13, 2012 um 9:22 AM schrieb MANUEL GONZALEZ SUAREZ: Hello again. This message is to thank Wolfgang for his response on interactive documents that has worked very well. I would now like to put another small question. I prepared a document with a bibliography at the end. To do this I use the modules \usemodule[bib] and \usemodule [bibltx], but since the bibliography is in Spanish, when two or more authors appear, I would replace and by y. With the format ap-fr appears et, but there is not a *apa-is. HowI can do? Thanks again. -- Manuel González Suárez ___ 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 ___ -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ 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] \seeindex and processors
Dear Hans Wolfgang, Thanks for looking into this. I know that this has quite low priority. As it seems to me processors do not really seem to provide the behaviour I had in mind. Clearly, I should have thought of a better example in the first place: % \defineprocessor[smallcaps][style=\sc] \starttext % this works nicely {\sc Test}\index{smallcaps-Test} % this is what I want it to look like % (which does not work for \seeindex[.]) \index{{\sc Cauchy}||Problem} % this is what I tried after you have suggested % to use processors, but it does not work (*) {\sc Cauchy}||Problem\index{{smallcaps-Cauchy}||Problem} \placeindex[n=1] \stoptext % (*) As you can see I am using smallcaps as an indicator for a personal name. From looking at the code (I have to admit that I do not know anything about what's beyond the context front end) I think there's no quick solution to get this to work with preprocessors. Am I doing something wrong? If you do not have the time to look into this right now never mind. Sorry for the hassle. Cheers, Andreas Am Jul 13, 2012 um 7:23 PM schrieb Hans Hagen: On 13-7-2012 09:57, Wolfgang Schuster wrote: Hi Hans, processors aren’t applied to the second argument of \seeindex, only the first is formatted. \defineprocessor[smallcaps][style=\sc] \starttext Apples\index{smallcaps-Apple} Malus domestica\seeindex{smallcaps-Malus domestica}{smallcaps-Apple} \placeindex[n=1] \stoptext ok, so the next beta will have \setupinteraction[state=start] \defineprocessor[smallcaps][style=\sc] \defineprocessor[bold] [style=\bf] \starttext Apples\index{smallcaps-Apple} Pears\index{Pears} Malus domestica\seeindex{smallcaps-Malus domestica}{bold-Apple} Bonus domestica\seeindex{Bonus domestica}{Pears} \placeindex[n=1] \stoptext - 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 ___ -- Andreas Mang, MSc Research Associate UNIVERSITY OF LUEBECK INSTITUTE OF MEDICAL ENGINEERING Division of Computer Science, Engineering and Natural Sciences Ratzeburger Allee 160, Building 64 23562 Luebeck, Germany Phone: +49 (0) 451 500 5416 Fax: +49 (0) 451 500 5403 m...@imt.uni-luebeck.de http://www.imt.uni-luebeck.de ___ 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] seeindex: accents and such
Dear all, I have some minor problems with \seeindex It seems that it does not render accents properly nor is it possible to introduce commands. Is this an intended behavior, am I doing something wrong or is there a bug? Cheers, Andreas Minimal example: \setupregister[index] [ style={\bf\WORD}, balance=yes ] \starttext % seeindex does not render ssharp properly Wei{\ssharp}wurst\index{Wei{\ssharp}wurst}\seeindex{German sausage}{Wei{\ssharp}wurst} % same holds for accents M\unchner Wei{\ssharp}bier\index{M\unchner Wei{\ssharp}bier}\seeindex{good beer}{M\unchner Wei{\ssharp}bier} % switching font style {\sc Test}\index[Test]{\sc Test}\seeindex[Test]{Testing}{\sc Test} \completeindex \stoptext ___ 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] seeindex: accents and such
I forgot to mention that I am using ConTeXt ver: 2012.07.10 09:52 MKIV Sorry... Am Jul 11, 2012 um 8:38 PM schrieb Andreas Mang: Dear all, I have some minor problems with \seeindex It seems that it does not render accents properly nor is it possible to introduce commands. Is this an intended behavior, am I doing something wrong or is there a bug? Cheers, Andreas Minimal example: \setupregister[index] [ style={\bf\WORD}, balance=yes ] \starttext % seeindex does not render ssharp properly Wei{\ssharp}wurst\index{Wei{\ssharp}wurst}\seeindex{German sausage}{Wei{\ssharp}wurst} % same holds for accents M\unchner Wei{\ssharp}bier\index{M\unchner Wei{\ssharp}bier}\seeindex{good beer}{M\unchner Wei{\ssharp}bier} % switching font style {\sc Test}\index[Test]{\sc Test}\seeindex[Test]{Testing}{\sc Test} \completeindex \stoptext ___ 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 ___ ___ 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] seeindex: accents and such
Hi Wolfgang, Thanks. That's truly an option. I have already looked into this and it works. As a matter of fact, this is what I decided to do if there is no quick fix. However, I thought I'd point it out, since it works for \index and just not for \seeindex. Secondly, the \sc (command) issue persists. Thirdly, once upon a time I have opened my tex files on a foreign machine and I realized that all accents were screwed. This was the day when I decided to become even more paranoid and by that not to use ü and friends in my source files. Maybe I should stop being paranoid, since all people around me seem to be using accents... Cheers, Andreas Am Jul 11, 2012 um 10:15 PM schrieb Wolfgang Schuster: Am 11.07.2012 um 20:38 schrieb Andreas Mang: Dear all, I have some minor problems with \seeindex It seems that it does not render accents properly nor is it possible to introduce commands. Is this an intended behavior, am I doing something wrong or is there a bug? Why don’t you use “ü” and “ß” in 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 ___ ___ 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] extra \fi
Hi, Same here. Interestingly, the minimal example % start example \starttext \placefigure[top][ref:somefigure]{some caption}{\externalfigure[cow][width=0.5\makeupwidth]} \stoptext % stop example works fine. I have managed to reproduce the error on my machine (MAC OS X: ConTeXt ver: 2012.07.07 15:04 MKIV fmt: 2012.7.8) by putting multiple \input knuths (note, that I had to put them exactly as given below; not introducing an empty line after \input knuth or fewer \input knuths in front, does not yield an error): % start example \starttext \input knuth \input knuth \input knuth \placefigure[top][ref:somefigure]{some caption}{\externalfigure[cow][width=0.5\makeupwidth]} \input knuth \input knuth \stoptext % stop example Hope this helps. Cheers, Andreas Error message: Extra \fi. \page_otr_triggered_output_routine ...routine \fi output ...ut \page_otr_triggered_output_routine \relax \the \everyafterout... l.11 Am Jul 9, 2012 um 5:08 PM schrieb Prashanth: Looks like this is what triggers an error in my document too. [Ref. Broken Nightly 2012.07.08 20:02 - unpredictable errors on blank lines] Commenting out all floats got rid of the error. On 09/07/12 09:50, Meer, H. van der wrote: Is the following a known issue with this beta? When a float block moves the error appears: ConTeXt ver: 2012.07.04 23:48 MKIV fmt: 2012.7.6 int: english/english floatblocks 1 placed floatblocks 1 saved pagesflushing realpage 5, userpage 1 floatblocks 1 moved floatblocks 2 moved ! Extra \fi. A short example is difficult to procure, but adding one line of text, inducing the float to move, triggers the error. Hans van der Meer ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nlhttp://www.pragma-ade.nl/ / http://tex.aanhet.nethttp://tex.aanhet.net/ archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.nethttp://contextgarden.net/ ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nlmailto: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 ___ ___ 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] label in enumerations broken?
Dear all, As I have learned from the mailing list, there have been some changes in the enumeration / description environment. Did I miss something (i.e. has there also been a change in how to define the labels for the description / enumeration?) I have attached my prefs, a minimal example and an error message. Your help is very much appreciated. Thanks in advance, Andreas % % PREFS % % ConTeXt ver: 2012.02.18 10:50 MKIV fmt: 2012.2.18 int: english/english % LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) % % MINIMAL EXAMPLE % \setupenumerations% [% alternative=hanging,% width=broad,% headstyle=bold,% titlestyle=bold,% ]% \defineenumeration[mydefinition]% [text=Definition,% style=italic,% title=yes,% listtext={Definition }% ]% \starttext % \startmydefinition WITHOUT [ref2mydef] and/or the title {The Definition} works fine % note: I have added alternative instead of location as suggested in the mailing list % note: I have switched the title on and off and accordingly have also removed The Definition \startmydefinition[ref2mydef]{The Definition} Let something be defined. \stopmydefinition \stoptext % % ERROR MESSAGE % \strc_descriptions_start_yes_reference ...e_state \expandafter \strc_descrip... \strc_descriptions_start_yes ...art_yes_reference [#1] l.21 \startmydefinition[ref2mydef] {The Definition} ? ! Emergency stop. system tex error on line 21 in file /Users/Chip/Desktop/dump/context-minimal/minimal.tex: Emergency stop ___ 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] closesymbol in enumeration broken?
Hi everybody, I might have spotted a problem related to enumerations. The minimal example below results in the given error message. It works without the closesymbol option. Thanks for your help. Cheers, Andreas % ### MINIMAL EXAMPLE ### (ConTeXt ver: 2012.02.18 10:50 MKIV fmt: 2012.2.19) \defineenumeration[myproof][text=Proof,closesymbol={\mathematics{\square}}] \starttext \startmyproof This is a proof \stopmyproof \stoptext % ### % ### ERROR MESSAGE to be read again \normalstartimath \mathematics ...ifmmode #1\else \normalstartimath #1\normalstopimath \fi \strc_constructions_close_symbol_place ...esymbol \fi \fi \140construction ...tructions_close_symbol_place \doifnot {\constructionpar... \140enumeration ...er \v!construction \endcsname \endgroup l.5 \stopmyproof % ### ___ 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] math symbols in superscript do not scale properly
Hi there, It came to my attention that there might be a problem when using math symbols in the superscript: It seems that the symbols are not properly scaled (if downscaling was what I suppose to be the default behaviour). A small example is given below. Thanks in advance. Cheers, Andreas Minimal example: \setupbodyfont[11pt] \starttext $\int e^{\int f(x) dx} dy$ \stoptext You can extend this by putting multiple superscripts, resulting in no change in size of the $\int$ symbols. Specifications: Mac OS 10.5; ConTeXt ver: 2011.11.29 23:11 MKII fmt: 2011.12.10 int: english/english ___ 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] backref in ConTeXt bibliography
Hi everybody, Is there any simple macro / flag available that would result in the page numbers for the place of citation for individual bibliography entries to show up in the bibliography, i.e. is there some functionality similar to backref (http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref/) available in ConTeXt? I got pretty excited when I saw the option \setuppublicationlist[% pagenumber=yes,% ] in the manual since I expected it would do the job. I however cannot see any changes when setting this to yes in my document. As far as I can see there is also no explanation in the bib manual by Taco Hoekwater, right?! I would very much appreciate if one of you guys could point me to the right direction or even better provide me with some code snippets / a solution? Thanks in advance, Andreas ___ 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 ___