Re: [NTG-context] embedding multipage pdf

2006-01-25 Thread andrea valle
(ah, I understand).

Thanks as usual to all for extra-fast responses.

Best

-a-


On 25 Jan 2006, at 18:36, VnPenguin wrote:

> On 1/25/06, andrea valle <[EMAIL PROTECTED]> wrote:
>> Thanks Mikael,
>> sorry, I didn't think about wiki.
>>
>> So I solved using copypages.
>>
>> The only thing is that it seems to me that even if I use scale=1000 
>> (or
>> if I leave it untouched) the copied pdf seems to be scled the same
>> (it's smaller than original).
>>
>> Why?
>
> Because of margins of current page ?
>
> --
> http://vnoss.org
> Vietnamese Open Source Software Community
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

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


Re: [NTG-context] strange \v!on

2006-01-25 Thread Hans van der Meer


On Jan 25, 2006, at 22:02, Taco Hoekwater wrote:

> Hans van der Meer wrote:
>> Well, obviously I interpreted the use of \V!-macros wrong.
>> I understood it being the ConTeXt way of making command strings
>> language independent, as in for example.
>>\c!corner=\v!rectangular
>
> Ah, now it is clear to me (I was not paying attention close enough).
>
> Your understanding is fine, you just missed a small caveat. You have
> to put stuff that uses @, ! or ? in macro names within a block
> surrounded by \unprotect ... \protect  (like the \makeat.. macros in
> LaTeX). Within such a block, the @, ! and ? act as letters for use
> inside macro names.

Well, it's a pity, but I just did that.
I surround my macro pack with \unprotect ... \protect
Because I came through LaTeX, @ was heavily used.

OK, at the moment of composing this answer I realized that making !  
active will be the culprit (I am using it as separator between items).
Sorry bothering you with something I should have found out by myself.
But thanks for putting me on the right track!

yours sincerely,
dr. H. van der Meer


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


Re: [NTG-context] color in before=

2006-01-25 Thread Hans van der Meer
Thanks, that worked. But it leads to my next question, I am afraid.

When I define:
\definecolor [brightred][r=0.7, g=.1, b=.1]
then I can use this in \startcolor[brightred]...\stopcolor
according to \meaning brightred being \protected macro \switchtocolor  
[brightred]

Now I am fond of symbolic names and therefore also defined:
\definecolor [FrameColor][brightred]
Thus being able to use FrameColor as \MPcolor{FrameColor} in MetaFun.
(\meaning says \MPcolor{FrameColor} is \scaledMPcolor 1Framecolor,  
\FrameColor being undefined)

I thought to use \MPcolor{FrameColor} also in
\startcolor[\MPcolor{FrameColor}]...\stopcolor
or  \startcolor[FrameColor]...\stopcolor
but neither of these worked, nor did
{\switchtocolor[FrameColor]...}\crlf
{\switchtocolor[\MPcolor{FrameColor}]...}\crlf

How can I use FrameColor here to? Without defining extra macros  
around FrameColor, I hope.

On Jan 25, 2006, at 20:55, Taco Hoekwater wrote:

> Hans van der Meer wrote:
>> I suspect there is no way of sneaking in these []'s inside the
>> command? That is the general solution.
>
> \setupxyz[before={\color[green]{whatever}}]
>
> Cheers, Taco
> __


yours sincerely,
dr. H. van der Meer


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


Re: [NTG-context] strange \v!on

2006-01-25 Thread Taco Hoekwater
Hans van der Meer wrote:
> Well, obviously I interpreted the use of \V!-macros wrong.
> I understood it being the ConTeXt way of making command strings  
> language independent, as in for example.
> \c!corner=\v!rectangular

Ah, now it is clear to me (I was not paying attention close enough).

Your understanding is fine, you just missed a small caveat. You have
to put stuff that uses @, ! or ? in macro names within a block
surrounded by \unprotect ... \protect  (like the \makeat.. macros in
LaTeX). Within such a block, the @, ! and ? act as letters for use
inside macro names.

> The article "Context System macros part1" http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] strange \v!on

2006-01-25 Thread Hans van der Meer
Well, obviously I interpreted the use of \V!-macros wrong.
I understood it being the ConTeXt way of making command strings  
language independent, as in for example.
  \c!corner=\v!rectangular
Using code like this in a setup-getparameters combination.

The article "Context System macros part1"  provided the inspiration (example on page 11). Since I am adapting  
an old plaintex -> latex macro pack now -> context I thought it handy  
to put in that independence, as seems to come for free.

Clearly I am not grasping the real meaning. Will you enlighten me? If  
it doesn't takes to much of your time to explain.

On Jan 25, 2006, at 12:20, Taco Hoekwater wrote:
>
> Hans van der Meer wrote:
>> Encountered something strange setting up the parameters of framed.
>>
>> This runs normal:\setupframed[frame=off,strut=\v!no, ...
>> This gives an error: \setupframed[frame=\v!off,strut=\v!no, ...
>> The same happens with \v!on as parameter.
>
> In both cases the use of the \v! prefix is wrong (the strut=\v!no
> will not be obeyed), but only one of the two results in an error,
> because context handles some parameters differently from other
> parameters.
>
> Cheers, Taco
>

yours sincerely,
dr. H. van der Meer


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


Re: [NTG-context] Dropped caps, \startlines\stoplines, and indentation question

2006-01-25 Thread Radhelorn
Adrian Drury wrote:
> Hello,
> 
> I'm having trouble using dropped caps within \startlines\stoplines.
> I'm trying to typeset some poetry and I'm using
> \setuplines[space=yes]. I'd like to use dropped caps and have the
> indented lines be additionally indented by any space at the beginning
> of the lines.
> 
> See the following example - the first part shows roughly the result I
> want (but with manual formatting/spacing), the second part shows the
> result of \DroppedCaps inside \startlines\stoplines, and the third
> part uses the lettrine module. The lettrine module comes close, but
> Nindent doesn't seem to affect the indented lines within
> \startlines\stoplines.
> 
> \usemodule[lettrine]
> \def\MyDroppedCaps%
> { \DroppedCaps
> {} {Serif} {2\baselineskip} {2pt} {1\baselineskip} {2}
> }
> \setuplines[space=yes]
> 
> \starttext
> \MyDroppedCaps S{\sc umer} is icumen in,\crlf
> \hbox to .6em{}Lhude sing cuccu!\crlf
> Groweth sed, and bloweth med,\crlf
> \hbox to .6em{}And springth the wude nu---\crlf
> \hbox to 3.3em{}Sing cuccu!
> 
> \startlines
> \MyDroppedCaps S{\sc umer} is icumen in,
>   Lhude sing cuccu!
> Groweth sed, and bloweth med,
>   And springth the wude nu---
>   Sing cuccu!
> \stoplines
> 
> \startlines
> \lettrine{S}{umer} is icumen in,
>   Lhude sing cuccu!
> Groweth sed, and bloweth med,
>   And springth the wude nu---
>   Sing cuccu!
> \stoplines
> \stoptext
> 
> Any suggestions for how to do this? I'm a beginning ConTeXt user, so
> if there's a better/different way to do this, I'd be happy to hear it!
> 
> Also, I read the list in digest form. For the benefit of people using
> threaded mail readers, is there a better way to reply to individual
> messages than replying to the digest message and editing the Subject
> line appropriately?
> 
> Thanks very much,
> Adrian Drury
> ___
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

Try

\startlines
\vbox{\lettrine{S}{umer} is icumen in,\crlf Lhude sing cuccu!}
  Groweth sed, and bloweth med,
And springth the wude nu---
Sing cuccu!
\stoplines



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


Re: [NTG-context] color in before=

2006-01-25 Thread Taco Hoekwater
Hans van der Meer wrote:
> I suspect there is no way of sneaking in these []'s inside the  
> command? That is the general solution.

\setupxyz[before={\color[green]{whatever}}]

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


[NTG-context] color in before=

2006-01-25 Thread Hans van der Meer
I want to put a color command in a "before" command, that command  
being inserted in a macro.
Something like \setupxyz[before=\color[green]{whatever}]

The problem is that the argument parser gets confused when []- 
expressions are found within the setup.
It is not an option to reprogram everything with {}'s instead of  
[]'s, because then I lose to much of ConTeXt's abilities (apart from  
the nuisance of having to reprogram something that has already been  
done).

I suspect there is no way of sneaking in these []'s inside the  
command? That is the general solution.

My eyes spotted something like \dowithcolor#1#2, but there TeX  
complains about not knowing \od.

Is there a solution to this problem?

yours sincerely,
dr. H. van der Meer



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


Re: [NTG-context] Problem with German quotes and kerning

2006-01-25 Thread Thomas A. Schmitz
Mojca,

thanks a lot for you reply!

On Jan 25, 2006, at 1:45 PM, Mojca Miklavec wrote:

> On the transferred page:
>  http://wiki.contextgarden.net/Wishes_for_Latin_Modern
> there are already kerning issues listed.
>
> If the problem on that page is not expressed clearly enough (and if
> the proposal is not OK), add your comments to that page.

Well, the problem is that this is not really relevant to my question.  
Of course it would be good to have proper kerning for German quotes  
implemented in the fonts, Latin Modern or any other font. But the way  
this is now handled in lang-ger.tex, this kerning is not applied in  
ConTeXt! So even if LM were perfect in this regard, we still wouldn't  
have properly kerned German quotes (am I making sense here, or is  
this not clear enough?).

>
> I agree that kerning "German" style of quotation marks was (and
> perhaps still is?) horrible, perhaps slightly better in LM than it was
> in CM. We use them as well (to be honest - 95% of LaTeX-people uses
> the wrong ones).
>
> I use \quotation because of these reasons:
> - I never know which is the proper command to get the desired
> quotation marks with combination of ", `, ', ...
> - I trust Hans that the macro is optimized in such a way that the
> hyphenation and everything else on the word boundary will be OK
> (although I'm not sure what happens to kerning)
> - I can simply redefine the quotation marks or the style of text to be
> used, for example it's easy to replace them by guillemet/guillemot
> alternative if necessary
>
> It might be a personal decision which ones one uses, but I would say
> that using "` vs. \quotation is approximately the same as using \"{a}
> vs ä. All of them work, but the second variant is somewhat cleaner.

OK, this makes sense, especially your third point. If you use ConTeXt  
exclusively, quotation{} and \quote{} may have advantages, but you  
can't copy/paste text into, say, a file to be processed with LaTeX.  
And I use emacs + auctex, so I don't have to remember what I need to  
type, it is done automatically. OTOH, I could also configure auctex  
to write \quotation{ when I type ". It this meant that I would get  
proper kerning, I'd go for it...

Thanks, and best

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


Re: [NTG-context] Problem with German quotes and kerning

2006-01-25 Thread Henning Hraban Ramm
Am 2006-01-25 um 13:45 schrieb Mojca Miklavec:

> It might be a personal decision which ones one uses, but I would say
> that using "` vs. \quotation is approximately the same as using \"{a}
> vs ä. All of them work, but the second variant is somewhat cleaner.

No, it's more like a decision between \em and \it - \em and \quotation 
{} are logical markup, \it and "' are optical.
And I hope we agree that markup should be logical, whether HTML or  
TeX...

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

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


Re: [NTG-context] embedding multipage pdf

2006-01-25 Thread VnPenguin
On 1/25/06, andrea valle <[EMAIL PROTECTED]> wrote:
> Thanks Mikael,
> sorry, I didn't think about wiki.
>
> So I solved using copypages.
>
> The only thing is that it seems to me that even if I use scale=1000 (or
> if I leave it untouched) the copied pdf seems to be scled the same
> (it's smaller than original).
>
> Why?

Because of margins of current page ?

--
http://vnoss.org
Vietnamese Open Source Software Community
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] embedding multipage pdf

2006-01-25 Thread Mikael Persson
Hi again Andrea,

Could the reason be that you have margins/similar things? With the
following I see no differences of the files pauli.pdf, dirac.pdf and
the resulting file.

\setuppagenumbering[state=stop]
\setuplayout[
width=210mm,
height=297mm,
margin=0cm,
header=0cm,
footer=0cm,
topspace=0cm,
backspace=0cm,
]
\starttext
\insertpages[pauli.pdf][n=18]
\page[odd]
\insertpages[dirac.pdf][n=24]
\stoptext

Best regards, Micke P

On 1/25/06, andrea valle <[EMAIL PROTECTED]> wrote:
> Thanks Mikael,
> sorry, I didn't think about wiki.
>
> So I solved using copypages.
>
> The only thing is that it seems to me that even if I use scale=1000 (or
> if I leave it untouched) the copied pdf seems to be scled the same
> (it's smaller than original).
>
> Why?
>
> -a-
>
> On 25 Jan 2006, at 17:35, Mikael Persson wrote:
>
> > http://wiki.contextgarden.net/Including_pages_from_PDF_document
> Andrea Valle
> DAMS - Facoltà di Scienze della Formazione
> Università degli Studi di Torino
> http://www.semiotiche.it/andrea
> [EMAIL PROTECTED]
>
> ___
> 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] ConTeXt and Colors

2006-01-25 Thread Henning Hraban Ramm
Am 2006-01-25 um 09:29 schrieb Petra Broschwitz:

> I’m new in this forum and I need a little help about colors and
> overstocking (trapping?)! In German it means Überfüllung!
> Did anybody knows how colors and overstocking works?

Additionally to the other hints, have a look at:
http://wiki.contextgarden.net/Colors

Überfüllung is trapping in English.
But besides overprinting of colors ("Farben auf Überdrucken stellen")  
ConTeXt doesn't offer anything in this complex domain.
Usually, trapping is a feature of RIP software. Otherwise a printshop  
could use PDF trapping software like Heidelberg SuperTrap.

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

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


Re: [NTG-context] embedding multipage pdf

2006-01-25 Thread andrea valle
Thanks Mikael,
sorry, I didn't think about wiki.

So I solved using copypages.

The only thing is that it seems to me that even if I use scale=1000 (or 
if I leave it untouched) the copied pdf seems to be scled the same 
(it's smaller than original).

Why?

-a-

On 25 Jan 2006, at 17:35, Mikael Persson wrote:

> http://wiki.contextgarden.net/Including_pages_from_PDF_document
Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]

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


Re: [NTG-context] LaTeX array equivalence with multiline \lbrace

2006-01-25 Thread Renaud AUBIN

I've read the post [NTG-context] Math Cases and I'm interested to have 
the possibility to do this kind of numbering:

 { b , if whatever (1a)
  a ={
 { c,  otherwise   (1b)



Aditya Mahajan a écrit :

>If I understand you correctly, then something like this
>
>\definealign[cases][left={\left\{}, right={\right.}, n=2, 
>align={left,left}]
>
>will give us \startcases, \stopcases which works like \cases. Such a 
>feature will be very useful.
>
>
>Is it possible to define left|right in such a way that
>\definealign[important][left={\framed\bgroup},right={\egroup}]
>results in a frame around the equations (and does not include the equation 
>numbers), that is the frame is as broad as the width of the largest 
>equation that follows. This mechanism can be used to highlight equations.
>
>Also, in another post, I had asked if it is possible to have cases that 
>are numbered, that is, can I get
>
> { b , if whatever (1a)
>  a ={
> { c,  otherwise   (1b)
>
>This is not important, but will be nice to have.
>
>Aditya
>___
>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] embedding multipage pdf

2006-01-25 Thread Mikael Persson
Hello Andrea,

the page

http://wiki.contextgarden.net/Including_pages_from_PDF_document

has been very helpful for me when inserting pdf pages.

Best regards, Mikael Persson

On 1/25/06, andrea valle <[EMAIL PROTECTED]> wrote:
> Hi to all,
>
> I'm preparing a (standard) musical score.
> I've scored the music with lilypond and I have as output an A3 pdf of
> many pages.
> My idea was to create the cover and the other information pages
> surrounding the music with Context.
> In fact, I happily prepared my A3 context pages and I was trying to
> include the music pdf in the resulting tex file .
> I simply put my pdf in \externalfigure: it works, but only for first
> page.
>
> How do I include all the pdf?
>
> I can solve printing the pages from the context and lilypond output
> files, and then gluing the resulting paper, but I'd like to have an
> integrated source file to be printed.
>
> Thanks a lot
>
> -a-
>
>
> Andrea Valle
> DAMS - Facoltà di Scienze della Formazione
> Università degli Studi di Torino
> http://www.semiotiche.it/andrea
> [EMAIL PROTECTED]
> ___
> 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] LaTeX array equivalence with multiline \lbrace

2006-01-25 Thread Aditya Mahajan
On Wed, 25 Jan 2006, Hans Hagen wrote:

> Aditya Mahajan wrote:
>
>> <--- On Jan 24, Renaud AUBIN wrote --->
>>
>>
>>
>>> With LaTeX, I have
>>> $$
>>> \left\lbrace
>>> \begin{array}{l}
>>>  \dot{q}_i = 1 \quad\text{ if } i=k \\
>>>  \dot{q}_i = 0 \quad\text{ else}
>>> \end{array}
>>> \right
>>> $$
>>>
>>>
>>
>> Well the ConTeXt way (rather the TeX way) of doing this is to use
>> \cases.
>>
>> $$
>>  \cases{
>>   \dot q_i = 1, & \text{ if } i = k \cr
>>   \dot q_i = 0, & \text{ else } \cr
>>  }
>> $$
>>
>>
> maybe we should add a left|right option to the new align mechanism so 
> that one can define such constructs .. does that make sense?

If I understand you correctly, then something like this

\definealign[cases][left={\left\{}, right={\right.}, n=2, 
align={left,left}]

will give us \startcases, \stopcases which works like \cases. Such a 
feature will be very useful.


Is it possible to define left|right in such a way that
\definealign[important][left={\framed\bgroup},right={\egroup}]
results in a frame around the equations (and does not include the equation 
numbers), that is the frame is as broad as the width of the largest 
equation that follows. This mechanism can be used to highlight equations.

Also, in another post, I had asked if it is possible to have cases that 
are numbered, that is, can I get

 { b , if whatever (1a)
  a ={
 { c,  otherwise   (1b)

This is not important, but will be nice to have.

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


[NTG-context] embedding multipage pdf

2006-01-25 Thread andrea valle
Hi to all,

I'm preparing a (standard) musical score.
I've scored the music with lilypond and I have as output an A3 pdf of 
many pages.
My idea was to create the cover and the other information pages 
surrounding the music with Context.
In fact, I happily prepared my A3 context pages and I was trying to 
include the music pdf in the resulting tex file .
I simply put my pdf in \externalfigure: it works, but only for first 
page.

How do I include all the pdf?

I can solve printing the pages from the context and lilypond output 
files, and then gluing the resulting paper, but I'd like to have an 
integrated source file to be printed.

Thanks a lot

-a-


Andrea Valle
DAMS - Facoltà di Scienze della Formazione
Università degli Studi di Torino
http://www.semiotiche.it/andrea
[EMAIL PROTECTED]
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] formula in itemlist

2006-01-25 Thread Nikolai Weibull
On 1/25/06, Taco Hoekwater <[EMAIL PROTECTED]> wrote:

> Nikolai Weibull wrote:

> > > i'll also add an option to center at the page level and not locally

> > Will this solve item 60 [1] in the collector?

> Yes.

Awesome.

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


Re: [NTG-context] LaTeX array equivalence with multiline \lbrace

2006-01-25 Thread Renaud AUBIN

>maybe we should add a left|right option to the new align mechanism so that one 
>can define such constructs .. does that make sense? 
>
>Hans 
>  
>
It sounds good to me...

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


Re: [NTG-context] Problem with German quotes and kerning

2006-01-25 Thread Mojca Miklavec
On 1/23/06, Thomas A. Schmitz wrote:
> Hi all,
>
> this seems to be a general TeX-problem, not ConTeXt specific, but I'm
> not sure I understand the details. Here's the problem: when I use
> mainlanguage[de], I can type "` to get German opening quotes,
> \quotedblbase „. However, this characters needs some (a lot of)
> kerning when it comes before, e.g., W or V; it is too far away from
> the following character. Most font-designers don't care about German
> typography, so I tried and added the kerning manually. But this works
> only if I input the character directly via the keyboard or via the
> symbolic name, it does not work with "` (nor with \quotation{ });
> language German seems to make the ` active. In emacs, I find "` the
> most convenient way to input German quotes. Is there a way to have
> kerning with this input, or do I have to change my habits?

On the transferred page:
 http://wiki.contextgarden.net/Wishes_for_Latin_Modern
there are already kerning issues listed.

If the problem on that page is not expressed clearly enough (and if
the proposal is not OK), add your comments to that page.

I agree that kerning "German" style of quotation marks was (and
perhaps still is?) horrible, perhaps slightly better in LM than it was
in CM. We use them as well (to be honest - 95% of LaTeX-people uses
the wrong ones).

I use \quotation because of these reasons:
- I never know which is the proper command to get the desired
quotation marks with combination of ", `, ', ...
- I trust Hans that the macro is optimized in such a way that the
hyphenation and everything else on the word boundary will be OK
(although I'm not sure what happens to kerning)
- I can simply redefine the quotation marks or the style of text to be
used, for example it's easy to replace them by guillemet/guillemot
alternative if necessary

It might be a personal decision which ones one uses, but I would say
that using "` vs. \quotation is approximately the same as using \"{a}
vs ä. All of them work, but the second variant is somewhat cleaner.

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


Re: [NTG-context] A few questions about eating spaces in macros

2006-01-25 Thread Hans Hagen
Radhelorn wrote:

>
>text text
>\commandhere
>  
>
\dontleavehmode\commandhere

-
  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] LaTeX array equivalence with multiline \lbrace

2006-01-25 Thread Hans Hagen
Aditya Mahajan wrote:

><--- On Jan 24, Renaud AUBIN wrote --->
>
>  
>
>>With LaTeX, I have
>>$$
>>\left\lbrace
>>\begin{array}{l}
>>  \dot{q}_i = 1 \quad\text{ if } i=k \\
>>  \dot{q}_i = 0 \quad\text{ else}
>>\end{array}
>>\right
>>$$
>>
>>
>
>Well the ConTeXt way (rather the TeX way) of doing this is to use 
>\cases.
>
>$$
>  \cases{
>   \dot q_i = 1, & \text{ if } i = k \cr
>   \dot q_i = 0, & \text{ else } \cr
>  }
>$$
>  
>
maybe we should add a left|right option to the new align mechanism so that one 
can define such constructs .. does that make sense? 

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] ConTeXt and Colors

2006-01-25 Thread Hans Hagen
VnPenguin wrote:

>On 1/25/06, Petra Broschwitz <[EMAIL PROTECTED]> wrote:
>  
>
>>Hi,
>>
>>I'm new in this forum and I need a little help about colors and
>>overstocking (trapping?)! In German it means Überfüllung!
>>
>>Did anybody knows how colors and overstocking works?
>>
>>
>
>For colors activation:
>
>\setupcolors[state=start]
>
>Definition:
>
>\definecolor [mycolor] [r=0.11, g=0.145, b=0.57]
>\definecolor [mycolorr] [s=.95]
>
>  
>
also see:

http://www.pragma-ade.com/show-mag-7.htm

(for overprint and such) 

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] strange \v!on

2006-01-25 Thread Taco Hoekwater


Hans van der Meer wrote:
> Encountered something strange setting up the parameters of framed.
> 
> This runs normal: \setupframed[frame=off,strut=\v!no, ...
> 
> This gives an error:  \setupframed[frame=\v!off,strut=\v!no, ...
> 
> The same happens with \v!on as parameter.

In both cases the use of the \v! prefix is wrong (the strut=\v!no
will not be obeyed), but only one of the two results in an error,
because context handles some parameters differently from other
parameters.

Cheers, Taco

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


[NTG-context] strange \v!on

2006-01-25 Thread Hans van der Meer
Encountered something strange setting up the parameters of framed.

This runs normal:   \setupframed[frame=off,strut=\v!no, ...

This gives an error:\setupframed[frame=\v!off,strut=\v!no, ...

The same happens with \v!on as parameter.
The difference is "off" vs. "\v!off" (of course running within  
\unprotect .. \protect pair).
It seems to go wrong at the "frame" parameter only, because for  
example strut accepts \v!no.
Is there perhaps a clash with another macro?

I get this in the console (TeXShop):

! Missing \endcsname inserted.

\let
\dobuildtextaccent #1#2->{\let
\char \normalaccent #1\let \char  
\normalchar #2}

\dohandleaccent ...acterencoding #1\endcsname {#2}
   \fi \fi \fi
\@@oiframe ->\v !
  on
 t\@@frame@@ \framedparameter \c!frame
  \framedparameter \c! 
topframe
\getvalue #1->\csname #1
 \endcsname
...
l.44 \stoptable
}{first table}
?
Process aborted


yours sincerely,
dr. H. van der Meer



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


Re: [NTG-context] getting characters

2006-01-25 Thread Hans Hagen
Taco Hoekwater wrote:

>Hi Hans,
>
>I do not think it is available already, but it is very
>simple to patch the \getfirstcharacter macro:
>
>   \def\dogetfirstcharacter#1#2\\%
> {\def\firstcharacter{#1}\def\remainingcharacters{#2}}
>
>(I like 'remaining' better than 'last')
>  
>
ok, patched 

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] ConTeXt and Colors

2006-01-25 Thread VnPenguin
On 1/25/06, Petra Broschwitz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new in this forum and I need a little help about colors and
> overstocking (trapping?)! In German it means Überfüllung!
>
> Did anybody knows how colors and overstocking works?

For colors activation:

\setupcolors[state=start]

Definition:

\definecolor [mycolor] [r=0.11, g=0.145, b=0.57]
\definecolor [mycolorr] [s=.95]

--
http://vnoss.org
Vietnamese Open Source Software Community
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ConTeXt and Colors

2006-01-25 Thread Petra Broschwitz
Hi,

I’m new in this forum and I need a little help about colors and 
overstocking (trapping?)! In German it means Überfüllung!

Did anybody knows how colors and overstocking works?

Best regards!
Petra Broschwitz

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


Re: [NTG-context] getting characters

2006-01-25 Thread Taco Hoekwater

Hi Hans,

I do not think it is available already, but it is very
simple to patch the \getfirstcharacter macro:

   \def\dogetfirstcharacter#1#2\\%
 {\def\firstcharacter{#1}\def\remainingcharacters{#2}}

(I like 'remaining' better than 'last')

Cheers, taco

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


[NTG-context] getting characters

2006-01-25 Thread Hans van der Meer
While fiddling with character strings I found the \getfirstcharacter  
macro which is very handy.
However, I am consuming a character string character by character.
Although I have a macro for that, I think it is a good policy to stay  
as much as possible within the ConTexT framework when concocting  
macro's to be used under ConTeXt.

Now for the question.
  \getfirstcharacter puts the first character in \firstcharacter.
I looked for a macro containing the rest of the string but could not  
find one.
Something like:
\getfirstcharacter{abc}
then
\firstcharacter = a
\lastcharacters = bc

This will make it possible to process a string character by  
character, in the same way as \processcommalist does with comma  
separated strings.
But possibly this is already somewhere in the code and I overlooked it.

yours sincerely,
dr. H. van der Meer



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


[NTG-context] request about combinations

2006-01-25 Thread Hans van der Meer
A modest request, that is probably in principle not too difficult to  
fulfil.

With many commands (\framed for example) I can do a setup for general  
behaviour and do something special at the actual call.
Like this:
\setupframed[options...]
\framed[individual options ...]

It would be pleasant if I could do the same with combinations, but  
there I do not get to work a similar behaviour:
\setupcombinations[align=middle,location=top]
\startcombination[2*1][location=middle]

Is it an option for Hans to build this into the code? It would also  
make ConTeXt's behaviour more regular if every command that has a  
\setupcommand[options] would always allow \command[options]. If some  
have it and some not it "strains the brain".

yours sincerely,
dr. H. van der Meer



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


Re: [NTG-context] \dot & lucida

2006-01-25 Thread Taco Hoekwater


Renaud AUBIN wrote:
> 
> Hi all,
> 
> My solution to this issue is:
> 1 - texexec ec-bh-lucida
> 2 - search the hex code 05 as in math-lbr.tex -> it's a "
> 3 - search the correct symbol (dot) and the hex code (it is 0A)
> 4 - replace 05 by 0A (line 390 of math-lbr.tex)
> 
> Now, it works for me but I'm not sure that this solution is "correct" ;-)
> Your opinion ?

I'm not sure it is a good enough general solution, but it will work
for the default font set.

If I understand it correctly, the problem is that the [tf] entries in
the math collections refer to a text font, not math font, so the current
text encoding should be taken in consideration.

The old hex 05 assumed the text font was in 8y/texnansi encoding, your
new hex 0A that it is in 8t/ec encoding. Both can be wrong depending on
the current user font settings, I'm afraid/


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


Re: [NTG-context] formula in itemlist

2006-01-25 Thread Taco Hoekwater


Nikolai Weibull wrote:
>>i'll also add an option to center at the page level and not locally
> 
> 
> Will this solve item 60 [1] in the collector?

Yes.

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


Re: [NTG-context] formula in itemlist

2006-01-25 Thread Nikolai Weibull
> \def\setdisplaydimensions
>   {\displayindent\leftdisplayskip
>\advance\displayindent\leftdisplaymargin
>\displaywidth\hsize
>\ifdim\hangindent>\zeropoint
>  \advance\displayindent\hangindent
>\else
>  \advance\displaywidth\hangindent
>\fi
>\advance\displaywidth-\displayindent
>\advance\displaywidth-\rightdisplayskip
>\advance\displaywidth-\rightdisplaymargin
>\hsize\displaywidth}
>
> i'll also add an option to center at the page level and not locally

Will this solve item 60 [1] in the collector?

  nikolai

1. http://context.literatesolutions.com/collector/60/pcng_issue_view
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context