Re: [NTG-context] rotated (landscape) pages in portrait document
On Mon, Oct 4, 2010 at 01:59, Hans Hagen wrote: On 4-10-2010 12:57, Mojca Miklavec wrote: you can treat buffers like images: \rotate[rotation=90]{\externalfigure[a.buffer][width=5cm]} Thanks. So \externalfigure[a.buffer] is a MKIV replacement for \externalfigure[\jobname-a.tmp]. I was looking for that answer as well. But still, why does my example in previous mail result in zero width? Thanks, 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] Stange behavior of \startluacode
(Sorry, I've written bad information, now correcting (*)...) Hello, my observation: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) \stopluacode \stoptext --- - works OK, 'AAA', '10' and '10' (*) is printed. If I modify the code: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) % a = 30 context(a) \stopluacode \stoptext --- - I get an error: ! LuaTeX error main ctx instance:11: unexpected symbol near '%'. So it seems to me that '--' works fine to start a comment but '%' doesn't (?). Lukas NB: ConTeXt ver: 2010.09.29 23:37 MKIV fmt: 2010.9.30 int: english/english On Sun, 03 Oct 2010 08:33:23 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 03.10.2010 um 01:46 schrieb Aditya Mahajan: Hi, The following snippet \startluacode -- \undefined why should a comment matter a = 10 \stopluacode fails with system error on line 4 in file bug.tex: Undefined control sequence ... -- \undefined why should a comment matt a = 10 \dodostartluacode ...and \directlua \zerocount {#1 }} l.4 \stopluacode Bug or limitation? The comment character in the luacode environment is “%”. 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] Stange behavior of \startluacode
Hello, my observation: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) \stopluacode \stoptext --- - works OK, 'AAA', '10' and '20' is printed. If I modify the code: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) % a = 30 context(a) \stopluacode \stoptext --- - I get an error: ! LuaTeX error main ctx instance:11: unexpected symbol near '%'. So it seems to me that '--' works fine to start a comment but '%' doesn't (?). Lukas NB: ConTeXt ver: 2010.09.29 23:37 MKIV fmt: 2010.9.30 int: english/english On Sun, 03 Oct 2010 08:33:23 +0200, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 03.10.2010 um 01:46 schrieb Aditya Mahajan: Hi, The following snippet \startluacode -- \undefined why should a comment matter a = 10 \stopluacode fails with system error on line 4 in file bug.tex: Undefined control sequence ... -- \undefined why should a comment matt a = 10 \dodostartluacode ...and \directlua \zerocount {#1 }} l.4 \stopluacode Bug or limitation? The comment character in the luacode environment is “%”. 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] MPenvironment
Hi, I would like to get the Metapost Abcd to be bigger then the TeX Abcd (for all Metapost graphics). I thought that the command is \startMPenvironment .. \stopMPenvironment !?!? \startMPenvironment \switchtobodyfont[16pt] \stopMPenvironment \starttext Abcd \startMPcode label.lrt(textext(Abcd), (0cm,0.5cm)); \stopMPcode \stoptext Patrick ___ 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] Verbatim text loaded from a file? (reduced attachments)
(I doubled this message to reduce size of attachments. Although the t.pdf.png is not very good, I believe it's enough to imagine proportions of letter height vs. line height and line number vs. letter [used for typing] height.) ... I keep on trying. I applied all your previous advice. But I still don't get everything I'd need. There's a sample attached. --- \definetyping[xFn] \setuptyping[xFn][style={\tfxx\tt},space=off,blank=halfline,numbering=line] % Trials - what each parameter actually does \starttext AAA \bgroup \setuplinenumbering[style={\small\boldslanted}] \typefile[xFn]{Data.txt} \egroup BBB \stoptext --- Problems are: - The space between lines should be smaller. If I select two lines in AR, I can see a gap between them. So at least, I'd like to omit this gap. Compare ListFile.pdf (- Ctx) to t.pdf (- LaTeX, which I was used to use). I don't know how to change it - whether via \setuptyping or how. (At wiki, there are descriptions for command parameters missing ((i/v/c)command), and some of them are mentioned twice (space, page).) - - Or to use (i/v/c)command somehow? - - Or the new line height should be changed by \setupbodyfont? - I tried \setuplinenumbering as well. It works somehow like I'd need, but if you look at ListFile.pdf, you'll see settings are lost when a new page starts (?). Any idea how to get closer look of ListFile.pdf to t.pdf? (I mean just line height and the manner how lines are numbered.) Thank you for patience. Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ListFile.pdf Description: Adobe PDF document ListFile.ctx Description: Binary data ; x N Q.z M.y M.x Q.y M.z ;--- 0. -3416.449 -1651.706 27894.604-869.173 430.867 -16414.600 3.0844 -3325.373 -1633.100 22827.009-869.173 425.438 -15093.900 6.1687 -3200.770 -1604.710 17833.992-869.173 420.010 -13790.100 6.1688 -3279.292 -1437.453 17833.992-156.624 420.010 -13816.500 9.1097 -3120.177 -1404.341 13652.607-156.624 414.834 -12589.000 12.0506 -2905.161 -1352.0159587.269-156.624 409.658 -11376.510 12.0507 -2978.216 -1182.4309587.269 498.940 409.658 -11366.720 14.4270 -2914.918 -1006.1346920.957 498.940 405.475 -10398.189 16.8034 -2830.449-727.4404897.044 498.940 401.293 -9439.558 16.8035 -2866.365-569.7144897.0441020.475 401.293 -9397.477 19.0850 -2208.133 557.0794259.3591020.475 397.277 -8486.465 21.3665-994.6671271.0066221.3771020.475 393.262 -7584.653 21.3666 -49.916-116.9286301.710 77.906 272.965 -6622.572 23.5687-152.360 -79.2886097.738 77.906 269.090 -6025.638 25.7709-423.902 19.0016032.022 77.906 265.214 -5437.370 25.7710-422.265 41.7996032.022 370.594 265.214 -5425.256 27.9054-696.361 157.3706259.236 370.594 261.457 -4863.161 30.0399-937.585 263.5196707.942 370.594 257.700 -4309.083 30.0400-922.347 312.7036707.942 597.812 257.700 -4283.443 32.1176 -1207.173 455.0177513.746 597.812 254.044 -3751.844 34.1952 -1454.706 570.9538584.913 597.812 250.387 -3227.841 34.1953 -1422.156 647.7878584.913 769.254 250.387 -3191.293 36.2241 -1614.126 741.0149996.889 769.254 246.816 -2686.922 38.2529 -1745.240 833.557 11620.956 769.254 243.245 -2189.793 38.2530 -1222.308-441.840 11640.434 464.106 173.575 -1900.743 40.2440 -1308.993-417.752 10784.231 464.106 170.071 -1558.616 42.2351 -1401.340-388.7289980.041 464.106 166.566 -1223.468 42.2352 -1419.180-317.4779980.041 525.288 166.566 -1198.533 44.1934 -1579.042-249.8129420.514 525.288 163.120 -875.645 46.1517 -1756.133-164.2469003.948 525.288 159.673 -559.625 46.1518 -1762.114 -77.0029003.948 552.380 159.673 -532.902 48.0835 -1968.614 49.0528968.947 552.380 156.273 -227.730 50.0153 -2173.197 183.9679192.566 552.380 152.873 70.873 50.0154 -2162.525 283.0569192.566 548.566 152.873 96.035 51.9274 -2340.263 416.0729861.002 548.566 149.508 385.128
Re: [NTG-context] MPenvironment
On 4-10-2010 12:41, Patrick Gundlach wrote: Hi, I would like to get the Metapost Abcd to be bigger then the TeX Abcd (for all Metapost graphics). I thought that the command is \startMPenvironment .. \stopMPenvironment !?!? \startMPenvironment \switchtobodyfont[16pt] \stopMPenvironment \starttext Abcd \startMPcode label.lrt(textext(Abcd), (0cm,0.5cm)); label.lrt(textext(\tfa Abcd), (0cm,0.5cm)); \stopMPcode \stoptext Patrick ___ 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 ___ -- - 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] Stange behavior of \startluacode
On 4-10-2010 9:19, Procházka Lukáš Ing. - Pontex s. r. o. wrote: (Sorry, I've written bad information, now correcting (*)...) Hello, my observation: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) \stopluacode \stoptext --- - works OK, 'AAA', '10' and '10' (*) is printed. If I modify the code: --- \starttext AAA \startluacode a = 10 context(a) -- a = 20 context(a) % a = 30 context(a) \stopluacode \stoptext --- - I get an error: ! LuaTeX error main ctx instance:11: unexpected symbol near '%'. So it seems to me that '--' works fine to start a comment but '%' doesn't (?). indeed. but string.format(%0.3f %0.3f,a,b) does as does context(%0.3f %0.3f,a,b) so the % is just a normal token 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] Thesis example, source files
Hi, I am a PhD student and am starting on writing my thesis. I have looked at Aditya's and The Thanh's thesis, and they are very nice. Unfortunately, I could not find the sources for these. Does anybody know if they are available somewhere? It would be nice to have them on the wiki. The problems that I faced were related to placement of table of contents, references, figures and fonts. I also found that quite a lot of information is available on the wiki and at Pragma, but it is not organised well and needs rather large amount of time investment (both of which may be due to my ignorance). Shishir. ___ 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] Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page
Hello, let's have the following example: --- \starttext \tt \input tufte \hairline \tfx \input tufte \hairline \tfxx \input tufte \stoptext --- When I look at the result, I see the smaller font the bigger gap between lines (or this may be taken as line height relative to letter height). As I would need to type many datafiles, it's important for me to reduce line height, even if readability of the text becomes a bit worse. Is it possible to achieve this anyhow? Another question: How to force new line and new page to start? - LaTeX provides \newline, \newpage\ linebreak and \pagebreak commands - see e.g. http://www.personal.ceu.hu/tex/breaking.htm. Does ConTeXt provide similar commands? Or how to achieve this? Regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038 ListFile-3.pdf Description: Adobe PDF document ListFile-3.ctx Description: Binary data ___ 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] present state of critical editions with ConTeXt MKIV ?
On 4-10-2010 3:12, Talal Al-Azem wrote: Dear Hans, Thank you once again for your response. I have attached a sample file showing examples of each of the matters discussed below which you requested. It was produced using LaTeX and Uwe Lück's excellent ednotes package. Of course, I couldn't produce an example of parallel texts, because to the best of my knowledge there is no robust system for that anywhere (my definition of 'robust' means it can handle RtL languages, like Arabic, as easily as ConTeXt does). \starttext \definedescription[lemma] \setupdescriptions[lemma][before=,after=,location=serried,width=fit] % ln: will disappear when this is stable \setupnote [ln:linenote][paragraph=yes,numbercommand=,inbetween=\hskip.5em\vl\hskip.5em] \setupdescriptions[ln:linenote][display=no,location=serried,distance=.5em] % before=,after= \setuplinenumbering[align=flushleft] \startlinenumbering[100] test \linenote {\startlemma{oeps 1} \input tufte\stoplemma} test test test test test test test \startlinenote [well] {oeps X} test test test test test test test \linenote {oeps 2} test test test test test test test \linenote {oeps 3} test test test test test test test \linenote {oeps 4} test test test test test test test \linenote {oeps 5} test test test test test test test \stoplinenote [well] test test test test test test \stoplinenumbering \stoptext not entirely but somewhat similar best is to team with Idris and Thomas in writing down specs for what more needed 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] Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page
On 4-10-2010 6:13, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, let's have the following example: --- \starttext \tt \input tufte \hairline \tfx \input tufte \hairline \tfxx \input tufte \stoptext --- When I look at the result, I see the smaller font the bigger gap between lines (or this may be taken as line height relative to letter height). \starttext \start \tt \input tufte \par \stop \hairline \start \ttx \input tufte \par \stop \hairline \start \ttxx \setupinterlinespace \input tufte \par \stop \hairline \start \switchtobodyfont[6pt,tt] \input tufte \par \stop \stoptext As I would need to type many datafiles, it's important for me to reduce line height, even if readability of the text becomes a bit worse. Is it possible to achieve this anyhow? Another question: How to force new line and new page to start? - LaTeX provides \newline, \newpage\ linebreak and \pagebreak commands - see e.g. http://www.personal.ceu.hu/tex/breaking.htm. \crlf (forced newline with strut, no whitespace) \par (regular par break) \page (pagebreak) \break (linebreak) Does ConTeXt provide similar commands? Or how to achieve this? Regards, Lukas ___ 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 ___ -- - 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] Line height for smaller fonts. (Migrating from LaTeX to ConTeXt:) forcing new line and new page
On Mon, 4 Oct 2010, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, let's have the following example: --- \starttext \tt \input tufte \hairline \switchtobodyfont[small] or \tfx\setupinterlinespace (untested) \tfx \input tufte \hairline \tfxx \input tufte \stoptext --- When I look at the result, I see the smaller font the bigger gap between lines (or this may be taken as line height relative to letter height). As I would need to type many datafiles, it's important for me to reduce line height, even if readability of the text becomes a bit worse. Is it possible to achieve this anyhow? Another question: How to force new line and new page to start? - LaTeX provides \newline, \newpage\ linebreak and \pagebreak commands - see e.g. http://www.personal.ceu.hu/tex/breaking.htm. \newline = \crlf \linebreak = \blank (not completely sure as I do not remember what linebreak does) \newpage = \page 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] fitting page around content
Hi Everyone! is there a way to tell ConTeXt to fit the page tightly around the content? In LaTeX, I can do this with \usepackage[active,tightpage]{preview} The purpose is to create a standalone tikz figure of potentially unknown size. Thanks, Michael ___ 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] fitting page around content
On Oct 4, 2010, at 7:57 PM, Michael Goerz wrote: Hi Everyone! is there a way to tell ConTeXt to fit the page tightly around the content? In LaTeX, I can do this with \usepackage[active,tightpage]{preview} The purpose is to create a standalone tikz figure of potentially unknown size. I have no idea what the LaTeX code does, but from your description, this sounds like what you're looking for: http://archive.contextgarden.net/message/20100307.022718.c28f4594.en.html HTH 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] fitting page around content
On Mon, Oct 4, 2010 at 8:02 PM, Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote: On Oct 4, 2010, at 7:57 PM, Michael Goerz wrote: is there a way to tell ConTeXt to fit the page tightly around the content? In LaTeX, I can do this with \usepackage[active,tightpage]{preview} The purpose is to create a standalone tikz figure of potentially unknown size. I have no idea what the LaTeX code does, but from your description, this sounds like what you're looking for: http://archive.contextgarden.net/message/20100307.022718.c28f4594.en.html Yes! Perfect! Thanks! Michael ___ 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 ___