Re: [NTG-context] blurred shadow on images?

2010-06-21 Thread Taco Hoekwater

Henning Hraban Ramm wrote:
I'd like to place some plain photos rotated (say 12°) and with a blurred 
shadow above some colored elements, i.e. the shadow must use transparency.
I guess I could get such using ImageMagick, but is there a possibility 
using ConTeXt or one of its favourite friends?

I'd prefer a solution that works with CMYK data.


Creating a semi-transparent backdrop with metapost is quite simple,
but I am not sure whether that works with cmyk, you'll have to try
yourself. Code goes something like this:

\startuniqueMPgraphic{texthole}
for dx = 0 upto 40:
  dy := dx;
  wa := 10 + dx;
  wb := \overlaywidth - dx - 10;
  ha := dy + 10;
  hb := \overlayheight - dy - 10;
  fill (wa,ha)--(wb,ha)--(wb,hb)--(wa,hb)--cycle
  withcolor transparent(normal, .04,white);
endfor;
\stopuniqueMPgraphic



If there isn't - is the transparency of PNG usable?


Sure, and may use less resources than mp drawings, but that is
definitely RGB

Best wishes,
Taco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Indent in publication list

2010-06-21 Thread richard . stephens
 Can anyone please tell me how to reduce the hanging indent in a 
 publication list? 
 I am using the APA style and there is a hanging indent of about 1 
 cm, I would like to reduce this to 0.5 cm but I cannot work out how to 
do it. 
 I use the command \placepublications to generate the list. 
 
 
 Try
 \setuppublicationlist[width=5mm]
 
Thanks Yury, that's great.

Richard 

P.S. I've switched to plain text emails!





Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188

Registered in England and Wales.

Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.



CONFIDENTIALITY : This e-mail and any attachments are confidential and may 
be privileged. If you are not a named recipient, please notify the sender 
immediately and do not disclose the contents to another person, use it for 
any purpose or store or copy the information in any medium.



Please consider the environment before printing this e-mail




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Sans Math setup

2010-06-21 Thread Steffen Wolfrum

Am 19.06.2010 um 12:28 schrieb Hans Hagen:

 On 19-6-2010 11:48, Steffen Wolfrum wrote:
 Hi,
 
 some months ago Vyatcheslav asked for an option with \setupmathematics to 
 switch between sans and serif.
 Just now I need exactly this!
 
 (It is needed in the field of math for architecture/engineering.)
 
 Is this available meanwhile?
 
 in what sense? we have \mathss which will trigger the math sans alphabet but 
 keep in mind that this is no sansing all symbols (so you can best look at 
 unicode math and see what is meant for engeneering)
 
 controlling it with setupmathematics will only happen when we hav ea rather 
 good overview of what different disciplines demand as i don't want to end up 
 with an inconsistent mess
 
 a full sans math fonts is something different, if you have a proper font it 
 should work ok



I'll send you an example PDF privately.


Steffen
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Omitting hyphenation

2010-06-21 Thread Matija Šuklje
Hullo,

in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the CV 
I'm writing right now, I have a few of those and they get hyphenated and 
broken.

How can I tell that a single word/abbrevation should *not* be hyphenated and 
broken?


Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] End of document command or character

2010-06-21 Thread Matija Šuklje
Hullo hullo!

I've often seen articles and documents to use a special character to show that 
the text is being continued over page and another one to show that this is the 
end of the text.

Is there something like that available in ConTeXt?

Currently I would need e.g. a midaligned squiggly line or * * * or something  
to determinate the bottom of the text on the last page of my CV.


Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Omitting hyphenation

2010-06-21 Thread Yury G. Kudryashov
Matija Šuklje wrote:

 Hullo,
 
 in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the
 CV I'm writing right now, I have a few of those and they get hyphenated
 and broken.
 
 How can I tell that a single word/abbrevation should *not* be hyphenated
 and broken?
Try \hbox{word} (AFAIR, this is a plain TeX command)
 
 
 Cheers,
 Matija


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] End of document command or character

2010-06-21 Thread Wolfgang Schuster

Am 21.06.10 18:35, schrieb Matija Šuklje:

Hullo hullo!

I've often seen articles and documents to use a special character to show that
the text is being continued over page and another one to show that this is the
end of the text.

Is there something like that available in ConTeXt?

Currently I would need e.g. a midaligned squiggly line or * * * or something
to determinate the bottom of the text on the last page of my CV.
   


\midaligned{* * *}?

Something similar is available with the facybreak module: 
http://bitbucket.org/wolfs/fancybreak/src/tip/files/



To let the reader know your letter/resume/etc. covers more than one page
you can number them in the form 'Page 1 of 2'.

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Omitting hyphenation

2010-06-21 Thread Matija Šuklje
Dne ponedeljek 21. junija 2010 ob 18:53:12 je Yury G. Kudryashov napisal(a):
  How can I tell that a single word/abbrevation should not be hyphenated
  and broken?
 
 Try \hbox{word} (AFAIR, this is a plain TeX command)

That's the ticket! :D


Cheers!
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Omitting hyphenation

2010-06-21 Thread Wolfgang Schuster

Am 21.06.10 18:32, schrieb Matija Šuklje:

Hullo,

in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the CV
I'm writing right now, I have a few of those and they get hyphenated and
broken.

How can I tell that a single word/abbrevation should *not* be hyphenated and
broken?
   


\hyphenation{nothyphenatedword anothernothyphenatedword}

\starttext
...
\stoptext

Wolfgang (who wonders why there is no context alternative for \hyphenation)

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Omitting hyphenation

2010-06-21 Thread Wolfgang Schuster

Am 21.06.10 18:53, schrieb Yury G. Kudryashov:

Matija Šuklje wrote:

   

Hullo,

in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In the
CV I'm writing right now, I have a few of those and they get hyphenated
and broken.

How can I tell that a single word/abbrevation should *not* be hyphenated
and broken?
 

Try \hbox{word} (AFAIR, this is a plain TeX command)
   


If you want a context command then use \mbox ;)

Wolfgang

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] End of document command or character

2010-06-21 Thread Matija Šuklje
Dne ponedeljek 21. junija 2010 ob 19:37:54 je Wolfgang Schuster napisal(a):
 Am 21.06.10 18:35, schrieb Matija Šuklje:
 \midaligned{* * *}?

I already tried that and it works, but:

a) I'd rather have a symbol that's more common to 

b) this enters a new line of text; which in my case drops below to the next 
page (in my example I'm at the very edge of the page break) 

 Something similar is available with the facybreak module:
 http://bitbucket.org/wolfs/fancybreak/src/tip/files/

Hmmm, will take a look. I can't find it in my minimals. Do I have to manually 
install it?

 To let the reader know your letter/resume/etc. covers more than one page
 you can number them in the form 'Page 1 of 2'.

That I already have :]


Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Omitting hyphenation

2010-06-21 Thread Matija Šuklje
Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster napisal(a):
 Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
  Try \hbox{word} (AFAIR, this is a plain TeX command)
 
 If you want a context command then use \mbox ;)

Is there any practical difference?

Cheers,
Matija
-- 
gsm: +386 41 849 552
www: http://matija.suklje.name
xmpp: matija.suk...@gabbler.org
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Omitting hyphenation

2010-06-21 Thread Wolfgang Schuster

Am 21.06.10 19:50, schrieb Matija Šuklje:

Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster napisal(a):
   

Am 21.06.10 18:53, schrieb Yury G. Kudryashov:
 

Try \hbox{word} (AFAIR, this is a plain TeX command)
   

If you want a context command then use \mbox ;)
 

Is there any practical difference?
   


No but i wish there is one, e.g. the following example shows a problem 
with \hbox.


\starttext
\hbox{test} text text
\blank
\dontleavehmode\hbox{test} text text
\stoptext

As you can see in the output the first 'test' starts 'text text' on a 
new line and i forced \hbox
to appear in horizontal mode with \dontleavehmode and this can't be 
changed because \hbox is a TeX
primitive and you have to rely on this behaviour. The \mbox command 
isn't a primitive and i would
be so easy to add \dontleavehmode to it's definition to make sure the 
text after \mbox won't appear
on a new line, this means in this example both lines result in the same 
output.


\starttext
\dontleavehmode\hbox{test} text text
\blank
\mbox{test} text text
\stoptext

Wolfgang


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Omitting hyphenation

2010-06-21 Thread Hans Hagen

On 21-6-2010 7:45, Wolfgang Schuster wrote:

Am 21.06.10 18:32, schrieb Matija Šuklje:

Hullo,

in Slovenian it's not allowed to word-wrap/hyphenate abbrevations. In
the CV
I'm writing right now, I have a few of those and they get hyphenated and
broken.

How can I tell that a single word/abbrevation should *not* be
hyphenated and
broken?


\hyphenation{nothyphenatedword anothernothyphenatedword}

\starttext

\stoptext

Wolfgang (who wonders why there is no context alternative for \hyphenation)


so there is room for improvements

\starttext
\dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens 
nothyphenatedword}, hyphenatedword }

\stoptext

Hans




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Omitting hyphenation

2010-06-21 Thread Hans Hagen

On 21-6-2010 8:03, Wolfgang Schuster wrote:

Am 21.06.10 19:50, schrieb Matija Šuklje:

Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster
napisal(a):

Am 21.06.10 18:53, schrieb Yury G. Kudryashov:

Try \hbox{word} (AFAIR, this is a plain TeX command)

If you want a context command then use \mbox ;)

Is there any practical difference?


No but i wish there is one, e.g. the following example shows a problem
with \hbox.

\starttext
\hbox{test} text text
\blank
\dontleavehmode\hbox{test} text text
\stoptext

As you can see in the output the first 'test' starts 'text text' on a
new line and i forced \hbox
to appear in horizontal mode with \dontleavehmode and this can't be
changed because \hbox is a TeX
primitive and you have to rely on this behaviour. The \mbox command
isn't a primitive and i would
be so easy to add \dontleavehmode to it's definition to make sure the
text after \mbox won't appear
on a new line, this means in this example both lines result in the same
output.

\starttext
\dontleavehmode\hbox{test} text text
\blank
\mbox{test} text text
\stoptext


we can have

\unexpanded\def\mbox
  {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi}

as i never use this command it won't break my documents -)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Omitting hyphenation

2010-06-21 Thread Wolfgang Schuster

Am 21.06.10 22:04, schrieb Hans Hagen:

On 21-6-2010 8:03, Wolfgang Schuster wrote:

Am 21.06.10 19:50, schrieb Matija Šuklje:

Dne ponedeljek 21. junija 2010 ob 19:47:08 je Wolfgang Schuster
napisal(a):

Am 21.06.10 18:53, schrieb Yury G. Kudryashov:

Try \hbox{word} (AFAIR, this is a plain TeX command)

If you want a context command then use \mbox ;)

Is there any practical difference?


No but i wish there is one, e.g. the following example shows a problem
with \hbox.

\starttext
\hbox{test} text text
\blank
\dontleavehmode\hbox{test} text text
\stoptext

As you can see in the output the first 'test' starts 'text text' on a
new line and i forced \hbox
to appear in horizontal mode with \dontleavehmode and this can't be
changed because \hbox is a TeX
primitive and you have to rely on this behaviour. The \mbox command
isn't a primitive and i would
be so easy to add \dontleavehmode to it's definition to make sure the
text after \mbox won't appear
on a new line, this means in this example both lines result in the same
output.

\starttext
\dontleavehmode\hbox{test} text text
\blank
\mbox{test} text text
\stoptext


we can have

\unexpanded\def\mbox
  {\ifmmode\normalmbox\else\dontleavehmode\normalhbox\fi}

as i never use this command it won't break my documents -)


thanks, this looks good

Wolfgang
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Omitting hyphenation

2010-06-21 Thread Wolfgang Schuster

Am 21.06.10 22:00, schrieb Hans Hagen:
Wolfgang (who wonders why there is no context alternative for 
\hyphenation)


so there is room for improvements

\starttext
\dorecurse{50}{\kern\recurselevel\dimexpr.2pt\relax {\nohyphens 
nothyphenatedword}, hyphenatedword }

\stoptext


i should explain what i mean:

when you try to make hyphenation exceptions for different languages you 
need currently


\language[en]\hyphenation{expection list for english}
\language[de]\hyphenation{expection list for german}
...

but it would be nice to combine both in a single command, e.g.

\setuphyphenation{exception list for the current active language} % like 
\hyphenation{...}
\setuphyphenation[de]{exception list for german} % like 
\language[de]\hyphenation{...}


Wolfgang


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Testing non-existent counter in Lua

2010-06-21 Thread Jaroslav Hajtmar

Hi, all.

How do I know (due Lua) that the counter has not been defined in ConTeXt 
(through the command newcount)?


I am trying testing :

if tex.count.mycount == nil then...

or

if tex.count.mycount == 'error' then...

then when counter isnt defined due \newcount\mycount, then test ending 
with error message.


When counter is defined due
\newcount\mycount,
\mycount=1

then test
if tex.count.mycount == 1 then...

is OK...


Thanx, Jaroslav







___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Mixing math fonts, help ?

2010-06-21 Thread gummybears
Hi,

On http://wiki.contextgarden.net/Bold_Math section Mixing Math Fonts
I tried to mix in the Asana Math font for the missing integral symbols.

0x222B normal integral \int
0x222C double integral \iint
0x222D triple integral \iiint
0x222E contour integral \oint
0x222F surface integral \oiint
0x2230 volume integral \oiiint

However I don't want to switch to the whole Asana Math, because the math
looks ugly, just want to get to the missing symbols in math mode.

To all the experts on the list, please be patient with me. I am just some
one
who documents math and physics texts but I am not a programmer or Tex
wizard.
My knowledge of Context is ok, but still beginners level. I really don't
know how to
get it to work and it's stopping me.

Using the latest Context/Luatex version
ConTeXt version 2010.06.20 00:01
LuaTeX date stamp 2010061909

I tried a modified version
\starttypescript [math]
  \definefontsynonym [MathSymbol]   [Asana-Math]
  \definefontsynonym [MathRoman][ComputerModernMath-Roman]
  \definefontsynonym [MathExtension][ComputerModernMath-Extension]
\stoptypescript
\usetypescript[math]

\starttext
\startlines
0x222B normal integral  $\int_{a}^{b}$
0x222C double integral  $\iint_{a}^{b}$
0x222D triple integral  $\iiint_{a}^{b}$
0x222E contour integral $\oint_{a}^{b}$
0x222F surface integral $\oiint_{a}^{b}$
0x2230 volume integral  $\oiiint_{a}^{b}$
0x2A0C space time $\nt_{a}^{b}$
\stoplines

This file has been typeset on \currentdate{}  at \currenttime,  with
\doifmodeelse{mkiv}
{mkiv,
LuaTeX version \the\luatexversion,
LuaTeX revision \luatexrevision,
(LuaTeX date stamp \luatexdatestamp),
using the command: \par
\type{context test-luatex.tex}\par}
{mkii,
using the command: \par
\type{texexec test-luatex.tex}\par}
\blank
ConTeXt version \contextversion.

\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___