Re: [NTG-context] handouts blank

2011-05-02 Thread Otared Kavian
Hi Adam,

I tested your code both with mkii and mkiv, and everything seems to work 
correctly, both with frame= on or off.
As a matter of fact, I learned from the piece of your code

\setuppapersize
 [A4][A4] % or [A4,landscape][A4,landscape]

\setuplayout
 [header=0pt,footer=1cm,backspace=1cm,topspace=1cm,width=middle,height=middle]

\setupfootertexts
 [presentation---\currentdate\space---\space\pagenumber]

\starttext
 \combinepages[slides][nx=2,ny=3,frame=on]
% or
%  \combinepages[slides.pdf][nx=2,ny=3,frame=on]
\stoptext

that independently of the SimpleSlides module one can combine any PDF file in a 
handout… Thanks very much! 
I added on the wiki a page for this:
http://wiki.contextgarden.net/handout

Best regards: OK

On 1 mai 2011, at 22:45, Reviczky, Adam wrote:

 I'm trying to make some (mkiv) handouts from my simpleslides presentation.
 Unfortunately the resulting pdf is blank for the slides, no frames either. 
 Can someone give me an example that works?
 
 So I just ran tested it with mkii, and there it works.
 Is there any mkiv way for doing a handout?
 
 Adam
 ___
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




___
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] Custom cite commands

2011-05-02 Thread Oliver Buerschaper
Dear all,

I'm in need for a few custom cite commands like these:

1. \cite[alternative=authortitle, extras={, p.\,13}][citekey] should yield

{\sc AuthorLastName}, AuthorFirstName, {\it title}, p.\,13

2. \cite[alternative=title][citekey]

{\it title}

How would I code these commands?

Oliver
___
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] Bibliography question: one list of references per chapter and one overall list

2011-05-02 Thread Renald Buter
Hello all,

I am currently making up my thesis in ConTeXt. And I am thoroughly impressed 
with
the professional looking result I already have, although I have only recently 
started 
using ConTeXt.

Now, I have a question regarding reference lists: I would like to have one
list per chapter (which are original research papers), but also one big list at 
the end of
the thesis, as a separate chapter, containing all unique references in whole 
thesis.

At the moment, I'm using the bib module. This works perfectly if I compile 
every single
chapter separately (i.e. 'texexec chapter01.tex', for example). However, if I 
compile
the whole component (i.e. 'texexec thesis.tex'), I obviously get at every 
chapter the
same reference list, regardless whether the references were cited in that 
particular
chapter.

Does anyone have suggestions on how to accomplish this (if at all possible)?

With kind regards,

Renald
___
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] handouts blank

2011-05-02 Thread Reviczky, Adam
 I tested your code both with mkii and mkiv, and everything seems to work 
 correctly, both with frame= on or off.

What version of context/luatex do you use?
I suspect its a problem in luatex, but I have to experiment with it more.

I'm using context beta 2011.04.24 with luatex svn rev 4232, but I'm updating to 
the latest to test it again.

Adam
___
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] t-filter: no table created when Unicode characters are included

2011-05-02 Thread Paul Menzel
Am Sonntag, den 01.05.2011, 15:09 -0400 schrieb Aditya Mahajan:
 On Sun, 1 May 2011, Aditya Mahajan wrote:
 
  On Sun, 1 May 2011, Peter Münster wrote:
 
  So, whatever the original enviroment is, context and/or luatex sets
  LC_COLLATE=C
  LC_CTYPE=C
  LC_NUMERIC=C
 
  Confirmed. Now the question is, why does this cause pandoc to behave 
  strangely.
 
 Perhaps due to a old bug in pandoc
 http://code.google.com/p/pandoc/issues/detail?id=233
 http://www.readmespot.com/question/f/163755/pandoc-locale-problems
 
 This was fixed in pandoc 1.6 that is why I don't see it. Paul, you will 
 have to manually update pandoc.

Thank you very much for all your help. I will wait for the updated
Pandoc and retest. In the mean time I am going to use t-rst.


Thanks,

Paul


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
___

Re: [NTG-context] handouts blank

2011-05-02 Thread Otared Kavian
Hi Adam,

Sorry for not having indicated the versions…
Here they are:
mkiv: ConTeXt  ver: 2011.04.30 17:02 MKIV, LuaTeX version: This is LuaTeX, 
Version beta-0.66.0-2011041318 (rev 4144)

mkii: ConTeXt  ver: 2011.04.30 17:02 MKII

All this on Mac OS X 10.6.7, using the Minimals.

Best regards: OK

On 2 mai 2011, at 17:19, Reviczky, Adam wrote:

 I tested your code both with mkii and mkiv, and everything seems to work 
 correctly, both with frame= on or off.
 
 What version of context/luatex do you use?
 I suspect its a problem in luatex, but I have to experiment with it more.
 
 I'm using context beta 2011.04.24 with luatex svn rev 4232, but I'm updating 
 to the latest to test it again.
 
 Adam
 ___
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




___
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] Line break in verbatim

2011-05-02 Thread Aditya Mahajan

Hi,

Why does verbatim text not line break properly.

\setuppapersize[A5]
\showframe

\starttext
% hyphenate is not the right word here; but illustrates the problem

\type{a very very long line to see if it hyphenates or not, that can 
require a lot oftyping phew}.

\stoptext

Also, it is possible to completely prevent line breaks for \type.

Aditya
___
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] Error running compiling with ConTeXt MKII

2011-05-02 Thread Isaac Mulolani
Hi,

I am new to context trying to compile my first few files. Last week I posted a 
message requesting help to which Taco responded. As a result, I reinstalled my 
TeXLive 2010 version and followed the post-installation steps in the TeXLive 
documentation. I have a demo file(attached to this post) that I wanted to test 
out. I used Texworks and ran ContXt(MKII) from the menu. Below is my result.
=
  This is XeTeX, Version 3.1415926-2.2-0.9997.4 (Web2C 2010) (format=cont-en 
2011.5.2)  2 MAY 2011 12:11
entering extended mode
restricted \write18 enabled.
%-line parsing enabled.
**demo.tex \\emergencyend
(./demo.tex

systems : BEWARE: syntex functionality is enabled!


ConTeXt  ver: 2010.05.24 13:05 MKII  fmt: 2011.5.2  int: english/english

system  : cont-new loaded
(c:/texlive/2010/texmf-dist/tex/context/base/cont-new.tex

FatalError  : Your format does not match the base files!

FormatVersion   : 2010.05.24 13:05 MKII
FilesVersion: 2010.07.30 11:35

) )
Here is how much of TeX's memory you used:
46 strings out of 459576
740 string characters out of 2586072
4495618 words of memory out of 700
38312 multiletter control sequences out of 15000+20
7 words of font info for 0 fonts, out of 300 for 9000
304 hyphenation exceptions out of 8191
20i,0n,15p,163b,401s stack positions out of 5000i,500n,1p,20b,5s

No pages of output.

Before I ran this, I had also used the tlmgr to connect to 
tlcontrib.metatex.org/2010 to get the modules from there.
Is there something I am missing to be able to get the result? How do I make 
sure that I am using the right format for a given document?

Isaac Mulolani | Online Learning Consultant
CENTRE FOR EXTENDED LEARNING
UNIVERSITY OF WATERLOO
Waterloo, Ontario, Canada N2L 3G1
519.888.4567 x34932
extendedlearning.uwaterloo.camailto:extendedlearning.uwaterloo.ca
imulo...@uwaterloo.camailto:%20imulo...@uwaterloo.ca




demo.tex
Description: demo.tex
___
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] Error running compiling with ConTeXt MKII

2011-05-02 Thread Mojca Miklavec
On Mon, May 2, 2011 at 18:29, Isaac Mulolani wrote:
 Hi,

 I am new to context trying to compile my first few files. Last week I posted
 a message requesting help to which Taco responded. As a result, I
 reinstalled my TeXLive 2010 version and followed the post-installation steps
 in the TeXLive documentation. I have a demo file(attached to this post) that
 I wanted to test out. I used Texworks and ran ContXt(MKII) from the menu.
 Below is my result.

There is a chance that you have a version of cont-en.fmt file at some
unexpected place.

At least one of the following commands should solve your problem:
- fmtutil-sys --byfmt cont-en
- fmtutil --byfmt cont-en
- texexec --xtx --make

If none of them does, you first need to find a file
web2/xetex/cont-en.fmt sowhere on your disk, delete it and try out
fmtutil again (or texexec --xtx --make).

However neither TeX Live nor minimals contain taspresent module (which
means that you wouldn't be able to compile the file anyway unless you
manually add the module) and I'm not sure that I know why not.

Mojca
___
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] Error running compiling with ConTeXt MKII

2011-05-02 Thread Isaac Mulolani
Hi Majorca

Thanks for your hints. I actually used the tlmgr to add the modules from 
tlcontrib.metatex.org/2010 which includes taspresent. I did try the commands 
you gave and none of them seem to work on my system. I may need to locate the 
web2/xetex/cont-en.fmt as you suggested.


Isaac Mulolani | Online Learning Consultant
CENTRE FOR EXTENDED LEARNING
UNIVERSITY OF WATERLOO
Waterloo, Ontario, Canada N2L 3G1
519.888.4567 x34932
extendedlearning.uwaterloo.ca
imulo...@uwaterloo.ca



-Original Message-
From: ntg-context-boun...@ntg.nl [mailto:ntg-context-boun...@ntg.nl] On Behalf 
Of Mojca Miklavec
Sent: Monday, May 02, 2011 1:05 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] Error running compiling with ConTeXt MKII

On Mon, May 2, 2011 at 18:29, Isaac Mulolani wrote:
 Hi,

 I am new to context trying to compile my first few files. Last week I posted
 a message requesting help to which Taco responded. As a result, I
 reinstalled my TeXLive 2010 version and followed the post-installation steps
 in the TeXLive documentation. I have a demo file(attached to this post) that
 I wanted to test out. I used Texworks and ran ContXt(MKII) from the menu.
 Below is my result.

There is a chance that you have a version of cont-en.fmt file at some
unexpected place.

At least one of the following commands should solve your problem:
- fmtutil-sys --byfmt cont-en
- fmtutil --byfmt cont-en
- texexec --xtx --make

If none of them does, you first need to find a file
web2/xetex/cont-en.fmt sowhere on your disk, delete it and try out
fmtutil again (or texexec --xtx --make).

However neither TeX Live nor minimals contain taspresent module (which
means that you wouldn't be able to compile the file anyway unless you
manually add the module) and I'm not sure that I know why not.

Mojca
___
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
___
___
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] handouts blank

2011-05-02 Thread Reviczky, Adam
Upgrading to the latest context beta (2011.05.01) solved the problem.

Adam
___
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] Error running compiling with ConTeXt MKII

2011-05-02 Thread Thomas Schmitz

On Mon, 2 May 2011 17:23:37 +
 Isaac Mulolani imulol...@uwaterloo.ca wrote:

Hi Majorca

Thanks for your hints. I actually used the tlmgr to add 
the modules from tlcontrib.metatex.org/2010 which 
includes taspresent. I did try the commands you gave and 
none of them seem to work on my system. I may need to 
locate the web2/xetex/cont-en.fmt as you suggested.



Hi Ismael,

for starters, call texexec from the command line, not from 
within an editor, this will give you more info and will 
make it easier to help. Giving us the output of


which texexec

and

kpsewhere -engine=/ cont-en.fmt

might already be helpful. And don't use the taspresent 
module, it has been superseded by simpleslides.


Good luck

Thomas
___
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] simpleslides + combinepages != qpdf

2011-05-02 Thread Reviczky, Adam
Hi

Here's another qpdf problem I've encountered lately. Not sure if it's ConTeXt's 
fault (simpleslides perhaps?) or qpdf.

Given the following very minimalistic examples:
% slides.tex
\usemodule[simpleslides][style=BigNumber,font=Helvetica]
\starttext
\placeTitle
\stoptext

%handout.tex
\setuppapersize
  [A4][A4] % or [A4,landscape][A4,landscape]
\setuplayout
  [header=0pt,footer=1cm,backspace=1cm,topspace=1cm,width=middle,height=middle]
\setupfootertexts
  [presentation---\currentdate\space---\space\pagenumber]
\starttext
  \combinepages[slides][nx=2,ny=3,frame=on]
\stoptext

context slides.tex  qpdf --linearize slides.pdf slidesout.pdf
= results in the expected outputs

context handout.tex
= compiles fine and output is as expected

qpdf --linearize handout.pdf handoutout.pdf
= aborts with the following error:
object stream 21 (object 31 0, file position 1601): unknown token while reading 
object (nullnullnullnull)

All with context beta 2011.05.01 and luatex r4233

Can anyone confirm this? Any thoughts?

Adam
___
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] handouts blank

2011-05-02 Thread Otared Kavian

On 2 mai 2011, at 19:44, Reviczky, Adam wrote:

 Upgrading to the latest context beta (2011.05.01) solved the problem.
 
 Adam

Nice to know this!

Best regards: OK
___
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] simpleslides + combinepages != qpdf

2011-05-02 Thread Aditya Mahajan

On Mon, 2 May 2011, Reviczky, Adam wrote:


Hi

Here's another qpdf problem I've encountered lately. Not sure if it's ConTeXt's 
fault (simpleslides perhaps?) or qpdf.


Does the problem appear if you use do not use simpleslides? If not, does 
it appear if you use style=default? This will help narrowing down the 
cause.


Aditya
___
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] simpleslides + combinepages != qpdf

2011-05-02 Thread Reviczky, Adam
 Does the problem appear if you use do not use simpleslides? If not, does 
 it appear if you use style=default? This will help narrowing down the 
 cause.

I've tried a Hello world file and also a non-simpleslides presentation tex 
file, all of them work.

So it seems it's simpleslides and yeah, you where right, it's the styles.
I'm using Split for my presentation and as for the minimal I've provided 
BigNumber, both fail at some point.
Using style=default, does not have this problem with qpdf.

I'm still trying out different styles and different slide content ...

Adam
___
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] simpleslides + combinepages != qpdf

2011-05-02 Thread Reviczky, Adam
Hmm, well, I can reproduce this on my presentation even with style=default ...

Adam
___
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] Line break in verbatim

2011-05-02 Thread Wolfgang Schuster

Am 02.05.2011 um 18:19 schrieb Aditya Mahajan:

 Hi,
 
 Why does verbatim text not line break properly.
 
 \setuppapersize[A5]
 \showframe
 
 \starttext
 % hyphenate is not the right word here; but illustrates the problem
 
 \type{a very very long line to see if it hyphenates or not, that can require 
 a lot oftyping phew}.
 \stoptext

You can get a better result with “\setuptype[space=stretch]” but only the 
“stretch”
keyword for \setupalign/\setuptolerance prevents a overfull line in your 
example.

 Also, it is possible to completely prevent line breaks for \type.

\setuptype[space=fixed]

You can also put the text in a \hbox with “\setuptype[command=\hbox]”.
The command key from \setuptype is special because it accepts only
box commands (\hbox, \vbox, \framed …).

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] simpleslides + combinepages != qpdf

2011-05-02 Thread Reviczky, Adam
Right, I have a feeling that this is MetaPost related, hence the random 
problems with different styles.

I can reproduce this now without simpleslides too, using only metapost.

Here's a minimal example:

Get logo_ignite.mp from: http://pastebin.com/raw.php?i=VqvcWniu

% slides.tex
\startreusableMPgraphic{ignite}
  input logo_ignite;
\stopreusableMPgraphic
\starttext
\reuseMPgraphic{ignite}
\stoptext

%handout.tex
\setuppapersize
  [A4][A4] % or [A4,landscape][A4,landscape]
\setuplayout
  [header=0pt,footer=1cm,backspace=1cm,topspace=1cm,width=middle,height=middle]
\setupfootertexts
  [presentation---\currentdate\space---\space\pagenumber]
\starttext
  \combinepages[slides][nx=2,ny=3,frame=on]
\stoptext

context slides.tex  context handout.tex  qpdf --linearize handout.pdf 
out.pdf

results in:
object stream 21 (object 31 0, file position 1547): unknown token while reading 
object (nullnullnullnull)

ConTeXt  ver: 2011.05.01 12:50 MKIV  fmt: 2011.5.2  int: english/english
mkiv lua stats   luatex banner - this is luatex, version 
beta-0.71.0-2011050213 (rev 4233)

Adam
___
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] simpleslides + combinepages != qpdf

2011-05-02 Thread Hartmut Henkel
On Mon, 2 May 2011, Reviczky, Adam wrote:

 Right, I have a feeling that this is MetaPost related, hence the random 
 problems with different styles.

 I can reproduce this now without simpleslides too, using only metapost.

 Here's a minimal example:

 Get logo_ignite.mp from: http://pastebin.com/raw.php?i=VqvcWniu

 % slides.tex
 \startreusableMPgraphic{ignite}
   input logo_ignite;
 \stopreusableMPgraphic
 \starttext
 \reuseMPgraphic{ignite}
 \stoptext

 %handout.tex
 \setuppapersize
   [A4][A4] % or [A4,landscape][A4,landscape]
 \setuplayout
   
 [header=0pt,footer=1cm,backspace=1cm,topspace=1cm,width=middle,height=middle]
 \setupfootertexts
   [presentation---\currentdate\space---\space\pagenumber]
 \starttext
   \combinepages[slides][nx=2,ny=3,frame=on]
 \stoptext

 context slides.tex  context handout.tex  qpdf --linearize handout.pdf 
 out.pdf

 results in:
 object stream 21 (object 31 0, file position 1547): unknown token while 
 reading object (nullnullnullnull)

 ConTeXt  ver: 2011.05.01 12:50 MKIV  fmt: 2011.5.2  int: english/english
 mkiv lua stats   luatex banner - this is luatex, version 
 beta-0.71.0-2011050213 (rev 4233)

seems to be a bug in luatex beta-0.71.0-2011050213 (rev 4233).
Checking...

Regards, Hartmut
___
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] simpleslides + combinepages != qpdf

2011-05-02 Thread Hartmut Henkel
On Mon, 2 May 2011, Hartmut Henkel wrote:

 On Mon, 2 May 2011, Reviczky, Adam wrote:

  Right, I have a feeling that this is MetaPost related, hence the random 
  problems with different styles.
 
  I can reproduce this now without simpleslides too, using only metapost.
 
  Here's a minimal example:
 
  Get logo_ignite.mp from: http://pastebin.com/raw.php?i=VqvcWniu
 
  % slides.tex
  \startreusableMPgraphic{ignite}
input logo_ignite;
  \stopreusableMPgraphic
  \starttext
  \reuseMPgraphic{ignite}
  \stoptext
 
  %handout.tex
  \setuppapersize
[A4][A4] % or [A4,landscape][A4,landscape]
  \setuplayout

  [header=0pt,footer=1cm,backspace=1cm,topspace=1cm,width=middle,height=middle]
  \setupfootertexts
[presentation---\currentdate\space---\space\pagenumber]
  \starttext
\combinepages[slides][nx=2,ny=3,frame=on]
  \stoptext
 
  context slides.tex  context handout.tex  qpdf --linearize handout.pdf 
  out.pdf
 
  results in:
  object stream 21 (object 31 0, file position 1547): unknown token while 
  reading object (nullnullnullnull)
 
  ConTeXt  ver: 2011.05.01 12:50 MKIV  fmt: 2011.5.2  int: english/english
  mkiv lua stats   luatex banner - this is luatex, version 
  beta-0.71.0-2011050213 (rev 4233)

 seems to be a bug in luatex beta-0.71.0-2011050213 (rev 4233).
 Checking...

found it: There were 4 null objects in an ObjStm in handout.pdf, stored
now compress: nullnullnullnull (not yet so in 0.70.x). Each null
object has a correct pointer to its begin (the 'n'), so one should
suppose that an object ends at the character ('l') just before the start
('n') of the next null object. Like in the TeX string pool.

But qpdf gives an error about a nullnullnullnull object (fully
ignoring the start of the 2nd null object!), and also Adobe Reader 9
quits with an error. Interestingly xpdf displays the file handout.pdf
without any problem. The problem is fixed by adding a space at to the
end of each object within an ObjStm, so there is now null null null
null, see SVN 4242. No comment in the PDF Ref. on this. Looks like a
flaw in qpdf and the Reader?

Regards, Hartmut
___
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] simpleslides + combinepages != qpdf

2011-05-02 Thread Reviczky, Adam
 found it: There were 4 null objects in an ObjStm in handout.pdf, stored
 now compress: nullnullnullnull (not yet so in 0.70.x). Each null
 object has a correct pointer to its begin (the 'n'), so one should
 suppose that an object ends at the character ('l') just before the start
 ('n') of the next null object. Like in the TeX string pool.
 
 But qpdf gives an error about a nullnullnullnull object (fully
 ignoring the start of the 2nd null object!), and also Adobe Reader 9
 quits with an error. Interestingly xpdf displays the file handout.pdf
 without any problem. The problem is fixed by adding a space at to the
 end of each object within an ObjStm, so there is now null null null
 null, see SVN 4242. No comment in the PDF Ref. on this. Looks like a
 flaw in qpdf and the Reader?
 
 Regards, Hartmut

Thanks Hartmut for fixing this!

On another note I can't seem to compile the latest trunk anymore, it fails with:

...
mv -f .deps/libluatex_a-writejp2.Tpo .deps/libluatex_a-writejp2.Po
CWEBINPUTS=../../../source/texk/web2c/luatexdir/image 
TEXMFCNF=../../../source/texk/web2c/../kpathsea ./ctangle writepng.w
This is CTANGLE, Version 3.64 (TeX Live 2011)

Writing the output file (writepng.c):.500.
Done.
(No errors were found.)
gcc -DHAVE_CONFIG_H -I. -I../../../source/texk/web2c -I./w2c  
-I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/build/texk
 
-I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/source/texk
 -DNO_DEBUG  -I/usr/include/libpng12   -DPOPPLER_VERSION=\0.16.4\ 
-I/usr/include/poppler   
-I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/build/libs/obsdcompat
 
-I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/source/libs/obsdcompat
 -I../../../source/texk/web2c/libmd5 -I../../../source/texk/web2c/luatexdir 
-I../../../source/texk/web2c/luatexdir/lua51 -DpdfTeX 
-I../../../source/texk/web2c/synctexdir -DSYNCTEX_ENGINE_H='synctex-luatex.h' 
 -Wall -Wunused -Wimplicit -Wreturn-type -Wdeclaration-after-statement 
-Wno-unknown-pragmas -Wmissing-prototypes -Wmissing-declarations -g -Wall -O2 
-Wdeclaration-after-statement -MT libluatex_a-writepng.o -MD -MP -MF 
.deps/libluatex_a-writepng.Tpo -c -o libluatex_a-writepng.o `test -f 
'writepng.c' || echo '../../../source/texk/web2c/'`writepng.c
../../../source/texk/web2c/luatexdir/image/writepng.w: In function ‘write_png’:
../../../source/texk/web2c/luatexdir/image/writepng.w:558:19: error: ‘PNG_FP_1’ 
undeclared (first use in this function)
../../../source/texk/web2c/luatexdir/image/writepng.w:558:19: note: each 
undeclared identifier is reported only once for each function it appears in
make[1]: *** [libluatex_a-writepng.o] Error 1
make[1]: Leaving directory 
`/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/build/texk/web2c'
luatex binary not stripped
ls: cannot access build/texk/web2c/luatex: No such file or directory
make: *** [build-stamp] Error 2
...

Is that a problem on my end?

Adam
___
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] Line break in verbatim

2011-05-02 Thread Aditya Mahajan

On Mon, 2 May 2011, Wolfgang Schuster wrote:



Am 02.05.2011 um 18:19 schrieb Aditya Mahajan:


Hi,

Why does verbatim text not line break properly.

\setuppapersize[A5]
\showframe

\starttext
% hyphenate is not the right word here; but illustrates the problem

\type{a very very long line to see if it hyphenates or not, that can require a 
lot oftyping phew}.
\stoptext


You can get a better result with “\setuptype[space=stretch]” but only the 
“stretch”
keyword for \setupalign/\setuptolerance prevents a overfull line in your 
example.


Thanks. I was looking for space=stretch (I did not want to change the 
global tolerance)



Also, it is possible to completely prevent line breaks for \type.


\setuptype[space=fixed]

You can also put the text in a \hbox with “\setuptype[command=\hbox]”.
The command key from \setuptype is special because it accepts only
box commands (\hbox, \vbox, \framed …).


I don't see why that is the case. Looking at the code, it appears that any 
option for command should work (that is not reset by \tf\tt). For example, 
command=\underbar works as expected.


Aditya___
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] simpleslides + combinepages != qpdf

2011-05-02 Thread Hartmut Henkel
On Tue, 3 May 2011, Reviczky, Adam wrote:

  found it: There were 4 null objects in an ObjStm in handout.pdf, stored
  now compress: nullnullnullnull (not yet so in 0.70.x). Each null
  object has a correct pointer to its begin (the 'n'), so one should
  suppose that an object ends at the character ('l') just before the start
  ('n') of the next null object. Like in the TeX string pool.
 
  But qpdf gives an error about a nullnullnullnull object (fully
  ignoring the start of the 2nd null object!), and also Adobe Reader 9
  quits with an error. Interestingly xpdf displays the file handout.pdf
  without any problem. The problem is fixed by adding a space at to the
  end of each object within an ObjStm, so there is now null null null
  null, see SVN 4242. No comment in the PDF Ref. on this. Looks like a
  flaw in qpdf and the Reader?
 
  Regards, Hartmut

 Thanks Hartmut for fixing this!

 On another note I can't seem to compile the latest trunk anymore, it fails 
 with:

 ...
 mv -f .deps/libluatex_a-writejp2.Tpo .deps/libluatex_a-writejp2.Po
 CWEBINPUTS=../../../source/texk/web2c/luatexdir/image 
 TEXMFCNF=../../../source/texk/web2c/../kpathsea ./ctangle writepng.w
 This is CTANGLE, Version 3.64 (TeX Live 2011)

 Writing the output file (writepng.c):.500.
 Done.
 (No errors were found.)
 gcc -DHAVE_CONFIG_H -I. -I../../../source/texk/web2c -I./w2c  
 -I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/build/texk
  
 -I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/source/texk
  -DNO_DEBUG  -I/usr/include/libpng12   -DPOPPLER_VERSION=\0.16.4\ 
 -I/usr/include/poppler   
 -I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/build/libs/obsdcompat
  
 -I/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/source/libs/obsdcompat
  -I../../../source/texk/web2c/libmd5 -I../../../source/texk/web2c/luatexdir 
 -I../../../source/texk/web2c/luatexdir/lua51 -DpdfTeX 
 -I../../../source/texk/web2c/synctexdir 
 -DSYNCTEX_ENGINE_H='synctex-luatex.h'  -Wall -Wunused -Wimplicit 
 -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas 
 -Wmissing-prototypes -Wmissing-declarations -g -Wall -O2 
 -Wdeclaration-after-statement -MT libluatex_a-writepng.o -MD -MP -MF 
 .deps/libluatex_a-writepng.Tpo -c -o libluatex_a-writepng.o `test -f 
 'writepng.c' || echo '../../../source/texk/web2c/'`writepng.c
 ../../../source/texk/web2c/luatexdir/image/writepng.w: In function 
 ‘write_png’:
 ../../../source/texk/web2c/luatexdir/image/writepng.w:558:19: error: 
 ‘PNG_FP_1’ undeclared (first use in this function)
 ../../../source/texk/web2c/luatexdir/image/writepng.w:558:19: note: each 
 undeclared identifier is reported only once for each function it appears in
 make[1]: *** [libluatex_a-writepng.o] Error 1
 make[1]: Leaving directory 
 `/home/reviczky/Downloads/test/luatex-dir/luatex-0.70.0~svn201105022255r{revno}/build/texk/web2c'
 luatex binary not stripped
 ls: cannot access build/texk/web2c/luatex: No such file or directory
 make: *** [build-stamp] Error 2
 ...

 Is that a problem on my end?

the PNG_FP_1 i have added recently, it's defined in png.h. Must be some
configure problem, maybe system png.h is used instead of the one coming
with the libpng within luatex. i don't have the problem here. Sorry,
needs investigation...

Regards, Hartmut___
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] simpleslides + combinepages != qpdf

2011-05-02 Thread Reviczky, Adam
 the PNG_FP_1 i have added recently, it's defined in png.h. Must be some
 configure problem, maybe system png.h is used instead of the one coming
 with the libpng within luatex. i don't have the problem here. Sorry,
 needs investigation...

I was indeed using the system's libpng, my bad.
Strange though, that this comes out just now.

Anyhow, thanks.

Adam
___
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
___