From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58632 Path: news.gmane.org!not-for-mail From: Scott Steele Newsgroups: gmane.comp.tex.context Subject: Re: Multiple pleas for help (long) Date: Sun, 9 May 2010 20:28:33 -0400 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1002091892==" X-Trace: dough.gmane.org 1273451360 15019 80.91.229.12 (10 May 2010 00:29:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 May 2010 00:29:20 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon May 10 02:29:19 2010 connect(): No such file or directory Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OBGs2-0007QE-Id for gctc-ntg-context-518@m.gmane.org; Mon, 10 May 2010 02:29:18 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24057C9CBF; Mon, 10 May 2010 02:29:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id om2ktPrWdf8m; Mon, 10 May 2010 02:29:03 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 41ED8C9CB9; Mon, 10 May 2010 02:29:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D5453C9CB9 for ; Mon, 10 May 2010 02:29:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 85RyyPR6phh0 for ; Mon, 10 May 2010 02:28:55 +0200 (CEST) Original-Received: from mail-pv0-f169.google.com (mail-pv0-f169.google.com [74.125.83.169]) by balder.ntg.nl (Postfix) with ESMTP id 74921C9B49 for ; Mon, 10 May 2010 02:28:54 +0200 (CEST) Original-Received: by pvg16 with SMTP id 16so595337pvg.14 for ; Sun, 09 May 2010 17:28:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=kSaFTEI34yuRcQQtByYixvbsOJ3O08+57V77S1au1YI=; b=RR5IZSgwcyPo93MtGeIiTdnoAJFD0M2NdeME3rDbcYBFbqEEBJu28tXmfgVo0HSjtE IwcZujOOrNc1tu+oX2PpDPEVNRMwL0txknUKlvSUz6Ng00QYtiOEd9XRS9t2wEpIlW+b 5qu7c9niTzwOFzcpMRf0Y5BJ8kt0X9QBijAvM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=wJ7srzPLgrHz89nhWK0vATRPEbvTxk+BjyQVYo0av8g0hziKYpoUtyRvKLSBZ5t1Ry b8EXRjBJvxTQERFDZo2af6+mVOhUmbhwv/ZiFAEuCzGvXLGxfPh/harwAfu3lwDtsvoq Rrqx1Ag2MtGE3h9DAsRQbc9d7XfEFKzMZbTNE= Original-Received: by 10.141.3.14 with SMTP id f14mr2048634rvi.98.1273451333167; Sun, 09 May 2010 17:28:53 -0700 (PDT) Original-Received: by 10.140.225.5 with HTTP; Sun, 9 May 2010 17:28:33 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:58632 Archived-At: --===============1002091892== Content-Type: multipart/alternative; boundary=000e0cd1134e5a29e90486327eb0 --000e0cd1134e5a29e90486327eb0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks so much for the help! Pleas 1, 2, 5, and 6 are completely solved. (I= n particular, Mojca, the fix for accents is fantastic!) I wasn't able to get \Frowny to work any better with the advice provided, but I found that when = I scaled it down, it stopped knocking the text off the grid, and I have a har= d time telling the difference in size between the old and new. % New (works) : \useexternalfigure[frowny][Frowny][factor=3D7,type=3Dpdf] \def\Frowny{\hbox{\externalfigure[frowny]}} \useexternalfigure[smiley][Smiley][factor=3D7,type=3Dpdf] \def\Smiley{\hbox{\externalfigure[smiley]}} \useexternalfigure[slashy][Slashy][factor=3D7,type=3Dpdf] \def\Slashy{\hbox{\externalfigure[slashy]}} I'm currently working on the Table of Contents formatting. I'm trying to format it as follows: \starttable[|r|c|l|] subjectName =C2=B7 pageNumber\MR subjectName =C2=B7 pageNumber\MR ...etc... \stoptable % Of course, where I don't actually input it subject by subject like this. Ideally, I'd like to be able to position the table on the page by deciding where the center line of single dots is (eg a setup where the dots are in the very center of the page layout or another setup where they are two-thirds of the textblock/pagelayout size (I'm not sure what the correct term is here) to the right). I've tried a number of different ways to set this up. This is the only thin= g close to what I want that I can get to work, but of course, it doesn't have the dots aligned: \def\ListCommand#1#2#3% { \starttabulate[|r|c|l|] \NC #2\NC =C2=B7\NC #3 \stoptabulate } \def\TableOfContents { \placelist[section] [criterium=3D{chapter,subject}, alternative=3Dcommand, command=3D\ListCommand] } Here's an example of what I tried to do but which doesn't work: \def\ListCommandOne#1#2#3% {#2\NC} \def\ListCommandTwo#1#2#3% {=C2=B7\NC} \def\ListCommandThree#1#2#3% {#3\NC} \def\TableOfContents { \starttabulate[|l|l|l|] \NC \placelist[section] [criterium=3D{chapter,subject}, alternative=3Dcommand, command=3D\ListCommandOne] \NC \placelist[section] [criterium=3D{chapter,subject}, alternative=3Dcommand, command=3D\ListCommandTwo] \NC \placelist[section] [criterium=3D{chapter,subject}, alternative=3Dcommand, command=3D\ListCommandThree] \stoptabulate } Obviously that attempt=E2=80=94aside from not working=E2=80=94is incredibly= un-elegant and could quickly screw things up with misaligned names and page numbers. Here is another attempt: \def\ListCommand#1#2#3{#2 =C2=B7 #3\MR} \def\TableOfContents { \starttable[|r|c|l|] \placelist[section] [criterium=3D{chapter,subject}, alternative=3Dcommand, command=3D\ListCommand] \stoptable } I think part of my problem is that I really don't understand what placelist {\em is} or what it is doing. Is this something that would be clearer only if I knew more about plain Tex? Note: I'm putting \TableOfContents in the frontmatter. Scott ----- This is a work of =EF=AC=81ction. Names, characters, places, and incidents= either are the product of the writer's imagination or are used =EF=AC=81ctitiously= , and any resemblance to actual persons, living or dead, businesses, companies, events, or locales is entirely co=C3=AFncidental. --000e0cd1134e5a29e90486327eb0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks so much for the help! Pleas 1, 2, 5, and 6 are completely = solved. (In particular, Mojca, the fix for accents is fantastic!) I wasn= 9;t able to get \Frowny to work any better with the advice provided, but I = found that when I scaled it down, it stopped knocking the text off the grid= , and I have a hard time telling the difference in size between the old and= new.

% New (works) :
\useexternalfigure[frowny][Fr= owny][factor=3D7,type=3Dpdf]
\def\Frowny{\hbox{\externalfigure[fr= owny]}}
\useexternalfigure[smiley][Smiley][factor=3D7,type=3Dpdf]=
\def\Smiley{\hbox{\externalfigure[smiley]}}
\useexternalfigu= re[slashy][Slashy][factor=3D7,type=3Dpdf]
\def\Slashy{\hbox{\exte= rnalfigure[slashy]}}



I'm currently working on the Table of Contents formatting. I'm tryi= ng to format it as follows:

\starttable[|r|c|l|]
subjectName =C2=B7 <= /span>pageNumber\MR
subjectName <= /span>=C2=B7 pageNumber\MR
...etc...
\stoptable % Of course, where= I don't actually input it subject by subject like this.

Ideally, I'd like to be able to position the table = on the page by deciding where the center line of single dots is (eg a setup= where the dots are in the very center of the page layout or another setup = where they are two-thirds of the textblock/pagelayout size (I'm not sur= e what the correct term is here) to the right).

I've tried a number of different ways to set this u= p. This is the only thing close to what I want that I can get to work, but = of course, it doesn't have the dots aligned:

\def\ListCommand#1#2#3%
{
\starttabulate[|r|c|l|]
\NC #2\NC =C2= =B7\NC #3
\stop= tabulate
}

\def\TableOfContents
{
\placelist[section]
[cri= terium=3D{chapter,subject}, alternative=3Dcommand,
command=3D\ListCommand]=
}

Here's an example of what I tried to do but = which doesn't work:

\def\ListCommandOne#1#2#3%=
{#2\NC}
\def\ListCommandTwo#1#2#3%
{=C2=B7\NC}
\def\ListCommandThree= #1#2#3%
= {#3\NC}

\def\TableOfContents
{
\starttabulate[|l|l|= l|]
\NC
\pla= celist[section]
[criterium=3D{chapter,subject}, alternative=3Dcommand,
command= =3D\ListCommandOne]
\NC<= /div>
\placelist[section]
[criterium=3D{chapter,subject}, alternative=3Dcommand= ,
comm= and=3D\ListCommandTwo]
\NC
\placelist[section]
[cri= terium=3D{chapter,subject}, alternative=3Dcommand,
command=3D\ListCommandT= hree]
\sto= ptabulate
}

Obviously that attempt=E2=80= =94aside from not working=E2=80=94is incredibly un-elegant and could quickl= y screw things up with misaligned names and page numbers. Here is another a= ttempt:

\def\ListCommand#1#2#3{#2 =C2=B7 #3\MR}

\def\TableOf= Contents
{
= \starttable[|r|c|l|]
\placelist[section]
[criterium=3D{chapter,subj= ect}, alternative=3Dcommand,
comma= nd=3D\ListCommand]
\stoptable
}

I think = part of my problem is that I really don't understand what placelist {\e= m is} or what it is doing. Is this something that would be clearer only if = I knew more about plain Tex?

Note: I'm putting \TableOfContents in the frontmatt= er.



Scott
-----
This is a work of =EF=AC=81ction. =C2=A0Names, characters, pl= aces, and incidents either are the product of the writer's imagination = or are used =EF=AC=81ctitiously, and any resemblance to actual persons, liv= ing or dead, businesses, companies, events, or locales is entirely co=C3=AF= ncidental.
--000e0cd1134e5a29e90486327eb0-- --===============1002091892== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1002091892==--