Re: [NTG-context] Feature request: \digits command
Thank you, Wolfgang. I have already read the This Way on your link very carefully. In fact, I was looking for a solution to have \digits{e-5} printed as 10^5 \digits{2e-5} printed as 2 . 10^5 Is it possible to do that? to detect if there is a number before the 'e' in \digits? Regards, Morgan Wolfgang Schuster a écrit : On Thu, Jun 19, 2008 at 10:10 PM, Morgan Brassel [EMAIL PROTECTED] wrote: Hi everyone, The \digits command is really great when it comes to typeset numbers in different languages. However, I miss one functionality from the numprint package in latex: when you type for example $e-5$, you get 10^{-5} (with no dot in front of it). Would it be possible to add an option to \digits to reproduce this? \starttext \def\digitpowerseparator{10} \digits{e-5} \stoptext http://pragma-ade.com/show-mag-4.htm Regards 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Feature request: \digits command
Hi everyone, The \digits command is really great when it comes to typeset numbers in different languages. However, I miss one functionality from the numprint package in latex: when you type for example $e-5$, you get 10^{-5} (with no dot in front of it). Would it be possible to add an option to \digits to reproduce this? Best wishes, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with '\ ' in math commands in current minimals
Hi everyone, In the following example: \define[1]\com{com\ #1} \starttext \com{1} $\com{1}$ \stoptext the second call to \com (the one in math mode) seems to stop the compilation of the file. Is it a bug? It wasn't happening before. I'm using the latest minimals. Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] References with or without interaction
Hi everyone, I noticed what seems to be a lack of coherence when typesetting references with interaction enabled. Look at the example below: \setupinteraction[state=start] \starttext See \in{figure}[fig:a]. {\it See \in{figure}[fig:a].} \placefigure [][fig:a] {A caption.} {HELLO} \stoptext When interaction is enabled, the two references are typeset bold and upshape. When it's not, the first one is upshape, the other is italic. This can lead to overfull hbox when turning on interaction, and this is quite unintuitive. Is there a reason why it is so in ConTeXt? Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] References with or without interaction
On Sun, 6 Apr 2008, Hans Hagen wrote: Morgan Brassel wrote: Hi everyone, I noticed what seems to be a lack of coherence when typesetting references with interaction enabled. Look at the example below: \setupinteraction[state=start] \starttext See \in{figure}[fig:a]. {\it See \in{figure}[fig:a].} \placefigure [][fig:a] {A caption.} {HELLO} \stoptext When interaction is enabled, the two references are typeset bold and upshape. When it's not, the first one is upshape, the other is italic. This can lead to overfull hbox when turning on interaction, and this is quite unintuitive. Is there a reason why it is so in ConTeXt? \setupinteraction[style=] Thank you Hans, and sorry for my post: I should have looked more carefully in texshow... Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] UTF-8 characters and gnuplot module
Hi everyone, Hi Mojca, I finally compiled gnuplot with support for the context terminal. It was really easy in the end, I should not have been afraid... I have two questions however (see example below): * Does the option 'solid' work with the context terminal? I still get dashed lines here... * ' and quotes do not give the same result when UTF-8 character are involved. Is it wanted? Best regards, Morgan \enableregime[utf] \usemodule[gnuplot] \setupcolors[state=start] \setupGNUPLOT[options=color solid] \startGNUPLOTscript[sin] set ylabel héllo set xlabel 'héllo' plot sin(x), sin(2*x) \stopGNUPLOTscript \starttext \useGNUPLOTgraphic[sin] \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] UTF-8 characters and gnuplot module
You can use \setupGNUPLOTterminal [context] [dashed=no, textscale=0.9] Thank you, Mojca! The dashed option is ok, but I didn't manage to have 'textscale' work: adding these lines in my previous example still gives 12pt font... Am I missing something? * ' and quotes do not give the same result when UTF-8 character are involved. Is it wanted? No. It's the same problem that I have mentioned last time. If you take a look at filename-gnuplot-1.plt you will see: set ylabel h\dochar {233}llo set xlabel 'h\dochar {233}llo' The second case gets literally to the output file, but then ConTeXt interprets it OK again. In the first case backslash is lost, and you get nonsense. This can be solved by using \detokenize as descriibed last time, but then again - it would be best if Taco or Hans or someone else had an idea of how to prevent that weird expansion inside \startGNUPLOTscript. I always use simple quotes for no particular reason (or maybe because I sometimes want to use \bf or other commands with backslash). Sorry to make you explain again, I'm a bit lost with all those new things... I'll use simple quotes from now on, but is there a simple way to escape the ' character in this case? I tried set xlabel 'I\'\ m sorry!' but the ' is not typeset correctly then. A big thanks for your great patience! Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] UTF-8 characters and gnuplot module
Hi everyone, I'm currently learning how to use the gnuplot module (thank you Mojca, and all the others, for this great tool!). I stick for now with the metapost terminal, as I'm not sure I'd be able to recompile gnuplot in order to add the context terminal. It seems that accents are not supported in gnuplot scripts. In the example below, both the methods to typeset accents fail. Is there a solution to this? Maybe there is something wrong with my settings... Best regards, Morgan \usemodule[gnuplot] \setupGNUPLOT[terminal=mp] \startGNUPLOTscript[sin] set xlabel héllo h\'ello plot sin(x) \stopGNUPLOTscript \starttext \useGNUPLOTgraphic[sin] \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] UTF-8 characters and gnuplot module
On Mon, 24 Mar 2008, Mojca Miklavec wrote: Here's a short summary for Hans (or Taco), so that he doesn't need to read any further: - is it possible to have the contents between \startGPscript ... \stopGPscript go verbatim to the temporary file instead of having to be parsed? - Is there a way to get UTF-8 accented latin characters out of plain metapost files when using mptopdf? On Mon, Mar 24, 2008 at 3:38 PM, Morgan Brassel wrote: Hi everyone, Hello Morgan, I'm currently learning how to use the gnuplot module (thank you Mojca, and all the others, for this great tool!). I stick for now with the metapost terminal, as I'm not sure I'd be able to recompile gnuplot in order to add the context terminal. Which platform are you using? Hi Mojca, and thanks for your quick (and detailed) reply, I'm using debian sid with default ConTeXt, texlive, and gnuplot packages. Not trying to compile gnuplot myself is probably a matter of lazyness, as it should not be too difficult with debian packaging tools available. I guess the best solution for me is to try and test the 'context' terminal. Of course, it would be great to see some of the enhancements you describe appear, even if it is well above my understanding... Best wishes, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Clash in itemize options?
Hi everyone, I am wondering about the effects of the 'margin=yes' option in itemize environments. It seems to be incompatible with the 'packed' option. In the following example, the third itemize doesn't get packed, even if the 'packed' option is present. Is it a feature? In this case, how can I modify the margin without introducing vertical spaces? Best regards, Morgan \starttext One \startitemize[packed] \item text \item text \stopitemize Two \startitemize[margin=yes] \item text \item text \stopitemize Three \startitemize[margin=yes, packed] \item text \item text \stopitemize \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Clash in itemize options?
On Sun, 23 Mar 2008, Wolfgang Schuster wrote: Hi Morgan, I am wondering about the effects of the 'margin=yes' option in itemize environments. It seems to be incompatible with the 'packed' option. you can't use assignments and commands in the same argument. D'oh! Now I feel terribly sorry for my mistake... I'm learning new things about ConTeXt everyday, but apparently not enough! Thank you for being so patient, Wolfgang! Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Command \NN in table?
Does this do what you want? %\TracingFormats=1 \starttable[|b{\digits}r|] \NC 1.@@ \NC \AR \NC 1.1@ \NC \AR \NC 1.11 \NC \AR \NC 11.11 \NC \AR \stoptable Aditya Hi Aditya, Thank you for this solution. I saw it on the wiki before I sent my first e-mail: it is actually less powerful than a \NN command, as it applies to the whole column, whereas \NN can apply to a single cell. (See the example below) My current solution is to define a new command \define\NN{\NC\digits} It (apparently) does not clash with the \NN command in tabulate, but it seems like a dangerous hack. What is your opinion? Thanks for your time! Morgan \setdigitmode 2 \define\NN{\NC\digits} \starttext \starttabulate[|r|] \NN 1.@@ \AR \NN 1.11 \AR \NC hello \AR \stoptabulate \starttable[|r|] \NN 1.@@ \AR \NN 1.11 \AR \NC hello \AR \stoptable \starttable[|b{\digits}r|] \NC 1.@@ \AR \NC 1.11 \AR \NC hello \AR \stoptable \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Command \NN in table?
On Sun, 23 Mar 2008, Aditya Mahajan wrote: On Sun, 23 Mar 2008, Morgan Brassel wrote: Does this do what you want? %\TracingFormats=1 \starttable[|b{\digits}r|] \NC 1.@@ \NC \AR \NC 1.1@ \NC \AR \NC 1.11 \NC \AR \NC 11.11 \NC \AR \stoptable Aditya Hi Aditya, Thank you for this solution. I saw it on the wiki before I sent my first e-mail: it is actually less powerful than a \NN command, as it applies to the whole column, whereas \NN can apply to a single cell. (See the example below) The table way is the opposite. You can specify what applies to all the columns, and then rule out specific columns using \REF[..]. My current solution is to define a new command \define\NN{\NC\digits} It (apparently) does not clash with the \NN command in tabulate, but it seems like a dangerous hack. What is your opinion? This is pretty safe w.r.t tabulate. I do not think that any other context feature uses \NN command, so this will only clash with user commands. Aditya Ok, so I think I'll stick with this solution for now. Thank you for all your answers, Aditya! Best wishes, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A few questions about aligned maths
On Sun, 23 Mar 2008, Aditya Mahajan wrote: On Thu, 13 Mar 2008, Morgan Brassel wrote: 3) Aditya, I saw your remark in your 'My Way' concerning the 'multline' environment. I must admit I would really be glad to see it appear in ConTeXt! I'm afraid I'm not able to implement it myself... I use it a lot with amsmath: when a formula is just too long for one line, I put it on two with multline. The first part of the formula is left aligned on the first line, and the second part is right aligned on the second line. It seems impossible to get the same result with only 'align'. Would it be difficult to make it available in ConTeXt? Here is my first attempt. Completely bare-bones right now, but short enough to show what needs to be done. \unprotect \def\startmathlines [EMAIL PROTECTED] \def\NC{} \def\NR{\def\NC{\cr}} % Hack for number. Should be done by measuring the width of the number \scratchdimen\dimexpr\displaywidth-4em \relax \vbox \bgroup \halign\bgroup \hbox to \scratchdimen {\hfil \strut $\mathsurround\zeropoint\displaystyle{}## [EMAIL PROTECTED] \hfil}% \crcr \hfilneg} \def\stopmathlines {\hfilneg \crcr \egroup \egroup} \protect \starttext \placeformula \startformula \startmathlines \NC f(x) = (a+b)^n \NR \NC = a^n + n \cdot a^{n-1} b + \cdots + n \cdot a b^{n-1} + b^n \NR \NC = a^n + n \cdot a^{n-1} b + \cdots + n \cdot a b^{n-1} + b^n \NR \stopmathlines \stopformula \stoptext Taking care of [align=left|right] should be easy. This version will not break across pages. I cannot figure out how to get rid of the outer \vbox. Any suggestions? Aditya Sorry that I can't help you with the implementation, Aditya... I just want to confirm that your new macro perfectly fits my needs. I hope it will make it into the core, it really is useful! As always, a big thanks for your time and patience! Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Command \NN in table?
Hi everyone, Sorry to bother you again with that question, but I didn't get any answers last time, and I think this would make a useful new feature in ConTeXt: is there a particular reason why the \NN command is defined in 'tabulate' and not in 'table'? Would it be hard to add it in 'table'? Best wishes, Morgan On Mon, 17 Mar 2008, Morgan Brassel wrote: Hi, I'm currently trying to typeset tables of digits. I read in This Way #3 that the tabulate environment has digits support with \NN. Would it be possible to had the same feature in the table environment? By the way, I'd like to congratulate Hans for the \digits command: it really saved me so much time! It don't need to retype numbers from my numerical outputs anymore. And I can switch very easily from english to french number format. It's great! Best wishes, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Command \NN in table?
What exactly are you trying to achieve? I do not completely know all the features of digits. But table has a numerical columns n and q, see http://www.tug.org/TUGboat/Articles/tb29-1/tb91mahajan.pdf. There are also \HC (hook column) which can do certain things. Can you give an example of a table (placing \digit commands by hand)? Thank you for your quick answer, Aditya. In fact, I saw this example at the end of Hans's This Way #3: \starttext \starttabulate[|r|] \NN 1.@@ \NR \NN 1.1@ \NR \NN 1.11 \NR \NN 11.11 \NR \stoptabulate \stoptext and I would like to get the same result replacing tabulate by table... What I like about \digits (and \NN) is that you can change the number format (english Vs french for example) without rewriting anything. is there a particular reason why the \NN command is defined in 'tabulate' and not in 'table'? 'table' is just a wrapper around TaBlE macros, and due to the syntax sugar of ConTeXt, some of the features of the original TaBlE macros are lost. (Though I do not know if \digits thing is possible with the original TaBlE macros or not) Would it be hard to add it in 'table'? I believe so. The TaBlE code is *very* old, written at a time when TeX was limited in terms of features and memory. Tabluate are more recenlt relatively, and written from scratch by Hans. Actually, if you request for features of table that are missing in tabulate, that might be easier to implement. Aditya I see. So maybe I should switch from table to tabulate for now, as I don't need vertical lines... I'll try that as a first solution. Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Incompatibility bib num style / reference prefix option
On Mon, 17 Mar 2008, Taco Hoekwater wrote: Morgan Brassel wrote: Hi, I think I discovered a bug in the 'num' alternative of the bib module. It seems to be incompatible with the prefix=+ option of referencing. Yes, indeed. It is doubtful that it ever will be compatible with prefixes, it needs to do too much black magic behind the scenes. Hi Taco, Thank you for the information. That's not really a problem to me, I'll change my references to new ones. By the way, the 'num' alternative also gives an unknow reference when \completepublications is not present, while the default alternative is OK. Is there a particular reason for this? Thanks. Yes. You are asking for the sequence number in the list of publications. That is (by definition) undefined if there is no such list (yet). I see. Anyway, it seems weird to make citations in a document without including a bibliography... Greetings, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Command \NN in table?
Hi, I'm currently trying to typeset tables of digits. I read in This Way #3 that the tabulate environment has digits support with \NN. Would it be possible to had the same feature in the table environment? By the way, I'd like to congratulate Hans for the \digits command: it really saved me so much time! It don't need to retype numbers from my numerical outputs anymore. And I can switch very easily from english to french number format. It's great! Best wishes, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] A new feature for \digits: \digits{e-1}
Hi everyone, In LaTeX, the numprint package provides the \numprint command, and is pretty useful when typing numbers. It is quite similar to the \digits ConTeXt command. However, the two commands differ when it comes to this example: \numprint{e-1} \digits e-1 In this case, the \numprint command ommits the \cdot in front of the 1O^-1, whereas \digits does not. My question is: is it a deliberate choice? If not, would it be possible to modify the \digits command in order to reproduce the behavior of \numprint? Best wishes, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Strange format error with xetex engine on debian sid
Hi everyone, I'm experiencing problems with the xetex engine on debian sid. I'm using the official packages context and texlive-xetex. Maybe one of you has the same setup and has a hint... When I try to compile a simple hello world! document, I get the following message: This is XeTeXk, Version 3.141592-2.2-0.996-patch1 (Web2C 7.5.6) %-line parsing enabled. ---! /var/lib/texmf/web2c/pdftex/cont-en.fmt was written by pdftex (Fatal format file error; I'm stymied) I didn't change anything to the setup made by official packages. Is there a problem with one of them? Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange format error with xetex engi ne on debian sid
Le Saturday 15 March 2008 17:01:41 Peter Münster, vous avez écrit : On Sat, Mar 15 2008, Morgan Brassel wrote: I'm experiencing problems with the xetex engine on debian sid. I'm using the official packages context and texlive-xetex. Maybe one of you has the same setup and has a hint... When I try to compile a simple hello world! document, I get the following message: This is XeTeXk, Version 3.141592-2.2-0.996-patch1 (Web2C 7.5.6) %-line parsing enabled. ---! /var/lib/texmf/web2c/pdftex/cont-en.fmt was written by pdftex (Fatal format file error; I'm stymied) Hello, If there is no xetex-format, then I get a similar error. So, first generate the xetex format: texexec --make --all --xetex Then, check where the format has been written (perhaps /var/lib/texmf/web2c/xetex/cont-en.fmt). Update the lsr-database: mktexlsr Check, if at least kpsewhich finds the format: kpsewhich -engine xetex cont-en.fmt It should find the same file, that you've just generated before. Then, you should be able to compile Hello world!. Cheers, Peter Thanks, Peter. Yes the xetex format is missing whereas the pdftex one is present. I guess something is missing in the postinstall script of the context deb package. Unfortunately, I don't really know how to check it. Anyway, I ran texexec to build the format. As root, it is written to /etc/texmf/web2c/xetex/cont-en.fmt which is not very coherent with the location of the pdftex format. kpsewhich finds the format, but I'm stiil unable to compile Hello world. I now get the following error: kpathsea: Running mktextfm lmromanslant10-regular mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input lmromanslant10-regular This is METAFONT, Version 2.71828 (Web2C 7.5.6) kpathsea: Running mktexmf lmromanslant10-regular ! I can't find file `lmromanslant10-regular'. * ...; nonstopmode; input lmromanslant10-regular Please type another input file name ! Emergency stop. * ...; nonstopmode; input lmromanslant10-regular Maybe I should write a debian bug report. This problem hasn't been declared yet. But I'm not sure how to do that! Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Incompatibility bib num style / reference prefix option
Hi, I think I discovered a bug in the 'num' alternative of the bib module. It seems to be incompatible with the prefix=+ option of referencing. The following example gives an unknow reference: % tex file \usemodule[bib] \setupbibtex[database=biblio] \setuppublications[alternative=num] \setuphead[chapter][prefix=+] % OK if commented \starttext \chapter[chap:one]{One} % OK if commented Text \cite[test] text. \completepublications \stoptext % bib file biblio.bib @BOOK{test, title = {T}, publisher = {P}, year = {Y}, author = {A} } By the way, the 'num' alternative also gives an unknow reference when \completepublications is not present, while the default alternative is OK. Is there a particular reason for this? Thanks. Greetings, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Strange format error with xetex engi ne on debian?sid
Le Saturday 15 March 2008 19:26:06 Peter Münster, vous avez écrit : On Sat, Mar 15 2008, Morgan Brassel wrote: get the following error: kpathsea: Running mktextfm lmromanslant10-regular mktextfm: Running mf-nowin -progname=mf \mode:=ljfour; mag:=1; nonstopmode; input lmromanslant10-regular This is METAFONT, Version 2.71828 (Web2C 7.5.6) kpathsea: Running mktexmf lmromanslant10-regular ! I can't find file `lmromanslant10-regular'. * ...; nonstopmode; input lmromanslant10-regular Hello Morgan, I don't know much about fonts, but I think, the latest ConTeXt requires also the latest lm-fonts, since some file-names changed some months ago. Cheers, Peter You're right, lots of names have changed since previous version. I've sent a mail to this debian bug (#469437): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469437 Both lmodern and texlive-xetex need to be updated. Cheers, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] References and formulae numbers in upshape
Le Friday 14 March 2008 09:00:49 Wolfgang Schuster, vous avez écrit : What do you want seems to be not possible but you could use the following solution although it is better to define a new command. \let\normalin\in \definereferenceformat [figref] [left=\normal, text=\normal Figure, command=\normalin] \let\in\figref \starttext \placefigure [here][fig:det] {Example} {\blackrule[width=3cm,height=3cm]} \it See \in[fig:det] for details. \stoptext Wolfgang Thank you for your help, Wolfgang! I think I'll define a new \ref command similar to the one in LaTeX, with upshape number. But maybe a new option would be welcome? (just as for numberstyle=normal in \setupformulae). What do you think? Is it a bad idea? I'm just curious... Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] References and formulae numbers in upshape
Hi everyone, I'm looking for an easy way to typeset all references produced by the \in command in upshape format (even in an italic paragraph for example). I tried with the 'left' option of \definereferenceformat, but without good results. I would also like to typeset all formulae numbers in upshape. I know Aditya posted about this a long time ago but I can't find the thread any more... Greetings, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] A few questions about aligned maths
Hi everyone, I read carefully the two 'My Way' from Aditya regarding math alignment (thank you for those, they were extremely useful to me, and should maybe get even more visibility on the wiki), and I have some questions about it: 1) Is there a way to modify interline spacing in 'cases' environment? I find it a bit short when using the displaystyle option. 2) I noticed that the interline spacing is not the same in the 'align' and 'aligned' environment (it's larger in 'align'). Is there a way to make 'aligned' use the spacing of align? It looks better with displaystyle maths. 3) Aditya, I saw your remark in your 'My Way' concerning the 'multline' environment. I must admit I would really be glad to see it appear in ConTeXt! I'm afraid I'm not able to implement it myself... I use it a lot with amsmath: when a formula is just too long for one line, I put it on two with multline. The first part of the formula is left aligned on the first line, and the second part is right aligned on the second line. It seems impossible to get the same result with only 'align'. Would it be difficult to make it available in ConTeXt? Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] References and formulae numbers in upshape
Le Thursday 13 March 2008 13:03:22 Aditya Mahajan, vous avez écrit : On Thu, 13 Mar 2008, Morgan Brassel wrote: Hi everyone, I'm looking for an easy way to typeset all references produced by the \in command in upshape format (even in an italic paragraph for example). I tried with the 'left' option of \definereferenceformat, but without good results. I would also like to typeset all formulae numbers in upshape. I know Aditya posted about this a long time ago but I can't find the thread any more... I also could not get things to work with \definereferenceformat. This is what I use: \definereferenceformat [doeqref] [left=(,right=)] \def\eqref[#1]{{\normal \doeqref[#1]}} And then \eqref[tag].. Aditya Thank you, I'll use this too! It could be useful to add an option to \definereferenceformat to get the same result. Is it hard to implement? And concerning the equation tag itself, I mean the one introduced by \placeformula, is there a way to have it always typeset in upshape? Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A few questions about aligned maths
Le Thursday 13 March 2008 13:23:06 Aditya Mahajan, vous avez écrit : On Thu, 13 Mar 2008, Morgan Brassel wrote: Hi everyone, I read carefully the two 'My Way' from Aditya regarding math alignment (thank you for those, they were extremely useful to me, and should maybe get even more visibility on the wiki), and I have some questions about it: 1) Is there a way to modify interline spacing in 'cases' environment? I find it a bit short when using the displaystyle option. There is no clean way to do this at the moment. You can force a looser interline by adding \noalign{\vskip ...} after \NR. Ok, I'll do that. This is the \needspace command described in your 'My Way', isn't it? I should have remembered it! 2) I noticed that the interline spacing is not the same in the 'align' and 'aligned' environment (it's larger in 'align'). Is there a way to make 'aligned' use the spacing of align? It looks better with displaystyle maths. I do not like the definition of aligned using matrices that I have presented in the 'My Way'. Matrices try very hard to have a compact interline spacing, while in a aligned environment you need the opposite. At some point, I played with some of the internals of core-mat, and had a working definition of aligned. I cannot find it at the moment :( Maybe another solution would be to add left and right options directly to the align environment. But of course I have no idea if it is possible... Anyway, if you find your new definition back, I would be glad to test it! 3) Aditya, I saw your remark in your 'My Way' concerning the 'multline' environment. I must admit I would really be glad to see it appear in ConTeXt! I'm afraid I'm not able to implement it myself... I use it a lot with amsmath: when a formula is just too long for one line, I put it on two with multline. The first part of the formula is left aligned on the first line, and the second part is right aligned on the second line. It seems impossible to get the same result with only 'align'. Would it be difficult to make it available in ConTeXt? No, multline is probably the simplest of all math environments. I do not really understand what all features it should have. If you can explain everything you want from a multiline environment, I can give a shot at trying to implement that, and Hans and Taco could polish it up. Aditya Concerning multline, I only read the specification given in amsldoc.pdf: 3.3 Split equations without alignment. Multline does not support alignment, so you can't put '' inside it, only '\\'. All it does is cut the equation into several lines: the first is left aligned, the last is right aligned, and all the intermediate are centered. I don't if this is sufficient as an explanation. Please let me know if I can help or test. And thank you for your time! Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] References and formulae numbers in upshape
Le Thursday 13 March 2008 19:16:02 Wolfgang Schuster, vous avez écrit : On Thu, 13 Mar 2008 08:03:22 -0400 (EDT) Aditya Mahajan [EMAIL PROTECTED] wrote: On Thu, 13 Mar 2008, Morgan Brassel wrote: Hi everyone, I'm looking for an easy way to typeset all references produced by the \in command in upshape format (even in an italic paragraph for example). I tried with the 'left' option of \definereferenceformat, but without good results. I would also like to typeset all formulae numbers in upshape. I know Aditya posted about this a long time ago but I can't find the thread any more... I also could not get things to work with \definereferenceformat. This is what I use: \definereferenceformat [doeqref] [left=(,right=)] \def\eqref[#1]{{\normal \doeqref[#1]}} Why not \definereferenceformat [eqref] [left=\normal(, right=)] Wolfgang Is it so simple, really? Great! But can't this have some side effects in particular cases? I mean, the {} around \normal aren't needed here? Well, it seems ok for me in slanted enumerations for theorems and such. Thank you! Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] A few questions about aligned maths
Le Friday 14 March 2008 00:48:55 Aditya Mahajan, vous avez écrit : So, will this user interface be enough: \startformula \startmultline \NC line 1 \FR \NC line 2 \MR \NC line 3 \LR \stopmultline \stopformula Lines with \FR are flush left, lines with \MR are centered, and lines with \LR are right flushed. (First row, middle row, last row; as in tables). multline also has \pushleft and \pushright with go against the ConTeXt way of things. It seems great to me. Would it be possible to use \FR ou \LR for intermediate lines? It could be a way to get the same result as \pushleft and \pushright in amsmath. Anyway, I'm not sure this is a very useful feature: centered lines in the middle is clearly the best choice (at least for me!). It is also possible to just have \NR at each row, and let ConTeXt figure out the correct flushing. That will involve a two-pass algorithm, and I will give that a try. If the use of \FR and \LR can address the problem of \pushleft and \pushright, the first solution would be more powerful... And maybe it's more coherent with ConTeXt tables. The other thing is placement of equation numbers. It is easy to implement multline so that equation number is always centered. I am not sure if the current ConTeXt mechanism allows for equation number to be placed on the bottom (similar to tbtags options). Aditya As multline is supposed to be used to typeset one only equation, I guess the choice made in amsmath is the best for tag placement: last line if placed right and first line if placed left. But if it's not possible currently, a centered tag would not hurt me at all... Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] References and formulae numbers in upshape
\definereferenceformat [eqref] [left=\bgroup\normal(, right=)\egroup] This was my first attempt, but it gave some trouble. I need to go back and check. Aditya I now realize that my first question was not very clear: what I need in fact is to typeset *all* references obtained by the \in command in upshape. For example, in {\it See \in{Figure}[fig:det] for details.}, I would like to see 'Figure 1' in upshape and the rest in italic. I tried: \setupreferencing [left=\bgroup\normal, right=\egroup] without success. Is there a way to achieve this without defining new reference formats? Thanks in advance, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
Selon Taco Hoekwater [EMAIL PROTECTED]: \defineenumeration[theorem][indenting=always] This is actually easier to find, because it actually is documented in texshow: http://texshow.contextgarden.net/ You're right. I found it there just after I sent the mail... Thank you, and sorry I didn't look at it first. The thing is that the formal specification is not clearly defined, not even if you mention all cases. _You_ may not want indented footnotes, but _I_ have typeset a book that did. It's not exactly about what _I_ want: my only wish was to recover the LaTeX specification. And actually, I don't know if it is clearly defined or not. Maybe I'm too used to LaTeX choices. And consider this: Text text text text \startquotation Quoted text quoted text \stopquotation Text text text text is the next Text indented, yes or no? Whether this is a 'display' or a standalone paragraph is very much up to the document designer. Without an empty line over it, it should not be indented. It's the rule in LaTeX, and it seems quite natural (to me). If you want it indented, you have to start a new paragraph, with an empty line or \par. All this because quotation can be part of a paragraph. Formulae, itemize, can also be part of a paragraph, that's why the rule should be the same for them. Floats, footnotes, etc. can't be part of a paragraph, that's why the rule is different for them. In english mathematical texts, Theorems and such are often seen as a kind of run-in header, so that Theorem 1. Text text text is not indented, but that usually does not apply to Proof. Text text text and Remark 1. Text text text: those usually _are_ indented. For theorem like environments, I'd follow the choices of the AMS. The text inside theorems should follow the same rule as the main text outside. The head of theorems never get indented (by default). I am being hesitant about a 'global switch' because I fear that any automated solution only takes care of one particular set of settings, and so does will really help that much and will become a documentation nightmare. Imagine: The command \indentallparagraphs will make sure that every paragraph in the document will get indented, regardless of its surroundings, with the following exceptions: * the bodies of the predefined floating objects figures, tables, intermezzos, graphics. * the bodies of the predefined footnotes endnotes, and floating marginals * the contents of float captions * the paragraph following a \stopformula, if that formula is not preceded by \placeformula, and there is not empty line inbetween. \placeformula shouldn't modify anything there... * any itemgroups, enumerations, descriptions, floats etc. that were not predefined in the context core. * ... I hope you see the problem with that. Even a simple command like \setupindentnext[yes] does not work out-of-the-box, because you actually wanted \setupformulae[indentnext=auto] % not yes auto seems indeed to be the default in LaTeX. As I said before, it may be much easier to put all this in a module (by you, or someone else, but I guess you now have the list of desired commands pretty much at hand?). Then you can say \usemodule[indentall] and the context core would not have to think about all these border cases. I understand that it's delicate to modify the core for such questions. My point is that I always found indenting clear or coherent in LaTeX: you want an indented line, then leave an empty line before. In ConTeXt, I had to fight a bit to recover this simple rule. But as I said, maybe I'm too used to LaTeX choices... As you suggest, I will put every command I used in a separate file, and try to produce a module out of it. I'm not sure I have sufficient knowledge for this yet, but I'll try. Last of all, I want to thank you for all your answers, and apologize for my poor english: I might seem a bit rude, but this is clearly not my wish. Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Ah, misunderstood. You want \setupformulae[indentnext=auto] Thank you, Taco! And may I ask the difference with the 'yes' option? Is it documented somewhere? I'm having a real hard time understanding all the mechanisms of indenting in ConTeXt... The 'auto' indents the next paragraph, but only if it is a separate paragraph (empty line or \par command following the \stop.. command) Thank you, that's precisely what I needed. Indenting is not much more complex than this: there is \indenting with its (pretty long) list of arguments, and then there are the indentnext=[yes|no|auto] option available after various block-creation commands. The indentnext key is relatively new, and is added for requests similar to yours, but at a smaller scale. Some layouts ask for indentation after itemizations but not after floats, sometimes there is a need for 'auto' for formulae but often you really want 'no', some styles indent after block quotations, others dont, etc. etc. Ok, it's clearer to me now. Then I've got one last question on the subject: I didn't manage to have paragraph indented inside an 'enumeration' block, is there an option to do that? Thank you for your patience! I still think that it would be great to have one option to indent absolutely all paragraphs... Best regards, Morgan Best wishes, Taco ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] The point about theorems
Selon Aditya Mahajan [EMAIL PROTECTED]: Quoting [EMAIL PROTECTED]: Selon Aditya Mahajan [EMAIL PROTECTED]: On Wed, 30 Jan 2008, [EMAIL PROTECTED] wrote: Hi, I need to typeset theorems with ConTeXt, and I would like to get your advice before I begin. I read an interesting post about it on the dev list: Enhancements to core-des for theorems http://archive.contextgarden.net/message/20070601.055815.50e07e4d.en.html But I was unable to understand the very conclusion of it... Are there some particular commands concerning theorems? or is \setupenumerations the only solution? Enumerations have been enhanced to take care of theorems. See if the examples on the mailing list can get you started. Otherwise, just ask here. Thank you. Actually, I already have a question about the endmarker option. The following example doesn't produce any endmark. Am I missing anything? Yes, the sanitizing of options done by Hans. Use closesymbol=X. Thank you, Aditya. I hadn't noticed that... Best regards, Morgan Aditya \defineenumeration[theorem][endmarker=X] \starttext \starttheorem Hello \stoptheorem \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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Ok, it's clearer to me now. Then I've got one last question on the subject: I didn't manage to have paragraph indented inside an 'enumeration' block, is there an option to do that? Thank you for your patience! It is indeed possible, but the how is not very intuitive: \startitemize[command=\indent] % or \setupitemize[each][command...] \item \stopitemize the output looks dreadful to my eyes, and I really doubt this will ever become more easily supported. Sorry, I wasn't precise enough: I would like to indent paragraphs inside a block created with \defineenumeration (like theorems...), not inside an itemize block. The output in this latter case is indeed quite awful. I still think that it would be great to have one option to indent absolutely all paragraphs... Is 'absolutely all' including the one above? What about float captions? And multi-line entries in tables? Or table of contents items? Or synonym entries? Footnotes? By 'absolutely all', I mean just like when you use \setlength{\parindent}{1em} in LaTeX (plus eventually the indentfirst package for indenting after heads). Every paragraph (preceded by an empty line or \par) in the text flow will get indented, independently of: * what is above (formula, float, etc) * what environment it belongs to (quote, theorem, abstract, etc.), as long as this environment doesn't need alignment (like itemize, tabular, etc.) Of course, particular objects like captions, tables, footnotes, won't be concerned by indenting. I hope my explanations were clear enough... If needed, I can write a small LaTeX example and send it to the list. Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] The point about theorems
Hi, I need to typeset theorems with ConTeXt, and I would like to get your advice before I begin. I read an interesting post about it on the dev list: Enhancements to core-des for theorems http://archive.contextgarden.net/message/20070601.055815.50e07e4d.en.html But I was unable to understand the very conclusion of it... Are there some particular commands concerning theorems? or is \setupenumerations the only solution? Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Need of a new global option for indenting?
Hi, Sorry to bother you with this question again, but I didn't get any definitive answer in the previous discussion: wouldn't it be useful to have a new option in \setupindenting that indents EVERY paragraph? I mean even after floats, formulae, heads, etc. It would be easier than to set every 'indentnext' option to 'yes'. My first thought was that it should be the role of the 'always' option. Is it silly? Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need of a new global option for indenting?
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Hi, Sorry to bother you with this question again, but I didn't get any definitive answer in the previous discussion: wouldn't it be useful to have a new option in \setupindenting that indents EVERY paragraph? I mean even after floats, formulae, heads, etc. This is a french typographical tradition thing, isn't it? Yes, indeed. But it might be useful to non french people too, I think. It would be easier than to set every 'indentnext' option to 'yes'. My first thought was that it should be the role of the 'always' option. Is it silly? In fact there is a common entry point for indentnext already, and redefining that woudl do what you want, I believe: \def\checknextindentation[#1]% original {\processaction [#1] [yes=\doindentation, no=\noindentation, auto=\autoindentation]} \def\checknextindentation[#1]{\doindentation} % redefined Thank you for this trick! Hooking into \setupindenting may not be the best idea, because of backward compatibility. If Hans not feel like adding an extra inferface, my next proposal would be to add this redefined command to the t-french module on the garden http://modules.contextgarden.net/t-french I understand the problem of backward compatibility, and in this regard, it seems difficult to modify the 'always' option. But what about adding a completely new option? As this might be helpful to non french people too, modifying the t-french module only would be a pity (according to me, of course). Best wishes, Taco ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] The point about theorems
Selon Aditya Mahajan [EMAIL PROTECTED]: On Wed, 30 Jan 2008, [EMAIL PROTECTED] wrote: Hi, I need to typeset theorems with ConTeXt, and I would like to get your advice before I begin. I read an interesting post about it on the dev list: Enhancements to core-des for theorems http://archive.contextgarden.net/message/20070601.055815.50e07e4d.en.html But I was unable to understand the very conclusion of it... Are there some particular commands concerning theorems? or is \setupenumerations the only solution? Enumerations have been enhanced to take care of theorems. See if the examples on the mailing list can get you started. Otherwise, just ask here. Thank you. Actually, I already have a question about the endmarker option. The following example doesn't produce any endmark. Am I missing anything? \defineenumeration[theorem][endmarker=X] \starttext \starttheorem Hello \stoptheorem \stoptext I will definitely document all the features of enumerations soon. That would be really great! I'd be among your first readers! 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Indenting (again!): a real problem in indentnext=yes
Hi, Sorry but I'm going to talk about indenting again. This time, it seems to me that there is really something wrong with the indentnext=yes option. Look at the following example, it speaks for itself (or at least I hope so). \setupindenting[yes,medium] \setupformulae[indentnext=yes] \starttext This is my first formula: \startformula x = 1, \stopformula and this line should not be indented because it's still in the same sentence. There is no line skip in the source file, and no new paragraph created. This is my second formula: \startformula x = 2. \stopformula This line has to be indented (and it is!), as this is truely a new paragraph. \stoptext The option indentnext=yes does not handle properly the first situation. What do you think? Thanks for your answers, and sorry to bother you again and again! Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: The option indentnext=yes does not handle properly the first situation. What do you think? That works for me as it should. My context: 2008.01.28, pdftex 1.40.5 What are your versions? I'm using the context package in debian sid: * context: 2008.01.02 * pdftex: 1.40.3 But I also tried with ConTeXt live, and the result is the same... Notice that the line after the first formula should NOT be indented. How is it with your installation? Best wishes, Taco ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting (again!): a real problem in indentnext=yes
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: The option indentnext=yes does not handle properly the first situation. What do you think? That works for me as it should. My context: 2008.01.28, pdftex 1.40.5 What are your versions? I'm using the context package in debian sid: * context: 2008.01.02 * pdftex: 1.40.3 But I also tried with ConTeXt live, and the result is the same... Notice that the line after the first formula should NOT be indented. How is it with your installation? Ah, misunderstood. You want \setupformulae[indentnext=auto] Thank you, Taco! And may I ask the difference with the 'yes' option? Is it documented somewhere? I'm having a real hard time understanding all the mechanisms of indenting in ConTeXt... Best wishes, Taco ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug in indenting after formula
Hi, It seems that a paragraph after a formula never gets indented, even with the option \setupindenting[yes,medium]. Is it a feature or a bug? Look at the following example: \setupindenting[yes,medium] \starttext Indented OK \startformula x = 0. \stopformula Not indented = bug? Indented OK \stoptext Thanks for your answers, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug in indenting after formula
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Hi, We had similar problems with indenting after floats (figures and tables) and after headings. Paragraphs after these kind of objects seem to refuse indenting. We tried several options including always or next with the \setupindenting and \indenting commands. Is there any possibility to indent paragraphs after floats, headings and equations? The most important of the block commands accept an indentnext key, for example: \setuptyping [indentnext=yes] \setupitemize [each] [indentnext=yes] \setupfloats [table] [indentnext=yes] \setupformulas [indentnext=yes] \setuphead [section] [indentnext=yes] Best wishes, Taco Thank you. In this case, it would be great to have an option in \setupindenting that enables all of these in one time. By the way, shouldn't it be the role of the 'always' option? It would make sense... Best regards, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Declare new math operators
Hi, Is there a way in ConTeXt to define new math operators as with \DeclareMathOperators of AMSlatex? Thanks for your answers, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Declare new math operators
Selon Taco Hoekwater [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Hi, Is there a way in ConTeXt to define new math operators as with \DeclareMathOperators of AMSlatex? If I understand correctly, you want to use this command: \definemathcommand [det] [limop] {\mfunction{det}} Best wishes, Taco Yes, precisely. Thank you! And sorry I didn't see the page on the wiki earlier. ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Superscript text size
Selon Aditya Mahajan [EMAIL PROTECTED]: On Tue, 22 Jan 2008, [EMAIL PROTECTED] wrote: Selon Aditya Mahajan [EMAIL PROTECTED]: On Mon, 21 Jan 2008, [EMAIL PROTECTED] wrote: Hi, The superscript in expressions like $R^N$ seems to be typeset with a bigger font size in ConTeXt than in LaTeX. Is it the wanted behaviour? From the typographic point of view, which is the best of the two renderings? Thanks for your advice, That should not happen. I cannot see the different from my eyes. Here is my example. In both cases, bodyfont is 10pt, and scriptsize is 7pt. Do you see the differece? ConTeXT: \setupbodyfont[10pt] \starttext $R^N$ \stoptext LaTeX: \documentclass{minimal} \usepackage{lmodern} \begin{document} $R^N$ \end{document} As far as my eyes can see, the results are the same with 10pt and 11pt as document text size, but not with 12pt. Your two examples in 12pt look different to me. Am I wrong? In the latex example, you need to change the document class to article, if you want 12pt fonts. To my eye, there is no difference between the two. But pdffonts tells me that latex is using LM Math Italic 8pt while ConTeXt is using LM Math Italic 9pt. This is not conclusive evidence since the fonts could be scaled. Yes, it seemed to me that the font was a bit larger in ConTeXt than in LaTeX, so 9pt vs 8pt seems coherent with that feeling. Of course, I had to zoom to see a real difference... In any case, if you want to change ConTeXt's defaults for 12pt, you can redefine the following \unprotect \definebodyfontenvironment [\!!twelvepoint] [\s!text=\!!twelvepoint, \s!script=\!!ninepoint, \s!scriptscript=\!!sevenpoint, \c!x=\!!tenpoint, \c!xx=\!!eightpoint, \c!big=\!!fourteenpointfour, \c!small=\!!tenpoint] \protect This is just copied from font-ini.tex. You can use 12pt, 11pt etc rather than the predefined macros if you want. Thank you for this solution. I'll try it if I don't get used to the ConTeXt size. 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Indenting with ConTeXt
Hi, I'm very new to ConTeXt and I've got some (probably naive) questions about indenting. 1. According to the ConTeXt Excursion, using \setupindenting[medium] should lead to indented paragraph. And actually, at least for me, it doesn't... I saw examples on the wiki with \setupindenting[yes,medium]: this actually works, but the 'yes' option is not documented for the \setupindenting command on texshow. What am I missing here? Is the \indenting command needed even to indent the whole document? It is not what I understood from the Excursion... 2. I have not been able to indent the first paragraph after a \section (or any other titling) command. Isn't it the role of the 'first' option for \setupindenting? Is a trick needed to have it work? Thanks in advance for your answers, Morgan \setupindenting[medium,first] \starttext This paragraph is not indented. It becomes indented when I add the (undocumented?) 'yes' option to \setupindenting. \section{A section} How to get this one indented (in the whole document)? \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Superscript text size
Hi, The superscript in expressions like $R^N$ seems to be typeset with a bigger font size in ConTeXt than in LaTeX. Is it the wanted behaviour? From the typographic point of view, which is the best of the two renderings? Thanks for your advice, Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug with command \to in captions
Hi, The simple example: \starttext \placefigure[][]{$x \to 0$}{My figure} \stoptext does not compile, whether it's on my installation or on the live interface. It seems that there is a problem with using \to in captions... Or maybe I'm missing something... Morgan ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indenting with ConTeXt
Selon Wolfgang Schuster [EMAIL PROTECTED]: Hi Morgan, On Jan 21, 2008 2:02 PM, [EMAIL PROTECTED] wrote: Hi, I'm very new to ConTeXt and I've got some (probably naive) questions about indenting. 1. According to the ConTeXt Excursion, using \setupindenting[medium] should lead to indented paragraph. And actually, at least for me, it doesn't... I saw examples on the wiki with \setupindenting[yes,medium]: this actually works, but the 'yes' option is not documented for the \setupindenting command on texshow. What am I missing here? Is the \indenting command needed even to indent the whole document? It is not what I understood from the Excursion... The manuals are a little bit outdated and not every new feature and change in the setup is documented. I see. So the 'yes' option is now a true option of \setupindenting? 2. I have not been able to indent the first paragraph after a \section (or any other titling) command. Isn't it the role of the 'first' option for \setupindenting? Is a trick needed to have it work? This is a feature, because the first paragraph after a section shouldn't be intended by default, you could change this with the following setups. In french documents, common usage is to indent every paragraphs, including those following titles. Maybe this behaviour could be added in the \mainlanguage[fr] command? I guess that babel does it in LaTeX when the frenchb option is chosen. a. You want to enable indenting only for section commands. \setuphead[section][indentnext=yes] b. You want to enable indenting for all headers \setupheads[indentnext=yes] Thanks for this solution. This probably should be the default for french documents... Thanks in advance for your answers, Morgan \setupindenting[medium,first] \starttext This paragraph is not indented. It becomes indented when I add the (undocumented?) 'yes' option to \setupindenting. \section{A section} How to get this one indented (in the whole document)? \stoptext Greetings, 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Superscript text size
Selon Aditya Mahajan [EMAIL PROTECTED]: On Mon, 21 Jan 2008, [EMAIL PROTECTED] wrote: Hi, The superscript in expressions like $R^N$ seems to be typeset with a bigger font size in ConTeXt than in LaTeX. Is it the wanted behaviour? From the typographic point of view, which is the best of the two renderings? Thanks for your advice, That should not happen. I cannot see the different from my eyes. Here is my example. In both cases, bodyfont is 10pt, and scriptsize is 7pt. Do you see the differece? ConTeXT: \setupbodyfont[10pt] \starttext $R^N$ \stoptext LaTeX: \documentclass{minimal} \usepackage{lmodern} \begin{document} $R^N$ \end{document} As far as my eyes can see, the results are the same with 10pt and 11pt as document text size, but not with 12pt. Your two examples in 12pt look different to me. Am I wrong? ___ 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 : https://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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___