[NTG-context] Renaming spot colours

2005-03-10 Thread Duncan Hothersall
More questions!
I'm using black plus one spot colour in a document, and I include PDF 
images generated in an external program (CorelDraw) which use the same 
spot colour. In the images the color is called 'PANTONE 294 CV', but I 
can't use that name for my colour in ConTeXT because names can't contain 
numbers or spaces. So in ConTeXt I define
\definecolor[PantoneTwoNineFour][c=1,m=.56,y=0,k=.18]

The end result is a file with two spot colour spaces instead of one. Is 
there a way I can combine them, either by a last-minute renaming, or a 
mapping, or a pre-process, or something? (I tried the brute force method 
of search-and-replace on the PDF file but there must be binary-encoded 
references to the names as well as ASCII ones, because that broke the file.)

Any help as ever greatly appreciated.
Duncan
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Moving to ConTeXt

2005-03-10 Thread Gerben Wierda
 Gerben Wierda wrote:
 I am (again) considering moving to ConTeXt. A few years ago I
 investigated
 the move because I have apositive impression of the quality of the
 ConTeXt
 project and because I find the standard LaTeX layouts ugly. At that time
 I
 decided against it because the first thing I tried (a list within a
 list)
 did not work and because I was under the impression that I would have to
 do alot of layout myself (and I have TeX for that, right?). I am
 thinking
 of using LaTeX and the memoir class. Anyway, I am still tempted.

 So I am investigating again. I would like to know if (and how) I can do
 the following in ConTeXt. I did read the manual before writing this:
 - Project structure for a book, chapters to be in separate files.
 Chapters
 to be processed individually when required, or better: chapter +
 index/toc/appendices, etc. How do you do that? I do not understand the
 manual here entirely and my test from a few years ago failed.

 you can use something

 === thisbook.tex

 \startproject book

\environment mystyle.tex


 \stopproject

 === book.tex

 \startproduct book

 \project thisbook

 \component whatever
 \component onemore

 \stopproduct

 === whatever.tex

 \startcomponent whatever

 \project thisbook



 \stopcomponent

 you can then run product and component files independently

What I do not understand is how these components end up in a directory
hierarchy.

What would be very nice is some sort of downloadable archive with some
sample basic project structures.

Reading the stuff above I still have no idea how to build a directory
hierarchy for my project such that it can do all that the project
management part of ConTeXt promises.

G

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


[NTG-context] Learning ConTeXt, typical hurdle

2005-03-10 Thread Gerben Wierda
Maybe I should start a blog somewhere...

Anyway, I have started my conversion to ConTeXT project.

So, I used the fiee perl script to set up my project. Then I started to
fill things in. Everything is still in one directory (I do not understand
directory searching in ConTeXt yet and I haven't seen a example for a book
project).

So, I have a project file:

===
% output=pdf interface=en
\usemodule[bib]
\startproject project_teoada
\environment env_teoada

%  \showlayout
%  \showgrid
%  \showbodyfontenvironment

\product prd_book
\stopproject
===

A product file:

===
\startproduct prd_book
\project project_teoada

\startfrontmatter
\component c_introduction
\stopfrontmatter
\component c_chapter1
\component c_chapter2
\component c_chapter3
\component c_chapter4
\component c_chapter5
\component c_chapter6
\component c_chapter7
\startbackmatter
\component c_appendixa
\component c_appendixb
\stopbackmatter
\stopproduct
===

I defined a description environment to replace LaTeX's description. In the
environment file:
===
\startenvironment env_teoada
\project project_teoada

\definedescription [description]
[location=hanging, margin=standard, headstyle=bold]
\definestartstop [descriptions] [before=\blank\startpacked,
after=\stoppacked\blank]

\stopenvironment
===

And I put some info in c_introduction.tex. There I used the description
thingy:

===
\startcomponent c_introduction
\product prd_book
\project project_teoada

\starttext
\chapter[h:guide]{Guide}

\startdescriptions
\description{Chapter \in[h:ch1]} Bla bla
\description{Chapter \in[h:ch2]} Bla bla
\stopdescriptions

\stoptext

\stopcomponent
===

Now, this fails. Why? I was completely stumped. I get an error message I
do not understand:

references  : unknown reference [][h:ch2]
! Extra }, or forgotten \endgroup.
\stopdescriptions -\dostopattributes \egroup
  \getvalue {\??be
descriptions\...
argument Bla bla \stopdescriptions
 \@@stopdescription
{description}\stoptext

\dodowithpar ...cription}[]{Chapter \in [h:ch2]}#1
  \@@stopdescription
{descri...
l.14

? x

Now what turns out to solve this? Empty lines before \description and
\stopdescriptions

Though I like ConTeXt if I look at certain design aspects, behaviour that
depends on whitespace before a command frightens me.

G

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


[NTG-context] How do I setup this arrangement?

2005-03-10 Thread Gerben Wierda
I want to use \setuparranging, \setuplayout and \setuppapersize to do the
following:

1. Page size is somewhere between A5 and A4 (large paperback book)

2. In draft mode:
   - Output pages are magnified (1 factor) to a A5 size
   - Two pages on one A4 landscape
   - Ordering simple: (0,1),(2,3),(4,5) (2 shrunk-to-A5 pages on one A4
landscape)

3. In final mode
   - Output pages are centered on an A4 paper with crop marks

I have tried to find information, but the orderings of \setuparranging do
not include this simple ordering.

G

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


[NTG-context] Re: Learning ConTeXt, typical hurdle

2005-03-10 Thread Patrick Gundlach
Hey Gerben,

 Now what turns out to solve this? Empty lines before \description and
 \stopdescriptions

Things that were defined using \definedescription rely on \par as a
delimiter.

 Though I like ConTeXt if I look at certain design aspects, behaviour that
 depends on whitespace before a command frightens me.

Just the way it works :-) Nothing to worry about.

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Line break after unit or \cite command

2005-03-10 Thread Michael Fuchs
Hi!

I have some problems using units or cite commands in combination
with line breaks.

Using:

... energies up to 3 \EVolt were measured 

will produce no whitespace between eV and were

... energies up to 3 eVwere measured .


In order to get the space correct between the unit and 
the following word I inserted a ~ to ensure the space.
But this will not force the line break between the unit
and the following word when it is necessary. In that case
hypphenation will be used after the first syllable.

I encountered the same effect using the \cite command to 
reference bib-items but not to reference tables or pictures
with the \in command.

How can I create a space after the unit and have correct
line breaking at the same time?

Thanks

Michael

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


Re: [NTG-context] Line break after unit or \cite command

2005-03-10 Thread Adam Lindsay
Michael Fuchs said this at Thu, 10 Mar 2005 16:11:10 +0100:

How can I create a space after the unit and have correct
line breaking at the same time?

Hallo, Michael.

This is a standard TeX thing. Follow the macro with \ .
(backslash-space). So:

... energies up to 3 \EVolt\ were measured 

The TeXBook (look in your local library) gives a pretty lucid description
of how this works...
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


AW: [NTG-context] Line break after unit or \cite command

2005-03-10 Thread Michael Fuchs
Hi Adam!

Thank you for your quick answer. But somehow the combination 
of backslash and space \  doesn't work for me at the moment.
I already tried that before with no effect and tried again
after your mail. I also tried \cMeter to check if it is 
dependent on the unit itself. Maybe it is helpfull to show you
the full sentence I use:

Im Energiebereich bis ~\EVolt\ wurden die Ergebnisse der 
Kollaboration bestätigt.

ConTeXt breaks wurden in wur-den.

Michael

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag von Adam Lindsay
 Gesendet: Donnerstag, 10. März 2005 16:17
 An: mailing list for ConTeXt users
 Betreff: Re: [NTG-context] Line break after unit or \cite command
 
 Michael Fuchs said this at Thu, 10 Mar 2005 16:11:10 +0100:
 
 How can I create a space after the unit and have correct
 line breaking at the same time?
 
 Hallo, Michael.
 
 This is a standard TeX thing. Follow the macro with \ .
 (backslash-space). So:
 
   ... energies up to 3 \EVolt\ were measured 
 
 The TeXBook (look in your local library) gives a pretty lucid 
 description
 of how this works...
 -- 
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
  Lancaster University, InfoLab21+44(0)1524/510.514
  Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 
 ___
 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] Re: Learning ConTeXt, typical hurdle

2005-03-10 Thread Gerben Wierda
 Hey Gerben,

 Now what turns out to solve this? Empty lines before \description and
 \stopdescriptions

 Things that were defined using \definedescription rely on \par as a
 delimiter.

 Though I like ConTeXt if I look at certain design aspects, behaviour
 that
 depends on whitespace before a command frightens me.

 Just the way it works :-) Nothing to worry about.

What this introduces is that the working of the ascii file depends on its
layout. I can understand that an empty line does a \par (it is convenient
after all) but I would see that kind of behaviour kept to a minimum. That
is, now I have this 'invisible' element that is needed to close my
structure. It is something quite unexpected for me in a TeX workflow.
Different layout because of a missing empty line, fine. But an error
message and a halt really surprises me. Another part of a learning curve
which if you want adoption you should try to avoid. But maybe it is
impossible to make ConTeXt more 'forgiving'.

The alternative is \startdescription\stopdescription which is logically
nicer, but adds inconvenience to the typing/editing

IMO LaTeX here does a better user-interface job (not just because I happen
to know LaTeX). Withing the description environment \item starts a new
item and the item ends with the start of another item or the end of the
environment. Completely independent of the layout of the ascii file.

It would IMO be a lot friendlier if my \stopdescriptions and \description
commands would take care of this and I could do things like:

\startdescriptions
\description{Foo} Bar bar bar
\description{Foo} Bar bar bar
\description{Foo} Bar bar bar
\stopdescriptions

without triggering an error.

G

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


[NTG-context] Re: Learning ConTeXt, typical hurdle

2005-03-10 Thread Patrick Gundlach
Hello Gerben,


[...]

 Things that were defined using \definedescription rely on \par as a
 delimiter.


 What this introduces is that the working of the ascii file depends on its
 layout. 

I completely agree with you here. This description - \par thing has
been on the mailinglist a couple times. But: that is TeX (you know that,
but I wanted to point this out again). TeX is really sensitive to
source layout. LaTeX is doing a good job to remove a lot of
dependencies, but does not do a perfect job. In some places, ConTeXt
is a bit worse. But you will come across this only on some older
definitions like \definedescription. 


Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Re: Line break after unit or \cite command

2005-03-10 Thread Patrick Gundlach
Hello Michael,


[...]

 Im Energiebereich bis ~\EVolt\ wurden die Ergebnisse der 
 Kollaboration bestätigt.

 ConTeXt breaks wurden in wur-den.

But then TeX thinks that there is feasible breakpoint between EVolt
and wurden. I'd write this 3\,\EVolt\ wurden. 

Patrick
-- 
ConTeXt wiki: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


AW: [NTG-context] Re: Line break after unit or \cite command

2005-03-10 Thread Michael Fuchs
Hi Patrick!

I want ConTeXt to produce the line break after the \EVolt 
command. The unit and following word together are extending 
the textwidth. Put TeX doesn't do the linebreak after the 
unit. Even using this \  macro doesn't have an effect on 
this behaviour!

Michael


 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] Im Auftrag von Patrick Gundlach
 Gesendet: Donnerstag, 10. März 2005 18:10
 An: ntg-context@ntg.nl
 Betreff: [NTG-context] Re: Line break after unit or \cite command
 
 Hello Michael,
 
 
 [...]
 
  Im Energiebereich bis ~\EVolt\ wurden die Ergebnisse der 
  Kollaboration bestätigt.
 
  ConTeXt breaks wurden in wur-den.
 
 But then TeX thinks that there is feasible breakpoint between EVolt
 and wurden. I'd write this 3\,\EVolt\ wurden. 
 
 Patrick
 -- 
 ConTeXt wiki: http://contextgarden.net
 ___
 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] lettrine.sty, but not LaTeX

2005-03-10 Thread Gerben Wierda
I tried this and the drop.tex example from Taco with
texexec --pdf drop.tex
but this ends in disaster:
system  : macros of module lettri loaded
(./t-lettri.tex
! Illegal parameter number in definition of \LettrineFontEPS.
to be read again
   1
l.99 \def\LettrineFontEPS{#1
}{%
? x
No pages of output.
This is the latest ConTeXt beta. What am I doing wrong?
G
On 3 Mar 2005, at 08:09, Hans Hagen wrote:
Ciro A. Soto wrote:
Another question, this one is for Hans:
I tried your file from feb 27:
supp-fu3.tex.
I typed texexec --pdf supp-fu3.tex
and got: Undefined control sequence.
\doDroppedCaps ...arindent \fi \keeplinestogether
 {#4}\setbox 0\hbox {#1{#6}...
l.190 \NiceDroppedCaps  {\red}{Serif}{0pt}{3}{W}
 \input tufte \endgraf
 Where could be the problem? I see the definition of
doDroppedCaps in the file, but 
i isolated some code and keeplinetogether is part of that; you can try 
the attached file (with your own samples; syntax slightly changed)

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
-
supp-fu3.zip___
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] What happens here?

2005-03-10 Thread Gerben Wierda
I am running a file and one line has a really ugly large overfull box.  
The run says:

chapter : - Foo ``Foo Bar Bar''?
Overfull \hbox (13.79181pt too wide) in paragraph at lines 22--27
\*12ptrmtf* present some views on de-vel-op-ments, which --- strange  
enough,
[1.1{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ 
original-empty
.map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ 
original-base
.map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec- 
public-lm.
map}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ec- 
base.map}{/
usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/original- 
ams-base.ma
p}{/usr/local/teTeX/share/texmf.local/fonts/map/pdftex/context/ 
original-public-
lm.map}]
(Never mind texmf.local, I have installed the latest beta ConTeXt there)
G
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] what do these values mean?

2005-03-10 Thread Paul Tremblay
I've figure out a lot of the values used in \setuplayout, but I can't
figure out these:

horoffset
veroffset
nx
ny
dx
dy

Thanks

Paul


-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

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


AW: AW: [NTG-context] Re: Line break after unit or \cite command

2005-03-10 Thread Michael Fuchs
Hi Peter!

I tried to make the XXX a little bit longer.
But unluckily I still don't have success with that. 
TeX only wants to insert the line break after the first
possible position after wur in the word wurden. 
If I make the XXX long enough I even can push 

~eV~wur-

out of the page limits.

Michael


 
  I want ConTeXt to produce the line break after the \EVolt 
  command. The unit and following word together are extending 
  the textwidth. Put TeX doesn't do the linebreak after the 
  unit. Even using this \  macro doesn't have an effect on 
  this behaviour!
   
Im Energiebereich bis ~\EVolt\ wurden die Ergebnisse der 
Kollaboration bestätigt.
   
ConTeXt breaks wurden in wur-den.
 
 Hi Michael,
 your  must be just a little bit longer:
 
 \def\EVolt{\,eV}
 \starttext
 \de
 Im Energiebereich bis
 33\EVolt\ wurden die
 Ergebnisse der Kollaboration...
 \stoptext
 
 Cheers, Peter
 

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


Re: [NTG-context] fundamental problem with headings

2005-03-10 Thread Steffen Wolfrum
 Steffen Wolfrum wrote:
  Hi,
 
  Each kind of emphasizing - like \it \bf \cap \sc etc. -
   lets the respective phrase fall back to the documents
   bodyfont (see example below).
 
  How can I avoid this bug?
 not a bug, this is the expected behaviour of \definefont.
  Do I use wrong code?
 Yes. \definefont defines a single font (hence it's name).
 What you actually need is a full-blown bodyfont switch:
\def\SectionStyle{%
  \switchtobodyfont[rm,20pt]
  \setupinterlinespace[line=30pt]
}
 Greetings, Taco

OK, so my example changes to
\starttext
\def\Textit{\groupedcommand\it\/}
% \definefont[SectionFont][SerifBold at 20pt]
% \def\SectionStyle{\SectionFont\setupinterlinespace[line=30pt]}
 \def\SectionStyle{%
   \switchtobodyfont[rm,20pt]
   \setupinterlinespace[line=30pt]
 }
\setuphead[section]
[alternative=paragraph,style=\SectionStyle]
text
\section{heading \Textit{italic} heading}
text
\stoptext

But if the heading should be set in general in a bold face what do I 
use instead of \rm so that italic parts of he heading will be typeset 
in bold-italic (and \sc parts to bold-smallcaps)?
I guess something (next to serif, sans, mono, ...) like serifbold 
(\brm?) should be defined in my typescript?

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


[NTG-context] cutspace and backspace

2005-03-10 Thread Paul Tremblay
What does cutspace actually do? 

I have the following layout:



\definelayout[chapThree][
 cutspace=20mm, % the space on the right hand side of the page
 leftmargin=35mm, % the space for margin notes
 backspace=50mm,  % the space in the left hand side of the page 
 rightmargin=25mm, % the space for right margin notes
 width=fit,
]

I thought that cutspace would create a non-writeable area on the right
hand side of a page. But the above layout uses the backspace value of
50mm and seems to ignore the cutspace value.

It also seems that I was wrong about the fucntion of backspace.
Backspace is actually the area from the edge of the page to the body
text. So it equals the the margin area plus the edge of the page.

Thanks

Paul

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

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


Re: [NTG-context] fundamental problem with headings

2005-03-10 Thread Adam Lindsay
Steffen Wolfrum said this at Thu, 10 Mar 2005 23:11:41 +0100:

But if the heading should be set in general in a bold face what do I 
use instead of \rm so that italic parts of he heading will be typeset 
in bold-italic (and \sc parts to bold-smallcaps)?
I guess something (next to serif, sans, mono, ...) like serifbold 
(\brm?) should be defined in my typescript?

I'm a bit confused why you're not using \em in this situation, as it
adapts to both bold and roman contexts. If you dislike that it defaults
to slanted, then there's:

\setupbodyfontenvironment[default][em=italic]
{\bf Hello \em World} Hello \em World


But if you want to follow the path of defining your own, adaptive
switches, then you could look at these goodies already defined in font-ini:

%D \macros
%D   {emphbf,emphit,emphsl,emphtf}
%D
%D The next emphasis alternatives are for \THANH. They adapt
%D their style as good as possible.

\def\emphbf{\groupedcommand{\bf\def\emphit{\bi}\def\emphsl{\bs}}{}}
\def\emphit{\groupedcommand{\it\def\emphbf{\bi}\def\emphsl{\sl}}{}}
\def\emphsl{\groupedcommand{\sl\def\emphbf{\bs}\def\emphit{\it}}{}}
\def\emphtf{\groupedcommand{\tf\def\e
mphbf{\bf}\def\emphit{\it}\def\emphsl{\sl}}
{}}

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

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


Re: [NTG-context] newbie question about fonts

2005-03-10 Thread luigi.scarso
Ciro A. Soto wrote:
Okay, this business of fonts/files/names/encoding/etc
is really difficult to understand for me.
 

don't worry:FONTS ARE REALLY DIFFICULT.
And is there a template file or a command
to display the entire set of characters once I know
the
name of fonts?
 

I suggest you to look at texfont program and
mfonts.pdf 
mtexfont.pdf 
showfont.pdf
They can be a bit outdate, but still useful.

I have printed My Way -- OpenType in Context by Adam T.Lindsay--
also really useful.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context