Re: [NTG-context] the closing bracket (structuring syntax)

2006-08-15 Thread Steffen Wolfrum

Am 13.08.2006 um 15:29 schrieb Steffen Wolfrum:

 And what would be the opposite?

 For example \startquote ... \stopquote
 to something like {MyQuote ... }

 Steffen


\def\MyQuote#1{\startquote#1\stopquote}

\MyQuote{something to be quoted}


... should work OK, right?


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


[NTG-context] Context 2006.08.08 odd behaviour

2006-08-15 Thread Alexander Lazic
Hi,

today i have try to run the *new* one, i get the following error, please
can anybody help ;-)

---
ruby /home/al/texmf/scripts/context/ruby/texmfstart.rb --verbose texexec 
layout.text
texmfstart version 2.0.0
expanding 'texexec' to 'texexec.rb'
locating 'texexec.rb' in current path '.'
locating 'texexec.rb' in caller path '/home/al/texmf/scripts/context/ruby'
registering 'texexec' as '/home/al/texmf/scripts/context/ruby/texexec.rb'
'texexec.rb' located in caller path
registering 'THREAD' as '/home/al/texmf/scripts/context/ruby'
starting texexec
using 'system' call: ruby /home/al/texmf/scripts/context/ruby/texexec.rb  
layout.text
TeXExec | processing document 'layout.text'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file layout.top
TeXExec | using randomseed 853
TeXExec | tex engine: pdfetex
TeXExec | tex format: cont-en
TeXExec | progname: context
This is pdfeTeX, Version 3.141592-1.21a-2.2 (Web2C 7.5.4)
 (/home/al/texmf/web2c/natural.tcx)
entering extended mode
(./layout.text

ConTeXt  ver: 2005.01.31  fmt: 2006.8.3  int: english  mes: english

language: language en is active
protectionstate 0
system  : cont-new loaded
(/home/al/texmf/tex/context/base/cont-new.tex
! Undefined control sequence.
l.14 \newcontextversion
   {2006.08.08 21:51}
? 
---

Here the code:

---egrep -v % layout.text
\setuppapersize [A4][A4]
\setupcolors[state=start]
\setuppagenumbering[location={footer,right}]
\starttext
test
\stoptext
---

ruby -v
ruby 1.8.4 (2005-12-24) [i486-linux]
uname -a
---
Linux home1 2.6.17-1-686 #1 SMP Sat Jul 29 15:32:47 UTC 2006 i686
GNU/Linux
---

It's a debian unstable.

Thanks for help  regards

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


Re: [NTG-context] some questions

2006-08-15 Thread wwl
  Should'nt \arg{bla} be \type{{bla}}?
 
 I can't give you a satisfying answer for this, but
 
 Should'nt \expandafter\type\expandafter{\arg{bla}} be
 \type{{bla}}?
 
 gives
 
 Should?nt \dohandlemathtokenarg{bla} be {bla}?
 
 (so I guess the answer is probably no)

\arg is one of the verbatim macros, like \type, \typ, \tex
and is describte in 'cont-enp.pdf' on page 101.

The description looks a bit incomplete: (the command encloses the 
text with .)
(Can someone, with the right to do that, add this to the list of 
typos, please?)

The definition of \arg is in 'core-ver.tex' and copying this 
in a separate file works as expected:

\starttext
\unprotect
\def\setgroupedtype
  {\let\currenttypingclass\??ty
   \initializetype
   \catcode`\{=\@@begingroup
   \catcode`\}=\@@endgroup}

\unexpanded\def\arg{%
\groupedcommand{\setgroupedtype\leftargument}{\rightargument}}
\protect
\arg{bla}
\stoptext

So there must something be damaged.

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


Re: [NTG-context] some questions

2006-08-15 Thread Taco Hoekwater

Hi,

[EMAIL PROTECTED] wrote:
Should'nt \arg{bla} be \type{{bla}}?

I can't give you a satisfying answer for this, but

Should'nt \expandafter\type\expandafter{\arg{bla}} be
\type{{bla}}?

gives

Should?nt \dohandlemathtokenarg{bla} be {bla}?

(so I guess the answer is probably no)
 
 
 \arg is one of the verbatim macros, like \type, \typ, \tex
 and is describte in 'cont-enp.pdf' on page 101.

Well, \arg is also defined in math-tex.tex:

   \definemathcommand [arg] [nolop] {\mfunction{arg}}

So there is a double definition.

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


[NTG-context] ToC chapter/appendix labelling

2006-08-15 Thread Stuart Jansen
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] Captions in the margin

2006-08-15 Thread Alex Lubberts
Hello,

After reading the details.pdf manual I succeeded in placing figures right
where I want them :)
However... I would like the caption to be placed in the margin (lining
either with the top or the bottom of the figure). I didn't find a way to
do this. Does anybody know how to achieve this?

Thanks,
Alex Lubberts

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


Re: [NTG-context] Snapping sectionhead

2006-08-15 Thread Hans Hagen
[EMAIL PROTECTED] wrote:
 Hallo!

   
 While I was reading 'In the Details' to learn more about grid-
 typesetting, I could not comprehend the examples with 
 grid={broad,...}. 

 Then in section 1.8 I read that grid=line should be a shortcut for
 grid={broad,high,depth}.
   
 Section 1.8 deals \exclusively with \externalfigure. Apparently
 the grid option for sectioning commands is handled differently.
 

 In my version of 'In the Details', dated 2002 chapter 1 deals with 
 'Snapping section heads' and section 1.8 is titled 'Snapping around 
 (broad,high,depth).' 
 Is there a newer variant of that manual?
   
the grid options as discussed with sections, are the ones that are taken care 
of by the \snaptogrid macro; the grid key in externalfigure is not related to 
that, it relates to scaling, as in

\setuplayout[grid=yes] \showgrid 
\setupcaptions[style=smallbodyfont,location=grid,inbetween=]

\defineexternalfigure[enkel] [width=10cm,frame=on,grid=depth]
\defineexternalfigure[dubbel][width=10cm,frame=on,grid=depth]

\starttext

test \placefigure{} 
{\externalfigure[t:/sources/cow.pdf][frame=on,grid=yes]} test \page
test \placefigure{\input 
zapf\relax}{\externalfigure[t:/sources/cow.pdf][frame=on,grid=yes]} test \page

test \placefigure{} 
{\externalfigure[t:/sources/cow.pdf][enkel]} test \page
test \placefigure{\input 
zapf\relax}{\externalfigure[t:/sources/cow.pdf][enkel]} test \page

\stoptext

i.e. the grid option determins which way a height snaps (or is rounded); 

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] figure directory is sort of searched

2006-08-15 Thread Sanjoy Mahajan
Taco sez:
 Sanjoy sez:
  The figure searching code gets confused if a file of the same
  basename (but in a different directory) has already been loaded.

 I remember I ran into that as well (more than a year ago) and I
 ended up renaming my figures to figure1-1.pdf etc. It actually
 turned out to be easier for me, because that way I could use the
 figure filename as the reference.

Good idea, thanks.  

I might also integrate the figures (they're all MetaPost) into the
.tex source, what I couldn't do in (e)plain TeX.  I expect I'll have a
few questions after I try that :-) The MetaFun manual already told me
the answer to one of them: how to have common settings and macros
across all the MetaPost figures (\startMPinclusions).

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
 --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Extra vertical space in intertext

2006-08-15 Thread Aditya Mahajan
Hi,
  There is an extra vertical space in the first set of formulas, while 
the vertical spacing in the second set appears to be fine. I can not 
figure out why this should happen. Even if you comment the 
setupformulas line, the first set of formulas seem to allocate more 
space for the intertext.

\setupformulas[align=right,spacebefore=none,spaceafter=none]
% There appears to be extra space, even if I put 
% spacebefore=spaceafter=big
% align = right is for visualization purpose only
\starttext
\startTEXpage
\startformula \startalign
   \NC A \NC B \NR
   \intertext{test}
   \NC C \NC D \NR
\stopalign \stopformula
test outside formula
\startformula \startalign
   \NC A \NC B \NR
   \intertext{test}
   \NC C \NC D \NR
\stopalign \stopformula
\blank[big]
\startformula \startalign
   \NC \int_0^1 \NC B \NR
   \intertext{test}
   \NC \int_0^1 \NC D \NR
\stopalign \stopformula
test outside formula
\startformula \startalign
   \NC \int_0^1 \NC B \NR
   \intertext{test}
   \NC \int_0^1 \NC D \NR
\stopalign \stopformula
\stopTEXpage
\stoptext

And what is happening with the start stop TEX page here. Why is the 
last line cut off!

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


Re: [NTG-context] Context 2006.08.08 odd behaviour

2006-08-15 Thread Alexander Lazic
Hi,

On Die 15.08.2006 10:12, Taco Hoekwater wrote:
Alexander Lazic wrote:
 
 ConTeXt ver: 2005.01.31 fmt: 2006.8.3 int: english mes: english

That is the context format from teTeX, last regenerated on August 3,
and not the new one. Have a look at

   http://wiki.contextgarden.net/Linux_Installation

it should give you some hints on how to actually start using the new
version you downloaded.

Thanks for help and sorry for rush, i have overread the 'Context ver:'
stuff.

regards

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


[NTG-context] Enable hyphenation or how to check it is enabled

2006-08-15 Thread Berend de Boer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi All,

I've a weird problem: it just looks like hyphenation is disabled for
my English documents, at least I don't see hyphenation happening at
all. Do I have to enable it explicitly?

This is some US english text. I've specified:

  \language[us]

at the top of my file.

I'm using the latest ConTeXt, 2006-08-08.


It looks like they get loaded when I generate the format:

language: no patterns en for en (n=1,e=ec,m=ec) (lang-en.pat,ukhyph.tex
)
language: hyphenations en for en loaded (n=1,e=ec,m=ec)
(/usr/TeX/texmf/tex/context/patterns/lang-us.hyp))
language: patterns en for en loaded (n=1,e=*,m=*)
language: hyphenations en for en loaded (n=1,e=*,m=*)
language: no patterns uk for uk (n=2,e=ec,m=ec) (lang-uk.pat,ukhyph.tex
)
language: hyphenations uk for uk loaded (n=2,e=ec,m=ec)


I've tried to specify

  \setupalign
[hyphenated]

but that does not seem to help.

Any test I can run to see that hyphenation is actually enabled?

- -- 
All the best,

Berend de Boer
(PGP public key: http://www.pobox.com/~berend/berend-public-key.txt)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 http://mailcrypt.sourceforge.net/

iD8DBQFE4ieUIyuuaiRyjTYRAkFwAJ0QYn4VnHW2T1H0QxHVAcCHXWJE4QCcCz3e
qVB8X/MCve7ZeKnQY4zjh24=
=vrqm
-END PGP SIGNATURE-

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


Re: [NTG-context] compiling project files

2006-08-15 Thread Boris Tschirschwitz
Let's say I have the following project structureproject.tex env.tex product1.tex component1.tex component2.tex product2.texHere, really, the whole project generates a single pdf at the end.
Now, when working on component1, I would run $ texmfstart texexec project.texShould I rather run texexec on product1.tex or component1.tex? Or maybe use texmfstart in some other way?I am wondering about this because
1. Perter says  Only components and products should be compiled.2. When compiling projects that include MPgraphics, I have to run that texmfstart line above twice to see changes to MPgraphics in my pdf. I thought that one idea behind
 texexec is that it takes care of all incantations, like make in programming.Cheers,Boris.On 8/14/06, Peter Münster
 [EMAIL PROTECTED] wrote:On Sat, 12 Aug 2006, Derek Schmidt wrote:
 The .tuo file for the _product_ file shows the files being loaded. Compiling the _project_ file yields no .tuo. My product file does indeed look like what you wrote.Hello Derek,it's not intended to compile the project file. It should contain only
common setups for all products.Only components and products should be compiled.Cheers, Peter--http://pmrb.free.fr/contact/___
ntg-context mailing listntg-context@ntg.nlhttp://www.ntg.nl/mailman/listinfo/ntg-context

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


Re: [NTG-context] Enable hyphenation or how to check it is enabled

2006-08-15 Thread Thomas A. Schmitz
Easiest test would be to try some long and weird words with

\hyphenatedword{transformational}

in your source. If you get proper hyphens there, the problem must lie  
elsewhere.

Best

Thomas

On Aug 15, 2006, at 9:59 PM, Berend de Boer wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hi All,

 I've a weird problem: it just looks like hyphenation is disabled for
 my English documents, at least I don't see hyphenation happening at
 all. Do I have to enable it explicitly?

 This is some US english text. I've specified:

   \language[us]

 at the top of my file.

 I'm using the latest ConTeXt, 2006-08-08.


 It looks like they get loaded when I generate the format:

 language: no patterns en for en (n=1,e=ec,m=ec) (lang- 
 en.pat,ukhyph.tex
 )
 language: hyphenations en for en loaded (n=1,e=ec,m=ec)
 (/usr/TeX/texmf/tex/context/patterns/lang-us.hyp))
 language: patterns en for en loaded (n=1,e=*,m=*)
 language: hyphenations en for en loaded (n=1,e=*,m=*)
 language: no patterns uk for uk (n=2,e=ec,m=ec) (lang- 
 uk.pat,ukhyph.tex
 )
 language: hyphenations uk for uk loaded (n=2,e=ec,m=ec)


 I've tried to specify

   \setupalign
 [hyphenated]

 but that does not seem to help.

 Any test I can run to see that hyphenation is actually enabled?

 - --
 All the best,

 Berend de Boer
 (PGP public key: http://www.pobox.com/~berend/berend-public-key.txt)
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.2.3 (GNU/Linux)
 Comment: Processed by Mailcrypt 3.5.8 http:// 
 mailcrypt.sourceforge.net/

 iD8DBQFE4ieUIyuuaiRyjTYRAkFwAJ0QYn4VnHW2T1H0QxHVAcCHXWJE4QCcCz3e
 qVB8X/MCve7ZeKnQY4zjh24=
 =vrqm
 -END PGP SIGNATURE-

 ___
 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


Re: [NTG-context] compiling project files

2006-08-15 Thread Aditya Mahajan
On Tue, 15 Aug 2006, Boris Tschirschwitz wrote:

 Let's say I have the following project structure

 project.tex
 env.tex
 product1.tex
  component1.tex
  component2.tex
 product2.tex

 Here, really, the whole project generates a single pdf at the end.

 Now, when working on component1, I would run
 $ texmfstart texexec project.tex

 Should I rather run texexec on product1.tex or component1.tex? Or maybe use
 texmfstart in some other way?

You should run texexec on prouct or component (not on the project)

 I am wondering about this because
 1. Perter says
Only components and products should be compiled.

Suppose you are typesetting a collection of books. Then project.tex 
should have common setup for all the books. product1.tex can be first 
book, product2.tex can be second book etc. component1.tex can be first 
chapter of the first book, etc. So, you are not supposed to compile 
the complete project.


 2. When compiling projects that include MPgraphics, I have to run that
 texmfstart line
   above twice to see changes to MPgraphics in my pdf. I thought 
that one
 idea behind
   texexec is that it takes care of all incantations, like make in
 programming.



This should not happen.

Aditya


 On 8/14/06, Peter Münster [EMAIL PROTECTED] wrote:
 
 On Sat, 12 Aug 2006, Derek Schmidt wrote:
 
  The .tuo file for the _product_ file shows the files being loaded.
  Compiling the _project_ file yields no .tuo. My product file does
  indeed look like what you wrote.
 
 Hello Derek,
 it's not intended to compile the project file. It should contain only
 common setups for all products.
 Only components and products should be compiled.
 Cheers, Peter
 
 --
 http://pmrb.free.fr/contact/
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 


-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Different layout for the first page

2006-08-15 Thread Aditya Mahajan
Hi,

  I want to create a document that has the following requirements.

Top margin (1st page)   1.0in
Top margin (rest)   .75in

What is the correct way to do this?

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


Re: [NTG-context] Different layout for the first page

2006-08-15 Thread Taco Hoekwater
Aditya Mahajan wrote:
 Hi,
 
   I want to create a document that has the following requirements.
 
 Top margin (1st page) 1.0in
 Top margin (rest) .75in
 
 What is the correct way to do this?

Check out \definemakeup (page-mak.tex). It is the command
used to define the \startstandardmakeup ... \stopstandardmakeup
environment.


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


Re: [NTG-context] Different layout for the first page

2006-08-15 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,

   I want to create a document that has the following requirements.

 Top margin (1st page) 1.0in
 Top margin (rest) .75in

 What is the correct way to do this?
   
\definelayout[firstpage][width=10cm,height=10cm]

\showframe

\starttext

\setuplayout[firstpage] test \page \setuplayout test

\stoptext




-
  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] Extra vertical space in intertext

2006-08-15 Thread Hans Hagen
Aditya Mahajan wrote:
 And what is happening with the start stop TEX page here. Why is the 
 last line cut off!
   
looks ok here 

it's a \framed thing, so you may have side effects due to math axis or so 

(maybe i should make it a stream) 

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] Extra vertical space in intertext

2006-08-15 Thread Taco Hoekwater

Hi,

Aditya Mahajan wrote:
 Hi,
   There is an extra vertical space in the first set of formulas, while 
 the vertical spacing in the second set appears to be fine. I can not 
 figure out why this should happen. Even if you comment the 

That is related to \openup. Adding \def\displayopenupvalue{0pt}
makes (nearly) all whitespace go away.

 
 And what is happening with the start stop TEX page here. Why is the 
 last line cut off!

Because of some vertical whitespace trickery context does, it
needs something to set off against.

   \stopalign \stopformula
   ~
   \stopTEXpage

That is a bit silly, but the fastest thing I can come up with.


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


Re: [NTG-context] Different layout for the first page

2006-08-15 Thread Aditya Mahajan
On Tue, 15 Aug 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 Hi,

   I want to create a document that has the following requirements.

 Top margin (1st page)1.0in
 Top margin (rest).75in

 What is the correct way to do this?

 \definelayout[firstpage][width=10cm,height=10cm]

 \showframe

 \starttext

 \setuplayout[firstpage] test \page \setuplayout test

 \stoptext

Thanks. Works perfectly.

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


Re: [NTG-context] Extra vertical space in intertext

2006-08-15 Thread Aditya Mahajan
On Tue, 15 Aug 2006, Taco Hoekwater wrote:


 Hi,

 Aditya Mahajan wrote:
 Hi,
   There is an extra vertical space in the first set of formulas, while
 the vertical spacing in the second set appears to be fine. I can not
 figure out why this should happen. Even if you comment the

 That is related to \openup. Adding \def\displayopenupvalue{0pt}
 makes (nearly) all whitespace go away.

Should this be included in the definition of \dointertext (or 
\forgetall) or would that be too drastic?

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


[NTG-context] How to make startalignment middle not change the linewidth

2006-08-15 Thread Aditya Mahajan
Hi,
  It seems that startalignment[middle] does not like long lines. 
Consider the following example (not strictly minimal, but I can not 
get such a marginal case with default setup).

\setuppapersize[letter][letter]

\setuplayout[
  width=middle,
 height=middle,
   location=middle,
   topspace=.75in,
bottomspace=0.75in,
  backspace=0.75in,
   cutspace=0.75in,
 leftmargin=0in,
rightmargin=0in,
 leftmargindistance=0in,
rightmargindistance=0in,
 header=0in,
 footer=0in,
  headerdistace=0in,
 footerdistance=0in,
   ]

\definetypeface[ieee] [rm]  [serif] [times] [texansi]
\definetypeface[ieee] [mm]  [maths] [modern][texansi]

\setupbodyfont[ieee,10pt]

\definefont[TitleFont]   [Regular at 24pt]

\setvariables[paper]
   [ title={Optimal Performance of Feedback Control Systems with
Limited Communication over Noisy Channels}]

\starttext
{\TitleFont\setupinterlinespace
\getvariable{paper}{title}
\blank[1.0em]\endgraf}

\startalignment[middle]
 {\TitleFont\setupinterlinespace
 \getvariable{paper}{title}
 \blank[1.0em]\endgraf}
\stopalignment
\stoptext

How can I get the same linebreaking as the first case, but with each 
line middle aligned?

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


[NTG-context] table questions

2006-08-15 Thread wwl
Hallo!

I have studied the table examples at contextgarden and have some 
questions.
--
\|10 as a relacement for \VL gives me thicker vert. lines in that 
position only. How can I define a thicker vert. Line for the whole 
column? My attempts in \starttable[..\|10..] doesn't work.
--
Why is there so little space between the two rows of the table below? 

\starttable[|l|p(.7\textwidth)|]
\HL
\NC bla1 \VL Eins \type{zwei} drei. Eins zwei drei. Eins zwei drei 
\type{vier}
oder \type{sechs}l. Das ist der Leerraum zwischen den Spalten 
\type{n}. \FR
\NC bla2 \VL Eins, zwei \type{drei} \LR
\HL
\stoptable
--
The two tables in the example below are differing and show, that 
\SetTableToWidth{0pt} doesn't reset the situation.

What is the defaultvalue/resetvalue for \SetTableToWidth{}?

\starttable[|l|l|]
\VL 11 \VL 12  \VL\FR
\VL 21 \VL 22  \VL\LR
\stoptable

\SetTableToWidth{\textwidth} 
% some other table stuff
\SetTableToWidth{0pt} 

\starttable[|l|l|]
\VL 11 \VL 12  \VL\FR
\VL 21 \VL 22  \VL\LR
\stoptable
--
Look at the example below:

Without any \SetTableToWidth{} this table has neither hor. Lines nor 
green color. The gray is there. Why?

Variant 1: 
This is an combination of two wiki-examples. The first column of the 
table is about \textwidth (a little bit smaller). Why?
Between the gray and the second hor. Line there is a small white 
area. Same between green and fourth hor. Line. Hmm!

Variant 2:
Hor. Line and green area are .2\textwidth as expected. But gray area 
is about .6\textwidth and so is the column as a whole. Why that?

Variant 3:
All ok now. Even the spacing between coloured areas and lines is ok.

\setupcolors[state=start]
\starttext

%\SetTableToWidth{.2\textwidth} % Variant 2
\SetTableToWidth{\textwidth}% Variant 1
\starttable[|lp(.45\textwidth)|lp(.45\textwidth)|]
\HL
\BL[1]\SR
%\VL Command\VL Meaning \VL\SR % Variant 3
\NC Command \NC Meaning \SR
\HL
\NC \tex{NC}\NC next column \FR
\NC \tex{NR}\NC next row\LR
\HL
\CL[green]\SR
\NC \tex{AR}\NC automatic row   \SR
\HL
\stoptable
\stoptext
--

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


Re: [NTG-context] How to make startalignment middle not change the linewidth

2006-08-15 Thread Aditya Mahajan
On Tue, 15 Aug 2006, Aditya Mahajan wrote:

 Hi,
  It seems that startalignment[middle] does not like long lines.
 Consider the following example (not strictly minimal, but I can not
 get such a marginal case with default setup).

 \setuppapersize[letter][letter]

 \setuplayout[
  width=middle,
 height=middle,
   location=middle,
   topspace=.75in,
bottomspace=0.75in,
  backspace=0.75in,
   cutspace=0.75in,
 leftmargin=0in,
rightmargin=0in,
 leftmargindistance=0in,
rightmargindistance=0in,
 header=0in,
 footer=0in,
  headerdistace=0in,
 footerdistance=0in,
   ]

 \definetypeface[ieee] [rm]  [serif] [times] [texansi]
 \definetypeface[ieee] [mm]  [maths] [modern][texansi]

Duh, I need to learn how to do font setup correctly and without typos. 
Even with the correction,

\definetypeface[ieee] [rm]  [serif] [times] [default] [texnansi]
\definetypeface[ieee] [mm]  [maths] [modern][default] [texnansi]

the linebreaking is the same as before.

 \setupbodyfont[ieee,10pt]

 \definefont[TitleFont]   [Regular at 24pt]

 \setvariables[paper]
   [ title={Optimal Performance of Feedback Control Systems with
Limited Communication over Noisy Channels}]

 \starttext
 {\TitleFont\setupinterlinespace
 \getvariable{paper}{title}
 \blank[1.0em]\endgraf}

 \startalignment[middle]
 {\TitleFont\setupinterlinespace
 \getvariable{paper}{title}
 \blank[1.0em]\endgraf}
 \stopalignment
 \stoptext

 How can I get the same linebreaking as the first case, but with each
 line middle aligned?

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




-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] nonbreakablespace

2006-08-15 Thread Aditya Mahajan
Hi,
  Suddenly nonbreakablespace stopped working for me :-( It works in the 
garden so I guess that something is wrong in my setup. Can someone 
test whether this compiles fine at their end?

\starttext
A~B
\stoptext

For me, this makes context hang!!

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


Re: [NTG-context] Enable hyphenation or how to check it is enabled

2006-08-15 Thread Berend de Boer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 Thomas == Thomas A Schmitz [EMAIL PROTECTED] writes:

Thomas Easiest test would be to try some long and weird words
Thomas with \hyphenatedword{transformational}

Thomas in your source. If you get proper hyphens there, the
Thomas problem must lie elsewhere.

I tried this:

\starttext

\hyphenatedword{transformational} \hyphenatedword{transformational}
\hyphenatedword{transformational} \hyphenatedword{transformational}
\hyphenatedword{transformational} \hyphenatedword{transformational}
\hyphenatedword{transformational} \hyphenatedword{transformational}

\stoptext


Overfull message, but no hyphens.

- -- 
All the best,

Berend de Boer
(PGP public key: http://www.pobox.com/~berend/berend-public-key.txt)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 http://mailcrypt.sourceforge.net/

iD8DBQFE4nx4IyuuaiRyjTYRAhfjAKDpVtVu5WYGc4RyUOyMxXhriTEbvACeJTXV
rMsVFrwylEU9s9ztVmQ+Lmc=
=9KLZ
-END PGP SIGNATURE-

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


Re: [NTG-context] nonbreakablespace

2006-08-15 Thread Sanjoy Mahajan
 \starttext
 A~B
 \stoptext

It works fine here with vanilla ConTeXt ver 2006.08.08 21:51, texexec
6.2.0, tetex 3.0 on Ubuntu (generating pdf).

 For me, this makes context hang!!

Where does it hang?  Running tex or pdftex, or in texexec?

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
 --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] nonbreakablespace

2006-08-15 Thread Aditya Mahajan
On Wed, 16 Aug 2006, Sanjoy Mahajan wrote:

 \starttext
 A~B
 \stoptext

 It works fine here with vanilla ConTeXt ver 2006.08.08 21:51, texexec
 6.2.0, tetex 3.0 on Ubuntu (generating pdf).

 For me, this makes context hang!!

 Where does it hang?  Running tex or pdftex, or in texexec?

Running texexec. Everything else is running fine, so I can not figure 
out why this is happening.

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