Re: [NTG-context] kpfonts, math, type 1 font

2014-01-06 Thread Elspeth McGullicuddy
Thanks for the quick answer.

I'm not completely sure about the "lua" files for math support that I
should use as "template".
The Palatino one I haven't found;
The Garamond-math one might be that: "mdugm-math.lfg:

return {
name = "mdugm-math",
version = "1.00",
comment = "Math fonts that complement URW Garamond.",
author = "Hans, Mojca, Aditya",
copyright = "ConTeXt development team",
mathematics = {
mapfiles = {
"mdugm.map",
"mkiv-base.map",
},
virtuals = {
["mdugm-rm"] = {
{ name = "file:ugmr8a", features = "virtualmath", main = true },
{ name = "mdugmr7m",  vector = "tex-mr", skewchar=0x7F },
{ name = "mdugmri7m", vector = "tex-mi", skewchar=0x7F },
{ name = "mdugmri7m", vector = "tex-it", skewchar=0x7F },
{ name = "mdugmm7m",  vector = "tex-bf", skewchar=0x7F },
{ name = "mdugmmi7m", vector = "tex-bi", skewchar=0x7F },
{ name = "mdugmr7y",  vector = "tex-sy",
skewchar=0x30, parameters = true },
{ name = "mdugmr7v",  vector = "tex-ex", extension = true },
{ name = "mdugmrma",  vector = "tex-ma" },
{ name = "mdugmrmb",  vector = "tex-mb" },
},
["mdugm-bf"] = {
{ name = "file:ugmm8a", features = "virtualmath", main = true },
{ name = "mdugmm7m",  vector = "tex-mr", skewchar=0x7F },
{ name = "mdugmmi7m", vector = "tex-mi", skewchar=0x7F },
{ name = "mdugmmi7m", vector = "tex-it", skewchar=0x7F },
{ name = "mdugmm7y",  vector = "tex-sy",
skewchar=0x30, parameters = true },
{ name = "mdugmm7v",  vector = "tex-ex", extension = true },
{ name = "mdugmmma",  vector = "tex-ma" },
{ name = "mdugmmmb",  vector = "tex-mb" },
}
}
}
}

In this example, I believe the files involved are tfm files
(ugmr8a.tfm, mdugmr7m.vf, in
http://packages.debian.org/squeeze/all/texlive-fonts-extra/filelist)

Note: the afm files of kpfonts are ziped in the doc directory.
And I've got vf files, 688 of them.

If you have other examples which I could be sure about, I'd be glad to
have them.

Regards,
Chris

On Tue, Jan 7, 2014 at 12:09 AM, Wolfgang Schuster
 wrote:
>
> Am 06.01.2014 um 19:56 schrieb Elspeth McGullicuddy 
> :
>
>> Hi everybody,
>> (best wishes for this new year by the way).
>>
>> There is this font:
>> http://www.ctan.org/pkg/kpfonts
>> Which is a postscript type 1 font, text and math.
>>
>> I've copied the files in the right places in the ${HOME}/texmf tree.
>> And a call to:
>> mtxrun --script fonts --list --all --pattern=*kp*, after a
>> mtxrun --script fonts --reload
>> seems to indicate that it is found by context all right.
>>
>> But now I haven't got the faintest idea on how to use it in a ConTEXt
>> document -- text + math.
>> My ConTEXt is beta not older than a fortnight.
>>
>> All examples I've found that could possibly apply were at least far
>> too complicate for my understanding, also likely outdated.
>
> Using a text font in type1-format is very easy, all you need is the afm and 
> the pfb-file.
>
> The font files are put in the tex folder and to use them in your document you 
> have to write a short typescript, below is a example how to use the urn 
> garamond font.
>
> \starttypescript [serif] [charter]
>   \setups[font:fallback:serif]
>   \definefontsynonym [Serif] [file:ugmr8a.afm] [features=complete]
> \stoptypescript
>
> \definetypeface [mainface] [rm] [serif] [charter] [default]
>
> \setupbodyfont[mainface]
>
> \starttext
> \input knuth
> \stoptext
>
> The same has to be done for the kpfont but there is one problem, the archive 
> on cyan doesn’t provide afm-files and you have to generate them yourself. 
> Since the font provides only tfm-files it would be also possible to them but 
> it’s better to work with afm-files.
>
>
> Adding support for the math font requires more work because you have to write 
> also a Lua file where you specify which file is used for symbols, operator, 
> letters etc. This isn’t very complicated (you can just modify the files for 
> palatino or garamond math), you have to only look which files are used for 
> the math fonts.
>
> 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
> ___
___
If your question is of interest to others as we

Re: [NTG-context] missing underbrace using palatino with latest beta (2013.12.26)

2014-01-06 Thread Hans Hagen

On 12/27/2013 12:24 PM, Sanjoy Mahajan wrote:

A minimal example:

--- cut ---
\setupbodyfont[palatino,12pt]

\starttext

\startformula
\underbrace{x}_{1}
\stopformula

\stoptext
--- cut ---

It works fine with 2013.05.28 00:36 MKIV current.

With 2013.12.26 12:50 MKIV beta, the underbrace disappears.  With a
bigger target (e.g. "xyz" instead of "x") or with the default font, the
underbrace returns.


fixed in next beta (border case math font issue)

-
  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] unknown library 'loc'

2014-01-06 Thread Hans Hagen

On 1/3/2014 2:33 PM, H. van der Meer wrote:

Has someone an idee what causes the unknown library message as in the
log below? Is it harmful?

fonts   > typescripts > unknown library 'loc'


you can add a file type-loc.mkiv someplace in your local tree with

% dummy file

\endinput

this file can be used for local overrides (just some mkii compatible 
feature).



(/Users/hansm/tex/context-16/tex/texmf-context/tex/context/base/type-imp-texgyre.mkiv){/Users/hansm/tex/context-16/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/Users/hansm/tex/context-16/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/Users/hansm/tex/context-16/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map})

ConTeXt  ver: 2013.12.26 12:50 MKIV beta  fmt: 2013.12.29  int:
english/english

Hans van der Meer





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




--

-
  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] Problem with creation of a new alignment

2014-01-06 Thread Hans Hagen

On 1/2/2014 11:50 PM, KONVOJ, spol. s r. o. wrote:

Hello all in 2014,

the following minimal example does not work, neither with
start-stop marks, nor with \setupalign, nor with both.
I use CTX from TeXlive 2013. The same behaviour has been found
in TL2012 whereas in TL2011 and 2010 it works properly.

What is the new way to define some new alignments?



\installalign{lastcenter}{ % justified, but the last line should be centered
   \leftskip=0pt plus1fil \rightskip=0pt plus-1fil
   \parfillskip=0pt plus2fil \parindent0pt}

\starttext
   \startalignment[lastcenter]
   \setupalign[lastcenter]
   \input knuth
   \stopalignment
\stoptext


just use 'last' as its predefined; installable aligns are somewhat 
limited (only certain things can be set) as in mkiv we also keep states, 
recover alignments, export stuff, etc


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] kpfonts, math, type 1 font

2014-01-06 Thread Wolfgang Schuster

Am 06.01.2014 um 19:56 schrieb Elspeth McGullicuddy 
:

> Hi everybody,
> (best wishes for this new year by the way).
> 
> There is this font:
> http://www.ctan.org/pkg/kpfonts
> Which is a postscript type 1 font, text and math.
> 
> I've copied the files in the right places in the ${HOME}/texmf tree.
> And a call to:
> mtxrun --script fonts --list --all --pattern=*kp*, after a
> mtxrun --script fonts --reload
> seems to indicate that it is found by context all right.
> 
> But now I haven't got the faintest idea on how to use it in a ConTEXt
> document -- text + math.
> My ConTEXt is beta not older than a fortnight.
> 
> All examples I've found that could possibly apply were at least far
> too complicate for my understanding, also likely outdated.

Using a text font in type1-format is very easy, all you need is the afm and the 
pfb-file.

The font files are put in the tex folder and to use them in your document you 
have to write a short typescript, below is a example how to use the urn 
garamond font.

\starttypescript [serif] [charter]
  \setups[font:fallback:serif]
  \definefontsynonym [Serif] [file:ugmr8a.afm] [features=complete]
\stoptypescript

\definetypeface [mainface] [rm] [serif] [charter] [default]

\setupbodyfont[mainface]

\starttext
\input knuth
\stoptext

The same has to be done for the kpfont but there is one problem, the archive on 
cyan doesn’t provide afm-files and you have to generate them yourself. Since 
the font provides only tfm-files it would be also possible to them but it’s 
better to work with afm-files.


Adding support for the math font requires more work because you have to write 
also a Lua file where you specify which file is used for symbols, operator, 
letters etc. This isn’t very complicated (you can just modify the files for 
palatino or garamond math), you have to only look which files are used for the 
math fonts.

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] luatex or luajittex?

2014-01-06 Thread Hans Hagen

On 1/6/2014 9:29 PM, Pablo Rodriguez wrote:

Dear list,

first of all, best wishes to all for the new year 2014.

I have just updated the ConTeXt Suite and I discovered that the latest
luatex version is newer than the luajittex version (0.78.0 vs. 0.77.0).

Which one is preferable: luatex or luajittex?


both should work although at some point we will move on to > 0.77 
specific functionality


there will be a luajittex 0.78.1 soon (there is already a binary for 
windows, as Akira always provides the latest greatest)


(and as usual the jit version is some 20% faster due to the faster Lua vm)

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
___


[NTG-context] luatex or luajittex?

2014-01-06 Thread Pablo Rodriguez
Dear list,

first of all, best wishes to all for the new year 2014.

I have just updated the ConTeXt Suite and I discovered that the latest
luatex version is newer than the luajittex version (0.78.0 vs. 0.77.0).

Which one is preferable: luatex or luajittex?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] Malayalam shaping with mkiv/LuaTeX

2014-01-06 Thread Rajeesh K Nambiar
On Mon, Jan 6, 2014 at 10:33 PM, Hans Hagen  wrote:
> On 1/4/2014 10:36 PM, Rajeesh K Nambiar wrote:
>>
>> Hello, especially Hans and Kai,
>>
>> I have succeeded to an extent in adding Malayalam shaping to the
>> existing Devanagari shaping. Being a complete novice in Lua and mkiv,
>> I'm at a point where your expertise is needed to proceed further.
>> Please find the attached patch, test case listed below and expected
>> rendering for comparison. Additionally needed to support:
>
>
> in next beta (some a bit different)

Thank you very much for incorporating it!

Just hit this with latest beta (same test case as before):

error: .../context/tex/texmf-context/tex/context/base/font-odv.lua:1603:
attempt to call global 'setfield' (a nil value)

>



-- 
Cheers,
Rajeesh
___
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] XML and ConTeXt - no XML text showing up in output

2014-01-06 Thread Hans Hagen

On 12/27/2013 1:15 AM, Steve Anderson wrote:

I'm following the instructions in
http://pragma-ade.com/general/manuals/xml-mkiv.pdf for using XML in
ConTeXt.

When I run the first example, I get a PDF, but only the hard-coded text
string "Contents" is in the PDF; none of the strings from the XML file
are in the PDF.

Any ideas?

 - Steve

Mac OSX 10.7.5, MacTEX-2013

I've created the following two files:

==
demo.xml
==




Some title

a paragraph of text
another paragraph of text




==
demo-converter.tex
==
\startxmlsetups xml:demo:base
   \xmlsetsetup{demo}{*}{-}


^^ That is a pretty strong one


   \xmlsetsetup{demo}{document|section|p}{xml:demo:*}


add content|title


\stopxmlsetups
\xmlregisterdocumentsetup{demo}{xml:demo:base}
\startxmlsetups xml:demo:document
   \title{Contents}
   \placelist[chapter]
   \page
   \xmlflush{#1}
\stopxmlsetups
\startxmlsetups xml:demo:section
   \chapter{\xmlfirst{#1}{/title}}
   \xmlfirst{#1}{/content}
\stopxmlsetups
\startxmlsetups xml:demo:p
   \xmlflush{#1}\endgraf
\stopxmlsetups


\startxmlsetups xml:demo:content
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:demo:title
\xmlflush{#1}
\stopxmlsetups


\xmlprocessfile{demo}{demo.xml}{}
==

and the command I'm running is

   context demo-converter.tex

Standard out is:

==

ConTeXt  ver: 2013.04.20 01:15 MKIV current  fmt: 2013.12.26  int:
english/english

system  > 'cont-new.mkiv' loaded
(/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-new.mkiv)
system  > files > jobname 'demo-converter', input
'./demo-converter', result 'demo-converter'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
(/Users/sanderson/dev/doc/main/feature/texml/content/demo-converter.tex
structure   > sectioning > title @ level 2 : 0.0 -> Contents
fonts   > beware: no fonts are loaded yet, using 'lm mono' in box
backend > xmp > using file
'/usr/local/texlive/2013/texmf-dist/tex/context/base/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
structure   > sectioning > chapter @ level 2 : 0.1 -> \xmlfirst
{demo::5}{/title}
)
system  > invalid \starttext ... \stoptext structure
pages   > flushing realpage 2, userpage 2
  
)

mkiv lua stats  > used config file:
selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable:
'/usr/local/texlive/2013/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9'
| readable+writable:
'/Users/sanderson/Library/texlive/2013/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9'
mkiv lua stats  > resource resolver: loadtime 0.415 seconds, 0 scans
with scantime 0.000 seconds, 0 shared scans, 7 found files, scanned
paths: 
mkiv lua stats  > stored bytecode data: 326 modules (0.207 sec), 69
tables (0.003 sec), 395 chunks (0.210 sec)
mkiv lua stats  > cleaned up reserved nodes: 41 nodes, 9 lists of 441
mkiv lua stats  > node memory usage: 2 glue, 3 penalty, 12 attribute, 36
glue_spec, 3 attribute_list
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5
instances (re)created, 103 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf
output)
mkiv lua stats  > loaded patterns: en::2
mkiv lua stats  > jobdata time: 0.005 seconds saving, 0.001 seconds loading
mkiv lua stats  > callbacks: 290 direct, 197 indirect, 487 total
mkiv lua stats  > randomizer: resumed with value 0.88342237327407
mkiv lua stats  > xml load time: 0.002 seconds, 1 files, 1 converted
mkiv lua stats  > lxml preparation time: 0.000 seconds, 9 nodes, 20
lpath calls, 1 cached calls
mkiv lua stats  > result saved in file: demo-converter.pdf,
compresslevel 3, objectcompreslevel 3
mkiv lua stats  > loaded fonts: 1 files: lmmono10-regular.otf
mkiv lua stats  > fonts load time: 0.042 seconds
mkiv lua stats  > luatex banner: this is luatex, version
beta-0.76.0-2013052718  (tex live 2013) (rev 4627)
mkiv lua stats  > control sequences: 35558 of 65536 + 10
mkiv lua stats  > current memory usage: 47 MB (ctx: 47 MB)
mkiv lua stats  > runtime: 0.676 seconds, 2 processed pages, 2 shipped
pages, 2.959 pages/second

system  | total runtime: 1.382

==
and here's the log file
==

(/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2013.04.20 01:15 MKIV current  fmt: 2013.12.26  int:
english/english

system  > 'cont-new.mkiv' loaded
(/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-new.mkiv)
system  > files > jobname 'demo-converter', input
'./demo-converter', result 'demo-converter'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
(/Users/sanderson/dev/doc/main/feature/texml/content/demo-converter.tex
structure   > sectioning > title @ level 2 : 0.0 -> Contents
fonts

[NTG-context] kpfonts, math, type 1 font

2014-01-06 Thread Elspeth McGullicuddy
Hi everybody,
(best wishes for this new year by the way).

There is this font:
http://www.ctan.org/pkg/kpfonts
Which is a postscript type 1 font, text and math.

I've copied the files in the right places in the ${HOME}/texmf tree.
And a call to:
mtxrun --script fonts --list --all --pattern=*kp*, after a
mtxrun --script fonts --reload
seems to indicate that it is found by context all right.

But now I haven't got the faintest idea on how to use it in a ConTEXt
document -- text + math.
My ConTEXt is beta not older than a fortnight.

All examples I've found that could possibly apply were at least far
too complicate for my understanding, also likely outdated.

Regards,
Chris
___
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] Malayalam shaping with mkiv/LuaTeX

2014-01-06 Thread Hans Hagen

On 1/4/2014 10:36 PM, Rajeesh K Nambiar wrote:

Hello, especially Hans and Kai,

I have succeeded to an extent in adding Malayalam shaping to the
existing Devanagari shaping. Being a complete novice in Lua and mkiv,
I'm at a point where your expertise is needed to proceed further.
Please find the attached patch, test case listed below and expected
rendering for comparison. Additionally needed to support:


in next beta (some a bit different)

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] update fails

2014-01-06 Thread Roland Thiers

Le 6 janv. 2014 à 10:36, Hans Hagen a écrit :

> On 1/5/2014 6:36 PM, Roland Thiers wrote:
>> Hi everybody,
>> First of all, my best wishes of a very happy new year to all users of this 
>> list !
>> 
>> I used to update context standalone with the script ctx-update :
>> 
>> cd /Users/rolandthiers/context
>> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh
>> ../first-setup.sh --modules=all --engine=luatex
>> 
>> Usually the update runs well, no problem. But the last time it did not work.
>> I've got this message :
>> 
>> This went wrong: 
>> ...67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui:107: bad 
>> bytecode register
>> This is LuaTeX, Version beta-0.78.0-2013123119 (rev 4704)
>>  \write18 enabled.
>> ..
>> <*>
>>  cont-yes.mkiv
>> ? Assertion failed: (kpse->program_name), function kpathsea_var_value, file 
>> ../../../source/texk/kpathsea/variable.c, line 36.
>> 
>> mtx-context | fatal error: no return code, message: luatex: execution 
>> interrupted
>> 
>> My system :   Mac OS X 10.6.8 .
>> Could someone tell me what happens or what mistake I did ?
> 
> no clue ... kpse is not used in context mkiv so there should not be such a 
> message; it looks like a bad binary or maybe you need to do a context --make 
> explicitly
> 
> also, don't use ctx-update but first-update in the minimal root
> 
> Hans
Thanks very much Hans ! I did a context --make and everything is working well 
again !
Roland
___
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] Some questions on float combinations

2014-01-06 Thread Hans Hagen

On 1/3/2014 8:17 PM, Alexey Kryukov wrote:

Hi all,

recently I finished typesetting a block of inset illustrations for a
journal on history, which I first implemented in LaTeX and then moved
to ConTeXt (I am using a version from TeXLive 2013 packaged with
openSUSE 13.1). Basically I am greatly satisfied with the result, as the
code looks much clearer now. However, I still see some things
which can be done in LaTeX by a more natural way.

First of all, is there a dedicated method to rotate an entire
combination or floatcombination by 90 degrees? I see floats have a
special option to control this, but float combinations don't (am I
right here?). And if I enclose a float combination into a \rotate
command, then the height of the rotated block seems to be incorrectly
calculated, so that about a half of the block goes outside of the upper
page boundary.

Second, not all image combinations can be described by a simple matrix,
and the documentation doesn't explain what to do in such more complex
cases (nor the Wiki does). For example, in my document some pages have
three images ordered in two columns: one relatively tall image
side-by-side with two smaller ones. To make the things worse such
combinations are usually placed on landscape pages. The obvious solution
here seems to be to somewhow group two smaller images and then put them
into a float combination. Unfortunately, this doesn't work, as
floatcombination seems to ignore all enclosed boxing
commands/environments and even nested float combinations.

Finally I managed to achieve the desired layout by defining a set of
parallel paragraphs, which fortunately worked even inside a \rotate
command (columns and columnsets with embedded floats didn't). Still it
would be nice to have a special interface allowing to combine floats
and float combinations into larger blocks.


It all depends on it being floats or not (floatign indeed). One option 
is to package a set of floats in a bTABLE .. eTABLE and put a..z 
subcaptions under it that way and then have the whole as a float


anyway ... you have more chance onan answer if you provide small examples

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] update fails

2014-01-06 Thread Hans Hagen

On 1/5/2014 6:36 PM, Roland Thiers wrote:

Hi everybody,
First of all, my best wishes of a very happy new year to all users of this list 
!

I used to update context standalone with the script ctx-update :

cd /Users/rolandthiers/context
rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh
../first-setup.sh --modules=all --engine=luatex

Usually the update runs well, no problem. But the last time it did not work.
I've got this message :

This went wrong: 
...67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui:107: bad bytecode 
register
This is LuaTeX, Version beta-0.78.0-2013123119 (rev 4704)
  \write18 enabled.
..
<*>
  cont-yes.mkiv
? Assertion failed: (kpse->program_name), function kpathsea_var_value, file 
../../../source/texk/kpathsea/variable.c, line 36.

mtx-context | fatal error: no return code, message: luatex: execution 
interrupted

My system :   Mac OS X 10.6.8 .
Could someone tell me what happens or what mistake I did ?


no clue ... kpse is not used in context mkiv so there should not be such 
a message; it looks like a bad binary or maybe you need to do a context 
--make explicitly


also, don't use ctx-update but first-update in the minimal root

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
___