[NTG-context] texexec.rb + pdfetex ignoring map files in $TEXMFPROJECT
Using older ConTeXt minimals based on texexec.pl, I was able to export TEXMFPROJECT=${PWD}/texmf in each projects directory and use fonts local to just that project. Switching to the latest minimal with texexec.rb, pdfetex can't find my custom *.map files. Interestingly, it does find my custom type-*.tex files. What is the correct way to include fonts on a project by project basis instead of installing them into the global ConTeXt tree? -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] \placelist doesn't work in \startappendices
When \placelist[section][criterium=local] is used inside of \startappendices, no list is included. I don't see any error messages. I scoured the docs but found neither indication that this is the desired behavior nor any idea how to change this behavior. Any ideas? \starttext \startbodymatter \chapter{Foo} \placelist[section][criterium=local,alternative=c] \section{Bar} \input knuth \stopbodymatter \startappendices \chapter{Corge} \placelist[section][criterium=current,alternative=c] \section{Grault} \input zapf \stopappendices \stoptext -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist doesn't work in \startappendices
On Thu, 2006-08-17 at 19:08 +0200, Taco Hoekwater wrote: Stuart Jansen wrote: When \placelist[section][criterium=local] is used inside of \startappendices, no list is included. I don't see any error messages. I scoured the docs but found neither indication that this is the desired behavior nor any idea how to change this behavior. Any ideas? I remember having a similar problem, that was fixed a few months ago. \startappendices \chapter{Corge} \placelist[section][criterium=local,alternative=c] \section{Grault} \input zapf \stopappendices works for me, so my best advice is a context upgrade. (maybe 'chapter' will work even in the old version). How recent? I just tried it with the latest minimal, as well as live.contextgarden.net and neither worked for me. 'chapter' only show me the chapter, not the sections. Unfortunately, that's the exact opposite of what I'm hoping for. $ texexec --version TeXExec | version 6.2.0 - 1997-2006 - PRAGMA ADE/POD -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist doesn't work in \startappendices
On Thu, 2006-08-17 at 19:57 +0200, Taco Hoekwater wrote: Stuart Jansen wrote: \startappendices \chapter{Corge} \placelist[section][criterium=local,alternative=c] \section{Grault} \input zapf \stopappendices How recent? I just tried it with the latest minimal, as well as live.contextgarden.net and neither worked for me. Not _that_ recent. Strange, should have worked. Okay, I guess that means it's a bug, not a feature. Hans: is this one hairy enough that I should register it in the collector? -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] \placelist doesn't work in \startappendices
On Thu, 2006-08-17 at 23:49 +0200, Hans Hagen wrote: Stuart Jansen wrote: On Thu, 2006-08-17 at 19:57 +0200, Taco Hoekwater wrote: Stuart Jansen wrote: \startappendices \chapter{Corge} \placelist[section][criterium=local,alternative=c] \section{Grault} \input zapf \stopappendices How recent? I just tried it with the latest minimal, as well as live.contextgarden.net and neither worked for me. well, it depends ... i do get a one line toc between the chapter and section title What the?! I specifically checked using live.contexgarden.net to make sure it wasn't a configuration problem on my side. I swear that line wasn't there! It's a good thing 5pm just arrived, I obviously need a break... Sorry for the confusion. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] using \doifnumberelse in a ToC numbercommand=
I asked this question a couple of days ago, but didn't get any takers. I don't want to be a pest, but it's frustrating to be so close yet unable to solve this final problem. Let's see if rephrasing the question helps. I'm trying to use \doifnumberelse in a \setuplist numbercommand= but it isn't working. The simplified example below shows the very specific table of contents layout I'm trying to accomplish. You will note that both the chapter number and the appendix letter are labeled with Appendix when in fact I want the chapter to be labeled Chapter. Does anyone know either (a) how to get \doifnumberelse to work in this situation or (b) if there's a better way I should have done this instead. - \def\mychapterlistnumber#1{\vbox{% \doifnumberelse{#1}{Chapter}{Appendix} #1\crlf}} \def\mysectionlistnumber#1{\emspace\emspace} \def\mysectionlisttext#1{% \doifelse{#1}{Lab Tasks}{\hskip-1em\bf#1\hfilll}{#1}} \setuplist[chapter][width=1em,numberstyle=bold,% numbercommand=\mychapterlistnumber,textstyle=bold] \setuplist[section][width=2em,numbercommand=\mysectionlistnumber,% textcommand=\mysectionlisttext] \starttext \bgroup{}Table of Contents\egroup\par \startcolumns[n=2,distance=.3in,balance=no] \bgroup \placelist[chapter,section][criterium=all,alternative=b] \egroup \stopcolumns \page \chapter{Foo} \section{Bar} \input knuth \startappendices \chapter{Corge} \section{Grault} \input zapf \stopappendices \stoptext - -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] using \doifnumberelse in a ToC numbercommand=
On Wed, 2006-08-16 at 21:46 +0200, Mojca Miklavec wrote: My guess is that \doifnunmberelse won't work since it's not only the number hidden there, but also formatting, conversion, ... etc. You're probably right. But I have no idea how to do it in some other way. You may take a look at the following, but it has the side-effect that it will not only be used in TOC, but also in text which is most probably not what you want: Unfortunately, your solution didn't work for me. It did, however, get me thinking in the right direction. In case anyone is every crazy enough to follow the same path, here's a much more simple solution that doesn't even need \doifnumberelse: - \definehead[appendix][chapter] \def\myappendixlistnumber#1{\vbox{Appendix #1\crlf}} \def\mychapterlistnumber#1{\vbox{Chapter #1\crlf}} \def\mysectionlistnumber#1{\emspace\emspace} \def\mysectionlisttext#1{% \doifelse{#1}{Lab Tasks}{\hskip-1em\bf#1\hfilll}{#1}} \setuplist[appendix][width=1em,numberstyle=bold,% numbercommand=\myappendixlistnumber,textstyle=bold] \setuplist[chapter][width=1em,numberstyle=bold,% numbercommand=\mychapterlistnumber,textstyle=bold] \setuplist[section][width=2em,numbercommand=\mysectionlistnumber,% textcommand=\mysectionlisttext] \starttext \bgroup{}Table of Contents\egroup\par \startcolumns[n=2,distance=.3in,balance=no] \bgroup \placelist[chapter,appendix,section][criterium=all,alternative=b] \egroup \stopcolumns \page \chapter{Foo} \section{Bar} \input knuth \writetolist[section]{}{Lab Tasks} \input douglas \section{Baz} \startappendices \appendix{Corge} \section{Grault} \input zapf \stopappendices \stoptext - -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] using \doifnumberelse in a ToC numbercommand=
On Wed, 2006-08-16 at 23:36 +0200, Hans Hagen wrote: some time ago i made this plugable so you're lucky Thanks! Although my \definehead solution worked in simple documents, in didn't work in my more complex layout. Your solution works perfectly. a better solution would be something \placelist[chapter,section][criterium=frontmatter,alternative=b,numbercommand=] \placelist[chapter,section][criterium=bodymatter,alternative=b,numbercommand=] etc so you may register that (at the collector or the wiki) as a feature request Registered. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] ToC chapter/appendix labelling
I'm trying to achieve a specific table of contents layout. The problem I'm running into is adding the word Chapter before the chapter number and Appendix before the appendix letter. Below is what I've accomplished so far, any tips would be greatly appreciated. - \def\mychapterlistnumber#1{\vbox{% \doifnumberelse{#1}{Chapter}{Appendix} #1\crlf}} \def\mysectionlistnumber#1{\emspace\emspace} \def\mysectionlisttext#1{% \doifelse{#1}{Lab Tasks}{\hskip-1em\bf#1\hfilll}{#1}} \setuplist[chapter][width=1em,numberstyle=bold,% numbercommand=\mychapterlistnumber,textstyle=bold] \setuplist[section][width=2em,% numbercommand=\mysectionlistnumber,% textcommand=\mysectionlisttext] \starttext \bgroup{}Table of Contents\egroup\par \startcolumns[n=2,distance=.3in,balance=no] \bgroup \placelist[chapter,section][criterium=all,alternative=b] \egroup \stopcolumns \page \chapter{Foo} \section{Bar} \input knuth \startappendices \chapter{Corge} \section{Grault} \input knuth \stopappendices \stoptext - -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] minimals appear to be broken
I tried grabbing the latest justtex.zip and linuxtex.zip from http://www.pragma-ade.com/download-1.htm and texexec --make --all is dying on: --- assuming engine : mpost This is MetaPost, Version 0.901 (Web2C 7.5.5) (INIMP) (/home/sjansen/Downloads/test/tex/texmf-local/web2c/natural.tcx) (/home/sjansen/Downloads/test/tex/texmf-local/metapost/context/base/metafun.mp ! I can't find file `plain.mp'. l.27 input plain.mp ; % John Hobby's file Please type another input file name: --- I'm basically doing the following. I'm pretty sure it has worked in the past. Is it not correct? mkdir p $TEXDIR unzip justtex.zip d $TEXDIR unzip linuxtex.zip d $TEXDIR chmod a+x $TEXDIR/tex/texmflinux/bin/* source $TEXDIR/tex/setuptex $TEXDIR/tex cd /tmp ; texexec make all -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] startlines space width
On Sun, 2005-09-18 at 09:02 +0200, Taco Hoekwater wrote: It sounds like perhaps you could have fixed this during the font import by using afm2pl instead of afm2tfm (afm2tfm has hardwired rules for the space factor, afm2pl has a switch that allows configuration by hand). This is actually a true type font, so there was never an afm file. However, I do have a vpl which appears to be correct. Near the head, it contains: (FONTDIMEN (SLANT R 0.0) (SPACE R 0.48) (STRETCH R 0.0) (SHRINK R 0.0) (XHEIGHT R 0.4) (QUAD R 1.0) (EXTRASPACE R 0.48) ) All glphys are (CHARWD R 0.48) But even with afm2tfm, a correct monospace font should have the correct value assigned. Perhaps the import process worth investigating? That is very possible. After trying several approaches, I finally settled on writing my own importer. It 162 lines of very readable (I like to think) Bash scripting. I have included a compressed version. What do I need to fix so that the default \def\normalspace{ } has the correct width for the current font? Assuming the font is monospace, you can try this: \def\normalspace{\hphantom{0}} I will give that a try. Below is an example file that renders fine with lm/cm, but not my font. Out of curiosity, which font is it? Courier Dot 15 CPI with minor tweaks http://dradul.tripod.com/font_stuff/Courier_Dot_15_CPI.htm -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. addfont.sh.bz2 Description: application/bzip signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] free keycaps font
On Mon, 2005-09-12 at 23:08 +0200, Nikolai Weibull 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 have uploaded a new version of the font with the baseline shifted. Specifically, I have aligned the top of the heavy black bottom bar with the baseline. In my documents at least, this is much more attractive. Not sure how I arrived at a different conclusion initially. http://blogs.gurulabs.com/stuart/ As suggested by Hans, I've also been trying to understand more about defining custom encodings. Perhaps I will soon be able to post a version of the font with easier to access characters. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] startlines space width
I am having problems with startlines. I'm using space=yes to preserve space characters. This works fine with default ConTeXt lm/cm font. When I use a font I've imported, however, the spaces aren't quite wide enough. I can fix that with \def\normalspace{\char32}, but then I have problems with embedded floats. What do I need to fix so that the default \def\normalspace{ } has the correct width for the current font? Below is an example file that renders fine with lm/cm, but not my font. %\usetypescript [gurulabs] \starttext \setuplines[space=yes] \bgroup\tt\startlines 1 3 5 7 9 11 13 15 2 4 6 8 10 12 14 \stoplines\egroup \stoptext -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] free keycaps font
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. http://blogs.gurulabs.com/stuart/archives/2005/09/free_keycaps_fo.html I'm not sure what it would take, but I think this can be include with a future version of ConTeXt if you're interested, Hans. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Linux and Context on 64 bit
On Fri, 2005-09-09 at 18:41 +0200, luigi.scarso wrote: Taco Hoekwater wrote: Those executabless are now part of the minimal distribution: http://context.aanhet.net/context/install/linux64tex.zip downloaded (many thanks taco!!) The last thing: what linux distro (SUSE, Mandriva , RH, Fedora..) ? They work perfectly for me on both Ubuntu and Fedora. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] free keycaps font
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. 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. I welcome any tweaking. Especially the addition of keys from other keyboard layouts. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] free keycaps font
On Tue, 2005-09-13 at 01:02 +0200, Hans Hagen wrote: is that really texnansi? these Function-1 keys etc are not in texnansi ... All I know for sure is that it Works For Me(tm). Unfortunately, my ConTeXt skills don't yet rise above that. so, an option is to make a special encoding vector, say keycaps.enc and define proper names, like \definecharacter functioni .. \definecharacter functionii .. \definecharacter functioniii .. \definecharacter functioniv .. which permits: \definefont[keycaps][...][encoding=keycaps] {\keycaps ABC\functionvii DEF} That would be easier to use. It's also worth noting that I saw some, but not all, keys defined in Unicode. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] custom itemize bullet
I've added a custom font and defined symbols from it: % \loadmapfile[texnansi-glambats.map] \definefontsynonym [GlamoconRetrobats][texnansi-glambats][encoding=texnansi] \def\GlamoconRetrobatsSym#1{\getglyph{GlamoconRetrobats}{\char#1}} \startsymbolset[Glamocon Retrobats] \definesymbol[GuruBullet][\GlamoconRetrobatsSym{121}] % other symbols \stopsymbolset \starttext \symbol[Glamocon Retrobats][GuruBullet] \stoptext % This produces the right symbol. But I can't figure out how to use that bullet in an itemized list. I don't think I can use \usesymbols because in some lists I want the regular bullet, and in others I want the custom bullet. Any tips would be appreciated. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] custom itemize bullet
On Thu, 2005-07-28 at 22:47 +0200, Taco Hoekwater wrote: \definesymbol[mysymbol][{$\diamond$}] \startitemize[mysymbol,packed] \item foo \item bar \item baz \stopitemize /me slaps forehead Of course. I was trying \startitemize[symbol=mysymbol] and getting nowhere. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new minimals
On Wed, 2005-07-27 at 18:28 +0200, Hans Hagen wrote: I uploaded new minimals etc. Thanks! Unfortunately, the linux64tex.zip appears to be missing the binaries. It also looks like you also haven't updated your site to list its existence. [Which kinda balances out in the end, doesn't it? ;-) ] -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] installing context
Okay, I give up. What's the most correct, easiest way to install ConTeXt on Linux? There's so many different instructions floating around I'm not sure what is authoritative. Some make it look like texsync is a good idea, now it looks like it isn't being updated. Grabbing linuxtex.zip seems easy, but it also looks like it isn't kept up-to-date. I've been trying to follow minstall.pdf to install cont-tmf.zip, but that isn't working either. Before I debug it anymore, I'd like to know: how should I be making sure I have the latest version on Linux? -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] bug / feature portal
On Thu, 2005-07-21 at 00:11 +0200, Hans Hagen wrote: in addition to the wiki there is now a portal for tracking bugs and feature requests I'm excited to have a bug tracker, but I didn't like the forums. In my experience, forums and lists are competitor. Forums are more opaque than lists. I don't want to monitor both. And I'm not sure the community is large enough to really take advantage of a Web forum. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] horoffset + itemize + positiongraphics = misaligned graphics
On Sun, 2005-07-17 at 23:39 +0200, Hans Hagen wrote: I'm working on a rather complex document containing frequent use of positional graphics. Unfortunately, I've discovered what I expect will be a pretty nasty problem to fix. When I combine horoffset, startitemize, positiongraphics the graphics are placed in the wrong spot. I've managed to cook up the simple test case below which demonstrates the problem. where do you assign a value to from? My impression from the metafun manual is that is it is set by \setMPpositiongraphic . Replacing from with self produces the same result. The use of from was a side effect of me trimming a more complex document down to a simple, isolated example. what effect do you want to achieve? I want to draw attention to certain lines/paragraphs. I can use several work arounds, but I wanted to report the bug with a good test case. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] keyboard style tilde
How do I get a keyboard style tilde? As in: ~sjansen The tilde character is roughly aligned with the middle horizontal part of the s. \~ and \lettertilde produce a tilde that has been raised so that it can be used as an accent. I don't want that. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] horoffset + itemize + positiongraphics = misaligned graphics
I'm working on a rather complex document containing frequent use of positional graphics. Unfortunately, I've discovered what I expect will be a pretty nasty problem to fix. When I combine horoffset, startitemize, positiongraphics the graphics are placed in the wrong spot. I've managed to cook up the simple test case below which demonstrates the problem. === \setuplayout[ horoffset=.5cm ] \setuppagenumbering[alternative=doublesided] \setupcolors[state=start] \defineoverlay [backgraphics] [\positionoverlay{backgraphics}] \setupbackgrounds[page][background=backgraphics] \newcounter\CurrentCallout \startMPpositiongraphic{mypos:line} path p ; initialize_box(\MPpos{\MPvar{from}}) ; p := lrxy..urxy..ulxy..cycle ; p := center p shifted (-.5cm,0mm) -- center p ; pickup pencircle scaled 2pt ; drawarrow p withcolor red ; anchor_box(\MPanchor{\MPvar{from}}) ; \stopMPpositiongraphic \def\myitem% {\doglobal\increment\CurrentCallout\item \hpos{myitem:b:\CurrentCallout}{\strut} \startpositionoverlay{backgraphics} \setMPpositiongraphic{myitem:b:\CurrentCallout}{mypos:line} \stoppositionoverlay} \starttext \startitemize[n,serried] \dorecurse{30}{\myitem\input tufte } \stopitemize \stoptext === -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] tweaking underlining
On Sat, 2005-07-09 at 11:19 +0200, Hans Hagen wrote: Stuart Jansen wrote: I would like to tweak this a little however. Specifically, I'd like to change the color of the line and move it down a point or two. ok, a quick hack (no time today): Thanks again! (remind me some time later to add an option to shift the thing down by keyword control) Not problem. ;-) [this is wikiable] Done. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Setting up chapter.
On Mon, 2005-07-11 at 17:12 +, John R. Culleton wrote: I am trying to set up chapter heads a certain way and my code keeps getting uglier. Here are the specs: 1. Chapter number centered, with decorations on either side. 2. Chapter title centered below chapter number. 3. Additional decoration centered below chapter title. 4. Both number and text show up in TOC in normal Context manner. Can this be done easily using the normal chapter macro or should I do it all from scratch? (If I roll my own I worry about getting info to the TOC.) I am doing something like that now. Sorry the example isn't very pretty, had to rip out parts that were specific to the font I'm using, but should give you an idea of what you need to do. = \unexpanded\def\chaptercase{\uppercase} \def\mychapter#1#2% {\setupframed[width=1.75in,align={right,broad},frame=off]\vbox{% \framed{\setupbodyfont[18pt]\setupinterlinespace[height=0,depth=0]Chapter}% \framed{\setupbodyfont[36pt]\setupinterlinespace[height=.1,depth=0]#1}% \godown[-1ex]\framed{\setupbodyfont[24pt]\setupinterlinespace[line=2ex]#2\par}% }} \setuphead [chapter] [command=\mychapter,textcommand=\chaptercase, textstyle=\sl,numberstyle=\bf] \starttext \placelist[chapter,section][criterium=all,alternative=b] \chapter{foo} \chapter{bar} \stoptext = -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] is it possible to add lengths?
On Sat, 2005-07-09 at 01:53 -0400, Paul Tremblay wrote: Is it possible to add lengths in ConTexT? backspace= 55m + 1in I don't know enough about ConTeXt to declare this The Right Way(tm), but here's one way that Works For Me(tm): \starttext \newdimen\mydimen \mydimen=1in \hbox{\framed[height=\mydimen,width=1in]{before} \advance\mydimen by 55mm \framed[height=\mydimen,width=1in]{after}} \stoptext -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] tweaking underlining
Reading the list archives, it looks like there are certain advantages, to performing underlining according to my example below: = \setupcolors[state=start] \definetextbackground[underline][location=text,alternative=1,background=,frame=off] \definestartstop [underline] [before={\starttextbackground[underline]}, after=\stoptextbackground] \starttext \startunderline{}http://gurulabs.com/\stopunderline \stoptext = I would like to tweak this a little however. Specifically, I'd like to change the color of the line and move it down a point or two. In one thread, Hans hinted how to do this: you can redefine the metapost graphic, the main thing there is that you draw/fill something related to the multipar paths; it takes a bit of experimenting, but after a while you start seeing possibilities. See plus-rul.tex for an example of such a graphic. I think I've tracked this reference down to the definition of mpos:par:columnset, but at this point am lost as to how to proceed. Metapost is still beyond me. Any hints would be much appreciated. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] literal escape strings in bookmarks
On Thu, 2005-07-07 at 09:17 +0200, Hans Hagen wrote: there some sanitizing mechanism, but i'm not sure if you wan that here; Why do you use the hard coded \char's? If you use the named access mechanisms they are normally handled ok in bookmarks Mostly because I wasn't aware they existed. Your suggestion mostly works. Unfortunately, I still have a problem with the braces. I'm doing automated document generation, and I've had problems with stray spaces finding their way into the document, so I've taken to always using {\letterbar} or \letterunderscore{}. I suppose I might be able to solve the problem instead with some creative post-processing, but it'd be kinda tricky. Any simple solutions? = \setupinteraction[state=start] \starttext \placebookmarks[chapter,section] \chapter{test{\letterunderscore}chapter} The underscore character needs to be escaped in certain situations. \chapter{start\letterbar{}stop} So does the pipe symbol. \chapter{foo} \section{bar} How can I avoid literals escape strings in bookmarks? \stoptext = -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] how to create many blank pages
On Thu, 2005-07-07 at 22:17 +0200, Taco Hoekwater wrote: Ciro Soto wrote: I need to create a book with many blank pages (with its header footer texts). Is there any easy way to create, say, 300 blank pages one after the other, wihout using \page 300 times? I guess what I need is to know how to loop within context. \dorecurse{300}{\ \page} Argh! Finally a question I could answer and you beat me by less than 60 seconds... Oh well, at least I can confirm that works (although I used \crlf\page instead of \ \page). -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] literal escape strings in bookmarks
On Thu, 2005-07-07 at 23:00 +0200, Hans Hagen wrote: \getvalue{letterunderscore} Very nice. Thank you. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] literal escape strings in bookmarks
Below is a simple example of chapter/section titles containing characters that need to be escaped. Although the page content turns out correctly, the PDF bookmarks contain the literal escape string instead or the desired character. Any ideas how avoid this? I guess this is a bug report. == \setupinteraction[state=start] \placebookmarks[chapter,section] \starttext \chapter{test{\char`_}chapter} The underscore character needs to be escaped in certain situations. \chapter{start{\char124}stop} So does the pipe symbol. \chapter{foo} \section{bar} How can I avoid literals escape strings in bookmarks? \stoptext == -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texsync
On Fri, 2005-06-24 at 00:40 +0200, Hans Hagen wrote: Stuart Jansen wrote: Is the newest version available through texsync? I performed: i need to update the tree (i ran out of diskspace on the machine that i use for generating those things so i need to do a cleanup first) Is there anywhere else that I can find a 64bit version of ConTeXt? The linux .zip is 32bit only. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] texsync
Is the newest version available through texsync? I performed: ruby /data/tex/texmf-local/scripts/context/ruby/texsync.rb --force --update --tree=tex --destination=/data/tex/ ruby /data/tex/texmf-local/scripts/context/ruby/texsync.rb --force --update --tree=linux-64 --destination=/data/tex/ ruby /data/tex/texmf-local/scripts/context/ruby/texsync.rb --force --update --tree=doc --destination=/data/tex/doc/ texexec --make --all But /data/tex/texmf-local/tex/context/base/context.tex contains \def\contextversion{2005.03.16} -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] startlines bug(s)
Below is a simple test case that illustrates what I suspect are bugs with \startlines. I suspect that fixing them will be tricky, so I'm wondering if anyone can think of work arounds. \starttext \bgroup\tt \ConTeXt\ is A\bgroup\ttsl maz\egroup ing \setuplines[space=yes] \startlines \ConTeXt\ is A\bgroup\ttsl maz\egroup ing I didn't expect spaces around maz \stoplines \setuplines[space=on] \startlines \ConTeXt\ is A\bgroup\ttsl maz\egroup ing I expected a space marker before is \stoplines\egroup \stoptext -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Lowercasing section titles
On Tue, 2005-06-14 at 23:05 +0200, Nikolai Weibull wrote: 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? No suggestion, but I'd be interested too. I've tried many different approaches. Most did nothing. A couple modified the text both on the page and in the TOC. One even corrupted the .tui file. All I can say is it isn't as easy as it sounds. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Lowercasing section titles
On Wed, 2005-06-15 at 17:51 +0200, Taco Hoekwater wrote: % the unexpanded is because we do not want % actual \lowercase commands in the contents list \unexpanded\def\dodowncase{\lowercase} Cool, thanks. That's a trick I've seen a few times but still haven't learned to use properly. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Necessary and optional comands for combinedcontent.
On Wed, 2005-06-08 at 09:33 +, John R. Culleton wrote: There exist levels of commands: \definecombinedlist \setupcombinedlist They seem to have similar options. Are both required? If I define the list fully in \definecombinedlist what purpose does \setupcombined list serve in the ordinary case of a Table of Contents? A related question: can I place all the necessary parameters in the \completecontent command and do without the other two completely? ConTeXt already has the content combinedlist defined. So yes, you can just use \completecontent[option=value]. \definecombinedlist is available so that you can define your own type of combinedlist in case the behavior of content does not match your needs. The \setupcommand and \command pairing is a standard ConTeXt idiom. A common usage is to define global behavior in the \setupcommand before \starttext and then apply local variations in the \command. Of course, \setupcommand can usually be called at any time, for example to change behavior between part one and part two of a book. If you haven't already, I suggest looking at cont-eni.pdf for more information. I like to make simple test cases and play with commands to understand them better. Below is an example you could use if needed. \starttext \completecontent %\completecontent[alternative=a] %\setupcombinedlist[content][alternative=c]\placecontent %\setupinteraction[state=start]\placecontent[interaction=all] \chapter{One} \section{foo} \input tufte \chapter{Two} \section{bar} \input tufte \stoptext -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] texsync'd linux ConTeXt png error
I'm using the latest texsync'd version of ConTeXt on 32bit and 64bit linux. Looks like either ConTeXt or pdfetex can't handle PNG's with an alpha channel. PNG image data, 8-bit/color RGB, non-interlaced -- works fine PNG image data, 8-bit/color RGBA, non-interlaced -- corrupt pdf PNG image data, 8-bit gray+alpha, non-interlaced -- following error: --- libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type libpng warning: Ignoring bad adaptive filter type --- repeated ad nauseum (To benefit anyone coming across this message in the archives:) As a work around, assuming you don't need the alpha, the image can be converted to RGB in The Gimp using Layers Flatten Image. Alternatively, using Image Magick, the command would be convert image.png png24:image-new.png -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] texsync'd linux ConTeXt png error
On Tue, 2005-06-07 at 23:39 +0200, Taco Hoekwater wrote: Sounds like a bug in pdftex. What does texexec -- version report? (There is a known bug with pdtex 1.20a, I think) TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005 texexec : TeXExec 5.2.5 - ConTeXt / PRAGMA ADE 1997-2005 texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004 tex : pdfeTeX, 3.141592-1.20a-2.2 (Web2C 7.5.3) context : ver: 2005.03.16 cont-en : ver: 2005.03.16 fmt: 2005.6.7 mes: english cont-cz : ver: 2005.03.16 fmt: 2005.5.28 mes: czech cont-de : ver: 2005.03.16 fmt: 2005.5.28 mes: german cont-it : ver: 2005.03.16 fmt: 2005.5.28 mes: italian cont-nl : ver: 2005.03.16 fmt: 2005.6.7 mes: dutch cont-ro : ver: 2005.03.16 fmt: 2005.5.28 mes: romanian -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Fleurons
On Fri, 2005-06-03 at 00:25 +0200, Hartmut Henkel wrote: On Thu, 2 Jun 2005, John R. Culleton wrote: (K.I.S.S. = Keep it simple silly.) wasn't the 2nd S. stupid? I always thought it was Stuart. ;-) -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] new version
On Fri, 2005-05-27 at 17:07 +0200, Taco Hoekwater wrote: See http://contextgarden.net/Context_2005.05.25 for a rather detailed list of changes. Thank you. Very helpful. In particular, I'd missed the SVG support announcement, and I'm excited to play with that. Thanks to everyone that contributed to this new release. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] straight single quote
While I appreciate TeX's support for attractive curly quotes, when representing console text it is important to use straight single and double quotes. I've been googling, exploring the list archives, reading the source, and beating my head against a nice blue pillar over by the window. None of these approaches has resulting in a straight single quote. What is the best way to get a straight single quote that matches the straight double quote of the current font? -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] encouraging line breaks
What is the best way to encourage line breaks without hyphenation? I've tried many combinations of \setuptolerances, \clubpenalty, \widowpenalty \emergencystretch, etc. All to no avail. Basically, I've got XML content that is being rendered. Part of that content needs to fit inside a small box at a large font size. (It's a custom command tied to \chapter.) Although a line consisting of a single word followed by copious white space would normally be very bad, in this case it is fine. Below is an example situation where I want the text to be rendered on two lines instead of one. I'm hoping I can do it without adding manual breaks to the XML, however. \definefont [GiantFont] [SansBold at 48pt] \setupalign[nothyphenated] \starttext \framed[width=3in,align=right]{\GiantFont Foobar Bazqux} \stoptext -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: Mails of this mailing list
On Wed, 2005-05-04 at 22:44 +0200, Patrick Gundlach wrote: i wrote some time ago: I am still looking for the first emails of this list. The archive on http://archive.contextgarden.net is missing the first half year. Not anymore! Something to celebrate: the archive looks complete now - thanks Hans! (not that it is of any practical use - it just feels good :-)) Actually, digging into the archives has been pretty handy. Any chance of getting an mbox of the archive that I can import into my MUA? Mailman only has from ~2002. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] setuppagenumbering way=chapter and indexes
I'd like to reset the page number with each chapter and prepend the chapter number to the page number. Something like Chapter One Foo 1-1 Bar 1-2 Chapter Two Baz 2-1 Qux 2-3 Now here's where it gets complicated: I also need to generate an index using this same numbering. Index B Bar 1-2,2-1 Q Qux 1-1,2-3 I've played with many different approaches and can achieve 85% functionality, but generating the index is turning out to be killer. Any suggestions? Better yet, does anyone already have example code doing this? -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] start*matter adding page
On Tue, 2005-04-26 at 19:59 -0400, David Munger wrote: I use to have the same problem some time ago, and I've found the solution on the wiki: http://contextgarden.net/Empty_page_at_the_end Thanks. Unfortunately, I'm still having problems with the following example: \setupsectionblock[frontpart][page=no] \setupsectionblock[bodypart][page=no] \setupsectionblock[appendix][page=no] \setupsectionblock[backpart][page=no] \starttext \startbodymatter \startcolumns[balance=no] Lorem ipsum. \stopcolumns \stopbodymatter \stoptext -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] start*matter adding page
When I divide my document into \startfrontmatter, \startbodymatter, etc. an extra page is added to the end of the pdf. Is this expected behavior? How can I prevent it? \def\mypagenumber#1% {\headnumber[chapter]-#1} \setuppagenumbering[command=\mypagenumber] \starttext \startfrontmatter \completecontent \stopfrontmatter \startbodymatter \chapter{foo} \section{bar} \section{baz} \chapter{qux} \section{quux} \section{corge} \chapter{grault} \section{garply} \section{waldo} \stopbodymatter \stoptext -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] line wrap marker
We have lines of text that shouldn't be wrapped. If one line must be wrapped onto the next, we'd like to insert a visual mark at the end of the line and (hopefully) indent the next line slightly. Obviously, there's the potential for wrapping over multiple lines. I've dug around TeX, LaTeX and ConTeXt, and none appear to support this yet. So far, ConTeXt has been the most enjoyable to work with, so I'm okay with a ConTeXt only answer. How hard will this be to implement? Where should I start looking to figure out how to do this? I'm hoping for an answer along the lines of this set of macros will probably be helpful. -- Stuart Jansen [EMAIL PROTECTED] Guru Labs, L.C. signature.asc Description: This is a digitally signed message part ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context