[NTG-context] Unnumbered chapters before the ToC

2014-01-16 Thread Robert Blackstone
Dear all, 

Is there, in a book-project, a way to place unnumbered chapters, in casu 
Acknowledgements and Abstract, in the FrontMatter before the ToC, but still 
mentioned in the ToC?

(no idea why this would be required)
Thanks in advance for any advice,

Robert Blackstone
___
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] Problem with Standalone

2014-01-16 Thread hwitloc

Mojca, thank you very much for the detailed and informative information.

Regarding the native for cygwin Context, I am currently using TeXLive for 
Unix-ish Platforms.  So the Context In TeXLive for Unix platforms works or has 
been made to work on Cygwin at some step in the process by someone.  How is the 
TexLive version of ConTeXt prepared?   Using the same technique for the 
standalone to render it runnable on Cygwin like the TexLive version of Context, 
I should think.  What do you think?

Regards

Mojca Miklavec wrote:

 On Wed, Jan 15, 2014 at 6:17 AM, Henman wrote:
 
  I am trying to load the standalone but have ran into a problem.
 
  Platform:  cygwin on Windows XP
 
  Here is what I did to try to get it all loaded and setup:
 
  #1 rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
 sh ./first-setup.sh  || exit 3
 
  The following files are loaded:
receiving incremental file list
  bin/
  bin/cygiconv-2.dll
  bin/cygwin1.dll
  bin/kpathsea620.dll
  bin/lua52.dll
  bin/luatex.dll
  bin/mtx-update.lua
  bin/mtxrun.dll
  bin/mtxrun.exe
  bin/mtxrun.lua
  bin/rsync.exe
  bin/texlua.exe
 
 
  When you want to use context, you need to initialize the tree by typing:
 
  . /opt/context/tex/setuptex
 
  NOTE: there is no /opt/context/!!  It doesn't get loaded.
 
 
  Any ideas of what is wrong?  Any work around to get the proper tex 
  directory contents?
 
 We used to have cygwin-specific binaries, but dropped them after the
 volunteer who built them has lost the interest.
 
 Actually I would surprised if the distribution worked with cygwin
 out-of-the-box now that those binaries have been removed (probably a
 few years ago already) because we never tried to adapt any code, but I
 guess that Akira's native windows binaries should work just as well
 under cygwin's shell, so fixing this should be doable.
 
 There are two steps involved in syncronisation. The script
 first-setup.sh first determines the platform. In the good old days we
 used:
 
 # cygwin
 CYGWIN*)
 case $cpu in
 i*86) platform=cygwin ;;
 x86_64|ia64) platform=cygwin-64 ;;
 *) platform=unknown ;;
 esac ;;
 
 and recently switched to:
 
 CYGWIN*)
 case $cpu in
 i*86) platform=mswin ;; # cygwin, if we ever get native
 cygwin binaries
 x86_64|ia64) platform=mswin ;; # cygwin-64, likewise
 *) platform=unknown ;;
 esac ;;
 
 The script then fetches files from
 rsync -rlptv rsync://contextgarden.net/minimals/setup/$platform/bin .
 which apparently succeeds, but then the following step fails:
 
 mtxrun --script ./bin/mtx-update.lua --force --update
 --context=beta --platform=$platform --texroot=$CONTEXTROOT $@
 
 If this step actually ever worked, it might be that Hans' recent fixes
 to determine whether Windows is 64-bit or not, might have broken the
 functionality.
 
 In any case I'm almost sure that mtxrun fails to deliver proper
 binaries. Is there really no other output to be seen?
 
 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] Problem with Standalone

2014-01-16 Thread hwitloc
Hans Hagen pra...@wxs.nl wrote:

 On 1/15/2014 12:06 PM, hwit...@gmail.com wrote:
 
  Hans Hagen pra...@wxs.nl wrote:
 
  On 1/15/2014 7:56 AM, hwit...@gmail.com wrote:
 
 
 
  I am trying to load the standalone but have ran into a problem.
 
  Platform:  cygwin on Windows XP
 
  Here is what I did to try to get it all loaded and setup:
 
  #1 rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
   sh ./first-setup.sh  || exit 3
 
  The following files are loaded:
  receiving incremental file list
   bin/
   bin/cygiconv-2.dll
   bin/cygwin1.dll
   bin/kpathsea620.dll
   bin/lua52.dll
   bin/luatex.dll
   bin/mtx-update.lua
   bin/mtxrun.dll
   bin/mtxrun.exe
   bin/mtxrun.lua
   bin/rsync.exe
   bin/texlua.exe
 
 
  The above only populated /opt/context/bin
 
 
 
  Re: When you want to use context, you need to initialize the tree by 
  typing:
   . /opt/context/tex/setuptex
 
  NOTE: there is no /opt/context/!!  It doesn't get loaded.
 
  I mean there is no /opt/context/tex  so no /opt/context/tex/setuptex..
 
 
 
  Any ideas of what is wrong?  Any work around to get the proper tex 
  directory contents?
 
  Any suggestions are apprecaited.
 
  can you run ./firstsetup ?
 
 
  ../firstsetup.sh was ran and it was first setup that created and populated 
  the bin directory.  But nothing was done for a tex directory.
 
 then you need to figure out why it failed ... messages and so
 ... maybe an rsync issue (you can try to add prints to mtx-update.lua
 (but then also comment the first rsync in firstsetup so that it
 doesn't get overwritten)

Yes I am trying to find out.  That's why I sent the message in the first place.
I will endeaver to find out more inforation.

Is there a way to download a three without using rsync?  Perhaps a tarball or 
other archive format?

Regards
___
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] Problem with Standalone

2014-01-16 Thread Mojca Miklavec
On Thu, Jan 16, 2014 at 10:20 AM,  hwit...@gmail.com wrote:

 Mojca, thank you very much for the detailed and informative information.

 Regarding the native for cygwin Context, I am currently using TeXLive for 
 Unix-ish Platforms.  So the Context In TeXLive for Unix platforms works or 
 has been made to work on Cygwin at some step in the process by someone.  How 
 is the TexLive version of ConTeXt prepared?

The same as for all other platforms. Someone
(http://www.tug.org/texlive/build.html) had to compile the binaries on
cygwin. You can see the binaries here:

http://tug.org/svn/texlive/trunk/Master/bin/i386-cygwin/

The binaries are compiled once per year (actually a couple of times
withing a short period of time since there are always bugs or problems
revealed in the process).

 Using the same technique for the standalone to render it runnable on Cygwin 
 like the TexLive version of Context, I should think.  What do you think?

Someone would have to compile the binaries then. In addition to what's
already in TeX Live that means that whenever a new LuaTeX or MetaPost
gets released, the volunteer needs to run the compilation.

Is there any performance penalty when using native Windows binaries
rather than those for cygwin? Or doesn't it work at all? (Please not a
difference between broken binaries and broken installation process.
I'm asking for the case when installation would succeed.)

 Is there a way to download a tree without using rsync?  Perhaps a tarball or 
 other archive format?

Not any longer / not yet. But I could try to set it up again. But
given that your rsync works fine and it's just the update script
that's failing, I could also send you a bash scipt to run a bunch of
rsync commands instead of going through texlua.

Can you please try to download
http://minimals.contextgarden.net/setup/context-setup-mswin.zip, unzip
it, run first-setup.bat from cmd, move the files to where your cygwin
installation is and check whether it works at all from within the
cygwin shell? That is: if normal windows binaries work inside cygwin.
Depending on that we can act further. The easiest way would be to fix
the installation.

The other less trivial way means that either you or someone else with
sufficient motivation needs to be ready to keep compiling each new
release of luatex when it gets released. And I would need to adapt the
scripts (cygwin is more tricky because it's neither windows nor unix
and always needs an exception ;).

If you want to try building the binaries, do the following:
svn co http://svn.contextgarden.net/suite/build-binaries
cd build-binaries
./bin_update_src.sh
./bin_update_svn.sh
./bin_build.sh

(I would expect problems in the last step of ./bin_build.sh, when
copying the files due to the additional *.exe extension, but you may
ignore those. The main question is whether the binaries compile at
all.)

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] Compiling to EPUB

2014-01-16 Thread H. Özoguz

Looks like you should install a command line ?zip? program.
ePub is a zipped format.


Thanks, Hraban.

But what does that mean exactly, I have installed 7zip and besides that, 
Windows can natively zip any file. What exactly to do to install an 
command line zip program and to get over this error.


Best regards, Huseyin
___
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] Unnumbered chapters before the ToC

2014-01-16 Thread Robert Blackstone

On 16 Jan 2014, at 12:00 ,Robert Blackstone r.blackst...@planet.nl wrote:

 Dear all, 
 
 Is there, in a book-project, a way to place unnumbered chapters, in casu 
 Acknowledgements and Abstract, in the FrontMatter before the ToC, but still 
 mentioned in the ToC?
 etc.
Please forget this message. The problem is solved. (I assume this was re-posted 
because initially I used a wrong email address).
Robert Blackstone

___
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] Disable balancing of page bottoms

2014-01-16 Thread Joshua Krämer
Thanks, Marco, I have adopted your solution, which works fine.

Kind regards,
Joshua


___
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] Compiling to EPUB

2014-01-16 Thread Vladimir Lomov
Hello,
** H. Özoguz [2014-01-16 12:11:09 +0100]:

 Looks like you should install a command line ?zip? program.
 ePub is a zipped format.

 Thanks, Hraban.

 But what does that mean exactly, I have installed 7zip and besides that,
 Windows can natively zip any file. What exactly to do to install an command
 line zip program and to get over this error.

I didn't try to generate EPUB but may give some hints. First, 7zip
allows to create different kinds of archives, compressed or not and to
extract content of archive created in most popular formats.

Windows has built-in capability to natively opens zip archives BUT
not (AFAIR) to create them.

In your case context needs a program able to create an archive in ZIP.
Surprisingly there is program named 'zip.exe' (it is called that on
Windows) that context uses to create ZIP. You can download this program
on this site: http://www.info-zip.org/Zip.html

Next, you should place this program to a directory (aka folder on
Windows) mentioned in PATH variable.

---
WBR, Vladimir Lomov

-- 
Famous last words:
(1) Don't unplug it, it will just take a moment to fix.
(2) Let's take the shortcut, he can't see us from there.
(3) What happens if you touch these two wires tog--
(4) We won't need reservations.
(5) It's always sunny there this time of the year.
(6) Don't worry, it's not loaded.
(7) They'd never (be stupid enough to) make him a manager.
(8) Don't worry!  Women love it!
___
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] Compiling to EPUB

2014-01-16 Thread Henning Hraban Ramm

Am 2014-01-16 um 17:11 schrieb H. Özoguz h.oezo...@mmnetz.de:

 Looks like you should install a command line ?zip? program.
 ePub is a zipped format.
 
 Thanks, Hraban.
 But what does that mean exactly, I have installed 7zip and besides that, 
 Windows can natively zip any file. What exactly to do to install an command 
 line zip program and to get over this error.

See also Vladimir’s message.
7zip is not called as „zip“, but „7zip“, and Windows’ archiving capabilities 
are also not callable as „zip“, but ConTeXt’s script relies on an executable 
„zip“ and probably exactly the syntax of InfoZip that Vladimir told you to 
install.

Someone could also adapt the epub script to check the availability of a „zip“ 
command and fall back to „7zip“ or other.

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] Problem with Standalone

2014-01-16 Thread Hans Hagen

On 1/16/2014 10:23 AM, hwit...@gmail.com wrote:

Hans Hagen pra...@wxs.nl wrote:


On 1/15/2014 12:06 PM, hwit...@gmail.com wrote:


Hans Hagen pra...@wxs.nl wrote:


On 1/15/2014 7:56 AM, hwit...@gmail.com wrote:





I am trying to load the standalone but have ran into a problem.

Platform:  cygwin on Windows XP

Here is what I did to try to get it all loaded and setup:

#1 rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
  sh ./first-setup.sh  || exit 3

The following files are loaded:
 receiving incremental file list
bin/
bin/cygiconv-2.dll
bin/cygwin1.dll
bin/kpathsea620.dll
bin/lua52.dll
bin/luatex.dll
bin/mtx-update.lua
bin/mtxrun.dll
bin/mtxrun.exe
bin/mtxrun.lua
bin/rsync.exe
bin/texlua.exe



The above only populated /opt/context/bin




Re: When you want to use context, you need to initialize the tree by typing:
  . /opt/context/tex/setuptex

NOTE: there is no /opt/context/!!  It doesn't get loaded.


I mean there is no /opt/context/tex  so no /opt/context/tex/setuptex..




Any ideas of what is wrong?  Any work around to get the proper tex directory 
contents?


Any suggestions are apprecaited.


can you run ./firstsetup ?



../firstsetup.sh was ran and it was first setup that created and populated the 
bin directory.  But nothing was done for a tex directory.


then you need to figure out why it failed ... messages and so
... maybe an rsync issue (you can try to add prints to mtx-update.lua
(but then also comment the first rsync in firstsetup so that it
doesn't get overwritten)


Yes I am trying to find out.  That's why I sent the message in the first place.
I will endeaver to find out more inforation.

Is there a way to download a three without using rsync?  Perhaps a tarball or 
other archive format?


just download the regular (non cygwin) windows tree



--

-
  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] Compiling to EPUB

2014-01-16 Thread Marco Patzer
On 2014–01–16 Henning Hraban Ramm wrote:

 7zip is not called as „zip“, but „7zip“,

On my (Unix) machine it's called as “7z” not “7zip”. I don't know if
the binary name differs between the platforms.

 but ConTeXt’s script relies on an executable „zip“ and probably exactly the 
 syntax of InfoZip that Vladimir told you to install.
 
 Someone could also adapt the epub script to check the availability of a „zip“ 
 command and fall back to „7zip“ or other.

According to mtx-epub.lua “zip” or “7z” are used, whichever is
available. Maybe it makes sense to add “7zip” as well if the Windows
binary is really called “7zip” instead of “7z”.

I'm wondering why the OP didn't get the following message:
“no epub archive made, install one of: list of supported zippers”
which should be displayed if no supported zipper is found.

Doesn't LuaTeX ship with a zip library? Why is that one not used
instead?

Marco


signature.asc
Description: Digital 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] Compiling to EPUB

2014-01-16 Thread Jacob Peck


On 1/16/2014 2:41 PM, Marco Patzer wrote:


According to mtx-epub.lua “zip” or “7z” are used, whichever is
available. Maybe it makes sense to add “7zip” as well if the Windows
binary is really called “7zip” instead of “7z”.
It's 7z.exe on my machine, but it's not in PATH unless someone tells it 
to be... perhaps doing that would fix OP's problem?


--Jake

___
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] Problem with definelabel in recent standalone

2014-01-16 Thread Hans Hagen

On 1/15/2014 3:29 PM, Rik Kabel wrote:

The following code fails with the current standalone
(ConTeXt  ver: 2014.01.14 22:36 MKIV beta  fmt: 2014.1.14  int:
english/english), but works with TL2013:

\setuppapersize[A8][A8]
\definelabel   [Qb]
[
  text=,
  alternative=inright,
  way=bytext,
  headstyle=\ssxx,
  headcolor=darkgray,
]
\starttext
\Qb[labelname]This is some text.

As in \in[labelname].
\stoptext

The problem appears to be with the alternative= key, which I do not see
in the wiki for \definelabel but take to be the MKIV equivalent of the
location= key (as described on the wiki for \setupdescriptions and
presented in numerous examples on the mailing list). The location= key
appears to be ignored, although it does not otherwise fail, when used in
this snippet.

The example produces:

The same code in TL2013 produces:


Any clues about how to fix this will be greatefully accepted.


fixed in next beta


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


[NTG-context] latest beta

2014-01-16 Thread Thomas A. Schmitz

Hi,

the following test file gives an error with the latest beta:

\setupbodyfont[gentium,12pt]

\starttext
\buildtextaccent\greekdasia\greekalphamacron
\stoptext

it works with a somewhat older one (2013.12.30). The error is

! Missing number, treated as zero.

system   tex  error on line 5 in file /tmp/test.tex: Missing 
number, treated as zero ...


...

to be read again
\relax
\buildtextaccent ...umber \b_enco_accent )}\relax
  \ifcase 
\scratchcounter \e...

l.5 \buildtextaccent\greekdasia\greekalphamacron

I thought this pointed to enco-ini.mkiv, but the file is unchanged 
between these two versions, so I'm a bit baffled.


All best

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] Rotated table shifted on the layout

2014-01-16 Thread Joshua Krämer
Dear list!

In the following MWE, the table is shifted a bit.

\showframe
\starttext
Hello World!
\startplacetable [location={page, 90}, title=none]
\bTABLE [textwidth=\textheight]
\bTR
\bTD \input knuth \eTD
\bTD \input tufte \eTD 
\eTR
\eTABLE
\stopplacetable
\stoptext

Btw, without Hello World!, ConTeXt doesn't create a PDF file.

Kind regards,
Joshua Krämer


___
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] Rotated table shifted on the layout

2014-01-16 Thread Wolfgang Schuster

Am 17.01.2014 um 00:32 schrieb Joshua Krämer joshua.krae...@gmail.com:

 Dear list!
 
 In the following MWE, the table is shifted a bit.
 
 \showframe
 \starttext
 Hello World!
 \startplacetable [location={page, 90}, title=none]
\bTABLE [textwidth=\textheight]
   \bTR
   \bTD \input knuth \eTD
   \bTD \input tufte \eTD 
   \eTR
\eTABLE
 \stopplacetable
 \stoptext

\showframe

\starttext

\startplacetable [location={force,90,none}]
   \bTABLE [textwidth=\textheight]
\bTR
\bTD \input knuth \eTD
\bTD \input tufte \eTD 
\eTR
   \eTABLE
\stopplacetable

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