Re: [NTG-context] spurious text produced by TABLE
Idris Samawi Hamid wrote: Dear posse, TABLE produces a spurious dot in the following (look closely at the center of the dot is a division line between your span Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] spurious text produced by TABLE
Idris Samawi Hamid wrote: Dear posse, TABLE produces a spurious dot in the following (look closely at the center of the big box on the right). How can I get rid of this? If this is a bug, Is there a workaround? Best Idris = % output=pdf interface=en \setuppagenumbering[state=stop] \starttext \setupfloats[location=middle] \placetable [here][tab:sciences]{There is a spurious dot in the big box.} \starttable{|c|c|c|} \HL \VL {test} \VL \TWO{} \VL\FR \DL[1] \VL\VL\DR \VL {test} \VL \TWO{} \VL\FR \HL \stoptable \stoptext i really need to reimplement tables -) patch in core-tab.tex: \def\!ttuse#1% {\ifnum#1\plusone \omit \global\TABLEdivisionfalse % added for idris \scratchcounter\currentTABLEcolumn% added \advance\scratchcounter #1% % added \advance\scratchcounter \minusone % added \ifnum\scratchcounter\maxTABLEcolumn % added \def\next % added {\setTABLEerror\TABLEspanoverflow % added \handleTABLEerror}% % added \else % added \def\next % added {\global\advance\currentTABLEcolumn #1% % added \global\advance\currentTABLEcolumn \minusone % added \mscount#1% \mscount is in Plain \advance\mscount \minusone \advance\mscount \mscount \!thLoop \ifnum\mscount\plusone [EMAIL PROTECTED] % from Plain (\span\omit [EMAIL PROTECTED]) \repeat \span}% \fi % added \else % added \def\next % conflicts with possible next \omit % added {\global\advance\currentTABLEcolumn \plusone}%% added \fi \next}% added \starttext \starttable[|c|c|c|c|] \HL \VL {test} \VL \TWO{} \VL test \VL\FR \DL \DC \DL\DR \VL {test} \VL \TWO{} \VL test \VL\LR \HL \stoptable \stoptext Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] centering framed boxes
Idris Samawi Hamid wrote: Dear gang, I need a way to overlay four framed boxes so that each inner box is exactly in the center of its respective outer box. So far I have the following, but careful inspection will show that the boxes are not precisely centered with respect to each other. I could go on by trial and error but I'm sure there is a direct way to do this. The text should also be precisely centered between frames. Thank you in advance! Idris = \setupoutput[pdftex]% \setuppagenumbering[state=stop] \starttext \setupfloats[location=middle] \placefigure [here][tab:enclosure]{4 Stages.} { \midaligned{ \framed [width=12\baselineskip,height=12\baselineskip,strut=yes] {\midaligned{Stage 1} \midaligned% {\framed[width=9\baselineskip,height=9\baselineskip,strut=yes] {\midaligned{Stage 2} \midaligned% {\framed[width=6\baselineskip,height=6\baselineskip,strut=yes] {\midaligned{Stage 3} \midaligned% {\framed[width=3\baselineskip,height=3\baselineskip,strut=yes] {\midaligned{Stage 4}} } \midaligned{\null}}% } \midaligned{\null}}% } \midaligned{\null}} } } \stoptext yuo're messing around with struts -) keep it simple: \showstruts \framed [width=12\baselineskip,height=12\baselineskip,strut=no] {\framed[width=9\baselineskip,height=9\baselineskip,strut=no] {\framed[width=6\baselineskip,height=6\baselineskip,strut=no] {\framed[width=3\baselineskip,height=3\baselineskip,strut=no] {\begstrut text\endstrut} } }} -- - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] centering framed boxes
Idris Samawi Hamid wrote: Dear gang, I need a way to overlay four framed boxes so that each inner box is exactly in the center of its respective outer box. So far I have the following, but careful inspection will show that the boxes are not precisely centered with respect to each other. I could go on by trial and error but I'm sure there is a direct way to do this. The text should also be precisely centered between frames. Thank you in advance! Idris = \setupoutput[pdftex]% \setuppagenumbering[state=stop] \starttext \setupfloats[location=middle] \placefigure [here][tab:enclosure]{4 Stages.} { \midaligned{ \framed [width=12\baselineskip,height=12\baselineskip,strut=yes] {\midaligned{Stage 1} \midaligned% {\framed[width=9\baselineskip,height=9\baselineskip,strut=yes] {\midaligned{Stage 2} \midaligned% {\framed[width=6\baselineskip,height=6\baselineskip,strut=yes] {\midaligned{Stage 3} \midaligned% {\framed[width=3\baselineskip,height=3\baselineskip,strut=yes] {\midaligned{Stage 4}} } \midaligned{\null}}% } \midaligned{\null}}% } \midaligned{\null}} } } \stoptext \starttext \definelayer[test][width=12\bodyfontsize,height=12\bodyfontsize] \setlayerframed[test][preset=middle][width=12\bodyfontsize,height=12\bodyfontsize]{one} \setlayerframed[test][preset=middle][width= 9\bodyfontsize,height= 9\bodyfontsize]{two} \setlayerframed[test][preset=middle][width= 6\bodyfontsize,height= 6\bodyfontsize]{three} \setlayerframed[test][preset=middle][width= 3\bodyfontsize,height= 3\bodyfontsize]{four} \tightlayer[test] \stoptext -- - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] unrelated errors
Dear list members, I made the following observation and I am wondering whether that is to be expected: After, with the help of this list, I found out how to insert greek strings, I adjusted the .tex file accordingly. But because I used an automatic replacement procedure (in emacs), one of the many replacements turned out \Greek instead of \greek. texexec complained, but I didn't spot the mistake immediately and pressed return. In the resulting pdf file I found the following unrelated errors: 1. One \inmargin figure appeared as if the command was \inothermargin 2. One \inothermargin word appeard \inmargin 3. All the references to figures and tables went unrecognised (??). After I changed \Greek to \greek, all these errors disappeared. This seems to be the same problem I had earlier, when I used \inmarge instead of \inmargin and my newer setups didn't recognise it: all the references were gone, and reappeared when the mistake was corrected. Cheers, Jörg. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] How to make a PDF workbook structure with index?
Hi everybody, is anyone experienced in archiving PDF? I need archiving lots of different PDFs in different sizes and formats into workbooks or folders with index files. How could I possibly look into each PDF, getting the title info and generate an index? How do I do clickable references to each content PDF? How could I practically bind PDF together (ZIP, tar, ...)? Is there some sort of workbook-like file-format? I had problems with re-arranging oddly generated PDFs via pdftex so I want avoiding re-arrangement. Thanks much for any hint. Thomas Schrader ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] spurious text produced by TABLE
Hi Hans = Original Message From Hans Hagen [EMAIL PROTECTED] = TABLE produces a spurious dot in the following (look closely at the center of the dot is a division line between your span I replaced \VL with \DC and the dot disappears. There is still something wrong with \DL \DC \DR. Look very closely at the right edge of the attached table: There is a gap between 2 stacked vertical lines instead of one. If you exchange the commented line with the one below it disappears (I suspect that \VL overwrites the \DR). Interestingly, the gap appears to be the same size as the spurious dot-) See also absolute page 42 of the ConTeXt excursion. In the typeset table, to the right of `Table', the same gap appears. (I have not tested your new code yet to see if this resolves that) Thanks as always for your help! Idris % output=pdf interface=en \setuppagenumbering[state=stop] \starttext \setupfloats[location=middle] \placetable [here][tab:sciences]{There is a spurious dot in the big box.} \starttable{|c|c|c|} \HL \VL {test} \VL \TWO{} \VL\FR %\DL \DC\VL\DR \DL \DC\DR \VL {test} \VL \TWO{} \VL\FR \HL \stoptable \stoptext Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Context, LaTeX, or an XML for academic writing?
Ask somebody in your field who is really good at TeX for the LaTeX sources of his/her thesis, and use them as templates. Spend as little time as possible thinking about layout and as much as you can about content. You speak the truth. I really want to avoid that. I do have solid experience with LaTeX and could start right away with it. Considering ConTeXt comes from its clear conceptual advantages. I'm basing the decision on whether someone can point me into a direction and say: use this, it looks great and you'll be content with it. You only will have the energy to strive for excellence in layout after you have had the satisfaction of creating content worthy of it. I did a presentation before with ConTeXt and exactly that was the painful lesson I learned. Thanks for the advice - Tobias ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] centering framed boxes
= Original Message From Hans Hagen [EMAIL PROTECTED] = \starttext \definelayer[test][width=12\bodyfontsize,height=12\bodyfontsize] \setlayerframed[test][preset=middle][width=12\bodyfontsize,height=12\bodyfont size]{one} \setlayerframed[test][preset=middle][width= 9\bodyfontsize,height= 9\bodyfontsize]{two} \setlayerframed[test][preset=middle][width= 6\bodyfontsize,height= 6\bodyfontsize]{three} \setlayerframed[test][preset=middle][width= 3\bodyfontsize,height= 3\bodyfontsize]{four} \tightlayer[test] \stoptext Hi Hans, I tried your code (so beautiful and simple!): it properly stacks the frames but places the text for each level, not midway between frames as desired, but in the middle frame (on top of one another). Anyway, the following file illustrates the exact effect I'm trying to acheive (note the final overlay of some text across all four levels). I certainly would prefer to do this the ConTeXt way (e.g. is there a better way to stretch the word `testing'?)! Thanks as always for your guidance and help. Best Idris \setupoutput[pdftex]% \setuppagenumbering[state=stop] \starttext\showstruts \startbuffer[Test] \setupfloats[location=middle] \placefigure [here][fig:Test]{4 levels.} {\startbuffer[test]\vbox{ \midaligned{\it \framed [width=12\baselineskip,height=12\baselineskip,strut=yes] {\midaligned{\raise.25ex\hbox{level 1}} $\vcenter% {\framed[width=9\baselineskip,height=9\baselineskip,strut=yes] {\midaligned{\raise.25ex\hbox{level 2}} $\vcenter% {\framed[width=6\baselineskip,height=6\baselineskip,strut=yes] {\midaligned{\raise.25ex\hbox{level 3}} $\vcenter% {\framed[width=3\baselineskip,height=3\baselineskip,strut=yes] {\midaligned{\raise3.6ex\hbox{level 4}}} }$ \midaligned{\null}}% }$ \midaligned{\null}}% }$ \midaligned{\null}} } } \stopbuffer \startbuffer[testing]\vbox{\midaligned{\kern-6\baselineskip\itb \lower1.4ex\hbox{t\,e\,s\,t\,i\,n\,g}}} \stopbuffer \hbox{$\vcenter{\getbuffer[test]}\llap{$\vcenter{\getbuffer[testing]}$}$} } \stopbuffer \getbuffer[Test] \stoptext === Professor Idris Samawi Hamid Department of Philosophy Colorado State University Fort Collins, CO 80523 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problems placing figures II
Richard Gabriel wrote: Hello Hans, thanks, but my ConTeXt reports Unknown control sequence. I use TeXLive 2003 (Windows XP) and a ConTeXt distribution downloaded about two moths ago. Browsing the ConTeXt sources, I've found a \doflushfloats macro which seems to do the desired job... Does it really do? probably, just give it a try Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Context, Latex, or an XML for acaddemic writing?
Just to add a slightly different flavour, I have been using PdfLatex for several years to produce technical manuals for various pieces of software, which have included a lot of graphics and tables. I have recently changed to ConText mainly because it is far easier to set up how you want the text to be displayed and you don't need to include lots of additional packages which often have side effects with each other and need to be included in the correct order. I have also found it very easy to modify Latex input to Context input and particularly like the separation possible with graphics (whereby you can have a separate file that points to the graphics file and not have to embed the file name in the middle of the document) It would be nice if this list could produce some good layouts for others to use to provide us all with some defaults and a starting point rather than everyone reinventing the wheel. Dave Waller ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Context, Latex, or an XML for acaddemic writing?
David Waller wrote: Just to add a slightly different flavour, I have been using PdfLatex for several years to produce technical manuals for various pieces of software, which have included a lot of graphics and tables. I have recently changed to ConText mainly because it is far easier to set up how you want the text to be displayed and you don't need to include lots of additional packages which often have side effects with each other and need to be included in the correct order. I have also found it very easy to modify Latex input to Context input and particularly like the separation possible with graphics (whereby you can have a separate file that points to the graphics file and not have to embed the file name in the middle of the document) It would be nice if this list could produce some good layouts for others to use to provide us all with some defaults and a starting point rather than everyone reinventing the wheel. well, one approach to this is that some folks on the list provide 'i want this, what is the best way' kind of questions and collect the answers in a manual / style Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] straight single quote
While I appreciate TeX's support for attractive curly quotes, when representing console text it is important to use straight single and double quotes. I've been googling, exploring the list archives, reading the source, and beating my head against a nice blue pillar over by the window. None of these approaches has resulting in a straight single quote. What is the best way to get a straight single quote that matches the straight double quote of the current font? -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] font mapfiles
Hans, Adam, thanks for your replies! I just tried with Adam's version and my old version of cont-sys.tex, but it made no difference - do I have to rebuild the formats every time I change this file? I'll do more experiments this weekend, but will be away from my computer from tomorrow till Friday. Thanks for your help, I'll report back! Best Thomas On May 17, 2005, at 8:03 PM, Hans Hagen wrote: Thomas A. Schmitz wrote: Sorry for reposting, but I'm really curious about this issue! I just had to reinstall my TeX installation (upgrade to OS X 10.4). After mucking around with my old TeX, I decided to reinstall, and I hit a problem: even though I ran updmap, ConTeXt doesn't seem to work with the fonts I installed myself unless I include the \loadmapfile [foo] either in the typescript or in the source file. This wasn't the case before. I also tried moving the mapfiles to texmf/fonts/map/ pdftex/context insteadt of just fonts/ map/, but that didn't change anything. Am I missing something obvious, or is this the expected behavior? I much prefer to have system-wide mapfiles since I use LaTeX from time to time and want the same fonts available there. They work with plain pdfetex as well, it's just ConTeXt that gives trouble. So my question is: is this the new setup, are we supposed to load mapfiles this way, and what is the advantage over the old method? my guess is that you lost your local cont-sys.tex and that cont- sys.rme is used now; in there you will find \resetmapfiles so, in your case, you need a special version of cont-sys.tex (preferable in context/user so that it is not lost when you wipe out context/base) btw, in some future release i will drop context map files and stick to inline map entries, Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to make a PDF workbook structure with index?
Thomas Schrader schrieb: Hi everybody, is anyone experienced in archiving PDF? I need archiving lots of different PDFs in different sizes and formats into workbooks or folders with index files. How could I possibly look into each PDF, getting the title info and generate an index? How do I do clickable references to each content PDF? How could I practically bind PDF together (ZIP, tar, ...)? Is there some sort of workbook-like file-format? I had problems with re-arranging oddly generated PDFs via pdftex so I want avoiding re-arrangement. Thanks much for any hint. Thomas Schrader ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Hi Thomas, maybe a search for PDF at http://www.softpedia.com can solve some of your problems (use the SOFTPEDIA SEARCH ENGINE at the bottom of the page). It results for example in: http://www.softpedia.com/get/Programming/File-Editors/PDF-Explorer.shtml PDF Explorer description PDF Explorer is a PDF file management software and image extraction tool. It allows you to easily gather and add all your pdf files to a database file, that displays an overview of Filename, Title, Subject and Author. You can then search through all the files, view them, batch rename them and more. PDF Explorer can also scan within ZIP files and more. Happy exploring, Peter ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] font mapfiles
Thomas A. Schmitz wrote: Hans, Adam, thanks for your replies! I just tried with Adam's version and my old version of cont-sys.tex, but it made no difference - do I have to rebuild the formats every time I change this file? I'll do more experiments this weekend, but will be away from my computer from tomorrow till Friday. Thanks for your help, I'll report back! the file cont-sys.tex is read in at runtime, so there is no need to regenerate the format; when testing, watch the messages in the log with regards to map files Hans - 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 - ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Context, LaTeX, or an XML for academic writing?
On Wed, May 18, 2005 at 01:41:00AM +0300, Ville Voipio wrote: One of the mixed blessings (=curses) brought about by computers is that now you need to be an academic writer, a typesetter, and a graphic artist at the same time. At this point the number of should-knows explodes. [snip] --- What I am trying to say is that choosing the tool is only one part of the project. Whichever tool you choose, you'll end up in trouble at some point. With some tools (WYSIWYG) you'll end up in worse trouble, but even with *TeX the road is bumpy at best, unless you really have a tested and proven templates which you can use. Yes, this is exactly the problem. I am laying out my girlfriend's thesis in historic preservation, and it is taking me forever. What a waste of time! The thesis is actually written in XML. Or rather, she has written it in MS Word, which I have converted to XML using a very sophisticated script (http://rtf2xml.sourceforge.net/). I then convert the file to ConTexT, and then to PDF. There are a million stupid details, like making sure the title on the cover page is exactly 3 inches from the top and so fourth. This is a waste of time. Why should we be forced to layout pages when we don't want to? Therefore I think a good argument can be made for universities eventually accepting a thesis in XML format. If they want to be so picky about layout, they should do it; the student should only be required to submit the basic information in a structured form. The assumption of the University is that everyone uses Word. This is a bad assumption. Paul -- *Paul Tremblay * [EMAIL PROTECTED]* ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] LaTeX emulation (was: Context, Latex, or an XML for acaddemic writing?)
Le 18 mai 05 à 00:13, Mojca Miklavec a écrit : Perhaps one of them would be cloning the default LaTeX style and include it into standard ConTeXt distribution. I guess this would be one reason more for LaTeX people to switch. (I sometimes still use LaTeX if I have absolutely no time and need to think about layout.) I agree I would be a very nice thing to have! The main LaTeX classes to emulate would be: - article - rapport - book But this is much work for somebody who is more interested by the content of its document than by the envelope. So this thing (context template) will take much time in collaborating. What kind of stuff do we need for, say, an article LaTeX class? \usemodule[latex] \usemodule[latexarticle] This should modify the behavior of all the \section like command, the \startitemize, add some \newtheorem emulation, a decent defaut table of content listing ... Where to start - define a name for the module (e.g. [latexarticle]), - begin an empty template module, - perhaps there should be a common module for all LaTeX emulation which would be called by all laTeX classes emulation ? - start the to ask for / fill request point cycle ? Maurice ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context