Re: [NTG-context] Affiliation change
On Wed, Apr 1, 2009 at 20:33, Taco Hoekwater t...@elvenkind.com wrote: I plan to start selling manuals via lulu. I'm very interested in seeing what you'll produce. ___ 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] Which revision control system do you use?
On Tue, Mar 17, 2009 at 08:58, John Devereux j...@devereux.me.uk wrote: I use git. Originally for programming, but it is very useful for context too. I can also recommend Git. It's fast, easy to use (no, really!), and very actively developed. What's most important about using Git, though, is that it seems to be the most future-proof alternative. I'm sure Mercurial will be around for a long time, just as Subversion will, but of all the SCMs Git has the best foundation. ___ 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] Incorrect bookmark title of \completelistofabbreviations and no abbreviations are listed
On Tue, Mar 10, 2009 at 13:44, Nikolai Weibull n...@bitwi.se wrote: In neither --lua nor --xtx do I get a list of abbreviations with \completelistofabbreviations. The bookmark text is \headtext {abbreviations} for both. Can I at least get an acknowledgement that this is a problem with LuaTeX and that there's no simple fix at the moment so that I can begin working around it? Thanks. ___ 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] Incorrect bookmark title of \completelistofabbreviations and no abbreviations are listed
Hi! Long time no post. Anyway, I’m writing a document where I’m using abbreviations. In neither --lua nor --xtx do I get a list of abbreviations with \completelistofabbreviations. The bookmark text is \headtext {abbreviations} for both. With --pdf I get a list of abbreviations and the bookmark text is abbreviations. Here's a minimal example: \setupheadtext[en][abbreviations={Abbreviations Used in This Document}] \abbreviation{CSS}{Cascading Style Sheets} \setupinteraction [state=start, menu=on] \placebookmarks[chapter] \starttext \startbodymatter \CSS\ stands for \infull{CSS}. \stopbodymatter \startbackmatter \completelistofabbreviations \stopbackmatter \stoptext ___ 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] FYI
On 2/25/07, Idris Samawi Hamid [EMAIL PROTECTED] wrote: Info for the gang: http://slashdot.org/comments.pl?sid=223940threshold=1commentsort=0mode=threadpid=18135068#18135322 (last paragraph) This does not affect me or many of us but it's good to know the vibes out there. All the vim latex suite is really doing is packaging a bunch of (not very good) plugins. It wouldn't require much work to do something similar for context. But I'm not the guy for that, sorry. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] A new manual
On 9/28/06, John R. Culleton [EMAIL PROTECTED] wrote: What is needed now for greater acceptance of Context is not new features but a new manual, perhaps a multi volume set with a common index. If a consolidated manual set were offered for sale there would be a lot of customers. I'd buy it in an instant. With 38 hits on LaTeX in Computers Internet on Amazon.com I'd say that ConTeXt is lagging behind in the published-book-about department. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] verb-c.tex
On 8/17/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hallo! I have a little problem with the module 'verb-c'. Backslashes in verbatim text seem to disturb colors. \usemodule[verb-c] \setupcolors[state=start] \setuptyping[C][color=blue,palet=colorpretty, numbering=line] \starttext Davor \startC #include stdio.h int main() { printf(Hallo\n); } \stopC Danach \stoptext Problem: 'Danach' is blue! Last line number has the same color as the quotet String Hallo ConTeXt\n. Delete the newline char and all is ok! How can this be fixed? puts(Hallo); nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] modules
On 8/9/06, Taco Hoekwater [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: On 4/4/06, Hans Hagen [EMAIL PROTECTED] wrote: In order to be able to generate new zips i'd like the modules in the wiki to be tds compliant as soon as possible. Ive kept this mail starred since I first saw it and haven't put any thought into what you're actually asking about here. Now, however, I'd really like to know what /TDS compliant/ means and if there's something I should do with my BNF model to make it so. Have a look at the lettrines module for an example that should be simple to apply to t-bnf. Thanks (and thanks Sanjoy). I suppose the PDF documentation is auto-generated, so I don't need to include that, right? nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] modules
On 8/9/06, Taco Hoekwater [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: Have a look at the lettrines module for an example that should be simple to apply to t-bnf. Thanks (and thanks Sanjoy). I suppose the PDF documentation is auto-generated, so I don't need to include that, right? No, you do have to do that yourself, it is not autogenerated. (because that would not be very reliable) OK, done. Now how do I get this package to the modules homepage? nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] modules
On 8/9/06, Taco Hoekwater [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: Now how do I get this package to the modules homepage? On modules.contextgarden.net, there is a log in link in the upper right corner. Do that (use your wiki login), and you get a new set of links for updating your modules. I don't have a login, that I know about, so I created a new one. My username is now, so if you could give the user now ownership of the BNF grammar module, that'd be great. Thanks! nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] modules
On 4/4/06, Hans Hagen [EMAIL PROTECTED] wrote: In order to be able to generate new zips i'd like the modules in the wiki to be tds compliant as soon as possible. Ive kept this mail starred since I first saw it and haven't put any thought into what you're actually asking about here. Now, however, I'd really like to know what /TDS compliant/ means and if there's something I should do with my BNF model to make it so. Thanks. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Linux User Installation Guide
http://wiki.contextgarden.net/Linux_User_Installation Edit it to your hearts content, but please don't modify the sequence of commands, as they are correct. This is the setup that I use and I really like its simplicity. I don't have to deal with (the now dead) teTeX or worry about what directories will overrule some other. It's simple and sweet. (I set up HOMETEXMF as well, but that's a different story.) nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] extra white in framedtext
On 6/15/06, Hans Hagen [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: Is it only me, or do you really need to do somethnig about your encoding settings, Hans? i dunno, this what i got; normally utf8 works ok; i use thunderbird At my end (gmail), a random set of spaces from Hans van der Meer's (such an awesome name, btw) example have turned into U+FFFD in your reply. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] extra white in framedtext
On 6/12/06, Hans Hagen [EMAIL PROTECTED] wrote: |� �� �� �� �� �� �� �|� with \null in first line |� �� �first line� � �| |� �� �second line � �| --- --- |� �� �first line� � �|� without \null in first line |� �� �second line � �| --- Is it only me, or do you really need to do somethnig about your encoding settings, Hans? nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] [OT] Is Indesign CS 2 better than ConTeXt ?
On 5/26/06, Hans Hagen [EMAIL PROTECTED] wrote: concerning id ... it's non free, never sure what happens in ten years (adobe dropped pagemaker, (i'm told) messed up frame, so ...) and in order to process older docs will run into compatibility problems some day; supporting pdf trickery is not a real argument, since my experience is that tex is always first in supporting new features; however, adobe is the typesetter company favorite, if only because they use more adobe things (and also because they can keep changing per page which is more proffitable than change for a simple stylesheet once); and ... publishers don't really care about costs anyway so ...) I'd just like to add that InDesign is often misused by its users, so don't expect other people to use InDesign like you think you will. I work at a company that does translations, and, for us, dealing with InDesign documents is about the most painful job there is. Sure, the documents may look good, but the means to getting the documents are often not justifiable. But I guess it's more of an issue of the users not knowing how to use their software than there being a problem with the software itself. To that I'd like to add that I really don't like WYSIWYG because it's rarely true. And if you want to do professional work you really want something as flexible as TeX. Also, TeX scales really well, from small pamphlet-like documents to large books. The same can't be said for InDesign. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt 2006.04.24 released
On 4/25/06, Taco Hoekwater [EMAIL PROTECTED] wrote: * New math environments: \startintertext and \startsubstack Is ConTeXt coming closer to what LaTeX and Nath has in way of math support? I.e., are we more or less incorporating the nice stuff from the two into ConTeXt now? nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] more manuals
On 4/11/06, Hans Hagen [EMAIL PROTECTED] wrote: enattab I must say that natural tables have come a long way and seem more capable than our other table-implementations now, even without the new features you hint at. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] RFC: 'What would you like in an Text Editor?'
On 3/28/06, frantisek holop [EMAIL PROTECTED] wrote: [Vim can basically do everything you want] having said that i am a new context user and i don't know if there's something specifically for context. There's a syntax definition for ConTeXt. It's going to be modified for v7, as we're trying to consolidate all the TeXes. I'm currently maintaining the coretex.vim, plaintex.vim, and context.vim. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Imaginary entity rendering in MathML
On 3/28/06, Taco Hoekwater [EMAIL PROTECTED] wrote: nico wrote: The following MathML test case (rec-arg1) using newmml does not render the imaginary entity #x02148; correctly. It is shown as a minus (-) instead of i. I have this behaviour for any test using this entity. I guess the problem is that the vector unic-033 (=hex 21) only defines the arrow part, that starts at 0x2190 ? Probably. This vector is far from complete. I've tried to be as thorough as possible, but there simply isn't TeX equivalents for all symbols in that vector. At least not ones that I have been able to find. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] List of builtin TeX commands
Hi! Is there a list of builtin TeX commands anywhere on the net? I need it for a syntax definition of the plain TeX format. With builtin TeX commands I mean stuff like \def, \global, and such. A list of commands defined in plain.tex would be great as well, but at least that's easier to compile by myself, as I can just look in the actual file. The tex source is a bit harder to overview... Thanks! nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt IRC ?
On 1/27/06, Renaud AUBIN [EMAIL PROTECTED] wrote: Is there a context-related irc channel ? If there isn't but someone's going to create one now, please do so on EFNet; thanks. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt IRC ?
On 1/27/06, VnPenguin [EMAIL PROTECTED] wrote: On 1/27/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 1/27/06, Renaud AUBIN [EMAIL PROTECTED] wrote: Is there a context-related irc channel ? If there isn't but someone's going to create one now, please do so on EFNet; thanks. Freenode.net is good too IMHO. No, it is not. There's no reason for Freenode to exist. It's just a bunch of reimplementers who wanted their own chatnet...only gimpnet is lamer. EFNet has always worked fine, is well-established, has servers world-wine, and then some people think, hey, lets create another DALnet but with a free-software attitude... Just my incredbly unhumble opinion... nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt IRC ?
On 1/27/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 1/27/06, VnPenguin [EMAIL PROTECTED] wrote: On 1/27/06, Nikolai Weibull [EMAIL PROTECTED] wrote: On 1/27/06, Renaud AUBIN [EMAIL PROTECTED] wrote: Is there a context-related irc channel ? If there isn't but someone's going to create one now, please do so on EFNet; thanks. Freenode.net is good too IMHO. No, it is not. There's no reason for Freenode to exist. It's just a bunch of reimplementers who wanted their own chatnet...only gimpnet is lamer. EFNet has always worked fine, is well-established, has servers world-wine, and then some people think, hey, lets create another DALnet but with a free-software attitude... Just my incredbly unhumble opinion... Wow. Sorry. I really flew off the handle there. I hope no one was too offended. I really didn't mean to get off like that. I need to start leaving my mail in Drafts a while before sending them off. I guess I had a stranger opinion about Freenode than I myself realized. Again, sorry for lashing out like that. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] formula in itemlist
\def\setdisplaydimensions {\displayindent\leftdisplayskip \advance\displayindent\leftdisplaymargin \displaywidth\hsize \ifdim\hangindent\zeropoint \advance\displayindent\hangindent \else \advance\displaywidth\hangindent \fi \advance\displaywidth-\displayindent \advance\displaywidth-\rightdisplayskip \advance\displaywidth-\rightdisplaymargin \hsize\displaywidth} i'll also add an option to center at the page level and not locally Will this solve item 60 [1] in the collector? nikolai 1. http://context.literatesolutions.com/collector/60/pcng_issue_view ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] formula in itemlist
On 1/25/06, Taco Hoekwater [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: i'll also add an option to center at the page level and not locally Will this solve item 60 [1] in the collector? Yes. Awesome. nikolai ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] An idea
Christopher Creutzig wrote: Nikolai Weibull wrote: this than I have is welcome to finish it. The \highlight command should be defined something like this (pseudo-tex-code): \pdef\highlight[#1]{#2}% {\bgroup \setupcolorforgroup[#1]% \type{#2}% \egroup} #1 is a group name, such as Statement, Operator, or Comment. #2 may contain multiple lines, and I don’t know how well this will work on the TeX side. It may also contain special characters like {, #, , and so on. Suggestions? The most simple one I expect to work would be \def\highlight[#1]{% \bgroup \setuphighlightcolors[{#1}]% never forget those {}, %% since [] aren't balanced! \processinlineverbatim\egroup}% \egroup is an argument to % % \processinlineverbatim here OK, check the attachments for what I’ve got so far. It works well it seems. Still need to do more escaping, though. nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} Vim syntax support file Maintainer: Nikolai Weibull [EMAIL PROTECTED] Latest Revision: 2005-12-04 function! s:Format(text, group) let formatted = strtrans(a:text) let formatted = substitute(formatted, '{', '\\leftargument', 'g') let formatted = substitute(formatted, '}', '\\rightargument', 'g') TODO: Replace the reserved ConTeXt characters. TODO: make sure to escape everything. if a:group != let formatted = \\highlight[ . a:group . ']{' . formatted . '}' endif return formatted endfunction function! s:Append(text) exe s:new_win . 'wincmd w' call append(line('$'), a:text) exe s:org_win . 'wincmd w' endfunction function! s:AppendFillers(filler, diff_fillchar) let n = filler while n 0 let new = repeat(diff_fillchar, 3) if n 2 n filler !exists('context_whole_filler') let new .= ' ' . filler . ' inserted lines ' let n = 2 endif let new .= repeat(diff_fillchar, columns - strlen(new)) call s:Append(s:Format(new, 'DiffDelete')) let n -= 1 endwhile endfunction function! s:GetFillChar(char, default) let fillchar = fillchars[matchend(fillchars, a:char . ':')] return (fillchar != '' ? fillchar : default) endfunction function! s:MainLoop() Set up stuff for handling folding. if has('folding') !exists('context_ignore_folding') let fold_fillchar = s:GetFillChar('fold', '-') endif Set up stuff for handling diffs. let diff_fillchar = s:GetFillChar('diff', '-') let lnum = 1 let last = line('$') while lnum = last If there are filler lines for diff mode, show these above the line. let filler = diff_filler(lnum) if filler 0 call s:AppendFillers(filler, diff_fillchar) endif let new = if has('folding') !exists('context_ignore_folding') foldclosed(lnum) -1 let new = s:Format(new . foldtextresult(lnum), 'Folded') let lnum = foldclosedend(lnum) else let line = getline(lnum) let len = strlen(line) let diff_attr = diff_hlID(lnum, 1) let col = 1 while col = len || (col == 1 diff_attr) let start_col = col The start column for processing text. if diff_attr let id = diff_hlID(lnum, col) let col += 1 while col = len id == diff_hlID(lnum, col) | let col += 1 | endwhile if len columns Add spaces at the end to mark the changed line. let line = line . repeat(' ', columns - len) let len = columns endif else TODO: why not use synIDtrans here instead? That’t give longest possible matches. let id = synID(lnum, col, 1) let col += 1 while col = len id == synID(lnum, col, 1) | let col += 1 | endwhile endif Expand tabs. TODO: make a function? let new .= s:ExpandAndFormat(strpart(...), id) let expanded = strpart(line, start_col - 1, col - start_col) let idx = stridx(expanded, \t) while idx = 0 let i = ts - (idx + start_col - 1) % ts let expanded = substitute(expanded, '\t', repeat(' ', i), '') let idx = stridx(expanded, \t) endwhile if expanded =~ '^\s*$' let new .= expanded else let new .= s:Format(expanded, synIDattr(synIDtrans(id), 'name')) endif endwhile endif call s:Append(new) let lnum = lnum + 1 endwhile endfunction Set up options. let s:old_title = title let s:old_icon = icon let s:old_search = @/ set notitle noicon Split window to create a buffer with the ConTeXt file. let s:org_bufnr = winbufnr(0) if expand(%) == new untitled.tex else new %.tex endif let s:new_win = winnr() let s:org_win = bufwinnr(s:org_bufnr) Set up the new buffer. set
Re: [NTG-context] An idea
Nikolai Weibull wrote: It would require very little programming. syntax/2html.vim, which converts the buffer to a HTML document with syntax highlighting, is 526 lines in the current CVS incarnation. A syntax/2context.vim would be even shorter, perhaps 150 to 200 lines. If I find the time I’ll write something this weekend. I’m catching a could though, so I might not :-(. A splitting headache notwithstanding, here’s a syntax/2context.vim that weighs in at 170 lines. There are still things to do, like figuring out how to complement this on the ConTeXt side (i.e., defining \highlight) and things will depend on how this is done. Some sort of \type environment would be nice, as it is better to not do escaping of special characters on the Vim side. Someone with better knowledge of how to do this than I have is welcome to finish it. The \highlight command should be defined something like this (pseudo-tex-code): \pdef\highlight[#1]{#2}% {\bgroup \setupcolorforgroup[#1]% \type{#2}% \egroup} #1 is a group name, such as Statement, Operator, or Comment. #2 may contain multiple lines, and I don’t know how well this will work on the TeX side. It may also contain special characters like {, #, , and so on. Suggestions? nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} Vim syntax support file Maintainer: Nikolai Weibull [EMAIL PROTECTED] Latest Revision: 2005-12-03 function! s:Format(text, group) let formatted = strtrans(a:text) TODO: Replace the reserved ConTeXt characters. return \\highlight[ . a:group . ']{' . formatted . '}' endfun Set up options. let s:old_title = title let s:old_icon = icon let s:old_et = l:et let s:old_report = report let s:old_search = @/ set notitle noicon setlocal et set report=100 Split window to create a buffer with the HTML file. let s:org_bufnr = winbufnr(0) if expand(%) == new untitled.tex else new %.tex endif let s:new_win = winnr() let s:org_win = bufwinnr(s:org_bufnr) Set up options in the new buffer. set modifiable %d let s:old_paste = paste set paste let s:old_magic = magic set magic Set up the buffer’s “header”. exe normal! a\\startlines\n\e Switch to the original window. exe s:org_win . 'wincmd w' Variables to keep track of the range to convert. let s:lnum = 1 let s:end = line('$') Set up stuff for handling folding. if has('folding') !exists('context_ignore_folding') let s:foldfillchar = fillchars[matchend(fillchars, 'fold:')] if s:foldfillchar == '' let s:foldfillchar = '-' endif endif Set up stuff for handling diffs. let s:difffillchar = fillchars[matchend(fillchars, 'diff:')] if s:difffillchar == '' let s:difffillchar = '-' endif Now, loop over all lines in the range. while s:lnum = s:end If there are filler lines for diff mode, show these above the line. let s:filler = diff_filler(s:lnum) if s:filler 0 let s:n = s:filler while s:n 0 let s:new = repeat(s:difffillchar, 3) if s:n 2 s:n s:filler !exists('context_whole_filler') let s:new = s:new . . s:filler . ' inserted lines ' let s:n = 2 endif let s:new = s:new . repeat(s:difffillchar, columns - strlen(s:new)) let s:new = s:Format(s:new, 'DiffDelete') exe s:new_win . 'wincmd w' exe 'normal! a' . s:new . \n\e exe s:org_win . 'wincmd w' let s:n -= 1 endwhile unlet s:n endif unlet s:filler let s:new = if has('folding') !exists('context_ignore_folding') foldclosed(s:lnum) -1 let s:new = s:Format(s:new . foldtextresult(s:lnum), 'Folded') let s:lnum = foldclosedend(s:lnum) else let s:line = getline(s:lnum) let s:len = strlen(s:line) let s:diffattr = diff_hlID(s:lnum, 1) let s:col = 1 while s:col = s:len || (s:col == 1 s:diffattr) let s:startcol = s:col The start column for processing text. if s:diffattr let s:id = diff_hlID(s:lnum, s:col) let s:col += 1 while s:col = s:len s:id == diff_hlID(s:lnum, s:col) | let s:col += 1 | endwhile if s:len columns Add spaces at the end to mark the changed line. let s:line = s:line . repeat(' ', columns - s:len) let s:len = columns endif else let s:id = synID(s:lnum, s:col, 1) let s:col += 1 while s:col = s:len s:id == synID(s:lnum, s:col, 1) | let s:col += 1 | endwhile endif Expand tabs. let s:expanded = strpart(s:line, s:startcol - 1, s:col - s:startcol) let idx = stridx(s:expanded, \t) while idx = 0 let i = ts - (idx + s:startcol - 1) % ts let s:expanded = substitute(s:expanded, '\t', repeat(' ', i), '') let idx = stridx(s:expanded, \t) endwhile Output the text with the same synID, with class set to {s:id_name
Re: [NTG-context] An idea
Zeljko Vrba wrote: A motivation and idea that came to mind while writing a post to comp.text.tex: == Then again, most (all?) of publishers require Latex source, if my document ever makes it that far.. And Latex has nicer source code formatting than Context. so I'm really split between Latex and Context.. None of them individually fit all (I admit, vague) requirements.. Context being able to chew up Latex .cls files and still allowing for its advanced formatting directives, long tables, and other goodies would be a perfect match. == We were planning on using Vim for preprocessing things like this instead of hacking TeX to do the lexing. I think Mojca (?) had some ideas for this and perhaps even a simple implementation, and given that there is now structured support for preprocessing in texexec I think that this can be done quite easily. A lot easier than writing something in TeX. nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Building and installing pdftex 1.30 on teTeX 3.0
I've followed the instructions listed at http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite give. The problem is that I use the Gentoo installation setup as a base and have the latest ConTeXt installed in /usr/local/share. Does anyone know what options to pass to pdftex's configure-script to match the setup on a Gentoo system (where stuff is stored in /etc/texmf and /var/lib/texmf)? Thanks. nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Building and installing pdftex 1.30 on teTeX 3.0
Taco Hoekwater wrote: Nikolai Weibull wrote: I've followed the instructions listed at http://wiki.contextgarden.net/TeTeX_3.0_installation, but it won't quite give. The problem is that I use the Gentoo installation setup as a base and have the latest ConTeXt installed in /usr/local/share. Does anyone know what options to pass to pdftex's configure-script to match the setup on a Gentoo system (where stuff is stored in /etc/texmf and /var/lib/texmf)? It would be simplest (and definately justified) to ask this to the Gentoo maintainer, because (s)he has apparently succeeded in setting that up (Gentoo's trees seem to bear only a passing resemblance to teTeX and would be more accurately called Gentoo-TeX). Sadly, there's no separate pdfetex ebuild for Gentoo. If there was, I wouldn't have to mess with this :-). My best guess: find the non-etc version of texmf.cnf (I'm fairly certain there is one), and attempt to pass the root of texmf tree that contains it as --datadir to the configure script. Yes, there's one in /var/lib/texmf/web2c. The reason for this layout is to separate architecture-dependent files and non-architecture-dependent files. I can't say that the added complexity justify this separation. nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Referencing in Project Structure
David Arnold wrote: In each section, I would like numbering of theorems, definitions, examples, equations, etc, to be consecutive and include the section number as a prefix. For example, if a theorem happens to appear first, then number it 1.1, the next three equations (1.2), (1.3), and (1.4), the next two examples 1.5 and 1.6, the next two equations (1.7) and (1.8), the next definition 1.9, the next theorem 1.10, the next three equations (1.11), (1.12), and (1.13), the next example 1.14, etc. How do I set this up in bookenv? By reading cont-enp.pdf? There's a lot of information in there and it has a pretty good index. Use the way=x setting, as in: \setupformulas[way=bychapter] (or way=bysection if that's really how you want to number it). nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] utf8 editor problems
Hans Hagen wrote: (scite adds them but does not remove them when you change the encoding) Wow, that's incredibly broken (even more broken than using BOMs in the first place - or an encoding that depends on them for that matter ;-). (Thank Rob for UTF-8!) nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ 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: What do you do with ConTeXT? I use ConTeXt for any document that I figure someone will want to print out on paper some day. This includes resumes, letters, and articles. I even considered typesetting software documentation with ConTeXt, but haven’t yet decided if PDFs are the right medium for that kind of text. I also typeset my master’s thesis using ConTeXt and probably spent as much time hacking ConTeXt as I did on doing “actual work” for the content. Not because ConTeXt couldn’t do what I wanted, but because ConTeXt allowed me to do anything I wanted. Having a lot of options can be time-consuming, as you want to try them all before deciding on the one that works best. This is both the good and the bad thing about ConTeXt. You can tweak and tweak and tweak, whereas with something like LaTeX you have a few boring designs and you just choose the one that suits the type of document your writing. And your document will look like five million other research papers outh there. I wanted something unique and ConTeXt was just the right tool for it. nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX + Metapost syntax highlighting in Vim
(OK, this is old, but I finally did something about it.) VnPenguin wrote: Just tested your context.vim under vim 6.3.x; It's better than tex/latex standard syntax in vim 6.3 IMHO. I have only a small remark: The following code is valid in ConTeXt: \useURL [book-ns-openssl][http://www.amazon.com/exec/obidos/ASIN/059600270X/qid%3D1024342376/103-8123753-9606263][][Network Security with OpenSSL] but the syntax considers % like a comment mark, so I see another color for the text after %. It's possible to make the comment pattern smarter ? :) Actually, yes, there is. Wait for me to get a new version sent upstream to the Vim 7 CVS, add the following to your vimrc, and cheer: let g:context_spacious_comments = 1 This will make it so that comments must be at the beginning of the line or be preceded by a white-space, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] free keycaps font
Stuart Jansen wrote: As far as I can tell, ConTeXt doesn't include a keycaps font. I recently created my own and would like to share it with anyone else that might find it useful. I've included a sample document with it. If you're on a *nix system with a working copy of ConTeXt and make, just type make to build it. Very nice! I would like them to lay closer to a standard baseline, though, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] free keycaps font
Stuart Jansen wrote: On Mon, 2005-09-12 at 23:08 +0200, Nikolai Weibull wrote: Stuart Jansen wrote: As far as I can tell, ConTeXt doesn't include a keycaps font. I recently created my own and would like to share it with anyone else that might find it useful. I've included a sample document with it. If you're on a *nix system with a working copy of ConTeXt and make, just type make to build it. Very nice! I would like them to lay closer to a standard baseline, though, I'm not sure what you mean by lay closer to a standard baseline. Neither am I... The baseline of the glyph inside the key is aligned with text outside the key. I waffled back and forth trying to find the most attractive position while building the font. The majority of keycaps fonts I looked at chose the same baseline. Ah, of course. That's perhaps as good as it gets, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] some highlighted \type-ing
Mojca Miklavec wrote: But, I finally understand why I was confused yesterday. \setupcolors[state=start] \setuptype[option=TEX] \type{\a} does nothing (and this was what I first tried and thought that this is not supported yet; non-existing options never raise an error anyway). I reported this bug back in April but no one replied. The problem is that the first character is read and then not given back the right catcode so that the typing stuff can process it correctly. This mainly affected me when I was trying to write inline C code, such as \type{int a}, because the int wouldn't be highlighted as a keyword. I'm thinking about piping the code to vim, letting the vim process it and return something like \highlight[Conditional]{if}\highlight[Delimiter]{(}\highlight[Identifier]{i} ... One should modify the 2html.vim file (vim can already nicely transform the highlighted code into HTML, so ConTeXt shouldn't be so difficult). Vim already has over 400 sytax file definitions (probably equivalent to some hundred thousans lines of syntax definitions in ConTeXt). Well, I don't know (yet) how to do it, but if someone on the list has more experience with vim, please feel free to contribute. Yes, this would definitely be a good alternative way of getting highlighting (for free). Writing a converter shouldn't be that hard, and writing ConTeXt code shouldn't be impossible either. Alas, I don't have time at the moment. I need to find myself a job first; which sadly probably won't be found in Sweden...Sweden is such a boring place when it comes to IT, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setuphead command
Elena Fraboschi wrote: (2) Horizontal alignment. This problem is almost funny. Consider these two setups: \setuphead[section][ align=middle ] \setuphead[subsection][ align=left, ] The section will appear just fine, centered between the left and the right margins. The subsection head will appear flush RIGHT! If, instead, you write \setuphead[subsection][ align=right, ] the subsection head will appear flush LEFT. Hmmm... Hans, are you dyslexic? :-) (just in case, here comes another one :-)) They mean (ragged-)left and (ragged-)right, see http://www.contextgarden.net/Right_and_left. Isn’t \setuphead [section] [align=middle] a lot easier to read than what you’re writing? We’re not writing C code here… Seriously, this is getting boring. There’s a question on this topic once a week now. Sad part is, there’s really no good way to solve it, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setuphead command
Elena Fraboschi wrote: (1) any ConTeXt command to gobble-up unwanted vertical space before a section header, when the section header appears right at the top of a new page? Hm, isn’t this done automatically? (2) any ConTeXt way to do a \setuphead such that the text following the header will be run-in text? \setuphead [chapter] [alternative=text] Enjoy, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \setuphead command
Elena Fraboschi wrote: I'll test tonight what you says happens automatically (gobbling up whitespace at the top of a new page). I'll use a grid to make sure that that's the case: to the naked eye, it seemed as though there was an awful amount of whitespace at the top of the page, but we'll see: I could be wrong. Remember that there’s a rather spacious header defined by default, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] [BUG] unic-032.tex 0x2026 HORIZONTAL ELLIPSIS definition wrong
Hans Hagen wrote: Nikolai Weibull wrote: [HORIZONTAL ELLIPSIS definition wrong] i made it the equivalent of \unknown (better spacing than \dots) Ah, so very, very true. Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] [BUG] unic-032.tex 0x2026 HORIZONTAL ELLIPSIS definition wrong
\textellipsis usually expands to \cdots and that's fine, but \textellipsis shouldn't be used in unic-032.tex for 0x2026 HORIZONTAL ELLIPSIS, as this codepoint is for a symbol of dots on the base-line, not in the center. I've posted about this previously, but got no response. Anyway, I've attached a patch that fixes the problem. I don't know if using \dots instead is the best solution, though, so further discussion may be necessary?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} --- old-unic-032.tex2005-07-20 01:13:44.414092288 +0200 +++ unic-032.tex2005-07-20 01:13:54.869502824 +0200 @@ -113,7 +113,7 @@ \strippedcsname \unknownchar \or % U+2023 TRIANGULAR BULLET \strippedcsname \unknownchar \or % U+2024 ONE DOT LEADER \strippedcsname \unknownchar \or % U+2025 TWO DOT LEADER -\strippedcsname \textellipsis \else % U+2026 HORIZONTAL ELLIPSIS +\strippedcsname \dots \else % U+2026 HORIZONTAL ELLIPSIS \ifcase\numexpr#1-48\relax \strippedcsname \perthousand \or % U+2030 PER MILLE SIGN \strippedcsname \unknownchar \or % U+2031 PER TEN THOUSAND SIGN ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX + Metapost syntax highlighting in Vim
VnPenguin wrote: Just tested your context.vim under vim 6.3.x; It's better than tex/latex standard syntax in vim 6.3 IMHO. Great, thanks! I have only a small remark: The following code is valid in ConTeXt: \useURL [book-ns-openssl][http://www.amazon.com/exec/obidos/ASIN/ 059600270X/qid%3D1024342376/103-8123753-9606263][][Network Security with OpenSSL] but the syntax considers % like a comment mark, so I see another color for the text after %. It's possible to make the comment pattern smarter ? :) Hm, probably not. The problem with TeX is that it's so goddam flexible when it comes to syntax. The whole deal with turning $ on and off, % into something else, and so on is really hard to capture in a syntax highlighter. To do so successfully, the highlighter would more or less have to parse the TeX document itself to understand when and where to do what. I guess special cases like the one above (with a very weird URL indeed) so that \useURL would be parsed differently, but it's impossible to always get these things right, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX + Metapost syntax highlighting in Vim
(Sorry for responding to two separate mails, I'm a bit rushed, going on a three-day holiday.) Hans Hagen wrote: Mojca Miklavec wrote: If you have something like \startMPpage draw ... \stopMPpage, it will do the syntax highligting for metapost inside the \start-\stop pair. That's a great idea, I'll add that to my version I downloaded SpellChecker and SuperTab (autocomplete) today from the vim website and it works great! (see http://contextgarden.net/Vim and feel free to add any useful stuff there) Version 7 has a spell-checker built in. I was astonished as I saw autocomplete work. There are only a couple of lines with an extraordinary functionality. I think that if someone writes a good script to convert texshow to vim syntax highlighting script, than autocomplete will be able to provide good hints for all the existing commands in ConTeXt and the corresponding parameters. I'll try to see what I can do, but please don't excpect any results too soon. There's always the ever-simple CTRL-P/CTRL-N as well. What is the syntax? I can exten ctstools to spit out a vim keyword table; it already handles scite, jedit and bbedit so adding vim is not undoable Download vim and run :help syntax. But the short version is syn keyword contextKeyword ... ^-- group name ^-- keywords But that won't work for stuff beginning with \\. Then you'll have to use regexes and syn match contextKeyword ... ^-- regex Exactly what kind of keyword table are we talking about?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] TeX + Metapost syntax highlighting in Vim
Mojca Miklavec wrote: In case someone finds this experimental piece of code for highlighting metapost inside ConTeXt useful, put: Hi! I don't want to be a party-pooper, but I have already commited support for the context file-type to vim7 CVS. Perhaps you can look over my version and make suggestions? It doesn't use the rather bloated LaTeX/Plain TeX syntax definition, but my own blend, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Making texshow easier to edit
Patrick Gundlach wrote: [a luckily not so long list snipped] I'll have a look at texshow-web this weekend. Thank you for your suggestion, I will report back to you and Mojca. There is also (at least) one feature reqest from Taco, so I won't get bored soon. So if there are more suggestions, shout out now. Great! I hope I didn't come of as negative to texshow or its implementation. I like it, but I would also like to see it become better and easier to use/edit. Thank you for your work so far, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placebookmarks problem
Hans Hagen wrote: Nikolai Weibull wrote: I have a setup like the following: ... a minimal complete example will help My sincere apologies for posting prematurely. It was a misconfiguration of my environment, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] metafun not working
piskala upendran wrote: [blah] Could you perhaps choose to not send multiple copies of every message to this list?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Old-style numerals
To get old-style numerals as the default, the accepted solutions seems to be the following: \usetypescript [modern][\defaultencoding] \usetypescript [map] [latin-modern-os] [\defaultencoding] \setupbodyfont[modern] However, this causes old-style numbers to be used for \type as well, which looks weird. Is there a way to override the switching to old-style numerals for the fixed-width typeface? Example: \usetypescript [modern][\defaultencoding] \usetypescript [map] [latin-modern-os] [\defaultencoding] \setupbodyfont[modern] \starttext 1 2 3 \type{1 2 3} \stoptext Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to indent the first paragraph in Chinese processing ?
Xiao Jianfeng wrote: Nikolai Weibull wrote: Xiao Jianfeng wrote: Could someone give me some hints about how to indent the first paragraph in Chinese processing ? Is this about setting the indentnext option to no perhaps? Normally, all paragraphs are indented in Chinese documents. But when I use \setupindenting[first,medium] to setup indentation for every paragraph, it has no effect on the first paragraph at all. I can't change the indentation even I put indenting[...] before the first paragraph. Yes, I get the same results. \indent doesn't work either. I took a look on the code dealing with \setupindenting and it seems as if first is being processed correctly. The problem seems to be in \presetindentation, and redefining it slightly seems to help: \setupindenting [first,medium] \def\presetindentation {\ifindentfirstparagraph\doindentation\else\noindentation\fi} \starttext \chapter{First} \input tufte \stoptext I don't in any way guarantee that this is the right way to solve it, but it works, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Lowercasing section titles
Taco Hoekwater wrote: % the unexpanded is because we do not want % actual \lowercase commands in the contents list \unexpanded\def\dodowncase{\lowercase} Ah, this works great. It can even be placed inside a \setuphead as the textcommand and it works. Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \whitespace vs \parskip
John R. Culleton wrote: I needed to decrease the spacing between paragraphs to fit everything in to a newsletter with limited page count. \parskip 3pt %works \setupwhitespace[3pt] %doesn't Does using one of the keywords work? For example, \setupwhitespace[small] Enjoy, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] How to indent the first paragraph in Chinese processing ?
Xiao Jianfeng wrote: Could someone give me some hints about how to indent the first paragraph in Chinese processing ? Is this about setting the indentnext option to no perhaps? \setupheads [chapter,section,subsection,...] [indentnext=no, ...] Or are you thinking of something else?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Lowercasing section titles
Hi! I would like to lowercase section titles within the document while retaining their casing in the table of contents. Ive tried figuring out how to use setuphead[section][textcommand=...] to do what I wish, but failed. Anyone have any suggestions? Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Skrinking distance between bullet and text in itemize
Id like to have the bullet appear closer to the text being itemized inside a \startitemize. I changed the symbol being used to a \cdot and now the text appears to far away from the bullet itself. Is there a way to fix this? I figured that altering distance, width, and/or factor would have some effect, but albeit it remains unchanged. The bullet also appears inmargin, if thats important. Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Skrinking distance between bullet and text in itemize
Steve Peter wrote: On Jun 12, 2005, at 10:21 AM, Nikolai Weibull wrote: Id like to have the bullet appear closer to the text being itemized inside a \startitemize. I changed the symbol being used to a \cdot and now the text appears to far away from the bullet itself. Is there a way to fix this? Try something like \startitemize[1 (or whatever symbol you want), 2*serried] I tried that, but the problem is that when one uses inmargin, this doesnt seem to work. It seems that the interplay between width and distance isnt working as I would expect. Anyway, thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] unic-033.tex and unic-034.tex
Hans Hagen wrote: Nikolai Weibull wrote: I wrote the arrow parts of vector 033 as well. Works OK. Comments welcome. I'd personally enjoy both being included in ConTeXt at some point. sure, concerning these: [EMAIL PROTECTED]:}} an option is to add them to the default math vector, something \startmathcollection[default] \definemathcommand [EMAIL PROTECTED] [...] {...} that way you get a lot for free Thanks for the information! Yes, that definitely saves a lot of work. I really need to learn more of ConTeXts internals. Ill convert to this method instead, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] space between rows?
Nikolai Weibull wrote: Paul Tremblay wrote: Is there a way to put extra space bewteen rows with the standard Table module? \DR But thats obviously not what you want...Sorry. Perhaps you can use \setuptables[height=h,depth=d]?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Horizontal shifting gives overfull hboxes
OK, not the first time I bring this up, and its not a serious issue, but its very irritating having overfull hboxes that are in all ways correct: \version[temporary] \definedescription [test] [location=left] \starttext \starttest{1 is 1} Solution: \placeformula[-] $$1 = 1$$ \stoptest \stoptext will give a very ugly black box to the left of the formula. Any way of solving this? Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] List of figures with shorter captions
Tim 't Hart wrote: I was wondering if it's possible to let ConTeXt write a different text to the List of Figures. See http://www.pragma-ade.com/general/magazines/mag-0001.pdf, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \textellipsis definition wrong
Im using 2005.01.31 and \textellipsis expands to \cdots, which isnt what its supposed to do. It should be \ldots, or preferably just \dots. Or, if thats not what you want to do, at least dont use \textellipsis for U+2026 HORIZONTAL ELLIPSIS in unic-032.tex. Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Vertical alignment in tables
Id like to have a table like this: 1 23 Pic- ture- spanning- Centered1 Centered2 some- lines Another- Picture- spanning- Centered1 Centered2 some- lines The first column contains a figure using \externalfigure. I want the following two columns to be vertically centered in the space that the picture occupies in each row of the table. A quick response would be preferable, as I really should hand in the paper containing the above table by tomorrow. Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Unicode symbols in math mode
Hans Hagen wrote: Nikolai Weibull wrote: I was wondering if it would be easy to add UTF-8 transformations of symbols like to \geq in math mode, much like and are transformed to `` and '' (atleast I assume this to be true, as it works for me). no problem, but someone has to define the vector; there was some discussion on this some time ago; so, if you prepare the vector (analogue to unic-*.tex) ... OK, then, Ill do it...and I did it...and its kind of sweet. There are some problems however: 1. Not all symbols have a TeX equivant that I know about. If anyone is interested, please do go through the vector, looking for \unknownchars and substitute in the appropriate TeX sequence. 2. Many negated operators are traditionally written using \not. The Unicode transformations dont work with sequences like these. I dont know enough about the Unicode vector transformations to assertain how to solve this problem. Can someone perhaps tell me how to solve this issue? Thanks, and do enjoy the wonderful world of Unicode, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} unic-034.tex Description: TeX document ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Unicode symbols in math mode
I was wondering if it would be easy to add UTF-8 transformations of symbols like to \geq in math mode, much like and are transformed to `` and '' (atleast I assume this to be true, as it works for me). Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ruby
Hans Hagen, May 11: when pondering about some ruby to bin for unix Why would you want to do that? because ruby is not always installed (for some reason distribution do install tons of useless games and all kind of progs whose name i instantly forget, but no forget to install a recent ruby -); it's also handy when one runs from cd Hm, true, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] typing questions
Taco Hoekwater, April 20: Peter Münster wrote: Is there a module for pretty-printing C-code? None that I know of, if anybody has a solution, I am interested myself as well I wrote one a while ago. It's not great, but it works quite well. It even processes preprocessor directives correctly, albeit a bit hackishly. It's not too fun working with the verbatim code, though. It's a bit restrictive in what can be done. Anyway, I've attached it here. Perhaps we can make something standard of it?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} verb-c.tex Description: verb-c.tex ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \splitfloat and \bTABLE do not play well?
Johan Sandblom, April 25: Reading earlier messages on this list I hoped the following would work for natural tables as well. It does not, the table ends up unsplit. What am I doing wrong? I'm not sure you can use natural tables for this. This works: \splitfloat {\placetable{Title}} {\starttablehead \HL \NC \bf Column 1\NC \bf Column2 \NC\AR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|l|lp(25em)|] \NC \dots \NC \dots \NC\AR \dots \stoptables} Enjoy, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Another verbatim bug?
Idris Samawi Hamid, April 17: \type{texfont --help} The bug is apparently in \type: it only generates one dash. This doesn't happen on my system, but perhaps you're using a newer ConTeXt version than I am, nikolai (who's using the 2005.01.31 that ships with teTeX 3.0) -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] the right way to do \ref?
Paul Tremblay, April 14: see \ref[r][mark1] \par Why not \at[mark1]?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Possible bug in verbatim
Idris Samawi Hamid, April 14: \type{ {A} } Wait, what? You can have nested braces in \type? I had no idea! That actually saves me a lot of trouble, thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Defining references points
Matthias Weber, April 13: \pagereference[name] or \textreference[name]{text} to place a label, and \at{page}[name] to refer to the page number. Actually, it turns out that \reference worked best, but thanks for pointing them out for me. I was actually using them, only in the wrong way...I also found them in cont-enp.pdf now and understood them better. Silly me. Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Defining references points
I have tried figuring out how to define a reference point at any given location in a document, but haven't been able to come to a solution, so...how do I do it? What I'd really like to do would be to write: \placerefpoint[name][description] and then be able to write see \about[name], \atpage[name]. with the obvious semantics. Thanks, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \definetype[...][option=...] problems
Try running \setupcolors[state=start] \definetype[JS][option=JS] \starttext \JS{function}\par \JS{function }\par \JS{ function}\par \JS{ function } \stoptext The first paragraph will only be the first character, f, the reason is made clear from the following two paragraphs. In the second paragraph, function comes out, but it isn't highlighted as a keyword, as the initial f has been consumed and thus the unction part doesn't match any keywords. I guess this is due to the type-handling checking for double characters, like in \type ... ? In the third paragraph, only the initial space is output. The rest will never be output, as \PLsequence never gets a chance to be printed. Only in the fourth paragraph is function output correctly, although it is now surrounded by two spaces. Any suggestions on possible solutions, other than removing the option=JS?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] table won't break across page
Paul Tremblay, April 10: I am trying to create a table that breaks across pages. I used the example from the wiki. The table repeated its headers like it should have, but it did not break across a page; it stuck the table on one page. The example on the wiki is messed up. I guess I could have fixed it, but I haven't had time: \splitfloat {\placetable{Percentage of People without}} {\starttablehead \stoptablehead \starttabletail \stoptabletail \starttables[] \stoptables} Enjoy, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] table won't break across page
Paul Tremblay, April 10: On Sun, Apr 10, 2005 at 10:45:37AM +0200, Nikolai Weibull wrote: \splitfloat {\placetable{Percentage of People without???}} {\starttablehead ??? \stoptablehead \starttabletail ??? \stoptabletail \starttables[???] ??? \stoptables} Your mailer seems to mess up the charset. You're sending us-ascii responses to utf-8 mail and including the utf-8 sequences (the ???'s), nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] table won't break across page
Paul Tremblay, April 10: Your mailer seems to mess up the charset. You're sending us-ascii responses to utf-8 mail and including the utf-8 sequences (the ???'s), When I got your email, I saw the ???. I assumed you put them in to indicate I should fill in the blank. What characters were you trying to convey here? I wasn't aware that my emailer was messing things up. It is the mutt emailer. Those are supposed to be ellipses of the horizontal and vertical kind to the effect that you perceived them to be (as ?, though). Anyway, you can compile mutt with unicode support. You need to enable unicode support in ncurses as well. Anyway, it doesn't matter much I suppose, but I guess it's another one of those problems with mutt..., nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Activating urls
Patrick Gundlach, April 8: \from[Adobe]. Aha, is that the right way to do it? I actually get fully working hyperlinks with \url (as far as I can tell), but perhaps \from is the right macro. Sorry about confusion, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Activating urls
Patrick Gundlach, April 8: I get a 'half working' hyperlink. Try to replace '\url' by '\from'. Actually, for me, both work in acroread (7), nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Activating urls
Idris Samawi Hamid, April 7: Am I missing yet something else? How are you viewing this? Perhaps your application doesnt support hyperlinks, or they have been disabled in it?, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problem with the bib module (yeah, so what else is new)
OK, another one of those hey, the bib module has an issue-kind of mails. The problem is that \bibdoif and its relatives don't work. They always evaluate to true. I have tried to figure out why this is so, but I'm just not good enough at reading TeX macros (yet). The main problem is that I want to do something like this for my \setuppublicationlist: \doglobal\newif\ifBIBLoutputbeforesurname \global\BIBLoutputbeforesurnamefalse \def\BIBLwholename#1#2#3#4#5% {\bibdoif{#1}{#1\unskip\bibalternative\c!firstnamesep\BIBLoutputbeforesurnametrue}% \bibdoif{#4}{#4\unskip\bibalternative\c!firstnamesep\BIBLoutputbeforesurnametrue}% \bibdoif{#2}{#2\unskip\bibalternative\c!vonsep\BIBLoutputbeforesurnametrue}% \ifBIBLoutputbeforesurname \else \unskip% \BIBLoutputbeforesurnamefalse% \fi #3\bibalternative\c!surnamesep% \bibdoif{#5}{#5\unskip}} The problem is that one can't have \author[]{}[]{}{Organization} without extra spaces appearing before the Organization. Another issue is that extra spaces occur between the first and last name in the \normalauthor style, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Problem with \type in captions
\starttext \placefigure {\type{0|}} {} \stoptext gives me ! Argument of \next has an extra }. inserted text \par to be read again } argument ...p {\strutdepth }\begstrut \type {0|} \endstrut \endgraf \doattributes ...sname [EMAIL PROTECTED] \endcsname \fi {#4 }\dostopattributes \putcompletecaption ...trut #3\endstrut \endgraf } \fi \dostopattributes \docheckcaptioncontent ...ecaption {#4}{#2}{#3}{0} }\ifdim \wd \tempcaptionbo... ... l.4 {} Remove the 0 and it works fine. Is there a quick fix?, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Problem with \type in captions
* Hans Hagen (Mar 30, 2005 01:10): that's because the caption is passed as an argument and the catcode is frozen then (being active, the | expects something |...| ; try \type{0}\type{|} since the first token of type is not expanded at all Yeah, that will work. The problem is, though, that I'd really like it to be in one \type as I am actually using something called \TypedRegex that delimits the regular expression argument with quotes. I guess I could fake the quotes and use the split-\type trick, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] OT: metapost question
* Taco Hoekwater (Mar 29, 2005 00:10): N := 100; for k=1 step 1 until N: beginfig(k); drawdot (100,100) withpen pencircle scaled k; endfig; endfor; end. Wow, I never realized that. Man, I really gotta try to remember what can be done with macro processors..., nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Title-page overlay
I would like to put a rather large and complicated regular expression into the title-page of a document I'm writing. So far, I haven't had much luck defining an overlay that uses \starttyping ... \stoptyping. Basically, what I figured I should do was to write \defineoverlay [TitleGraphic] [{ \starttyping ... \stoptyping }] and then \setupbackgrounds[page][background=TitleGraphic] But that doesn't work: ! Argument of \copyverbatimline has an extra }. Have any suggestions on what I might try? Basically, what I want is a background with some arbitrary text, more or less like the pdfTeX user manual document does it [1], nikolai [1] http://www.pragma-ade.com/pdftex/pdftex-a.pdf -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Title-page overlay
* Patrick Gundlach (Mar 20, 2005 19:20): Hello Nicolai, k, please. put your \typebuffer stuff in \framed[align=lohi] That was a very good suggestion, thank you. It worked out fine. This is what I do now: \defineoverlay [TitleGraphic] [{\framed [align=middle,width=\overlaywidth,height=\overlayheight,top=\vss,bottom=\vss,foregroundcolor=titlegraphic] {\typebuffer[titlebackground]}}] Thanks, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: minimalistic.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: book on context?
* Hans Hagen (Mar 15, 2005 13:20): Is there actually a hard-copy book for ConTeXt? No, there is none. but there will be one; steve peter is working on it That's great news. I've really wanted a book on ConTeXt. I'm getting tired of seeing a bunch of books on LaTeX but none on ConTeXt. I'd pay dearly for a well-written book on ConTeXt, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] acrobat reader for linux
* Tom Fossen (Mar 16, 2005 00:40): Acrobat reader 7.0 for linux is now available. Awaiting comments from heavy users, Better; still not great, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \raggedright?
* Gerben Wierda (Mar 13, 2005 00:50): I tried to get one piece in a justified text to behave as follows: right aligned and with a jagged left edge. But what I tried influenced my entire document. \starttext \startalignment[left] Blah blah blah \stopalignment \stoptext Don't ask why the parameter to \startalignment is left, not right. Look at the context wiki [1] for information on why this is so, nikolai [1] http://contextgarden.net/Main_Page -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt equivalent for \ensuremath?
* Gerben Wierda (Mar 11, 2005 15:50): I modeled this after the LaTeX sources because I had to move on: \newcommand{\ensuremath}[1]{\ifmmode\expandafter\FirtsOfOne% \else\expandafter\EnsuredMath\fi} \long\def\FirstOfOne#1{#1} \long\def\EnsuredMath#1{$\relax#1$} but is there a ConTeXt way of doing this? \mathematics{...}, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Right aligned caption text.
I would like two different methods of typesetting the captions of figures. Short captions should be aligned in the middle, while longer ones (spanning more than one line) should be aligned to the right (well, ragged right...). What I did to achieve this was to \definefloat[describedfigure][describedfigures][figure] \setupcaption [describedfigure] [align=right] \placedescribedfigure [] [figure:...] {A long description of the figure...} {...} and this works fine (is there a simpler way?). What I would like now is to have the caption of describedfigure to have a small margin, so it doesn't quite fill the width of the described figure. I couldn't find this described in details.pdf (http://www.pragma-ade.com/ is down at the moment so I couldn't check for any other doc's either). Any suggestions?, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Fonts, Fonts, Fonts
Always with the fonts on this list... Anyway, I am running some recent beta of tetex and am still having problems getting fonts loaded in ConTeXt. \starttext \showbodyfont[cmr,12pt] \showbodyfont[lbr,12pt] \stoptext seems innocent enough, but produces two identical tables. pdfetex is complaining about an all-base.map: Warning: pdfetex (file all-base.map): cannot open font map file and there is no such file anywhere (and a grep through /usr/share/texmf, /etc/texmf, and /var/lib/texmf turns up nothing). Could someone provide me with a simple rundown on what I should do. I would really like to try typesetting my master's thesis in another font than cmr before I hand it in. Any suggestions are welcome. Thanks, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Installing Bitstream fonts
* cormullion (Feb 09, 2005 00:10): I found a font package called bitstream-vera4context on a website and downloaded it. Unfortunately I cant work out how to install them on my MacOS X system. Anyone care to give me the necessary mystic incantation? You could check out mag-0009.pdf I guess, it has some information about truetype fonts. I don't run MacOS X so I can't really tell you much more, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Yet another nath problem
[EMAIL PROTECTED] is bug-ridden. It \def's , but doesn't restore it upon exit (with [EMAIL PROTECTED]). One solution is to simply add a \bgroup...\egroup pair to the two. That works for now, nikolai P.S. It seems that the \longrightarrow problem still remains. Was there no fix applied for this yet? We had several possible solutions if I remember correctly, e.g., \let\unprotectedlongrightarrow\longrightarrow \unexpanded\def\longrightarrow{\unprotectedlongrightarrow} This is all with the %D last updated: 2004.11.18 release; the one included in tetex-2.99.9.20050111 D.S. -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] dictionary for TeX,/ConTeXt
* Ciro A. Soto (Jan 15, 2005 18:10): Hello, I would like to know what is the best way to check spelling in a TeX-prepared document. I could use ispell (linux/unix), but I wonder if there is a better way with OpenOffice, or other package. Besides, ispell wouldn't check my spanish words like Am\'erica because of the accent. I'm not 100% sure, but I'm guessing aspell [1] may be your solution, nikolai [1] http://aspell.sourceforge.net/ -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] next version
* Hans Hagen [EMAIL PROTECTED] [Jan 06, 2005 17:50]: - csr/plr/aer/vnr will be dropped in favor of lmr (also makes minimals smaller) What will this entail, exactly? nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] NTG-Context, Robots and Privacy ..
* Dirar BOUGATEF [EMAIL PROTECTED] [Dec 17, 2004 21:30]: Because of my mails on the archive, the search engine robots got my email adress, blablabla ... I have contacted google and this is their answer: Thank you for your note. In order to remove content from Google's index, the webmaster must either change the content of the page itself or use a robots.txt file or meta tags to block us from including the site in our search results. Well, if it's already out there, there's really not much to do about it, right? Anyway, consider getting a new mail account, perhaps on Gmail or other, it seems to have a good spam filter. Otherwise you may try www.fastmail.fm, I think they're great. I can give you a Gmail invite if you would like it (www.gmail.com). Anyway, spam is inevitable, mailing-list archive or not. Furthermore, I have not received any spam to my context-users email alias so far, so it's strange that it affects you. Anyway, good luck with solving the spam issue, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \placetable and \starttables ... \stoptables
\starttext \placetable [][] {Operators} {\start \starttablehead \HL \NC \bf Operator \NC \bf Matches \NC\SR \HL \stoptablehead \starttabletail \HL \stoptabletail \starttables[|l|lp(25em)|] \dorecurse{50}{\NC . \NC anything \NC\AR} \stoptables\stop} \stoptext This doesn't split appropriately. It works OK if one removes the placetable, but that kind of counteracts the whole idea. Am I doing something wrong, or is this an issue with the tables code? nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] using \startfiguretext ... \stopfiguretext
* h h extern [EMAIL PROTECTED] [Dec 11, 2004 14:05]: It might not be the only way, this should work: \placefigure [here] [fig:somelabel] {Caption} \placelegend{Figure} {Text} Hm, yeah, that works OK. I was hoping for something that made a little ik, let's give you a cue: I don't understand...is that an ik, as in I disapprove? \placefigure {What a caption} {\placelegend {\externalfigure[cow.pdf]} {\input zapf \relax}} \placefigure {What a caption} {\placelegend[location=right] {\externalfigure[cow.pdf]} {\input zapf \relax}} using buffers makes sense here: \startbuffer lots of text \stopbuffer \placefigure {What a caption} {\placelegend {\externalfigure[cow.pdf]} {\getbuffer}} Yeah, that's a good suggestion, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] [BUG] \type... not working
\starttext \type... \stoptext It doesn't seem to see the end delimiter, nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] using \startfiguretext ... \stopfiguretext
How do I get a figure with text that is displayed like Figure Text Caption where we first have the figure, then a description of it below, and finally a caption? So far I've only managed to get the text to appear to the left or right of the figure. nikolai -- ::: name: Nikolai Weibull:: aliases: pcp / lone-star / aka ::: ::: born: Chicago, IL USA:: loc atm: Gothenburg, Sweden::: ::: page: www.pcppopper.org :: fun atm: gf,lps,ruby,lisp,war3 ::: main(){printf(linux[\021%six\012\0],(linux)[have]+fun-97);} ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context