Re: [NTG-context] bug in mkiv - paragraph column in tables
On Sat, 27 Sep 2008, Chen Shen wrote: Hi all, The following simple table doesn't work right under mkiv. The baseline of the paragraph (2nd) column is much lower than other columns. The same code works fine under mkii. \showstructs shows the difference between the two, but I wasn't too sure how this should be fixed. Thank you. I do not know if this helps or not, but you have a syntax mistake. See below \starttext \starttables[|lw(1cm)|lp(5cm)|lw(2cm)|] \HL \NC 101 \NC This is ConTeXts oldest table module. It uses the same formatting as Tabulate (see Tables Overview). \NC haha There should be a \NC here. \FR \HL \stoptables \stoptext Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Formatting TOC
Am 26.09.2008 um 13:21 schrieb Mikael Persson: Dear Diego, Try \def\chaplistcom#1{Chapter~#1} \setuplist[chapter][ numbercommand=\chaplistcom, ] \setuplabeltext[en][chapter=Chapter~] \setuplist[chapter][numbercommand=\groupedcommand{\labeltext{chapter}} {},width=2.5cm] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Flaky pdf file.
John Culleton wrote: \pdfobjcompresslevel=0 or \pdfminorversion=4 It turns out that the OP was using Acrobat 5, so it all fits together. Does the same command work with plain pdftex? It should, both commands are pdftex primitives. Best wishes, Taco ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] figure placement
Am 26.09.2008 um 18:01 schrieb Jelle Huisman: Hans Hagen wrote: I try to get a picture on a page using \externalfigure[name.pdf][width=\textwidth] The image is pushed to the next page, even though there is no text on the current page and the height of the image itself is smaller then \textheight, so it should fit. How do I force image placement *here*? \placefigure[force]{}{} Hi Hans, Is there a way to do this [force] with \externalfigure in a macro def like: \def\picturefile #1#2#3{{\rotate[rotation=#1]{\externalfigure[#2] [width=#3mm]}}} When I try to do something with \placefigure I get a floatblocks : order disturbed error and no figure placed. Please make a example because this works for me: \setupexternalfigures[location=default] \define[3]\picturefile {\placefigure[force]{none}{\externalfigure[#2] [width=#3mm,orientation=#1]}} \starttext \input knuth \picturefile{0}{cow}{100} \picturefile{180}{cow}{100} \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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] figure placement
Wolfgang Schuster wrote: Hi Hans, Is there a way to do this [force] with \externalfigure in a macro def like: \def\picturefile #1#2#3{{\rotate[rotation=#1]{\externalfigure[#2] [width=#3mm]}}} When I try to do something with \placefigure I get a floatblocks : order disturbed error and no figure placed. Please make a example because this works for me: Sorry no time now, but I'll try to make an example on Monday. Thanks, 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Context TeXLive 2008
Wolfgang Schuster wrote: \bTABLE[aligncharacter=yes,alignmentcharacter={/}] \bTR \bTD 4 \startcolor[red] 0/8 \stopcolor \eTD \bTD[foregroundcolor=red] ... \eTD this will not add potentially interfering nodes (in mkii) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Newbie Problem With ConTeXt/MacTeX-2008 Distribution
Trying out ConTeXt on a Macbook with the MacTeX -2008 Distribution. The following compiles on ConTeXt live at the Garden, but does not work locally. \usemodule[pre-05] \starttext \TitlePage{A Sample Presentation} \Topics{Informative Talk} \Topic{First item} Some information goes here \Topic{Second Item} More information goes here \stoptext This is what I get: TeXExec | processing document '/Users/tom/Desktop/stuff/razzle/ firstfile.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file firstfile.top TeXExec | using randomseed 1382 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) %-line parsing enabled. (/usr/local/texlive/2008/texmf/web2c/natural.tcx) entering extended mode (/Users/tom/Desktop/stuff/razzle/firstfile.tex ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2008.9.27 int: english/ english language: language en is active system : cont-new loaded (/usr/local/texlive/2008/texmf-dist/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/usr/local/texlive/2008/texmf-dist/tex/context/base/cont-new.mkii) (/usr/local/texlive/2008/texmf-dist/tex/context/base/cont-mtx.tex)) system : cont-old loaded (/usr/local/texlive/2008/texmf-dist/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/usr/local/texlive/2008/texmf-dist/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys loaded (/usr/local/texlive/2008/texmf-config/tex/context/user/cont-sys.tex (/usr/local/texlive/2008/texmf-dist/tex/context/base/type-tmf.tex) (/usr/local/texlive/2008/texmf-dist/tex/context/base/type-siz.tex) (/usr/local/texlive/2008/texmf-dist/tex/context/base/type-one.tex) (/usr/local/texlive/2008/texmf-dist/tex/context/base/type-akb.tex)) bodyfont: 12pt rm is loaded language: patterns nl-texnansi:texnansi-1-2:3 nl-ec:ec-2- 2:3 fr- texnansi:texnansi-3-2:3 fr-ec:ec-4-2:3 de-texnansi:texnansi-5- 2:3 de-e c:ec-6-2:3 it-texnansi:texnansi-7-2:3 it-ec:ec-8-2:3 pt- texnansi:texna nsi-9-2:3 pt-ec:ec-10-2:3 hr-ec:ec-11-2:3 pl-pl0:pl0-12-2:3 pl-ec:e c-13-2:3 pl-qx:qx-14-2:3 cz-il2:il2-15-2:3 cz-ec:ec-16-2:3 sk-il2:i l2-17-2:3 sk-ec:ec-18-2:3 sl-ec:ec-19-2:3 ru-t2a:t2a-21-2:3 en-ec:e c-22-2:3 uk-ec:ec-23-2:3 us-ec:ec-24-2:3 agr-agr:agr-25-2:3 da-ec:e c-26-2:3 sv-ec:ec-27-2:3 af-ec:ec-28-2:3 no-ec:ec-29-2:3 deo-ec:ec- 30-2:3 es-ec:ec-34-2:3 ca-ec:ec-35-2:3 la-ec:ec-36-2:3 ro- ec:ec-37 -2:3 tr-ec:ec-38-2:3 fi-ec:ec-40-2:3 hu-ec:ec-41-2:3 loaded specials: tex,postscript,rokicki loaded system : firstfile.top loaded (./firstfile.top specials: loading definition file tpd (/usr/local/texlive/2008/texmf-dist/tex/context/base/spec-tpd.tex specials: loading definition file fdf (/usr/local/texlive/2008/texmf-dist/tex/context/base/spec-fdf.tex (/usr/local/texlive/2008/texmf-dist/tex/context/base/spec-fdf.mkii)) specials: fdf loaded ) specials: fdf,tpd loaded ) systems : system commands are disabled system : module pre-05 loaded (/usr/local/texlive/2008/texmf-dist/tex/context/base/s-pre-05.tex system : module pre-general loaded (/usr/local/texlive/2008/texmf-dist/tex/context/base/s-pre-00.tex) color : mpcmyk color space is supported color : mpspot color space is supported color : system rgb is global activated interaction : active system : mark Topic defined [chapter] system : mark Topicnumber defined [chapternumber] system : mark Nopic defined [title] system : mark Nopicnumber defined [titlenumber] system : mark Subject defined [section] system : mark Subjectnumber defined [sectionnumber] ) (/usr/local/texlive/2008/texmf-dist/tex/context/base/pdfr-def.tex) systems : begin file firstfile at line 3 fonts : resetting map file list {/usr/local/texlive/2008/texmf-dist/fonts/map/pdftex/context/original- empty.map } fonts : using map file: original-base {/usr/local/texlive/2008/texmf-dist/fonts/map/pdftex/context/original- base.map} fonts : using map file: original-ams-base {/usr/local/texlive/2008/texmf-dist/fonts/map/pdftex/context/original- ams-base. map} fonts : using map file: original-public-lm {/usr/local/texlive/2008/texmf-dist/fonts/map/pdftex/context/original- public-lm .map} fonts : using map file: lm-ec {/usr/local/texlive/2008/texmf-dist/fonts/map/dvips/lm/lm-ec.map} fonts : using map file: lm-math {/usr/local/texlive/2008/texmf-dist/fonts/map/dvips/lm/lm-math.map} fonts : using map file: lm-rm {/usr/local/texlive/2008/texmf-dist/fonts/map/dvips/lm/lm-rm.map} fonts : using map file: 8r-base {/usr/local/texlive/2008/texmf-dist/fonts/map/pdftex/context/8r-
[NTG-context] Experience on writing a thesis with MKIV
Hi everyone, I finished my thesis, writing both my thesis and my presentation using ConTeXt. Thesis: http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.pdf Source: http://www.eecs.umich.edu/~adityam/publications/thesis/thesis.tar.gz Presentation: http://www.eecs.umich.edu/~adityam/publications/thesis/thesis-presentation.pdf Overall it was a pleasant experience, but there were some difficulties. I am summarizing my experience here. Hopefully, others will find it useful. * Layout and Formatting: It was extremely simple to set up the layout and formatting according to the thesis specifications. Due to the ease of changing formatting, I experimented quite a bit with the formatting before settling down to what is in the thesis (The school wanted nothing fancy). * Organizing large projects: The product-component structure made it easy to work on single chapters. However, I could not get correct numbering for the components (If I compiled chapter-02, it got numbered 1). In the end, I was just compiling the whole thesis at the time, since it was pretty fast (~10 sec). * Fonts: Using different fonts with MKIV was really easy. For the presentation, I did have some trouble in getting Euler to work with the minimals. Hopefully, this will be corrected soon. * Math: The math alignments worked very nicely, but I had to do a lot of manual tweaking at a lot of places. Also, equations seem to like to have a tendency of starting on a new page. I tried changing penalties for predisplay and postdisplay (which are set to zero), but it invariably led to bad page breaks at other places. At some places, the equation overlapped with the previous material. I am not sure what was causing this (medium interline spacing, wrong calculation of the width of the previous line, or something else). In the end, I simply put a few manual \break[small] here and there. Being able to write unicode math made simplified reading math markup. * Metapost: TeX-MP interaction is fast and easy. However, debugging metapost errors is difficult because context does not stop compiling on encountering a metapost error. * Bibliography. For a large part, the bib module was very easy. In the end, there were a few glitches with the formatting of the bibliography (too title space between entries) which I had to manually correct. (Look for \help inside the bbl file). The bbl file sorted authors with multiple entries incorrectly. If I had authors with four publications in a year, say 2000, the came out as 2000d, 2000c, 2000b, 2000a. I wanted 2000a, 2000b, 2000c, and 2000d, so in the end I just edited the bbl file by hand. There was also problem with maybe year. If I had 2000a and 2000b in the bib file, but only referred to 2000b in the thesis, the year came out as 2000b rather than 2000. For this also, I edited the bbl file by hand. Overall, ConTeXt made writing the thesis fairly easy. I mean the typesetting part of it. For those who are wondering, ConTeXt does not help with the content of the thesis :-) I would like to thank Hans and Taco for providing ConTeXt and everyone on the mailing list for answering my various questions. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Newbie Problem With ConTeXt/MacTeX-2008 Distribution
On Sat, Sep 27, 2008 at 12:51 PM, Stanley Hudson [EMAIL PROTECTED] wrote: Trying out ConTeXt on a Macbook with the MacTeX -2008 Distribution. The following compiles on ConTeXt live at the Garden, but does not work locally. \usemodule[pre-05] \starttext \TitlePage{A Sample Presentation} \Topics{Informative Talk} \Topic{First item} Some information goes here \Topic{Second Item} More information goes here \stoptext This is what I get: TeXExec | processing document '/Users/tom/Desktop/stuff/razzle/ firstfile.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file firstfile.top TeXExec | using randomseed 1382 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) %-line parsing enabled. (/usr/local/texlive/2008/texmf/web2c/natural.tcx) entering extended mode (/Users/tom/Desktop/stuff/razzle/firstfile.tex ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2008.9.27 int: english/ english [...] systems : system commands are disabled [...] Topic : - First item system : Topic not found/processed [MP firstfile-mpgraph.3999] ! Missing number, treated as zero. to be read again \endcsname \@@amvbox ... -\pagebackgroundvoffset +\endcsname \c!topoffset \relax \box \... argument ...ght\c!left }\interactionmenu [right] \getvalue {\??am right\c!r... \firstofoneargument #1-#1 \next2 #1,-\docommand {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.8 \Topic{Second Item} ? Any suggestions on what is wrong? I get the same error using TL2008 on linux, so it looks like a bug in context. All is not lost, however, as your file does work using MKiV with the context minimal distro: $ context t [...] MtxRun | run 2: luatex --fmt=/Data/opt/tex/context/linuxtex/texmf-cache/luatex-cache/context/e94a94633d1c5da1888b5ba67f423e84/formats/cont-en --lua=/Data/opt/tex/context/linuxtex/texmf-cache/luatex-cache/context/e94a94633d1c5da1888b5ba67f423e84/formats/cont-en.lua ./t (t.tex ConTeXt ver: 2008.08.15 09:41 MKIV fmt: 2008.9.27 int: english/english [...] mkiv lua stats : runtime - 8.756 seconds, 3 processed pages, 3 shipped pages, 0.343 pages/second - So the solution lies somewhere between 2008.05 MkII and 2008.08 MkIV. Simpler documents do work using 2008.05 MkII in TL2008, but if you are starting out you may do better to focus on MkIV. -- George N. White III [EMAIL PROTECTED] Head of St. Margarets Bay, Nova Scotia ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Newbie Problem With ConTeXt/MacTeX-2008 Distribution
Well, I installed Context Minimals and used MKIV and it worked. Thanks for the help. Stan On Sep 27, 2008, at 11:42 AM, George N. White III wrote: On Sat, Sep 27, 2008 at 12:51 PM, Stanley Hudson [EMAIL PROTECTED] wrote: Trying out ConTeXt on a Macbook with the MacTeX -2008 Distribution. The following compiles on ConTeXt live at the Garden, but does not work locally. \usemodule[pre-05] \starttext \TitlePage{A Sample Presentation} \Topics{Informative Talk} \Topic{First item} Some information goes here \Topic{Second Item} More information goes here \stoptext This is what I get: TeXExec | processing document '/Users/tom/Desktop/stuff/razzle/ firstfile.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file firstfile.top TeXExec | using randomseed 1382 TeXExec | tex engine: pdftex TeXExec | tex format: cont-en This is pdfTeXk, Version 3.1415926-1.40.9 (Web2C 7.5.7) %-line parsing enabled. (/usr/local/texlive/2008/texmf/web2c/natural.tcx) entering extended mode (/Users/tom/Desktop/stuff/razzle/firstfile.tex ConTeXt ver: 2008.05.21 15:21 MKII fmt: 2008.9.27 int: english/ english [...] systems : system commands are disabled [...] Topic : - First item system : Topic not found/processed [MP firstfile-mpgraph.3999] ! Missing number, treated as zero. to be read again \endcsname \@@amvbox ... -\pagebackgroundvoffset +\endcsname \c!topoffset \relax \box \... argument ...ght\c!left }\interactionmenu [right] \getvalue {\??am right\c!r... \firstofoneargument #1-#1 \next2 #1,-\docommand {#1} \doprocesscommaitem \doprocesscommalist ...item \gobbleoneargument #1, ]\relax \global \advance \... ... l.8 \Topic{Second Item} ? Any suggestions on what is wrong? I get the same error using TL2008 on linux, so it looks like a bug in context. All is not lost, however, as your file does work using MKiV with the context minimal distro: $ context t [...] MtxRun | run 2: luatex --fmt=/Data/opt/tex/context/linuxtex/texmf-cache/luatex-cache/ context/e94a94633d1c5da1888b5ba67f423e84/formats/cont-en --lua=/Data/opt/tex/context/linuxtex/texmf-cache/luatex-cache/ context/e94a94633d1c5da1888b5ba67f423e84/formats/cont-en.lua ./t (t.tex ConTeXt ver: 2008.08.15 09:41 MKIV fmt: 2008.9.27 int: english/ english [...] mkiv lua stats : runtime - 8.756 seconds, 3 processed pages, 3 shipped pages, 0.343 pages/second - So the solution lies somewhere between 2008.05 MkII and 2008.08 MkIV. Simpler documents do work using 2008.05 MkII in TL2008, but if you are starting out you may do better to focus on MkIV. -- George N. White III [EMAIL PROTECTED] Head of St. Margarets Bay, Nova Scotia ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Has anybody used asymptote without LaTeX?
Hi, It is said that Asymptote has supported PRC format 3D file: http://asymptote.sourceforge.net/gallery/3D%20graphs/ I really wanna give it a try, but once I was building from the svn source, I was told that I don't have LaTeX in my $PATH. I haven't really been using LaTeX for a long time, and I prefer I don't need to install a bunch of LaTeX programs and packages just for a drawing program which, IMHO, only use LaTeX to make nice labels. Is there any workarounds? And how to embed .prc files into the .pdf document? -- Best Regards Chen Zhi-chu Chen | Shanghai Synchrotron Radiation Facility No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China tel: 086 21 5955 3405 | zhichu.chen.googlepages.com | www.sinap.ac.cn ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___