Re: [NTG-context] Appendix Page Numbering

2014-02-15 Thread Troy Henderson
 Have you updated you installation because the viewerprefix key was added
 yesterday.


Oh no.  I'm using the TeXLive 2013 ConTeXt.  Is the update something I can
do on this, or do I have to download and install minimals?


 \dorecurse{2}{\dontleavehmode\page}


Thanks.
___
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] Pgfplots - passing point coordinates by Lua

2014-02-15 Thread Lukáš Procházka

Hello,

I just started experimenting with pgfplots package.

I'd have two questions:

1) When plotting/loading a data file: Is it possible to specify the comment mark, 
which is '#' and '% by default? I'd need to treat ';' as a comment mark, too.

2) How to pass coordinates of plot points by Lua?

The following code:


\usemodule[tikz]
\usemodule[pgfplots]

\startluacode
  data = {{5, 15}, {20, 20}, {24, -24}}

  plot = function(data)
local str

for i, v in ipairs(data) do
  str = (str or ) .. ( .. v[1] .. , .. v[2] .. )
end

print(Crds=, str)

context(str)
  end
\stopluacode

\starttext
  \starttikzpicture
\startaxis[]
  \addplot[mark=none,color=red] coordinates {(11, 5) (12, 18)};% THIS 
PLOT IS OK
  \addplot[mark=none,color=red] coordinates {\ctxlua{plot(data)}}; % THIS 
PLOT HAS NO POINT (?!)
\stopaxis
  \stoptikzpicture
\stoptext


gives error:


...
fontsfallback modern rm 12pt is loaded
Crds=   (5,15)(20,20)(24,-24)
Package pgfplots: Error! Sorry, I could not read the plot coordinates near 
'(5,15)(20,20)(24,-24)'. Please check for format mistakes.
! Package pgfplots Warning: the current plot has no coordinates (or all have 
been filtered away)...


Any idea from someone more familiar with pgfplots would be appreciated.

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

t-Plot2.mkiv
Description: Binary data


t-Plot2.pdf
Description: Adobe PDF document
___
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] missing underbrace using palatino with latest beta (2013.12.26)

2014-02-15 Thread Sanjoy Mahajan
 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)

It works in the 2014.02.14 beta.  Sorry it took so long to test.

-Sanjoy
___
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] underbraces slightly too narrow (with MkIV 2013.05.28)

2014-02-15 Thread Sanjoy Mahajan
Hans Hagen pra...@wxs.nl writes:

 anyhow, i've now defined then in a different way (ok, some more trickery 
 had to be applied as it's one of these aspects of open type math that 
 still inherits old stuff) so in a next version you can do this:

 \setupmathstackers[vfenced][hoffset=10pt]

Tested with 2014.02.14 beta, and it is a big improvement.  Again, sorry
it took so long to test.

If I use hoffset=3pt, it seems that some underbraces get 3-pt borders
but others don't.  For example,

\setupmathstackers[vfenced][hoffset=3pt]

\starttext

\placeformula\startformula
\underbrace{15\,\tf cm}_{L}
\times
\underbrace{15}_{L}
\stopformula

\stoptext


The second underbrace has the 3-pt borders, but the first one looks more
like a 0-pt border (though hoffset=0pt makes it have a negative border).

Is it due to quantization, in that the extensibles grow in fixed-size
units?

-Sanjoy
___
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] writetolist doesn't include sectionnumber in mkiv?

2014-02-15 Thread Sanjoy Mahajan
With MkIV, I'm having trouble getting \writetolist to include
sectionnumbers.  Or at least, I cannot get the typeset list to include
the sectionnumbers (but maybe writetolist sent in the information).

Here's a minimal example, which is almost exactly the example from the
wiki at http://wiki.contextgarden.net/Command/setuplist.  The only change
is that I've included [order=command] so that the \hrule ends up at the
right place.

\definelist[Reprints][criterium=all]

\starttext
  \section{Sec 1}
  \writetolist[Reprints]{1.}{List entry A}
  \subsection{Subsec 1}
  \writebetweenlist[Reprints]{\hrule}
  \writetolist[Reprints]{2.}{List entry B}
  \completelist[Reprints][order=command]
\stoptext


When typeset (I'm using the 2014.02.14 beta), the completelist looks
like:


List entry A   1

List entry B   1

But the 1. and 2. didn't show up in the left column.

I tried adding \setuplist[Reprints][sectionnumber=yes] but that didn't
help.  Does one need to define an alternative that includes
sectionnumbers?

-Sanjoy
___
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] Installation Bug with Minimals

2014-02-15 Thread Troy Henderson
I've done the following steps on two different machines (both running
Gentoo Linux) for installing ConTeXt minimals.

 mkdir /opt/context
 cd /opt/context
 rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
 ./first-setup.sh
 cd working directory for foo.tex
 . /opt/context/tex/setuptex
 context foo.tex

There seems to be problems with ConTeXt finding fonts.  The output from the
`context foo.tex` run(s) is below:

Troy

--

 context foo.tex

mtx-context | run 1: luatex
--fmt=/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
--jobname=foo
--lua=/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
--no-parse-first-line --c:currentrun=1 --c:fulljobname=./foo.tex
--c:input=./foo.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv
This is LuaTeX, Version beta-0.78.2 (TeX Live 2014/dev) (rev 4746)
 \write18 enabled.
(/opt/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.02.14 17:07 MKIV beta  fmt: 2014.2.15  int:
english/english

system   'cont-new.mkiv' loaded
(/opt/context/tex/texmf-context/tex/context/base/cont-new.mkiv)
system   files  jobname 'foo', input './foo', result 'foo'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
(/home/thenders/tmp/foo.tex{/opt/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontsdefining  font with asked name 'lmroman12-regular' is
not found using lookup 'file'
fontsdefining  unknown font 'lmroman12-regular', loading
aborted
fontsdefining  unable to define 'lmroman12-regular' as
'modern-designsize-12pt-rm-tf-0--0'
fontsdefining  forced type 'otf' of
'latinmodern-math-regular' not found
fontsdefining  font with asked name
'latinmodern-math-regular' is not found using lookup 'file'
fontsdefining  unknown font 'latinmodern-math-regular',
loading aborted
fontsdefining  unable to define
'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mr--3'
fontsdefining  forced type 'otf' of
'latinmodern-math-regular' not found
fontsdefining  font with asked name
'latinmodern-math-regular' is not found using lookup 'file'
fontsdefining  unknown font 'latinmodern-math-regular',
loading aborted
fontsdefining  unable to define
'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mr--2'
fontsdefining  forced type 'otf' of
'latinmodern-math-regular' not found
fontsdefining  font with asked name
'latinmodern-math-regular' is not found using lookup 'file'
fontsdefining  unknown font 'latinmodern-math-regular',
loading aborted
fontsdefining  unable to define
'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mr--1'
fontsdefining  forced type 'otf' of
'latinmodern-math-regular' not found
fontsdefining  font with asked name
'latinmodern-math-regular' is not found using lookup 'file'
fontsdefining  unknown font 'latinmodern-math-regular',
loading aborted
fontsdefining  unable to define
'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mb--3'
fontsdefining  forced type 'otf' of
'latinmodern-math-regular' not found
fontsdefining  font with asked name
'latinmodern-math-regular' is not found using lookup 'file'
fontsdefining  unknown font 'latinmodern-math-regular',
loading aborted
fontsdefining  unable to define
'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mb--2'
fontsdefining  forced type 'otf' of
'latinmodern-math-regular' not found
fontsdefining  font with asked name
'latinmodern-math-regular' is not found using lookup 'file'
fontsdefining  unknown font 'latinmodern-math-regular',
loading aborted
fontsdefining  unable to define
'latinmodern-math-regular.otf' as 'modern-designsize-12pt-mm-mb--1'
fontsmath: unset for global bodyfont modern-designsize at 12pt
fontsmath: unset for global bodyfont modern-designsize at 12pt
fonts'fallback modern rm 12pt' is loaded
fontsmath: unset for global bodyfont modern-designsize at 12pt
fontsmath: unset for global bodyfont modern-designsize at 12pt
backend  xmp  using file
'/opt/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1

fonts!! No bodyfont has been defined and no defaults have been
fonts!! loaded (maybe due to a missing \starttext).

 ) )

mkiv lua stats   used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path:
/opt/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats   

[NTG-context] bug with \setupdirection[bidi=on]

2014-02-15 Thread Pablo Rodriguez
Dear list,

the following sample shows the bug I tried to report yesterday:

\setupdirections[bidi=on]

\starttext

\section[sectionone]{Section one}

\section[sectiontwo]{Section two}

\section[sectionthree]{Section three}

\section{Section four}

As said in \about[sectionone], \about[sectiontwo] and
\about[sectionthree]\footnote{footnote.},

\stoptext

With bidi=on enabled, \about references starting from the second one are
misplaced at the bottom of the page.

I’m afraid this may be a bug.

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
___