Re: [NTG-context] install older beta

2012-04-25 Thread Marco
On 2012-04-24 luigi scarso luigi.sca...@gmail.com wrote:

 4) build a zip
 # git archive --format=zip -v -o 'beta_2012_01_02_17_18.zip'
 47864ebdfe2d9916e365c2f278585a94879c813d
 
 5) replace all the files under
 ~/workspace/context/standalone/tex/texmf-context
 with the content of beta_2012_01_02_17_18.zip

Why? Just do:

git archive hash | (cd ~/workspace/context/standalone/tex/texmf-context/;tar 
xf -)

Very nice instructions, would be nice to put them under

http://wiki.contextgarden.net/ConTeXt_Standalone#Reverting_to_an_older_installation

One issue:

I think it's also necessary to also revert texmf-modules to the old
state. Is there a repository for the third party modules?

Marco


___
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] Scaling in setuplayout does not work with setuparranging

2012-04-25 Thread Steffen Fritzsche
Hi,

I'm using the latest beta and tried to arrange two slides on a single A4 sheet. 
I've defined my own paper size for the slides the sizes oriented on our 
corporate layout for presentations. To print two slides on a single A4 I have 
to scale them but I can't get this to work.

Have a look at the attached minified example below. Without \setuparranging set 
the slides are scaled an one is put on each A4. As soon as I activate the 
arraging the scaling does not work anymore.

Any ideas how to get this work? Am I doing something wrong?

Thanks!
Steffen


\definepapersize[SPP43][width=25.4cm,height=19.05cm]
\setuppapersize[SPP43][SPP43]

\switchtobodyfont[20pt]

\startmode[handout]
\setuppapersize[SPP43][A4]
\setuplayout[scale=0.5,location=middle]
%\setuparranging[2TOP]
\stopmode

\starttext
\startitemize
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\item item
\stopitemize
\stoptext

smime.p7s
Description: S/MIME cryptographic signature
___
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] Rendering differences between PDF viewers

2012-04-25 Thread Peter Rolf
Am 24.04.2012 15:37, schrieb Peter Rolf:
 Am 24.04.2012 14:42, schrieb Hans Hagen:
 On 20-4-2012 09:50, Peter Rolf wrote:
 Am 19.04.2012 20:25, schrieb Hans Hagen:
 On 18-4-2012 13:12, Peter Rolf wrote:

 I understand that there is no easy or general solution for this.
 But on the other hand is PNG currently the only way to use transparent
 bitmaps in TeX. The usage of transparent PNG is quite common, so
 this is
 a general problem that should be solved.

 I like your idea of automatically adding such groups, if the user
 declares the color space beforehand. Also no answer for the spot color
 problem, but as long as the user does not limit the used color spaces,
 things can stay as they are. Just my 2 cents.

 so first wen need to test with mixed color space documents and such
 hacks to see what happens (as we don't want invalid documents)


 ok. i don't expect any formal problems, only more or less ugly color
 shifts. anyhow, we will see.

 needs some thinking about proper examples (colored text, vector and
 pixel based graphics in RGB,CMYK,Spot)...
 i think 'draw ColorCircle(..)' is a perfect candidate for the complete
 graphic part. one page with transparency and also one page without any
 transparency (the page group shouldn't kick in). later on we can add
 some icc profiles to spice things up.

 i'll start to make a test document on the weekend then. if i have missed
 something important, let me know. any additional ideas are also
 welcome :-)

 as a prelude, the next beta will have

 \setupcolors[pagecolormodel=rgb] % gray rgb cmyk auto none

 and issue a warning when no model is set when using transparencies

 
 nice. a test document with mixed color spaces is also in work and should
 be ready in a few days.
 

a first version of the test files can be found here (7z, LZMA2 compression)

https://www.wuala.com/indiego/public/?key=caiCGLasLFmJ

i have tested four versions so far.

1. cmyk (default) page group
2. rgb page group
3. cmyk page group + pdf/x
4. rgb page group + pdf/x

no general problems so far (only spot color related)


Peter
___
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] Commands with arguments with MetaPost

2012-04-25 Thread Troy Henderson
I would like to be able to do something like this

\def\foo#1{
\startMPcode
fill (0,0)--(598,0)--(598,50)--(0,50)--cycle withcolor green;
label.rt(btex #1 etex),(50,25);
  \stopMPcode
}

and then use this in my ConTeXt document by

\foo{Some text}

However, my syntax seems to be incorrect, and I would appreciate any
help in fixing it.

Thanks,

Troy Henderson
___
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] Commands with arguments with MetaPost

2012-04-25 Thread Alan BRASLAU
On Wed, 25 Apr 2012 11:15:10 -0500
Troy Henderson thend...@gmail.com wrote:

 I would like to be able to do something like this
 
 \def\foo#1{
 \startMPcode
 fill (0,0)--(598,0)--(598,50)--(0,50)--cycle withcolor green;
 label.rt(btex #1 etex),(50,25);
   \stopMPcode
 }
 
 and then use this in my ConTeXt document by
 
 \foo{Some text}
 
 However, my syntax seems to be incorrect, and I would appreciate any
 help in fixing it.
 

\framed [frame=off,background=color,backgroundcolor=green,width=598,height=50]
{Some text}

(Of course, you need to put correct dimensions for the width and height
and also set an offset.)

Untested, so the syntax may be not quite correct.

You might want to use
\setupframedtext
and
\startframedtext
\stopframedtext
if you will be doing this often.
There is probably also a way to define a named framed text.

Alan
___
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] Commands with arguments with MetaPost

2012-04-25 Thread Rogers, Michael K

On Apr 25, 2012, at 12:15 PM, Troy Henderson wrote:

 I would like to be able to do something like this

 \def\foo#1{
\startMPcode
fill (0,0)--(598,0)--(598,50)--(0,50)--cycle withcolor green;
label.rt(btex #1 etex),(50,25);
  \stopMPcode
 }



Looks like a misplaced parenthesis:

   label.rt(btex #1 etex,(50,25));

  - Michael



This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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] lucida ot

2012-04-25 Thread Mari Voipio
On Tue, Apr 24, 2012 at 20:53, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 \definetypeface[mainface][rm][specserif]  [Lucida Blackletter 
 OT][default][features=default]
 \definetypeface[mainface][cg][calligraphy][lucidaot]             
 [default][features=default]

 \setupbodyfont[mainface]

 \definebodyfontenvironment[default][em=cg]

 \starttext

 \input knuth

 roman {\cg calligraphic} roman {\em emphasized} roman

 \stoptext

Works fine in a single file, but as soon as I try using it in a
project environment, it hangs..

A minimal environment test file:
\startenvironment env_ms_blackletter

\definetypeface[mainface][rm][specserif]  [Lucida Blackletter
OT][default][features=default]

\setupbodyfont[mainface]

\stopenvironment



And this is what it hangs onto:

   \3mainface-12pt-mm-mr--3
\font_helpers_preset_math_family_indeed ...csname
  \scriptfont #1\csname \??f...
\font_helpers_set_math_family ...amily_indeed #1#2
  \else \font_helpers_set_ma...
\font_helpers_bidirectional_mathstrategy_nop ...r
  \textfont \c_font_fam_mr_r...
inserted text ...bidirectional_mathstrategy_nop
  \fi \font_helpers_apply_co...
\font_helpers_synchronize_math ...math_strategies
  \fi
...



(Not going to give in yet - but maybe, just maybe, I'll migrate couple
of centuries for now...)



Thank you again for your patience,

Mari
___
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] install older beta

2012-04-25 Thread Henning Hraban Ramm


Am 2012-04-24 um 23:57 schrieb luigi scarso:

On Tue, Apr 24, 2012 at 11:00 PM, Henning Hraban Ramm  
hra...@fiee.net wrote:



Any hints?


1) start with a new standalone on folder
~/workspace/context/standalone
Don't run
# . setuptex
ie
# source setuptex

2) put the repo under
~/workspace/context/git

3) search the commit  you need with git log
# git log
e.g
commit 47864ebdfe2d9916e365c2f278585a94879c813d
Author: Marius mariau...@gmail.com
Date:   Mon Jan 2 18:40:26 2012 +0200

   beta 2012.01.02 17:18

4) build a zip
# git archive --format=zip -v -o 'beta_2012_01_02_17_18.zip'
47864ebdfe2d9916e365c2f278585a94879c813d


--format zip (without =)



5) replace all the files under
~/workspace/context/standalone/tex/texmf-context
with the content of beta_2012_01_02_17_18.zip

6) now run setuptex:
# cd ~/workspace/context/standalone/tex
# . setuptex
or
# source setuptex

7) rebuild the format and the font cache
#context --generate
## mtxrun --script fonts --reload

Update the repo with git pull, maybe with a  daily cron.


Thank you very much!

Of course a made a little script for that; parsing of the log to get  
the beta of a specified date is still missing; browsing GitX is easier.


Up to now I didn’t find a working version, though. :-(


Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] install older beta

2012-04-25 Thread luigi scarso
On Wed, Apr 25, 2012 at 9:55 PM, Henning Hraban Ramm
fiee.visue...@gmail.com wrote:

 Am 2012-04-24 um 23:57 schrieb luigi scarso:


 On Tue, Apr 24, 2012 at 11:00 PM, Henning Hraban Ramm hra...@fiee.net
 wrote:

 Any hints?


 1) start with a new standalone on folder
 ~/workspace/context/standalone
 Don't run
 # . setuptex
 ie
 # source setuptex

 2) put the repo under
 ~/workspace/context/git

 3) search the commit  you need with git log
 # git log
 e.g
 commit 47864ebdfe2d9916e365c2f278585a94879c813d
 Author: Marius mariau...@gmail.com
 Date:   Mon Jan 2 18:40:26 2012 +0200

   beta 2012.01.02 17:18

 4) build a zip
 # git archive --format=zip -v -o 'beta_2012_01_02_17_18.zip'
 47864ebdfe2d9916e365c2f278585a94879c813d


 --format zip (without =)

All  commands  was tested and they work on my Linux box; my man git archive says

OPTIONS
   --format=fmt
   Format of the resulting archive: tar or zip. If this option
is not given, and the output file is specified, the format is inferred
from the filename if possible (e.g. writing to foo.zip makes the
output to be in the
   zip format). Otherwise the output format is tar.

   -l, --list
   Show all available formats.

   -v, --verbose
   Report progress to stderr.

   --prefix=prefix/
   Prepend prefix/ to each filename in the archive.

   -o file, --output=file
   Write the archive to file instead of stdout.


 Up to now I didn’t find a working version, though. :-(
binary try from 2010-05-24 13:10 to the last one broken

-- 
luigi
___
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] install older beta

2012-04-25 Thread Henning Hraban Ramm

Am 2012-04-25 um 22:15 schrieb luigi scarso:


# git archive --format=zip -v -o 'beta_2012_01_02_17_18.zip'
47864ebdfe2d9916e365c2f278585a94879c813d

--format zip (without =)


All  commands  was tested and they work on my Linux box; my man git  
archive says


OPTIONS
  --format=fmt


True, but
$ git archive
usage: git archive [options] tree-ish [path...]
   or: git archive --list
   or: git archive --remote repo [--exec cmd] [options] tree- 
ish [path...]

   or: git archive --remote repo [--exec cmd] --list

--format fmtarchive format
--prefix prefix prepend prefix to each pathname in the  
archive

-o, --output file   write the archive to this file
--worktree-attributes
  read .gitattributes in working directory
-v, --verbose report archived files on stderr
-0store only
-1compress faster
-9compress better

-l, --listlist supported archive formats

--remote repo   retrieve the archive from remote repository  
repo

--exec cmd  path to the remote git-upload-archive command



Up to now I didn’t find a working version, though. :-(

binary try from 2010-05-24 13:10 to the last one broken


I accidentally used the -u option of unzip, so never really got older  
files. :-(


The version from 2011-11-29 now works for me - I knew it did in begin  
of november, so I started trying there.


I still have to try newer versions; 2011-12-23 is already broken WRT  
imposition.


Of course I had to revert my setup changes (- \setupnotation was  
\setupfootnotes, alternative was location in some places).




Greetlings, Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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] install older beta

2012-04-25 Thread luigi scarso
On Wed, Apr 25, 2012 at 10:37 PM, Henning Hraban Ramm hra...@fiee.net wrote:
 Am 2012-04-25 um 22:15 schrieb luigi scarso:


 # git archive --format=zip -v -o 'beta_2012_01_02_17_18.zip'
 47864ebdfe2d9916e365c2f278585a94879c813d

 --format zip (without =)


 All  commands  was tested and they work on my Linux box; my man git
 archive says

 OPTIONS
      --format=fmt


 True, but
 $ git archive
 usage: git archive [options] tree-ish [path...]
   or: git archive --list
   or: git archive --remote repo [--exec cmd] [options] tree-ish
 [path...]
   or: git archive --remote repo [--exec cmd] --list

    --format fmt        archive format
    --prefix prefix     prepend prefix to each pathname in the archive
    -o, --output file   write the archive to this file
    --worktree-attributes
                          read .gitattributes in working directory
    -v, --verbose         report archived files on stderr
    -0                    store only
    -1                    compress faster
    -9                    compress better

    -l, --list            list supported archive formats

    --remote repo       retrieve the archive from remote repository repo
    --exec cmd          path to the remote git-upload-archive command


yes, but traditionally is
--long_option=value
-option value
http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html
Given that both work, I prefer this style.

-- 
luigi
___
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] Example only works in mkii

2012-04-25 Thread Bill Meahan

Hi, folks.

I've tried running the example from the descriptions article on the 
wiki and it works fine if I use MkII via texexec but fails miserably 
if I use MlIV via context.  Outside of changing location to 
alternative in the \definedescription command parameters, what else do 
I need to change to make the example run with MkIV?


TIA!

--
Bill Meahan K8QN

Cat: n; A purr-bearing mammal

___
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] Referncing the Bibliography Appendix

2012-04-25 Thread Kip Warner
Hey list,

How do I set a reference to my bibliography. I don't mean a citation,
but the complete list. I have a \completepublications already which
dumps the list properly, but I cannot link to it. I tried
\in{appendix}[References] and \in{appendix}[Publications], but neither
works.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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
___