[NTG-context] Float placement (again)
I sent a question to the list about float placement, but it was marked as spam (at a guess due to the ASCII art). For those that didn't see it because of that, it's in the archives: http://article.gmane.org/gmane.comp.tex.context/82995 Tet ___ 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] [***SPAM***] Float placement
Hi, adding 'force' ([here,force]) should help 'here'. (sorry for the pun) http://wiki.contextgarden.net/Command/placefloat Peter Am 15.06.2013 00:31, schrieb Tethys: I'm trying to typeset a book. It has two columns, and some floating diagrams. My problem is that the floats aren't going where I want them to and I can't work out how to fix it. My input source looks something like: \startcolumnset[foo] \subject{Blah} \placefigure[here]{First diagram} {\externalfigure[diagram1.jpg][width=2.3in]} \placefigure[here]{Second diagram} {\externalfigure[diagram2.jpg][width=2.3in]} \placefigure[here]{Third diagram} {\externalfigure[diagram3.jpg][width=2.3in]} What I expect to get out is a page something like this (excuse the ASCII graphics): +-+ | | | Blah | | | | | | | | +--+ | | | | | | | | | | +--+ | | | | | | | | | | | | | | | | | | | | | | +--+ | | | | First diagram | | | | +--+ | | Third diagram | | | | | | | | +--+ | | | | | | | | | | | | | | +--+ | | Second diagram| | | | | | | | | +-+ What I'm actually getting out is this: +-+ | | | Blah +--+ | | | | | | | | | | | | | | +--+ | | Second diagram | | | | +--+ +--+ | | | | | | | | | | | | | | | | | | | | +--+ | | | | First diagram | | | | | | | | | | | | | | | | +--+ | | Third diagram | | | | | | | | | | | | | | | | | | | | | +-+ Even though there is sufficient space in the first column, the second float is always being moved up to the top of the second column. I've tried pretty much every combination of here, force and always as the location keyword for the \placefloat, but it doesn't make any difference. Any idea what I can do to get the placement I want? The deadline for going to press is rapidly approaching and I'm getting a little concerned! Thanks, Tet ___ 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
Re: [NTG-context] Float placement
Peter Rolf writes: adding 'force' ([here,force]) should help 'here'. (sorry for the pun) http://wiki.contextgarden.net/Command/placefloat Yes, it should. But I tried that and it didn't work. Tet ___ 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] Including a large SVG image
My question was in error ... All the time I overlooked the double .svg in the argument to \externalfigure for my last (this) plot. Sorry for the fuss! On 10-06-13 12:37, luigi scarso wrote: On Mon, Jun 10, 2013 at 12:26 PM, Sander Maijers s.n.maij...@student.ru.nl mailto:s.n.maij...@student.ru.nl wrote: Thanks for your tests. I do not get the PDF intermediate file, I can only produce it manually. Inkscape 0.48.4 r9939 (May 20 2013) ConTeXt 2013.06.07 12 tel:2013.06.07%2012:25 I used this code: \placefigure [force] [scatterplot_of_WER_vs_PPL___baseline] {Scatterplot of WER vs. perplexity (baseline)} {\externalfigure[/tmp/__scatterplot_of_WER_vs_PPL.svg.__svg][factor=fit]} I use it in a big document with all kinds of floats, and this is the last of a 3 graphs with 'force' placement on a row. Also I want to use A3 landscape page dimensions, but now it is fit to an A4 portrait page and that does not work either. you should have m_k_i_v_scatterplot_of_WER_vs_PPL.svg.pdf somewhere -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ 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] ContML module?
I use a very recent version of ConTeXt MKIV, and I was following the instructions on this Wiki page: http://wiki.contextgarden.net/Mixing_XML_and_ConTeXt . However the contml module cannot be found and the hyperlink to it on the Wiki page is invalid. ___ 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] ContML module?
On Jun 15, 2013, at 4:34 PM, Sander Maijers s.n.maij...@student.ru.nl wrote: I use a very recent version of ConTeXt MKIV, and I was following the instructions on this Wiki page:http://wiki.contextgarden.net/Mixing_XML_and_ConTeXt . However the contml module cannot be found and the hyperlink to it on the Wiki page is invalid. Which is why this page can be found under Documents about XML in MKII (obsolete). This will not work with Mkiv. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ContML module?
On 15-06-13 16:34, Sander Maijers wrote: I use a very recent version of ConTeXt MKIV, and I was following the instructions on this Wiki page: http://wiki.contextgarden.net/Mixing_XML_and_ConTeXt . However the contml module cannot be found and the hyperlink to it on the Wiki page is invalid. ___ 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 ___ I now see that that Wiki page relates to MkII. Is the most straightforward way to import an XML/HTML-like table from an external file into a ConTeXt MkIV document the method described in chapter 12 XML in xtables-mkiv.pdf (from http://pragma-ade.com/show-man-47.htm)? ___ 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] ContML module?
On 15-06-13 16:43, Schmitz Thomas A. wrote: On Jun 15, 2013, at 4:34 PM, Sander Maijers s.n.maij...@student.ru.nl wrote: I use a very recent version of ConTeXt MKIV, and I was following the instructions on this Wiki page:http://wiki.contextgarden.net/Mixing_XML_and_ConTeXt . However the contml module cannot be found and the hyperlink to it on the Wiki page is invalid. Which is why this page can be found under Documents about XML in MKII (obsolete). This will not work with Mkiv. I did not visit the page from the main XML page, but via Google. In the page itself there is no mention of MkII. By the way, the dead link to the old module shouldn't be there in any case. Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ContML module?
On Jun 15, 2013, at 4:47 PM, Sander Maijers s.n.maij...@student.ru.nl wrote: I did not visit the page from the main XML page, but via Google. In the page itself there is no mention of MkII. By the way, the dead link to the old module shouldn't be there in any case. OK, then thanks for fixing this! Thomas ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] UWIN?
-Original Message- My changes were simple - I used the setuptex file that came with standalone, and tweaked it ever so slightly. https://gist.github.com/gatesphere/0afaf5c2c647430ff653 So basically all you did was replacing platform detection with platform=mswin and commented out three lines of code that notify about the change? (Did you just find those lines annoying or did they actually fail to work?) Just curious: what does uname -s uname -m return on cygwin or what is the best way to detect windows in shell? (I believe that should be easy enough.) [Bill Meahan] UWIN is available here: http://www2.research.att.com/~gsf/download/ The site doesn't seem to be up on weekends, though. Open Source with Eclipse license. On my system which is a Athlon 64 X2 (dual core) running Vista (32 bit), uname -s gives UWIN-VI uname -m gives i1586 echo $SHELL gives /usr/bin/ksh Would probably want to do a leading match on the UWIN and a trailing match on the 86 parts since the rest will vary based on cpu and operating system edition. ___ 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] Float placement
Am 15.06.2013 15:29, schrieb Tethys: Peter Rolf writes: adding 'force' ([here,force]) should help 'here'. (sorry for the pun) http://wiki.contextgarden.net/Command/placefloat Yes, it should. But I tried that and it didn't work. Have you also tried 'force' alone? If that doesn't work, please make a small (complete) example. Tet ___ 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] embedding ConTeXt code in an xtable
I am now using xtable to have an XMLish document to store a table. How I can embed ConTeXt code like $\Delta{}N_{\text{test}}$ in the external XML file file with the table? In other words, having mathematical notiation in the table header? I tried various things such as: \expanded{\xmlflush{#1}} ___ 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] [***SPAM***] Celsius or Me
I am using the latest TeXLive update version of MKIV (used tlmgr to update). In a compile time message Context says that it doesn't like: ! Argument of \celsius has an extra }. system tex error on line 15 in file degree-problem.tex: Argument of ... example macro document \starttext Temperature is in \celsius which seem cooler than degrees K, but really are not. \startfact \fact specific heat for water ... \celsius is much greater than air \\ x \\ y \\ \stopfact \startlegend \leg Temperature \\ 5 \celsius\\ xyz \\ \stoplegend \startformula \frac{j}{ m^2 \cdot s \cdot \celsius } \stopformula A formula by itself: \frac{j}{m^2\cdot s\cdot \celsius} continuing text. \blank A formula inlined: $ \frac{j}{m^2\cdot s\cdot \celsius} $ continuting text. \stoptext end of example code The bad things that happer: Word mangling in the first threeconstructs: -- which -- w◦Chich is-- i◦Cs ???◦Cxyz ? should the ◦C be separated from the xyz in a fact block? \celsius is getting cut out of the formula and put in after a newline in the last constructs. This may be an affect of the above problem, but I don't know. please take a look at this. I just found out about a unit package, but this should work. Thank. ___ 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] [***SPAM***] Celsius or Me
Am 15.06.2013 um 18:17 schrieb d.henman dhen...@gmail.com: I am using the latest TeXLive update version of MKIV (used tlmgr to update). In a compile time message Context says that it doesn't like: ! Argument of \celsius has an extra }. system tex error on line 15 in file degree-problem.tex: Argument of ... example macro document \starttext Temperature is in \celsius which seem cooler than degrees K, but really are not. \startfact \fact specific heat for water ... \celsius is much greater than air \\ x \\ y \\ \stopfact \startlegend \leg Temperature \\ 5 \celsius\\ xyz \\ \stoplegend \startformula \frac{j}{ m^2 \cdot s \cdot \celsius } \stopformula A formula by itself: \frac{j}{m^2\cdot s\cdot \celsius} continuing text. \blank A formula inlined: $ \frac{j}{m^2\cdot s\cdot \celsius} $ continuting text. \stoptext end of example code The bad things that happer: Word mangling in the first threeconstructs: -- which -- w◦Chich is-- i◦Cs ???◦Cxyz ? should the ◦C be separated from the xyz in a fact block? \celsius is getting cut out of the formula and put in after a newline in the last constructs. This may be an affect of the above problem, but I don't know. please take a look at this. I just found out about a unit package, but this should work. The \celsius command expects a argument (e.g. \celsius{5}) which is missing in your document. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] embedding ConTeXt code in an xtable
Am 15.06.2013 um 18:01 schrieb Sander Maijers s.n.maij...@student.ru.nl: I am now using xtable to have an XMLish document to store a table. How I can embed ConTeXt code like $\Delta{}N_{\text{test}}$ in the external XML file file with the table? In other words, having mathematical notiation in the table header? I tried various things such as: \expanded{\xmlflush{#1}} 1. Have you looked at the cals table module? 2. Can you provide a example for your problem? 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 ___
Re: [NTG-context] Alignment of inmframed
On Sat, 15 Jun 2013, Hans Hagen wrote: On 6/14/2013 9:06 PM, Aditya Mahajan wrote: \inmframed (and by extension \definemathframed[...][location=low,...]) does not get the right vertical space. For example, \starttext \startformula \ln (1+x) = \inmframed{x - {\frac {x^2}{2}}} + \frac{x^3}{3}-\cdots. \stopformula \stoptext Note that the two fractions do not align at the horizontal bar. Is it possible for all expressions to be aligned at the math axis? Aditya I'll add it Thanks. 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 ___