[NTG-context] Q about hangaround commands
Hi. I'm trying to figure out the limitation of \start/stophangaround commands. 1. Is it correct that currently the figure could be placed only on left? If so is it easy to extend the command to allow placing figure at right side? 2. Is there way to increase/decrease the space between the text and image? 3. Is it correct that hangaround command is tricky hack that change normal flow? I prepare simple example (it is attached). 1) is obvious from the example (default behavior I assume). 3): I got the '2.' not on left side as 1) and 3) but on left side of text block right after image. Another example if 3): if I put empty line between \starthangaround and \input (see the file) then there would be mess. P.S. I tried the example with MkIV only. --- WBR, Vladimir Lomov ex1.tex Description: TeX document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] ideas for ConTeXt meetings
* publicity: If we meet less far off than Brejlov or Porquerolles, we could open for a public day with introductional workshops, a keysigning party etc., perhaps in cooperation with a local Linux/Open Source user group. * if you're looking for a venue near the Netherlands, consider this: http://www.bildung-klingberg.de/ (educational site Klingberg, near Scharbeutz/Baltic Sea, website unfortunately only in German) Disclaimer: I know the managers. * Tägerwilen 2016 I take that serious ;-) Perhaps the TeX groups in Stuttgart and Ulm can help to organize a meeting in the Stuttgart-Ulm-Konstanz triangle. But until then empires will rise and fall, calendars may end... ;-) Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] Issues with number of formula
On 26-10-2010 4:40, views63 wrote: Oh,sorry in http://www.ntg.nl/pipermail/ntg-context/2010/047258.html the way setupformulas[numbercolor=blue,numberstyle=bold,prefixsegments=1:100,way=bysection] was work. but what's the prefixsegments=1:100 that you can upto 100 prefixes 1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1somenumber not that we have that many levels predefined - 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] An Exam Preparation Issue (framedtext and overlap problem)
Hi, I'm so new in the Context's voodoo world and I'm trying to build an exam from a questions database. A regular question has 5 options and only one correct answer. I want to prepare a good looking pdf file, the most important requirement for the pdf is that, a question and all of its 5 options must be on the same page. So I found the startframedtext command and start to work on it. Now I have 16 questions and their options in the tex file, but on the Page1 only questions 1-6 shown and question 6 divided. On the second page it continue from question 16 (7-15 doesn't shown). I've no idea about this, if anyone can show me a way to found real problem I'll be very glad. Here is the questions.tex file: === \enableregime[utf] \definetypeface[myface][ss][Xsans][Arial] \definehead[question][section] \setuppapersize[A4] \setupbodyfont[myface, 8pt] \setuppagenumbering [location=footer] \setupframedtexts[width=fit, margin=yes] \setuphead[question] [page=yes, continue=no, numberstyle=bold, textstyle=cap] \starttext \startframedtext[left] \question {25 yaşında erkek hasta, 24 yaşındaki eşi ile korunmamalarına rağmen 3 yıldır çocuk sahibi olamıyorlar. Sperm analizinde ejakülat hacmi: 3 cc, pH: 7.4 ve 2 analizde de canlı sperme rastlanmıyor. Bilateral testis hacmi: 15 cc, FSH: 11 IU ve LH: 7 IU olarak bulunuyor. Bu klinik veriler ışığında bu infertil çifte aşağıdakilerden hangisi önerilmelidir?} \startitemize[A,columns,two][stopper=)] \item png \item tif \item jpg \item bmp \item gif \stopitemize \stopframedtext \startframedtext[left] \question {Penil hipospadias ve iki taraflı inmemiş testis olan yenidoğan bebekte kromozom analizi 46 XX tir. Bu olguda en olası tanı nedir?} \startitemize[A,columns,three][stopper=)] \item Androjen duyarsızlık sendromu \item Beş alfa redüktaz eksikliği \item 21 hidroksilaz eksikliği \item Testiküler regresyon sendromu \item Hipogonadotropik hipogonadizm \stopitemize \stopframedtext \startframedtext[left] \question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.} \startitemize[A,columns,three][stopper=)] \item Konjenital adrenal hiperplaziler \item Beş alfa redüktaz eksikliği \item 21 hidroksilaz eksikliği \item Testiküler regresyon sendromu \item Hipogonadotropik hipogonadizm \stopitemize \stopframedtext \startframedtext[left] \question {Penil hipospadias ve iki taraflı inmemiş testis olan yenidoğan bebekte kromozom analizi 46 XX tir. Bu olguda en olası tanı nedir?} \startitemize[A,columns,three][stopper=)] \item Androjen duyarsızlık sendromu \item Beş alfa redüktaz eksikliği \item 21 hidroksilaz eksikliği \item Testiküler regresyon sendromu \item Hipogonadotropik hipogonadizm \stopitemize \stopframedtext \startframedtext[left] \question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.} \startitemize[A,columns,three][stopper=)] \item Konjenital adrenal hiperplaziler \item Beş alfa redüktaz eksikliği \item 21 hidroksilaz eksikliği \item Testiküler regresyon sendromu \item Hipogonadotropik hipogonadizm \stopitemize \stopframedtext \startframedtext \question {Penil hipospadias ve iki taraflı inmemiş testis olan yenidoğan bebekte kromozom analizi 46 XX tir. Bu olguda en olası tanı nedir?} \startitemize[A,columns,two][stopper=)] \item Androjen duyarsızlık sendromu \item Beş alfa redüktaz eksikliği \item 21 hidroksilaz eksikliği \item Testiküler regresyon sendromu \item Hipogonadotropik hipogonadizm \stopitemize \stopframedtext \startframedtext \question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.} \startitemize[A,columns,three][stopper=)] \item Konjenital adrenal hiperplaziler \item Beş alfa redüktaz eksikliği \item 21 hidroksilaz eksikliği \item Testiküler regresyon sendromu \item Hipogonadotropik hipogonadizm \stopitemize \stopframedtext \startframedtext \question {Penil hipospadias ve iki taraflı inmemiş testis olan yenidoğan bebekte kromozom analizi 46 XX tir. Bu olguda en olası tanı nedir?} \startitemize[A,columns,three][stopper=)] \item Androjen duyarsızlık sendromu \item Beş alfa redüktaz eksikliği \item 21 hidroksilaz eksikliği \item Testiküler regresyon sendromu \item Hipogonadotropik hipogonadizm \stopitemize \stopframedtext \startframedtext \question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.} \startitemize[A,columns,three][stopper=)] \item Konjenital adrenal hiperplaziler \item Beş alfa redüktaz eksikliği \item 21 hidroksilaz eksikliği \item Testiküler regresyon sendromu \item Hipogonadotropik hipogonadizm \stopitemize \stopframedtext \startframedtext \question {Gonadotropin bağımlı erken puberteye yol açan nedeni seçiniz.} \startitemize[A,columns,three][stopper=)] \item Konjenital adrenal hiperplaziler \item Beş alfa redüktaz eksikliği \item 21 hidroksilaz eksikliği \item Testiküler regresyon sendromu \item Hipogonadotropik hipogonadizm \stopitemize \stopframedtext \startframedtext \question {Gonadotropin bağımlı erken puberteye yol açan
[NTG-context] Referencing line numbers inside a typing
Hi list, is there a (preferably easy) way to reference line numbers inside a typing? Minimal (not working) example: \setuptyping[numbering=line] \starttext In the following typing, \in{line}{}[line:intyping] is really interesting. \starttyping This line is so interesting. \stoptyping \stoptext Thanks, Stefan ___ 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] hyphenated url
Hi Aditya, Philipp and all, thank you very much for your interesting ideas! As far as I understood, your starting point is to avoid % being treated as comment ... This is nice for controlled situations. But in real life projects there are many, various situations where the % is used and needed as comment! Isn't there a way to treat % as a regular character dedicated in the \hyphenatedurl{} environment only?? Steffen PS @ Philipp: Using * as line comment would start the problem again, as * is also a valid part of URL addresses ... of course we need to keep a character for comment. Am 26.10.2010 um 00:49 schrieb Philipp Gesang: Hi Aditya, Steffen and others, I was toying around with catcode tables too. Shouldn’t it suffice to simply change % to ‘other’? This way you can keep the dollar style math. Philipp ···8 \setupinteraction[state=start] \unprotect \newcatcodetable \urlcatcodes % ordinary \ctxcatcodes except for minor changes \startcatcodetable \urlcatcodes \catcode`\^^I = 10 \catcode`\^^M = 5 \catcode`\^^L = 5 \catcode`\= 10 \catcode`\^^Z = 9 \catcode`\\ = 0 \catcode`\{ = 1 \catcode`\} = 2 \catcode`\$ = 3 \catcode`\ = 4 \catcode`\# = 6 \catcode`\^ = 7 \catcode`\_ = 8 \catcode`\~ = 13 \catcode`\| = 13 \catcode`\% = \@@other \catcode`\* = \@@comment % comment this out if you don’t need line comments \stopcatcodetable \protect \starttext \bgroup TEST \setcatcodetable \urlcatcodes \hyphenatedurl{www.test%it.com} * this should be treated as comment \footnote{ \hyphenatedurl{www.test%it.com} } Math mode: $(x)(y)\,(Fx\,.\,x=y\,.\supset\,Fy)$ TEST \egroup \stoptext ···8 ___ 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] Issues with number of formula
Thanks a lot. btw, the way in subsectin or more is failed -- Best regards, Huang Ze 2010/10/26 Hans Hagen pra...@wxs.nl: On 26-10-2010 4:40, views63 wrote: Oh,sorry in http://www.ntg.nl/pipermail/ntg-context/2010/047258.html the way setupformulas[numbercolor=blue,numberstyle=bold,prefixsegments=1:100,way=bysection] was work. but what's the prefixsegments=1:100 that you can upto 100 prefixes 1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1.1somenumber not that we have that many levels predefined - 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] ideas for ConTeXt meetings
On Tuesday 26 October 2010 09:31:25 Henning Hraban Ramm wrote: If we meet less far off than Brejlov or Porquerolles, Far from where? Canada or South Africa, just to name a few places from which participants came... In organizing an international meeting, it is always a delicate balance in choosing a site that is reasonably accessible, reasonably affordable, reasonably attractive and available at a reasonable date. A meeting also needs to be organized which implies quite a lot of (volonteer) work from a small group of people. This means that the locale also depends on the availablity of such volonteers. It is also sane that the meeting be held in different regions, and, unfortunately, not all meetings will be practical (or possible) for everyone. We need to work together to find ways to make the meetings work for a maximum number of participants in the best way possible. 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 ___
[NTG-context] ConText, TikZ and definecolor: undefined control sequence
Hi, I've been trying to get colors to work in TikZ, and found a nice fix by Aditya here: http://archive.contextgarden.net/message/20100120.220124.f2d3f8bc.en.html The problem is that the lua script doesn't work: I get a problem with 'colors'. LuaTeX error main ctx instance:13: attempt to index global 'colors' (a nil value) stack traceback: main ctx instance:13: in function 'registercolor' main ctx instance:1: in main chunk. The input file from Aditya (called colorfix.tex) is \startluacode pgfutil = pgfutil or { } local texsprint, format = tex.sprint, string.format local prtcatcodes = tex.prtcatcodes function pgfutil.unsupported_color(name) texsprint(prtcatcodes,format(\\PackageError{pgf}{color %s has unsupported model}{}, name)) texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{gray}{0}, name)) end function pgfutil.registercolor(name, attributes) print(name, attributes) local cv = colors.value(attributes) if cv then local model = cv[1] if model == 1 then print(model=1) texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{gray}{% 1.3f}, name, cv[2])) elseif model == 3 then print(model=2) texsprint(prtcatcodes,format(\\pgfu...@definecolor{%s}{rgb}{% 1.3f,%1.3f,%1.3f}, name, cv[3], cv[4], cv[5])) else print(no model) pgfutil.unsupported_color(name) end else print(no color) pgfutil.unsupported_color(name) end end \stopluacode \unprotect \def\pgfu...@registercolor#1% {\ctxlua{pgfutil.registercolor(#1,\thecolorattribute {#1})}} \protect and my test file is \usemodule[tikz] \input colorfix \definecolor[mycolor][r=1,g=0,b=1] \starttext \starttikzpicture \fill[mycolor] (0,0) circle (1); \stoptikzpicture \stoptext I'm running the latest beta. ___ 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] Fwd: [Pgf-users] Version 2.10 released
pgf 2.10 Soon to be in the minimals? Alan ---BeginMessage--- Dear community, I have just uploaded pgf 2.10 to sourceforge and CTAN. It will shortly be available to the update mechanisms of MikTeX and TeXLive. Thanks for all who contributed with libraries, patches, by reporting bugs, or by finding typos in the manual! Please, continue to do so. Best regards Christian (on behalf of Till Tantau) -- Nokia and ATT present the 2010 Calling All Innovators-North America contest Create new apps games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev ___ pgf-users mailing list pgf-us...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgf-users ---End Message--- ___ 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] Fwd: [Pgf-users] Version 2.10 released
On Tue, Oct 26, 2010 at 12:41, Alan BRASLAU wrote: pgf 2.10 Soon to be in the minimals? Did anyone test if it works? It was broken once in history and I'm not sure if anyone has ever fixed the bug(s) (it used to be fetched from SVN on a daily basis until it broke). Else it's no problem to upgrade ... Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ideas for ConTeXt meetings
Something else to consider is the date. Quite a few of us work in academia, and the fall term has recently been advanced, at least at many European universities, to just about when the ConTeXt meetings are being held. Of course you can't please everybody -- just a suggestion. Cheers, Jörg On 10/26/10 11:46 AM, Alan BRASLAU wrote: On Tuesday 26 October 2010 09:31:25 Henning Hraban Ramm wrote: If we meet less far off than Brejlov or Porquerolles, Far from where? Canada or South Africa, just to name a few places from which participants came... In organizing an international meeting, it is always a delicate balance in choosing a site that is reasonably accessible, reasonably affordable, reasonably attractive and available at a reasonable date. A meeting also needs to be organized which implies quite a lot of (volonteer) work from a small group of people. This means that the locale also depends on the availablity of such volonteers. It is also sane that the meeting be held in different regions, and, unfortunately, not all meetings will be practical (or possible) for everyone. We need to work together to find ways to make the meetings work for a maximum number of participants in the best way possible. ___ 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] beta broken?
The latest mtxrun (on both pragma-ade and in minimals) does not contain any 'v' on line 8736, so something must have gone wrong in the local update process. Yes, it turned out a syncronization issue. For some reason I got old stuff in the texmf-osx-intel/bin until two days ago when updating the minimals. Solved now. Oliver ___ 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] break after index
Hi Hans, in strc-reg.mkiv I found your remark: % needs thinking ... bla\index{bla}. will break before the . but adding a % penalty is also no solution Is this problem solved, ie. is there a working solution? I am working on a book right now where the author set 4906 index marks ... sometimes right-in-the-middle of a word, but most often behind (and before dot or comma). Steffen ___ 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] ideas for ConTeXt meetings
On Tuesday 26 October 2010 13:41:23 Jörg Hagmann wrote: Something else to consider is the date. Quite a few of us work in academia, and the fall term has recently been advanced, at least at many European universities, to just about when the ConTeXt meetings are being held. Of course you can't please everybody -- just a suggestion. Indeed. But this is almost impossible for an international meeting. Many academics begin their term early September or even at the end of August. Some finish in May, others as late as the end of July. This leaves early August. However, many salaired workers can only take their vacation at that time... So, no date is ideal! 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] Referencing line numbers inside a typing
Am 26.10.2010 um 10:30 schrieb Stefan Müller: Hi list, is there a (preferably easy) way to reference line numbers inside a typing? Minimal (not working) example: \setuptyping[numbering=line] \starttext In the following typing, \in{line}{}[line:intyping] is really interesting. \starttyping This line is so interesting. \stoptyping \stoptext MkIV: \setuptyping[numbering=line,escape=yes] \starttext In the following typing, \inline[line:intyping] is really interesting. \starttyping line 1 line 2 line 3/BTEX\someline[line:intyping]/ETEX line 4 \stoptyping \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] break after index
Hi Steffen, On 10/26/2010 03:01 PM, Steffen Wolfrum wrote: I am working on a book right now where the author set 4906 index marks ... sometimes right-in-the-middle of a word, but most often behind (and before dot or comma). and what about to clean up the file with regular expression similar to this: sed -e 's/\b\(\w*\)\\index{\([^}]*\)}/\\index{\2}\1/g' old.tex new.tex I would guess, that index entries in the middle of the world break kerning and hyphenation. Jano ___ 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] An Exam Preparation Issue (framedtext and overlap problem)
Am 26.10.2010 um 09:48 schrieb Murat Demirten: Hi, I'm so new in the Context's voodoo world and I'm trying to build an exam from a questions database. A regular question has 5 options and only one correct answer. I want to prepare a good looking pdf file, the most important requirement for the pdf is that, a question and all of its 5 options must be on the same page. So I found the startframedtext command and start to work on it. Now I have 16 questions and their options in the tex file, but on the Page1 only questions 1-6 shown and question 6 divided. On the second page it continue from question 16 (7-15 doesn't shown). I've no idea about this, if anyone can show me a way to found real problem I'll be very glad. The odd behavior is caused by the „columns“ option in the itemize (which will never work for you in your file because you use it inside framedtext where columns are not possible). You can also see the effect in this far simpler example: \starttext \dorecurse{20} {\startframedtext \startcolumns text \stopcolumns \stopframedtext} \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] An Exam Preparation Issue (framedtext and overlap problem)
Hi, I don't have to use framedtext, the reason for that it is the only way I can found to group a question and its itemized options together, in a page. Is there any way to ensure that a group (a question and its answer options) must be located in same page and if it needs extra spacing whole group goes into the next page? Regards, 2010/10/26 Wolfgang Schuster schuster.wolfg...@googlemail.com The odd behavior is caused by the „columns“ option in the itemize (which will never work for you in your file because you use it inside framedtext where columns are not possible). You can also see the effect in this far simpler example: \starttext \dorecurse{20} {\startframedtext \startcolumns text \stopcolumns \stopframedtext} \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] description
Please explain the meaning of align=left. To me it is more a raggedleft. (mkiv, TeXLive) \definedescription[Uni][ headstyle=bold, align=left, location=hanging,width=broad,margin=1cm] \starttext \Uni{FU} Freie Universität Berlin \Uni{HU} Humboldt Universität Berlin, die älteste Universität der deutschen Hauptstadt.\par \Uni{TU} Technische Universität Berlin, die ehemalige Technische Hochschule Charlottenburg. \stoptext Herbert ___ 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] description
On Tue, Oct 26, 2010 at 08:28:17PM +0200, Herbert Voss wrote: Please explain the meaning of align=left. To me it is more a raggedleft. (mkiv, TeXLive) Yes, you're right. This has been the case since the beginning, and has been retained for compatibility reasons, even if the name is confusing. Arthur ___ 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] description
On Tue, Oct 26, 2010 at 08:30:08PM +0200, Arthur Reutenauer wrote: On Tue, Oct 26, 2010 at 08:28:17PM +0200, Herbert Voss wrote: Please explain the meaning of align=left. To me it is more a raggedleft. (mkiv, TeXLive) Yes, you're right. ... no pun intended... Arthur ___ 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] description
On 26/10/10 14:31, Arthur Reutenauer wrote: On Tue, Oct 26, 2010 at 08:30:08PM +0200, Arthur Reutenauer wrote: On Tue, Oct 26, 2010 at 08:28:17PM +0200, Herbert Voss wrote: Please explain the meaning of align=left. To me it is more a raggedleft. (mkiv, TeXLive) Yes, you're right. ... no pun intended... Right... you left me wondering about it ;-) Jelle ___ 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] description
Am 26.10.2010 20:30, schrieb Arthur Reutenauer: On Tue, Oct 26, 2010 at 08:28:17PM +0200, Herbert Voss wrote: Please explain the meaning of align=left. To me it is more a raggedleft. (mkiv, TeXLive) Yes, you're right. This has been the case since the beginning, and has been retained for compatibility reasons, even if the name is confusing. with mkii left is left ... ;-) Herbert ___ 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] Referencing line numbers inside a typing
On 26.10.2010 15:31, Wolfgang Schuster wrote: Am 26.10.2010 um 10:30 schrieb Stefan Müller: Hi list, is there a (preferably easy) way to reference line numbers inside a typing? Minimal (not working) example: \setuptyping[numbering=line] \starttext In the following typing, \in{line}{}[line:intyping] is really interesting. \starttyping This line is so interesting. \stoptyping \stoptext MkIV: \setuptyping[numbering=line,escape=yes] \starttext In the following typing, \inline[line:intyping] is really interesting. \starttyping line 1 line 2 line 3/BTEX\someline[line:intyping]/ETEX line 4 \stoptyping \stoptext Wolfgang One more question before wikifying: Is there a way to prevent the prefix line? I want to say something like In lines 3 to 13. Thanks, Stefan ___ 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] description
On Tue, Oct 26, 2010 at 8:39 PM, Jelle Huisman je...@jhnet.nl wrote: On 26/10/10 14:31, Arthur Reutenauer wrote: On Tue, Oct 26, 2010 at 08:30:08PM +0200, Arthur Reutenauer wrote: On Tue, Oct 26, 2010 at 08:28:17PM +0200, Herbert Voss wrote: Please explain the meaning of align=left. To me it is more a raggedleft. (mkiv, TeXLive) Yes, you're right. ... no pun intended... Right... you left me wondering about it ;-) Threre were times and countries where be Left was right, and be Right was wrong. -- 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] Referencing line numbers inside a typing
Am 26.10.2010 um 20:47 schrieb Stefan Müller: One more question before wikifying: Is there a way to prevent the prefix line? I want to say something like In lines 3 to 13. The texts „line“ and „lines“ are set with \setuplabeltext but you can see alternative texts with \inline{...}[ref]. \setuptyping[numbering=line,escape=yes] \starttext See \inline[line:single] and also \inline[line:range]. See \inline{typeline}[line:single] and also \inline{typelines}[line:range]. See line~\inlinerange[line:single] and also lines~\inlinerange[line:range]. \starttyping line 1 line 2/BTEX\startline[line:range]/ETEX line 3/BTEX\someline[line:single]/ETEX line 4 line 5/BTEX\stopline[line:range]/ETEX line 6 \stoptyping \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] calling ConTeXt as a background process (SOLVED)
Hi Henning, On 10/08/10 21:44, Henning Hraban Ramm wrote: Ok, the failures were the same with fcgi and gunicorn app servers. But it _works_ with django's dev server (which you must not use in production due to memory/security holes etc.). We just had a somewhat similar problem (texlua hung at 100% cpu when run via apache) and it turns out, after lots of debugging, that mtxrun cannot do anything without $HOME. Perhaps yours was a different symptom of the same problem ? try this if you want to test CPU heat generation: $ env HOME= context knuth (use one process for each available cpu thread, 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] description
From the documentation page 236 ( ConTEXt reference manual ) %- \definedescription [definition] [location=serried, headstyle=bold,width=broad, sample={icon}%% senseless here ] \starttext \definition{icon} What for some languages looked like a handicap has now become a feature. Thousands of words and concepts are already layed down in characters. These characters therefore can be considered icons. \par \stoptext %- The setting location=serried is useless here in fact of the empty line after \definition{icon}. If I delete the line and add another entry like \definition{iconize} some text here then I can see that the setting sample={icon} has no meaning. It is only taken into account _without_ location=serried. Herbert ___ 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] ideas for ConTeXt meetings
Am 2010-10-26 um 11:46 schrieb Alan BRASLAU: On Tuesday 26 October 2010 09:31:25 Henning Hraban Ramm wrote: If we meet less far off than Brejlov or Porquerolles, Far from where? Canada or South Africa, just to name a few places from which participants came... In organizing an international meeting, it is always a delicate balance in choosing a site... I didn't want to criticize the choice of venues - Mlýn Brejlov was great, and Porquerolles will most probably also be great. I just meant, *if we want* to invite the greater public (i.e. local possible TeX users) for a public day, then there'll be probably more visitors if we meet in/near a bigger city than at some remote site. Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] calling ConTeXt as a background process (SOLVED)
On 26-10-2010 9:28, Taco Hoekwater wrote: Hi Henning, On 10/08/10 21:44, Henning Hraban Ramm wrote: Ok, the failures were the same with fcgi and gunicorn app servers. But it _works_ with django's dev server (which you must not use in production due to memory/security holes etc.). We just had a somewhat similar problem (texlua hung at 100% cpu when run via apache) and it turns out, after lots of debugging, that mtxrun cannot do anything without $HOME. Perhaps yours was a different symptom of the same problem ? try this if you want to test CPU heat generation: $ env HOME= context knuth so what should HOME default to then? .? - 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] description
On 26-10-2010 8:30, Arthur Reutenauer wrote: On Tue, Oct 26, 2010 at 08:28:17PM +0200, Herbert Voss wrote: Please explain the meaning of align=left. To me it is more a raggedleft. (mkiv, TeXLive) Yes, you're right. This has been the case since the beginning, and has been retained for compatibility reasons, even if the name is confusing. you can use flushleft instead of (ragged)right - 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] calling ConTeXt as a background process (SOLVED)
Am 2010-10-26 um 21:28 schrieb Taco Hoekwater: We just had a somewhat similar problem (texlua hung at 100% cpu when run via apache) and it turns out, after lots of debugging, that mtxrun cannot do anything without $HOME. Perhaps yours was a different symptom of the same problem ? Ah, I didn't check HOME; I'll add that to my environment, just in case. (But ATM it runs well.) try this if you want to test CPU heat generation: $ env HOME= context knuth (use one process for each available cpu thread, of course) ;-) I'm using a rented virtual server and won't feel the heat. (And I guess the hoster will just throttle or disable it if I try to melt it.) Thank you! Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___ 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] description
Am 2010-10-26 um 20:51 schrieb luigi scarso: Yes, you're right. ... no pun intended... Right... you left me wondering about it ;-) Threre were times and countries where be Left was right, and be Right was wrong. War doesn't decide who's right but who's left. Greetlings, Hraban ___ 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] break after index
Hi Jano, Am 26.10.2010 um 18:03 schrieb Jano Kula: On 10/26/2010 03:01 PM, Steffen Wolfrum wrote: I am working on a book right now where the author set 4906 index marks ... sometimes right-in-the-middle of a word, but most often behind (and before dot or comma). and what about to clean up the file with regular expression similar to this: sure, that's what I always do in the end ;o) But I really don't like this heavy cleaning and actually moving things at all. I would prefer to leave the responsibility to the author ... and change the original document as little as possible. Steffen ___ 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] description
On Tuesday 26 October 2010 20:51:15 luigi scarso wrote: On Tue, Oct 26, 2010 at 8:39 PM, Jelle Huisman je...@jhnet.nl wrote: On 26/10/10 14:31, Arthur Reutenauer wrote: On Tue, Oct 26, 2010 at 08:30:08PM +0200, Arthur Reutenauer wrote: On Tue, Oct 26, 2010 at 08:28:17PM +0200, Herbert Voss wrote: Please explain the meaning of align=left. To me it is more a raggedleft. (mkiv, TeXLive) Yes, you're right. ... no pun intended... Right... you left me wondering about it ;-) Threre were times and countries where be Left was right, and be Right was wrong. Is this something like: red-right-returning? (You probably have to be a sailor from North America to understand this...) 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] calling ConTeXt as a background process (SOLVED)
On 10/26/10 22:09, Hans Hagen wrote: On 26-10-2010 9:28, Taco Hoekwater wrote: Hi Henning, On 10/08/10 21:44, Henning Hraban Ramm wrote: Ok, the failures were the same with fcgi and gunicorn app servers. But it _works_ with django's dev server (which you must not use in production due to memory/security holes etc.). We just had a somewhat similar problem (texlua hung at 100% cpu when run via apache) and it turns out, after lots of debugging, that mtxrun cannot do anything without $HOME. Perhaps yours was a different symptom of the same problem ? try this if you want to test CPU heat generation: $ env HOME= context knuth so what should HOME default to then? .? Not a default is what is needed, what is needed is that it should work without a HOME at all (server processes typically dont have one). Let's sort this out offlist. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] calling ConTeXt as a background process (SOLVED)
On 26-10-2010 10:56, Taco Hoekwater wrote: On 10/26/10 22:09, Hans Hagen wrote: On 26-10-2010 9:28, Taco Hoekwater wrote: Hi Henning, On 10/08/10 21:44, Henning Hraban Ramm wrote: Ok, the failures were the same with fcgi and gunicorn app servers. But it _works_ with django's dev server (which you must not use in production due to memory/security holes etc.). We just had a somewhat similar problem (texlua hung at 100% cpu when run via apache) and it turns out, after lots of debugging, that mtxrun cannot do anything without $HOME. Perhaps yours was a different symptom of the same problem ? try this if you want to test CPU heat generation: $ env HOME= context knuth so what should HOME default to then? .? Not a default is what is needed, what is needed is that it should work without a HOME at all (server processes typically dont have one). sure, but I guess that some path specs have ~ and that we get a loop in the resolver due to this and for these patsh with ~ we need a proper default then Let's sort this out offlist. okay 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 ___