Re: [NTG-context] "standard" for bibliographies
On 10-5-2012 19:25, Pontus Lurcock wrote: On Thu 10 May 2012, Thomas A. Schmitz wrote: one glaring omission to me was the lack of support for cross-references within bibliographical lists (e.g., you have a chapter in a book and want to refer back to item X in your list). This has been asked again and again on the zotero forums. Answer 2007: yes, this is coming real soon now. 2008: Well, it needs support from CSL, and may be a bit longer. 2009-2011: more requests, no reply. 2012, one of the developers: not any time soon... This makes CSL worthless to me, I'm afraid. This is certainly a limitation for Zotero (I noticed it as well when I tried it out a little while ago) but I'm not sure that it's a problem for CSL. As I understand it, CSL defines formatting for typeset citations and bibliography entries. It's not meant to handle tasks such as cross-referencing chapter entries to their book entries -- that should be the job of the software (Zotero, Mendeley, etc.) which is using CSL for its formatting. My experience with CSL is limited, though, so I could be wrong about this. At any rate, CSL seems to be achieving a critical mass of usage and support, and there's a huge number of predefined, publicly available styles ( https://github.com/citation-style-language/styles/wiki ). It should not be that hard to support it if only I had a reason to spend time on it (as I never need to use citations etc). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Markdown subitems fail
On 10-5-2012 20:56, Marco wrote: Subitems in markdown behave buggy. Example: \usemodule [markdown] \starttext \startmarkdown - Some item - Another item - Subitem one - Subitem two \stopmarkdown \stoptext Result: • Some item • Another item startmarkdownitemize[packed] startitem Subitem one stopitem stopmarkdownitemize Using pandoc works fine. I assume the markdown module uses a custom lua parser internally. indeed, and I need to update it (some ay) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Markdown subitems fail
Subitems in markdown behave buggy. Example: \usemodule [markdown] \starttext \startmarkdown - Some item - Another item - Subitem one - Subitem two \stopmarkdown \stoptext Result: • Some item • Another item startmarkdownitemize[packed] startitem Subitem one stopitem stopmarkdownitemize Using pandoc works fine. I assume the markdown module uses a custom lua parser internally. 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 ___
Re: [NTG-context] Simple rings with svg
On Thu, May 10 2012, Hans Hagen wrote: > so what is a robust check ... Perhaps just the exit code of the inkscape call? -- Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] "standard" for bibliographies
On Thu 10 May 2012, Thomas A. Schmitz wrote: > one glaring omission to me was the lack of support for > cross-references within bibliographical lists (e.g., you have a > chapter in a book and want to refer back to item X in your list). > This has been asked again and again on the zotero forums. Answer > 2007: yes, this is coming real soon now. 2008: Well, it needs > support from CSL, and may be a bit longer. 2009-2011: more requests, > no reply. 2012, one of the developers: not any time soon... This > makes CSL worthless to me, I'm afraid. This is certainly a limitation for Zotero (I noticed it as well when I tried it out a little while ago) but I'm not sure that it's a problem for CSL. As I understand it, CSL defines formatting for typeset citations and bibliography entries. It's not meant to handle tasks such as cross-referencing chapter entries to their book entries -- that should be the job of the software (Zotero, Mendeley, etc.) which is using CSL for its formatting. My experience with CSL is limited, though, so I could be wrong about this. At any rate, CSL seems to be achieving a critical mass of usage and support, and there's a huge number of predefined, publicly available styles ( https://github.com/citation-style-language/styles/wiki ). Pont ___ 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] Units or px
On Thu, 2012-05-10 at 09:55 +0200, Hans Hagen wrote: > On 10-5-2012 00:39, Kip Warner wrote: > > Hey list, > > > > ConTeXt 2012.05.08 13:45 reports that the units module is deprecated and > > to use the px module in its place. Is it telling the truth or is this a > > px? the message is: > > The units module is obsolete because functionality is built into the core. > > > harmless warning? > > rather harmless indeed, just a warning > > Hans Thanks Hans. -- Kip Warner -- Software Engineer OpenPGP encrypted/signed mail preferred http://www.thevertigo.com signature.asc Description: This is a digitally signed message part ___ 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] mapsto + SimpleSlides
Yes, that's exactly what I did... Matthias On May 10, 2012, at 6:45 PM, Thomas A. Schmitz wrote: > On 05/10/2012 06:38 PM, Weber, Matthias wrote: >> Hmm, TeXShop reports in the console that I am executing >> >> luatex >> --fmt="/Applications/ConTeXtStandalone/tex/texmf-cache/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en" >> --lua="/Applications/ConTeXtStandalone/tex/texmf-cache/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en.lui" >> --backend="pdf" "./test.tex" >> >> which points to the ConTeXt installation I did a few days ago, following >> the wiki. However, then it continues with >> >> system > cont-new.mkiv loaded >> (/usr/local/texlive/2011/texmf-dist/tex/context/base/cont-new.mkiv >> system > beware: some patches loaded from cont-new.mkiv >> etc etc >> >> which points to my TeXlive installation, which shouldn't be used at all??? >> >> Did I mess up the path variable? >> >> $Path is >> >> /Applications/ConTeXtStandalone/tex/texmf-osx-64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin >> >> >> Thanks for any help - >> >> Matthias > > Please keep messages on the list, don't send them to me in private. > > I haven't used texshop in at least seven years. There's a section on the wiki > on it, have you followed it? > > http://wiki.contextgarden.net/ConTeXt_Standalone/Mac_Installation > > Thomas > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ ___ 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] mapsto + SimpleSlides
On 05/10/2012 06:38 PM, Weber, Matthias wrote: Hmm, TeXShop reports in the console that I am executing luatex --fmt="/Applications/ConTeXtStandalone/tex/texmf-cache/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en" --lua="/Applications/ConTeXtStandalone/tex/texmf-cache/luatex-cache/context/210a96fef5fbab446fd11afa77acb026/formats/cont-en.lui" --backend="pdf" "./test.tex" which points to the ConTeXt installation I did a few days ago, following the wiki. However, then it continues with system > cont-new.mkiv loaded (/usr/local/texlive/2011/texmf-dist/tex/context/base/cont-new.mkiv system > beware: some patches loaded from cont-new.mkiv etc etc which points to my TeXlive installation, which shouldn't be used at all??? Did I mess up the path variable? $Path is /Applications/ConTeXtStandalone/tex/texmf-osx-64/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/X11/bin Thanks for any help - Matthias Please keep messages on the list, don't send them to me in private. I haven't used texshop in at least seven years. There's a section on the wiki on it, have you followed it? http://wiki.contextgarden.net/ConTeXt_Standalone/Mac_Installation Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Simple rings with svg
On Thu, 10 May 2012, Hans Hagen wrote: On 10-5-2012 16:59, Aditya Mahajan wrote: On Thu, 10 May 2012, Ian Lawrence wrote: I read on the wiki that now svg is natively supported. Hmm. No. You need to have inkscape installed (and in your PATH) for svg to pdf conversion to work. FWIW, I cannot find the intermediate file 'm_k_i_v_ChangingField_ILUC.pdf' on my disk either…both graphics files are in the same location, both exist, both are named correctly…. @Hans, could we change the conversion so that it checks for inkscape and gives a more sensible warning if inkscape is absent? so what is a robust check ... How about just implementing the unix which command in lua? (untested code) function which(string file) local path = os.getenv("PATH") local splitter = lpeg.splitat(io.fileseparator) local directories = lpeg.match(splitter, path) for dir in directories if io.exists(file.join(dir,file)) then return true end end return false end___ 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] mapsto + SimpleSlides
On 05/10/2012 05:53 PM, Weber, Matthias wrote: Is that too old?: ConTeXt ver: 2011.05.18 18:04 MKIV fmt: 2012.5.5 int: english/english Matthias Depends. Mkiv is moving quite fast, so if you really need to use mkiv, this is way too old. Be warned though: things have changed pretty dramatically over the past 6 months or so, so if this is for something with a tight deadline, I wouldn't just simply update. Install an additional context tree somewhere and see if your documents still compile. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \mapsto + SimpleSlides
On 05/10/2012 03:37 PM, Weber, Matthias wrote: Dear all, I don't get \mapsto to display using SimpleSlides and MkIV. It shows in "normal" MkIV documents, and works in MKII Example below. Thanks for any advice. Matthias \usemodule[simpleslides] [style=BottomSquares, color=blue] \starttext \SlideTitle{Help!} \startformula \text{Mk II}\mapsto \text{Mk IV} \stopformula \stoptext Works for me, I get normal output from your example. What version are you using? Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] bug? margens with duplex
On 10-5-2012 12:15, Peter Schorsch wrote: Hi, I am using \ininner and \inouter to set text into the margins. As soon I also use duplex the margins are messed up at every second page. Unluckily the [stack=continue] option does not help. I put an example incl. pictures of the results on my user talk page on the wiki: http://wiki.contextgarden.net/User_talk:Tralalas That way my problem might be easier to understand. Any help is welcome as this problem became a major issue for me. Thanks P. (this is a follow up of the discussion: "empty lines messing with margins (in duplex mode)" from end of last year) I uploaded a beta that might do a better job but as well could introduce other problems, so testing is needed. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Simple rings with svg
On Thu, May 10, 2012 at 10:59:41AM -0400, Aditya Mahajan wrote: > On Thu, 10 May 2012, Ian Lawrence wrote: > > >I read on the wiki that now svg is natively supported. Hmm. > > No. You need to have inkscape installed (and in your PATH) for svg > to pdf conversion to work. > > >FWIW, I cannot find the intermediate file > >'m_k_i_v_ChangingField_ILUC.pdf' on my disk either…both graphics files > >are in the same location, both exist, both are named correctly…. > > @Hans, could we change the conversion so that it checks for inkscape > and gives a more sensible warning if inkscape is absent? There is also rsvg-convert (from LibRSVG[1]) which can be faster (but in some corner cases, as accurate as Inkscape). [1] http://live.gnome.org/LibRsvg Regards, Khaled ___ 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] Simple rings with svg
On 2012-05-10 Hans Hagen wrote: > > @Hans, could we change the conversion so that it checks for inkscape and > > gives a more sensible warning if inkscape is absent? > > so what is a robust check ... I don't know about robustness, but “which inkscape” seems to be the candidate from my point of view for POSIX systems. The windows equivalent would be “WHERE inkscape” according to google (untested). 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 ___
Re: [NTG-context] Simple rings with svg
On 10-5-2012 16:59, Aditya Mahajan wrote: On Thu, 10 May 2012, Ian Lawrence wrote: I read on the wiki that now svg is natively supported. Hmm. No. You need to have inkscape installed (and in your PATH) for svg to pdf conversion to work. FWIW, I cannot find the intermediate file 'm_k_i_v_ChangingField_ILUC.pdf' on my disk either…both graphics files are in the same location, both exist, both are named correctly…. @Hans, could we change the conversion so that it checks for inkscape and gives a more sensible warning if inkscape is absent? so what is a robust check ... - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Simple rings with svg
On Thu, 10 May 2012, Ian Lawrence wrote: I read on the wiki that now svg is natively supported. Hmm. No. You need to have inkscape installed (and in your PATH) for svg to pdf conversion to work. FWIW, I cannot find the intermediate file 'm_k_i_v_ChangingField_ILUC.pdf' on my disk either…both graphics files are in the same location, both exist, both are named correctly…. @Hans, could we change the conversion so that it checks for inkscape and gives a more sensible warning if inkscape is absent? 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 ___
[NTG-context] Simple rings with svg
I read on the wiki that now svg is natively supported. Hmm. I am missing a trick here: I try ___ \starttext Hello world \externalfigure[ChangingField_ILUC.pdf \stoptext __ And all goes as expected: I get output with the expected graphic in place But if I try ___ \starttext Hello world \externalfigure[ChangingField_ILUC.svg] \stoptext ___ I get : !LuaTeX error: cannot find image file 'm_k_i_v_ChangingField_ILUC.pdf' ==> Fatal error occurred, no output PDF file produced! Is it time to update context? From the date of the wiki revision it seems not, since I am on ConTeXt ver: 2011.11.29 23:11 MKIV FWIW, I cannot find the intermediate file 'm_k_i_v_ChangingField_ILUC.pdf' on my disk either…both graphics files are in the same location, both exist, both are named correctly…. Thanks Ian ___ 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] Error using Asana Math
On 2012-05-10 Mojca Miklavec wrote: > Are you sure that you have the font installed? No it's not, the font is in the working directory, where it apparently is not recognized. > (./first-setup.sh --fonts=Asana-Math) I didn't know that switch. It works now, sorry for the noise and thanks to both of you. 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 ___
[NTG-context] \mapsto + SimpleSlides
Dear all, I don't get \mapsto to display using SimpleSlides and MkIV. It shows in "normal" MkIV documents, and works in MKII Example below. Thanks for any advice. Matthias \usemodule[simpleslides] [style=BottomSquares, color=blue] \starttext \SlideTitle{Help!} \startformula \text{Mk II}\mapsto \text{Mk IV} \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 ___
Re: [NTG-context] Error using Asana Math
On Thu, May 10, 2012 at 3:12 PM, Marco wrote: > On 2012-05-10 Taco Hoekwater wrote: > >> Try this: >> >> \definetypeface [myfonts] [mm] [math] [asana] [default] > > That gives: > > fonts > defining > unable to define asanamath as > [myfonts-12pt-mm-mb--1] > ! Missing font identifier. > > system > tex > error on line 10 in file t.tex: Missing font > identifier ... Are you sure that you have the font installed? (./first-setup.sh --fonts=Asana-Math or the appropriate package in TL) Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Error using Asana Math
On 2012-05-10 Taco Hoekwater wrote: > Try this: > > \definetypeface [myfonts] [mm] [math] [asana] [default] That gives: fonts > defining > unable to define asanamath as [myfonts-12pt-mm-mb--1] ! Missing font identifier. system > tex > error on line 10 in file t.tex: Missing font identifier ... 1 \starttypescript [myfonts] 2 \definetypeface [myfonts] [rm] [serif] [pagella] [default] 3 \definetypeface [myfonts] [ss] [sans] [heros] [default] 4 \definetypeface [myfonts] [tt] [mono] [cursor][default] 5 \definetypeface [myfonts] [mm] [math] [asana] [default] 6 % modern math works 7 %\definetypeface [myfonts] [mm] [math] [modern] [default] 8 \stoptypescript 9 10 >> \setupbodyfont [myfonts] 11 12 \starttext 13 A \math{x} 14 \stoptext 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 ___
Re: [NTG-context] Error using Asana Math
On 05/10/2012 01:45 PM, Marco wrote: I get the following error: Math error: parameter \Umathquad\displaystyle is not set Example: \starttypescript [myfonts] \definetypeface [myfonts] [rm] [serif] [pagella] [default] \definetypeface [myfonts] [ss] [sans] [heros] [default] \definetypeface [myfonts] [tt] [mono] [cursor][default] \definetypeface [myfonts] [mm] [math] [asanamath] [default] Try this: \definetypeface [myfonts] [mm] [math] [asana] [default] works for me. ___ 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] "standard" for bibliographies
On 05/10/2012 01:35 PM, Thomas A. Schmitz wrote: but I couldn't get my head around it and was just hitting too many limitations And a short follow-up (because Mojca's question made me google this again): one glaring omission to me was the lack of support for cross-references within bibliographical lists (e.g., you have a chapter in a book and want to refer back to item X in your list). This has been asked again and again on the zotero forums. Answer 2007: yes, this is coming real soon now. 2008: Well, it needs support from CSL, and may be a bit longer. 2009-2011: more requests, no reply. 2012, one of the developers: not any time soon... This makes CSL worthless to me, I'm afraid. Reference (there are more threads): http://forums.zotero.org/discussion/3031/book-section-link-to-book-entered-once/ Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Error using Asana Math
I get the following error: Math error: parameter \Umathquad\displaystyle is not set Example: \starttypescript [myfonts] \definetypeface [myfonts] [rm] [serif] [pagella] [default] \definetypeface [myfonts] [ss] [sans] [heros] [default] \definetypeface [myfonts] [tt] [mono] [cursor][default] \definetypeface [myfonts] [mm] [math] [asanamath] [default] % modern math works %\definetypeface [myfonts] [mm] [math] [modern] [default] \stoptypescript \setupbodyfont [myfonts] \starttext A \math{x} \stoptext The error is related with the selection of Asana as math font. Asana Math Version 000.947 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 ___
Re: [NTG-context] "standard" for bibliographies
On 05/10/2012 01:29 PM, Mojca Miklavec wrote: There used to be discussions about some "common standard" for storing bibliographies. I'm testing http://www.mendeley.com/ and would like to export to ConTeXt-friendly database (bibtex export is supported). It seems that for that one would have to use http://citationstyles.org/ so I will try to figure out if "The Citation Style Language" can be used to export data to what is currently required by ConTeXt. But if you are thinking about xml-based format for the future, it might be worth taking a look at the second website. Just a very quick note: CSL has been developed by Bruce D'Arcus, who used to be pretty active on the context list a couple of years ago, so you might be able to get some help there. I tried using zotero for a while and also looked at CSL, but in the end, I gave up. It is based on xml, but I couldn't get my head around it and was just hitting too many limitations. But that may have been me, maybe you have more success! All best Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] "standard" for bibliographies
There used to be discussions about some "common standard" for storing bibliographies. I'm testing http://www.mendeley.com/ and would like to export to ConTeXt-friendly database (bibtex export is supported). It seems that for that one would have to use http://citationstyles.org/ so I will try to figure out if "The Citation Style Language" can be used to export data to what is currently required by ConTeXt. But if you are thinking about xml-based format for the future, it might be worth taking a look at the second website. Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Vertical alignment in nested itemizations
On 10-5-2012 10:57, Marco wrote: On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o. wrote: - seems OK with my not-so-recent MkIV - see the attachment. That also shows the misalignment. It's more visible when you use \showboxes. Give it a run as it is and then add “Foo” after \starttext and give it a second run and compare both. it depends on stretch and shrink on a page ... possible fix in next beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \doifolderversionelse
On 10-5-2012 12:00, Peter Rolf wrote: Hi, I tried to handle some version changes with \doifolderversionelse. Sadly it does not work here. Example: \starttext \doifolderversionelse\contextversion{1010.10.10} {OLDER} {OKAY}% => OLDER \doifolderversionelse\contextversion{2020.20.20} {OLDER} {OKAY}% => OKAY \doifolderversionelse\contextversion{2020} {OLDER} {OKAY}% => OKAY \stoptext Tested with ConTeXt version 2011.11.08 and 2012.05.08 Result is always "older". fixed in next beta - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] bug? margens with duplex
Hi, I am using \ininner and \inouter to set text into the margins. As soon I also use duplex the margins are messed up at every second page. Unluckily the [stack=continue] option does not help. I put an example incl. pictures of the results on my user talk page on the wiki: http://wiki.contextgarden.net/User_talk:Tralalas That way my problem might be easier to understand. Any help is welcome as this problem became a major issue for me. Thanks P. (this is a follow up of the discussion: "empty lines messing with margins (in duplex mode)" from end of last year) mtx-context | current version: 2012.04.26 22:27 ___ 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] \doifolderversionelse
Hi, I tried to handle some version changes with \doifolderversionelse. Sadly it does not work here. Example: \starttext \doifolderversionelse\contextversion{1010.10.10} {OLDER} {OKAY}% => OLDER \doifolderversionelse\contextversion{2020.20.20} {OLDER} {OKAY}% => OKAY \doifolderversionelse\contextversion{2020} {OLDER} {OKAY}% => OKAY \stoptext Tested with ConTeXt version 2011.11.08 and 2012.05.08 Result is always "older". Regards, Peter ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] japanese spaced
Hi, if a paragraph is set to align=block the space between words can be stretched. If eg. a japanese word is mentioned in such a paragraph the space between the japanes characters gets spaced/stretched too (see example attached). This may be right for japanese texts, but it is wrong if the main/surrounding language is not japanese (and thus no additional space between characters is wanted). What is an easy way to avoid this? \definestartstop [Japaned] [commands={\language[jp]\DoNotSpace}]?? Steffen --- example.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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] Font for MetaPost graphics
On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o. wrote: > With the permission, I tried to replace the tag with to > get source and result. > > > ... > > > Unfortunately, the result doesn't appear. The code is MkIV only and the wiki uses MkII. > So, what to do to make the example work? Find someone who has time to implement and administrate a working MkIV wiki solution. > Will it work automatically once the Ctx/MP engine updates on wiki? *If* the engine gets updated someday, it will probably work, yes. 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 ___
Re: [NTG-context] switching to a different math font (with alternatives) in the middle of document
On 10-5-2012 10:25, Mojca Miklavec wrote: On Thu, May 10, 2012 at 10:02 AM, Hans Hagen wrote: On 10-5-2012 02:25, Mojca Miklavec wrote: Hello, I'm just wonderding if there is a way to switch to an OpenType Math font (referred to by name or filename, without any predefined typescript) with some stylistic alternative in the middle of the document, like in the LaTeX example: Sure, when Khaled added alternates to xits we also added support for it to mkiv. \setupbodyfont[xits] But this requires a whole typescript. So there is no way to say Why? It's a dynamic feature. It's just that we use nicer names than ss01 and such. something equivalent to \font\a=Asana-Math.otf \a without the need to create a lfg file& so on? I'm not sure what you mean here. You can use \font directly but it has no benefits as it's not part of a proper math setup then. Anyway, your example with Asana broke a compilation, so at least I was able to realize that I was missing the otf font, whereas yesterday it was simply ignoring the fact that the font was missing and has typeset everything in TeX Gyre I think. I never used Asana. \starttext \unexpanded\def\mathaltcal{\mathalternate{cal}\cal} And how do I know what is an equivalent of StylisticSet=4 in Lucida? Well, that's just ss04 but referring to a stylistic set at the user level is a bad idea as that's not standardized Would this be something like italic = { feature = 'ss01', value = 1, comment = "Mathematical Alternative Italic" }, Indeed. where \mathalternate{italic} works as +ss01, but the ss04 not because it has not been defined in lucida-opentype-math.lfg? Indeed, although of course I could make it honor the fuzzy ss01 etc variants too but no one can guarantee that these ss's always stay the same. In principle we can even define commands automatically if needed but then switching to a different font setup in a document can result in unknown commands. After all, there can be 10 different alternate scripts in one font and zero in another. $ABC$ $\cal ABC$ $\mathalternate{cal}\cal ABC$ $\mathaltcal ABC$ \stoptext Once the dust around math fonts has settled we might end up with some standardization in mkiv with respect to the tags used in the lfg files. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Vertical alignment in nested itemizations
On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o. wrote: > - seems OK with my not-so-recent MkIV - see the attachment. That also shows the misalignment. It's more visible when you use \showboxes. Give it a run as it is and then add “Foo” after \starttext and give it a second run and compare both. \setuppapersize[A4][A4] \setuplayout[ topspace=0.7cm, backspace=0.7cm, leftmargin=0cm, rightmargindistance=0cm, rightmargin=0cm, footer=0cm, header=0cm, width=fit, height=fit, ] \mainlanguage[sv] \enableregime[utf] \starttext \showboxes % uncomment Foo to get proper alignment % Foo \startitemize[n][style=sans] \item \input tufte \item \startitemize[a,packed][left={},right={)},stopper=,style=sans] \item Det sökta \item Bingospjäll \stopitemize \item \input tufte \item \input tufte \item \input tufte \item \input tufte \item \input tufte \item \input tufte Brynja \stopitemize \stoptext 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 ___
Re: [NTG-context] Font for MetaPost graphics
Hello, many thanks Marco for wikifying. On Tue, 08 May 2012 21:57:04 +0200, Marco wrote: Thanks a lot Hans for implementing this. Wikified: http://wiki.contextgarden.net/Command/defineMPinstance http://wiki.contextgarden.net/Command/setupMPinstance Best wishes Marco With the permission, I tried to replace the tag with to get source and result. ... Unfortunately, the result doesn't appear. So, what to do to make the example work? Will it work automatically once the Ctx/MP engine updates on wiki? Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ___ 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] Vertical alignment in nested itemizations
Hello, - seems OK with my not-so-recent MkIV - see the attachment. Lukas On Thu, 10 May 2012 10:08:57 +0200, Hans Hagen wrote: It looks ok in mkii and mkiv ... can someone confirm the problem? Hans -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 t-Its.log Description: Binary data t-Its.mkiv Description: Binary data t-Its.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / 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] Vertical alignment in nested itemizations
On Thu, May 10, 2012 at 10:08 AM, Hans Hagen wrote: > On 10-5-2012 09:30, Mikael P. Sundqvist wrote: >> In this example the a) is pushed a bit up instead of down, but I guess >> the reason is the same. > > > It looks ok in mkii and mkiv ... can someone confirm the problem? > > Hans Hm, maybe. In the second startitemize a) looks a bit misaligned with 2). \setuppapersize[A4][A4] \setuplayout[ topspace=0.7cm, backspace=0.7cm, leftmargin=0cm, rightmargindistance=0cm, rightmargin=0cm, footer=0cm, header=0cm, width=fit, height=fit, ] \mainlanguage[sv] %\enableregime[utf] \starttext \startitemize[n][style=sans] \item \hbox to0sp{\hss\vrule width 3cm height 0.1pt depth 0sp}\kern-0.25em\input tufte \item \startitemize[a,packed][left={},right={)},stopper=,style=sans] \item \hbox to0sp{\hss\vrule width 3cm height 0.1pt depth 0sp}\kern-0.25emDet sökta \item Bingospjäll \stopitemize \item \hbox to0sp{\hss\vrule width 3cm height 0.1pt depth 0sp}\kern-0.25em\input tufte \item \input tufte \item \input tufte \item \input tufte \item \input tufte \item \input tufte Brynja \stopitemize \stoptext -- luigi ___ 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] switching to a different math font (with alternatives) in the middle of document
On Thu, May 10, 2012 at 10:02 AM, Hans Hagen wrote: > On 10-5-2012 02:25, Mojca Miklavec wrote: >> >> Hello, >> >> I'm just wonderding if there is a way to switch to an OpenType Math >> font (referred to by name or filename, without any predefined >> typescript) with some stylistic alternative in the middle of the >> document, like in the LaTeX example: > > > Sure, when Khaled added alternates to xits we also added support for it to > mkiv. > > \setupbodyfont[xits] But this requires a whole typescript. So there is no way to say something equivalent to \font\a=Asana-Math.otf \a without the need to create a lfg file & so on? Anyway, your example with Asana broke a compilation, so at least I was able to realize that I was missing the otf font, whereas yesterday it was simply ignoring the fact that the font was missing and has typeset everything in TeX Gyre I think. > \starttext > > \unexpanded\def\mathaltcal{\mathalternate{cal}\cal} And how do I know what is an equivalent of StylisticSet=4 in Lucida? Would this be something like italic = { feature = 'ss01', value = 1, comment = "Mathematical Alternative Italic" }, where \mathalternate{italic} works as +ss01, but the ss04 not because it has not been defined in lucida-opentype-math.lfg? > $ABC$ > $\cal ABC$ > $\mathalternate{cal}\cal ABC$ > $\mathaltcal ABC$ > > \stoptext Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] switching to a different math font (with alternatives) in the middle of document
On Thu, 10 May 2012 10:05:49 +0200 Hans Hagen wrote: > On 10-5-2012 02:29, Mojca Miklavec wrote: > > > PS: I forgot to send "a minimal example". Here it is :) > > > > http://meeting.contextgarden.net/2011/talks/day3_05_ulrik_opentype/Samples/math-test-alphabet.tex > > > > http://meeting.contextgarden.net/2011/talks/day3_05_ulrik_opentype/Samples/math-test-alphabet.pdf > > my editor cannot open minimal examples with more than 10 lines > > Hans You must not be using the same editor (and TeX) as Mojca :) Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Vertical alignment in nested itemizations
On 10-5-2012 09:30, Mikael P. Sundqvist wrote: On Thu, May 10, 2012 at 9:10 AM, Mikael P. Sundqvist wrote: Dear list, My question is: Can I somehow force an "inner" itemization to begin on the same line as the outer one? Background: I am writing solutions to an exam and use nested itemizations, as in the test file \starttext \startitemize[n][style=sans] \item Bla bla \item \startitemize[a,packed][left={},right={)},stopper=,style=sans] \item Det sökta \stopitemize \stopitemize \stoptext Now the problem is that the a) does not stay on the same line as the 2., but is moved down half a line (this differs depending on the amount of text in the file). In the example code below this problem does not happen, but it happens in my file (which contains solutions to an exam not yet given, so I cannot show it to you). However, please see the attached png file to see what it looks like in my original file. Best regards, Mikael Dear list, here is a complete example that shows the problem: \setuppapersize[A4][A4] \setuplayout[ topspace=0.7cm, backspace=0.7cm, leftmargin=0cm, rightmargindistance=0cm, rightmargin=0cm, footer=0cm, header=0cm, width=fit, height=fit, ] \mainlanguage[sv] \enableregime[utf] \starttext \startitemize[n][style=sans] \item \input tufte \item \startitemize[a,packed][left={},right={)},stopper=,style=sans] \item Det sökta \item Bingospjäll \stopitemize \item \input tufte \item \input tufte \item \input tufte \item \input tufte \item \input tufte \item \input tufte Brynja \stopitemize \stoptext In this example the a) is pushed a bit up instead of down, but I guess the reason is the same. It looks ok in mkii and mkiv ... can someone confirm the problem? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] switching to a different math font (with alternatives) in the middle of document
On Thu, May 10, 2012 at 10:05 AM, Hans Hagen wrote: > > my editor cannot open latex >minimal examples with more than 10 lines -- luigi ___ 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] switching to a different math font (with alternatives) in the middle of document
On 10-5-2012 02:29, Mojca Miklavec wrote: PS: I forgot to send "a minimal example". Here it is :) http://meeting.contextgarden.net/2011/talks/day3_05_ulrik_opentype/Samples/math-test-alphabet.tex http://meeting.contextgarden.net/2011/talks/day3_05_ulrik_opentype/Samples/math-test-alphabet.pdf my editor cannot open minimal examples with more than 10 lines Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] switching to a different math font (with alternatives) in the middle of document
On 10-5-2012 02:25, Mojca Miklavec wrote: Hello, I'm just wonderding if there is a way to switch to an OpenType Math font (referred to by name or filename, without any predefined typescript) with some stylistic alternative in the middle of the document, like in the LaTeX example: Sure, when Khaled added alternates to xits we also added support for it to mkiv. \setupbodyfont[xits] \starttext \unexpanded\def\mathaltcal{\mathalternate{cal}\cal} $ABC$ $\cal ABC$ $\mathalternate{cal}\cal ABC$ $\mathaltcal ABC$ \stoptext As this can differ per font, we use symbolic names, and these are defined in the lfg files. This functionality is there already for some time but probably not wikified (there are examples in the test suite). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Split \startalign content on more pages
On Wed, May 9, 2012 at 1:44 PM, elgo...@libero.it wrote: > And by the way, is there a clever way to write a block of text under some > conditions as shown in the example above other than tex.print(".") which > forces to escape every command? > Thank you very much. > Bye \starttext \startluacode context.starttabulate{"|l|r|l"} context("\\NC Hello\\vrule width 1in height 1pt depth 1pt\\NC World \\NR") context.NC() context("Hello\\vrule width 1in height 1pt depth 1pt") context.NC() context("%s", "World") context.NR() context.NC() context("Hello") context.vrule(72.27*2^16, 2^16,2^16) context.NC() context("%s", "World") context.NR() context.stoptabulate() \stopluacode \stoptext -- luigi ___ 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] Units or px
On 10-5-2012 00:39, Kip Warner wrote: Hey list, ConTeXt 2012.05.08 13:45 reports that the units module is deprecated and to use the px module in its place. Is it telling the truth or is this a px? the message is: The units module is obsolete because functionality is built into the core. harmless warning? rather harmless indeed, just a warning Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Vertical alignment in nested itemizations
On Thu, May 10, 2012 at 9:10 AM, Mikael P. Sundqvist wrote: > Dear list, > > My question is: Can I somehow force an "inner" itemization to begin on > the same line as the outer one? > > Background: > > I am writing solutions to an exam and use nested itemizations, as in > the test file > > \starttext > \startitemize[n][style=sans] > \item Bla bla > \item > \startitemize[a,packed][left={},right={)},stopper=,style=sans] > \item Det sökta > \stopitemize > \stopitemize > \stoptext > > Now the problem is that the a) does not stay on the same line as the > 2., but is moved down half a line (this differs depending on the > amount of text in the file). > > In the example code below this problem does not happen, but it happens > in my file (which contains solutions to an exam not yet given, so I > cannot show it to you). > > However, please see the attached png file to see what it looks like in > my original file. > > Best regards, Mikael Dear list, here is a complete example that shows the problem: \setuppapersize[A4][A4] \setuplayout[ topspace=0.7cm, backspace=0.7cm, leftmargin=0cm, rightmargindistance=0cm, rightmargin=0cm, footer=0cm, header=0cm, width=fit, height=fit, ] \mainlanguage[sv] \enableregime[utf] \starttext \startitemize[n][style=sans] \item \input tufte \item \startitemize[a,packed][left={},right={)},stopper=,style=sans] \item Det sökta \item Bingospjäll \stopitemize \item \input tufte \item \input tufte \item \input tufte \item \input tufte \item \input tufte \item \input tufte Brynja \stopitemize \stoptext In this example the a) is pushed a bit up instead of down, but I guess the reason is the same. Best regards, Mikael ___ 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] Split \startalign content on more pages
Hello, I'm a new user of context (and of this mailing list). I'm facing some problems in splitting the \startalign ... \stopalign content on more pages. This is the formulas: \setupformulas[align=right] \startformula \startalign[n=3, align={left, right, left}] \NC \text{dove} \quad \NC Y \NC = min \left({{e_{yfitest}} \over {R_{fi}}}; 0.04 \right) = min \left({{\sbc{e_yfitest}} \over {\sba{R_fi}}}; 0.04 \right) =\sbd{Y} \NR \NC \NC Z \NC = log_{10} \left({1 \over Y} \right) = log_{10} \left({1 \over \sbd{Y}} \right) = \sbc{Z} \NR \NC \NC X \NC = {{r_{fi}} \over {D_{ifi}}} = {{\sba{r_fi}} \over {\sba {D_ifi}}} = \sbd{X} \NR \NC \NC N \NC = 1.006 - {1 \over {6.2 + \left(90 \cdot Y \right)^4}} = 1.006 - {1 \over {6.2 + \left(90 \cdot \sbd{Y} \right)^4}} = \sbd{N} \NR \startluacode if X==0.06 then tex.print("\\NC \\NC \\beta_{0.06} \\NC = N \\cdot \\left(-0.3635 \\cdot Z^3 + 2.2124 \\cdot Z^2 - 3.2937 \\cdot Z + 1.8873 \\right) = \\NR") tex.print("\\NC \\NC \\NC = N \\cdot \\left(-0.3635 \\cdot \\sbc{Z}^3 + 2.2124 \\cdot \\sbc{Z}^2 - 3.2937 \\cdot \\sbc{Z} + 1.8873 \\right) = \\sbc {beta006} \\NR") tex.print("\\NC \\NC \\beta \\NC =\\beta_{0.06}=\\sbc{beta006} \\NR") elseif X>0.06 and X<0.1 then tex.print("\\NC \\NC \\beta_{0.06} \\NC = N \\cdot \\left(-0.3635 \\cdot Z^3 + 2.2124 \\cdot Z^2 - 3.2937 \\cdot Z + 1.8873 \\right) = \\NR") tex.print("\\NC \\NC \\NC = N \\cdot \\left(-0.3635 \\cdot \\sbc{Z}^3 + 2.2124 \\cdot \\sbc{Z}^2 - 3.2937 \\cdot \\sbc{Z} + 1.8873 \\right) = \\sbc {beta006} \\NR") tex.print("\\NC \\NC \\beta_{0.1} \\NC = N \\cdot \\left(-0.1833 \\cdot Z^3 + 1.0383 \\cdot Z^2 - 1.2943 \\cdot Z + 0.837 \\right) = \\NR") tex.print("\\NC \\NC \\NC = N \\cdot \\left(-0.1833 \\cdot \\sbc{Z}^3 + 1.0383 \\cdot \\sbc{Z}^2 - 1.2943 \\cdot \\sbc{Z} + 0.837 \\right) = \\sbc {beta01} \\NR") tex.print("\\NC \\NC \\beta \\NC = 25 \\cdot \\left[ \\left(0.1 - X \\right) \\cdot \\beta_{0.06} + \\left(X - 0.06 \\right) \\cdot \\beta_{0.1} \\right]= \\NR") tex.print("\\NC \\NC\\NC = 25 \\cdot \\left[ \\left(0.1 - \\sbd{X} \\right) \\cdot \\sbc{beta006} + \\left(\\sbd{X} - 0.06 \\right) \\cdot \\sbc {beta01} \\right]=\\sbd{beta} \\NR") elseif X==0.1 then tex.print("\\NC \\NC \\beta_{0.1} \\NC = N \\cdot \\left(-0.1833 \\cdot Z^3 + 1.0383 \\cdot Z^2 - 1.2943 \\cdot Z + 0.837 \\right) = \\NR") tex.print("\\NC \\NC \\NC = N \\cdot \\left(-0.1833 \\cdot \\sbc{Z}^3 + 1.0383 \\cdot \\sbc{Z}^2 - 1.2943 \\cdot \\sbc{Z} + 0.837 \\right) = \\sbc {beta01} \\NR") tex.print("\\NC \\NC \\beta \\NC =\\beta_{0.1}=\\sbc{beta01} \\NR") elseif X>0.1 and X<0.2 then tex.print("\\NC \\NC \\beta_{0.1} \\NC = N \\cdot \\left(-0.1833 \\cdot Z^3 + 1.0383 \\cdot Z^2 - 1.2943 \\cdot Z + 0.837 \\right) = \\NR") tex.print("\\NC \\NC \\NC = N \\cdot \\left(-0.1833 \\cdot \\sbc{Z}^3 + 1.0383 \\cdot \\sbc{Z}^2 - 1.2943 \\cdot \\sbc{Z} + 0.837 \\right) = \\sbc {beta01} \\NR") tex.print("\\NC \\NC \\beta_{0.2} \\NC = max \\left[ 0.95 \\cdot \\left(0.56 - 1.94 \\cdot Y - 82.5 \\cdot Y^2 \\right); 0.5 \\right] \\NR") tex.print("\\NC \\NC \\NC = max \\left[ 0.95 \\cdot \\left(0.56 - 1.94 \\cdot \\sbd{Y} - 82.5 \\cdot \\sbd{Y}^2 \\right); 0.5 \\right] = \\sbd {beta02} \\NR") tex.print("\\NC \\NC \\beta \\NC = 10 \\cdot \\left[ \\left(0.2 - X \\right) \\cdot \\beta_{0.1} + \\left(X - 0.1 \\right) \\cdot \\beta_{0.2} \\right]= \\NR") tex.print("\\NC \\NC\\NC = 10 \\cdot \\left[ \\left(0.2 - \\sbd{X} \\right) \\cdot \\sbc{beta01} + \\left(\\sbd{X} - 0.1 \\right) \\cdot \\sbc {beta02} \\right]=\\sbd{beta} \\NR") elseif X==0.2 then tex.print("\\NC \\NC \\beta_{0.2} \\NC = max \\left[ 0.95 \\cdot \\left(0.56 - 1.94 \\cdot Y - 82.5 \\cdot Y^2 \\right); 0.5 \\right] \\NR") tex.print("\\NC \\NC \\NC = max \\left[ 0.95 \\cdot \\left(0.56 - 1.94 \\cdot \\sbd{Y} - 82.5 \\cdot \\sbd{Y}^2 \\right); 0.5 \\right] = \\sbd {beta02} \\NR") tex.print("\\NC \\NC \\beta \\NC =\\beta_{0.2}=\\sbd{beta02} \\NR") end \stopluacode \stopalign \stopformula \setupformulas[align=middle] I have already tried to insert split=yes in the options of the align environment without success. I have read in "Using \startalign and friends" which is a document dated 2006 that the splitting capability of \startalign is broken. Is it still so? And by the way, is there a clever way to write a block of text under some conditions as shown in the example above other than tex.print(".") which forces to escape every command? Thank you very much. Bye
[NTG-context] Vertical alignment in nested itemizations
Dear list, My question is: Can I somehow force an "inner" itemization to begin on the same line as the outer one? Background: I am writing solutions to an exam and use nested itemizations, as in the test file \starttext \startitemize[n][style=sans] \item Bla bla \item \startitemize[a,packed][left={},right={)},stopper=,style=sans] \item Det sökta \stopitemize \stopitemize \stoptext Now the problem is that the a) does not stay on the same line as the 2., but is moved down half a line (this differs depending on the amount of text in the file). In the example code below this problem does not happen, but it happens in my file (which contains solutions to an exam not yet given, so I cannot show it to you). However, please see the attached png file to see what it looks like in my original file. Best regards, Mikael <>___ 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 ___