Re: [NTG-context] Modules how?

2005-10-02 Thread Taco Hoekwater

Boris Pedrofiets wrote:
Looking at the files s-mag-01.tex and mag-.tex from the context 
distribution I created a file with layout and defs myself. My question: 
how can I use my-module?


Rename the file you made, so the name starts with p- and
ends with the extension .tex, like:

  p-boris.tex

Now you can start your documents with

  \usemodule[boris]

Modules normally start with a single letter, followed by a dash.

Context first looks for m-boris (a core system module), then
p-boris (a user private module), then s-boris (a style module),
then x-boris (dunno?), then t-boris (a third-party module),
and finally (if nothing else works), in a new context
distribution it will try boris.tex.

Even if it works, using module names without a prefix is a bad
idea, because it is very likely to create clashes with other
input file names. Use p-boris.tex for your own files, and
t-boris.tex for files you want to share with other people.

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Q: http://wiki.contextgarden.net/Thumb_index

2005-10-02 Thread Olivier
Quoting  Alexander Lazic :
 -- was [EMAIL PROTECTED] on Oct 01, 2005 at 11:02:39PM --

 I don't have found a debian package for this therefore i have used the
 zipfile from:  http://www.pragma-ade.com/context/current/cont-lmt.zip

This will work but mess the Debian packaging :(

One solution for this specific issue discussed earlier on this mailing
list is to save a copy of /usr/share/texmf/fonts/enc/dvips/lm/lm-ec.enc
under the name ec-lm.enc in a local tree like /usr/local/share/texmf or
so.

Sorry for this late answer.
Olivier

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Q: http://wiki.contextgarden.net/Thumb_index

2005-10-02 Thread Alexander Lazic

On Son 02.10.2005 11:19, Olivier wrote:

Quoting  Alexander Lazic :


I don't have found a debian package for this therefore i have used the
zipfile from:  http://www.pragma-ade.com/context/current/cont-lmt.zip


This will work but mess the Debian packaging :(


Well if there isn't any package, then get the source ;-)

I think it's an working solution and therfore an valid ;-)


Sorry for this late answer.


No probs ;-)

al ;-)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Foxit pdf tools

2005-10-02 Thread Idris Samawi Hamid
Dear gang,

FYI:

I just came across this alternative to Adobe Reader for Windows. Maybe it has 
features useful to some of us (e.g., it's very small)...

http://www.foxitsoftware.com/pdf/rd_intro.php

They have some other pdf products too:

http://www.foxitsoftware.com/products.htm

Best
Idris


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \noalign?

2005-10-02 Thread Peter Rolf
Christopher Creutzig wrote:
 Salvete,
 
  which tables allow using \noalign and in what places?
 
  E.g., the first of these works, but I'd also like to be allowed the
 second one (ignore what \pause does for the moment ...):
 
 \starttable[|c|c|c|]
 \HL
 \NC one \NC two \NC three \NC\AR
 \HL\noalign{\pause}%
 \NC one \NC two \NC three \NC\AR
 \noalign{\pause}\HL
 \stoptable
 
  I assume this has to do with trial typesetting or something like this,
 but what should I type instead?

how about

\TABLEnoalign (see core-tab.tex for defintion)
without any guarantees :)

Servus,

Peter

 regards,
 Christopher
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: [metapost] MPtoPDF problem

2005-10-02 Thread Mojca Miklavec
2005/9/30, Mau [EMAIL PROTECTED] wrote:
 Hi!

 I have been using MPtoPDF (included in the MikTeX distribution, under
 Win2K) to convert mp output to pdf. Everything went smoothly until
 the end of July. Now it seems that MPtoPDF cannot produce any output.
 I suspect some problems with a newer version installed automatically
 from MiKTex distribution (MPtoPDF 1.3?)

 My command line is:

 C:\texmf\miktex\bin\mptopdf.exe %n

 where %n is a parameter for the name of the mp file I am working on.

 Does anyone have the same problem?

 Thanks,
 Maurizio

Problems confirmed. I used mptopdf in August and it worked at that
time. I last updated ConTeXt (the package containing mptopdf) on 5th
September (version 2005-07-27).

This is the whole output when mptopdf is run for a simple mp file:

---
E:\Tempmptopdf filename
-fmt=mptopdf: unknown option

MPtoPDF 1.3 : filename.* is converted to filename-1.pdf
---

The last statement doesn't hold (no file created at all). filename.1
is OK and mptopdf also works perfectly with the standalone ConTeXt
distribution, but not under MikTeX.

The funny part is also this one (from mptopdf.pl):
 if ($miktex) { $command = pdfetex -fmt=mptopdf }
-fmt doesn't seem to exist in MikTeX (any more?). I tried pdfetex
--help, but didn't find any useful switches to compensate for
-progname=context except -alias, but I didn't know how to use it.
I'm a bit lost.

I noticed that the MikTeX package repository was updated in the last
days, so I tried to update the system (for the first time in my life
I've chosen to update only the context.cab since I'm working on
modem), but now the most crucial parts keep crashing (initexmf,
kpsewhich, ...), so I that I can't even work any further and thus
can't check yet if the new package brings any changes or not.

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Modules how?

2005-10-02 Thread Boris Pedrofiets

Hi,


From: Taco Hoekwater

  p-boris.tex
Now you can start your documents with
  \usemodule[boris]



This works when I put the module file in the same directory as my textfile.
When the file is in the same dir as s-mag-01.tex, context can't find it. How 
can I achieve this? And where do I place the picture file (logo) needed in 
my module?


Tanks again!

Boris

_
Zie en hoor je vrienden met MSN Messenger 7.5 
http://www1.imagine-msn.com/Messenger/Video.aspx


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Q: about \externalfile from metafun-p.pdf

2005-10-02 Thread Alexander Lazic

Hi,

i'm starting to learn context and therefore i have copied some examples
from metafun-p.pdf and get the following error:

---
! Undefined control sequence.
l.42 \externalfile
 [mprun.21][width=5cm]
---
---
texexec  --version

TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005

  texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
  texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
  tex : pdfeTeX, 3.141592-1.30.3-2.2 (Web2C 7.5.5)
  context : ver: 2005.07.27
  cont-en : ver: 2005.07.27  fmt: 2005.10.1  mes: english

   total run time : 2 seconds
---
The context code:

---
\language[de]

\setupcolors[state=start]
\setupoutput[pdftex]
\setuppapersize[A4][A4]

\setuppagenumbering[location={footer,right}]
\setupfootertexts[][{Seite \pagenumber{} von \totalnumberofpages}]

\starttext
% in the metapost_test is the code from page 118 = beginfig(21) ;...
\startMPrun
 input metapost_test;
\stopMPrun

\externalfile[mprun.21][width=5cm]

\showsetups
\showlayout
\stoptext
---

Please can any body help, thx.

al ;-)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \noalign?

2005-10-02 Thread Christopher Creutzig
Peter Rolf wrote:
 how about
 
 \TABLEnoalign (see core-tab.tex for defintion)

 I did try that.  But I don't see why it should help.  After all, the
place I'm trying to do a \noalign is not inside some other \noalign and
that's the only thing \TABLEnoalign adds – as far as I read the source.


Christopher
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Modules how?

2005-10-02 Thread Christopher Creutzig
Boris Pedrofiets wrote:

 This works when I put the module file in the same directory as my textfile.
 When the file is in the same dir as s-mag-01.tex, context can't find it. How 

 Please run texhash or mktexlsr, whichever exists on your system.  You
need to do that every time you update your TeX installation.

 Oh, and please don't place your local stuff in that directory.  That's
just asking for trouble, since the directory may be overwritten by
updates and the like.  Better put it into your local texmf tree under
.../tex/context/user/.  On my system, I get the part to write instead of
the ... above by calling
kpsewhich --expand-var='$TEXMFLOCAL'

 can I achieve this? And where do I place the picture file (logo) needed in 
 my module?

 It should go to the same directory, I think.  But I never tried.


regards,
Christopher
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Q: about \externalfile from metafun-p.pdf

2005-10-02 Thread Christopher Creutzig
Alexander Lazic wrote:
 i'm starting to learn context and therefore i have copied some examples
 from metafun-p.pdf and get the following error:
 
 ---
 ! Undefined control sequence.
 l.42 \externalfile
   [mprun.21][width=5cm]

 Probably a typo in metafun-p.pdf; try \externalfigure instead.


Christopher
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Q: about \externalfile from metafun-p.pdf

2005-10-02 Thread Alexander Lazic

On Son 02.10.2005 19:54, Christopher Creutzig wrote:


Probably a typo in metafun-p.pdf; try \externalfigure instead.


Thanx this works ;-)

Oh btw: i have see in the syntax-diagramm sin.

1.) is this the sinus function?
2.) i have try

---
\startreusableMPgraphic{sin}

 sin (1);
\stopreusableMPgraphic{sin}

\reuseMPgraphic{sin}
---

and get:

Isolated expression.

Do you know what's going wrong?

al ;-)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Foxit pdf tools

2005-10-02 Thread Idris Samawi Hamid
Dear gang,

FYI:

I just came across this alternative to Adobe Reader for Windows. Maybe it has
features useful to some of us (e.g., it's very small)...

http://www.foxitsoftware.com/pdf/rd_intro.php

They have some other pdf products too:

http://www.foxitsoftware.com/products.htm

Best
Idris


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] installing context

2005-10-02 Thread Rob Ermers
Dear Friends,

I have updated miktex and context today.
Latex works normally, but I can't get context working right.

cont-en and cont-nl are causing problems.
Miktex cannot generate an (e)fmt file of cont-en, con-nl.

Last time I upgraded, something was wrong with the English hyphenation
files.
This time something else must be the matter; even though hyphenation in
several languages apparently is not installed.

texexec --make nl
generates the same problem. Interestingly, messages are in Dutch.

I would be grateful for any help!

Kind regards,

Robert

This is pdfeTeX, Version 3.141592-1.20a-rc7.2-2.2 (MiKTeX 2.4) (INITEX)  2
OCT 2005 20:57
entering extended mode
***cont-en
(J:\tex\texmf\tex\context\base\cont-en.tex
(J:\tex\texmf\tex\context\base\context.tex
(J:\tex\texmf\tex\context\base\syst-pln.tex
\maxdimen=\dimen10
\hideskip=\skip10
\centering=\skip11
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
\interdisplaylinepenalty=\count23
\interfootnotelinepenalty=\count24
\bigskipamount=\skip13
\jot=\dimen13
\medskipamount=\skip14
\normalbaselineskip=\skip15
\normallineskip=\skip16
\normallineskiplimit=\dimen14
\smallskipamount=\skip17
\mscount=\count25
\tabs=\box11
\tabsyet=\box12
\tabsdone=\box13
)
(J:\tex\texmf\tex\context\base\syst-prm.tex)
(J:\tex\texmf\tex\context\base\syst-etx.tex)
(J:\tex\texmf\tex\context\base\syst-omg.tex)
(J:\tex\texmf\tex\context\base\syst-xtx.tex)
(J:\tex\texmf\tex\context\base\syst-gen.tex
loading : Context System Macros / General
) (J:\tex\texmf\tex\context\base\syst-ext.tex
loading : Context System Macro's / Extras
) (J:\tex\texmf\tex\context\base\syst-new.tex)
(J:\tex\texmf\tex\context\base\syst-con.tex
loading : Context System Macro's / Conversions
) (J:\tex\texmf\tex\context\base\syst-var.tex
loading : Context System Macro's / Variables
) (J:\tex\texmf\tex\context\base\math-pln.tex)
(J:\tex\texmf\tex\context\base\supp-ini.tex
loading : Context Support Macros / Initializations
) (J:\tex\texmf\tex\context\base\supp-fil.tex
loading : Context Support Macros / Files
) (J:\tex\texmf\tex\context\base\supp-dir.tex)
(J:\tex\texmf\tex\context\base\mult-ini.tex
loading : Context Multilingual Macros / Initialization
) (J:\tex\texmf\tex\context\base\mult-sys.tex
loading : Context Multilingual Macros / System
interface   : defining english interface

interface   : using english messages

) (J:\tex\texmf\tex\context\base\mult-con.tex
loading : Context Multilingual Macros / Constants
) (J:\tex\texmf\tex\context\base\mult-com.tex
loading : Context Multilingual Macros / Commands
) (J:\tex\texmf\tex\context\base\thrd-ran.tex)
(J:\tex\texmf\tex\context\base\thrd-trg.tex)
(J:\tex\texmf\tex\context\base\supp-box.tex
loading : Context Support Macros / Boxes
) (J:\tex\texmf\tex\context\base\supp-mrk.tex
loading : Context Support Macros / Marks
) (J:\tex\texmf\tex\context\base\supp-vis.tex
loading : Context Support Macros / Visualization
) (J:\tex\texmf\tex\context\base\supp-fun.tex
loading : Context Support Macros / Fun Stuff
) (J:\tex\texmf\tex\context\base\supp-eps.tex
loading : Context Support Macros / EPS
) (J:\tex\texmf\tex\context\base\supp-pdf.tex
loading : Context Support Macros / PDF (2004.03.26)
) (J:\tex\texmf\tex\context\base\supp-spe.tex
loading : Context Support Macros / Specials
) (J:\tex\texmf\tex\context\base\supp-mps.tex
(J:\tex\texmf\tex\context\base\supp-ini.tex
loading : Context Support Macros / Initializations
)
loading : Context Support Macros / MetaPost Inclusion
) (J:\tex\texmf\tex\context\base\supp-mpe.tex
loading : MetaPost Special Extensions
) (J:\tex\texmf\tex\context\base\supp-tpi.tex
loading : Context Support Macros / TPIC Conversion
) (J:\tex\texmf\tex\context\base\supp-mat.tex
loading : Context Support Macros / Math
) (J:\tex\texmf\tex\context\base\supp-ran.tex
loading : Third Party Macros / Random Number Generation
) (J:\tex\texmf\tex\context\base\supp-ali.tex)
(J:\tex\texmf\tex\context\base\typo-ini.tex
loading : Context Typographic Macros (ini)
) (J:\tex\texmf\tex\context\base\verb-ini.tex
loading : Context Verbatim Macros / Initialization
) (J:\tex\texmf\tex\context\base\core-var.tex
loading : Context Core Macros / Variables
) (J:\tex\texmf\tex\context\base\core-ins.tex
loading : Context Insertion Macros / General
) (J:\tex\texmf\tex\context\base\core-fil.tex
loading : Context Core Macros / File Support
) (J:\tex\texmf\tex\context\base\core-con.tex
loading : Context Core Macros / Conversion Macros
) (J:\tex\texmf\tex\context\base\cont-fil.tex
loading : Context File Synonyms
) (J:\tex\texmf\tex\context\base\thrd-tab.tex)
(J:\tex\texmf\tex\context\base\supp-lan.tex
loading : Context Support Macros / Language Options
) (J:\tex\texmf\tex\context\base\supp-num.tex
loading : 

Re: [NTG-context] using 1 layout on several documents

2005-10-02 Thread Hans Hagen

Peter Rolf wrote:


Boris Pedrofiets wrote:
 


Thank you Peter!

Just wondering...
Looking at the files s-mg-01.tex and mag-.tex from the context
distribution, there is a different approach. Here I find \usemodule.

What are the differences? And, when use with? Or is it just a metter of
taste?

   


AFAIK modules are used for adding functionality (whatever) and
environment is used for defining a specific layout (global or local).

In would say that s-mag-01.tex is a borderline case (or a matter of
taste?). And maybe I'm the wrong one to ask :)
 

indeed a border case ... the s- prefix is reserver for 'styles' that are 
shipped with the distribution (just to make it easier to distinguish them)


Hans 



-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Foxit pdf tools

2005-10-02 Thread Hans Hagen

Idris Samawi Hamid wrote:


Dear gang,

FYI:

I just came across this alternative to Adobe Reader for Windows. Maybe it has
features useful to some of us (e.g., it's very small)...

http://www.foxitsoftware.com/pdf/rd_intro.php

They have some other pdf products too:

http://www.foxitsoftware.com/products.htm
 

nice indeed, but the last time i tested it (some month ago) it has problems with the crop boxes of xforms and that messed up  a lot of docs (show-man.pdf is a nice test case) 

Hans 



-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Q: about \externalfile from metafun-p.pdf

2005-10-02 Thread Christopher Creutzig
Alexander Lazic wrote:
 Oh btw: i have see in the syntax-diagramm sin.
 
 1.) is this the sinus function?

 Sure.  (The sine function as used by mathematicians.  If you want the
sine of an angle expressed in degrees, I believe you want sind.)

 2.) i have try
 
 ---
 \startreusableMPgraphic{sin}
 
   sin (1);
 \stopreusableMPgraphic{sin}

 This {sin} at the end is wrong; it's interpreted as text.

 
 \reuseMPgraphic{sin}
 ---
 
 and get:
 
 Isolated expression.
 
 Do you know what's going wrong?

 It's the same error as trying to “plot” the MP code

 1;

MetaPost is confused since it has no idea what to do with that number
and tells you so.  Since MP can handle more than just numbers, you get a
slightly more general error message that talks about an “expression”
rather than a “number.”


 What you can do is something like

\starttext

\startusableMPgraphic{sin}
  for x := 0 step 0.6282 until 6.282:
drawdot(10*x, 10*sin(x)) withpen pencircle scaled 1pt;
  endfor
\stopusableMPgraphic

\useMPgraphic{sin}

\stoptext


Or, you can use the fact that in MetaPost you can build up an expression
within a for loop as follows:


\starttext

\startusableMPgraphic{sin}
  draw (0,0)
  for x := 0 step 0.2 until 6.282: ..(10*x, 10*sin(x)) endfor;
\stopusableMPgraphic

\useMPgraphic{sin}

\stoptext


 I think it really helps with MP programming to understand this type of
loops.


Christopher
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \noalign?

2005-10-02 Thread Hans Hagen

Christopher Creutzig wrote:


Salvete,

which tables allow using \noalign and in what places?

E.g., the first of these works, but I'd also like to be allowed the
second one (ignore what \pause does for the moment ...):

\starttable[|c|c|c|]
\HL
\NC one \NC two \NC three \NC\AR
\HL\noalign{\pause}%
\NC one \NC two \NC three \NC\AR
\noalign{\pause}\HL
\stoptable

I assume this has to do with trial typesetting or something like this,
but what should I type instead?
 


it all depends on what you want to achieve

Hans


-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bib module: doubling publications list

2005-10-02 Thread Idris Samawi Hamid
Dear Taco and gang,

Ok, I'm migrating my journal over to the new bib module (ConTeXt from 8-31). 
First issue:

Under some strange circumstances (perhaps if the bbl file and tex file have 
the same name?), sometimes the list of publications gets repeated. I cannot 
always repeat this though; seems capricious. Here are test files:

=test-bib.tex===
% output=pdf interface=en

\usemodule[bib]

\setuppublications[alternative=apa]
\setuppublications[autohang=yes]
\setuppublications[numbering=no]
\setuppublications[criterium=cite]
\setuppublications[sorttype=bbl]

\input test-bib.bbl

\starttext

 \cite[afghani60]

\section{References}{\tfx\setupinterlinespace
{\placepublications}}

\stoptext


==test-bib.bbl==
\startpublication[k=afghani60,
  t=book,
  a=Afgh\=an\=i,
  y=1960,
  s=]
\author[]{Sa\high{c}\=id}[]{}{Al-Afgh\=an\=i}
\title{Asw\=aqu \~al-\high{c}Arab f\=i
\~al-J\=ahiliyya\~h wa \~al-Isl\=am}
\pubname{D\=aru \~al-Fikr}
\city{Damascus}
\pubyear{1960}
\stoppublication


If the \setuppublications[sorttype=bbl] line is commented, the problem 
disappears. If I change the name of the tex file to test-bib-dbl.tex, the 
problem disappears.

Best
Idris


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bib module: \setupcite macro

2005-10-02 Thread Idris Samawi Hamid
Another issue:

My definition for \citeyear crashes. This used to work-)

\def\citeyear[#1]{%
  {\cite[year][#1]%
  }%
}

log:

==
! You can't use `macro parameter character #' in horizontal mode.
\p!doifinstringelse ...tringelse [EMAIL PROTECTED] [EMAIL PROTECTED] 1#1##
  2##3\war {\unless \if 
[EMAIL PROTECTED]

\rawdodoifinsetelse ...ingelse \@@@instring {,#1,}
  [EMAIL PROTECTED] 
\firstoftwoarguments 
...

\addtocommalist #1#2-\rawdoifinsetelse {#1}#2
  \resetglobal {\dodoglobal 
\ede...

\donormalbibauthoryear ...yauthor }\thebibauthors
  [EMAIL PROTECTED] \doglobal 
[EMAIL PROTECTED] 
\addto...

\next1 #1,-\donormalbibauthoryear {#1}
   \doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global \advance 
\...
...
l.24 \dots as Afghani points\citeyear[afghani60]
==

See attached test file test-bib-year.tex.

Best
Idris

=test-bib-year.tex===
% output=pdf interface=en

\setupwhitespace[big]

\usemodule[bib]

\setuppublications[alternative=apa]
\setuppublications[autohang=yes]
\setuppublications[numbering=no]
\setuppublications[criterium=cite]
\setuppublications[sorttype=bbl]
%
%\setuppublicationlist[totalnumber={},samplesize=,author={\invertedauthor}]

\def\citeyear[#1]{%
  {\cite[year][#1]%
  }%
}

\input test-bib.bbl

\starttext

\dots as Afghani points\citeyear[afghani60].

\cite[afghani60]

\section{References}{\tfx\setupinterlinespace
{\placepublications}}

\stoptext


==test-bib.bbl==
\startpublication[k=afghani60,
  t=book,
  a=Afgh\=an\=i,
  y=1960,
  s=]
\author[]{Sa\high{c}\=id}[]{}{Al-Afgh\=an\=i}
\title{Asw\=aqu \~al-\high{c}Arab f\=i
\~al-J\=ahiliyya\~h wa \~al-Isl\=am}
\pubname{D\=aru \~al-Fikr}
\city{Damascus}
\pubyear{1960}
\stoppublication



Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bib module: \setupcite macro

2005-10-02 Thread Idris Samawi Hamid
I thought it was my macro but the following fails also:

==
\starttext

\dots as Afghani points out \cite[year][afghani60].

\section{References}{\tfx\setupinterlinespace
{\placepublications}}

\stoptext
==

Best
Idris

==
==
Another issue:

My definition for \citeyear crashes. This used to work-)

\def\citeyear[#1]{%
  {\cite[year][#1]%
  }%
}

log:

==
! You can't use `macro parameter character #' in horizontal mode.
\p!doifinstringelse ...tringelse [EMAIL PROTECTED] [EMAIL PROTECTED] 1#1##
  2##3\war {\unless \if
[EMAIL PROTECTED]

\rawdodoifinsetelse ...ingelse \@@@instring {,#1,}
  [EMAIL PROTECTED] 
\firstoftwoarguments
..

\addtocommalist #1#2-\rawdoifinsetelse {#1}#2
  \resetglobal {\dodoglobal
\ede...

\donormalbibauthoryear ...yauthor }\thebibauthors
  [EMAIL PROTECTED] \doglobal 
[EMAIL PROTECTED]
\addto...

\next1 #1,-\donormalbibauthoryear {#1}
   \doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global \advance
\...
..
l.24 \dots as Afghani points\citeyear[afghani60]
==

See attached test file test-bib-year.tex.

Best
Idris

=test-bib-year.tex===
% output=pdf interface=en

\setupwhitespace[big]

\usemodule[bib]

\setuppublications[alternative=apa]
\setuppublications[autohang=yes]
\setuppublications[numbering=no]
\setuppublications[criterium=cite]
\setuppublications[sorttype=bbl]

\setuppublicationlist[totalnumber={},samplesize=,author={\invertedauthor}]

\def\citeyear[#1]{%
  {\cite[year][#1]%
  }%
}

\input test-bib.bbl

\starttext

\dots as Afghani points out\citeyear[afghani60].

\cite[afghani60]

\section{References}{\tfx\setupinterlinespace
{\placepublications}}

\stoptext


==test-bib.bbl==
\startpublication[k=afghani60,
  t=book,
  a=Afgh\=an\=i,
  y=1960,
  s=]
\author[]{Sa\high{c}\=id}[]{}{Al-Afgh\=an\=i}
\title{Asw\=aqu \~al-\high{c}Arab f\=i
\~al-J\=ahiliyya\~h wa \~al-Isl\=am}
\pubname{D\=aru \~al-Fikr}
\city{Damascus}
\pubyear{1960}
\stoppublication



Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \noalign?

2005-10-02 Thread Peter Rolf
Christopher Creutzig wrote:
 Peter Rolf wrote:
 
how about

\TABLEnoalign (see core-tab.tex for defintion)
 
 
  I did try that.  But I don't see why it should help.  After all, the
 place I'm trying to do a \noalign is not inside some other \noalign and
 that's the only thing \TABLEnoalign adds – as far as I read the source.
 

Sorry to hear. I was just browsing through an old table, as I remembered
your question. After some reading and testing I have found out, that \AR
is the cause of the problem. Your example works with \SR \FR \LR..., but
not with \AR. Adding a \TB[] in front of \noalign works, but surely has
some unwanted side effects.

Sandman is calling,

Peter

 Christopher
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bib module: author-date macros

2005-10-02 Thread Idris Samawi Hamid
Here are some macros that I use; I was wondering if the new bib module has a 
better way to implement the following, since this sort of thing is used quite 
frequently in the author-date system that t-bib defaults to. See the examples 
in the following file (three depend on \cite[year] which has a problem--see 
previous mail).

I would really appreciate suggestions for improving this-)

Best
Idris

==test-bib-macros.tex==
% output=pdf interface=en

\setupwhitespace[big]

\usemodule[bib]

\setuppublications[alternative=apa]
\setuppublications[autohang=yes]
\setuppublications[numbering=no]
\setuppublications[criterium=cite]
\setuppublications[sorttype=bbl]

\setuppublicationlist[totalnumber={},samplesize=,author={\invertedauthor}]

\setupcite[authoryears][left={(},inbetween={ }, right={)}]

\def\citeauthoryear[#1]{%
  {\setupcite[authoryears][right={)},inbetween={ }]%
   \cite[authoryears][#1]%
  }%
}

\def\citeyear[#1]{%
  {\cite[year][#1]%
  }%
}

\def\citeauthoryearpage[#1][#2]{%
  {\setupcite[authoryears][right={, #2)},inbetween={ }]%
   \cite[authoryears][#1]%
  }%
}

\def\citeyearpage[#1][#2]{%
  {\setupcite[year][right={, #2)},inbetween={ }]%
   \cite[year][#1]%
  }%
}

\def\citeauthorout[#1]{%
  {\setupcite[authoryears][left={}, right={)},inbetween={ (}]%
   \cite[authoryears][#1]%
  }%
}

\def\citeauthoroutpage[#1][#2]{%
  {\setupcite[authoryears][left={}, right={, #2)},inbetween={ (}]%
   \cite[authoryears][#1]%
  }%
}

\def\citeleft[#1]{%
  {\setupcite[authoryears][left={(}, right={, },inbetween={ }]%
   \cite[authoryears][#1]%
  }%
}

\def\citeleftpage[#1][#2]{%
  {\setupcite[authoryears][left={(}, right={, #2; },inbetween={ }]%
   \cite[authoryears][#1]%
  }%
}

\def\citemiddle[#1]{%
  {\setupcite[authoryears][left={}, right={, },inbetween={ }]%
   \cite[authoryears][#1]%
  }%
}

\def\citeright[#1]{%
  {\setupcite[authoryears][left={}, right={)},inbetween={ }]%
   \cite[authoryears][#1]%
  }%
}

\def\citemiddlepage[#1][#2]{%
  {\setupcite[authoryears][left={}, right={, #2; },inbetween={ }]%
   \cite[authoryears][#1]%
  }%
}

\def\citerightpage[#1][#2]{%
  {\setupcite[authoryears][left={}, right={, #2)},inbetween={ }]%
  \cite[authoryears][#1]%
  }%
}

\input test-bib.bbl

\starttext

% examples

\dots as someone else pointed out \cite[afghani60].

\dots as someone else pointed out\citeauthoryear[afghani60].

%\dots as Afghani points out \cite[year][afghani60]. % crashes

%\dots as Afghani points out \citeyear[afghani60]. % crashes

%\citeyearpage[afghani60][p.~20]. % crashes

\dots as someone else pointed out\citeauthoryearpage[afghani60][p.~20].

See \citeauthorout[afghani60].

See \citeauthoroutpage[afghani60][p.~20].

\dots as others have pointed
out\citeleft[afghani60]%
\citemiddle[afghani60]%
\citeright[afghani60].

\dots as others have pointed
out\citeleftpage[afghani60][p.~20]%
\citemiddlepage[afghani60][p.~20]%
\citerightpage[afghani60][p.~20].

% \citeypage[afghani60][p.~20]%(1956, p. 20)

\section{References}{\tfx\setupinterlinespace
{\placepublications}}

\stoptext
=

==test-bib.bbl===
\startpublication[k=afghani60,
  t=book,
  a=Afgh\=an\=i,
  y=1960,
  s=]
\author[]{Sa\high{c}\=id}[]{}{Al-Afgh\=an\=i}
\title{Asw\=aqu \~al-\high{c}Arab f\=i
\~al-J\=ahiliyya\~h wa \~al-Isl\=am}
\pubname{D\=aru \~al-Fikr}
\city{Damascus}
\pubyear{1960}
\stoppublication
=


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] bib module: multiple bibs and alphabetical order

2005-10-02 Thread Idris Samawi Hamid
1. Does t-bib now support multiple bibliographies? For past issues of the 
journal, I had to define a new bib-env file for each article that required a 
bibliography, otherwise the bibliography of, say, article two would include 
the bibliography for article one. Is there a general solution for this?

2. Can t-bib extract the references and place them in alphabetical order, or 
do I have to still organize my bbl files alphabetically by hand (I really hope 
not-)? Automatic alphabetizing bbl file data in the output has been one of my 
major wishes for t-bib.

If the above two are solved I can use a single master bbl file for the entire 
journal instead of multiple files, thus streamlinig much of my workflow.

Best
Idris


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bib module: multiple bibs

2005-10-02 Thread Idris Samawi Hamid
1. Does t-bib now support multiple bibliographies? For past issues of the
journal, I had to define a new bib-env file for each article that required a
bibliography, otherwise the bibliography of, say, article two would include
the bibliography for article one. Is there a general solution for this?

Just to be clear: What I had to do before was make duplicates of the bib 
module: m-bib2.tex, m-bib3.tex,..., m-bibn.tex, where n is the number of 
articles needing bibliographies.

Then, for each m-bibn.tex, I replaced each [pubs] with another name like 
[pubst] (for m-bib2), [pubstt] (for m-bib3), [pubsttf] (for m-bib4), and so 
forth. (I don't know dutch, but I guessed that \definieerlijst[pubs] was the 
key list-governing macro-)

This was the only way I could get multiple bibliographies in one document.

Isn't that just insane?-)

Best
Idris


Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context