Re: [NTG-context] Mini-survey: What do you do with ConTeXt?
Taco Hoekwater schrieb: > Hi all, > > For the next issue of the ntg's Maps journal, Hans and I believe > it would be nice to publish the collected responses to this simple > question: > > What do you do with ConTeXT? > > We think it would be nice to see all the various ways in which people > experience ConTeXt. We are not looking for articles, in fact we really > want just a small amount of text per user, nothing longer then you > would normally type in an email message. > I - write all my personal documents with ConTeXt - prepared some complicated fillable Forms including calculations by Javascript and sending the data to a webserver - convert some Manuals to ConTeXt (step by step) - query an Oracle database with perl and write the results to ConTeXt files - all my presentations i create with ConTeXt - typeset chinese texts Thanks for ConTeXt! Greetings Lutz ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
RE: [NTG-context] placing headings (solution on wiki)
Hi gang, Ok, I figured out a solution and have posted it here (bottom of page): http://wiki.contextgarden.net/Headers_and_Footers I have never edited the wiki before so I hope the maintainer will check to make sure I did not do something wrong-) If there is a way to improve my solution please let me know! I think this is a nice sample file... Best Idris Dear gang, I am having difficulties with heading placement. Consider the following sample file: =headings.tex== % output=pdf interface=en \setuppapersize [A5][A4] \setuplayout[width=middle, height=middle, footer=3\bodyfontsize, header=0pt, headerdistance=\bodyfontsize, bottom=3\bodyfontsize, location={middle,doublesided}, marking=on] \setuppagenumbering[alternative=doublesided, location={footer,middle}] \setupbottomtexts[pagenumber] \setupbottom[style=\tf,state=high] \setupfootertexts% [][section][chapter][] \setupfooter[style=\tf, state=high] \setuptexttexts% [margin][][section][chapter][] \setuptext[style=\tf, state=high] \setupinmargin[align=inner, style=\tfx\setupinterlinespace] \showframe \starttext \chapter{Ch. Knuth Knuth} \section{Sec. Knuth Knuth} \dorecurse{20}{\input knuth\par\ } \stoptext === This file should compile fine. Problem 1: I would like the headings in the footer to be flush with the top of the footer space instead of at the bottom; Problem 2: After making the footer headings flush with the top of the footer space, I would now like to mid-align the headings so each is just above the page number in the footer space (I thought this would be trivial but it's apparently not); Problem 3: I would like to have marginal headings: how do I i) keep the headings boxed within the margin width; ii) raise (or lower) the box containing the margin headings? Thnx in advance for helping me solve these problems! Best Idris 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] Mini-survey: What do you do with ConTeXt?
Taco Hoekwater wrote: Hi all, For the next issue of the ntg's Maps journal, Hans and I believe it would be nice to publish the collected responses to this simple question: What do you do with ConTeXT? - proceedings from individual PDFs, - presentations, - posters, - logos, visiting cards, - manual (HTML and PDF form from XML source), - personal electronic travel-journal (http://typokvitek.com/nzs you can see evolution of my ConTeXt skills) - booklet with very complex layout (sometimes seems to me over my ConTeXt skills) with two-column, margin, many, many floats, balancing, sorting, in Czech, ... I will write some experience with this -- if I will finnish it and survive two times postponned deadline... As a 'clever plain' with METAPOST, layers, and overlayes the ConTeXt it is excelent! As a 'all-in-one key-val LaTeX' it is nice and uniform. And as a tool to solve 'so far TeX dreams' it is problematic: without deadlines it is a funny game, with them a pain. In every point, thanks to authors for Him. vit ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] maximum of \externalfigure in MP
Taco Hoekwater wrote: andrea valle wrote: It's the same file but I commented out a part of the section dedicated to importing and drawing little notes attached to arrowlines between music fragments. Everything not commented is now displayed: on my machine it seems to be deterministic. Ok, got it. There is a bug in mp-spec.mp (inside metafun). Because of a wrapping number, it fails to recognize the fact that there are embedded specials at all. Attached is an updated version of mp-spec.mp. The corrected definition of add_special_signal is: vardef add_special_signal = % write the version number if (length _global_specials_<>0) or (length _local_specials_ <>0) : special ("%%MetaPostSpecials: 1.0 " & decimal _special_signal_ ) ; fi ; enddef ; It now tests for "not equal to zero" instead of "larger than zero": because of all the included files, the string _local_specials_ becomes longer than the maximum number 'length' can return, so it returns -32768 instead, and that is of course less than zero. ok, patched. i guess that only you could uncover this wrap-around bug -) (btw, another funny mp issue is in opening a file for a second time (probably due to the non explicit close)) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] xml, context and hyphenation
Taco Hoekwater wrote: Wolfgang Zillig wrote: Hello Taco, when I try to compile your example file: Then I get no output! The logfile is at the end of the message! That was intentional. \showhyphens only writes a message to the terminal, no typesetting was doen. It complains about that the coding utf is unknown! That was a mistake. I used \useencoding, where I should have used \enableregime. Revised version: \language[de] \enableregime[utf] \hyphenation{Voll-stän-dig-keit} \starttext \showhyphens{Vollständigkeit} \stoptext Either way, your output from my test file looks fine. if you want to define hyphenation exceptions in XML code: \useXMLfilter[hyp] (see xtag-hyp for more info) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: Re[2]: [NTG-context] Bug / feature request tracking
Giuseppe, Vit, I stand corrected. Thanks for pointing this out -- I'm ashamed I didn't look past p. 213 of the manual. And of course this is much more flexible than the LaTeX way - how could I ever doubt it? I will correct the entry in the bug collector and apologize for the noise. Thanks, and best Thomas On Nov 8, 2005, at 11:05 AM, Giuseppe Bilotta wrote: Monday, November 7, 2005 Thomas A. Schmitz wrote: 4. and a feature request: it would be good to have some formatting options like LaTeX makeidx offers: \index{keyword|textit} will produce a page-number in italics in the register. That would be immensely useful to produce a structured index. I have the following, in my PhD thesis \setupindex[pagestyle=normal] \setupregister[index][def][pagestyle=bold] \def\indexdefinition#1{\index[def::]{#1}} \def\defterm#1{\leavevmode{\indexdefinition{#1}\it#1}} \def\deftermx#1#2{\leavevmode{\processcommalist[#2]\indexdefinition \it#1}} \def\useterm#1{\leavevmode{\index{#1}#1}} \def\usetermx#1#2{\leavevmode{\processcommalist[#2]\index#1}} the 'def' is an index 'class', which can be formatted differently from the others. I use it to makr the definition of a term (the other commands are just shorthands :)). You can set up as many classes as you want and format each of them as you wish. Much better than the LaTeX way :) More details in the manual. -- Giuseppe "Oblomov" Bilotta ___ 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] Mini-survey: What do you do with ConTeXt?
Thomas A. Schmitz wrote: around, but if you just want a job done, ConTeXt can be a bit daunting. The wiki is just beginning to take off, and when Hans and/or Taco are away or are too busy to answer questions on the list, it becomes a bit discouraging because there are so many questions with just very few answers being posted. just repost; mails shift out of my mail windows -) - I sometimes wonder where we will be in ten years: will we all stll be using this wonderful tool? Will Hans continue to have time and energy to develop it? How can we convince more TeX users to come over to ConTeXt and help? don't worry, new things will keep coming -) Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mini-survey --> Community
andrea valle wrote: Just a curiosity. Can anyone estimate how many people are using ConTeXt? hard to say - the list currently has some 435 members of which some are dormant - people come and go but the list is still growing - i know of people using context and not on the list (personal mails i get) - how many users expose themselves? i dunno: i use ruby, gs, etc and am not on any of the assiciated lists; - i don't keep track of downloads / website so no info from that - there are different kind of users (simple docs, no problem to get it running) or more advanced work; my impression is (when i compare usage with what i see at for instance user group meetings) that on the context list there are rather advanced (demanding) users (special layouts, fonts, etc) - so ... it hard to make a guess Hans ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] conTeXt distros on MACOSX
andrea valle said this at Tue, 8 Nov 2005 10:59:03 +0100: > >If I invoke texexec from terminal, default is located in sw/bin. It's >3.1 version: Danger! Danger! (Sorry, that's a bit cruel and extreme.) However, it seems that you, once upon a time, installed the Fink package system, and tried to get TeX along with it. Fink is notoriously "greedy" in the way it sets the path, and can live a long time on your system after you have forgotten it exists. If you don't use any fink-installed packages, I suggest completely obliterating the /sw tree. If you can't get away with that, I suggest going through and deleting all tex-related binaries from the /sw/bin tree or making sure /sw/bin is inserted into your $PATH last, and not first. (for those watching from the sidelines, Fink is a dpkg system for the Mac, but I have long disapproved of the way it goes about its business on people's systems) -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED] Lancaster University, InfoLab21+44(0)1524/510.514 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] maximum of \externalfigure in MP
andrea valle wrote: (Taco, thanks for all the infos. Now, just trying to understand). Why the bug manifest itself in this particular tex file? I mean: I have made other pieces, both with far less either with far more included pdfs and everything was ok. What's special in the bug-raiser tex we discussed about? For every pdf you include, about 80 bytes is added to an internal string. There is a macro that checks the length of this string, and it sets a special "there are included pdfs" flag when the strings length is larger than zero. However, the primitive metapost operation to get the length of a string is rather stupid, it wraps without ever checking anything. Just run this bit of metapost code and watch the terminal output: string s; s := ""; forever: s := s & ""; message decimal length s; endfor; end. (you'll have to kill the process manually) So, my patch checks for 'not zero', which has a far smaller chance of being incorrect. Not completely nil, unfortunately. 'length' can actually wrap back to being zero, I'll have to fix that in metapost itself. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Creatin metafun.mem on OSX
> Andrea, > > what kind of installation are you using? Gerben's i-installer or fink > or have you installed tetex on your own? If you want to find out > where different files reside, run this command: > > kpsewhere mp-spec.mp > > on my system (Gerben's architecture), I get: > > /usr/local/teTeX/share/texmf.local/metapost/context/base/mp-spec.mp > /usr/local/teTeX/share/texmf.tetex/metapost/context/base/mp-spec.mp The following comment is only valid for my redistribution: Normally, you would only have the second line (ConTeXt that is part of teTeX 3.0, which is roughly a year out of date). You only get the first line if you have installed my ConTeXt updater package. The texmf.local location is found before the texmf.tetex location, hence, installing the updater overrules what is in teTeX. Uninstalling the ConTeXt updater gets you back to the version in teTeX 3.0. You can set an automatic check for update for i-Packages in i-Installer after which you get a mail message telling you which packages have updated. The ConTeXt i-Package itself is updated automatically on the repositories if Hans releases a new version or a new beta. Which means that you'll hear about any ConTeXt update within 24 hours automatically. The ConTeXt updater is the only i-Package which is updated automatically on the repositories. G ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] conTeXt distros on MACOSX
(This derives form the thread about metafun.mem) As I have used till now only texshop, I was going to try the distro form pragma-ade. I downloaded it but I do not know what to do. As they are binaries I supposed I have not to compile anything. Should I simply put the folder in the right place? The Readme is quite vague. I put it in usr/local, tried to run from terminal the texexec bin but obtained: apples-Computer:/ apple$ /usr/local/tex/texmf-macosx/bin/texexec --h /usr/local/tex/texmf-macosx/bin/texexec: line 2: texmfstart: command not found What have I to do to use the most recent distro from pragma? More, I really cannot understand what's going on when I invoke "typeset context" form inside TeXShop. Luckily, something happens and I have my nice pdfs. This is default engine as stated by TeXShop. /usr/local/teTeX/bin/powerpc-apple-darwin-current If I go there, I find many binaries, and there's a texexec. If I invoke it directly form terminal I obtain: apples-Computer:/ apple$ /usr/local/teTeX/bin/powerpc-apple-darwin6.8/texexec -h `texexec.pl' not found. If I invoke texexec from terminal, default is located in sw/bin. It's 3.1 version: apples-Computer:/ apple$ which texexec /sw/bin/texexec apples-Computer:/ apple$ texexec -h TeXExec 3.1 - ConTeXt / PRAGMA ADE 1997-2002 (I know virtually nothing of bash, I grabbed some commands here and there) I'm getting a bit depressed... -a- ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] maximum of \externalfigure in MP
(Taco, thanks for all the infos. Now, just trying to understand). Why the bug manifest itself in this particular tex file? I mean: I have made other pieces, both with far less either with far more included pdfs and everything was ok. What's special in the bug-raiser tex we discussed about? Thanks -a- On 7 Nov 2005, at 12:22, Taco Hoekwater wrote: andrea valle wrote: It's the same file but I commented out a part of the section dedicated to importing and drawing little notes attached to arrowlines between music fragments. Everything not commented is now displayed: on my machine it seems to be deterministic. Ok, got it. There is a bug in mp-spec.mp (inside metafun). Because of a wrapping number, it fails to recognize the fact that there are embedded specials at all. Attached is an updated version of mp-spec.mp. The corrected definition of add_special_signal is: vardef add_special_signal = % write the version number if (length _global_specials_<>0) or (length _local_specials_ <>0) : special ("%%MetaPostSpecials: 1.0 " & decimal _special_signal_ ) ; fi ; enddef ; It now tests for "not equal to zero" instead of "larger than zero": because of all the included files, the string _local_specials_ becomes longer than the maximum number 'length' can return, so it returns -32768 instead, and that is of course less than zero. Don't forget that you have to re-create the metafun format as well! Cheers, Taco %D \module %D [ file=mp-spec.mp, %Dversion=1999.6.26, %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=special extensions, %D author=Hans Hagen, %D date=\currentdate, %D copyright={PRAGMA / Hans Hagen \& Ton Otten}] %C %C This module is part of the \CONTEXT\ macro||package and is %C therefore copyrighted by \PRAGMA. See licen-en.pdf for %C details. % Spot colors are not handled by mptopdf ! % (r,g,b) => cmyk : r=123 g= 1 b=hash % => spot : r=123 g= 2 b=hash % => transparent rgb : r=123 g= 3 b=hash % => transparent cmyk : r=123 g= 4 b=hash % => transparent spot : r=123 g= 5 b=hash % => rest : r=123 g=n>10 b=whatever %D This module is rather preliminary and subjected to %D changes. Here we closely cooperates with the \METAPOST\ %D to \PDF\ converter module built in \CONTEXT\ and provides %D for instance shading. More information can be found in %D type {supp-mpe.tex}. if unknown context_tool :input mp-tool ; fi ; if known context_spec : endinput ; fi ; boolean context_spec ; context_spec := true ; numeric _special_counter_ ; _special_counter_ := 0 ; numeric _color_counter_ ; _color_counter_ := 11 ; % < 10 reserved numeric _special_signal_ ; _special_signal_ := 123 ; %D When set to \type {true}, shading will be supported. Some %D day I will also write an additional directive. boolean _inline_specials_ ; _inline_specials_ := false ; %D Because we want to output only those specials that are %D actually used in a figure, we need a bit complicated %D bookkeeping and collection of specials. At the cost of some %D obscurity, we now have rather efficient resources. string _global_specials_ ; _global_specials_ := "" ; string _local_specials_ ; _local_specials_ := "" ; vardef add_special_signal = % write the version number if (length _global_specials_<>0) or (length _local_specials_ <>0) : special ("%%MetaPostSpecials: 1.0 " & decimal _special_signal_ ) ; fi ; enddef ; vardef add_extra_specials = scantokens _global_specials_ ; scantokens _local_specials_ ; enddef ; vardef reset_extra_specials = % only local ones _local_specials_ := "" ; enddef ; boolean insidefigure ; insidefigure := false ; % todo: alleen als special gebruikt flush extra_beginfig := " insidefigure := true ; " & " reset_extra_specials ; " & extra_beginfig ; extra_endfig := " add_special_signal ; "& extra_endfig & " add_extra_specials ; "& " reset_extra_specials ; " & " insidefigure := false ; " ; def set_extra_special (expr s) = if insidefigure : _local_specials_ := _local_specials_ & s ; else : _global_specials_ := _global_specials_ & s ; fi enddef ; def flush_special (expr typ, siz, dat) = _special_counter_ := _special_counter_ + 1 ; if _inline_specials_ : set_extra_special ( "special " & "(" & ditto & dat & " " & decimal _special_counter_ & " " & decimal typ & " " & decimal siz & " special" & ditto & ");" ) ; else : set_extra_special ( "special " & "(" & ditto & "%%MetaPostSpecial: " & decimal siz & " " & dat & " " & decimal _special_counter_ & " " & decimal typ & ditto & ");" ) ; fi ; enddef ; %D The next hack is needed in case you use a version of %D \METAPOST\ that does not provide you the means to configure %D the buffer size. Patrick Gundlach sug
Re[2]: [NTG-context] Bug / feature request tracking
Monday, November 7, 2005 Thomas A. Schmitz wrote: > 4. and a feature request: it would be good to have some formatting > options like LaTeX makeidx offers: > \index{keyword|textit} will > produce a page-number in italics in the register. That would be > immensely useful to produce a structured index. I have the following, in my PhD thesis \setupindex[pagestyle=normal] \setupregister[index][def][pagestyle=bold] \def\indexdefinition#1{\index[def::]{#1}} \def\defterm#1{\leavevmode{\indexdefinition{#1}\it#1}} \def\deftermx#1#2{\leavevmode{\processcommalist[#2]\indexdefinition\it#1}} \def\useterm#1{\leavevmode{\index{#1}#1}} \def\usetermx#1#2{\leavevmode{\processcommalist[#2]\index#1}} the 'def' is an index 'class', which can be formatted differently from the others. I use it to makr the definition of a term (the other commands are just shorthands :)). You can set up as many classes as you want and format each of them as you wish. Much better than the LaTeX way :) More details in the manual. -- Giuseppe "Oblomov" Bilotta ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Creatin metafun.mem on OSX
Andrea,what kind of installation are you using? Gerben's i-installer or fink or have you installed tetex on your own? If you want to find out where different files reside, run this command:kpsewhere mp-spec.mpon my system (Gerben's architecture), I get:/usr/local/teTeX/share/texmf.local/metapost/context/base/mp-spec.mp/usr/local/teTeX/share/texmf.tetex/metapost/context/base/mp-spec.mpThe first file is the one actually used by your TeX-installation, so this is the one you'd need to modify. Actually, "all this unix-filename always repeating" is there for a very good reason, so don't complain about it...Good luckThomasOn Nov 8, 2005, at 10:48 AM, andrea valle wrote:I'm getting really lost with all this unix-filename always repeating in different parts of the directory tree. ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Creatin metafun.mem on OSX
andrea valle wrote: Bad way. I substituted all the m-spec.mp I was able to find (2).I runned a texexec, obtained a new metafun.mem, and substituted the old one. Something changed, in the sense that I have no output at all: a blank page. That would/should have worked, as far as i can tell. I am sorry, I am stuck. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Creatin metafun.mem on OSX
Bad way. I substituted all the m-spec.mp I was able to find (2).I runned a texexec, obtained a new metafun.mem, and substituted the old one. Something changed, in the sense that I have no output at all: a blank page. -a- On 8 Nov 2005, at 09:34, Taco Hoekwater wrote: andrea valle wrote: I think I found the mem file. In fact, I created a .mem file and when I substitute the old with the new one, nothing get printed out anymore. Do you mean this in a good or a bad way? I'm getting really lost with all this unix-filename always repeating in different parts of the directory tree. Most of us are familiar with this feeling, believe me. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context Andrea Valle DAMS - Facoltà di Scienze della Formazione Università degli Studi di Torino [EMAIL PROTECTED] ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] [Fwd: [Fwd: MetaPost to SVG Converter]]
Original Message Original-Nachricht Betreff: MetaPost to SVG Converter Datum: 7 Nov 2005 22:00:00 -0800 Von: tlhiv <[EMAIL PROTECTED]> Organisation: http://groups.google.com Newsgruppen: comp.text.tex For all that are interested, I've setup a page which described (in detail) the process of converting MetaPost output files to Scalable Vector Graphics (SVG). This page has a particular example as well as a *WEB TOOL* for doing the conversion. Please let me know if there are any issues with it. http://www.tlhiv.com/MetaPost/tools/mptosvg/ Thanks, Troy Henderson ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Creatin metafun.mem on OSX
andrea valle wrote: I think I found the mem file. In fact, I created a .mem file and when I substitute the old with the new one, nothing get printed out anymore. Do you mean this in a good or a bad way? I'm getting really lost with all this unix-filename always repeating in different parts of the directory tree. Most of us are familiar with this feeling, believe me. Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Mini-survey --> Community
andrea valle wrote: Just a curiosity. Can anyone estimate how many people are using ConTeXt? My guess would be somewhere from 100 to 200 active true users (people that are runing texexec themselves). I expect there to be about the same number of people that have used ConTeXt in the past but now have abandoned it for some reason. Those numbers are based on the amount of traffic & subscribers on this e-mail list. Also, I estimate some 500 or so people that have attempted to use ConTeXt one or a few times but never followed it through. Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context