Re: [NTG-context] ASCII art inclusion

2005-10-09 Thread Mojca Miklavec
andrea valle wrote:
 Hi to all,
 I'm including in a set of slides some ASCII ART.
 Actually I'm using start-stoptyping.
 E.g.
 \starttyping

 || knight ||



 |
 |
 + \
 \\.G_.*=.
  `(H'/.\|
   .' (_--.
_=/d   ,^\
   ~~ \)-'   '
  / |
 '  '   a:f
 \stoptyping

 Works fine, but obviously text remains text (-- large figures are
 splitted among different  pages).
 I'd like to treat the ascii text lines as a unique block, just like a
 figure. What's the best way?

Would \framed[frame=off,...]{... your figure ...} or \vbox{... your
figure ...} solve the problem?

(\startyping ... \stoptyping inside \framed caused some problems here,
but \vbox worked OK.)

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


Re[2]: [NTG-context] Smart \in

2005-10-09 Thread Giuseppe Bilotta
Saturday, October 8, 2005 Hans Hagen wrote:

 Giuseppe Bilotta wrote:

Hello all,

I have a document which is split into separate \parts. I
would like the \in command ( friends) to automatically add
the part reference when cross-referencing across parts.

Example:



\part[part:one]{Part one}

\chapter[ch:one]{Chapter one}

\chapter[ch:two]{Chapter two}
As seen in \in chapter[ch:one]

\part[part:two]{Part two}

\chater[ch:2-1]{Chapter two}

As seen in \in chapter[ch:one]


The first \in would say chapter~1, the second chapter~1,
part~1.

  

 \setuphead[part][prefix=part]
 \setuphead[chapter][prefix=ch]

 \setuphead[chapter]prefix=+] % kind of automatic

 (actually, prefixes are blabla::whatever deep down in context)


Looks like I didn't make myself clear. I don't want the
label prefix to be automatic.

I want the reference to automatically add part ... (in the
text) when the current part is different from the part of
the referenced thing.

I see that the example was too verbose to be minimal
enough. Second go:


\starttext
\part{Part one}
\chapter[interest]{Chapter one}
\chapter{Chapter two}
As seen in \in chapter[interest]
\part{Part two}
\chapter{Chapter one of part two}
\chapter{Chapter two of part two}
As seen in \in chapter[interest]
\stoptext


If you compile this example, you'll see that both \in's
print the same output, but the second one is referring to
chapter 2 in part 1, and this is not clear (it seems it's
referring to chapter 1 in the same part), so it should add
, part 1 to make it clear.

-- 
Giuseppe Oblomov Bilotta

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


Re[2]: [NTG-context] Vowels with accent (teTeX - Linux)

2005-10-09 Thread Giuseppe Bilotta
Sunday, October 9, 2005 Jilani Khaldi wrote:

 \mainlanguage[italian]
 \setupbodyfont[12pt]
 \setuppapersize[A4]

\enableregime[il1] % il = iso-latin-1; change it
% based on the encoding you use in your editor

 \starttext
 perché, sarà, così, totò, più
 \stoptext

-- 
Giuseppe Oblomov Bilotta


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


Re: [NTG-context] \showmathcharacters loop

2005-10-09 Thread Radhelorn

Radhelorn wrote:

This simple file sends pdfetex into endless loop:

\starttext
\showmathcharacters
\stoptext

Here is 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.08.31
   cont-en : ver: 2005.08.31  fmt: 2005.10.8  mes: english

\showmathcharacters used to work for some older version of ConTeXt, but 
now it didn't. As far as I remember my personal settings haven't changed.




I've done clean install of beta context 2005.09.14 with all default 
configuration (like wiki teTeX 3.0 Installation doc suggests). Results 
is still the same, but default teTeX 3.0 context (2005.01.31) works fine.



--
Radhelorn [EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] esoteric macro expansion bug in t-bib?

2005-10-09 Thread Idris Samawi Hamid
esoteric macro expansion bug.

Dear Taco,

There is some esoteric macro expansion bug in the bib module (beyond my 
capability to understand). For example, the \Ibar macro works fine outside of 
the a= context. \getcommacommandsize can't seem to figure out that ## stands 
for an alignment preamble. Is there a way to protect the argument of a= ?

Please try the following :

ibar-bib.bbl
\startpublication[k=amini93,
  t=book,
  a=al-Am\={i}n\~i,
  y=1993,
  s=]
\author[]{Mu\.hammad H\=ad\=i}[]{}{Al-Am\=in\=i}
\title{Mu\`allimu \~a\~l-\v S\=i\`ah: a~l-\v Say\h h al-Muf\=id}
%\pubname{}
\city{Beirut}
\pubyear{{1993}}
\stoppublication
===

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

\usemodule[bib]

\def\SHIFT#1{\dimen0=.00#1ex \multiply\dimen0 by\fontdimen1\font
\kern-.0156\dimen0} % compensate for slant/italic in lower accents

\def\USHIFT#1{\dimen0=.00#1ex \multiply\dimen0 by\fontdimen1\font
 \kern.0156\dimen0} % compensate for slant/italic in upper accents

\def\IBAR%
{\leavevmode\vbox{\offinterlineskip\lineskip0.295ex%
\ialign{##\cr\USHIFT{120}\hfill\hbox to .21243em{\leaders\hrule
height .07ex\hfill}\hfill\SHIFT{1}\cr\i\cr}}}

\definecharacter imacron  {\IBAR} % ConTeXt-dependent!

\setupwhitespace[big]

\starttext

\cite[amini93]

M\=irz\=a

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

\stoptext
===

I get the following error

===
systems : begin file ibar-bib at line 20
! Illegal parameter number in definition of \commacommand.
to be read again
   \cr
\IBAR ...lineskip \lineskip 0.295ex\ialign {##\cr
  \USHIFT {120}\hfill \hbox 
...

\dohandleaccent ... #1\string #2\empty \endcsname
  \else \ifcsname 
\accentpre...

\thebibauthors -{al-Am\={i}
n\~i}
\getcommacommandsize [#1]-\edef \commacommand {#1
  }\scratchtoks 
\expandafter...

\dobibauthoryear ...acommandsize [\thebibauthors ]
  [EMAIL PROTECTED] 
\processcommalist 
[EMAIL PROTECTED]
...
===

Please advise-)

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] esoteric macro expansion bug in t-bib?

2005-10-09 Thread Idris Samawi Hamid
You will need to add the following macro to the example file ibar-bib.tex. 
Once the expansion bug is fixed the file will compile.

\def\h#1{{\oalign{\relax#1\crcr\hidewidth\SHIFT{34}%
\vbox to.2ex{\hbox{\char'25}\vss}\hidewidth}}}

Best
Idris

===
===

Dear Taco,

There is some esoteric macro expansion bug in the bib module (beyond my
capability to understand). For example, the \Ibar macro works fine outside of
the a= context. \getcommacommandsize can't seem to figure out that ## stands
for an alignment preamble. Is there a way to protect the argument of a= ?

Please try the following :

ibar-bib.bbl
\startpublication[k=amini93,
  t=book,
  a=al-Am\={i}n\~i,
  y=1993,
  s=]
\author[]{Mu\.hammad H\=ad\=i}[]{}{Al-Am\=in\=i}
\title{Mu\`allimu \~a\~l-\v S\=i\`ah: a~l-\v Say\h h al-Muf\=id}
%\pubname{}
\city{Beirut}
\pubyear{{1993}}
\stoppublication
===

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

\usemodule[bib]

\def\SHIFT#1{\dimen0=.00#1ex \multiply\dimen0 by\fontdimen1\font
\kern-.0156\dimen0} % compensate for slant/italic in lower accents

\def\USHIFT#1{\dimen0=.00#1ex \multiply\dimen0 by\fontdimen1\font
 \kern.0156\dimen0} % compensate for slant/italic in upper accents

\def\IBAR%
{\leavevmode\vbox{\offinterlineskip\lineskip0.295ex%
\ialign{##\cr\USHIFT{120}\hfill\hbox to .21243em{\leaders\hrule
height .07ex\hfill}\hfill\SHIFT{1}\cr\i\cr}}}

\definecharacter imacron  {\IBAR} % ConTeXt-dependent!

\setupwhitespace[big]

\starttext

\cite[amini93]

M\=irz\=a

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

\stoptext
===

I get the following error

===
systems : begin file ibar-bib at line 20
! Illegal parameter number in definition of \commacommand.
to be read again
   \cr
\IBAR ...lineskip \lineskip 0.295ex\ialign {##\cr
  \USHIFT {120}\hfill \hbox
..

\dohandleaccent ... #1\string #2\empty \endcsname
  \else \ifcsname
\accentpre...

\thebibauthors -{al-Am\={i}
n\~i}
\getcommacommandsize [#1]-\edef \commacommand {#1
  }\scratchtoks
\expandafter...

\dobibauthoryear ...acommandsize [\thebibauthors ]
  [EMAIL PROTECTED] 
\processcommalist
[EMAIL PROTECTED]
..
===

Please advise-)

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


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