Re: [NTG-context] wrong positioning of MP graphic in layer

2013-10-08 Thread Pablo Rodríguez
On 10/07/2013 10:48 PM, Hans Hagen wrote:
 On 10/7/2013 10:04 PM, Pablo Rodríguez wrote:
 [...]

 I need to insist on this sample, because the layer doesn’t behave as such:

 \definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]
 \setuplayer[wrongpositioned]{\startMPcode draw
 (0mm,0mm)--(8mm,0mm)--(8mm,38mm)--(14mm,38mm) ; \stopMPcode}
 [...]
 
 you confuse \setuplayer with setlayer

Exactly my fault, Hans, Totally overseen.

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] wrong positioning of MP graphic in layer

2013-10-08 Thread Pablo Rodríguez
On 10/07/2013 11:01 PM, luigi scarso wrote:
 On Mon, Oct 7, 2013 at 10:04 PM, Pablo Rodríguez wrote:
 
 I need to insist on this sample, because the layer doesn’t behave as
 such:
 
 \definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]
 \setuplayer[wrongpositioned]{\startMPcode draw
 (0mm,0mm)--(8mm,0mm)--(8mm,38mm)--(14mm,38mm) ; \stopMPcode}
 \setupbackgrounds[page][background={wrongpositioned}]
 \starttext
 \input knuth
 \stoptext
 
 x and y are outside the page in the layer definition (50 meters).
 
 It should be a stupid error, but I cannot say which one.
  
 I don't understand  what exactly you need, but I hope this can help you.

Many thanks for your reply, Luigi.

As Hans pointed out, I wrote \setuplayer instead of \setuplayer.

As weird as it sounds, yesterday I used my first layers ever (copied
from the wiki) and only in this one I typed \setuplayer instead of
\setlayer.

Well, it seems that I shouldn’t be sleepy when writing layers ;-).

Many thanks for your help again,


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
___


[NTG-context] layers in empty pages

2013-10-08 Thread Pablo Rodríguez
Dear list,

I have the following sample:

\setuppagenumbering[alternative=doublesided]
\definelayer[MyLayer][state=continue]
\setlayer[MyLayer]{This is my layer.}
\setupbackgrounds[page][background={MyLayer}]
\starttext
\input knuth
\stoptext

I need the text to be double-sided, but is there no way that the layer
doesn’t show up when the text area is empty?

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
___


[NTG-context] wrong positioning of MP graphic in layer

2013-10-07 Thread Pablo Rodríguez
Dear list,

I have the following sample:

\definelayer[wrongpositioned][x=0mm, y=0mm, hoffset=0mm,
 voffset=48mm, state=start]
\setuplayer[wrongpositioned]{\startMPcode draw
 (0mm,0mm)--(8mm,0mm)--(8mm,38mm)--(14mm,38mm) ; \stopMPcode}
\setupbackgrounds[page][background={wrongpositioned}]
\starttext
\input knuth
\stoptext

No matter what x, y, hoffset, voffset, location or corner, the MP
graphic is located where the page margins start.

Sorry for the so basic question, but what is wrong there?

Besides that, I don’t understand how positioning in layers work. I have
read the wiki, but I don’t get it (geometry isn’t my strength).

x, y, hoffset and voffset are fine. But location and corner are
mysterious to me. Changing them gave me no clue of what they are.

The four mentioned options set a point in the paper. The corner could be
the point of the graphic or text that would be set in the previously
defined point in the paper.

Well, if this isn’t wrong, what can location be?

Sorry, I know it‘s my lack of geometrical knowledge.

Could anyone be so kind to explain me what location and corner mean in
layers?

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] wrong positioning of MP graphic in layer

2013-10-07 Thread Pablo Rodríguez
On 10/07/2013 07:16 PM, luigi scarso wrote:
 On Mon, Oct 7, 2013 at 5:56 PM, Pablo Rodríguez wrote:
  Dear list,
 
  I have the following sample:
  [...]

Many thanks for your reply, Luigi.

I need to insist on this sample, because the layer doesn’t behave as such:

\definelayer[wrongpositioned][x=5000cm, y=5000cm, state=start]
\setuplayer[wrongpositioned]{\startMPcode draw
(0mm,0mm)--(8mm,0mm)--(8mm,38mm)--(14mm,38mm) ; \stopMPcode}
\setupbackgrounds[page][background={wrongpositioned}]
\starttext
\input knuth
\stoptext

x and y are outside the page in the layer definition (50 meters).

It should be a stupid error, but I cannot say which one.

It is a line that I need for my work.

  Could anyone be so kind to explain me what location and corner mean in
  layers?
  
 You can start from here
 [...]

Many thanks for this excellent example. Playing with it is the best way
to learn.

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


[NTG-context] image vertical positioning in xtable

2013-10-06 Thread Pablo Rodríguez
Dear list,

I have the following sample that places the image below the text in the
same cell:

\starttext
\startxtable
  \startxrow
  \startxcell This is an \stopxcell
  \startxcell image \externalfigure[cow.pdf][height=.5em]
  \stopxcell
  \stopxrow
\stopxtable
\stoptext

How can the image be on the same base as the text? I mean, not below the
text.

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
___


[NTG-context] on the xcorresp module

2013-10-06 Thread Pablo Rodríguez
Dear Hans,

I’m very interested in using ConTeXt to generate the correspondence at work.

I have seen the xcorresp module documentation and I wonder whether it is
under development or not.

Thanks,


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
___


[NTG-context] (again) coloring \tex with [option=TeX]

2013-10-05 Thread Pablo Rodríguez
Dear list,

I would like to have \tex using [option=TEX]. But I cannot get it
working, even if I setup \type to [option=TEX].

Here you have the minimal sample:

\setuptype[option=TEX]
\starttext
\type{\ConTeXt} comes from \tex{TeX}.
\stoptext

How can I have \tex with colored output, the same way \type is colored
above?

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] (again) coloring \tex with [option=TeX]

2013-10-05 Thread Pablo Rodríguez
On 10/05/2013 10:58 PM, Hans Hagen wrote:
 On 10/5/2013 8:21 PM, Pablo Rodríguez wrote:
 [...]
 How can I have \tex with colored output, the same way \type is colored
 above?
 
 by redefining it:
 
 \unexpanded\def\tex#1{\normalexpanded{\type{\letterbackslash#1}}}

Many thanks for your help, Hans.


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] error when installing ConTeXt Standalone

2013-10-03 Thread Pablo Rodríguez
On 09/26/2013 07:44 AM, Thomas A. Schmitz wrote:
 On 25.09.2013 22:50, Pablo Rodríguez wrote:
 It worked with Fedora 16, but after installing Fedora 19 it doesn’t work.
 
 http://thread.gmane.org/gmane.comp.tex.context/83357

[Sorry for the much delayed reply, Thomas. One of the mail servers seem
to be rejecting messages from the SMTP server I used. So I had to open
a new account to maili the ConTeXt list.]

Installing zsh gives the same error, but I don’t have zsh installed (I
removed after installing it to test this).


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
___

[NTG-context] a question on coloring \tex and \var

2013-10-03 Thread Pablo Rodríguez
Dear list,

I have this sample:

\definetype[TeXcode][option=TEX]
\starttext
\TeXcode{\mainlanguage[la]},
but \tex{ConTeXt} and \arg{option=value}.
\stoptext

I need ot have \tex and \arg colored with [option=TeX] (and I would
avoid having \type colored).

How can I do that?

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] error when installing ConTeXt Standalone

2013-09-26 Thread Pablo Rodríguez
On 09/25/2013 10:55 PM, Mica Semrick wrote:
 $ source tex/setuptex
 
 Do you do that as root? You probably need to add it to something like
 /etc/bashrc or the like... it sounds like you don't have permission/your
 shell isn't getting the right path...

Both as root and as a regular user. Missing permissions for root? It
would be the first time I see this.

Of course there is something wrong and I don’t know what it is.

Many thanks for your reply,


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] error when installing ConTeXt Standalone

2013-09-25 Thread Pablo Rodríguez
On 09/25/2013 12:01 AM, Mica Semrick wrote:
 Have you added the bin directory to your PATH?

No, I invoke source tex/setuptex, which does the same job.


Pablo


 On Tue, Sep 24, 2013 at 1:55 PM, Pablo Rodríguez wrote:
 
 Dear list,
 
 I have installed a system-wide ConTeXt Standalone in Fedora 19,
 following the instructions from the wiki.
 
 But when I try to rebuild the font cache, I get the following error
 (with option verbose):
 
 resolvers   | resolving | remembering file 'font-otp.lua'cannot open
 : No such file or directory
 
 I don’t know what I’m doing wrong, but I get the error as root also.
 
 Could anyone tell me what it’s wrong here?
 
 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] error when installing ConTeXt Standalone

2013-09-25 Thread Pablo Rodríguez
On 09/25/2013 10:21 PM, John Kitzmiller wrote:
 Maybe you need to specify the installation directory or issue
 tex/setuptex from inside the install folder?
 
 font-opt.lua should be in install
 folder/tex/texmf-context/tex/context/base

Well, that’s exactly what the following command does (at least, it works
for me in a local installation, but not system-wide):

$ source tex/setuptex
Setting /opt/ctxbeta/tex as ConTeXt root.

It worked with Fedora 16, but after installing Fedora 19 it doesn’t work.


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
___


[NTG-context] error when installing ConTeXt Standalone

2013-09-24 Thread Pablo Rodríguez
Dear list,

I have installed a system-wide ConTeXt Standalone in Fedora 19,
following the instructions from the wiki.

But when I try to rebuild the font cache, I get the following error
(with option verbose):

resolvers   | resolving | remembering file 'font-otp.lua'cannot open
: No such file or directory

I don’t know what I’m doing wrong, but I get the error as root also.

Could anyone tell me what it’s wrong here?

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
___


[NTG-context] \Bigr broken in latest beta

2013-08-17 Thread Pablo Rodríguez
Dear Hans,

I‘m afraid that beta from today doesn’t compile what beta from tow days
ago compiled.

Here is the minimal sample:

\starttext
  \startformula
\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr)
  \stopformula
\stoptext

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
___


[NTG-context] slow compilation?

2013-08-12 Thread Pablo Rodríguez
Dear list,

although I cannot find it now, I sent a message to the list describing
that I suspected ConTeXt wasn’t as fast as it should on my computer.

Here you have a minimal sample:

\starttext
\input knuth
\stoptext

It takes about 3.5 seconds total runtime to compile. Is this the
standard required time?

Actually what I wonder is why the compilation requires three runs to
output the final document.

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] slow compilation?

2013-08-12 Thread Pablo Rodríguez
On 08/12/2013 07:20 PM, Wolfgang Schuster wrote:
 Am 12.08.2013 um 18:40 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 It takes about 3.5 seconds total runtime to compile. Is this the
 standard required time?
 
 Your minimal example takes for me on the first 1.8 (terminal) to 2 seconds 
 (editor)
 and each consecutive run about 0.6 seconds.

Many thanks for your reply, Wolfgang.

So if I need three times for each compilation (since I use --purgeall),
the time is fine, since my laptop is already some years old.



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] slow compilation?

2013-08-12 Thread Pablo Rodríguez
On 08/12/2013 09:55 PM, Hans Hagen wrote:
 On 8/12/2013 6:40 PM, Pablo Rodríguez wrote:

 It takes about 3.5 seconds total runtime to compile. Is this the
 standard required time?

 Actually what I wonder is why the compilation requires three runs to
 output the final document.
 
 mkiv lua stats   runtime: 0.250 seconds
 system  | total runtime: 0.422
 
 luajittex:
 
 mkiv lua stats   runtime: 0.200 seconds
 system  | total runtime: 0.360
 
 Dell Laptop: i7-3840QM @ 2.8G / 16 GB / 256G SSD / windows 8 64 bit
 
 \starttext
  \dorecurse{1000}{test\page}
 \stoptext
 
 does 540 pages per second

Many thanks for the reply, Hans.

My system does 172.980 pages/second in the last run. My laptop is way
older than yours (Genuine Intel(R) CPU T2050  @ 1.60GHz / 2GB RAM /
Fedora 19).


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] slow compilation?

2013-08-12 Thread Pablo Rodríguez
On 08/12/2013 10:37 PM, Aditya Mahajan wrote:
 On Mon, 12 Aug 2013, Pablo Rodríguez wrote:
 
 So if I need three times for each compilation (since I use --purgeall),
 the time is fine, since my laptop is already some years old.
 
 Out of curiosity, why do you use --purgeall? ConTeXt only generates two 
 auxillary files (.tuc and .log), so it is does not really clutter the 
 current working directory (unlike LaTeX which generates some 10 different 
 aux files).

I thought ConTeXt could generate more auxiliary files than two.

And using --purgeall I don’t have to remember to delete auxiliary files
when the document is finished.

But I guess I‘ll use --purgeall only when the document is finished.


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] Part numbers

2013-08-11 Thread Pablo Rodríguez
On 08/11/2013 03:08 PM, Tim Steenvoorden wrote:
 Hi all,
 
 I have a document with parts and chapters. I'd like to number the
 chapters continuously through the whole document. Figured out this has
 to be done with \definestructureresetset instead of the resetnumber=no
 option in \setuphead. But I don't want to include the number of the part
 in chapters and sections. How do I do that?

Hi Tim,

I think this is what you need:

\definestructureresetset[default][1,0,1][1]
\setuphead[chapter][sectionsegments=chapter]
\setuphead[section][sectionsegments=chapter:section]
\starttext
\completecontent
\dorecurse{5}{\part{Part}
\dorecurse{2}{\chapter{Chapter}
\dorecurse{2}{\section{Section
\stoptext

I hope it helps,


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] include two pages from typesetbuffer

2013-08-10 Thread Pablo Rodríguez
On 08/09/2013 11:42 PM, Hans Hagen wrote:
 [...]
 actually there was already a test for that but i made a better one, so 
 now we have:
 
 \starttext
 
  \enabletrackers[buffers.run]
 
  \startbuffer [sample]
  \starttext
  \startTEXpage[offset=10pt] one   \stopTEXpage
  \startTEXpage[offset=10pt] two   \stopTEXpage
  \startTEXpage[offset=10pt] three \stopTEXpage
  \stoptext
  \stopbuffer
 
  \typesetbuffer[sample][frame=on,page=1]
  \typesetbuffer[sample][frame=on,page=2]
  \typesetbuffer[sample][frame=on,page=3]
 
  \externalfigure[\lasttypesetbuffer][frame=on,page=2]
 
  \typesetbuffer[*][frame=on,page=3]
 
 \stoptext

Many thanks for the improvement, Hans.

Wikified at http://wiki.contextgarden.net/Command/typesetbuffer.


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
___


[NTG-context] \typesetbuffer at wiki

2013-08-10 Thread Pablo Rodríguez
Dear list,

I have just created http://wiki.contextgarden.net/Command/typesetbuffer.

In the typeset sample, it seems that \typesetbuffer doesn’t work at the
wiki (it doesn’t include the image).

Am I missing something here?

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
___


[NTG-context] issue with \stoplinenote

2013-08-10 Thread Pablo Rodríguez
Dear Hans,

the following sample shows an already described issue with linenotes:

\mainlanguage[es]
\setuppapersize[A7]
\starttext
\startlinenumbering
\startlinenote[MRU]{{\em om.} X}En un lugar de la Mancha, de cuyo
nombre no quiero acordarme, no ha mucho tiempo que vivía un
hidalgo de los de lanza en astillero, adarga antigua, rocín flaco
y galgo corredor.\stoplinenote[MRU]
\stoplinenumbering
\stoptext

Last word in body doesn’t get hyphenated. I know that this is something
related to references.

But in the meantime: wouldn’t it be possible that \stoplinenote
internally includes a \prewordbreak command?

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] \typesetbuffer at wiki

2013-08-10 Thread Pablo Rodríguez
On 08/10/2013 01:51 PM, Sietse Brouwer wrote:
 Hi Pablo,
 
 This is probably a backend problem. I know that examples where
 multiple pages are imposed onto one sheet also don’t work; this is
 probably similar. I might look into it at some point, try to improve
 the php, but it’s not a priority. (Unless you think it should be.)

Hi Sietse,

this is fine for me. I guess the sample is understandable even with the
pages.

Best,


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] include two pages from typesetbuffer

2013-08-09 Thread Pablo Rodríguez
On 08/08/2013 10:40 PM, Hans Hagen wrote:
 On 8/8/2013 10:15 PM, Hans Hagen wrote:
 On 8/8/2013 9:01 PM, Pablo Rodríguez wrote:
 Dear list,

 I would like to be able to include the first two pages of a typeset
 buffer (included with \typesetbuffer[sample][frame=on]).

 Is there any way to do this? I’d like to avoid to save the buffer to a
 file.

 \typesetbuffer[sample][frame=on,page=1]
 \typesetbuffer[sample][frame=on,page=2]
 
 as that runs the buffer twice the next beta will provide  this:

Many thanks, Hans, for the new feature.

I can wikify it, if you want me to do it. But I have a question before.

Wouldn’t it be easier that ConTeXt detects when a buffer has already
been typeset and automatically does all the work internally?

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] unwanted extra interline space in typing environment

2013-08-08 Thread Pablo Rodríguez
On 08/07/2013 11:04 PM, Hans Hagen wrote:
 On 8/7/2013 10:52 PM, Pablo Rodríguez wrote:
 On 08/07/2013 08:00 PM, Wolfgang Schuster wrote:
 Am 07.08.2013 um 19:47 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 How can avoid the unwanted extra interline space in the typing environment?
 [...]
 you shouldn't rely on \\ as it also starts a new line with content
 
\dorecurse{38}{line\par}

Hans,

I have adapted the sample to:

\starttext
\dorecurse{41}{line\par}
\starttyping
\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=1
\stopsetups
\stoptyping
\stoptext

And if recursions are set to 36-42, the second line on page 2 has extra
space when the line belongs to the typing environment.

Isn’t it 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
___


Re: [NTG-context] unwanted extra interline space in typing environment

2013-08-08 Thread Pablo Rodríguez
On 08/08/2013 07:24 PM, Hans Hagen wrote:
 On 8/8/2013 4:50 PM, Pablo Rodríguez wrote:
[...]
 Isn’t it a bug?
 
 yes, but in fact a side effect of trying to fix another page-crossing 
 issue ... i'll try a different trick

Many thanks for the fix, Hans.


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
___


[NTG-context] simplefonts doesn’t select the font

2013-08-08 Thread Pablo Rodríguez
Dear list,

I have the following sample:

\starttext
\startbuffer[testbuffer]
\setuppapersize[A7]
\usemodule[simplefonts][size=10.5pt]
\setmainfont[TeX Gyre Pagella]
\starttext
This isn’t \TeX\ Gyre Pagella.
\stoptext
\stopbuffer

\typesetbuffer[testbuffer]
\stoptext

Only with decimal font sizes, simplefonts (and probably the standard
font mechanism [which I don’t know how to use it]) isn’t able to select
the font in the buffer.

I guess this might 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
___


[NTG-context] include two pages from typesetbuffer

2013-08-08 Thread Pablo Rodríguez
Dear list,

I would like to be able to include the first two pages of a typeset
buffer (included with \typesetbuffer[sample][frame=on]).

Is there any way to do this? I’d like to avoid to save the buffer to a file.

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
___


[NTG-context] unwanted extra interline space in typing environment

2013-08-07 Thread Pablo Rodríguez
Dear list,

I have a document
(http://ediciones-criticas.tk/pdf/criticas-context.pdf), which is shows
a weird issue: some typing lines have an extra interline space added.

It can be found on the first code samples on pages 11 and 12 from the
above-mentioned document (sorry, but I have no other way to recreate the
issue).

My configuration is the following:

  \setuptyping[margin=yes,lines=yes,blank=line,space=on]

How can avoid the unwanted extra interline space in the typing environment?

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] problem with Persian feature

2013-08-07 Thread Pablo Rodríguez
On 08/07/2013 04:09 PM, Mingranina Gingranina wrote:
 [...]
 For TrueType fonts which are in the directory '/usr/share/fonts/TTF/'
 everything works fine,
 but if the font is in '/usr/local/share/fonts/' then the code fails.
 Please note that I have already
 executed the commands:
 
 OSFONTDIR=/usr/share/fonts;/usr/local/share/fonts;$HOME/.fonts
 mtxrun --script fonts --reload
 mtxrun --script fonts --list --all  --pattern=*

Hi Mingranina,

are the fonts from /usr/local/share/fonts listed with the last command
you mention?

If you don’t have other issues, you can always move all fonts from
/usr/local/share/fonts to /usr/share/fonts. This is an easy fix.

Just in case it helps,


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] unwanted extra interline space in typing environment

2013-08-07 Thread Pablo Rodríguez
On 08/07/2013 08:00 PM, Wolfgang Schuster wrote:
 Am 07.08.2013 um 19:47 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 How can avoid the unwanted extra interline space in the typing environment?
 
 Can you make a minimal example which shows the wrong spacing?
 I can see it in your document but without a example it’s not possible
 to give a answer.

Wolfgang,

this is a sample that shows the issue I mentioned in my previous message:

\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\stopsetups

\starttext

\dorecurse{38}{line\\}

\starttyping
\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=1
\stopsetups
\stoptyping

\page
\stoptext

I know that the widow line from the typing environment is causing the
extra interline spacing, but there are other occurrences where there is
no widow line and there is extra interline spacing.

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] matching font sizes with fallback fonts

2013-08-01 Thread Pablo Rodríguez
On 07/31/2013 10:43 PM, Wolfgang Schuster wrote:
 Am 31.07.2013 um 18:16 schrieb Pablo Rodríguez oi...@web.de:
[...]
\usemodule[simplefonts][size=90pt]
\setmainfontfallback[GFS Neohellenic]
  [range={greekandcoptic,greekextended}, force=yes, rscale=auto]
\setmainfont[TeX Gyre Pagella]
\starttext
aα γg AΑ ΒB
\stoptext

 But rscale=auto doesn’t seem to work (if this is the right option).

 What am I doing wrong here?
 
 1. The simplefonts module uses “scale” as key and not “rscale”.
 
 2. You can also use a number as argument for the scale key, keywords
 like auto are not possible.

Many thanks for your reply, Wolfgang.


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] wrong \setupinteraction[focus=standard]?

2013-08-01 Thread Pablo Rodríguez
On 07/31/2013 09:48 PM, Marco Patzer wrote:
 On 2013–07–31 Pablo Rodríguez wrote:
 
 I’m trying to get internal links to footnotes without having the focus
 changed.

 […]

 Is this a bug?
 
 Yes, it's a known issue since quite a while. Hans confirmed it on
 2013-03-28:
 
   This is a long term one ... I'm not going to mess with footnotes etc
   now. Technically it boils down to setting some attributes at the right
   spot.

Many thanks for your reply, Marco.


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
___


[NTG-context] matching font sizes with fallback fonts

2013-07-31 Thread Pablo Rodríguez
Dear list,

I’m trying to match the fallback font size with the lowercase size of
the main font, as shown in this sample:

\usemodule[simplefonts][size=90pt]
\setmainfontfallback[GFS Neohellenic]
  [range={greekandcoptic,greekextended}, force=yes, rscale=auto]
\setmainfont[TeX Gyre Pagella]
\starttext
aα γg AΑ ΒB
\stoptext

But rscale=auto doesn’t seem to work (if this is the right option).

What am I doing wrong here?

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
___

[NTG-context] wrong \setupinteraction[focus=standard]?

2013-07-31 Thread Pablo Rodríguez
Dear list,

I’m trying to get internal links to footnotes without having the focus
changed.

I try this minimal sample:

\setupinteraction[state=start,focus=standard]
\starttext
Body text\footnote{Footnote.}.
\stoptext

But I cannot get it working (it should work, according to the wiki).

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


Re: [NTG-context] faking fonts with simplefonts

2013-07-27 Thread Pablo Rodríguez
On 27/07/13 06:48, Wolfgang Schuster wrote:
 Am 26.07.2013 um 22:22 schrieb Pablo Rodríguez oi...@web.de:
 
 Dear list,

 I don’t get slanted fonts that I have to fake for a monospaced typeface
 that lacks an italic font.
 [...]
 I can only get the second \em working, unless I don’t fake it.

 What am I doing wrong here?
 
 It’s a (already mentioned) LuaTeX bug.

Many thanks for the reply. Wolfgang.


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
___


[NTG-context] bug in \type?

2013-07-27 Thread Pablo Rodríguez
Dear list,

using the latest beta (it also happens with ConTeXt from TL 2013), I
don’t get the space in \type{\em #1}.

Here you have a minimal sample that shows the difference with other
verbatim commands:

\starttext
\type{\em #1}

\arg{\em #1}

\starttyping\em #1\stoptyping
\stoptext

Is this a bug in \type or am I missing something?

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] OSFONTDIR kills gui fonts.

2013-07-27 Thread Pablo Rodríguez

On 27/07/13 16:34, john Culleton wrote:
 On Fri, 26 Jul 2013 22:15:58 +0200
 Pablo Rodríguez oi...@web.de wrote:
 [...]
 Using the ConTeXt Suite the command I use is:

   export OSFONTDIR=/usr/share/fonts//
 
 Hmm. Why do you use // at the end of the statement? Does that have some
 kind of magic?

I was told this makes ConTeXt to look for fonts in subdirectories.


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] OSFONTDIR kills gui fonts.

2013-07-26 Thread Pablo Rodríguez
On 26/07/13 21:08, john Culleton wrote:
 I am trying to follow the wiki on Fonts in Luatex. It suggests the
 following statement for Linux systems:
 
 export OSFONTDIR=/usr/local/share/fonts;$HOME/.fonts
 
 But I store my fonts in /usr/share/fonts so I used:
 
 export OSFONTDIR=/usr/share/fonts

Hi John,

sorry to read that.

Using the ConTeXt Suite the command I use is:

  export OSFONTDIR=/usr/share/fonts//

But I append it at the end of tex/setuptex.

I’m afraid I cannot help you with the system fonts, because I don’t use
ConTeXt from TeXLive 2013.

All I guess is removing all OSFONTDIR from your configuration. (Running
grep -irl OSFONTDIR . on your home directory should do the searching
job.)

Sorry for not being more helpful.

I hope it helps,


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
___


[NTG-context] faking fonts with simplefonts

2013-07-26 Thread Pablo Rodríguez
Dear list,

I don’t get slanted fonts that I have to fake for a monospaced typeface
that lacks an italic font.

Here is a sample with a standard font that shows the same problem:

\usemodule[simplefonts]
\definefontfeature[fakeitalic][default][slant=.25]
\setmonofont[DejaVu Sans Mono][italicfont={*},
  italicfeatures=fakeitalic]
\setupbodyfontenvironment[default][em=italic]
\starttext
\tex{define}{\tt\emnombredelaclasedeelemento},
{\tt\emnombredelaclasedeelemento}.
\stoptext

I can only get the second \em working, unless I don’t fake it.

What am I doing wrong here?

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
___


[NTG-context] wrong font fallback for Hebrew?

2013-07-25 Thread Pablo Rodríguez
Dear list,

using simplefonts (sorry, I don’t know how to do it with the standard
typescripts [it might fail there too]), I don’t get font fallback
working for some Hebrew characters.

Here is the sample:

\usemodule[simplefonts]
\setupdirections[bidi=on]
\definefontfeature[hebrew][lang=heb,script=hebr]
\setmainfontfallback[FreeSerif][range={hebrew,greekandcoptic},
force=yes,features=hebrew]
\setmainfont[TeX Gyre Pagella]
\starttext
This Greek letter is printed: ά.\blank

But this Hebrew letter isn’t: אָֽ​.
\stoptext

It works for Greek, but it doesn’t work for Hebrew.

Am I doing something wrong or is this 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
___

Re: [NTG-context] wrong font fallback for Hebrew?

2013-07-25 Thread Pablo Rodríguez
On 25/07/13 19:16, Wolfgang Schuster wrote:
 Am 25.07.2013 um 18:39 schrieb Pablo Rodríguez oi...@web.de:
 Dear list,

 using simplefonts (sorry, I don’t know how to do it with the standard
 typescripts [it might fail there too]), I don’t get font fallback
 working for some Hebrew characters.
 [...]
 Am I doing something wrong or is this a bug?
 
 The characters isn’t in one of the specified fallback ranges, you have to add 
 “alphabeticpresentationforms” to the list.
 
 Look at the block entry in the table: 
 http://www.fileformat.info/info/unicode/char/fb2f/index.htm

Many thanks for your really helpful reply, Wolfgang.

I have been searching for something similar, but I wasn’t able to find it.

Alphabetic presentation forms also contain Latin ligatures (ff, fi, fl, ffi,
ffl, ſt, st), ConTeXt seems not to be affected by this.

Many thanks again 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] mixing English and Hebrew

2013-07-22 Thread Pablo Rodríguez
On 22/07/13 10:02, Hans Hagen wrote:
 On 7/21/2013 9:29 PM, Pablo Rodríguez wrote:
 [...]
 How can I enable r2l alignment only for Hebrew in the sample above?
 
 \setupdirections[bidi=on]
 
 but keep in mind that as we're deling with tex i.e. a programmable 
 system which has commands for changing directions, automatisms can clash 
 with user commands (when decisions are to be made)

Many thanks for your reply, Hans.

Everything seems to work fine with bidirectionality, but some characters
disappear.

Here is a sample were Hebrew is almost not printed:

\usemodule[simplefonts]
\setupdirections[bidi=on]
\definefontfeature[hebrew][default][lang=heb,script=hebr]
\setmainfontfallback[LinuxLibertineO]
  [range=hebrew,force=yes,features=hebrew]
\setmainfont[TeX Gyre Pagella]
\starttext
This Hebrew letter isn’t printed: אָֽ.
\stoptext

I don’t know what is wrong here. The font seems to have defined the
glyph (I‘ve checked it with fontforge).

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] mixing English and Hebrew

2013-07-22 Thread Pablo Rodríguez
On 22/07/13 18:20, Hans Hagen wrote:
 On 7/22/2013 5:07 PM, Pablo Rodríguez wrote:
 [...]
 Everything seems to work fine with bidirectionality, but some characters
 disappear.
 [...]
 I don’t know what is wrong here. The font seems to have defined the
 glyph (I‘ve checked it with fontforge).
 
 a font issue ?

Well, I experience the same issue with FreeSerif, LinLibertine0, Ezra
SIL and SBLHebrew.

But I’m not an expert here. I guess it might be a ConTeXt issue.


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] mixing English and Hebrew

2013-07-22 Thread Pablo Rodríguez
On 22/07/13 19:59, Wolfgang Schuster wrote:
 [...]
 FreeSerif works but Linux Libertine doesn’t:

It might be something stupid, but I don’t know what is wrong in the
\setmainfontfallback from the following sample:

\usemodule[simplefonts]
\setupdirections[bidi=on]
\definefontfeature[hebrew][default][lang=heb,script=hebr]
\setmainfontfallback[FreeSerif]
  [range=hebrew,force=yes,features=hebrew]
\setmainfont[TeX Gyre Pagella]
\starttext
This Hebrew letter isn’t printed: אָֽ.
\stoptext

If FreeSerif is the main font, it works fine. But I don’t get it working
as a fallback font.

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
___

[NTG-context] overlay lifts image slightly

2013-07-21 Thread Pablo Rodríguez
Dear list,

I have the following sample code (http://www.ousia.tk/overlay.pdf):

\setuppapersize[S6]
\usemodule[simplefonts][size=30pt]
\definesimplefonttypeface[sfserif][Free Serif][scale=10]
\setupmakeup[standard][align=middle]
\starttext

\startstandardmakeup
\dontleavehmode\externalfigure[text-icon.pdf]
[scale=5000]
\stopstandardmakeup

\startstandardmakeup
\dontleavehmode\startoverlay
  {\externalfigure[text-icon.pdf]
[scale=5000]}{\sfserif\color[red]{✘}}\stopoverlay\stopoverlay
\stopstandardmakeup

\stoptext

For some reason unknown to me, the overlay in the second slide has the
background image slightly lifted. All I have realized is that replacing
✘ with x shows no image lift, but I need ✘.

Is there any way to avoid this image lift?

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] overlay lifts image slightly

2013-07-21 Thread Pablo Rodríguez
On 21/07/13 19:24, Wolfgang Schuster wrote:
 Am 21.07.2013 um 19:13 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 For some reason unknown to me, the overlay in the second slide has the
 background image slightly lifted. All I have realized is that replacing
 ✘ with x shows no image lift, but I need ✘.

 Is there any way to avoid this image lift?
 
 You have to increase the size of the image to mage it bigger than the ✘, you 
 can do this
 by wrapping it into a frame, e.g. 
 \framed[frame=off,offset=1cm]{\externalfigure[…]}.

Many thanks for your gast reply, Wolfgang.

I‘m afraid that the frame itself lifts the image. Frame and overlay lift
the image also. PDF at http://ousia.tk/overlay.pdf.

I must be doing something wrong. Here is my code:

\setuppapersize[S6]
\setupinteraction[state=start]
\setupinteractionscreen[option=max]
\usemodule[simplefonts][size=30pt]
\setmainfont[KerkisSans]
\definesimplefonttypeface[sfserif][Free Serif][scale=10]
\setupmakeup[standard][align=middle]
\starttext

\startstandardmakeup
\dontleavehmode\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf]
[scale=5000]
\stopstandardmakeup

\startstandardmakeup
\dontleavehmode\framed[frame=on,offset=1cm]{\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf][scale=5000]}
\stopstandardmakeup

\startstandardmakeup
\dontleavehmode\startoverlay{\framed[frame=on,offset=1cm]{\externalfigure[Documents/Presentations/al-abordaje/text-icon.pdf][scale=5000]}}{\sfserif\color[red]{✘}}\stopoverlay\stopoverlay
\stopstandardmakeup

\stoptext

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] overlay lifts image slightly

2013-07-21 Thread Pablo Rodríguez
On 21/07/13 20:29, Wolfgang Schuster wrote:
 Am 21.07.2013 um 19:55 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 I‘m afraid that the frame itself lifts the image. Frame and overlay lift
 the image also. PDF at http://ousia.tk/overlay.pdf.
 
 You have to write \smash[d]{\startoverlay …\stopoverlay} to get the same 
 output with the overlay.
 
 The \framed command isn’t necessary here.
 
 You should also try to make minimal examples when possible only with default 
 images and fonts.

Many thanks for your help, Wolfgang.

I works right now.


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
___

[NTG-context] mixing English and Hebrew

2013-07-21 Thread Pablo Rodríguez
Dear list,

I was asked how to mix l2r and r2l scripts on the same document. (Just
in case, I have no idea what the Hebrew text below means.)

I have this sample:

\usemodule[simplefonts]
\definefontfeature[hebrew][lang=heb,script=hebr]
\setmainfontfallback[LinuxLibertineO][range=hebrew,force=yes,features=hebrew]
\setmainfont[TeX Gyre Pagella]

\starttext

This is an English text.\blank

This is a Hebrew passage: בְּרֵאשִׁ֖ית בָּרָ֣א אֱלֹהִ֑ים אֵ֥ת הַשָּׁמַ֖יִם 
וְאֵ֥ת הָאָֽ...
\stoptext

I could use \setupalign[r2l], but English would be typeset also right to
left.

I have two questions:

Since Hebrew (both the language and the script) are written from right
to left, shouldn’t it be r2l alignment turned on by default when the
script or language were selected in the OpenType features?

How can I enable r2l alignment only for Hebrew in the sample above?

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
___

[NTG-context] revert to an older install not working?

2013-07-19 Thread Pablo Rodríguez
Dear list,

after the missing file in the latest beta, I wanted to revert the
installation back to previous beta (2013.07.14).

I tried it with the following command:

./first-setup.sh --context=2013.07.14

But it gives the following error:

rsync: change_dir /current/context/2013.07.14 (in minimals)
failed: No such file or directory (2)

Am I missing something or revert to an older install is disabled?

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] 'math-rad.mkvi' missing

2013-07-19 Thread Pablo Rodríguez
On 19/07/13 19:00, Hans Hagen wrote:
 On 7/19/2013 4:41 PM, Peter Rolf wrote:
 Hi,

 I just started 'first-setup.bat' and the final compilation fails with

 [..]
 loading  ConTeXt Math Macros / Scripts
 ) (V:/tmp/context/tex/texmf-context/tex/context/base/math-int.mkiv
 loading  ConTeXt Math Macros / Integrals
 ) (V:/tmp/context/tex/texmf-context/tex/context/base/math-del.mkiv
 loading  ConTeXt Math Macros / Delimiters
 ) (V:/tmp/context/tex/texmf-context/tex/context/base/math-fen.mkiv
 loading  ConTeXt Math Macros / Fences
 )
 ! I can't find file `math-rad.mkvi'.
 to be read again
 \relax
 l.433 \loadmkvifile{math-rad}

 Please type another input file name:
 
 ah, it's a mkvi file ... i'll fix it

Many thanks for the fast fix.


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] still a bug with compressed linenotes and no compressseparator

2013-07-19 Thread Pablo Rodríguez
On 14/07/13 12:43, Pablo Rodríguez wrote:
 Dear Hans,
 [...]
 I think there is a simple way to solve both issues: if
 compressseparator is set to none, the space after should be removed in
 all cases.
 
 Would it be possible to implement this?

Hans,

many thanks for your implementation in latest beta.


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] INstalling the context version of TeX distro.

2013-07-19 Thread Pablo Rodríguez
On 19/07/13 20:51, john Culleton wrote:
 [...]
 Slight problem. The standard install assumes that one can get to the
 internet from Windoze. I can't. WIn 7 refuses to talk to my obsolete
 linksys router and the Linksys software disk doesn't work with Win XP or
 Win 7. So is there a context zip that actually contains the software?
 
 Linux and my router is of course no problem. but I want to run Context
 on a windows partition. 

Hi John,

it seems that you can do this in Linux:

./first-setup.sh --platform=mswin

zip the results and move it to Windows.

I’d read the original message to be found at
http://www.ntg.nl/pipermail/ntg-context/2012/070179.html.

Just in case it helps,


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] weird interaction in linenotes command (again)

2013-07-18 Thread Pablo Rodríguez
On 18/07/13 12:21, Hans Hagen wrote:
 On 7/17/2013 9:05 PM, Wolfgang Schuster wrote:
 
 \unexpanded\def\strc_references_set_named_reference_indeed#kind#labels#userdata#text%
  labels userdata text - todo: userdata
{...
 % will become an option:
 \ifnum\lastdestinationattribute\zerocount
   \dontleavehmode\hbox attr 
 \destinationattribute\lastdestinationattribute\bgroup
 \strc_references_flush_destination_nodes
   \egroup
 
 \prewordbreak % experiment
 
 \fi}

Many thanks for your replies, Wolfgang and Hans.

Hans, I’m afraid that your patch fixes Wolfgang’s sample, but not mine.

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] weird interaction in linenotes command (again)

2013-07-18 Thread Pablo Rodríguez
On 18/07/13 21:31, Wolfgang Schuster wrote:
 [...]
 New minimal example:
 [...]
 \dorecurse{10}{\startline[test:2:#1]not 
 original\prewordbreak\stopline[test:2:#1] }

Many thanks for your reply, Wolfgang.

Now I understand what was required here and what \prewordbreak does
(modifying strc-ref.mkvi was Greek to me).

This fixes the issue with my command.

Many thanks again 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
___


[NTG-context] bug with beta 2013.07.12 19:10

2013-07-17 Thread Pablo Rodríguez
Dear list,

here is a sample with latest beta for ConTeXt Suite:

\setupinteraction[state=start,color=,
style=,contrastcolor=,focus=standard]
\setuppagenumbering[alternative=doublesided]
\starttext
\startbodymatter
body text\footnote{footnote}
\stopbodymatter
\stoptext

I can’t compile it, since I get an error (log below).

I’m afraid it might be a bug. Just in case it helps,

Best,


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
___


[NTG-context] weird interaction in linenotes command (again)

2013-07-17 Thread Pablo Rodríguez
Dear list,

sorry for posting this again, but I don’t know how to solve this issue
and I really need your help.

I have the following sample:

\setuppapersize[A6]
\newcounter\LineNote

\setupnote[linenote][paragraph=yes]
\setupnotation[linenote][alternative=serried]

\define[2]\Variant
  {\increment\LineNote
   \startlinenote[LineNote:\LineNote]{#2}#1%
   \stoplinenote[LineNote:\LineNote]}

\starttext

\startlinenumbering
\dorecurse{10}{\Variant{\showhyphens{legislation}not
original}{variant} \Variant{\showhyphens{legibility}origin}
{variants} }
\stoplinenumbering
\stoptext

The problem here is that \Variant gets always #1 not hyphenated,
although \showhyphens works fine in that argument.

The cause of this is the \increment command within \Variant. I don’t
know why this happens, but the increment is required by \Variant to make
sense at all.

I guess this might be a bug. Is there no possible workaround for this?

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
___


[NTG-context] counter in linenote disables hyphenation in body text

2013-07-15 Thread Pablo Rodríguez
Dear list,

in the following sample:

\setuppapersize[A6]
\newcounter\LineNote

\setupnote[linenote][paragraph=yes]
\setupnotation[linenote][alternative=serried]

\define[2]\Variant
  {\increment\LineNote
   \startlinenote[LineNote:\LineNote]{#1 #2}
   #1%
   \stoplinenote[LineNote:\LineNote]}

\starttext

\startlinenumbering
\dorecurse{10}{\Variant{not original}{variant}
\Variant{origin}{variants} }
\stoplinenumbering
\stoptext

I have realized that hyphenation is disabled in body text when
\increment\LineNote is used in the \Variant command definition.

I don’t know whether this is a bug, but I don’t know how to workaround
it either.

Does anyone how to get the body text hyphenated with this command?

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] new beta

2013-07-14 Thread Pablo Rodríguez
On 14/07/13 10:53, Philipp Gesang wrote:
 ···date: 2013-07-12, Friday···from: Hans Hagen···
 
  it might be that some changes are
 reflected in the betas, and hopefully not breaking anything.
 [...]
 Failing example with ligatures:
 
 \font\foo=file:Iwona-Regular.otf:mode=node;+liga
 \foo
 ffi
 \bye

Hi Philipp,

ligature seems to fail also with beta from 2013.06.10.

But with the latest beta, pages start numbering from 2:

\starttext
\input knuth
\stoptext

Am I the only one hit by this?

Thanks,


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
___


[NTG-context] still a bug with compressed linenotes and no compressseparator

2013-07-14 Thread Pablo Rodríguez
Dear Hans,

many thanks for the latest beta, that fixes the line range numbering.

I’m afraid there are still two issues with compressed linenotes when
the compressseparator is missing.

Having linenotes from the same line separated with only blank space is
a standard practice in critical editions. I’m not a philologist and I
don’t have access to a library on a regular basis. If samples from
http://context.aanhet.net/epen2007/share/idris/cr-apparatus.pdf are
allowed, from three possible examples, figures 4.2 and 4.4 only include
blank space as separator for “compressed” linenotes and figure 4.6
includes a separator (||).

Here a sample (I know there is no hyphenation on body text) that shows
the two issues I’m having problems with:

\setuppapersize[A6]
\setuppagenumbering[location=,]
\definelinenote[Critico]
\setupnote[Critico][paragraph=yes]
\setupnotation[Critico][alternative=serried,
compress=yes, compressseparator=, width=broad]
\newcounter\Contadorvar
\def\apcritico#1#2{\increment\Contadorvar%
\startCritico[Varia:\Contadorvar]{#2}#1%
\stopCritico[Varia:\Contadorvar]}
\starttext
\startlinenumbering
\dorecurse{22}{\apcritico{origin}{variant}
\apcritico{not original,}{variant} }
\stoplinenumbering
\stoptext

If compressseparator is suppressed (such as in the sample), the space
before the missing separator is removed, but the space after the
separator remains. This default is buggy when the compressed
linenote starts at the beginning of the line (as it is the case on lines
4-9 in the apparatus).

But even with linenotes starting at other places in the critical
apparatus, there is another issue: compressed linenotes have more
blank space before than uncompressed ones. I think this might be
visually misleading in some cases.

I think there is a simple way to solve both issues: if
compressseparator is set to none, the space after should be removed in
all cases.

Would it be possible to implement this?

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] new beta

2013-07-13 Thread Pablo Rodríguez
On 13/07/13 03:57, Otared Kavian wrote:
 On 12 juil. 2013, at 20:06, Aditya Mahajan adit...@umich.edu wrote:
 On Fri, 12 Jul 2013, Pablo Rodríguez wrote:
 On 12/07/13 19:21, Hans Hagen wrote:
 Hi,

 I uploaded a beta. There are not that many changes. Currently I develop
 in a separate branch but it might be that some changes are reflected in
 the betas, and hopefully not breaking anything.

 Thanks for the new beta, Hans.

 For me first-setup.sh still downloads the 2013.06.10.
 
 This is also my case: has something changed in first-setup.sh? 

I didn’t check that after downloading the new beta from yesterday.

first-setup.sh has just downloaded ConTeXt - 2013.06.10 22:51.


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
___


[NTG-context] keeping headings with following texts

2013-07-13 Thread Pablo Rodríguez
Dear list,

writing an article on ConTeXt, I have found what I think is a surprising
feature (at least, a surprising default): headings don’t always keep
with next paragraph, so they can end up in being widowed (heading + page
break + first paragraph on next page).

Sorry, but I’m afraid that I don’t understand this default. I have never
seen a printed book that displays this behavior (unless the heading was
alone on its page).

Don‘t get me wrong, I‘m more than happy with ConTeXt. But would anyone
be so kind to explain the reason of the described default? (I’m trying
to understand, so I can explain to others.)

I have found on the list
(http://www.ntg.nl/pipermail/ntg-context/2007/023357.html) the way to
avoid this:

\setuphead[section][before={\page[bigpreference]}]

How can I know which is the exact default value in any given command? (I
need to know the before values for headings, at least.)

Is there a way to enable the “keep with next” option for all headings?

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] keeping headings with following texts

2013-07-13 Thread Pablo Rodríguez
On 13/07/13 14:23, Wolfgang Schuster wrote:
 Am 13.07.2013 um 14:07 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 Is there a way to enable the “keep with next” option for all headings?
 
 Do you have a example where this happens because context tries to prevent
 a page break after a heading which can fail when you put \placefigure etc.
 between the heading and the following text.

Thanks for your reply, Wolfgang.

I guess you refer to the case, not to the code:
http://www.ousia.tk/wrong-title-break.pdf (only the two involved pages
included).

Thanks again 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] keeping headings with following texts

2013-07-13 Thread Pablo Rodríguez
On 13/07/13 15:19, Wolfgang Schuster wrote:
 [...]
 Can you make a minimal tex document out of this. It would be also
 interesting to see your definition for the problematic heading which
 seems to use your own code.

Here you have it:

\usemodule[simplefonts]
\setmainfont[TeX Gyre Pagella]
\setuplayout[setups=*lessstrict]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=1
\stopsetups
\setupinterlinespace[line=3.2ex]

\setupnote[footnote][split=verystrict]

\starttext

\dorecurse{28}{line\\}

\subsection{Subsection Heading}

line one\\
line two%
\footnote{This should be on the same page.}.
\stoptext

I need split set to verystrict in footnotes, otherwise footnotes can be
placed in the next page where their body text reference occurs (I have
never seen this on any printed book). This is exactly what happens when
\setupnote[footnote] is disabled.

But even removing the footnote itself and setting the recursion to 30
times, the subsection heading is also left alone on the first page.

What am I doing wrong here?


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] keeping headings with following texts

2013-07-13 Thread Pablo Rodríguez
On 13/07/13 16:08, Pablo Rodríguez wrote:
 On 13/07/13 15:19, Wolfgang Schuster wrote:
 [...]
 Can you make a minimal tex document out of this. It would be also
 interesting to see your definition for the problematic heading which
 seems to use your own code.
 
 Here you have it:
 
 \usemodule[simplefonts]
 \setmainfont[TeX Gyre Pagella]

Just in case it helps.

If I replace those lines with \setupbodyfont[pagella,12pt], nothing
changes, but if I remove the first two lines quoted above, everything works.

Recursion set to 27 times allows the whole contents on the first page.
And set to 28 times moves the heading to next page.

What does it make such a difference?


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] keeping headings with following texts

2013-07-13 Thread Pablo Rodríguez
On 13/07/13 17:22, Wolfgang Schuster wrote:
 Am 13.07.2013 um 16:39 schrieb Peter Münster pmli...@free.fr:
 On Sat, Jul 13 2013, Pablo Rodríguez wrote:

 If I replace those lines with \setupbodyfont[pagella,12pt], nothing
 changes, but if I remove the first two lines quoted above, everything works.

 No. You don't need those lines for a minimal example:
 [...]
 The penalty between the heading and the following text isn’t high enough
 to prevent a page break. When you set a higher value through the after key
 with the \blank command the break disappears.
 
 \setuphead[section][after={\blank[samepage,big]}]

Many thanks for your help, Wolfgang.

It works perfectly now.

I’m still wondering why your setup isn’t the default in ConTeXt.



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
___


[NTG-context] hyphenation not working inside macro

2013-07-13 Thread Pablo Rodríguez
Dear list,

I have the following sample:

\setuppapersize[A6]
\setuppagenumbering[location=,]
\definelinenote[Critico]
\setupnote[Critico][paragraph=yes]
\newcounter\Contadorvar
\def\apcritico#1#2{\increment\Contadorvar%
\startCritico[Varia:\Contadorvar]{#2}#1%
\stopCritico[Varia:\Contadorvar]}
\starttext
\startlinenumbering
\dorecurse{10}{origin\Critico{variant} not original\Critico{variant} }\par
\dorecurse{10}{\apcritico{origin}{variant} \apcritico{not
original}{variant} }
\stoplinenumbering
\stoptext

And I don’t understand why the first five text body lines are
hyphenated, while the other five aren’t.

What am I doing wrong in the macro?

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] new beta

2013-07-12 Thread Pablo Rodríguez
On 12/07/13 19:21, Hans Hagen wrote:
 Hi,
 
 I uploaded a beta. There are not that many changes. Currently I develop 
 in a separate branch but it might be that some changes are reflected in 
 the betas, and hopefully not breaking anything.

Thanks for the new beta, Hans.

Could the two bugs with compressed linenotes be fixed? ()

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] two bugs with compressed linenotes

2013-07-11 Thread Pablo Rodríguez
On 11/07/13 10:30, Hans Hagen wrote:
 On 7/10/2013 8:18 PM, Pablo Rodríguez wrote:

 I have found two bugs with compressed linenotes that I reported
 (http://www.ntg.nl/pipermail/ntg-context/2013/073940.html and
 http://www.ntg.nl/pipermail/ntg-context/2013/073953.html).
 [...]
 put this in cont-new.mkiv

Many thanks for the patch, Hans.

I copied in cont-new.mkiv (right after \unprotect (from line 19) and I‘m
afraid I get the following error:

! Argument of \515linenote:numbercommand has an extra }.
system   tex  error on line 6 in file
/home/ousia/compressed-linenotes.tex: Argument of  ...
 1 \setupnotation[linenote][compress=yes]
 2 \starttext
 3
 4 \startlinenumbering
 5 \linenote{Without this note, line numbering from ranges is
 6   right}\startlinenote[one]{This should have lines 1 to 3.}line one\\
 7 line two\\
 8 line three\stoplinenote[one]
 9 \stoplinenumbering
10
11 \stoptext
inserted text
\par
to be read again
}
\strc_enumerations_full_number_coupling ...er_yes
  \edef \p_coupling
{\constr...
\strc_enumerations_text ...s_full_number_coupling
  \fi \fi \else
\strc_enumer...
\201notation ...eadcolor \strc_enumerations_text
  \endgroup
\currentconstructiontext ...ionhandler \endcsname
  \endstrut
...
l.6 right}
\startlinenote[one]{This should have lines 1 to 3.}line one\\
?
! Emergency stop.

Am I doing something wrong? (Sorry, but this is all Greek to me.)


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
___

[NTG-context] two bugs with compressed linenotes

2013-07-10 Thread Pablo Rodríguez
Dear Hans,

I have found two bugs with compressed linenotes that I reported
(http://www.ntg.nl/pipermail/ntg-context/2013/073940.html and
http://www.ntg.nl/pipermail/ntg-context/2013/073953.html).

I would like to introduce ConTeXt for critical editions to some
Spanish-speaking people and I think this is a very useful feature.

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
___


[NTG-context] logo from wiki

2013-07-04 Thread Pablo Rodríguez
Dear list.

where is  the ConTeXt source for this image:
http://wiki.contextgarden.net/skins/common/images/context/context_logo_inv.png?

Thanks,


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] logo from wiki

2013-07-04 Thread Pablo Rodríguez
On 04/07/13 09:34, Philipp Gesang wrote:
 ···date: 2013-07-04, Thursday···from: Pablo Rodríguez···
 
 Dear list.

 where is  the ConTeXt source for this image:
 http://wiki.contextgarden.net/skins/common/images/context/context_logo_inv.png?
 
 I haven’t tested if it still works out of the box but afaik this
 is the MP source:
 
   http://www.ntg.nl/pipermail/ntg-context/2009/038877.html

Many thanks for your reply, Philipp.


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] logo from wiki

2013-07-04 Thread Pablo Rodríguez
On 04/07/13 11:08, Siep Kroonenberg wrote:
 On Thu, Jul 04, 2013 at 08:22:59AM +0200, Pablo Rodríguez wrote:
 Dear list.

 where is  the ConTeXt source for this image:
 http://wiki.contextgarden.net/skins/common/images/context/context_logo_inv.png?
 
 This particular version is an inkscape svg. It is probably still
 somewhere on the site, but in case it is not, I am attaching it
 here.

Many thanks, Siep, for your reply and the attached SVG logo (which
serves my purposes).


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
___


[NTG-context] --purgebufffers option?

2013-07-04 Thread Pablo Rodríguez
Dear Hans,

I compile ConTeXt documents with --purgeall, but if I save buffers into
files and typeset those files or I typeset buffers directly, these files
aren’t purged after successful compilation.

Would it be possible to enable an option (such as --purgebuffers) that
removes all buffer files generated by that compilation?

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
___


[NTG-context] \showsetup not working?

2013-07-03 Thread Pablo Rodríguez
Dear list,

I think I have used once or twice in the past, but has \showsetup been
deprecated?

When I try to compile:

  \starttext
  \showsetup{language}
  \stoptext

I get:

  ! Undefined control sequence.

Is there a replacement for \showsetup.

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] \showsetup not working?

2013-07-03 Thread Pablo Rodríguez
On 03/07/13 22:28, Wolfgang Schuster wrote:
 Am 03.07.2013 um 20:00 schrieb Pablo Rodríguez oi...@web.de:
 [...]
 Is there a replacement for \showsetup?

 Many thanks for your help,
 
 1. You have to load the “int-load” module.
 
 2. You have to load the definitions for the core commands.

Many thanks for your help, Wolfgang.

Is there a way to load the definitions for all commands?

I mean, I'm interested in \setuplinenote, \setupmargindata and similar.

Many thanks for your help again,


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] Possible bug with new \start ... \stop way for title, chapter, subject, etc.?

2013-06-29 Thread Pablo Rodríguez
On 29/06/13 07:46, Andres Conrado Montoya wrote:
 [...]
 Is this a bug or a new feature that I don't understand?
I don‘t know whether it’s a bug. But this works:

\startsubject[title={Tufte}]%
 With startsubject: \input tufte\par
\stopsubject

It seems that the \start... commands add an extra space. I don‘t know
whether it’s a bug, but this works:

\startsubject[title={Tufte}]%
 With startsubject: \input tufte\par
\stopsubject


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] documents inside documents

2013-06-26 Thread Pablo Rodríguez
On 26/06/13 04:47, Wolfgang Schuster wrote:
 Am 26.06.2013 um 00:07 schrieb Pablo Rodríguez oi...@web.de:
 One more question, the file belongs in the following code:

 \startstandardmakeup[align=middle]
 \typesetfile[sample-document.tex][width=10cm, frame=on]
 \stopstandardmakeup

 How can I get this horizontally centered It is vertically centered, and
 it should be also horizontally aligned, but I don't know why doesn't it
 work.
 
 You need \dontleavehmode, i.e. \dontleavehmode\typesetfile[…].

Many thanks for your reply, Wolfgang.

From what I understand, the command is basically telling ConTeXt: “don’t
make a new paragraph break after the inserted float”, isn‘t it?


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] documents inside documents

2013-06-26 Thread Pablo Rodríguez
On 26/06/13 19:56, Aditya Mahajan wrote:
 On Tue, 25 Jun 2013, Pablo Rodríguez wrote:
 Dear list,

 I know I can create another document and then insert the pages, but it
 would be much easier for me to be able to have the code inside the main
 the document.

 Is there a standard way to do it with ConTeXt?
 
 Another option is to use the filter module (it takes care of caching and 
 naming of temporary files, and you can specify an output directory for 
 all auxillary files)
 
 https://github.com/adityam/filter

Many thanks, Aditya, for your reply.


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] documents inside documents

2013-06-26 Thread Pablo Rodríguez
On 26/06/13 20:01, Wolfgang Schuster wrote:
 You need \dontleavehmode, i.e. \dontleavehmode\typesetfile[…].

 Many thanks for your reply, Wolfgang.

 From what I understand, the command is basically telling ConTeXt: “don’t
 make a new paragraph break after the inserted float”, isn‘t it?
 
 No, the command tells TeX to go into horizontal mode.

Many thanks for your reply, Wolfgang.

I understand now what horizontal mode is.


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
___


[NTG-context] aligning texts and not lines

2013-06-26 Thread Pablo Rodríguez
Dear list,

I have the two following samples:

\startstandardmakeup[align=middle]
\starttyping[option=TeX]
\mainlanguage[es]
\setuplanguage[es][patterns={es,agr}]
\stoptyping
\stopstandardmakeup

\startstandardmakeup[align=middle]
Would that in body and spirit Shakespeare came\\
Visible emperor of the deeds of Time,\\
With Justice still the genius of his rhyme,\\
Giving each man his due, each passion grace,\\
Impartial as the rain from Heaven's face\\
Or sunshine from the heaven-enthroned sun.\\
Sweet Swan of Avon, come to us again.\\
Teach us to write, and writing, to be men.
\stopstandardmakeup

I would like both texts to be centered, but I don’t want the lines to be
centered too.

How could I get this?

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] aligning texts and not lines

2013-06-26 Thread Pablo Rodríguez
On 26/06/13 20:35, Wolfgang Schuster wrote:
 Am 26.06.2013 um 20:30 schrieb Pablo Rodríguez oi...@web.de:
 Dear list,

 \startstandardmakeup[align=middle]
 Would that in body and spirit Shakespeare came\\
 Teach us to write, and writing, to be men.
 \stopstandardmakeup

 I would like both texts to be centered, but I don’t want the lines to be
 centered too.

 How could I get this?
 
 \startframedtext[middle][frame=off]
 …
 \stopframedtext

Many thanks for your help, Wolfgang.


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
___


[NTG-context] compressed linenotes break right line range numbering

2013-06-26 Thread Pablo Rodríguez
Dear Hans,

I'm afraid that there is a bug in compressed linenotes that prevents to
have the line ranges to be properly numbered.

Here you have a sample:

\setupnotation[linenote][compress=yes]
\starttext

\startlinenumbering
\linenote{Without this note, line numbering from ranges is
right}\startlinenote[one]{This should have lines 1 to 3.}line one\\
line two\\
line three\stoplinenote[one]
\stoplinenumbering

\stoptext

It happens when compressed linenotes are enabled and there is a linenote
before the \startlinenote. In that case, only the first line is
numbered, not the last.

Could you fix that?

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] compressed linenotes break right line range numbering

2013-06-26 Thread Pablo Rodríguez
On 26/06/13 22:58, Hans Hagen wrote:
 On 6/26/2013 10:46 PM, Pablo Rodríguez wrote:
 [...]
 It happens when compressed linenotes are enabled and there is a linenote
 before the \startlinenote. In that case, only the first line is
 numbered, not the last.

 Could you fix that?
 
 not today (or this week) but i'll look into it

Many thanks, Hans,

I have found another issue with compressed linenotes that I will report
tomorrow, so that you can check also that when you have time.

Thanks again,


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
___


[NTG-context] wrong space when compressseparator is empty

2013-06-26 Thread Pablo Rodríguez
Dear Hans,

I have the following sample:

\showstruts
\setupnote[linenote][paragraph=yes, inbetween=\hskip1.5em]
\setupnotation[linenote][alternative=serried, compress=yes,
compressseparator=, distance=1em]
\starttext
\startlinenumbering
\dorecurse{500}{text\linenote{variant} }
\stoplinenumbering
\stoptext

that shows the following issue: when compressseparator is set to none,
ConTeXt doesn’t suppress the distance that comes after the separator at
the beginning of the line.

As a general rule, I think it would make sense to always suppress
distance after separator when the separator isn’t set (not only at the
beginning of the line). This wouldn’t only fix the issue described
above, but it would avoid that compressed linenotes have more separation
space than uncompressed ones.

Could you fix this?

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
___


[NTG-context] wrong page break if avoiding orphans and widows

2013-06-25 Thread Pablo Rodríguez
Dear list,

I have in a document in which I get a wrong page break
(http://www.ousia.tk/wrongpb.png) when I enable this code to avoid
widows and orphans:

\setuplayout[setups=*lessstrict,
cutspace=3cm,backspace=3cm]
\startsetups[*lessstrict]
\setup[reset]
\widowpenalty=1
\clubpenalty=1
\brokenpenalty=1
\stopsetups

I'm afraid that this causes that the first line from the page on the
right should be added to the page on the left. If I'm not wrong, there
is space available for it.

What am I doing wrong here?

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
___


[NTG-context] documents inside documents

2013-06-25 Thread Pablo Rodríguez
Dear list,

I need for a document explaining some ConTeXt features, to be able to
include a document inside (a page that includes the feature).

I know I can create another document and then insert the pages, but it
would be much easier for me to be able to have the code inside the main
the document.

Here is a sample of what I want to include scaled (the way an image is
included) within another document:

\mainlanguage[en]
\setuplanguage[en][patterns={en,agr}]
\definepapersize[mine][width=6in,height=2in]
\setuppapersize[mine]
\usemodule[simplefonts]
\setmainfont[Theano Didot]
\definelinenote[contxt]
\setupnote[contxt][paragraph=yes, inbetween=\hskip1.5em]
\setupnotation[contxt][numbercommand=,alternative=serried,distance=1em,compress=yes,compressseparator=]
\starttext

\startlinenumbering
οὐκ οἶσθ᾽\contxt{οἶσθ᾽: οἶσθα, 2nd sg.,
οἶσδα} ὅτι πολλῶν ἐτῶν\contxt{πολλῶν
ἐτῶν: for…; gen. time within} Ἀγάθων ἐνθάδε
οὐκ ἐπιδεδήμηκεν\contxt{ἐπιδεδήμηκεν: pf.
ἐπιδήμέω}, ἀφ᾽ οὗ\contxt{ἀφ᾽ οὗ: since;
“from which (time)”} δ᾽ ἐγὼ Σωκράτει
συνδιατρίβω\contxt{συνδιατρίβω: I have been
spending; pres. but pf. progressive in translation} καὶ
ἐπιμελὲς πεποίημαι\contxt{ἐπιμελὲς
πεποίημαι: I have made it my business; “have made it my
care,” pf.}
\stoplinenumbering

\stoptext

Is there a standard way to do it with ConTeXt?

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] documents inside documents

2013-06-25 Thread Pablo Rodríguez
On 25/06/13 21:55, Wolfgang Schuster wrote:
 Am 25.06.2013 um 21:31 schrieb Pablo Rodríguez oi...@web.de:
 Dear list,

 I need for a document explaining some ConTeXt features, to be able to
 include a document inside (a page that includes the feature).

 I know I can create another document and then insert the pages, but it
 would be much easier for me to be able to have the code inside the main
 the document.

 Is there a standard way to do it with ConTeXt?
 
 http://www.ntg.nl/pipermail/ntg-context/2013/072963.html

Many thanks for your fast reply, Wolfgang.

I'm afraid I cannot get it working with the sample file I provided. I do
need to be able to get a complete document, not a TEXpage.

Is that possible?

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] documents inside documents

2013-06-25 Thread Pablo Rodríguez
On 25/06/13 23:28, Peter Münster wrote:
 On Tue, Jun 25 2013, Pablo Rodríguez wrote:
 
 http://www.ntg.nl/pipermail/ntg-context/2013/072963.html

 I'm afraid I cannot get it working with the sample file I provided.
 
 Hi,
 
 Why not?
 
 This works here:

Many thanks, Peter, it works also here.

One more question, the file belongs in the following code:

\startstandardmakeup[align=middle]
\typesetfile[sample-document.tex][width=10cm, frame=on]
\stopstandardmakeup

How can I get this horizontally centered It is vertically centered, and
it should be also horizontally aligned, but I don't know why doesn't it
work.

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] MkIV in the wiki?

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 09:52, Sietse Brouwer wrote:
 Hi Pablo,
 
 MkIV-compilation is already enabled -- just use
 
 context mode=mkiv source=yes
 (showing the source is optional, but usually what you want)
 /context
 
 For more info on the `context` tags:
 http://wiki.contextgarden.net/Help:Context

Hi Sietse,

many thanks for your tip and sorry for the noise.

Cheers,


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] wrong interlinespace or wrong font?

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 10:26, Sietse Brouwer wrote:
 Hi Pablo,
 
 I think this is a problem with the Unifraktur Maguntia font. I just
 downloaded it [1], and measured it using \blackrule -- and the
 x-height is indeed ridiculously low.
 
 [1] from here: http://unifraktur.sourceforge.net/maguntia.html
 
 \setupinterlinespace[line=3.2ex]
 \usemodule[simplefonts]
 \setmainfont[UnifrakturMaguntia]
 \starttext
 
 xAAgfas\smash{\blackrule[height=1ex]}\smash{\blackrule[height=2mm]\\
 xAAgfas\smash{\blackrule[height=2ex]}\\
 xAAgfas\smash{\blackrule[height=3ex, color=red]}\\
 xAAgfas\smash{\blackrule[height=3.2ex, color=blue]}\\
 
 \stoptext
 
 Probably best to take this up with the font designer?

Many thanks for your reply, Sietse.

I'll report the proper bug to the font designer.

I cannot compile your code either on my system or on
http://live.contextgarden.net/. I don't know what the error might be,
but I'm not able to compile it.

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] simplefonts wiki page added

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 11:01, Sietse Brouwer wrote:
 I have added a new simplefonts page for new users. (I hope it isn't full
 of errors ;-).)
 
 It's beautiful. A model of completeness and clarity, and I am
 especially delighted that you took the trouble to remove the duplicate
 info from [[Fonts in LuaTeX]]. Nice work!

Many thanks for your kind words, Sietse.

 I made two minor changes:

I made another change: I added the compiled documents.

Is there any way to know which fonts are installed with ConTeXt
Standalone (which, I assume, is the distribution the wiki runs)?

Does any font include ancient Greek or Russian (to show the font
fallback mechanism)? Other scripts are fine, but then I'd need help for
that.

 * Article names always start with a capital letter (this makes them
 easier to guess), so I moved the page to [[Simplefonts]]

I avoided that since it was a module name. But you are the expert here.

 * for links to source files, you can use the `src` template:
 `{{src|font-ini.lua}}`.

Thanks, I didn’t know that.

Many thanks for your encouragement and 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] faked fonts not working

2013-06-24 Thread Pablo Rodríguez
On 22/06/13 16:03, Pablo Rodríguez wrote:
 Dear list,
 
 as far as I can remember, this used to work in the past:
 
 \setupbodyfontenvironment[default][em=italic]
 \usemodule[simplefonts]
 
 \definefontfeature[fakeitalic][default][slant=.25]
 \definefontfeature[fakebold][default][extend=2]
 \definefontfeature[fakebolditalic][default][slant=.25, extend=2]
 \setmainfont[Larabiefont][italicfont={* Regular}, boldfont={*
 Regular}, bolditalicfont={* Regular}, italicfeatures=fakeitalic,
 boldfeatures=fakebold, bolditalicfeatures=fakebolditalic]

I have experienced that one fonts work with this and others don’t.

Is there no way to force these features on all fonts?

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] simplefonts wiki page added

2013-06-24 Thread Pablo Rodríguez
On 24/06/13 19:51, Hans Hagen wrote:
 On 6/24/2013 7:46 PM, Pablo Rodríguez wrote:
 [...]
 Is there any way to know which fonts are installed with ConTeXt
 Standalone (which, I assume, is the distribution the wiki runs)?
 
 mtxrun --script font --list --all --info

Many thanks for your help, Hans.


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] Can't find recommended tool

2013-06-23 Thread Pablo Rodríguez
On 23/06/13 08:09, d.henman wrote:
 
 Pable,
 thanks, but it doesn't work. so easily. mxtrun only see what is in
 the TeX directory tree and uses that font database. My question is
 how to register the font to that system so that mtxrun can find it.
 How does one do that with a ttf font file?
 
 Thanks

The variable is (I'm assuming you use Windows [I don't know whether this
have changed in versions above XP]):

OSFONTDIR=c:/windows/fonts//

If I'm not wrong, you should add this into your texmf.cnf file (invoke
it with kpsewhich texmf.cnf).

Rebuild the font cache (mtxrun --script fonts --reload) and it should
work.

I hope this helps,


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
___


[NTG-context] MkIV in the wiki?

2013-06-23 Thread Pablo Rodríguez
Dear wiki administrators,

is it planned to enable MkIV compilation in the wiki?

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
___


[NTG-context] simplefonts wiki page added

2013-06-23 Thread Pablo Rodríguez
Dear list,

I have added a new simplefonts page for new users. (I hope it isn't full
of errors ;-).)

There may be some missing information, because I don't understand how
the standard font handling in ConTeXt works.

And I removed duplicated content from the font handling in LuaTeX
(http://wiki.contextgarden.net/index.php?title=Fonts_in_LuaTeXaction=historysubmitdiff=21929oldid=20049).

Just in case it helps,


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] counters identifying notes

2013-06-22 Thread Pablo Rodríguez
On 21/06/13 23:07, Wolfgang Schuster wrote:
 Am 21.06.2013 um 19:40 schrieb Pablo Rodríguez oi...@web.de:
 [..]
 And I would like to make \variant operative, so I thought I could
 replace 0 with a counter, redefining it so:

\def\variant#1#2{%
\startlinenote[\getnumber[lnt]]{#1] #2}#1%
\stoplinenote[\getnumber[lnt]]%
\incrementnumber[lnt]}
 
 1. Use came case for your own command names to avoid conflicts with
 core commands.
 
 2. Don’t use simple numbers as reference names.
 
 3. You can’t use nested brackets which causes problems with the
 parser for the arguments. What you have to do in this such a case is
 to hide the pair with braces, e.g. [{[…]}].
 
 4. ConTeXt has another counter mechanism which doesn’t has this
 problem
 
 \newcounter\LineNote

Many thanks for your advice, Wolfgang.


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
___


  1   2   3   4   >