Re: [NTG-context] item bullet processing / font problem
On 6/18/2013 4:23 AM, Aditya Mahajan wrote: Perhaps we need to add a FAQ on the wiki for this error (and maybe change the default symbolset to text symbols rather than math symbols) A follow up on the lm / texgyre project will add the most relevant symbols to the text fonts (for this purpose; the reason to trigger this project was that it makes no sense in these times to get symbols from math fonts). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Vertically Aligning inmargin Text to Figure
On 6/18/2013 6:11 AM, Malte Stien wrote: Wolfgang, I have to come back to this solution you provided me with some time ago. I have more reading in the meantime and have gained a deeper understanding of how this actually works. However... 1. I noticed that the text in the margin is not actually quite aligned with the top of the figure; I think the text starts at the baseline of the line that would be there if the figure was not, if you know what I am getting at. That is at 12pt font size the text is about 12pt below the top of the figure. I tried to fix that with some negative \vskip, but that does not seem to work. Could you suggest an alternative please and maybe even explain why the code below does not compile You can set the text in the margin with the second argument of \startplacefigure. \define\FigureText {\dowithnextbox {\startlinealignment[middle] \copy\nextbox\rlap{\hskip\rightmargindistance\vskip-12pt\framed[frame=off,width=\rightmarginwidth,height=\nextboxht]{\floatuserdataparameter{text}}} \stoplinealignment} \hbox} 2. Currently the code always uses the right margin; I need it to use the outer margin. I experimented swapping the \rlap for \llap, but then I still have to negatively \hskip the entire text width to the left. Even if I got that to work, I will have to wrap everything in an if-statement and have one branch for left and one for right pages. Right? How do I find out whether I am on a left or a right page? In other words, how would the if-statement look like. \setuppagenumbering[alternative=doublesided] \starttext \definelayer [extrafiguretextlayer:l] [width=\overlaywidth, height=\overlayheight, corner={right,top}, location={right,bottom}, x=-1cm] \definelayer [extrafiguretextlayer:r] [width=\overlaywidth, height=\overlayheight, corner={left,top}, location={left,bottom}, x=-1cm] \startsetups extrafiguretext \signalouterrealign \setlayerframed [extrafiguretextlayer:\rightorleftpageaction rl] [] [width=\marginwidth, align={lohi,middle}, foregroundstyle=\tx] {\floatuserdataparameter{text}} \flushlayer [extrafiguretextlayer:\rightorleftpageaction rl] \stopsetups \defineoverlay [extrafiguretext] [\setups{extrafiguretext}] \setupfloat [figure] [background={foreground,extrafiguretext}] \dorecurse {20} { \startplacefigure[title=Dummy figure][text={margin dummy text #1}] \externalfigure[dummy][width=.8\textwidth] \stopplacefigure } \stoptext Thank you, Malte. -- “The Electric Monk was a labour-saving device, like a dishwasher or a video recorder... Electric Monks believed things for you, thus saving you what was becoming an increasingly onerous task, that of believing all the things the world expected you to believe.” ― Douglas Adams, Dirk Gently's Holistic Detective Agency On 29/04/2013, at 9:04 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 29.04.2013 um 09:33 schrieb Malte Stien ma...@stien.de: Hi, I need to associate a bit of text with a figure in a book. The text is not---and cannot be---the figure caption (it's providing some explanation with respect to some labels in the figure). I have tried the following based on some other post on the mailing list: \definepapersize[eightsquare][width=8in, height=8in] \setuppapersize[eightsquare] \setuplayout[ location=doublesided, marking=on, backspace=43mm, leftmargin=18mm, leftmargindistance=4mm, rightmargin=35mm, rightmargindistance=4mm, rightedgewidth=6mm, topspace=12mm, header=15mm, footer=15mm, height=179mm, width=115mm ] \starttext \startplacefigure[location=force, title={First dummy caption}] \inmargin{First margin dummy} \externalfigure[dummy][width=115mm] \stopplacefigure \stoptext However, that results in the text being down the bottom of the figure. I need the text to be vertically aligned with the top of the figure. I have attached the resulting PDF for illustration purposes (is that okay on this mailing list? It's very small). Any hints would be much appreciated. You can set the text in the margin with the second argument of \startplacefigure. \define\FigureText {\dowithnextbox {\startlinealignment[middle] \copy\nextbox\rlap{\hskip\rightmargindistance\framed[frame=off,width=\rightmarginwidth,height=\nextboxht]{\floatuserdataparameter{text}}} \stoplinealignment} \hbox} \setupfloat[figure][command=\FigureText] \starttext \startplacefigure[title=Dummy figure][text=Margin dummy] \externalfigure[dummy][width=.8\textwidth] \stopplacefigure \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the
Re: [NTG-context] Vertically Aligning inmargin Text to Figure
Am 18.06.2013 um 06:11 schrieb Malte Stien ma...@stien.de: 2. Currently the code always uses the right margin; I need it to use the outer margin. I experimented swapping the \rlap for \llap, but then I still have to negatively \hskip the entire text width to the left. Even if I got that to work, I will have to wrap everything in an if-statement and have one branch for left and one for right pages. Right? How do I find out whether I am on a left or a right page? In other words, how would the if-statement look like. \define\FigureText {\dowithnextbox {\signalrightpage \doifrightpageelse\donetrue\donefalse \scratchdimen\nextboxht \hbox\bgroup \ifdone \midaligned{\flushnextbox}\rlap{\hskip\rightmargindistance\framed[frame=off,width=\rightmarginwidth,height=\scratchdimen]{\floatuserdataparameter{text}}}% \else \llap{\framed[frame=off,width=\rightmarginwidth,height=\scratchdimen]{\floatuserdataparameter{text}}\hskip\leftmargindistance}\midaligned{\flushnextbox}% \fi \egroup} \hbox} \setupfloat[figure][command=\FigureText] \setuppagenumbering[alternative=doublesided] \starttext \showgrid \dorecurse{4}{\input knuth\par} \startplacefigure[title=Dummy figure][text=Margin dummy] \externalfigure[dummy][width=.8\textwidth] \stopplacefigure \dorecurse{4}{\input knuth\par} \startplacefigure[title=Dummy figure][text=Margin dummy] \externalfigure[dummy][width=.8\textwidth] \stopplacefigure \dorecurse{4}{\input knuth\par} \startplacefigure[title=Dummy figure][text=Margin dummy] \externalfigure[dummy][width=.8\textwidth] \stopplacefigure \dorecurse{4}{\input knuth\par} \startplacefigure[title=Dummy figure][text=Margin dummy] \externalfigure[dummy][width=.8\textwidth] \stopplacefigure \dorecurse{4}{\input knuth\par} \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 ___
[NTG-context] Context group and faith
I got my monthly credit card statement which contains the following lines: 16.05.13 PAYPAL *CONTEXT . LUX Religious organisation It's true, I believe in ConTEXt, but still... Cheers, Jörg ___ 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] Context group and faith
On Tue, 18 Jun 2013 10:56:15 +0200 Jörg Hagmann joerg.hagm...@unibas.ch wrote: It's true, I believe in ConTEXt, but still... A link to the bible: http://pmrb.free.fr/contextref.pdf :) ___ 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] Context group and faith
On 6/18/2013 10:56 AM, Jörg Hagmann wrote: I got my monthly credit card statement which contains the following lines: 16.05.13 PAYPAL *CONTEXT . LUX Religious organisation It's true, I believe in ConTEXt, but still... so .. did someone hack your card? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context group and faith
On Tue, Jun 18, 2013 at 10:56 AM, Jörg Hagmann joerg.hagm...@unibas.chwrote: I got my monthly credit card statement which contains the following lines: 16.05.13 PAYPAL *CONTEXT . LUX Religious organisation It's true, I believe in ConTEXt, but still... The official informations are on http://group.contextgarden.net/contact.shtml I 've never seen Religious organisation -- luigi ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context group and faith
On 6/18/2013 11:01 AM, luigi scarso wrote: On Tue, Jun 18, 2013 at 10:56 AM, Jörg Hagmann joerg.hagm...@unibas.ch mailto:joerg.hagm...@unibas.ch wrote: I got my monthly credit card statement which contains the following lines: 16.05.13 PAYPAL *CONTEXT . LUX Religious organisation It's true, I believe in ConTEXt, but still... The official informations are on http://group.contextgarden.net/contact.shtml I 've never seen Religious organisation well, google for 'context conference' and one can easily end up in a quite different spot than brejlov (also much more expensive) and credit cards payments would show it Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context group and faith
On Tue, Jun 18, 2013 at 11:06 AM, Hans Hagen pra...@wxs.nl wrote: On 6/18/2013 11:01 AM, luigi scarso wrote: On Tue, Jun 18, 2013 at 10:56 AM, Jörg Hagmann joerg.hagm...@unibas.ch mailto:joerg.hagmann@unibas.**ch joerg.hagm...@unibas.ch wrote: I got my monthly credit card statement which contains the following lines: 16.05.13 PAYPAL *CONTEXT . LUX Religious organisation It's true, I believe in ConTEXt, but still... The official informations are on http://group.contextgarden.**net/contact.shtmlhttp://group.contextgarden.net/contact.shtml I 've never seen Religious organisation well, google for 'context conference' and one can easily end up in a quite different spot than brejlov (also much more expensive) and credit cards payments would show it I meant in payments related to ConTeXt (meetings , books, subscription and so on) . Maybe paypal as some particular codes, I don't know. Btw, ConTeXt User Meeting 2013 is the second hit for me . ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context group and faith
On Tue, Jun 18, 2013 at 10:56 AM, Jörg Hagmann wrote: I got my monthly credit card statement which contains the following lines: 16.05.13 PAYPAL *CONTEXT . LUX Religious organisation It's true, I believe in ConTEXt, but still... I thought you were joking at first, but I see now that that's actually the date when you paid the membership fee. I wouldn't be surprised if something was lost in translation (we are using English interface for the French PayPal), but all the settings remotely related to what could be displayed are the following: Business type: Non Profit Organization Category: Nonprofit Subcategory: Educational Anyway, I'm blessed that this is what PayPal displays ;) ;) ;) Mojca PS: Answering Hans - no, he wasn't hacked. That's indeed the exact date when he payed our memberiship fee. How on earth that ended up being displayed as Religious organisation, I have no clue. I mean ... if Arthur was the one opening the PayPal account, I could even imagine he would be eager to set the type of the group to religious. I faintly remember him talking about The Church of TeX, its leader (DEK), the holly bible (The TeXbook) and other details. PPS: but I see that Church of Tex has already been registered somewhere in TeXas ... ___ 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] Context group and faith
On Tue, 18 Jun 2013 11:06:28 +0200 Hans Hagen pra...@wxs.nl wrote: well, google for 'context conference' and one can easily end up in a quite different spot than brejlov (also much more expensive) Brejlov comes in 5th place... Maybe google orders by cost; indeed, they *certainly* weight by potential gain! Alan ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] item bullet processing / font problem
Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing. I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple: \usemodule[simplefonts] \setmainfont[ipaexm] \mainlanguage[ja] \setmathfont[modern] \definesymbol[5][$\diamond$] \starttext \startitemize[5,columns,unpacked,two,broad] \item 此の行にbulletを打つ。 \item One more column for good measure \item 此れは何処に置かれるでしょうか \stopitemize \stoptext (bullet-problem.tex ConTeXt ver: 2012.05.30 11:26 MKIV fmt: 2013.3.17 int: english/english system cont-new.mkiv loaded (/usr/local/texlive/2012/texmf-dist/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system bullet-problem.top loaded system options start used options used options % runtime options files (command line driven) used options \unprotect used options % feedback and basic job control used options % handy for special styles used options \startluacode used options document = document or { } used options document.arguments={ used options [pdf]=true, used options } used options document.files={ used options bullet-problem.tex, used options } used options \stopluacode used options % process info used options \setupsystem[inputfile=bullet-problem.tex] used options \setupsystem[\c!n=1,\c!m=1] used options % modes used options % options (not that important) used options \startsetups *runtime:options used options \stopsetups used options % styles and modules used options \startsetups *runtime:modules used options \stopsetups used options % done used options \protect \endinput system options stop used options (bullet-problem.top) fontslatin modern fonts are not preloaded languageslanguage en is active resolversmodules loaded: 'simplefonts' (/usr/local/texlive/2012/texmf-dist/tex/context/third/simplefonts/t-simplefonts.mkiv loading ConTeXt User Module / Simplefonts + /usr/local/texlive/2012/texmf-dist/tex/context/third/simplefonts/t-simplefonts.lua) fontstypescripts unknown: library 'loc' {/usr/local/texlive/2012/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/local/texlive/2012/texmf-dist/fonts/map/dvips/lm/lm-rm.map}{/usr/local/texlive/2012/texmf-dist/fonts/map/pdftex/context/mkiv-base.map} fontsdefining forced type otf of latinmodernmath-regular not found fontsdefining font with asked name 'latinmodernmath-regular' is not found using lookup 'file' fontsdefining unknown font latinmodernmath-regular, loading aborted fontsdefining unable to define latinmodernmath-regular.otf as [simplefonts:1-12pt-mm-mr--3] fontsdefining forced type otf of latinmodernmath-regular not found fontsdefining font with asked name 'latinmodernmath-regular' is not found using lookup 'file' fontsdefining unknown font latinmodernmath-regular, loading aborted fontsdefining unable to define latinmodernmath-regular.otf as [simplefonts:1-12pt-mm-mr--2] fontsdefining forced type otf of latinmodernmath-regular not found fontsdefining font with asked name 'latinmodernmath-regular' is not found using lookup 'file' fontsdefining unknown font latinmodernmath-regular, loading aborted fontsdefining unable to define latinmodernmath-regular.otf as [simplefonts:1-12pt-mm-mr--1] fontsdefining forced type otf of latinmodernmath-regular not found fontsdefining font with asked name 'latinmodernmath-regular' is not found using lookup 'file' fontsdefining unknown font latinmodernmath-regular, loading aborted fontsdefining unable to define latinmodernmath-regular.otf as [simplefonts:1-12pt-mm-mb--3] fontsdefining forced type otf of latinmodernmath-regular not found fontsdefining font with asked name 'latinmodernmath-regular' is not found using lookup 'file' fontsdefining unknown font latinmodernmath-regular, loading aborted fontsdefining unable to define latinmodernmath-regular.otf as [simplefonts:1-12pt-mm-mb--2] fontsdefining forced type otf of latinmodernmath-regular not found fontsdefining font with asked name 'latinmodernmath-regular' is not found using lookup 'file' fontsdefining unknown font latinmodernmath-regular, loading aborted
[NTG-context] [***SPAM***] Scaling large (annotated) MetaFun drawing
[Sorry about the previous null message.] Background: Typically I use MetaPost to create small figures, which I then can scale as needed in larger documents. These figures contain no text so I can simply use the .eps output of mpost as an inclusion. Recently, I have embarked on a large illustration replete with lots of text labels. It is a distilled architectural drawing intended for diagnostic and maintenance purposes. In it plumbing details are overlaid over a layout. For simplicity, I standardized on unit size of 1cm so that co-ordinates can easily map from physical dimensions with the unusual hybrid scale of 1cm=1ft ;).. Status: With this set unit size, my drawing has grown very large. My intent is to get it printed on one of the (U.S.) based architectural paper sizes, or if it can be made legible on U.S. Tabloid size paper (17 x 11).. My first successful approach (and where I stand right now) is to simply use \startMPpage and \stopMPpage to scale to the page. Thera are a couple of issues, though, with this approach. First, I want to add additional information to the page, other than what would be handled by MetaPost, e.g., some tables, etc. Even without this additional information, having the drawing scale to page size does not give adequate margin buffering and if there are some labels right at the edge, I have seen some clipping of the text. Objective: I would like to create a scalable drawing with all of its text labels so that I can scale appropriately to different page sizes, and also incorporate the illustration with other document elements. From what I have read at: http://wiki.contextgarden.net/MetaPost_in_ConTeXt I think what I need is something akin to \startuseMPgraphic with a scaling option if I want to include the code inline. Otherwise, the drawing is clipped on the page. Or perhaps I simply try to convert the existing PDF output to PS, and then include it? What I am hoping is to get a best practises workflow from the list so that I can simply adopt it. advTHANKSance. Sample: A MWE is found below: \setuppapersize[tabloid,landscape][tabloid,landscape] \starttext \setupMPinstance [metafun] [extensions=yes, initializations=yes, textstyle=bold] \startMPpage u:=1cm; pickup pencircle scaled 1pt; draw (5u,0u) {dir 90}..(0u,5u) {dir 180}; draw (0u,5u) .. (-1.5u,10.5u) {dir 90} .. (0u,16u); draw (0u,16u) {dir 0} .. (5u,21u) {dir 90}; draw (5u,21u) -- (39u,21u); draw (39u,21u) {dir 270} .. (42u,18u) {dir 0}; draw (42u,18u) .. (43.5u,10.5u) {dir 270} .. (42u,3u); draw (42u,3u) {dir 180} .. (39u,0u) {dir 270}; draw (39u,0u) -- (35u,0u); draw (35u,0u) .. (22u,3u) {dir 180} .. (9u,0u); draw (9u,0u) -- (5u,0u); label(btex AN ARCHITECTURAL ELEMENT etex, (22u,10.5u)); \stopMPpage \stoptext -- Pavneet Arora m: 647.406.6843 Waroc Informatikt: 416.937.9276 ___ 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] Context group and faith
Mojca Miklavec writes: On Tue, Jun 18, 2013 at 10:56 AM, Jörg Hagmann wrote: I got my monthly credit card statement which contains the following lines: 16.05.13 PAYPAL *CONTEXT . LUX Religious organisation It's true, I believe in ConTEXt, but still... I thought you were joking at first, but I see now that that's actually the date when you paid the membership fee. Ah, now I understand some of the answers! I am surprised that so many think a serious Swiss capable of making a joke. Cheers, Jörg ___ 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] Context group and faith
On 6/18/2013 4:53 PM, Jörg Hagmann wrote: Mojca Miklavec writes: On Tue, Jun 18, 2013 at 10:56 AM, Jörg Hagmann wrote: I got my monthly credit card statement which contains the following lines: 16.05.13 PAYPAL *CONTEXT . LUX Religious organisation It's true, I believe in ConTEXt, but still... I thought you were joking at first, but I see now that that's actually the date when you paid the membership fee. Ah, now I understand some of the answers! I am surprised that so many think a serious Swiss capable of making a joke. Beware, before you know, Mojca will add you to to her Swiss Context Guard. 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] Does the R-Module work (or how)?
Dear List, does the R module work? To be more specific m-r.tex. I tried to run the test named as Johan's test file and got the result below ! Undefined control sequence. system tex error on line 20 in file /home/erik/tmp/Glockner/t.tex: Undefined control sequence ... 10 11 \starttext 12 13 First a test of whether the workspace is persistent: 14 bla 15 16 \startR 17 a - bla 18 b - blabla 19 ls() 20 \stopR 21 22 One \R run ends, another begins. 23 24 \startR 25 ls() 26 \stopR 27 28 Now follows a hidden \R run which cleans the R workspace 29 30 \startRhidden \Rfile ^@-\TEXbufferfile {\Rbufferprefix \nofRfiles } argument texmfstart --ifchanged=\Rfile \space --direct R CMD BATCH -q --save --restore \ \executesystemcommand #1x-\ctxlua {os.execute([[#1 ]])} \stopR #-\doifmode {*\v!first }\runR \typefile {\Rfile .out} l.20 \stopR -- I'm using: OS: Debian 7.0 64Bit context --version: mtx-context | current version: 2013.06.10 22:51 R --version: R version 2.15.1 (2012-06-22) -- Roasted Marshmallows Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under the terms of the GNU General Public License versions 2 or 3. For more information about these matters see http://www.gnu.org/licenses/. Any hint, even doesn't work at the moment, will be welcome Thanks Erik ___ 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] Does the R-Module work (or how)?
On 2013-06-18, at 3:23 PM, Erik Margraf erik.marg...@gmail.com wrote: Dear List, does the R module work? To be more specific m-r.tex. I tried to run the test named as Johan's test file and got the result below ! Undefined control sequence. system tex error on line 20 in file /home/erik/tmp/Glockner/t.tex: Undefined control sequence ... 10 11 \starttext 12 13 First a test of whether the workspace is persistent: 14 bla 15 16 \startR 17 a - bla 18 b - blabla 19 ls() 20 \stopR 21 22 One \R run ends, another begins. 23 24 \startR 25 ls() 26 \stopR 27 28 Now follows a hidden \R run which cleans the R workspace 29 30 \startRhidden \Rfile ^@-\TEXbufferfile {\Rbufferprefix \nofRfiles } argument texmfstart --ifchanged=\Rfile \space --direct R CMD BATCH -q --save --restore \ \executesystemcommand #1x-\ctxlua {os.execute([[#1 ]])} \stopR #-\doifmode {*\v!first }\runR \typefile {\Rfile .out} l.20 \stopR -- I'm using: OS: Debian 7.0 64Bit context --version: mtx-context | current version: 2013.06.10 22:51 R --version: R version 2.15.1 (2012-06-22) -- Roasted Marshmallows Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under the terms of the GNU General Public License versions 2 or 3. For more information about these matters see http://www.gnu.org/licenses/. Any hint, even doesn't work at the moment, will be welcome You can use the filter module https://github.com/adityam/filter/wiki/R Aditya___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] placing an xtable
Dear list, I'd like to place a table centered (both horizontally and vertically) on an empty page. Is there no option from the xtable itself to achieve that? I have tried \startxtable[location=lohi], but this doesn't seem to affect to the placement of the table itself. Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] placing an xtable
Am 18.06.2013 um 22:26 schrieb Pablo Rodríguez oi...@web.de: Dear list, I'd like to place a table centered (both horizontally and vertically) on an empty page. Is there no option from the xtable itself to achieve that? I have tried \startxtable[location=lohi], but this doesn't seem to affect to the placement of the table itself. Many thanks for your help, You can use a page float to place table: \starttext \input ward \startplacetable[location={page,none}] \startxtable \startxrow \startxcell Table content!\stopxcell \stopxrow \stopxtable \stopplacetable \stoptext or when you don’t mind a page break before the table a frame can be used: \defineframedtext [XFRAMED] [width=max, height=max, align={middle,lohi}, offset=overlay, frame=off, before=\page, % before=\page\noheaderandfooterlines, after=\page] \starttext \input ward \startXFRAMED \startxtable \startxrow \startxcell Table content!\stopxcell \stopxrow \stopxtable \stopXFRAMED \input ward \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 ___
[NTG-context] background color for makeups
Dear list, the only way I found to center content horizontally and vertically on a page is a makeup, such as: \startstandardmakeup[align=middle] content to be centered \stopstandardmakeup I need to be able to change the background on some given pages. Which is the way to do this? I have tried with (what I understand from) setups: \startsetups[setups:redcolor] \setupbackgrounds[page][background=color,backgroundcolor=red] \stopsetups \startstandardmakeup[setups=setups:redcolor] content \stopstandardmakeup But it didn't work. Could you help me with this? Many thanks for your help, Pablo -- http://www.ousia.tk ___ 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] luajittex not able to find some fonts
Dear list, I wonder whether this would be interesting to the luajittex developers, but for some strange reason when I invoke context with --engine=luajittex, only some system fonts are found. My guess is that with luajittext the most recently installed system fonts aren't the ones not found. Just in case it might help, Pablo -- http://www.ousia.tk ___ 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] placing an xtable
On 18/06/13 22:53, Wolfgang Schuster wrote: Am 18.06.2013 um 22:26 schrieb Pablo Rodríguez oi...@web.de: Dear list, I'd like to place a table centered (both horizontally and vertically) on an empty page. You can use a page float to place table: [...] or when you don’t mind a page break before the table a frame can be used: [...] Many thanks, Wolfgang. Both options worked like charm. Pablo -- http://www.ousia.tk ___ 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] NTG-context] How to hack the lua files
I haven't been using the project structure. From your question, I am inferring that this might help. At present I have treated the files as two separate documents. I didn't take too much time looking at how to set up the project structure because it wasn't clear that I needed it. But I can see how this might impact cross references between documents. -Lance On 6/17/2013 3:25 PM, Lance Larsen wrote: Hans, Thankyou for your suggestion of using the \usereferences tag to reference formulas in another document. This is a good solution. However the example below doesn't give usable results because the references to the external formula output by test2.tex does not include the chapter number: Do you use the project structure? components and such? Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] luajittex not able to find some fonts
On 6/18/2013 11:05 PM, Pablo Rodríguez wrote: Dear list, I wonder whether this would be interesting to the luajittex developers, but for some strange reason when I invoke context with --engine=luajittex, only some system fonts are found. My guess is that with luajittext the most recently installed system fonts aren't the ones not found. Just in case it might help, maybe there is something wrong in your setup as it works ok here maybe deleting the cache helps Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] background color for makeups
On 6/18/2013 10:58 PM, Pablo Rodríguez wrote: \startstandardmakeup[align=middle] content to be centered \stopstandardmakeup I need to be able to change the background on some given pages. Which is the way to do this? I have tried with (what I understand from) setups: \startsetups[setups:redcolor] \setupbackgrounds[page][background=color,backgroundcolor=red] \stopsetups \startstandardmakeup[setups=setups:redcolor] content \stopstandardmakeup why not just \startstandardmakeup[align=middle] content to be centered \stopstandardmakeup \setupbackgrounds[page][background=color,backgroundcolor=red] \startstandardmakeup[align=middle] content \stopstandardmakeup -- - 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] item bullet processing / font problem
On 6/18/2013 1:38 PM, hwit...@gmail.com wrote: Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing. I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple: the names of lm math fonts have changed a few times ... if you use the file: prefix and goodie files are loaded the logic makes sure that at least one is found so, the question is: does simplefonts (the one on your machine) define the lm math font in the right way (read: adapted to the latest fashion) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] [***SPAM***] Scaling large (annotated) MetaFun drawing
On 6/18/2013 3:13 PM, Pavneet Arora wrote: [Sorry about the previous null message.] Background: Typically I use MetaPost to create small figures, which I then can scale as needed in larger documents. These figures contain no text so I can simply use the .eps output of mpost as an inclusion. Recently, I have embarked on a large illustration replete with lots of text labels. It is a distilled architectural drawing intended for diagnostic and maintenance purposes. In it plumbing details are overlaid over a layout. For simplicity, I standardized on unit size of 1cm so that co-ordinates can easily map from physical dimensions with the unusual hybrid scale of 1cm=1ft ;).. Status: With this set unit size, my drawing has grown very large. My intent is to get it printed on one of the (U.S.) based architectural paper sizes, or if it can be made legible on U.S. Tabloid size paper (17 x 11).. My first successful approach (and where I stand right now) is to simply use \startMPpage and \stopMPpage to scale to the page. Thera are a couple of issues, though, with this approach. First, I want to add additional information to the page, other than what would be handled by MetaPost, e.g., some tables, etc. Even without this additional information, having the drawing scale to page size does not give adequate margin buffering and if there are some labels right at the edge, I have seen some clipping of the text. Objective: I would like to create a scalable drawing with all of its text labels so that I can scale appropriately to different page sizes, and also incorporate the illustration with other document elements. From what I have read at: http://wiki.contextgarden.net/MetaPost_in_ConTeXt I think what I need is something akin to \startuseMPgraphic with a scaling option if I want to include the code inline. Otherwise, the drawing is clipped on the page. you can use the \scale command \scale[width=1cm]{\useMPgraphic{somename}} it takes the same options as externalfigure Or perhaps I simply try to convert the existing PDF output to PS, and then include it? What I am hoping is to get a best practises workflow from the list so that I can simply adopt it. advTHANKSance. Sample: A MWE is found below: \setuppapersize[tabloid,landscape][tabloid,landscape] \starttext \setupMPinstance [metafun] [extensions=yes, initializations=yes, textstyle=bold] \startMPpage u:=1cm; pickup pencircle scaled 1pt; draw (5u,0u) {dir 90}..(0u,5u) {dir 180}; draw (0u,5u) .. (-1.5u,10.5u) {dir 90} .. (0u,16u); draw (0u,16u) {dir 0} .. (5u,21u) {dir 90}; draw (5u,21u) -- (39u,21u); draw (39u,21u) {dir 270} .. (42u,18u) {dir 0}; draw (42u,18u) .. (43.5u,10.5u) {dir 270} .. (42u,3u); draw (42u,3u) {dir 180} .. (39u,0u) {dir 270}; draw (39u,0u) -- (35u,0u); draw (35u,0u) .. (22u,3u) {dir 180} .. (9u,0u); draw (9u,0u) -- (5u,0u); label(btex AN ARCHITECTURAL ELEMENT etex, (22u,10.5u)); \stopMPpage \stoptext -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] item bullet processing / font problem
Am 18.06.2013 um 23:41 schrieb Hans Hagen pra...@wxs.nl: On 6/18/2013 1:38 PM, hwit...@gmail.com wrote: Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing. I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple: the names of lm math fonts have changed a few times ... if you use the file: prefix and goodie files are loaded the logic makes sure that at least one is found so, the question is: does simplefonts (the one on your machine) define the lm math font in the right way (read: adapted to the latest fashion) The simplefonts module passes the \setmathfont argument to the \definetypeface command and the default setup should be similar to the following example. I already sent the example once but got no answer what’s the result from it. \definetypeface[test][rm][serif][latin-modern][default] \definetypeface[test][mm][math] [latin-modern][default] \setupbodyfont[test] \starttext Text and $math$. \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 ___
Re: [NTG-context] item bullet processing / font problem
The result of adding: \definetypeface[test][rm][serif][latin-modern][default] \definetypeface[test][mm][math] [latin-modern][default] \setupbodyfont[test] Make no difference whatsoever. Sorry, but I can't typeset math unless various parameters have been set. This is normally done by loading special math fonts into the math family slots. Your font set is lacking at least the parameter mentioned earlier. ! Math error: parameter \Umathquad\displaystyle is not set. system tex error on line 20 in file bullet-problem.tex: Math error: parameter \Umathquad\displaystyle is not set ... As pointed out an arument is not being passed through to a lower level and apparently in this case the argument is probably NULL or not valid. However adding: \setmathfont[modern] did allow normal default symbols working. Only problem now is a halting compile with error messages and inability to use $/diamond$ (and other symbols) as bullet shapes/characters. Regards Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Am 18.06.2013 um 23:41 schrieb Hans Hagen pra...@wxs.nl: On 6/18/2013 1:38 PM, hwit...@gmail.com wrote: Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing. I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple: the names of lm math fonts have changed a few times ... if you use the file: prefix and goodie files are loaded the logic makes sure that at least one is found so, the question is: does simplefonts (the one on your machine) define the lm math font in the right way (read: adapted to the latest fashion) The simplefonts module passes the \setmathfont argument to the \definetypeface command and the default setup should be similar to the following example. I already sent the example once but got no answer what’s the result from it. \definetypeface[test][rm][serif][latin-modern][default] \definetypeface[test][mm][math] [latin-modern][default] \setupbodyfont[test] \starttext Text and $math$. \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 ___
Re: [NTG-context] item bullet processing / font problem
Hans Hagen pra...@wxs.nl wrote: On 6/18/2013 1:38 PM, hwit...@gmail.com wrote: Aditya, thanks for the information adding \setmathfont[modern] It fixed the problem for the default bullet symbols. But, it did not fix the case where I'm trying to use the $\diamond$ symbol as the bullet, and compile time errors occur. I will attach the log file. Hopefully you can identify what is missing. I apologize for my lack of knowledge about fonts details and handling at this poing, but am learning. Here is the minimal exampple: the names of lm math fonts have changed a few times ... if you use the file: prefix and goodie files are loaded the logic makes sure that at least one is found so, the question is: does simplefonts (the one on your machine) define the lm math font in the right way (read: adapted to the latest fashion) Hans Good question. How should I go about finding the answer to this? Updated all TeXLive 2011 a week ago. mkiv says: contextunable to define latinmodernmath-regular.otf as [simplefonts:1-12pt-mm-mr--2] And as you say ! Math error: parameter \Umathquad\displaystyle is not set. system tex error on line 19 in file bullet-problem.tex: Math error: parameter \Umathquad\displaystyle is not set ... and l.19\item 此 の行にbulletを打つ。 Sorry, but I can't typeset math unless various parameters have been set. This is normally done by loading special math fonts into the math family slots. Your font set is lacking at least the parameter mentioned earlier. ! Math error: parameter \Umathquad\displaystyle is not set. The item text is getting properly placed and there is actually no problem there. The parsing is getting out of step, probably because of a missing parameter. I don't know if this is relevant but the below produces a null output. $ mtxrun --locate lmmath-regular.otf $ Ref: (read: adapted to the latest fashion) Is there a way to ascertain version information about simplefonts if there are different ones floating around? Getting to your main question: How can I find out if simplefonts, the one here on this machine, defines a lm math font in the right way? ___ 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 ___