Re: [NTG-context] MKIV and XML documentation

2007-12-18 Thread Pablo Rodríguez
Hans Hagen wrote:
> Johannes Graumann wrote:
>> Dear all,
>>
>> What is currently the best source for documentation on mark iv's xml
>> capabilities?
> 
> there is a chapter in mk.pdf; next year i'll write a manual (and i'll 
> probably give a tutorial at the context conference)

I have read that chapter and I wonder whether this XML handling will be 
available in LuaTeX or it will be exclusive for ConTeXt.

Sorry if the question seems to be stupid. I would like to know whether 
this will be available for LuaTeX + LaTeX one day.

Thanks,


Pablo
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] new to ConTeXt

2006-11-04 Thread Pablo Rodríguez
Hi there,

after more than five years using LaTeX (Lambda and XeLaTeX, this one for
the last months), I have decided to give ConTeXt a try. LaTeX is fine
for me: I have typeset my own dissertation in Philosophy (with ancient
Greek and Unicode) and a couple of books. But the modular design makes
things tricky at the end, and I would like to give ConTeXt (with XeTeX
and LuaTeX when it comes) a try.

At the same time, I would like to switch from TeX to XML. TeX is fine,
but XML is better for other than typographical purposes. Coming from the
humanities, I guess the right choice is TEI (P5 is expected to be
released before middle of the following year). I had some experience
with XML and Docbook some years ago, but that was before I switched to
Linux and Docbook aims to technical documentation (and I'm not a
technical guy).

I guess I can mix ConTeXt and XML with the eXaMpLe framework (I have
just read about it at wiki.contextgarden.net). In order to understand
TEI and ConTeXt, I would like to be able to create the files that will
be able to compile an TEI XML document with ConTeXt  without having to
convert it to ConTeXt. I would like to avoid XSL and XSL-FO. I guess it
should be something similar DocbookInConTeXt, but I don't know whether
it uses the eXaMplE framework (I don't even know whether .

Could anyone comment on this topic? I mean, whether the described task
could be achieved with ConTeXt, which issues may arise, whether this is
the best approach to the issue, whether I miss something, and so on.

Thanks for your help,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new to ConTeXt

2006-11-07 Thread Pablo Rodríguez

Hans Hagen wrote:
>> should be something similar DocbookInConTeXt, but I don't know whether
>> it uses the eXaMplE framework (I don't even know whether .
>>   
> the example framework is some ongoing experiment with web related 
> tex/xml things; you don't need that, just stick to the built in xml 
> handler (as described in example.pdf, but more extensive examples can be 
> found in the x-*.tex files in the distribution
>> Could anyone comment on this topic? I mean, whether the described task
>> could be achieved with ConTeXt, which issues may arise, whether this is
>> the best approach to the issue, whether I miss something, and so on.
>>   
> most of the projects we run at pragma involve xml -> pdf processing; 
> using a dedicated dtd works most convenient
> 
> using tei is ok, as long as you stick to structural elements and keep 
> away from layour-related coding

Thanks for your answer, Hans. Sorry for not answering before (these days
I find myself installing a new computer and moving data into it).

It seems that the task is more difficult than I thought (although
x-contm.tex seems a very interesting example to begin with).

But my problem right now is ConTeXt itself. My PhD thesis (that was
typeset with LaTeX [for the examination board], Lambda [for the
electronic publication] and XeLaTeX [just for fun ;-)]) contains quotes
and some fragments in ancient Greek. And I would like to be able to do
similar things (in a fancier way, of course ;-)) with ConTeXt.

For those ones who were newbies not so long ago or that come from a
humanities background, which are the best documents to start learning
ConTeXt?

Thanks for your help,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new to ConTeXt

2006-11-08 Thread Pablo Rodríguez
Thomas A. Schmitz wrote:
> On Nov 7, 2006, at 9:20 PM, Pablo Rodríguez wrote:
>> For those ones who were newbies not so long ago or that come from a
>> humanities background, which are the best documents to start learning
>> ConTeXt?
> 
> Difficult to answer this question because it's a bit vague. What kind  
> of documents do you want to produce with ConTeXt? Articles,  
> presentations, textbooks, lists, interactive screen documents?

Many thanks, Thomas, for your reply.

Maybe the issue here is that I want to learn how to do things in ConTeXt
that I was able to do with LaTeX. But this may be the wrong approach to
ConTeXt (because this might not be a good way to learn ConTeXt using
LaTeX as the background example).

I want ConTeXt to produce mainly articles and textbooks (after learning
that it will be easy to figure out presentations). I know some
references, but I don't know which are the best ones.

BTW, are “ConTeXt, an excursion” and “ConTeXt the manual” good
introductions to start with ConTeXt or are they (too) outdated?

> But to give you a few pointers that may or may not be useful:

Thanks, they are useful.

> - The first stop would be the wiki http://wiki.contextgarden.net .  
> There is a section called "Sample documents" that may be a good  
> starting point.
> 
> - You could have a look at recent issues of the PracTeX journal;  
> there is some stuff about ConTeXt in there, and it should be good for  
> beginners.
> 
> - Of course, the Pragma website, but I guess you know that already.
> 
> - Finally, for ancient Greek, there is the ancientgreek module http:// 
> modules.contextgarden.net/t-greek which I find superior to all Greek  
> typesetting in LaTeX (because I wrote the module).

With this particular topic, I'm not sure whether I fully understand what
you mean. For me, input and output must be Unicode (it is the best way
to avoid problems) and this can be done with XeTeX. I don't know how
good the integration with ConTeXt is, but for me and before LuaTeX is
released in an stable version, XeTeX is the only way of dealing with
fonts in TeX. Is there something in your Greek module that cannot be
done with XeTeX?

> Don't hesitate to ask here when you have specific questions, but  
> maybe that can get you started. I am a humanities guy and do all my  
> work in ConTeXt...

Actually, I knew that you were the person I wanted to ask about this.
Some time ago, I read somewhere (on the web) that you switched to
ConTeXt, after having to edit a book with Word. And then I discovered
that you teach Classics at Bonn.

Then, if the question is not too personal (it hope not, but sorry if it
is): how did you learn ConTeXt? Only tinkering with already existing
modules? Did you read any manuals? (Again, if this is not too personal,
I assume that our interests in ConTeXt are similar, although I'm not a
classicist and I don't belong to the academia)

Thanks for your help,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new to ConTeXt

2006-11-08 Thread Pablo Rodríguez
Aditya Mahajan wrote:
> On Tue, 7 Nov 2006, Pablo Rodríguez wrote:
>> For those ones who were newbies not so long ago or that come from a
>> humanities background, which are the best documents to start learning
>> ConTeXt?
> 
> There is also Berend de Boer's Latex in proper context that can help 
> in the transition.
> 
> http://articles.contextgarden.net/article/32

Thanks for the answer, Aditya. I have read it. It helps and it could be
supplemented with http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt (I
guess there are some things not contained in the original article).


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new to ConTeXt

2006-11-08 Thread Pablo Rodríguez
nico wrote:
>> On Tue, 7 Nov 2006, Pablo Rodríguez wrote:
>>> Thanks for your answer, Hans. Sorry for not answering before (these days
>>> I find myself installing a new computer and moving data into it).
>>>
>>> It seems that the task is more difficult than I thought (although
>>> x-contm.tex seems a very interesting example to begin with).
> 
> Since this thread is also talking about some tools, I'll complete the list  
> with dbcontext (http://dblatex.sf.net) on which I contribute, that  
> translates DocBook to ConTeXt via XSL stylesheets. I guess that many  
> aspects could be directly handled by context.

Thanks for your answer. I know that XML can be converted to
TeX/LaTeX/ConTeXt using XSL, but my XML is TEI (http://www.tei-c.org/)
and not DocBook. If I would use XSL transformation, I guess it would be
easier (at least for me) to adapt the already existing TEI-XML->LaTeX
XSL files and adapt them to ConTeXt. I wonder (out of ignorance) whether
this would be a better way than parsing the XML directly with ConTeXt.

Thanks,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new to ConTeXt

2006-11-13 Thread Pablo Rodríguez
Sorry for not having answered before, Thomas.

>>> - Finally, for ancient Greek, there is the ancientgreek module  
>>> http://
>>> modules.contextgarden.net/t-greek which I find superior to all Greek
>>> typesetting in LaTeX (because I wrote the module).

Is this module contained in the standard ConTeXt distribution or has it
to be downloaded separately?

After reading the the three files contained in the module. I wonder
whether they provide hyphenation for Greek. Do they?

> I must admit that I've been too lazy to really test XeTeX, so I may  
> be wrong here. You can use Unicode input with the module; the only  
> difference would be that you have to wrap all Greek passages in  
> \localgreek{} commands or \start ... \stop pairs. I guess XeTeX  
> provides proper hyphenation for Greek, but
> - the module has support for more fonts than XeTeX;
> - does XeTeX allow relative scaling of fonts?
> Anyway, only Hans and Taco know to what extent I will have to rewrite  
> everything when luatex and support for OpenType fonts are there.

XeTeX allows relative scaling of fonts.

> Yes, I started with already existing modules, and it took me a while  
> (and lots of help here on the list) to write my own code. I never  
> actually read any manual cover to cover, but the big manual is almost  
> always open on my computer for reference. I just finished typesetting  
> a book with ConTeXt, complete with dozens of cross-references,  
> indexes, bibliography. Nothing very complicated, but it's wonderful  
> to see that things work. There are still two or three problems, but  
> they are fairly harmless. I love donig my own presentation styles  
> with ConTeXt and metafun. The more I use ConTeXt, the more amazed I  
> am...
> 
> Hope this can inspire you a bit

Yes. Tinkering (and asking in the mailing list ;-)) is the way of learning.

I have discovered the “Typographic Programming” document  style.pdf)
which seems very interesting, but unfortunately it is far for being
complete. And I guess Hans is too busy to finish this book anytime soon.

Thanks,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] XeTeX, ConTeXt and PDF

2006-11-13 Thread Pablo Rodríguez
Hi there,

I'm using xdvipdfmx 0.3 and ConTeXt  ver: 2006.11.06 09:10 MK II  fmt:
2006.11.11  int: english/english.

Papersize doesn't seem to work in \setuppapersize[A4,landscape]. Even if
I use \pdfpageheight=21cm and \pdfpagewidth=29.7cm, I get a 29.7×29.7cm
square as papersize. I think that the issues with XeTeX and papersize
have been already solved.

When producing bookmarks with XeConTeXt, for some strange reason
destinations change the page view to /Fit. Is there any way to avoid this?

Bookmarks are generated fine in UTF-8, but surprisingly (at least for
me) the file info is wrong generated. Here you have an example:

\enableregime[utf]
\definetypeface[myfont][rm][Xserif][Junicode]
\setupbodyfont[myfont,12pt]
\setupinteraction[state=start,title={χαλεπὰ τὰ καλά}]
\setupinteractionscreen[option=bookmark]
\placebookmarks[chapter,section,subsection]

\starttext
\chapter{χαλεπὰ τὰ καλά}
\stoptext

By the way, could not "texmfstart texexec --xtx" invoke xdvipdfmx with
the -E option enabled by default? Many fonts include the embedding
restriction not forbid embedding, but to avoid font modification.

Thanks for your help,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] relative scaling for fonts

2006-11-13 Thread Pablo Rodríguez
Hi there,

I'm using XeTeX one of the features that I miss at most from XeLaTeX
(from fontspec), is the possibility to set automatically the scaling of
fonts so that they match the lowercase or uppercase letters of the roman
font. I wonder whether there is something similar for ConTeXt.

By the way, the ConTeXt uses in my view, the wrong XeTeX way to set the
interlinear space, since it seems that \XeTeXuseglyphmetrics is set to
0. Probably I should be missing something, but if \XeTeXuseglyphmetrics
is not set to 1, ConTeXt will set the interlinear space not by itself,
but following the glyph metrics and in some fonts the font height. I
guess it would be better to use \XeTeXuseglyphmetrics=1.

Best,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] relative scaling for fonts

2006-11-13 Thread Pablo Rodríguez
Henning Hraban Ramm wrote:
> Am 2006-11-12 um 22:17 schrieb Pablo Rodríguez:
> 
>> I'm using XeTeX one of the features that I miss at most from XeLaTeX
>> (from fontspec), is the possibility to set automatically the  
>> scaling of
>> fonts so that they match the lowercase or uppercase letters of the  
>> roman
>> font. I wonder whether there is something similar for ConTeXt.
> 
> I never tried XeTeX, but the relative scaling of fonts is setup in  
> typescripts, e.g.

Sorry, I'm a ConTeXt newbie and I'm not sure whether I have expressed
myself in an accurate manner or I don't understand what you mean.

In XeTeX you can set your fonts in these way:

\definetypeface[myfont][rm][Xserif][Junicode]
\definetypeface[myfont][tt][Xmono][Epigrafica][][rscale=1]
\setupbodyfont[myfont,13pt]

But the problem there is that one should know which is the value of
rscale is. If \lowercase and \uppercase variables were defined, it would
be possible that ConTeXt calculates by itself which is the required
scaling factor to match the roman font (lowercase or uppercase,
respectively). This is explained (for LaTeX I'm afraid) at page 45
(section 8.7.3) of the fontspec documentation
(http://www.ctan.org/tex-archive/macros/xetex/latex/fontspec/fontspec.pdf).

In this way, it would be possible to autoscale to the rm font all fonts
used in a document.

I hope it is clear now,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] negative indenting

2006-11-13 Thread Pablo Rodríguez
Hi there,

I have set \setupindenting[yes,big,first] and I would like to have all
paragraphs in a given document with negative indentation.

AFAIK, "first" should enable indentation for all paragraphs, but the
ones after \section, \subsection or \subsubtsection are not indented.

How can I make that the indenting would be negative, that is, that is
not the first line the one indented, but the other ones.

Thanks,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] relative scaling for fonts

2006-11-14 Thread Pablo Rodríguez
Hans Hagen wrote:
> does this mean that when
> 
> \XeTeXuseglyphmetrics=0 (default) 
> 
> xetex will mess around with the interlinespace? that would be a bad default 
> behaviour

In XeTeX (and XeLaTeX) the default value is one.

I guess XeConTeXt should have \XeTeXuseglyphmetrics=1 by default.



Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] hanging indentation

2006-11-14 Thread Pablo Rodríguez
Hi there,

after some hours trying to figure out how to have hanging indentation
for the different requirements of three documents, I'd would like to
know how to set hanging indentation for standard paragraphs without
having to use \star..\stop routines.

I guess that \setupindenting would be the way, but I don't know how to
do it.

Thanks for your help,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] relative scaling for fonts

2006-11-15 Thread Pablo Rodríguez
Hans Hagen wrote:
> � wrote:
>> Hi there,
>>
>> Using XeTeX, one of the features that I miss at most from XeLaTeX
>> (from fontspec), is the possibility to set automatically the scaling of
>> fonts so that they match the lowercase or uppercase letters of the roman
>> font. I wonder whether there is something similar for ConTeXt.
>>   
> as already answered in other mails this is possible with the rscale 
> option in typefaces (is completely unrelated to xetex and has been part 
> of the regular context font mechanisms for quite some time)
> 
> You can use
> 
> \showfontstrip
> \showminimalbaseline
> 
> and alike
> 
> relative scaling is not automatic (trivial to implement) simply because 
> it's a visual thing; having similar x-heights is not always the best

Thanks for your explanation, Hans.

After using \showfontstrip to get fonts with the same x-height by
calculating the rscale factor, I guess it would be very useful (at least
for me) to have an option that calculates relative scaling automatically
to match both x-heights.

I think it would be a useful option for rscale.

Thanks,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] relative scaling for fonts

2006-11-16 Thread Pablo Rodríguez
Hans Hagen wrote:
> Pablo Rodríguez wrote:
>> After using \showfontstrip to get fonts with the same x-height by
>> calculating the rscale factor, I guess it would be very useful (at least
>> for me) to have an option that calculates relative scaling automatically
>> to match both x-heights.
>>
>> I think it would be a useful option for rscale.
>>   
> hm, it's not that hard to do, but then the question is: what is the reference 
> font; also, my experience is that an automated scaling in most cases looks as 
> ugly as no scaling; it's a visual thing; the xheight is a factor but the 
> 'boldness' too 

The reference font would be the roman font and the automated scaling
with the same x-height might be wrong in some cases, but it is a useful
starting point to start learning for newcomers (like me) how to set the
proper visual scaling factor.

My most common scenario for font scaling is not roman with sansserif or
typewritter, but roman Latin with roman Greek characters and setting the
same x-height for both. And I thought there were fine with the same
x-height for both.

My typographical ability wouldn't let my set other relative scaling
factor other than 1 or the same x-height for both fonts.

Thanks,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] negative indenting

2006-11-16 Thread Pablo Rodríguez
Aditya Mahajan wrote:
> On Wed, 15 Nov 2006, Oliver Buerschaper wrote:
> 
>>> I have set \setupindenting[yes,big,first] and I would like to have all
>>> paragraphs in a given document with negative indentation.
>>>
>>> AFAIK, "first" should enable indentation for all paragraphs, but the
>>> ones after \section, \subsection or \subsubtsection are not indented.
>> With exactly the same setting I'm experiencing the same problem ...
>> Anyone knows a solution?
> 
> \setuphead[section,subsection,subsubsection][indentnext=yes]

Thanks for your answer, Aditya. After I sent the message, I found
somewhere that \setupheads[indentnext=yes] did what I wanted.

If you want negative indenting, use a negative width, like
> 
> \setupindenting[-2em,yes]

Sorry, I'm afraid my description was not accurate. I meant pure negative
indenting, but hanging indentation (what you get when you write
\hang\noindenting at the beginning of the paragraph).

Thanks,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] on \setupindenting

2006-11-22 Thread Pablo Rodríguez
Hi,

after trying to get hanging indenting for standard paragraphs (or what
you get in TeX writing \hang\noindenting at the beginning of the
paragraph) and not being able to get this (without \star...\stop lists),
 I wonder whether it would be possible to add a "command=..." option to
the \setupindenting command.

I would need this to set up a bibliography where standard paragraphs
should have hanging indentation (but at margin, not in margin).

Thanks for your help,


Pablo
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] SIMPLEFONTS MODULE

2013-04-29 Thread Pablo Rodríguez


On 29/04/13 11:40, MANUEL GONZALEZ SUAREZ wrote:
> Hello everyone.
> I have a doubt about the simplefonts module. I need to compose a text in
> Spanish and Greek. I would use a font for the text in Spanish
> (LinuxLibertine O) and another for the Greek text(Bosporos). How should
> you configure the simplefontsmodule?
> Thank you.

Hi Manuel,

\mainlanguage[es]
\setuplanguage[es][patterns={es,agr}]
\usemodule[simplefonts]
\setmainfontfallback[Bosporos][range={greekandcoptic, greekextended},
force=yes]
\setmainfont{LinuxLibertine O]
\starttext
\showhyphens{ἐλευθερία estimación}
\stoptext

If you load hyphenation patterns for ancient Greek and Spanish, you will
get correct hyphenation for both languages. (Hyphenation is right,
because this languages don't share any character.)

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] FOOTNOTES IN COLUMNS

2013-06-01 Thread Pablo Rodríguez
On 31/05/13 19:35, Manuel González Suárez wrote:
> That is exactly the result I want to obtain. Can you send me the code?
> You can see my bad result (LuaTeX + MKIV)
> Thanks

Hi Manuel,

The standard behaviour, as you name it, seems to require that you update
ConTeXt.

I'm only guessing, but compiling your code:

\starttext
\startcolumns[n=3,rule=on]
\input knuth Manolo mine\footnote{\input knuth}
\stopcolumns
\stoptext

with ConTeXt standalone outputs a three column body with a no-column
footnote.

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
___


[NTG-context] redifining font sizes

2013-06-09 Thread Pablo Rodríguez
Hi there,

using the latest beta, I have tried to change the x font size from 0.8
to 0.9, but it doesn't work.

Here is a minimal sample:

\definefontsize[w]
\setupbodyfontenvironment[default][w=0.9, x=0.9]
\starttext
a {\tfx a} {\tfw a}
\stoptext

Why isn't the x font size set to 0.9?

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] bug with paragraph notes

2013-06-09 Thread Pablo Rodríguez
Hi Hans,

as I posted to the list in the past and it has been confirmed by
Wolfgang Schuster, there is a bug that prevents the proper separation of
paragraph notes from text body.

Here you have a sample:

\setupbodyfont[pagella]
\setupnote[footnote][paragraph=yes]
\setupnotation[footnote][alternative=serried,display=no]

\starttext
\dorecurse{500}{text text text\footnote{note} }
\stoptext

Would it be possible that this bug could be fixed? (This is specially
important for critical apparati.)

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] rebuild font cache

2013-06-09 Thread Pablo Rodríguez
Hi there,

after installing a new beta this morning, I'm afraid that ConTeXt isn't
able to find the installed fonts on my system (path is added to setuptex).

It isn't the first time I experience this. I solved this in the past
rebuilding the font cache.

But now it doesn't work.

mtxrun --script fonts --reload

fonts   | names | warnings are disabled (tracker
'fonts.warnings').../ctxbeta/tex/texmf-context/tex/context/base/font-syn.lua:723:
attempt to index field 'treatments' (a nil value)

How can I force the font cache to be rebuild?

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] rebuild font cache

2013-06-09 Thread Pablo Rodríguez
On 09/06/13 15:29, luigi scarso wrote:
> On Sun, Jun 9, 2013 at 1:25 PM, Pablo Rodríguez wrote:
> mtxrun --script fonts --reload
> 
> fonts   | names | warnings are disabled (tracker
> 
> 'fonts.warnings').../ctxbeta/tex/texmf-context/tex/context/base/font-syn.lua:723:
> attempt to index field 'treatments' (a nil value)
> 
> How can I force the font cache to be rebuilt?
> 
> mtxrun --script fonts --reload
> is ok here

After reinstalling ConTeXt Standalone, system installed fonts don't work
either.

If I try to rebuild the font cache, here is what I get:

$ mtxrun --script fonts --reload
cannot open : No such file or directory

This happens after changing in tex/texmf/web2c/texmfcnf.lua:

TEXMFCACHE  = "/var/cache/ctxbeta/texmf-cache",

And if I try to compile a document with luajittext I get the following
error:

mtx-context   | error, no format found with name: cont-en, aborting

In the meantime, I have a single user installation that does the job, Is
there no way to fix my system-wide installation?

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] rebuild font cache

2013-06-09 Thread Pablo Rodríguez
On 09/06/13 18:15, Aditya Mahajan wrote:
>> This happens after changing in tex/texmf/web2c/texmfcnf.lua:
>>
>>TEXMFCACHE  = "/var/cache/ctxbeta/texmf-cache",
> 
> Try running
> 
>   mtxrun --generate
> 
> and then repeat the above steps.

Many thanks for your reply, Aditya.

If I rebuild the font cache as root, I get:

# mtxrun --script fonts --reload

fonts   | names | warnings are disabled (tracker
'fonts.warnings').../ctxbeta/tex/texmf-context/tex/context
/base/font-syn.lua:723: attempt to index field 'treatments' (a nil
value)

If I rebuild the font cache as user, I get:

$ mtxrun --script fonts --reload

fonts   | names | unable to access database cache
fonts   | names | accessing the data table failed

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] rebuild font cache

2013-06-09 Thread Pablo Rodríguez
On 09/06/13 18:39, Hans Hagen wrote:
> On 6/9/2013 1:25 PM, Pablo Rodríguez wrote:
>> But now it doesn't work.
>>
>> mtxrun --script fonts --reload
>>
>> fonts   | names | warnings are disabled (tracker
>> 'fonts.warnings').../ctxbeta/tex/texmf-context/tex/context/base/font-syn.lua:723:
>> attempt to index field 'treatments' (a nil value)
> 
> looks like you mix of old and new code

Many thanks for your reply, Hans.

I suspected that too, but I didn't find luatex-cache at /home.

Fonts are found fine now, but I cannot rebuild the font cache (as I
replied to Aditya).

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] bug with paragraph notes

2013-06-09 Thread Pablo Rodríguez
On 09/06/13 18:55, Thomas A. Schmitz wrote:
> On 06/09/2013 01:01 PM, Pablo Rodríguez wrote:
>> Would it be possible that this bug could be fixed? (This is specially
>> important for critical apparati.)
> 
> "apparati," eh?

Isn't it the plural for apparatus? (I mean the Latin one, although I
might have forgotten the declensions as well.) Apparatuses sounds weird
to me.

If I'm not wrong, There is a similar rule in German (this might be the
cause of my mistake).


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] bug with paragraph notes

2013-06-09 Thread Pablo Rodríguez
On 09/06/13 18:55, Thomas A. Schmitz wrote:
> On 06/09/2013 01:01 PM, Pablo Rodríguez wrote:
>> Would it be possible that this bug could be fixed? (This is specially
>> important for critical apparati.)
> 
> "apparati," eh?

By the way, Thomas, haven't you found this bug in any of your editions?

Many 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] bug with paragraph notes

2013-06-10 Thread Pablo Rodríguez
On 09/06/13 21:01, Thomas A. Schmitz wrote:
> On 06/09/2013 07:16 PM, Pablo Rodríguez wrote:
>> Isn't it the plural for apparatus? (I mean the Latin one, although I
>> might have forgotten the declensions as well.) Apparatuses sounds weird
>> to me.
> 
> It's apparatus (long u, fourth declension). apparati is a pseudo-learned 
> form, like "virii."

Many thanks, Thomas, I'd never thought it was fourth declension. I
assumed it was second declension.

>> By the way, Thomas, haven't you found this bug in any of your editions?
> 
> No, I use linenotes (and, to be honest, the edition project has been in 
> hiatus for some time now, I need to pick it up again).

I found the bug in linenotes, but it seems not to be specific to
paragraphed linenotes but to paragraphed notes (as Wolfgang kindly noted).

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] bug with paragraph notes

2013-06-11 Thread Pablo Rodríguez
On 10/06/13 22:37, Hans Hagen wrote:
> On 6/10/2013 8:09 PM, Hans Hagen wrote:
>> On 6/10/2013 7:32 PM, Pablo Rodríguez wrote:
>>>
>>> I found the bug in linenotes, but it seems not to be specific to
>>> paragraphed linenotes but to paragraphed notes (as Wolfgang kindly
>>> noted).
>>
>> a next upload will have slightly improved paragraph notes but it will
>> always be a bit tricky (so one can best have tolerant settings)

Many thanks, Hans, for your fast fix in the beta from yesterday.

> best wikify this:

Sorry, but I don't get it.

The only difference I see is the width=broad setting (sorry if I miss
the point).

Is this the key to avoid issues? (Sorry, but my examples seem to have no
problem now.)

Many thanks for your help,


Pablo


> \setupbodyfont
>[pagella]
> 
> \setupnote
>[footnote]
>[paragraph=yes]
> 
> \setupnotation
>[footnote]
>[alternative=serried,
> width=broad,
> distance=.5em,
> display=no]
> 
> \starttext
>  \dorecurse{500}{text text text\footnote{note} }
> \stoptext


-- 
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] bug with paragraph notes

2013-06-11 Thread Pablo Rodríguez
On 11/06/13 20:54, Hans Hagen wrote:
> On 6/11/2013 7:11 PM, Pablo Rodríguez wrote:
>>
>> The only difference I see is the width=broad setting (sorry if I miss
>> the point).
> 
> well, others could benefit ...

Done (http://wiki.contextgarden.net/Footnotes#Footnotes_in_pagraph_form).


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 compressed linenotes (and two ideas about them)

2013-06-12 Thread Pablo Rodríguez
Hi Hans,

I'm afraid I found another bug in linenotes
(http://www.ousia.tk/compressed-linenotes.pdf and
http://www.ousia.tk/compressed-linenotes.tex).

When a compressed linenote is located at the beginning of the line, the
inbetween distance from \setupnote is suppressed, but the distance from
\setupnotation isn't. This happens either linenotes are in paragraph
form or not.

I have also three suggestions on the linenote spacing. I'd be highly
pleased that Thomas and Idris could comment on them, since they are the
experts on the topic.

The first one is more a question, because I'm not sure whether this is
already possible. Could I set a variable length in inbetween from
\setupnote and distance from \setupnotation? This would help better
spacing in linenotes. Sorry for asking, but I tried in the past and I
wasn't able to do it.

The other two suggestions are about enabling different spacing options
for compressed linenotes than the standard spacing for linenotes.

The sample shows that without separator, compressed linenotes have more
blank space than standard linenotes, since compressed linenotes without
separator have two added spaces without interruption. How about a
compresseddistance option that assumes there is no separator and sets a
single space?

In the sample, compressed linenotes are preceeded by a 2em space, where
standard linenotes are preceeded by a 1.5em space. Having more space for
compressed linenotes than for standard ones may be misleading in some
cases.

And even using a separator, being able to specify different distances
would be also extremely helpful, because it is not always the case where
separators need more space before than after (as line reference numbers
need). How about implementing two options such as compressedbefore and
compressedafter that would achieve this?

BTW, I tried to enclose the sample within a TEXpage, but it didn't
contain the linenotes. Is this intended 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] Typefaces ... how does this work?

2013-06-13 Thread Pablo Rodríguez
On 13/06/13 19:41, Sander Maijers wrote:
> On 12-06-13 23:33, luigi scarso wrote:
>>
>> Do you know the simplefonts module ?
> 
> How can I select a different typeface (that can be found by simplefonts) 
> for a specific region of text, like a few words?

Hi Sander,

\definesimplefont is what you're looking for.

Here is a minimal sample:

\usemodule[simplefonts]
\setmainfont[Times]
\definesimplefont[myfont][Palatino Linotype]
\starttext

This is the standard font.

But here comes {\myfont another font.}
\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] Typefaces ... how does this work?

2013-06-13 Thread Pablo Rodríguez
On 13/06/13 20:02, Pablo Rodríguez wrote:
> On 13/06/13 19:41, Sander Maijers wrote:
>>
>> How can I select a different typeface (that can be found by simplefonts) 
>> for a specific region of text, like a few words?

Hi Sander,

this an extension to my previous reply.

\definesimplefonttypeface enables a typeface, instead of a font. As you
might already know (and I tend to mix) Times Italic and Times Bold are
two different fonts, but the same typeface.

Here is another sample:

\usemodule[simplefonts]
\setmainfont[Times]
\definesimplefonttypeface[mytypeface][TeX Gyre Pagella]
\definesimplefont[myfont][TeX Gyre Pagella]
\starttext
\startTEXpage[offset=1em]
This is the standard font.

But here comes {\mytypeface another {\em typeface}.}

And here comes {\myfont another {\em font}.}
\stopTEXpage
\stoptext

I guess I should wikify this.

I hope it helps 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] TEXpage and footnotes

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

is there any way to get notes (footnotes and linenotes) within a TEXpage?

I thought I'd seen a sample PDF sent to this list, but I can't recall
the date or who was the sender.

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] TEXpage and footnotes

2013-06-14 Thread Pablo Rodríguez
On 14/06/13 20:43, Aditya Mahajan wrote:
> On Fri, 14 Jun 2013, Pablo Rodríguez wrote:
>> Dear list,
>>
>> is there any way to get notes (footnotes and linenotes) within a TEXpage?
>>
>> I thought I'd seen a sample PDF sent to this list, but I can't recall
>> the date or who was the sender.
> 
> Essentially, TEXpage is a fancy \frame (which, in turn, is a fancy \vbox). 
> So, you cannot get the regular footnote mechanism inside TEXpage. If you 
> do need footnotes, you can use localfootnotes:

Many thanks for your reply, Aditya.

And how could I get linenotes into TEXpage?

There seems not to be such a thing as locallinenotes.

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] orphans and widows in poems

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

I have a document that contains a long poem and although it contains the
following code:

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

I'm afraid that I get widow lines in the lines environment.

Is there no way to avoid orphans and widows in the lines 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] orphans and widows in poems

2013-06-17 Thread Pablo Rodríguez
On 16/06/13 21:03, Wolfgang Schuster wrote:
> Am 16.06.2013 um 09:46 schrieb Pablo Rodríguez :
>> [...]
>> Is there no way to avoid orphans and widows in the lines
>> environment?
> 
> 1. Don’t use * in your setups names because names starting with an
> asterisk are system modes.
> 
> 2. To load the defaults settings you have to use \setups[*reset]
> which needs the asterisks because it’s a system mode.
> 
> 3.The settings doesn’t help because in the lines environment each
> line is a separate paragraph which makes \widowpenalty useless here.

Thanks for your reply, Wolfgang.

So, according to 3, there is no way to prevent widow or orphan lines in
a line environment, isn't it?

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] orphans and widows in poems

2013-06-17 Thread Pablo Rodríguez
On 17/06/13 07:39, Wolfgang Schuster wrote:
> Am 17.06.2013 um 02:36 schrieb Bill Meahan :
>> On 6/16/2013 3:46 AM, Pablo Rodríguez wrote:
>>>[...]
>>> Is there no way to avoid orphans and widows in the lines environment?
>> It's a bit ugly, but if the poem consists of individual stanzas,
>> you can put each stanza in an non-bordered frame.
>> [...]
>> A frame will never be split across pages.
>>
>> BTW this "trick"is on the wiki on the "Verse" page.
> 
> You don’t need any tricks to prevent page breaks in a lines environment 
> because
> \setuplines[option=packed] already does it.

Many thanks for your replies, Bill, Aditya and Wolfgang.

I don't want to prevent page breaks in lines environment, I only want to
prevent orphan and widow lines in this environment too (which seems to
be impossible, if I didn't get it wrong).


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] orphans and widows in poems

2013-06-17 Thread Pablo Rodríguez
On 16/06/13 21:03, Wolfgang Schuster wrote:
> Am 16.06.2013 um 09:46 schrieb Pablo Rodríguez :
>> [...]
>> Is there no way to avoid orphans and widows in the lines environment?
> [...]
> 3. The settings doesn’t help because in the lines environment each
> line is a separate paragraph which makes \widowpenalty useless here.

Wolfgang,

it just came to my mind that a workaround to avoid orphans and widows
would be not to use the lines environment and add new lines, such as in:

First verse\\
second verse\\
third verse\\
fourth verse.

It seems to work in my example. Does it have another unwanted consequences?

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] two simple questions on presentations

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

sorry for asking the following questions, but I wasn't able to find the
answers on the reference manual, the wiki or the command list.

I wanted to make some cards (and I'm interested also in this features
for presentations) that have the following features:

-Everything in the cards is centered both horizontally and vertically.

  \setupalign[lohi] doesn't work outside frames or similar and
  \setupalign[middle] centers only horizontally.

-Page background colors that can be changed from a given point to the
rest of the document or the next page background color change.

  \setupbackgrounds[page][background=color, backgroundcolor=blue] sets
  the background color for all pages.

How could I get both features?

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] placing an xtable

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

I'd like to place a table centered (both horizontally and vertically) on
an empty page.

Is there no option from the xtable itself to achieve that?

I have tried \startxtable[location=lohi], but this doesn't seem to
affect to the placement of the table itself.

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] background color for makeups

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

the only way I found to center content horizontally and vertically on a
page is a makeup, such as:

\startstandardmakeup[align=middle]
content to be centered
\stopstandardmakeup

I need to be able to change the background on some given pages. Which is
the way to do this?

I have tried with (what I understand from) setups:

\startsetups[setups:redcolor]
\setupbackgrounds[page][background=color,backgroundcolor=red]
\stopsetups

\startstandardmakeup[setups=setups:redcolor]
content
\stopstandardmakeup

But it didn't work.

Could you help me with 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] luajittex not able to find some fonts

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

I wonder whether this would be interesting to the luajittex developers,
but for some strange reason when I invoke context with
--engine=luajittex, only some system fonts are found.

My guess is that with luajittext the most recently installed system
fonts aren't the ones not found.

Just in case it might 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] placing an xtable

2013-06-18 Thread Pablo Rodríguez
On 18/06/13 22:53, Wolfgang Schuster wrote:
> Am 18.06.2013 um 22:26 schrieb Pablo Rodríguez :
>> Dear list,
>>
>> I'd like to place a table centered (both horizontally and vertically) on
>> an empty page.
> 
> You can use a page float to place table:
> [...]
> or when you don’t mind a page break before the table a frame can be used:
> [...]

Many thanks, Wolfgang. Both options worked like charm.


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] luajittex not able to find some fonts

2013-06-19 Thread Pablo Rodríguez
On 18/06/13 23:35, Hans Hagen wrote:
> On 6/18/2013 11:05 PM, Pablo Rodríguez wrote:
>> Dear list,
>>
>> I wonder whether this would be interesting to the luajittex developers,
>> but for some strange reason when I invoke context with
>> --engine=luajittex, only some system fonts are found.
>>
>> My guess is that with luajittext the most recently installed system
>> fonts aren't the ones not found.
>>
>> Just in case it might help,
> 
> maybe there is something wrong in your setup as it works ok here
> 
> maybe deleting the cache helps

Many thanks for your help, Hans.

That was it. Deleting the cache made luajittex find all fonts.

I assume there my be something wrong on my setup, since I cannot reload
font cache at /home/user/, but I can at any other directory.

I get this message at /home/user:

system  | lua | compiling
'/var/cache/ctxbeta/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/data/names.tma'
into
'/var/cache/ctxbeta/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/data/names.tmc'
system  | lua | dumping
'/var/cache/ctxbeta/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/data/names.tma'
into
'/var/cache/ctxbeta/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/fonts/data/names.tmc'
stripped
fonts   | names | warnings are disabled (tracker
'fonts.warnings').../ctxbeta/tex/texmf-context/tex/context/base/font-syn.lua:723:
attempt to index field 'treatments' (a nil value)

I guess I have to delete something at my home directory, but I don't
know what.

Just in case it helps, I attach the verbose output.

Many thanks for your help again,


Pablo
-- 
http://www.ousia.tk
resolvers   | resolving | creating instance
resolvers   | resolving | variable 'SELFAUTOLOC' set to 
'/opt/ctxbeta/tex/texmf-linux/bin'
resolvers   | resolving | variable 'SELFAUTODIR' set to 
'/opt/ctxbeta/tex/texmf-linux'
resolvers   | resolving | variable 'SELFAUTOPARENT' set to 
'/opt/ctxbeta/tex'
resolvers   | resolving | variable 'TEXMFCNF' set to ''
resolvers   | resolving | variable 'TEXMF' set to ''
resolvers   | resolving | variable 'TEXOS' set to 'texmf-linux'
resolvers   | resolving |
resolvers   | resolving | using configuration specification 
'home:texmf/web2c;{selfautoloc:,selfautoloc:/share/texmf-local/web2c,selfautoloc:/share/texmf/web2c,selfautoloc:/texmf-local/web2c,selfautoloc:/texmf/web2c,selfautodir:,selfautodir:/share/texmf-local/web2c,selfautodir:/share/texmf/web2c,selfautodir:/texmf-local/web2c,selfautodir:/texmf/web2c,selfautoparent:/../texmf-local/web2c,selfautoparent:,selfautoparent:/share/texmf-local/web2c,selfautoparent:/share/texmf/web2c,selfautoparent:/texmf-local/web2c,selfautoparent:/texmf/web2c}'
resolvers   | resolving |
resolvers   | resolving | looking for 'texmfcnf.lua' on given path 
'/home/ousia/texmf/web2c' from specification 'home:texmf/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'/opt/ctxbeta/tex/texmf-linux/bin/' from specification 'selfautoloc:'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'/opt/ctxbeta/tex/texmf-linux/bin/share/texmf-local/web2c' from specification 
'selfautoloc:/share/texmf-local/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'/opt/ctxbeta/tex/texmf-linux/bin/share/texmf/web2c' from specification 
'selfautoloc:/share/texmf/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'/opt/ctxbeta/tex/texmf-linux/bin/texmf-local/web2c' from specification 
'selfautoloc:/texmf-local/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'/opt/ctxbeta/tex/texmf-linux/bin/texmf/web2c' from specification 
'selfautoloc:/texmf/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'/opt/ctxbeta/tex/texmf-linux/' from specification 'selfautodir:'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'/opt/ctxbeta/tex/texmf-linux/share/texmf-local/web2c' from specification 
'selfautodir:/share/texmf-local/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'/opt/ctxbeta/tex/texmf-linux/share/texmf/web2c' from specification 
'selfautodir:/share/texmf/web2c'
resolvers   | resolving | looking for 'texmfcnf.lua' on weird path 
'/opt/ctxbeta/tex/texmf-linux/texmf-local/web

Re: [NTG-context] background color for makeups

2013-06-19 Thread Pablo Rodríguez
On 18/06/13 23:38, Hans Hagen wrote:
> On 6/18/2013 10:58 PM, Pablo Rodríguez wrote:
>> \startstandardmakeup[align=middle]
>>  content to be centered
>>  \stopstandardmakeup
>>
>> I need to be able to change the background on some given pages. Which is
>> the way to do this?
> 
> why not just
> 
> \startstandardmakeup[align=middle]
>  content to be centered
> \stopstandardmakeup
> 
> \setupbackgrounds[page][background=color,backgroundcolor=red]
> 
> \startstandardmakeup[align=middle]
>  content
> \stopstandardmakeup

Well, so stupid it sounds, I had no idea this was possible (I thought it
was forbidden to setup anything after \starttext).

Many thank 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] two questions on paragraphed linenotes

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

I'd like to introduce a friend into composing critical editions using
ConTeXt. I have made some tests myself, and I'd like to know a couple
of issues about paragraphed linenotes before start explaining.

The first issue is about note split. When I started using ConTeXt, I
realized that footnotes might be placed in the next page (unless
split=verystrict is set). Fearing the same results in linenotes, I set
this, but this lead to wrong separation between body and notes (at
least on my examples). My question is: does the default split value
for paragraphed linenotes keep all notes in the same page?

The second question is on the space before linenotes that separates
from text body. With your fix from last week, things have improved a
lot. You told me is tricky. If you allow me a (naive) question:
wouldn't it be possible that ConTeXt would check whether body lines
respect the before distance of the first paragraphed linenotes and move
as many lines that don't respect this distance to the next page?

There are another issues. I'd love to use ConTeXt for critical
editions. But I need to know both issues first.

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 questions on paragraphed linenotes

2013-06-21 Thread Pablo Rodríguez
On 20/06/13 18:51, Hans Hagen wrote:
> On 6/19/2013 9:45 PM, Pablo Rodríguez wrote:
>> [...]
>> The second question is on the space before linenotes that separates
>> from text body. With your fix from last week, things have improved a
>> lot. You told me is tricky. If you allow me a (naive) question:
>> wouldn't it be possible that ConTeXt would check whether body lines
>> respect the before distance of the first paragraphed linenotes and move
>> as many lines that don't respect this distance to the next page?
> 
> linenotes are just notes so no fundamental difference apart from tricky 
> referencing
> 
> paragraph nodes are somewhat complex because we need to fake vertical 
> height while adding horizontal content
> 
> the possibilities and limitations are mostly related to limitations in 
> tex itself
> 
> of course i'll do my best to bypass/correct problems when possible using 
> lua magic

Would samples help you with this task?

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

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

I have the following code:

\definenumber[lnt]
\setupnote[linenote][paragraph=yes]

\def\variant#1#2{%
\startlinenote[0]{#1] #2}#1%
\stoplinenote[0]}

\starttext
\startlinenumbering
\variant{body text}{variant}
\stoplinenumbering
\stoptext

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]}

But it doesn't work.

How could I make that \variant handles a different reference for the
linenote each time is invoked?

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] Fraktur fonts

2013-06-21 Thread Pablo Rodríguez
On 21/06/13 18:53, Rudolf Bahr wrote:
> Hello Luigi, Khaled and Hans,
> 
> I have to apologize to you for not having written up to now.
> I simply didn't see your answers. Today, a young woman from the environment
> of Dante e.V. pointed me to here. She gave me some good advice to the topic 
> too.
> 
> Thanks a lot to you, now I have to digest your answers first.

Hi Rudolf,

using UnifrakturMaguntia (from http://unifraktur.sf.net), here is a
small sample:

\mainlanguage[deo]

\definefontfeature[default][default]%
[script=latn,ss06=yes,cv01=yes,ss01=yes,ss03=yes]

\usemodule[simplefonts]
\setmainfont[UnifrakturMaguntia]

\starttext

\startlines
Habe nun, ach! Philosophie,
Juristerey und Medicin,
Und leider auch Theologie!
Durchaus studirt, mit heißem Bemühn.
Da steh’ ich nun, ich armer Thor!
\stoplines

\stoptext

I think that it's easier to use the simplefonts module than the standard
ConTeXt method. I guess one of the advantages of simplefonts is to
invoke font by OS name. I must admit I'm biased here: I don't actually
know how to use the standard ConTeXt font system :-).

Just in case they were needed (sorry if they aren't), two tips:

\setmainfont sets the font for the whole document. If you want only to
use it in a passage or from a given point
\definesimplefonttypeface[UnifratkturMaguncia] or
\definesimplefont[UnifrakturMaguncia].

OpenType features are enabled for the whole document with
\definefontfeature and they are enabled or disabled using the
four-character tag equals to yes or no.

I hope is clear. Don't hesitate to ask, if anything isn't.

I hope it might 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] 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 :
>> [..]
>> 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
___


Re: [NTG-context] Auto selecting optical sizes for a font

2013-06-22 Thread Pablo Rodríguez
On 22/06/13 01:43, Andres Conrado Montoya wrote:
> Hello friends.
> I'm trying to design a book using the typescript you can find at the
> end of this message. I'm using the beautiful EBGaramond fonts from
> Georg Duffner (http://www.georgduffner.at/ebgaramond/). This font
> provides optical sizes to be used in different sizes (named "12" for
> 10.1pt or more, and "8" for 10 or less. These fonts automatically work
> as expected in latex, thanks to a recent package included in CTAN
> (ebgaramond package), selecting the correct font for the appropriate
> size. However, the typescript I'm using selects the "8" size for
> everything, without taking the type size into consideration. Is there
> any way to make ConTeXt do this automatic selection of fonts regarding
> of type size? I'm using version 2013.06.10 22:51.

Hi Andrés,

sorry for not giving more information on this, because I don't
understand how it works.

Here you have an example: http://wiki.contextgarden.net/Optical_Size. (I
guess you forgot the font assignment.)

Wolfgang, wouldn't it be possible to implement optical sizes in
simplefonts? So the user could benefit from ease of use.


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] faked fonts not working

2013-06-22 Thread Pablo Rodríguez
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]

\starttext

regular, {\em fake italics (actually slanted)}, {\bf fake bold} and
{\bf\em fakebolditalics}.

\stoptext

Is this a bug, or have I forgotten 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] [***SPAM***] Can't find recommended tool

2013-06-22 Thread Pablo Rodríguez
On 22/06/13 16:41, hwit...@gmail.com wrote:
> 
> 
> I am trying to install a font so that Context cn use it.  I am  using
> the simplefont module and have a ttf that I'd like to use.
> 
> There is a lot of conflicting information out about to do this and
> som is outdated.   As for ContTeX I did find a nice article, but it
> says to use the program texfont, "which ships with ConTex", but I do
> not have any such file.
> 
> texfont --ve=sil --co=gentium --makepath --install
> 
> 
> I am using the TexLive version.   Is there any simple method to get
> this font so that it can be used by ConTex MKIV ?

Yes, install your font (I assume is Gentium) on your operative system.

Run "mtxrun --script fonts --reload". (Not sure it is required, but I
need this each time I install a font.)

And (assuming you installed Gentium), here is the sample code:

\usemodule[simplefonts]
\setmainfont[Gentium]
\starttext
\input knuth
\stoptext

Compile it with "context gentium.tex" (change file name accordingly) and
it should work.

If not, please try to describe what happened.

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

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

with the following sample:

\setupinterlinespace[line=3.2ex]
\usemodule[simplefonts]
\setmainfont[UnifrakturMaguntia]
\starttext
xAAbfas\\xAAbfas\\xAAbfas\\
\stoptext

I have the impression that the interline space is too small.

Has the font wrong defined metrics or is there something I'm missing?

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] 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_LuaTeX&action=historysubmit&diff=21929&oldid=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] 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
> 
> 
> (showing the source is optional, but usually what you want)
> 
> 
> For more info on the `` 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
___

[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 :
>> 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] 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 :
>> 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 :
>> 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
___


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
___


[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 :
>> [...]
>> 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
___


[NTG-context] logo from wiki

2013-07-03 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:
> ·
> 
>> 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] 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
___


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 \515>linenote: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

\par

}
\strc_enumerations_full_number_coupling ...er_yes
  \edef \p_coupling
{\constr...
\strc_enumerations_text ...s_full_number_coupling
  \fi \fi \else
\strc_enumer...
\201>notation ...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
___

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

2013-07-12 Thread Pablo Rodríguez
On 13/07/13 03:57, Otared Kavian wrote:
> On 12 juil. 2013, at 20:06, Aditya Mahajan  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 :
>> [...]
>> 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 :
>> 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-14 Thread Pablo Rodríguez
On 14/07/13 10:53, Philipp Gesang wrote:
> ·
> 
>>  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
___


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


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


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


  1   2   3   4   >