[NTG-context] Alignment of arrows and spacing of indices
Hi, in the following document, \starttext foo $a \longrightarrow_\sigma b$ bar. \stoptext the arrow doesn't look right and the spacing of the \sigma is wrong. Latest beta (2011.04.13). Regards, Mathieu ___ 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] \cdots not displayed in latest beta
Hi, in the latest beta (211.04.13), the cdots in the following, display as a blank: \starttext foo $x \cdots y$ bar. \stoptext ldots, however, work fine. Regards, Mathieu ___ 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] Latest betas break tikz matrix
Hi all, just as a followup and for the mailing list archives, the solution is to use both Aditya's suggestion to turn on \donknuthmode, as well replacing the & signs with their interpretations, namely \pgfmatrixnextcell. Thank you Aditya for the suggestion. Regards, Mathieu On Wed, Feb 23, 2011 at 11:38 AM, Mathieu Boespflug <0xbadc...@gmail.com> wrote: > Hi Aditya, > >> Could be due to the change in catcode of &. Try adding \donknuthmode. > > It doesn't make any difference if I put the \donknuthmode just before > \starttikzpicture. But If I put it before the \usemodule[tikz], then I > get another error: > > Package pgfbasematrix: Error! Single ampersand used with wrong catcode. > ! Missing number, treated as zero. > > system > tex > error on line 12 in file testcontext.tex: > Missing number, treated as zero ... > > 2 \usemodule[tikz] > 3 \usetikzlibrary{matrix} > 4 > 5 \starttext > 6 \tikzstyle{description}=[fill=white,inner sep=2pt] > 7 \starttikzpicture > 8 \matrix(m)[matrix of math nodes, > 9 row sep=3em, column sep=3em, > 10 text height=1.5ex, text depth=0.25ex] > 11 {x&y\\ > 12 >> z&u}; > 13 \path[->] > 14 (m-1-1) edge node[description] {$*$} (m-1-2) > 15 edge node[description] {$*$} (m-2-1) > 16 (m-1-2) edge[dashed] node[description] {$*$} (m-2-2) > 17 (m-2-1) edge[dashed] node[description] {$*$} (m-2-2); > 18 \stoptikzpicture > 19 \nonknuthmode > 20 \stoptext > 21 > > > \pgf@matrix@column@sep@2 > \pgf@matrix@endcell ...ixcurrentcolumn \endcsname > \relax \advance \pgf@picmi... > \pgf@matrix@endcell > }\endtemplate > \pgf@matrix@no@eom@found ->\cr > \noalign {\vskip \pgf@y \ifpgf@matrix@fixed \... > > z > l.12 z > &u}; > ___ 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] Latest betas break tikz matrix
Hi Aditya, > Could be due to the change in catcode of &. Try adding \donknuthmode. It doesn't make any difference if I put the \donknuthmode just before \starttikzpicture. But If I put it before the \usemodule[tikz], then I get another error: Package pgfbasematrix: Error! Single ampersand used with wrong catcode. ! Missing number, treated as zero. system > tex > error on line 12 in file testcontext.tex: Missing number, treated as zero ... 2 \usemodule[tikz] 3 \usetikzlibrary{matrix} 4 5 \starttext 6 \tikzstyle{description}=[fill=white,inner sep=2pt] 7 \starttikzpicture 8 \matrix(m)[matrix of math nodes, 9 row sep=3em, column sep=3em, 10 text height=1.5ex, text depth=0.25ex] 11{x&y\\ 12 >> z&u}; 13 \path[->] 14 (m-1-1) edge node[description] {$*$} (m-1-2) 15 edge node[description] {$*$} (m-2-1) 16 (m-1-2) edge[dashed] node[description] {$*$} (m-2-2) 17 (m-2-1) edge[dashed] node[description] {$*$} (m-2-2); 18 \stoptikzpicture 19 \nonknuthmode 20 \stoptext 21 \pgf@matrix@column@sep@2 \pgf@matrix@endcell ...ixcurrentcolumn \endcsname \relax \advance \pgf@picmi... \pgf@matrix@endcell }\endtemplate \pgf@matrix@no@eom@found ->\cr \noalign {\vskip \pgf@y \ifpgf@matrix@fixed \... z l.12 z &u}; ___ 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] Latest betas break tikz matrix
Hi all, This code used to compile in versions of context prior to January, though I can't quite pin down the versions. \usemodule[t-tikz] \usetikzlibrary{matrix} \starttext \tikzstyle{description}=[fill=white,inner sep=2pt] \starttikzpicture \matrix(m)[matrix of math nodes, row sep=3em, column sep=3em, text height=1.5ex, text depth=0.25ex] {x&y\\ z&u\\}; \path[->] (m-1-1) edge node[description] {$*$} (m-1-2) edge node[description] {$*$} (m-2-1) (m-1-2) edge[dashed] node[description] {$*$} (m-2-2) (m-2-1) edge[dashed] node[description] {$*$} (m-2-2); \stoptikzpicture \stoptext (compilation error at the bottom of this email) I thought at first that this was a luatex problem, but I've ruled that out with the following plain tex file, which compiles just fine in plain luatex and in plain pdftex: \input tikz.tex \usetikzlibrary{matrix} \tikzstyle{description}=[fill=white,inner sep=2pt] \tikzpicture \matrix(m)[matrix of math nodes, row sep=3em, column sep=3em, text height=1.5ex, text depth=0.25ex] {x&y\\ z&u\\}; \path[->] (m-1-1) edge node[description] {$*$} (m-1-2) edge node[description] {$*$} (m-2-1) (m-1-2) edge[dashed] node[description] {$*$} (m-2-2) (m-2-1) edge[dashed] node[description] {$*$} (m-2-2); \endtikzpicture \end I have no idea what the error is telling me and what could be causing it. Any ideas? Many thanks, Mathieu Compile log: ! Only one # is allowed per tab. system > tex > error on line 10 in file testcontext.tex: Only one # is allowed per tab ... 1 \usemodule[t-tikz] 2 \usetikzlibrary{matrix} 3 4 \starttext 5 \tikzstyle{description}=[fill=white,inner sep=2pt] 6 \starttikzpicture 7 \matrix(m)[matrix of math nodes, 8 row sep=3em, column sep=3em, 9 text height=1.5ex, text depth=0.25ex] 10 >> {x&y\\ 11 z&u\\}; 12 \path[->] 13 (m-1-1) edge node[description] {$*$} (m-1-2) 14 edge node[description] {$*$} (m-2-1) 15 (m-1-2) edge[dashed] node[description] {$*$} (m-2-2) 16 (m-2-1) edge[dashed] node[description] {$*$} (m-2-2); 17 \stoptikzpicture 18 \stoptext 19 \pgf@matrix@cont ...ell ##\pgf@matrix@endcell }# \pgf@matrix@padding &&\pgf... l.10{ x&y\\ ? ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bad interaction between new interpretation of underscore and modules
Hi Wolfgang, thank you for the explanation and the solution. Best, Mathieu On Fri, Jan 14, 2011 at 10:32 AM, Wolfgang Schuster wrote: > > Am 14.01.2011 um 10:15 schrieb Mathieu Boespflug: > >> Thank you for the solution, Wolfgang. But it seems rather painful to >> have to replace every occurrence of _ in my definitions module with >> the very verbose \normalsubscript just because it's a module. The new >> default catcode for _ introduces extra difficulty when defining math >> macros. Would it be possible to at least have a macro to revert to the >> old behaviour? Also, I'm still stumped as to why modules make any >> difference here. I would have expected this problem to also show up if >> the definitions were made inline at the top of the source file for the >> document. > > When you write a module you put \unprotect and \protect at the begin and > end of the file because they make @, !, ? and _ to a normal letter like abc > which can be used in macros. When you load a file with \usemodule or > \environment this isn’t necessary because context adds already calls > both commands when the file is opened and closed for reading and this > mechanism is used even if you aren’t aware of this. > > PS For \environment this is only true when you use it in a document > with \starttext or when you write it before \startproduct, \startcomponent > etc. > > PPS You can abuse \nonknuthmode to make your module to work > > \startbuffer[definitions] > \pushcatcodes\nonknuthmode % \startnonknuthmode > \def\lambdax{\lambda_x} > \popcatcodes % \stopnonknuthmode > \stopbuffer > > \savebuffer[definitions][p-definitions.tex] > > \startbuffer[more] > \def\morex{\more_x} > \stopbuffer > > \savebuffer[more][p-more.tex] > > \usemodule[definitions,more] > > \starttext > blah $\lambdax$ blah. \morex > \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] Bad interaction between new interpretation of underscore and modules
Thank you for the solution, Wolfgang. But it seems rather painful to have to replace every occurrence of _ in my definitions module with the very verbose \normalsubscript just because it's a module. The new default catcode for _ introduces extra difficulty when defining math macros. Would it be possible to at least have a macro to revert to the old behaviour? Also, I'm still stumped as to why modules make any difference here. I would have expected this problem to also show up if the definitions were made inline at the top of the source file for the document. All the best, Mathieu On Thu, Jan 13, 2011 at 10:50 PM, Wolfgang Schuster wrote: > > Am 13.01.2011 um 17:18 schrieb Mathieu Boespflug: > >> Hi all, >> >> today's beta introduced a really strange problem. Consider two source files: >> >> definitions.tex: >> \startmodule[definitions] >> \def\lambdax{\lambda_x} >> \stopmodule[definitions] >> >> main.tex: >> \usemodule[definitions] >> \starttext >> blah $\lambdax$ blah. >> \stoptext >> >> This results in the following compile error: >> >> ! Undefined control sequence. >> \lambdax ->\lambda_x >> >> l.5 blah $\lambdax >> $ blah. >> ? >> >> However, if you change "\usemodule[definitions]" into "\input >> definitions" instead, then there is no compile error! My understanding >> is that the underscore is a valid character for macro names now >> outside of math mode, which is what is causing the problem. But I >> really don't understand what magic is going on in the modules code to >> trigger this. >> >> I would be very interested in an explanation of what is going on. > > You need \normalsubscript in your module. You define a command and > in this case it doesn’t matter that you plan to use it in math mode, > the _ is now a normal letter like “a” and this won’t change when you > call \lambdax in your document. > > Write > > \def\lambdax{\lambda\normalsubscript x} > > and it will work again. > > 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] Skew not working in latest beta
Hi Hans, > It's related to \Umathradicalrule* not being set. This has never been the > case but at some point it worked ok and Taco/I are not going think too long > about when and where something changed along the route. I'll make a new > beta. that does fix the output of my document. Many thanks! Mathieu ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bad interaction between new interpretation of underscore and modules
Hi all, today's beta introduced a really strange problem. Consider two source files: definitions.tex: \startmodule[definitions] \def\lambdax{\lambda_x} \stopmodule[definitions] main.tex: \usemodule[definitions] \starttext blah $\lambdax$ blah. \stoptext This results in the following compile error: ! Undefined control sequence. \lambdax ->\lambda_x l.5 blah $\lambdax $ blah. ? However, if you change "\usemodule[definitions]" into "\input definitions" instead, then there is no compile error! My understanding is that the underscore is a valid character for macro names now outside of math mode, which is what is causing the problem. But I really don't understand what magic is going on in the modules code to trigger this. I would be very interested in an explanation of what is going on. Many thanks, Mathieu ___ 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] Interaction messing with footnote positioning
Hi all, consider the following document: \setupinteraction[state=start] \starttext {\definedfont[Regular at 30pt] blah\footnote{hello}} \stoptext and compare it with the result for the same document where the first line is commented out. The footnote number isn't aligned the same. Shouldn't setupinteraction have no impact this sort of thing? Best, Mathieu ___ 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] Skew not working in latest beta
It seems this is a regression of either ConTeXt or LuaTeX. I have a PDF that I generated on December 9th that doesn't have this problem. According to the PDF metadata, the versions used to create it were: Producer: LuaTeX-0.64.0 Creator: ConTeXt - 2010.11.27 14:27 I also have a PDF from the same source created end of December with the following versions, that features the bug: ConTEXt version 2010.12.21 10 :50 on LuaTeX version 0.65.0. Could it be a LuaTeX 0.65 regression? Best, Mathieu On Wed, Jan 12, 2011 at 3:37 PM, Hans Hagen wrote: > On 12-1-2011 2:30, Mathieu Boespflug wrote: >> >> \starttext >> >> hello $\hat x \hat A$. >> \stoptext > > I have no clue ... does it also concern a different luatex binary? > > 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] Skew not working in latest beta
Hi all, consider the following short document \starttext hello $\hat x \hat A$. \stoptext In the latest beta, and in a December beta as well, the hat above the capital A is misplaced. IIRC the placement used to be correct, back in november. Any ideas as to a workaround in the meantime ? Mathieu ___ 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] conference type broken in bibliography module [was: Bibliography contains references not cited in the text]
On Fri, Nov 26, 2010 at 1:07 PM, Mathieu Boespflug wrote: > [...] > Also, there is another bug in the bib module, which i find very > strange. If we augment the OP's .bib file with two more entries, and > cite those, then one of them does *not* appear in the bibliography > despite being cited. It also creates a big blank in the bibliography. > Here's a minimal example. bib file attached. In my real thesis > bibliography (over 200 entries), there are several such entries > missing and several big blanks of varying sizes in the Bibliography > section. To follow up on this: after further investigation it seems the bibtex @conference entry type is broken. All such entries in my bibtex database appear as blanks in the bibliography. Below is a minimal example with an attached bibtex database. Any idea how to solve this or where to look? \setuppapersize[letter][letter] \setuplayout[backspace=1.25in, width=middle,topspace=0.75in,headerheight=0.5in,bottomspace=0.75in,footerheight=0.5in] \setupwhitespace[medium] \setuppagenumbering[location=footer] \setuphead[section][textstyle=bold, numberstyle=bold, continue=yes] \setupbibtex[database=references,sort=author] \setuppublications[refcommand=authoryear,sorttype=bbl] \setupcite[authoryears][left=,right=] \starttext \section{Main Body} This file is for testing whether the bibliography works. There seems to be some problem. Let's cite a conference article: \cite[reynolds:defints1972]. And another conference article: \cite[maranget:cpm]. Let's cite a journal article: \cite[reynolds:defints]. Let's cite a book: \cite[gordon:holbook]. Let's cite something unpublished: \cite[geuvers:gammainf]. Let's cite a miscellaneous item: \cite[coq]. \section{references} \placepublications \stoptext @misc{coq, title={{The {\sc Coq} proof assistant}}, key={Coq}, note={http://coq.inria.fr} } @conference{reynolds:defints1972, author= {John C. Reynolds}, title = {Definitional interpreters for higher-order programming languages}, booktitle = {{Proceedings of the ACM Annual Conference}}, year = {1972}, month = {august}, pages = {717--740}, volume= {2}, publisher = {ACM, New York}, note = {Republié en tant que \cite[reynolds:defints].} } @article{reynolds:defints, title={{Definitional interpreters for higher-order programming languages}}, author={Reynolds, J.C.}, journal={Higher-order and symbolic computation}, volume={11}, number={4}, pages={363--397}, issn={1388-3690}, year={1998}, publisher={Springer} } @book{gordon:holbook, title={{Introduction to HOL: A theorem proving environment for higher order logic}}, author={Gordon, M. and Melham, T.}, year={1993}, publisher={Cambridge University Press New York, NY, USA} } @unpublished{geuvers:gammainf, author = {Herman Geuvers and James McKinna and Freek Wiedijk}, title = {{Pure Type Systems without Explicit Contexts}}, month = {january}, year = {2009}, note = {Submitted} } @conference{maranget:cpm, title={{Compiling pattern matching to good decision trees}}, author={Maranget, L.}, booktitle={Proceedings of the 2008 ACM SIGPLAN workshop on ML}, pages={35--46}, year={2008}, organization={ACM New York, NY, USA} } ___ 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] Bibliography contains references not cited in the text
>> No, indeed they were not sorted. But I saw that the the .bbl file was >> sorted. I then found that when you add sorttype=bbl as an argument to >> \setuppublications (so, in your example use >> \setuppublications[refcommand=authoryear,sorttype=bbl]) and use >> \placepublications[] you will get the cited publications sorted >> alphabetically by author name. >> >> I later saw that this solution was already given by Aditya Mahajan in >> ntg-context Digest, Vol 76, Issue 141 Date: 29 oktober 2010, Message >> 4, Subject: sorttype for bibtex > > On top of that, this is also documented in the bib module's manual. Except that doesn't seem to work with the bibliography being placed using \placepublications in its own chapter in the backmatter. A similar issue was reported in 2006 http://www.mail-archive.com/ntg-context@ntg.nl/msg15442.html but the solution given then involved writing \placepublications[criterium=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] \underbrace broken in latest beta
Ok, that works. Thanks! On Sat, Nov 27, 2010 at 3:22 PM, Hans Hagen wrote: > On 27-11-2010 3:13, Mathieu Boespflug wrote: >> >> Hi Hans, >> >> thank you for the quick response. Unfortunately, your fix below >> doesn't seem to work. Or perhaps I need to regenerate some files? I >> ran context --generate and context --make after your instructions but >> I still get the same error. My context version is > > weird, for the moment comment the line in math-ini.mkiv and run > > context --make > > - > 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] \underbrace broken in latest beta
Hi Hans, thank you for the quick response. Unfortunately, your fix below doesn't seem to work. Or perhaps I need to regenerate some files? I ran context --generate and context --make after your instructions but I still get the same error. My context version is: ConTeXt ver: 2010.11.27 14:27 MKIV fmt: 2010.11.27 int: english/english Thanks, Mathieu On Sat, Nov 27, 2010 at 2:27 PM, Hans Hagen wrote: > On 27-11-2010 2:15, Mathieu Boespflug wrote: >> >> Hi, >> >> I upgraded to latest beta and something that used to work before >> doesn't anymore. Here's a minimal example: > > at the end of math-ini.mkiv patch: > > \ifnum\luatexversion<65 > \def\Umathbotaccent{\Umathaccent bottom } > \fi > > it's a prelude to a luatex update > > - > 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 > ___ > ___ 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] \underbrace broken in latest beta
Hi, I upgraded to latest beta and something that used to work before doesn't anymore. Here's a minimal example: \starttext Here's an underbrace : \startformula \underbrace{X \cdots X}_{n \text{ times}} \stopformula \stoptext The error I get is: ! Missing number, treated as zero. b \Umathbotaccent ->\Umathaccent b ottom \normalunderbrace ->\Umathbotaccent 0 "0 "23DF \mathopwithlimits #1#2->\mathop {#1 {#2}}\limits l.5 \underbrace{X \cdots X} _{n \text{ times}} All the best, Mathieu ___ 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] Bibliography contains references not cited in the text
Hi, >> I am having trouble with the bib module. The bibliography section of >> my article contains references that I have not cited in the text. >> These are in my .bib file, but it seems to me that references that >> were not cited in the text were ignored when constructing the >> bibliography. > > Hi, > When you add > > \nocite[Aucremanne2005] > \nocite[Fabiani2007] > > > before \section{References} > these non cited publications will show up in your bibliography. (At > least it does here with Minimals of 24 november) ... which is the way it should be, no? The problem of the original poster is that these entries should not appear in the bibliography despite being in the .bib file, because they aren't mentionned at all in the main text. I can confirm this issue. I have run into myself in typesetting my thesis. Taco, if it can help you track down the bug, IIRC, this problem appeared sometime around beginning of October, though the bib module of previous versions of mkIV had other bugs that made it unusable (such as sorting by author not working). Also, there is another bug in the bib module, which i find very strange. If we augment the OP's .bib file with two more entries, and cite those, then one of them does *not* appear in the bibliography despite being cited. It also creates a big blank in the bibliography. Here's a minimal example. bib file attached. In my real thesis bibliography (over 200 entries), there are several such entries missing and several big blanks of varying sizes in the Bibliography section. Regards, Mathieu \setuppapersize[letter][letter] \setuplayout[backspace=1.25in, width=middle,topspace=0.75in,headerheight=0.5in,bottomspace=0.75in,footerheight=0.5in] \setupwhitespace[medium] \setuppagenumbering[location=footer] \setuphead[section][textstyle=bold, numberstyle=bold, continue=yes] \usemodule[bib] \setupbibtex[database=templib] \setuppublications[refcommand=authoryear] \setupcite[authoryears][left=,right=] \starttext \section{Main Body} This file is for testing whether the bibliography works. There seems to be some problem. Let us first cite \cite[Aghion1991], then we will cite \cite[authoryears][Trefler1993]. In the new para we cite: \cite[Segal2003] Now let's cite two more articles: the old \cite[reynolds:defints1972] and the new \cite[reynolds:defints]. \section{References} \placepublications[criterium=all] \stoptext @article{Trefler1993, author = {Trefler, Daniel}, doi = {10.2307/2527182}, file = {:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Trefler - 1993 - The Ignorant Monopolist Optimal Learning with Endogenous Information.pdf:pdf}, issn = {00206598}, journal = {International Economic Review}, keywords = {Demand uncertainty,Monopoly,Unknown demand}, mendeley-tags = {Demand uncertainty,Monopoly,Unknown demand}, month = aug, number = {3}, pages = {565}, title = {{The Ignorant Monopolist: Optimal Learning with Endogenous Information}}, url = {http://www.jstor.org/stable/2527182?origin=crossref}, volume = {34}, year = {1993} } @article{Segal2003, author = {Segal, Ilya R.}, file = {:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Segal - 2003 - Optimal Pricing Mechanisms with Unknown Demand(2).pdf:pdf;:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Segal - 2003 - Optimal Pricing Mechanisms with Unknown Demand.pdf:pdf;:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Segal - 2003 - Optimal Pricing Mechanisms with Unknown Demand.tex:tex}, issn = {1556-5068}, journal = {American Economic Review}, number = {3}, pages = {509--529}, title = {{Optimal Pricing Mechanisms with Unknown Demand}}, volume = {93}, year = {2003} } @article{Aghion1991, author = {Aghion, Philippe and Bolton, Patrick and Harris, Christopher and Jullien, Bruno}, doi = {10.2307/2297825}, file = {:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Aghion et al. - 1991 - Optimal Learning by Experimentation(2).pdf:pdf;:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Aghion et al. - 1991 - Optimal Learning by Experimentation.pdf:pdf}, issn = {00346527}, journal = {The Review of Economic Studies}, month = jun, number = {4}, pages = {621}, title = {{Optimal Learning by Experimentation}}, url = {http://www.jstor.org/stable/2297825?origin=crossref}, volume = {58}, year = {1991} } @article{Aucremanne2005, author = {Aucremanne, L. and Druant, M.}, file = {:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Be et al. - Unknown - WO R K I N G PA P E R S E R I E S N O . 4 4 8 M A R C H 2 0 0 5 BEHAVIOUR IN BELGIUM WHAT CAN BE LEARNED FROM AN AD HOC SURVEY by Luc Aucremanne and Martine Druant WO R K I N G PA P E R S E R I E S WHAT CAN BE LEARNED FROM.pdf:pdf}, journal = {National Bank of Belgium Working Paper No. 65 - Research Series}, title = {{Price-Setting Behavior in Belgium: What can be learned from an ad-hoc survey?}}, url = {http://papers.ssrn.com/sol3/papers.cfm?a
Re: [NTG-context] sorting bibliography
Hi Yury, I have the following in my context files and the sorting seems to work: \setupbibtex[database=references,sort=author] Regards, Mathieu On Mon, Nov 22, 2010 at 11:14 PM, Yury G. Kudryashov wrote: > Hi! > > Could you please tell me how to sort bibliogrpahy in ConTeXt Mark IV? I've > tried > \setuppublications[sorttype=author,sort=yes] > but this doesn't work. > > It seems that bibl-tra.lua contains two compare() functions. Which one is > used (my Lua knowledge is far from perfect)? > > P.S.: I'm ready to convert my bibtex db to another format if this will help. > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > ___ > ___ 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] The visual counter module
Awesome! I'm sure this will come in handy one day. -- Mathieu On Mon, Nov 15, 2010 at 12:16 AM, Aditya Mahajan wrote: > Hi, > > This is to announce an alpha release of the visual counter module. See > http://randomdeterminism.wordpress.com/2010/11/14/visualcounter-module/ for > some examples, in particular > http://randomdeterminism.files.wordpress.com/2010/11/theorem.pdf > > The idea is to display a counter visually, in the same spirit as > interactions bars. There is no support for interaction, but, on the plus > sides, these work for any conter, not just the page counter. The idea of the > module comes from the counters designed by Thomas as part of the > simpleslides module. > > The module only works with MkIV because I am using the new namespace code. > So MkII support is unlikely. > > Anyone else interested in such counters? > > 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] Grabbing first letter of a sentence
Hi, I'd like to get access to the first letter of a chapter for the purpose of laying out the chapter heading, but I'm having difficulty with expansion. Here's my attempt: \def\MyChapterTitle#1#2{% \def\doMyChapterTitle##1##2^{% {\tfb ##1}##2 } #1 \doMyChapterTitle#2^ } setuphead[chapter][command=\MyChapterTitle] \starttext \chapter{Foo} bar \stoptext This doesn't work because the chapter title isn't expanded out before passing it to \MyChapterTitle. I know there is deeptextcommand but I need the chapter title during the layout of chapter number + title, so I need to use command instead of deeptextcommand. I attempted to get hold of the chapter title using the following \def\MyChapterTitle#1#2{% \def\doMyChapterTitle##1##2^{% {\tfb ##1}##2 } #1 \expandafter\doMyChapterTitle\expandafter{\fetchmark[chapter][first]}^ } but that doesn't seem to work either. Any ideas? Many thanks, M ___ 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] A few puzzling problems (bugs?) with enumerations
Wow, thank you very much for your fix, Wolfgang! I can confirm that it works. I hope this fix makes it into the next beta? Abount documenting these extra parameters that \setupenumerations has over \setupdefinitions, I figure that I should contribute that to the wiki. But I wonder, how does this kind of user generated documentation on the wiki get synchronized with the ConTeXt Reference manual hosted at Supelec? -- Mathieu On Fri, Oct 15, 2010 at 1:19 PM, Wolfgang Schuster wrote: > > Am 15.10.2010 um 10:20 schrieb Mathieu Boespflug: > >> Ok so after reading the source code of strc-des.mkiv, I found that >> contrary to earlier documentation such as >> >> http://www.ntg.nl/maps/36/09.pdf >> >> it is not the 'number' parameter that should be used to share >> numbering but the 'counter' parameter. After fixing that in my code, >> theorems now have proper numbers and references to theorems work >> properly too. > > \unprotected\def\doenumerationextratext > {\doif{\descriptionparameter\c!title}\v!yes > {\doifsomething\@@dodoenumerationtext % WS: added this test > {\begingroup > \dosetdescriptionattributes\c!titlestyle\c!titlecolor > \hskip\descriptionparameter\c!titledistance > \descriptionparameter\c!titlecommand > {\descriptionparameter\c!titleleft > \begstrut\@@dodoenumerationtext\endstrut > \descriptionparameter\c!titleright}% > \endgroup}}} > > \unprotected\def\doenumerationfullnumber#1% text, title > {\begingroup > \dosetdescriptionattributes\c!headstyle\c!headcolor > \the\everyenumeration > %\descriptionparameter\c!command{\strut#1\doenumerationnumber\doenumerationextratext}% > > \descriptionparameter\c!command{\strut#1\ifconditional\enumerationnumberenabled\doenumerationnumber\fi\doenumerationextratext}% > \endgroup} > > 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] A few puzzling problems (bugs?) with enumerations
Ok so after reading the source code of strc-des.mkiv, I found that contrary to earlier documentation such as http://www.ntg.nl/maps/36/09.pdf it is not the 'number' parameter that should be used to share numbering but the 'counter' parameter. After fixing that in my code, theorems now have proper numbers and references to theorems work properly too. However, \starttheorem[number=no] blah \stoptheorem and \starttheorem[-] blih \stoptheorem still don't work as expected inside sections, and I still have problem 1 listed in one of my previous emails, namely Any ideas? On a sidenote, I would like to contribute to the wiki or whatever is the main documentation source of the ConTeXt project something to document those parameters that are specific de \setupenumerations. The context reference manual and the wiki both just refer to \setupdescriptions yet there are a number of parameters that don't exist for \setupdescriptions, such as number, counter, prefix, prefixcomponents, etc. Many thanks, Mathieu On Wed, Oct 13, 2010 at 12:57 PM, Mathieu Boespflug <0xbadc...@gmail.com> wrote: > Also, I notice that the context reference manual from the svn > repository at supelec has the same problem when built with the latest > beta (p 241). > > -- Mathieu > > > On Wed, Oct 13, 2010 at 12:08 PM, Mathieu Boespflug <0xbadc...@gmail.com> > wrote: >> Hi, >> >> using the latest beta, I've had a bunch of problems using enumerations >> in mkiv. Earlier betas have had the same problems. Consider the >> following document: >> >> \defineenumeration >> [definition] >> [ text=Definition, >> title=yes, >> list=all, >> listtext={Definition }] >> >> \defineenumeration >> [theorem] >> [ text=Theorem, >> title=yes, >> style=italic, >> list=all, >> number=definition, >> listtext={Theorem }] >> >> \defineenumeration >> [proof] >> [ text=Proof, >> number=no, >> headstyle=italic, >> title=no, >> closesymbol={\mathematics{\square}}, >> style=normal] >> >> \starttext >> >> blah blah >> >> \startdefinition{foo} >> body1 >> \stopdefinition >> >> \startdefinition >> body2 >> \stopdefinition >> >> \startdefinition[-] >> body3 >> \stopdefinition >> >> \starttheorem >> $P = NP$ >> \stoptheorem >> \startproof >> too long to fit here. >> \stopproof >> >> \section{Inside sections} >> >> \subsection{Inside subsections} >> >> \startdefinition{foo} >> body1 >> \stopdefinition >> >> \startdefinition >> body2 >> \stopdefinition >> >> \startdefinition[-] >> body3 >> \stopdefinition >> >> \starttheorem[thm:pnp] >> $P = NP$ >> \stoptheorem >> \startproof >> too long to fit here. >> \stopproof >> >> Let's talk about \in{theorem}[thm:pnp]. >> >> \stoptext >> >> I see five problems : >> >> 1. Even when the enumeration has no title, the parentheses appear. >> Judging by Aditya's code in his MyWay on theorems, it used to be that >> when there is no title, the parens don't appear. How do I recover this >> behaviour? >> >> 2. I want the "theorem" enumeration to share its number with the >> "definition" environment. That doesn't seem to work. Outside of any >> section, the theorem just doesn't have any number. Inside a section, >> the theorem very oddly displays the section number. >> >> 3. I want the "proof" enumeration to have no number. That doesn't >> work inside a section. As for the "theorem" enumeration, the section >> number is printed even though here i requested no number at all! >> >> 4. Suppressing the number for a specific enumeration using the [-] >> switch doesn't work. As before, inside a section, the section number >> appears instead of no number. >> >> 5. Citing a specific theorem using \in{theorem}[thm:pnp] doesn't show >> the number of a theorem. >> >> I'm guessing the last four points are all related. >> >> Best regards, >> >> Mathieu >> > ___ 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] A few puzzling problems (bugs?) with enumerations
Also, I notice that the context reference manual from the svn repository at supelec has the same problem when built with the latest beta (p 241). -- Mathieu On Wed, Oct 13, 2010 at 12:08 PM, Mathieu Boespflug <0xbadc...@gmail.com> wrote: > Hi, > > using the latest beta, I've had a bunch of problems using enumerations > in mkiv. Earlier betas have had the same problems. Consider the > following document: > > \defineenumeration > [definition] > [ text=Definition, > title=yes, > list=all, > listtext={Definition }] > > \defineenumeration > [theorem] > [ text=Theorem, > title=yes, > style=italic, > list=all, > number=definition, > listtext={Theorem }] > > \defineenumeration > [proof] > [ text=Proof, > number=no, > headstyle=italic, > title=no, > closesymbol={\mathematics{\square}}, > style=normal] > > \starttext > > blah blah > > \startdefinition{foo} > body1 > \stopdefinition > > \startdefinition > body2 > \stopdefinition > > \startdefinition[-] > body3 > \stopdefinition > > \starttheorem > $P = NP$ > \stoptheorem > \startproof > too long to fit here. > \stopproof > > \section{Inside sections} > > \subsection{Inside subsections} > > \startdefinition{foo} > body1 > \stopdefinition > > \startdefinition > body2 > \stopdefinition > > \startdefinition[-] > body3 > \stopdefinition > > \starttheorem[thm:pnp] > $P = NP$ > \stoptheorem > \startproof > too long to fit here. > \stopproof > > Let's talk about \in{theorem}[thm:pnp]. > > \stoptext > > I see five problems : > > 1. Even when the enumeration has no title, the parentheses appear. > Judging by Aditya's code in his MyWay on theorems, it used to be that > when there is no title, the parens don't appear. How do I recover this > behaviour? > > 2. I want the "theorem" enumeration to share its number with the > "definition" environment. That doesn't seem to work. Outside of any > section, the theorem just doesn't have any number. Inside a section, > the theorem very oddly displays the section number. > > 3. I want the "proof" enumeration to have no number. That doesn't > work inside a section. As for the "theorem" enumeration, the section > number is printed even though here i requested no number at all! > > 4. Suppressing the number for a specific enumeration using the [-] > switch doesn't work. As before, inside a section, the section number > appears instead of no number. > > 5. Citing a specific theorem using \in{theorem}[thm:pnp] doesn't show > the number of a theorem. > > I'm guessing the last four points are all related. > > Best regards, > > Mathieu > ___ 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] A few puzzling problems (bugs?) with enumerations
Hi, using the latest beta, I've had a bunch of problems using enumerations in mkiv. Earlier betas have had the same problems. Consider the following document: \defineenumeration [definition] [text=Definition, title=yes, list=all, listtext={Definition }] \defineenumeration [theorem] [text=Theorem, title=yes, style=italic, list=all, number=definition, listtext={Theorem }] \defineenumeration [proof] [ text=Proof, number=no, headstyle=italic, title=no, closesymbol={\mathematics{\square}}, style=normal] \starttext blah blah \startdefinition{foo} body1 \stopdefinition \startdefinition body2 \stopdefinition \startdefinition[-] body3 \stopdefinition \starttheorem $P = NP$ \stoptheorem \startproof too long to fit here. \stopproof \section{Inside sections} \subsection{Inside subsections} \startdefinition{foo} body1 \stopdefinition \startdefinition body2 \stopdefinition \startdefinition[-] body3 \stopdefinition \starttheorem[thm:pnp] $P = NP$ \stoptheorem \startproof too long to fit here. \stopproof Let's talk about \in{theorem}[thm:pnp]. \stoptext I see five problems : 1. Even when the enumeration has no title, the parentheses appear. Judging by Aditya's code in his MyWay on theorems, it used to be that when there is no title, the parens don't appear. How do I recover this behaviour? 2. I want the "theorem" enumeration to share its number with the "definition" environment. That doesn't seem to work. Outside of any section, the theorem just doesn't have any number. Inside a section, the theorem very oddly displays the section number. 3. I want the "proof" enumeration to have no number. That doesn't work inside a section. As for the "theorem" enumeration, the section number is printed even though here i requested no number at all! 4. Suppressing the number for a specific enumeration using the [-] switch doesn't work. As before, inside a section, the section number appears instead of no number. 5. Citing a specific theorem using \in{theorem}[thm:pnp] doesn't show the number of a theorem. I'm guessing the last four points are all related. Best regards, Mathieu ___ 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] Euler font and context minimals
Thanks you very much Khaled! On Tue, Oct 5, 2010 at 11:36 AM, Khaled Hosny wrote: > On Sun, Sep 26, 2010 at 02:01:09PM +0200, Mathieu Boespflug wrote: >> Hi Khaled, >> >> > Neo Euler does not have all math arrows at the moment, if some one can >> > come with a list of standard math arrows (i.e. CM and AMS ones), I'll >> > see if I can add them. >> >> I extracted the following list from the Tex Reference Card J.H. >> Silverman. Seeing as that card is for plain TeX, I'd assume his list >> of arrows is pretty standard. I don't know how much of a subset of all >> the arrows available in CM is, but it's a start. >> >> \longleftarrow > [...] >> \swarrow > > The above arrows are all available now (except that the long arrows have > no special versions for script sizes, I don't no if it is really > needed). > > Regards, > Khaled > > -- > Khaled Hosny > Arabic localiser and member of Arabeyes.org team > Free font developer > ___ > 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] Euler font and context minimals
Hi Khaled, > Neo Euler does not have all math arrows at the moment, if some one can > come with a list of standard math arrows (i.e. CM and AMS ones), I'll > see if I can add them. I extracted the following list from the Tex Reference Card J.H. Silverman. Seeing as that card is for plain TeX, I'd assume his list of arrows is pretty standard. I don't know how much of a subset of all the arrows available in CM is, but it's a start. \longleftarrow \leftarrow or \gets \Longleftarrow \Leftarrow \longrightarrow \rightarrow or \to \Longrightarrow \Rightarrow \longleftrightarrow \leftrightarrow \Longleftrightarrow \Leftrightarrow \longmapsto \mapsto \hookleftarrow \uparrow \downarrow \updownarrow \nearrow \nwarrow \hookrightarrow \Uparrow \Downarrow \Updownarrow \searrow \swarrow Many thanks, Mathieu ___ 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] Euler font and context minimals
Hi Wolfgang, thanks for the tip! It works now. I searched all over the wiki to see if this is documented anywhere. It isn't so far as I can see. I can add a section to the "Fonts" page on the wiki, but shouldn't this information go in the manual instead? Also, I still have a problem: many types of arrows don't show up properly in the euler font. For example as in below: \setupbodyfont[palatino] \starttext test $x \mapsto x^2$. test $a \longrightarrow b$. \switchtobodyfont[pagella-euler] test $x \mapsto x^2$. test $a \longrightarrow b$. \stoptext Best regards, Mathieu On Sat, Sep 25, 2010 at 5:21 PM, Wolfgang Schuster wrote: > > Am 25.09.2010 um 16:51 schrieb Mathieu Boespflug: > >> I noticed that in my (recent) ConTeXt minimals tree, there was no >> euler.odf, so I grabbed one from somewhere in the tree in >> http://minimals.contextgarden.net/minimals/current, and placed it >> $CONTEXTROOT/tex/texmf-fonts, but to no avail. > > The correct path for the font is $CONTEXTROOT/tex/texmf-fonts/fonts/data > > 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 ___
[NTG-context] Euler font and context minimals
Hi everyone, I'm using ConTeXt for my PhD thesis and as I'm getting sick of writing up I've been trying to tweak the appearance a bit. I'd like to switch to using Palatino font for main body and Euler font for math. So I tried \setupbodyfont[pagella-euler] \starttext test $f(x) = x^2$. \stoptext But I get errors during processing such as: MTXrun | run 1: luatex --fmt="/home/mboes/src/context/tex/texmf-cache/luatex-cache/context/9076a3f5a9f873039eaa5d3001a4c6ac/formats/cont-en" --lua="/home/mboes/src/context/tex/texmf-cache/luatex-cache/context/9076a3f5a9f873039eaa5d3001a4c6ac/formats/cont-en.lui" --backend=pdf "./chap-one.tex"This is LuaTeX, Version beta-0.63.0-2010090921 \write18 enabled. (chap-one.tex jobcontrol > resuming randomizer with 0.20642945552544 ConTeXt ver: 2010.09.24 11:40 MKIV fmt: 2010.9.25 int: english/english system : cont-new loaded (/home/mboes/src/context/tex/texmf-context/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/home/mboes/src/context/tex/texmf-context/tex/context/base/cont-new.mkiv)) system : cont-fil loaded (/home/mboes/src/context/tex/texmf-context/tex/context/base/cont-fil.tex loading : ConTeXt File Synonyms ) system : cont-sys.rme loaded (/home/mboes/src/context/tex/texmf-context/tex/context/user/cont-sys.rme (/home/mboes/src/context/tex/texmf-context/tex/context/base/type-def.mkiv) (/home/mboes/src/context/tex/texmf-context/tex/context/base/type-lua.mkiv) (/home/mboes/src/context/tex/texmf-context/tex/context/base/type-siz.mkiv) (/home/mboes/src/context/tex/texmf-context/tex/context/base/type-otf.mkiv)) system : cont-err loaded (/home/mboes/src/context/tex/texmf-context/tex/context/base/cont-err.tex systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead ) system : chap-one.top loaded (chap-one.top) fonts : preloading latin modern fonts {/home/mboes/src/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/mboes/src/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/home/mboes/src/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map} bodyfont: 12pt rm is loaded language: language en is active define fonts> forced type otf of euler not found define fonts> font with name euler is not found define fonts> unknown font euler, loading aborted define fonts> unable to define euler.otf as \*pagella-euler7ptmmmr33* define fonts> forced type otf of euler not found define fonts> font with name euler is not found define fonts> unknown font euler, loading aborted define fonts> unable to define euler.otf as \*pagella-euler9ptmmmr22* define fonts> forced type otf of euler not found define fonts> font with name euler is not found define fonts> unknown font euler, loading aborted define fonts> unable to define euler.otf as \*pagella-euler12ptmmmr11* [...] I noticed that in my (recent) ConTeXt minimals tree, there was no euler.odf, so I grabbed one from somewhere in the tree in http://minimals.contextgarden.net/minimals/current, and placed it $CONTEXTROOT/tex/texmf-fonts, but to no avail. I still get the same error messages. I also ran luatools --generate and that doesn't make a difference. I read through the typography and fonts chapters of the manual but I didn't find specific information about installing fonts. Am I doing it right? How can I get ConTeXt to recognize this standard font? Many thanks, Mathieu ___ 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 ___