[NTG-context] Re: error with \sc

2024-04-02 Thread Andres Conrado Montoya
You shouldn't run context as root in any case. But glad it worked.

El mar, 2 abr 2024 a las 15:34, Peter Münster () escribió:

> On Tue, Apr 02 2024, Pablo Rodriguez via ntg-context wrote:
>
> >   mtxrun --script cache --erase && mtxrun --generate
>
> Thanks. It did not work after doing it as root, but then I saw, that
> there is also a cache in the user home-directory, so I’ve done it as the
> user too, and now it works.
>
> --
>Peter
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: ConTeXt on RPI400

2024-03-26 Thread Andres Conrado Montoya
Can you try the following: Delete the `texmf-cache` folder
inside /home/hf/WORKSPACE/TOOLS/ConTeXt/tex/, and then run `mtxrun
--generate && context --make`?
After running those two, try again, and let's see if that helps.

El mar, 26 mar 2024 a las 7:25,  escribió:

> Hello Andres,
>
>
> I have set up the shell environment variable in my `~/.zshrc`, here it is
> the output of `echo $PATH` under the shell:
>
> ```
>
> /home/hf/WORKSPACE/TOOLS/Emacs/bin:/home/hf/WORKSPACE/TOOLS/ConTeXt/tex/texmf-linux-aarch64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
> ```
>
> Here it is the output of `which context`:
>
> ```
> /home/hf/WORKSPACE/TOOLS/ConTeXt/tex/texmf-linux-aarch64/bin/context
> ```
>
> To use the full path of context on hello-world.tex generated the same
> error message.
>
> Thank you.
> Hong
>
>
> 2024年3月26日 10:47, "Andres Conrado Montoya"  >
> 写到:
>
> You can invoke it directly, with a complete path, and it will work even if
> it's not in your $PATH variable. In my personal installation I have context
> at `/home/andi/Apps/lmtx/tex/texmf-linux-64/bin`, so I can call it saying
> `/home/andi/Apps/lmtx/tex/texmf-linux-64/bin/context hello-world.tex` and
> it works fine.
>
> Is the `texmf-/bin` folder in your $PATH? or did you create a
> symlink to a known path folder? If the latter, that could be the cause of
> your problem. You need the bin folder of context in your path variable. Can
> you send the output of `echo $PATH`? Does it work if you invoke it with a
> full path?
>
> El lun, 25 mar 2024 a las 18:14,  escribió:
>
> Hello,
>
> I have installed ConTeXt on my Raspberry Pi 400 (aarch64), tried to
> typeset this simple file:
>
> ```
> \starttext
>
> First tex file to make, hello, world!
>
> \stoptext
> ```
>
> but the test failed:
>
>
> ```
> $context hello-world.tex
> mtxrun | forcing cache reload
> resolvers | resolving | configuration files already identified
> resolvers | resolving | skipping configuration file
> 'selfautoparent:/texmf-context/web2c/texmfcnf.lua' (no valid format)
> resolvers | resolving | no texmf paths are defined (using TEXMF)
> resolvers | resolving |
> mtxrun | the resolver databases are not present or outdated
> resolvers | resolving | using suffix based filetype 'lua'
> resolvers | resolving | remembering file 'mtx-context.lua' using hash
> 'lua::mtx-context.lua'
> resolvers | resolving | using suffix based filetype 'lua'
> resolvers | resolving | remembering file 'mtx-contexts.lua' using hash
> 'lua::mtx-contexts.lua'
> resolvers | resolving | remembered file 'mtx-context.lua'
> resolvers | resolving | using suffix based filetype 'lua'
> resolvers | resolving | remembering file 'mtx-t-mtx-context.lua' using
> hash 'lua::mtx-t-mtx-context.lua'
> resolvers | resolving | using suffix based filetype 'lua'
> resolvers | resolving | remembering file 'mtx-t-mtx-contexts.lua' using
> hash 'lua::mtx-t-mtx-contexts.lua'
> resolvers | resolving | remembered file 'mtx-t-mtx-context.lua'
> resolvers | resolving | remembered file 'mtx-context.lua'
> mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
> ```
>
> What's wrong with my installation?
>
> Best,
> Hong Feng
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl/
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl/ https://context.aanhet.net(mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
>
>
> --
> Andrés Conrado Montoya
> Andi Kú
> andresconr...@gmail.com
> http://sesentaycuatro.com
> http://messier87.com
> http://chiquitico.org
> 
> Los fines no justifican los medios, porque la medida verdadera de nuestro
> carácter está dada por los medios que estamos dispuestos a utilizar, no por
> los fines que proclamamos.
> 
>
> “You develop an instant global consciousness, a people orientation, an
> intense dissatisfaction with the state of the world, and a compulsion to do
> something about it. From out there on the moon, international politics look
> so petty. You want to grab a politician by the scruff of the neck and drag
> him a quarter of a million miles out and say, ‘Look at that, you son of a
> bitch.’” — Apollo 14 astronaut Edgar Mitchell
>
>
>
> _

[NTG-context] Re: ConTeXt on RPI400

2024-03-25 Thread Andres Conrado Montoya
You can invoke it directly, with a complete path, and it will work even if
it's not in your $PATH variable. In my personal installation I have context
at `/home/andi/Apps/lmtx/tex/texmf-linux-64/bin`, so I can call it saying
`/home/andi/Apps/lmtx/tex/texmf-linux-64/bin/context hello-world.tex` and
it works fine.

Is the `texmf-/bin` folder in your $PATH? or did you create a symlink
to a known path folder? If the latter, that could be the cause of your
problem. You need the bin folder of context in your path variable. Can you
send the output of `echo $PATH`? Does it work if you invoke it with a full
path?

El lun, 25 mar 2024 a las 18:14,  escribió:

> Hello,
>
> I have installed ConTeXt on my Raspberry Pi 400 (aarch64), tried to
> typeset this simple file:
>
> ```
> \starttext
>
> First tex file to make, hello, world!
>
> \stoptext
> ```
>
> but the test failed:
>
>
> ```
> $context hello-world.tex
> mtxrun | forcing cache reload
> resolvers | resolving | configuration files already identified
> resolvers | resolving | skipping configuration file
> 'selfautoparent:/texmf-context/web2c/texmfcnf.lua' (no valid format)
> resolvers | resolving | no texmf paths are defined (using TEXMF)
> resolvers | resolving |
> mtxrun | the resolver databases are not present or outdated
> resolvers | resolving | using suffix based filetype 'lua'
> resolvers | resolving | remembering file 'mtx-context.lua' using hash
> 'lua::mtx-context.lua'
> resolvers | resolving | using suffix based filetype 'lua'
> resolvers | resolving | remembering file 'mtx-contexts.lua' using hash
> 'lua::mtx-contexts.lua'
> resolvers | resolving | remembered file 'mtx-context.lua'
> resolvers | resolving | using suffix based filetype 'lua'
> resolvers | resolving | remembering file 'mtx-t-mtx-context.lua' using
> hash 'lua::mtx-t-mtx-context.lua'
> resolvers | resolving | using suffix based filetype 'lua'
> resolvers | resolving | remembering file 'mtx-t-mtx-contexts.lua' using
> hash 'lua::mtx-t-mtx-contexts.lua'
> resolvers | resolving | remembered file 'mtx-t-mtx-context.lua'
> resolvers | resolving | remembered file 'mtx-context.lua'
> mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua'
> ```
>
> What's wrong with my installation?
>
> Best,
> Hong Feng
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Use of marking

2024-03-20 Thread Andres Conrado Montoya
As I understand, Thomas needs a layout in which the header shows something
like

1. Chapter title -- 1.1. Section title (including the numbers! *This is the
important bit!*)

There are a couple things about this:

1. In a section (part, chapter, section, etc.) you can introduce three
versions of the title for that section. title= is the general one and if
nothing else is specified, this will be used in markings (headers or footer
or wherever you want to put therm) and in listings (contents). If you give
those arguments, marking= and listing=, you will get those texts in those
places: marking= on markings (you can call them with \getmarking) and
listing= in the table of contents.

2. As far as I have found, including the chapter/section number in the
marking is *not really a trivial task*. I usually hack something using
\headnumber and \getmarking, like so:

\setuppagenumbering[alternative=doublesided,location=,]

\setupheadertexts[{\headnumber[section].~\getmarking[section]}---{\headnumber[chapter].~\getmarking[chapter]}]
\setupfootertexts[][pagenumber][pagenumber][]
\setuphead[chapter][header=high]

\starttext
\dorecurse{10}{
  \startchapter[title={This is my chapter}]
  This is a chapter\par \dorecurse{6}{\input knuth } \input
math-kontinuitet-sv

  \startsection[title={This is my section}]
   This is a section\par \dorecurse{6}{\input knuth }\input
math-kontinuitet-sv
  \stopsection
  \stopchapter
}
\stoptext

But with a caveat: the `header=high` setting in setuphead for the chapter
needs to be included, or you will get a section number in the first page,
even if there is no section. I have not found a better mechanism yet, but
I'm quite sure there is a correct solution for this... I just haven't found
it yet. Checking for the presence of \getmarking[section] with
\doifsomething does not work, or I could not make it work.

A little bit more info here:
https://wiki.contextgarden.net/Command/getmarking
https://wiki.contextgarden.net/Command/headnumber


El mié, 20 mar 2024 a las 9:23, Hraban Ramm () escribió:

> \setupheadtext[de][section=Aufgabe]
> Rename the section, then you don’t need marking.
>
> Sorry, I'm in a hurry and must look up how to get the number…
>
>
> Am 20.03.24 um 12:18 schrieb Thomas Meyer:
>
> Hi Hraban,
>
> and thanks.
>
> setuphead[chapter,section][numberwidth=2em] or "fit"
> works!
>
> I know \setupheadertexts, but do not know what shall I write here:
> \startsection[titel=Aufgabe, marking=?]
> If I write marking=Aufgabe I get Aufgabe, no number! For chapter the same.
>
> \setupheadertexts
>[] [{\getmarking[chapter]} - {\getmarking[section]}]
> [{\getmarking[chapter]} - {\getmarking[section]}] []
> > Kapitel - Aufgabe
>
>
> Thanks in advance
> Greetings
> Thomas
>
>
> Am 20.03.24 um 09:09 schrieb Hraban Ramm:
>
>
> Am 20.03.24 um 08:18 schrieb Thomas Meyer:
>
> HI folks,
>
> yesterday while reading along I learned how to suppress the chapter
> numbers in sections. That was something I was looking for myself.
>
> But how do you use marking correctly in startsection? I would like to see
> "1. Kapitel - 1. Aufgabe" in the header on the right. How can I automate
> this with marking?
> And how can I reduce the space between the number (1.) and the title
> (Kapitel or Aufgabe)?
>
> Thanks for your help
> Thomas
>
> Hi Thomas,
>
> do you know how to use \setupheadertexts?
>
> https://wiki.contextgarden.net/Command/setupheadertexts
>
> I guess you're using the section level for "Aufgabe"?
>
> Then something like {\getmarking{chapter} – \getmarking{section}} might
> fit your request.
>
> The formatting should be possible with
> \setuphead[chapter,section][numberwidth=2em] or "fit".
>
> Hraban
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> 

[NTG-context] Re: can we do binding correction?

2024-03-19 Thread Andres Conrado Montoya
There is some mention of a mechanism to get binding correction from an old
article in the wiki about emulating the Koma TypeArea from LaTeX, you can
see it in https://wiki.contextgarden.net/KOMA-scrartcl_Type_Area

There is also some discussion about the subject in SE:
https://tex.stackexchange.com/questions/38682/rules-of-thumb-for-size-of-binding-correction-bcor
However, that discussion is 12 years old and the links referenced as
sources are dead now.

I have found with experience that a formula to calculate the binding
correction for a saddle stitch binding, not more than 4 pages in a
signature (only one fold in the middle) usually is 1/2 the circumference of
a circle with radius *r*, being *r* the thickness of the paper times the
amount of physical signatures. Something like: \frac{π \times t \times
s}{2}. I have not tried a formula for more folds in a signature.

The thing is, you have to recalculate for each signature fold. The
innermost will have displacement zero, the second one a little bit more,
the third a little bit more, and on and on until we reach the outermost
signature.

However, it is necessary to say that unless you are using a
particularly thick paper, or you are using too many pages for a saddle
stitch bind (my personal and professional opinion would be no more than 80,
but better 60), the displacement is usually negligible.

For example, let's say the paper thickness is 0.1 mm (which is 0.0001
meters) and there are 40 pages in 10 signatures. The radius would be 0.0001
meters per signature * 10 signatures = 0.001 meters. Then, half the
circumference would be 1/2 * 3.14159 * 0.001 meters ≈  0.0016 meters or
1.6mm at the last signature. Unless there was a displacement of more than,
say, 4 mm, I wouldn't worry too much about it.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Creating a module for calligraphy practice templates

2024-03-12 Thread Andres Conrado Montoya
Hello, list!

I've been working on a module to typeset calligraphy practice templates
using ConTeXt and MetaPost. You are welcome to check it out on github:
https://github.com/conradolandia/pauta
I'm not including a MWE because the repository has all the current code. I
hope this is fine. I did not want to clutter the list with too much text.
The module is only a single file (t-pauta.mkxl) and some examples of use
and documentation that are still somewhat unfinished, but I've tried to
document the source code as much as I could. If you need clarification
about anything, please let me know.

(At the root of the repository, there is a file build.lua, that is not
really part of the project, just a custom tool I use to process the files,
a sort of minimal build system. You can ignore it.)

I welcome any kind of suggestions and dire warnings. I've tried to read the
wiki and the manuals carefully and made as many tests as possible, and in
general it works fine, but I have ADHD and things frequently get over
my head. There are still some things that don't work as they should, and
things that need improvement:

1. I use top/bottom areas to display some info. These areas are not being
handled properly so far. For example, if I place a chapter before the Pauta
macro invocation, there will be data on the top and bottom areas in the
last page of the chapter. I've tried using \page and clearing the areas,
which feels like cheating, but still does not work well. Any ideas on how
to better handle this are more than welcome.

2. I'm using what I found at
https://wiki.contextgarden.net/System_Macros/Handling_Arguments and
\getparameters to handle the arguments for my Pauta macro, but today I
found out about \processaction at
https://wiki.contextgarden.net/Module_Parameters and I'm not really sure if
I should change my module to work with this instead of \getparameters. In
general, after checking the source code of several modules, I'm not really
sure how much I have to follow the guidelines at
https://wiki.contextgarden.net/Module_Parameters or if those are the most
current recommendations.

3. I'm including in my module the code of the file hatching.mp that can be
found at
https://ctan.org/tex-archive/graphics/metapost/contrib/macros/hatching. I
did this for portability reasons, since it's less than 70 lines and has not
been updated in 20 years. But if it's better to have this in a separate
file, please let me know. Also, if a better method to create pattern filled
paths is available, please let me know, I confess I didn't look too much
into it yet. This has solved my requirement so far.

4. I want to be as close as possible to the new LMTX syntax and way of
doing things. so If you think I'm doing something in anachronistic ways,
please let me know.

In general, if someone wants to check it out and provide feedback so I can
improve it, with the objective of eventually being shared on
modules.contextgarden.net, will be much appreciated.

Thank you for your time, and have a great week!

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
Thank you for your interest, Aditya. The error was kindly fixed by Hans
introducing the following fix at line 993 in
tex/texmf-context/tex/context/base/mkxl/back-exp-imp-mth.lmt:

function extras.msubsup(di,element,n,fulltag)
 local data = di.data
 local nuc = found(data)
 local sup = found(data,"sup")
 local sub = found(data,"sub")
 data[1] = nuc or dummy_nucleus
 data[2] = sub or dummy_nucleus
 data[3] = sup or dummy_nucleus
 data.__i__ = 3
 local sp = specifications[di.fulltag]
 if attributes then
 attributes.mathsupindex = sp.supshifted
 attributes.mathsubindex = sp.subshifted
 else
 di.attributes = {
 mathsupindex = sp.supshifted,
 mathsubindex = sp.subshifted,
 }
 end
 end

This solved the issue.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
Apologies, I sent the wrong file, this is the relevant log portion after
compiling with the change:

pages   > flushing realpage 133, userpage 133, subpage 133

푡
0.975
∗
   

푡
0.025
∗
   
pages   > flushing realpage 134, userpage 134, subpage 134
pages   > flushing realpage 135, userpage 135, subpage 135
structures  > bookmark: Prueba de homogeneidad
structure   > sectioning > section @ level 3 : 0.7.2 -> Prueba de
homogeneidad
structures  > bookmark: Hipótesis
structure   > sectioning > subsubsection @ level 5 : 0.7.2.0.1 ->
Hipótesis
structures  > bookmark: Estadístico de prueba
structure   > sectioning > subsubsection @ level 5 : 0.7.2.0.2 ->
Estadístico de prueba
structures  > bookmark: Aplicación de la homogeneidad
structure   > sectioning > subsection @ level 4 : 0.7.2.1 -> Aplicación
de la homogeneidad
pages   > flushing realpage 136, userpage 136, subpage 136
floatblocks > order disturbed
floatblocks > '51' placed (force)
pages   > flushing realpage 137, userpage 137, subpage 137
floatblocks > order disturbed
floatblocks > '52' placed (force)
pages   > flushing realpage 138, userpage 138, subpage 138
close source> level 2, order 29, name
'include/content/Aplicación-prueba-ji-cuadrado.tex'
pages   > flushing realpage 139, userpage 139, subpage 139

   ∑
  
tex error   > tex error on line 85 in file ./IntroEstadísticaNP.tex:

lua error:

registered function call [250]:
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:750: attempt to
index a nil value (local 'a2')
stack traceback:
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:750: in
upvalue 'expandone'
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:284: in
upvalue 'expandfenced'
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:585: in
upvalue 'expandone'
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:798: in
upvalue 'expandone'
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:350: in
upvalue 'expandone'
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:952: in
upvalue 'expand'
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:808: in
upvalue 'expandone'
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:605: in
upvalue 'expandone'
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:952: in
upvalue 'expand'
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:899: in
upvalue 'expandone'
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:1019:
in field 'verbose'
...mtx/tex/texmf-context/tex/context/base/mkxl/math-tag.lmt:985: in
field 'gettextblob'
...mtx/tex/texmf-context/tex/context/base/mkxl/lpdf-tag.lmt:391: in
upvalue 'makeelement'
...mtx/tex/texmf-context/tex/context/base/mkxl/lpdf-tag.lmt:715: in
upvalue 'structures_tags_handler'
[string "local tonut  = nodes.tonut..."]:21: in function <[string
"local tonut  = nodes.tonut..."]:12>
(...tail calls...)
...mtx/tex/texmf-context/tex/context/base/mkxl/node-shp.lmt:38: in
function <...mtx/tex/texmf-context/tex/context/base/mkxl/node-shp.lmt:37>
(...tail calls...)

El dom, 25 feb 2024 a las 16:41, Andres Conrado Montoya (<
andresconr...@gmail.com>) escribió:

> IntroEstadisticaNP-error.log:
>
> return {
>  ["filename"]="./IntroEstadísticaNP.tex",
>  ["lastcontext"]="",
>  ["lastluaerror"]="registered function call [250]:
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:490: attempt to
> index a nil value (local 'a2')\nstack traceback:\n
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:490: in upvalue
> 'expandone'\n
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:261: in upvalue
> 'expandfenced'\n
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:373: in upvalue
> 'expandone'\n
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:532: in upvalue
> 'expandone'\n
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:383: in upvalue
> 'expandone'\n
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:669: in upvalue
> 'expand'\n ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:544:
> in upvalue 'expandone'\n
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:383: in upvalue
> 'expandone'\n
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:669: in upvalue
> 'expand'\n ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:621:
> in upvalue 'expandone'\n
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:669

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
Another remark: It seems this behavior is consistent: if I comment out the
last equation before the one I told you before, again the next formula
works fine,

El dom, 25 feb 2024 a las 15:38, Andres Conrado Montoya (<
andresconr...@gmail.com>) escribió:

> A remark: A few lines above the error triggering point, I found a single
> digit presented as math: \math{5}. Removing this and leaving the 5 in text
> mode removes the error below it.
> Could it be a bug in the distribution?
>
> El dom, 25 feb 2024 a las 15:24, Andres Conrado Montoya (<
> andresconr...@gmail.com>) escribió:
>
>> I keep bumping into this error, I have no idea what may be causing it, in
>> a statistics book with lots of math:
>>
>> registered function call [250]:
>> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to
>> index a nil value (local 'a2')
>>
>> I have checked everything. I have tried commenting out many things and
>> the weird part is that it fails in a simple math expression: \math{E_{i}j}.
>> Even a simple $y$ or \math{a+b} will trigger the error. However, this same
>> file Im working on has many formulas before that, those work fine. I
>> changed all the $...$ to \math{...} just in case, but with no success.
>>
>> Already tried remaking, regenerating, updating the distribution.
>>
>> Do you have any ideas to work this out? I don't know how to provide a MWE
>> for this because it's a very big project (statistics book).
>>
>> I have tried 2 versions, the system-wide one, just upgraded:
>> mtx-context | ConTeXt Process Management 1.06
>> mtx-context | current version: 2024.02.22 18:31
>>
>> And a less recent version, attached to the project:
>> mtx-context | ConTeXt Process Management 1.05
>> mtx-context | current version: 2024.02.14 13:38
>>
>>
>> Any help will be much appreciated.
>>
>> --
>> Andrés Conrado Montoya
>> Andi Kú
>> andresconr...@gmail.com
>> http://sesentaycuatro.com
>> http://messier87.com
>> http://chiquitico.org
>> 
>> Los fines no justifican los medios, porque la medida verdadera de nuestro
>> carácter está dada por los medios que estamos dispuestos a utilizar, no por
>> los fines que proclamamos.
>> 
>>
>> “You develop an instant global consciousness, a people orientation, an
>> intense dissatisfaction with the state of the world, and a compulsion to do
>> something about it. From out there on the moon, international politics look
>> so petty. You want to grab a politician by the scruff of the neck and drag
>> him a quarter of a million miles out and say, ‘Look at that, you son of a
>> bitch.’” — Apollo 14 astronaut Edgar Mitchell
>>
>
>
> --
> Andrés Conrado Montoya
> Andi Kú
> andresconr...@gmail.com
> http://sesentaycuatro.com
> http://messier87.com
> http://chiquitico.org
> 
> Los fines no justifican los medios, porque la medida verdadera de nuestro
> carácter está dada por los medios que estamos dispuestos a utilizar, no por
> los fines que proclamamos.
> 
>
> “You develop an instant global consciousness, a people orientation, an
> intense dissatisfaction with the state of the world, and a compulsion to do
> something about it. From out there on the moon, international politics look
> so petty. You want to grab a politician by the scruff of the neck and drag
> him a quarter of a million miles out and say, ‘Look at that, you son of a
> bitch.’” — Apollo 14 astronaut Edgar Mitchell
>


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
A remark: A few lines above the error triggering point, I found a single
digit presented as math: \math{5}. Removing this and leaving the 5 in text
mode removes the error below it.
Could it be a bug in the distribution?

El dom, 25 feb 2024 a las 15:24, Andres Conrado Montoya (<
andresconr...@gmail.com>) escribió:

> I keep bumping into this error, I have no idea what may be causing it, in
> a statistics book with lots of math:
>
> registered function call [250]:
> ...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to
> index a nil value (local 'a2')
>
> I have checked everything. I have tried commenting out many things and the
> weird part is that it fails in a simple math expression: \math{E_{i}j}.
> Even a simple $y$ or \math{a+b} will trigger the error. However, this same
> file Im working on has many formulas before that, those work fine. I
> changed all the $...$ to \math{...} just in case, but with no success.
>
> Already tried remaking, regenerating, updating the distribution.
>
> Do you have any ideas to work this out? I don't know how to provide a MWE
> for this because it's a very big project (statistics book).
>
> I have tried 2 versions, the system-wide one, just upgraded:
> mtx-context | ConTeXt Process Management 1.06
> mtx-context | current version: 2024.02.22 18:31
>
> And a less recent version, attached to the project:
> mtx-context | ConTeXt Process Management 1.05
> mtx-context | current version: 2024.02.14 13:38
>
>
> Any help will be much appreciated.
>
> --
> Andrés Conrado Montoya
> Andi Kú
> andresconr...@gmail.com
> http://sesentaycuatro.com
> http://messier87.com
> http://chiquitico.org
> 
> Los fines no justifican los medios, porque la medida verdadera de nuestro
> carácter está dada por los medios que estamos dispuestos a utilizar, no por
> los fines que proclamamos.
> 
>
> “You develop an instant global consciousness, a people orientation, an
> intense dissatisfaction with the state of the world, and a compulsion to do
> something about it. From out there on the moon, international politics look
> so petty. You want to grab a politician by the scruff of the neck and drag
> him a quarter of a million miles out and say, ‘Look at that, you son of a
> bitch.’” — Apollo 14 astronaut Edgar Mitchell
>


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Strange error at lxml-mms.lmt:749

2024-02-25 Thread Andres Conrado Montoya
I keep bumping into this error, I have no idea what may be causing it, in a
statistics book with lots of math:

registered function call [250]:
...mtx/tex/texmf-context/tex/context/base/mkxl/lxml-mms.lmt:749: attempt to
index a nil value (local 'a2')

I have checked everything. I have tried commenting out many things and the
weird part is that it fails in a simple math expression: \math{E_{i}j}.
Even a simple $y$ or \math{a+b} will trigger the error. However, this same
file Im working on has many formulas before that, those work fine. I
changed all the $...$ to \math{...} just in case, but with no success.

Already tried remaking, regenerating, updating the distribution.

Do you have any ideas to work this out? I don't know how to provide a MWE
for this because it's a very big project (statistics book).

I have tried 2 versions, the system-wide one, just upgraded:
mtx-context | ConTeXt Process Management 1.06
mtx-context | current version: 2024.02.22 18:31

And a less recent version, attached to the project:
mtx-context | ConTeXt Process Management 1.05
mtx-context | current version: 2024.02.14 13:38


Any help will be much appreciated.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Text in Margin

2024-02-19 Thread Andres Conrado Montoya
There is a package on github https://github.com/andythomas/TeX-sidenotes
that can help you with that. Check the "context" folder on that repo. Also,
you can find an example of its use at
https://github.com/zvonkok/perf-panacea

Caveat emptor: It has not been updated in 12 years. It should work for the
most part, I tried to do something with it a while ago but that project was
cancelled. I have not tested it myself but maybe later in  the week I can
take a look at it.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Drawing calligraphy practice grid in metafun

2023-11-20 Thread Andres Conrado Montoya
Hello list
I've been working on a little project of mine. I give calligraphy workshops
and I have been using a nice tool created by Josselin Cuette, available at
http://ductus.josselincuette.com/ to generate practice templates for
interested people.

However, I would prefer to have an offline solution. This adventure started
with the usual insidious idea: "I could do this in ConTeXt! And this is a
great opportunity to learn metafun!"

A couple weeks later, I have an almost ready product! It compiles fine, but
I have the following issue: The template creates a Line, composed of
Sections. And uses variables to assign a measurement for the nib-width, and
an amount of ascender, x-height and descender Sections (nib-widths), to
compose a Line.

But also, I would like to, if needed, display nib-width marks on the left
side. My code so far generates marks, but only for the first Line. I think
they are generated but maybe they are placed on top of each other, maybe?
I'm not sure why my logic is not working.

Also, if I change the amount for ascenders, descenders of x-height, the
marks are not drawn correctly.

My current path for a mark is a custom path emulating two unit squares,
nib-width size, on top of each other, with the top one shifted a nib-width
to the right. A little bit like a chess board, or a scale ruler on a map.
But this would only work in Lines that have an even amount of Sections. I'm
not sure how to proceed with that... I tried using unit squares, but that
made things very complex, and after fumbling around I managed to get this
far.

If you can take a look, or have some advice, it would be greatly
appreciated. I hope it is understandable.

My code:

%%
\setuppapersize[letter,landscape][letter,landscape]
\setuplayout[backspace=15mm,width=250mm,header=0mm,footer=0mm]

\startreusableMPgraphic{pauta}
  % Global variables:

  % Show nib-width marks
  boolean marks ; marks := true ;

  % Path for nib-width
  path mark ; mark := (0,0) -- (1,0) -- (1,2) -- (2,2) -- (2,1) -- (0,1) --
cycle ;

  % Line width
  numeric line ; line := \the\textwidth ;

  % Type box
  numeric box ; box := \the\textheight ;

  % Nib width (distance between lines)
  numeric nib ; nib := 3mm ;

  % Ascenders for writing line
  numeric asc ; asc := 3 ;

  % x-height for writing line
  numeric med ; med := 4 ;

  % Descenders for writing line
  numeric dsc ; dsc := 3 ;

  % Total height of a writing line in mm (including asc, med, and dsc)
  numeric lineHeight ;
  lineHeight = (asc + med + dsc) * nib ;

  % Available lines on a page
  numeric availableLines ;
  availableLines = round(box / lineHeight) - 1 ;

  % Starting position
  numeric start ; start := 0 ;

  % Macros

  % Draw a section of a line (ascender, x-height or descender)
  vardef Section(expr lines, initial) =
draw (0, initial) -- (line, initial) withpen pencircle scaled 0.2mm ;
for i=0 step 1 until lines :
  save final ; final = i*nib ;
  pair a; a = (0, final + initial) ;
  pair b; b = (line, final + initial) ;
  draw a -- b withpen pencircle scaled 0.1mm ;
  % If marks=true show nib-width marks
  if marks = true:
fill mark scaled nib yshifted (final*2) ;
  fi ;
endfor ;
  draw (0, final + initial) -- (line, final + initial)
withpen pencircle scaled 0.2mm ;
final + initial
  enddef ;

  % Draw a line with the three secions (asc, med, dsc)
  vardef Line(expr descender, ascender, xheight, initial) =
numeric dd, oo, aa ;
% Líneas
dd = Section(descender, initial) ;
oo = Section(xheight, dd) ;
aa = Section(ascender, oo) ;
% Devolver posicion final con espacio para siguiente renglon
aa + nib*2
  enddef ;

  % Llenar la página con renglones
  for i=1 upto availableLines :
start := Line(dsc, asc, med, start) ;
  endfor ;
\stopreusableMPgraphic

\startdocument
  \startstandardmakeup
\reuseMPgraphic{pauta}
  \stopstandardmakeup
\stopdocument
%%

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 

[NTG-context] Re: Wiki problem - labels missing from the main diagram on the Page Layout page

2023-11-07 Thread Andres Conrado Montoya
A possible reason for this is that the use of xlink:href, the attribute
used to render the text glyphs created by symbol elements in
https://wiki.contextgarden.net/images/5/54/layout.svg, has been deprecated
since SVG 2.0, as you can see in
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href

Instead, as the article recommends, just href should be used instead, and
the xlink:href attribute can be preserved as a fallback for (very) old
browsers.


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: wiki update: Modules

2023-10-01 Thread Andres Conrado Montoya
In the wiki, if I click a link to check a source code file (for example
https://source.contextgarden.net/tex/context/base/mkiv/m-catchword.mkiv) I
get a blank page with a very long list of source files on the left. If I
search for the file with my browser's ctrl+f on that page, it returns zero
results. I'm using Chrome. It happens for every link to source files.

Not sure if it's a problem with my setup, but I have noticed that
before, in different machines. Can anybody else confirm if they can
correctly see the source files when clicking the links?

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Install fonts on MS Windows

2023-09-23 Thread Andres Conrado Montoya
I did a test with Windows 10.

Installed a fresh copy from the garden, Got the GFS Didot font from Google
Fonts, and installed it system-wide (C:\Windows\fonts). After that, I ran

mtxrun --script fonts --reload

Then tried the pattern suggested but did not work. However, then I tried a
pattern without asterisks:

mtxrun --script fonts --list --pattern=didot --all

This returned the font:

C:\griego>mtxrun --script fonts --list --pattern=didot --all
identifier   familynamefontname filename
subfont   instances

gfsdidot gfsdidot  gfsdidotregular
 c:/windows/fonts/GFSDidot-Regular.ttf
gfsdidotnormal   gfsdidot  gfsdidotregular
 c:/windows/fonts/GFSDidot-Regular.ttf
gfsdidotregular  gfsdidot  gfsdidotregular
 c:/windows/fonts/GFSDidot-Regular.ttf
theanodidot  theanodidot   theanodidotregular
c:/windows/fonts/TheanoDidot-Regular.ttf
theanodidotnormaltheanodidot   theanodidotregular
c:/windows/fonts/TheanoDidot-Regular.ttf
theanodidotregular   theanodidot   theanodidotregular
c:/windows/fonts/TheanoDidot-Regular.ttf

trying to render Pablo's example didn't work at first, but after i called
the fonts with the name returned by mtxrun:

\mainlanguage[agr]
\definefontfamily[mainface][rm][gfsdidot]
\definefontfamily[mainface][ss][theanodidot]
\setupbodyfont[mainface]
\starttext
GFS Didot:

\doloopoverlist{\tf, \it, \bf, \bi}
  {\recursestring\input aristotle-grc\par}

\ss
Theano Didot:

\input aristotle-grc
\stoptext

Everything compiles correctly, and the font is used. Since it's only a
single font file with no variants, you don´t get italics, bold etc. But the
font is being used.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Using structureuservariables before the heading

2023-09-12 Thread Andres Conrado Montoya
You can find some examples in the wiki to do something similar:
https://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content

Also you can use setups instead of macro definitions, and create spaces
with \space, \par, etc: https://wiki.contextgarden.net/Setups

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Better option for a macro with lots of arguments

2023-08-22 Thread Andres Conrado Montoya
I have been using the following macro to add a bunch of sections to the
start of chapters in a book, it works but I think is kind of weak:

%%%

\define[7]\metadatos{
  \startsection[title={Resumen}] #1 \stopsection
  \startsection[title={Palabras clave}] #2 \stopsection
  \start
  \language[en]
  \startsection[title={Abstract}] #3  \stopsection
  \startsection[title={Keywords}] #4 \stopsection
  \stop
  \startsection[title={¿Cómo citar este capítulo? / How to cite this book?}]
\startsubsection[title={Apa}] #5 \stopsubsection
\startsubsection[title={Chicago}] #6 \stopsubsection
\startsubsection[title={MLA}] #7 \stopsubsection
   \stopsection
}

\starttext
% Then I call the macro like this:
\metadatos{spanish abstract \input knuth}{some, comma, separated, keywords,
in, spanish}{english abstract \input knuth}{same, comma, separated,
keywords, in, english}{Apa citation style for this article}{Chicago
citation style for this article}{MLA citation style for this article}
\stoptext
%%%

I've been exploring different ways to do it better, but with not much luck,
I was thinking something based in key=value assignments? setups? datasets?
Not really sure, but If you know a better solution or point me in the
direction of something I can use to replace that macro, it would be greatly
appreciated.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Not getting a page break in the ToC

2023-08-22 Thread Andres Conrado Montoya
Apologies, I just found the solution:
https://wiki.contextgarden.net/Command/setinjector

El lun, 21 ago 2023 a las 23:43, Andres Conrado Montoya (<
andresconr...@gmail.com>) escribió:

> I'm trying to force a page break in a table of contents, using what is
> recommended at
> https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break
>
> However, it does not work. Here's a MWE:
>
> \definelistextra[page][before=\page]
> \starttext
> \starttitle[title={Table of contents}]
> \placecontent[extras={2=page}]
> \stoptitle
> \startchapter[title={First chapter}]
> \input knuth
> \stopchapter
> \startchapter[title={Second chapter}]
> \input knuth
> \stopchapter
> \startchapter[title={Third chapter}]
> \input knuth
> \stopchapter
> \stoptext
>
> Is there a new way of obtaining a page break before a given part, chapter
> or section in the ToC?
>
> Thank you in advance.
>
> --
> Andrés Conrado Montoya
> Andi Kú
> andresconr...@gmail.com
> http://sesentaycuatro.com
> http://messier87.com
> http://chiquitico.org
> 
> Los fines no justifican los medios, porque la medida verdadera de nuestro
> carácter está dada por los medios que estamos dispuestos a utilizar, no por
> los fines que proclamamos.
> 
>
> “You develop an instant global consciousness, a people orientation, an
> intense dissatisfaction with the state of the world, and a compulsion to do
> something about it. From out there on the moon, international politics look
> so petty. You want to grab a politician by the scruff of the neck and drag
> him a quarter of a million miles out and say, ‘Look at that, you son of a
> bitch.’” — Apollo 14 astronaut Edgar Mitchell
>


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Not getting a page break in the ToC

2023-08-21 Thread Andres Conrado Montoya
I'm trying to force a page break in a table of contents, using what is
recommended at
https://wiki.contextgarden.net/Table_of_Contents#Forced_Page_Break

However, it does not work. Here's a MWE:

\definelistextra[page][before=\page]
\starttext
\starttitle[title={Table of contents}]
\placecontent[extras={2=page}]
\stoptitle
\startchapter[title={First chapter}]
\input knuth
\stopchapter
\startchapter[title={Second chapter}]
\input knuth
\stopchapter
\startchapter[title={Third chapter}]
\input knuth
\stopchapter
\stoptext

Is there a new way of obtaining a page break before a given part, chapter
or section in the ToC?

Thank you in advance.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-18 Thread Andres Conrado Montoya
I was using an old LMTX copy, and that was the issue. Thanks to Hans for
pointing that out.

Now I'm trying to expand my solution a little more. Is there any way to
retrieve an element in a dataset by using the key? For example, given an
"authors" dataset, I would like to do something similar to:

%% Given this data structure ...
\setdataset[authors][
  nombre={Andrés Conrado Montoya Acosta},
  bio={This is a bio, it could be two or three paragraphs long},
  email={loremip...@email.edu.co},
  cvlac={
https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0002125949
},
  orcid={https://orcid.org/0009-0007-0765-4241},
  gscholar={
https://scholar.google.com/citations?user=GpYTTU0J=es=1},
]

%% I want to do something like
\startGetAuthor[nombre={Andrés Conrado Montoya Acosta}]
\datasetentry{bio}\par
email: \mailhref{\datasetentry{email}}
\stopGetAuthor

So, if my name is found in the dataset, get the data for that name. Is
something like that possible?

Thank you for your time.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Experiments with \doloopoverlist

2023-08-17 Thread Andres Conrado Montoya
Thank you Hanks, seems to work well after some tweaking.

I had an issue, the patch you sent me gave an error when I ran 'context
--make'. The error said:

tex error   > tex error on line 51 in file core-dat.mkxl: Parameters
must be numbered consecutively
[#1]#*[

S

\permanent\tolerant\protected\def\setdataset[#1]#*[#S
#2]#*[#S#3]%

I've inserted the digit you should have used after the #.

I edited line 51 as:
\permanent\tolerant\protected\def\setdataset[#1]#*[#2]#*[#3]%
Instead of your original:
\permanent\tolerant\protected\def\setdataset[#1]#*[#S#2]#*[#S#3]%

And now context --make runs, and the example compiles correctly, however,
not really sure if what I did was the right thing to do.

Thank you so much for your help!

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Experiments with \doloopoverlist

2023-08-16 Thread Andres Conrado Montoya
Hello List.

I've been trying to typeset a somewhat complex list of authors for several
articles and a book.
My proof of concept seems to work fine, however, I know I am doing weird
things that I think could probably be done in a better way. I'm using
datasets and a recursion, kind of hacky but I can't find a better way of
handling it. Specifically I would like to know:
1. Is there a way of getting the length of a filled dataset? (how many
entries it contains)
2. Is it OK to use \startuserdata \stopuserdata without its inlineuserdata?
Is there an alternative that does not require inlineuserdata?

%% MWE:
\setupinteraction[state=start]

\define[2]\imghref{\bgroup\goto{#1}[url(#2)]\egroup}
\defineexternalfigure[logo][height=1em]

\definedataset[autores]

\setdataset[autores][
  nombre={Angie Natalia Farfán Acevedo},
  cvlac={
https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0002125949
},
  orcid={https://orcid.org/0009-0007-0765-4241},
  gscholar={
https://scholar.google.com/citations?user=GpYTTU0J=es=1},
]
\setdataset[autores][
  nombre={Ivon Andrea Rodríguez Román}
  cvlac={
https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=027033
}
  orcid={https://orcid.org/0009-0001-1183-6829}
  gscholar={https://scholar.google.com/citations?user=iz8SQNcJ=es}
]
\setdataset[autores][
  nombre={Angie Caterin Garzón González}
  cvlac={
https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0002128501
}
  orcid={https://orcid.org/0009-0009-0990-6902}
  gscholar={
https://scholar.google.com/citations?view_op=list_works=es=5WqcOeEJ
}
]
\setdataset[autores][
  nombre={Heidy Paola Veira Tenorio}
  cvlac={
https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0002127550
}
  orcid={https://orcid.org/0009-0008-4076-7317}
  gscholar={
https://scholar.google.es/citations?view_op=new_profile=es=1}
]
\setdataset[autores][
  nombre={Yerly Lorena Diaz Aldana}
  cvlac={
https://scienti.minciencias.gov.co/cvlac/visualizador/generarCurriculoCv.do?cod_rh=0002127754
}
  orcid={https://orcid.org/0009-0008-1720-4057}
  gscholar={
https://scholar.google.com/citations?hl=es=0obyCwkJ_op=list_works=AOV7GLPWRTK-xooHNe0iQ3uubfcSbG__GY_Guy35FdaqDJA3OfLLtp01-E1kzjxUhltlsfj494MaoQFkk9U9hCFYSipoR8aX0Vu2E6sV
}
]

\defineuserdataalternative[idautor][renderingsetup=userdata:idautor]

\startsetups[userdata:idautor]
  \dontleavehmode
  \imghref
{\externalfigure[cvlac.pdf][logo]}
{\userdataparameter{cvlac}}
\quad
  \imghref
{\externalfigure[orcid.pdf][logo]}
{\userdataparameter{orcid}}
\quad
  \imghref
{\externalfigure[gscholar.pdf][logo]}
{\userdataparameter{gscholar}}
\quad
  \userdataparameter{author}\par
\stopsetups

\defineuserdata[idautor][alternative=idautor]

\startdocument
  % I have to manually set the length of the dataset in the loop and use
recurselevel...
  % Maybe there is a way to use the length of the "autores" dataset? and
use indexes?
  \dorecurse{5}{
\startuserdata[idautor][
  author={\datasetvariable{autores}{\recurselevel}{nombre}},
  cvlac={\datasetvariable{autores}{\recurselevel}{cvlac}},
  orcid={\datasetvariable{autores}{\recurselevel}{orcid}},
  gscholar={\datasetvariable{autores}{\recurselevel}{gscholar}},
]\stopuserdata % My "inlineuserdata" is empty... no idea if this is
OK...
  }
\stopdocument
%% END MWE

Thank you in advance.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Wikfication of \commalistsentence

2021-12-03 Thread Andres Conrado Montoya via ntg-context
I talked too soon. This won't work, and I have no idea why:


\setuplabeltext [en] [and-1={{, }}, and-2={{ and }}]% Should be:  1, 2
and 3
\setuplabeltext [es] [and-1={{, }}, and-2={{ y }}]% Should be: 1, 2 y 3
\setuplabeltext [de] [and-1={{, }}, and-2={{ und }}]  % Should be: 1, 2 und
3

\starttext
\commalistsentence[one,two,three,four] % works as expected

\language[es]
\commalistsentence[uno,dos,tres,cuatro] % takes [en] settings

\language[de]
\commalistsentence[1,2,3,4] % takes [en] settings.
\stoptext
%%

If I change \mainlanguage, the main language is used in all three cases.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Wikified \commalistsentence

2021-12-03 Thread Andres Conrado Montoya via ntg-context
Hi, just to let you know
https://wiki.contextgarden.net/Command/commalistsentence has been wikified,
feel free to make corrections or changes.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Macro for a comma separated list of authors

2021-11-27 Thread Andres Conrado Montoya via ntg-context
Gracias, Jairo! This works great. I will go ahead and document it on the
wiki, if that's Ok.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Macro for a comma separated list of authors

2021-11-24 Thread Andres Conrado Montoya via ntg-context
I'm trying to produce a document with several authors, using macros for
comma separated lists. My MWE is as follows:

%%
\def\autores{%
  {Luis David Gómez-Méndez, Ph. D.},
  {Adriana del Pilar Pulido-Villamarín, M. Sc.},
  {Rubiela Castañeda-Salazar, M. Sc.},
  {Juan Carlos Ulloa-Rubiano, Ph. D.},
  {Adriana Matiz-Villamil, M. Sc.}%
}

\def\lastAutor{Fidson Juarismy Vesga-Pérez, Ph. D}

\def\autorParaLista#1{#1;\space}
\def\listaAutores{\processcommacommand[\autores]\autorParaLista &
\lastAutor: autores.}

\starttext

\listaAutores

\stoptext
%%%

So far, no luck trying to extract the last item from a comma separated
list. That's the reason I created a "\lastAutor" macro, so I can treat the
last one differently.

This produces:

%%
Luis David Gómez-Méndez, Ph.D.; Adriana del Pilar Pulido-Villamarín, M.
Sc.; Rubiela Castañeda-Salazar, M. Sc.; Juan Carlos Ulloa-Rubiano, Ph.D.;
Adriana Matiz-Villamil, M. Sc.; & Fidson Juarismy Vesga-Pérez, Ph.D:
autores.
%%

However, what I'm trying to get is:

%%
Luis David Gómez-Méndez, Ph.D.; Adriana del Pilar Pulido-Villamarín, M.
Sc.; Rubiela Castañeda-Salazar, M. Sc.; Juan Carlos Ulloa-Rubiano, Ph.D.;
Adriana Matiz-Villamil, M. Sc. & Fidson Juarismy Vesga-Pérez, Ph.D: autores.
%%

Which is very close to what I need, except the ";" just before the "&". So
the question is: is it possible to do this in a more effective or simpler,
or better way, and write a macro that outputs something like "Author1;
Author2; Author3 & Author4: authors.", given a comma separated list of
authors?

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] fixing indentation of xtable inside item

2021-11-22 Thread Andres Conrado Montoya via ntg-context
Considering the following MWE, I would like to know how I can get the table
inside the item to be aligned with the item. It seems the tabel takes the
width right, but it gets pushed to the left, disregarding the item's
indentation.

I think I read about this behaviour somewhere, but I have spent 4 hours
looking for it in the manuals and I can't find it. :(

Any help would be appreciated.

%-startwme
\starttext
\startitemize
\item
  Determine la {\sc an} de cada objetivo del microscopio, con los ángulos
de la tabla y teniendo en cuenta lo siguiente: $n_{\text{aire}} = 1$ y
$n_{\text{aceite de inmersión}} = 1.515$:
  \blank
  \startxtable[align=middle,option=stretch]
  \startxtablebody[body]
  \startxrow
  \startxcell Objetivo 4x \stopxcell
  \startxcell $n=1$ \stopxcell
  \startxcell $\alpha=5.8$ \stopxcell
  \startxcell {\sc an}$=$ \stopxcell
  \stopxrow
  \startxrow
  \startxcell Objetivo 10x \stopxcell
  \startxcell $n=1$ \stopxcell
  \startxcell $\alpha=14.5$ \stopxcell
  \startxcell {\sc an}$=$ \stopxcell
  \stopxrow
  \startxrow
  \startxcell Objetivo 40x \stopxcell
  \startxcell $n=1$ \stopxcell
  \startxcell $\alpha=40.5$ \stopxcell
  \startxcell {\sc an}$=$ \stopxcell
  \stopxrow
  \stopxtablebody
  \startxtablefoot[foot]
  \startxrow
  \startxcell Objetivo 100x \stopxcell
  \startxcell $n=1.515$ \stopxcell
  \startxcell $\alpha=55.6$ \stopxcell
  \startxcell {\sc an}$=$ \stopxcell
  \stopxrow
  \stopxtablefoot
  \stopxtable

\stopitemize
\stoptext
%-startwme


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Missing images in Wiki?

2021-01-22 Thread Andres Conrado Montoya Acosta
This is one example:

https://wiki.contextgarden.net/Command/externalfigure

However, now I checked the source, and the image files are there... and
they are being correctly linked, but the image attributes width and height
are set to zero. Maybe something wrong with lazy loading?

Example in html code:




El vie, 22 ene 2021 a las 6:00,  escribió:

> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>1. Missing images in Wiki? (Andres Conrado Montoya)
>2. Re: Missing images in Wiki? (Taco Hoekwater)
>3. new lmtx / fonts (Hans Hagen)
>4. \doassign variable - updates not picked up (Werner Hennrich)
>
>
> ----------
>
> Message: 1
> Date: Thu, 21 Jan 2021 14:30:59 -0500
> From: Andres Conrado Montoya 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] Missing images in Wiki?
> Message-ID:
>  z7sh-ng53xaxs6lr_...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> It seems a lot of image examples from the wiki are gone now. Most articles
> lost many images. Is this on purpose?
>
> --
> Andrés Conrado Montoya
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210121/8ba7f748/attachment-0001.htm
> >
>
> --
>
> Message: 2
> Date: Fri, 22 Jan 2021 09:06:51 +0100
> From: Taco Hoekwater 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Missing images in Wiki?
> Message-ID: <712d4f56-8cbc-4bdf-adac-86facd1d2...@bittext.nl>
> Content-Type: text/plain;   charset=utf-8
>
>
>
> > On 21 Jan 2021, at 20:30, Andres Conrado Montoya <
> andresconr...@gmail.com> wrote:
> >
> > It seems a lot of image examples from the wiki are gone now. Most
> articles lost many images. Is this on purpose?
>
> Seems unlikely, but provide a few examples, please. I will check.
>
> —
> Taco Hoekwater  E: t...@bittext.nl
> genderfluid (all pronouns)
>
>
>
>
>
> --
>
> Message: 3
> Date: Fri, 22 Jan 2021 09:50:50 +0100
> From: Hans Hagen 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] new lmtx / fonts
> Message-ID: 
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi,
>
> I uploaded a new lmtx. I'm still playing a bit with metafonts so there
> are two new files
>
> context --global meta-imp-demo.mkxl
> context --global meta-imp-clock.mkxl
>
> Both show a bit. The question is, do we need / want more like this? What
> kind of interfaces are best? It's mostly about used defined symbols that
> are proper characters and efficiently used.
>
> Hans
>
> PS. The clock one has a hidden cut'n'paste feature that only works on
> acrobat which of course then makes it a kind of useless feature (plenty
> of them by now) because when, e.g. a  mupdf bases viewer doesn't support
> this after all these years it's could as well be kept out of the standard.
>
>
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
>
> --
>
> Message: 4
> Date: Fri, 22 Jan 2021 09:48:58 +0100
> From: Werner Hennrich 
> To: ntg-context@ntg.nl
> Subject: [NTG-context] \doassign variable - updates not picked up
> Message-ID: <88b0bb87-972e-0664-1e29-71e7b0538...@gmx.at>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Hello everyone,
>
> I'm using ConTeXt  (ver: 2020.09.20 23:02 LMTX) and have to have
> conditional page headers based on specific content criteria. To achive
> this I'd like to get some global variables in TeX, change their values
> several times throughout the document and have my macro for the header
> read them and act accordingly (like skip the header at all, change a
> color, etc).
>
>

[NTG-context] Missing images in Wiki?

2021-01-21 Thread Andres Conrado Montoya
It seems a lot of image examples from the wiki are gone now. Most articles
lost many images. Is this on purpose?

-- 
Andrés Conrado Montoya
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] 3 questions about xtables after reading manuals

2021-01-18 Thread Andres Conrado Montoya
I've been trying out xtables and reading the manual, some things I can't
find how to do (or if it's possible on xtables):

1. How to align whole columns. It seems I have to add [align=middle] to
each cell I want to have centered in a raggedright aligned table. In
tabulate you can use [|l|c|] to do this, is it possible in xtables? Seems
weird if it's not. Or did I miss something?

2. I know how to use [option=stretch] to fill the textwidth, but can I make
specific columns "tight", so they don't get stretched beyond their content?

3. When I use [option=tight] sometimes columns are narrowed so much as to
break a line of 4 or 5 words. MWE:

%
\startplacetable[location=none]
%\startxtable[align={middle,lohi},option=tight] % This makes the first
column too narrow. Lines are not that long
\startxtable[align={middle,lohi}]
\startxtablehead[head]
\startxrow
\startxcell[align=right] \strong{Concepto}\crlf\small{Cifras en miles de
pesos} \stopxcell
\startxcell \strong{Dato} \stopxcell
\stopxrow
\stopxtablehead
\startxtablebody[body]
\startxrow
\startxcell[align=right] Bono \stopxcell
\startxcell Ordinario \stopxcell
\stopxrow
\startxrow
\startxcell[align=right] Valor nominal \stopxcell
\startxcell \$100\,000 \stopxcell
\stopxrow
\startxrow
\startxcell[align=right] Tasa cupón - periodicidad anual \stopxcell
\startxcell 12,50\,\letterpercent{} \stopxcell
\stopxrow
\startxrow
\startxcell[align=right] Cupón \stopxcell
\startxcell \$12\,500 \stopxcell
\stopxrow
\startxrow
\startxcell[align=right] Vencimiento en años \stopxcell
\startxcell 5 \stopxcell
\stopxrow
\startxrow
\startxcell[align=right] Tasa de negociación (tasa de mercado) \stopxcell
\startxcell 12,50\,\letterpercent{} \stopxcell
\stopxrow
\startxrow
\startxcell[align=right] Precio de venta \stopxcell
\startxcell \$100\,000 \stopxcell
\stopxrow
\startxrow
\startxcell[align=right] Costos de transacción/ precio de venta \stopxcell
\startxcell 0 \stopxcell
\stopxrow
\startxrow
\startxcell[align=right] Fecha de emisión \stopxcell
\startxcell 30-mar-X6 \stopxcell
\stopxrow
\stopxtablebody
\stopxtable
\stopplacetable


Can I make this table to be "tight" but only so much as to allow "short
lines" (i.e: lines that don't make the table go wider than textwidth). I
can do it with manual width, but wondering if it's possible.

Thank you .

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] "Nicefracs" hidden in math-frc.mkiv

2021-01-18 Thread Andres Conrado Montoya
Hello, list.

I Was checking out math-frc.mkiv to learn stuff, and found out that at the
end of that file, from line 673, there is a couple commented out macros to
generate "nice fractions'', i.e.: ½ (as in the LaTeX package nicefrac). Why
has this code been commented out? These are quite useful.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] SILE typesetter and other projects

2021-01-03 Thread Andres Conrado Montoya
Hi Denis.

SILE seems interesting, aslo Patoline. However, I think both of these are
very immature, and I feel somewhat puzzled by the authors of SILE when they
say that you can't do grid typesetting on TeX without horrible hacks,
blatantly ignoring ConTeXt's achievements on the matter.

If you want to check an alternative typesetting system, I would tell you to
not look forward but backwards: groff/troff are alive and well, are very
mature, and you can find a lot of documentation and tutorials, even a
subreddit: https://www.reddit.com/r/groff/. I would recommend trying the
MOM macros for groff: http://www.schaffter.ca/mom/mom-01.html

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Regarding XML export and EPUB

2020-12-21 Thread Andres Conrado Montoya
Hello, list.
I've been experimenting with the export scripts and the instructions and
manuals you can find in:

https://wiki.contextgarden.net/XML
https://wiki.contextgarden.net/Export
https://wiki.contextgarden.net/Epub
https://wiki.contextgarden.net/ePub

This with the expectation of being able to make an epub file form a context
document that epubcheck can accept. I see there is an experimental support
for epub, and I have played around with the export options a bit. However,
what I would really want to know is. It's possible and if so, how can you
map context's elements so they can get translated to specific html tags? I
mean, the current export output uses divs with custom attributes and
classes, or custom tags; but I would like to map lists to ul, list-items to
li, headings to h1, h2, h3, paragraphs to  etc. In the manuals I see
that you can do the opposite: map xml/html tags to context's elements; I
wonder if you can go the other way around, and a good place to start
reading about it. Apologies if I missed something obvious.

Thank you.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] checkbox in fields show the word yes

2020-12-11 Thread Andres Conrado Montoya
Firefox doesn't show the "yes", nor Acrobat X, but SumatraPDF does. I
modified your definition as:

\definefield[test][check][cbox][][]

And now the "yes" doesn't appear. However, I don't know how this affects
the functionality of the form.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] basic issues with formulas

2020-12-03 Thread Andres Conrado Montoya
Hi pablo, regaring 1) TeX assumes that each character is a variable on math
mode. You need to tell it that each "word" is, well, a "word":

\starttext
  \startitemize[packed]
  \item Valor actual neto: $\text{\em beneficios} - \text{\em costes}$. %
you can use typographical variations inside \text: \em, \bf, etc
  \item Beneficio por euro: $\frac{\text{\em beneficios}}{\text{\em
costes}}$.
  \item Beneficio obtenido el primer año.
  \stopitemize
\stoptext

2) will solve itself ather this. 3, I don't know.



-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] ntg-context Digest, Vol 198, Issue 8

2020-12-02 Thread Andres Conrado Montoya
You are naming your font "english". If you call "ebgaramond" it will always
take the default ebgaramond features. Just call your font with the name you
gave it.

\definefontfamily[english] [rm] [ebgaramond] [features={dlig=no}]
\setupbodyfont[english,10pt]
\starttext
ct st
\stoptext



-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about frames

2020-11-26 Thread Andres Conrado Montoya
A bit late to the party but maybe this helps... try "frameoffset":

\defineframed[caja][frameoffset=\zeropoint,width=5cm,height=2cm]
\starttext
\dorecurse{5}{\caja[frame=on]{Hello}}
\stoptext

-- 
Andrés Conrado Montoya
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] question about frames

2020-11-26 Thread Andres Conrado Montoya
Disregard that... that is the default... it doesn't work as I thought
initially. Sorry for the noise.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug in overprint? (was: how to set overprint)

2020-11-16 Thread Andres Conrado Montoya
> What editors do you use?

I checked using Acrobat X on windows, PDFStudio 12 and Master PDF Editor on
linux

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bug in overprint? (was: how to set overprint)

2020-11-10 Thread Andres Conrado Montoya Acosta
>
> may I ask someone, who understands knockout and overprint in the printing
> press, to check test cases in the attached file from the test suite, if
> overprint is working or not in Mark IV, please?
>
> Regards,
> Jano
>
>
Hi Jano, as far as I can check with my pdf editors, it seems overprinting
is working. The black ink is printed above the blue, with no white reserve
below it.

-- 
Andrés Conrado Montoya
http://chiquitico.org
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
By the way, I already tried with \framed, but I can't get it to take the
current float width.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
> Hi Andrés,
>
> You could probably put the notes inside a \start...\stopxtablefoot
>
> Sylvain

Thanks Sylvain, but I have a lot of tables to edit...This may work, but I
would prefer to explore programmatic solutions involving the two defined
macros(\fuentent & \fuente in my example), because I really don't want to
go back and edit a hundred or so tables.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] How can I make the notes under this table inherit the width of the table, and not the \textwidth?

2020-11-10 Thread Andres Conrado Montoya
MWE (sorry for the long table, I hadn't anything else at hand):


\definehighlight[emph][style={\em}]
\definehighlight[strong][style={\bf}]

\setupfloat[table][default={here}]

\definereferenceformat[figura][text={Figura~}]
\definereferenceformat[tabla][text={Tabla~}]

\setupcaptions[style={\sans\small},
  width=max,
  prefix=no,
  align={flushleft,nothyphenated},
  way=bytext]
\setupcaption[table][location=top]

\setupthinrules[width=15em] % width of horizontal rules

\setupxtable[frame=off,option=stretch,bodyfont=small,foregroundstyle=sans]
\setupxtable[head][topframe=on,bottomframe=on,foregroundstyle=sansbold]
\setupxtable[body][bottomframe=on]
\setupxtable[foot][bottomframe=on]

\define[1]\fuentent{\start\switchtobodyfont[sans,small]#1\par\stop}
\define[1]\fuente{\start\switchtobodyfont[sans,small]\emph{Fuente:}~#1\par\stop}

\starttext
\reference[tbl:t03]{}%
\startplacetable[title={Composición química y valor energético de recursos
forrajeros de corte en el área de influencia del Subproyecto Carne Bovina
(trópico de altura).}]
\startxtable[option=tight,bodyfont=7pt]
\startxtablehead[head]
\startxrow
\startxcell[align=right,width=.1\textwidth] \strong{Altura\crlf (msnm)}
\stopxcell
\startxcell[align=right,width=.28\textwidth] \strong{Gramíneas forrajeras
de corte} \stopxcell
\startxcell[align=middle,width=.06\textwidth] \strong{Edad (días)}
\stopxcell
\startxcell[align=middle,width=.05\textwidth] \strong{MS
(\letterpercent{})} \stopxcell
\startxcell[align=middle,width=.1\textwidth] \strong{PC\crlf
 (\letterpercent{} MS)} \stopxcell
\startxcell[align=middle,width=.1\textwidth] \strong{FDN\crlf
(\letterpercent{} MS)} \stopxcell
\startxcell[align=middle,width=.1\textwidth] \strong{FDA\crlf
(\letterpercent{} MS)} \stopxcell
\startxcell[align=middle,width=.1\textwidth] \strong{EM\crlf {\bfxx
(Mcal/kg MS)}} \stopxcell
\startxcell[align=middle,width=.1\textwidth] \strong{ENm\crlf {\bfxx
(Mcal/kg MS)}} \stopxcell
\startxcell[align=middle,width=.1\textwidth] \strong{ENg\crlf {\bfxx
(Mcal/kg MS)}} \stopxcell
\startxcell[align=middle,width=.1\textwidth] \strong{ENl\crlf {\bfxx
(Mcal/kg MS)}} \stopxcell
\stopxrow
\stopxtablehead
\startxtablebody[body]
\startxrow
\startxcell[align=right,ny=2] 1800-1860 \stopxcell
\startxcell[align=right,ny=2] \strong{Cuba 22}\crlf (\emph{P. glaucum} x
\emph{P. thyphoides}) \stopxcell
\startxcell[align=middle] 90 \stopxcell
\startxcell[align=middle] 29,0 \stopxcell
\startxcell[align=middle] 10,6 \stopxcell
\startxcell[align=middle] 64,1 \stopxcell
\startxcell[align=middle] 30,8 \stopxcell
\startxcell[align=middle] 1,92 \stopxcell
\startxcell[align=middle] 1,08 \stopxcell
\startxcell[align=middle] 0,52 \stopxcell
\startxcell[align=middle] 1,19 \stopxcell
\stopxrow
\startxrow
\startxcell[align=middle] 210 \stopxcell
\startxcell[align=middle] 27,8 \stopxcell
\startxcell[align=middle] 6,2 \stopxcell
\startxcell[align=middle] 69,1 \stopxcell
\startxcell[align=middle] 33,6 \stopxcell
\startxcell[align=middle] 1,78 \stopxcell
\startxcell[align=middle] 0,94 \stopxcell
\startxcell[align=middle] 0,40 \stopxcell
\startxcell[align=middle] 1,09 \stopxcell
\stopxrow
\startxrow
\startxcell[align=right,ny=3] 1800-2186 \stopxcell
\startxcell[align=right,ny=3] \strong{King Grass} \crlf (\emph{P.
purpureum} x \emph{P. typhoides}) \stopxcell
\startxcell[align=middle] 91 \stopxcell
\startxcell[align=middle] 22,3 \stopxcell
\startxcell[align=middle] 8,7 \stopxcell
\startxcell[align=middle] 65,4 \stopxcell
\startxcell[align=middle] 32,1 \stopxcell
\startxcell[align=middle] 1,86 \stopxcell
\startxcell[align=middle] 1,02 \stopxcell
\startxcell[align=middle] 0,46 \stopxcell
\startxcell[align=middle] 1,14 \stopxcell
\stopxrow
\startxrow
\startxcell[align=middle] 150 \stopxcell
\startxcell[align=middle] 23,6 \stopxcell
\startxcell[align=middle] 7,2 \stopxcell
\startxcell[align=middle] 66,9 \stopxcell
\startxcell[align=middle] 32,8 \stopxcell
\startxcell[align=middle] 1,81 \stopxcell
\startxcell[align=middle] 0,98 \stopxcell
\startxcell[align=middle] 0,42 \stopxcell
\startxcell[align=middle] 1,11 \stopxcell
\stopxrow
\startxrow
\startxcell[align=middle] 182 \stopxcell
\startxcell[align=middle] 27,0 \stopxcell
\startxcell[align=middle] 6,7 \stopxcell
\startxcell[align=middle] 68,8 \stopxcell
\startxcell[align=middle] 35,6 \stopxcell
\startxcell[align=middle] 1,77 \stopxcell
\startxcell[align=middle] 0,93 \stopxcell
\startxcell[align=middle] 0,38 \stopxcell
\startxcell[align=middle] 1,08 \stopxcell
\stopxrow
\startxrow
\startxcell[align=right,ny=3] 1800-1850 \stopxcell
\startxcell[align=right,ny=3] \strong{King Grass morado} \crlf
(\emph{Pennisetum purpureum}) \stopxcell
\startxcell[align=middle] 98 \stopxcell
\startxcell[align=middle] 20,8 \stopxcell
\startxcell[align=middle] 13,1 \stopxcell
\startxcell[align=middle] 62,3 \stopxcell
\startxcell[align=middle] 30,8 \stopxcell
\startxcell[align=middle] 1,99 \stopxcell
\startxcell[align=middle] 

[NTG-context] The correct way to add emphasis to text using italics

2020-10-21 Thread Andres Conrado Montoya
I've seen in several articles on the Wiki, some differences about how this
is done, and I'm confused about the differences:

*Font_Switching* says: "There is a font switch \em to emphasize text. This
is somewhat special: it does automatic italic correction and changes the
alternative depending on the current alternative. For example, if the
current font alternative is normal (i.e. upright), \em switches to slanted;
and if the current font alternative is slanted, \em switches to normal."
And using \definebodyfontenvironment[default][em=italic] to use italic
instead of slanted; for OpenType fonts, recommends using
\definefontfeature[default][default][itlc=yes] to also activate the italic
correction. However, this seems not to work in x(ht)ml export.

If you go to *Export*, it says: "Also note that switches like \em don’t
translate into output structure, you need to
\definehighlight[emph][style={\em}] and use as \emph{emphasized}." This is
what I'm currently using. Other parts of the Wiki show a similar solution,
but using style=italic, or style={\it}; I've seen others, but now I can't
find them.

Could you please guide me as to where is this documented in the manuals? Is
there any particular reason to choose any of these approaches above the
others? What is the recommended option if you want to have the \em
properties for emphasized text, but works for BOTH pdf and x(h)tml export?

Thank you for your time.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] issue with interaction=all and \insertpages

2020-09-22 Thread Andres Conrado Montoya Acosta
I am also following this question and some related ones by Pablo with great
interest, and it seems to me that it's falling through the cracks... so, I
am asking again: is it possible to preserve links correctly when imposing /
inserting pdf pages in ConTeXt?

El lun., 21 sept. 2020 a las 5:00,  escribió:

>3. issue with interaction=all and \insertpages (Pablo Rodriguez)
>
> Dear list,
>
> I have the following sample:
>
>   \setuplayout[page]
>   \setupinteraction
>  [state=start, color=, contrastcolor=, focus=standard]
>   \enabledirectives[references.border=red]
>   \setupexternalfigures[interaction=all, method=pdf]
>   \setupinteractionscreen[option={portrait, paper}]
>   \starttext
>   %~ \insertpages[http://gaceta.rsme.es/abrir.php?id=1495][width=0pt]
>   \insertpages[GacRSocMatEsp.pdf][width=0pt]
>   \stoptext
>
> I have some issues with it.
>
> 1. For some strange reason, the first \insertpages command with a remote
> file cannot deal with the interaction from the file (no internal or
> external links).
>
> 2. The local file includes internal destinations to page parts. After
> imposition, destinations to page for internal links cannot reach the
> page parts as links in original document do.
>
> 3. Even external links are converted. On last page,
> https://www.cs.umb.edu/~offner/files/pi.pdf is rewritten as
> https://www.cs.umb.edu/õffner/files/pi.pdf.
>
> Besides the rewritten link, would it be possible that links are added so
> they reach the same destinations as their source PDF document?
>
> Many thanks for your help,
>
> Pablo
> --
> http://www.ousia.tk
>

Thanks for your attention.
-- 
Andrés Conrado Montoya
http://chiquitico.org
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Can't output direct glyphs either in MKIV

2020-09-07 Thread Andres Conrado Montoya
Hi Taco, thanks for the input. Your example works, and produces the glyphs.
Pdf attached, I hope this system allows it (only 36.3 kB). "u101F2" is the
unicode name for the glyph. I would guess, according to what you told me,
that the code point would be "00024", but honestly, I have no idea. This
used to work some months ago.

-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell


test-phaistos.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Can't output direct glyphs either in MKIV or LMTX

2020-09-07 Thread Andres Conrado Montoya
Hello list. I'm trying to call a direct glyph from the Phaistos font, but
it seems it doesn't work. The font is loaded, the log file says it so:

system  >   12: filename=/home/vantta/.fonts/Phaistos.otf
format=otf foundname=/home/vantta/.fonts/Phaistos.otf
fullname=/home/vantta/.fonts/Phaistos.otf usedmethod=direct

However, the glyph is not displayed in the pdf. I've tried both in MKIV and
LMTX with no luck. Maybe someone here will have a clue.

MWE:
%%
\definesymbol[arbol]
  [\getnamedglyphdirect{phaistos}{u101F2}]

\starttext
\switchtobodyfont[72pt]
\symbol[arbol]
\stoptext
%%%


-- 
Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] notes in the margin

2019-10-03 Thread Andres Conrado Montoya
I've been tinkering with this problem. It's kind of frustrating not having
a right solution for this.
After trying and failing to the last solution published by Hraban on
2018-02-12, I tried to implement my own approach, from the other way
around, I mean: not trying to implement notes as marginal material, but to
implement the *marginalia* as some type of notes. A different type, apart
from footnotes, with their own counter, etc.

Below, a MWE, with some caveats:.
1. This is a poor quality hack. I'm not a developer.
2. If notes are too long, they clash with each other. I tried to understand
the options that would allow me to move them up or down, according to the
Wiki (https://wiki.contextgarden.net/Command/inmargin), but they don't seem
to do anything, or I don't understand how to work with them. But if there
is actually a way to manually instruct \inmargin to move up or down, it
should be easy to make it work as an optional third argument, for example.
3. The counter introduces some horizontal space that I cant manage to
remove except by introducing manual negative \hspace. The MWE doesn't
include that space, to display the isse.
4.  There are probably a ton of issues I have not thought about, but this
seems to work for this project I'm working on, at least.

%%% Start MWE

\setuplayout[
topspace=0.722in,
header=0.311in,
footer=0.622in,
width=4.211in,
height=9.622in,
backspace=1.311in,
rightmargin=1.8in,
margindistance=24pt
]
\definecounter[marginales][way=bytext,prefix=no]
\def\romanMarginales{\convertnumber{r}{\rawcountervalue[marginales]}}
\def\marginal{\dosingleempty\doMarginal}
\def\doMarginal[#1]#2{%
  \incrementnumber[marginales]
  \iffirstargument
\high{\romanMarginales}\inouter[#1]{\romanMarginales.\ #2}
  \else
\high{\romanMarginales}\inouter{\romanMarginales.\ #2}
  \fi
}

\starttext
\dorecurse{6}{\input weisman And so on, and so on\marginal{This is a test,
with some words and some more words.}.\par \input thuan\par}
\stoptext

%%% Stop MWE

Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Is it possible to define a float environment that uses 2 captions? (and another question)

2019-07-09 Thread Andres Conrado Montoya
I'm working on a book that uses tables and figures, but the editors want to
use to diffferent captions for each figure: one as usual, with the float
description and number, and another one with  a "Source" for said float.
Something like:

-
|   |
|   Float   |
|   |
-
Figure 1: The float description.
Source: The float source.

I know i can do it by hand, inserting line breaks in the caption and so on.
But I was wondering if there is a programmatic way to do it, so I can, for
example, change the "Caption" position to be above the float, but have the
"Source" below it. LIke:

Figure 1: The float description.
-
|   |
|   Float   |
|   |
-
Source: The float source.

I've been reviewing the Wiki, but so far I have no idea how to approach it.

Any recommendation will be very appreciated. Thank you for your time.

Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Why is the list so quiet these days?

2019-07-02 Thread Andres Conrado Montoya
Yes! I always get an answer, and I'm very grateful for that, and all the
work you all do. This is a great mail list, and ConTeXt is an amazing tool
that I very much enjoy working with. Thank you all!

Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell


El mar., 2 jul. 2019 a las 13:19, Hans Hagen () escribió:

> On 7/2/2019 8:09 PM, Andres Conrado Montoya wrote:
> > Is there an event or something else? Or everybody is just busy?
>
> normally traffic is somewhat lower during the summer (holiday season)
>
> https://mailman.ntg.nl/pipermail/ntg-context/2019/date.html
>
> but i'm pretty sure that when you post a question that you get an answer
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Why is the list so quiet these days?

2019-07-02 Thread Andres Conrado Montoya
Is there an event or something else? Or everybody is just busy?

Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
Wolfgang... Thank you, man. Thank you so very much. This works perfectly.

As I understand it from your correction, my mistake was that I was not
doing the page break before everything else, as I should, because in any
case there will always be a page break in my layout. Then, let the rest of
the algorithm decide if there will be a left or right page, headers and
footers, etc. Am I correct?

Thank you again for your work.

Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell


El jue., 27 jun. 2019 a las 13:17, Wolfgang Schuster (<
wolfgang.schuster.li...@gmail.com>) escribió:

> Andres Conrado Montoya schrieb am 27.06.2019 um 19:22:
>
> Hi List, it seems my message went unnoticed, if you can help me out,
> please do. I'm an struggling with this layout.
>
> I'm trying to make something using bits and examples found here and
> elsewhere, but I'm hitting a wall. I know there's a flawed logic in my
> approach, but I can't figure it out. Any help is appreciated.
>
> Expected behavior of the following MWE:
> When starting a new chapter, check if the page is even (left page), if so,
> fill it with color, and start the chapter in the next odd page (right
> page), removing the header but leaving the footer in that start-chapter
> page; and if this is a start-chapter page, use a specific graphic overlay
> for the page, but if if not (if its a regular page), use another graphic.
>
> Result:
> The header still appears in the start-chapter page, if it comes after the
> color filled page. But, if the start-chapter page comes after a regular
> (even) page, everything works as expected (no color-filled page, no header
> in the start-chapter page).
>
> MWE:
>
> %% START MWE
>
> [...]
>
> \startsetups [chapter:before]
>\doifoddpageelse
>  {}
>  {\pushbackground[page]
> \setupbackgrounds[page][background=color,backgroundcolor=rojo]
> \page[yes,right]
>   \popbackground}
> \stopsetups
>
> \startsetups [chapter:before]
>   \page
>   \doifoddpageelse
> {}
> {\pushbackground[page]
>\setupbackgrounds[page][background=color,backgroundcolor=rojo]
>\page[yes,header,footer,right]
>  \popbackground}
> \stopsetups
>
> \setuphead[chapter]
>   [width=20em,
>   before=\directsetup{chapter:before},
>
> Apply the above setup with
>
> beforesection=\directsetup{chapter:before},
>
> Wolfgang
>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Strange behavior in somewhat complex layout (again)

2019-06-27 Thread Andres Conrado Montoya
Hi List, it seems my message went unnoticed, if you can help me out, please
do. I'm an struggling with this layout.

I'm trying to make something using bits and examples found here and
elsewhere, but I'm hitting a wall. I know there's a flawed logic in my
approach, but I can't figure it out. Any help is appreciated.

Expected behavior of the following MWE:
When starting a new chapter, check if the page is even (left page), if so,
fill it with color, and start the chapter in the next odd page (right
page), removing the header but leaving the footer in that start-chapter
page; and if this is a start-chapter page, use a specific graphic overlay
for the page, but if if not (if its a regular page), use another graphic.

Result:
The header still appears in the start-chapter page, if it comes after the
color filled page. But, if the start-chapter page comes after a regular
(even) page, everything works as expected (no color-filled page, no header
in the start-chapter page).

MWE:

%% START MWE

\definecolor[rojo][h=ED553B]
\definehighlight[rojo][color=rojo]

\startMPinclusions
numeric u ; u := 1.125pt ;
numeric i ; i := 0.125in ;
string prevChapterTitle, currentChapterTitle;
prevChapterTitle := "";
currentChapterTitle := "";
\stopMPinclusions

\startuseMPgraphic{page:background}
StartPage;
currentChapterTitle := "\namedstructurevariable{chapter}{title}";

if currentChapterTitle <> prevChapterTitle :

fill (topboundary Page -- cycle)
enlarged(0,8i)
shifted (0,-4i)
withcolor transparent(4, 0.2, \MPcolor{rojo}) ;

fill (bottomboundary Page -- cycle)
enlarged(0,1u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

prevChapterTitle := currentChapterTitle ;

else:

fill (topboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,-7i+3u)
withcolor \MPcolor{rojo} ;

fill (bottomboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

fi;
StopPage;
\stopuseMPgraphic

\defineoverlay
  [chapter:background]
  [\useMPgraphic{page:background}]

\setupbackgrounds[page][background=chapter:background]

\definepagebreak[firstpagebreak][yes,header]

\startsetups [chapter:before]
   \doifoddpageelse
 {}
 {\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=rojo]
\page[yes,right]
  \popbackground}
\stopsetups

\setuphead[chapter]
  [width=20em,
  before=\directsetup{chapter:before},
  align={flushleft,nothyphenated,verytolerant},
  style={\tfd\sansbold},
  header=empty,
  page=yes,
  commandbefore={\blank[1.75in]},
  after={\blackrule[color=rojo,height=4pt,width=6em]\blank[1.25in]}]


\setuppagenumbering[alternative=doublesided,location=]

\setupheadertexts
[]
[{{\small\sans\getmarking[chapter]}}]
[{{\small\sans\getmarking[chapter]}}]
[]

\setupfootertexts
[]
[{\rojo{\small\sansbold\pagenumber}}]
[{\rojo{\small\sansbold\pagenumber}}]
[]

\starttext

\dorecurse{4}{%
  \startchapter[title={A chapter with a really long, long title}]
  \dorecurse{9}{\input{tufte}}
  \stopchapter
  \startchapter[title={A different chapter with a really long, long title}]
  \dorecurse{6}{\input{tufte}}
  \stopchapter}

\stoptext

%% STOP MWE

Thank you for your time.

Andrés Conrado Montoya
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Strange behavior in somewhat complex layout

2019-06-23 Thread Andres Conrado Montoya
Hello list, I'm trying to make something using bits and examples found here
and elsewhere, but I'm hitting a wall. I know there's a flawed logic in my
approach, but I can't figure it out. Any help is appreciated.

Expected behavior of the following MWE:
When starting a new chapter, check if the page is even (left page), if so,
fill it with color, and start the chapter in the next odd page (right
page), removing the header but leaving the footer in that start-chapter
page; and if this is a start-chapter page, use a specific graphic overlay
for the page, but if if not (if its a regular page), use another graphic.

Result:
The header still appears in the start-chapter page, if it comes after the
color filled page. But, if the start-chapter page comes after a regular
(even) page, everything works as expected (no color-filled page, no header
in the start-chapter page).

MWE:

%% START MWE

\definecolor[rojo][h=ED553B]
\definehighlight[rojo][color=rojo]

\startMPinclusions
numeric u ; u := 1.125pt ;
numeric i ; i := 0.125in ;
string prevChapterTitle, currentChapterTitle;
prevChapterTitle := "";
currentChapterTitle := "";
\stopMPinclusions

\startuseMPgraphic{page:background}
StartPage;
currentChapterTitle := "\namedstructurevariable{chapter}{title}";

if currentChapterTitle <> prevChapterTitle :

fill (topboundary Page -- cycle)
enlarged(0,8i)
shifted (0,-4i)
withcolor transparent(4, 0.2, \MPcolor{rojo}) ;

fill (bottomboundary Page -- cycle)
enlarged(0,1u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

prevChapterTitle := currentChapterTitle ;

else:

fill (topboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,-7i+3u)
withcolor \MPcolor{rojo} ;

fill (bottomboundary Page -- cycle)
enlarged(0,0.25u)
shifted (0,6i)
withcolor \MPcolor{rojo} ;

fi;
StopPage;
\stopuseMPgraphic

\defineoverlay
  [chapter:background]
  [\useMPgraphic{page:background}]

\setupbackgrounds[page][background=chapter:background]

\definepagebreak[firstpagebreak][yes,header]

\startsetups [chapter:before]
   \doifoddpageelse
 {}
 {\pushbackground[page]
\setupbackgrounds[page][background=color,backgroundcolor=rojo]
\page[yes,right]
  \popbackground}
\stopsetups

\setuphead[chapter]
  [width=20em,
  before=\directsetup{chapter:before},
  align={flushleft,nothyphenated,verytolerant},
  style={\tfd\sansbold},
  header=empty,
  page=yes,
  commandbefore={\blank[1.75in]},
  after={\blackrule[color=rojo,height=4pt,width=6em]\blank[1.25in]}]


\setuppagenumbering[alternative=doublesided,location=]

\setupheadertexts
[]
[{{\small\sans\getmarking[chapter]}}]
[{{\small\sans\getmarking[chapter]}}]
[]

\setupfootertexts
[]
[{\rojo{\small\sansbold\pagenumber}}]
[{\rojo{\small\sansbold\pagenumber}}]
[]

\starttext

\dorecurse{4}{%
  \startchapter[title={A chapter with a really long, long title}]
  \dorecurse{9}{\input{tufte}}
  \stopchapter
  \startchapter[title={A different chapter with a really long, long title}]
  \dorecurse{6}{\input{tufte}}
  \stopchapter}

\stoptext

%% STOP MWE

Thank you for your time.

Andrés Conrado Montoya
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] is it useful to use the option "--fonts=all" when running first-setup-sh?

2019-06-20 Thread Andres Conrado Montoya
As the subject says. I've been experimenting with having a by-project
context folder, so I can have a "frozen" version for each project. I see
there's an option to install more fonts (including utopia, useful for a
project I'm working on). However, I have no idea how to use these fonts.
Are they available in mkiv? only for mkii? Do we have typescripts for those
fonts? If so, how are they called? Are those fonts actually usable or are
they just remains from a past era?

Thank you for your time.

Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Using MTPro2 math Fonts with ConTeXt

2017-03-27 Thread Andres Conrado Montoya
Thank you for your tips. I'm using Linux. }

However, as I researched the matter, it seems to me is not a trivial
task... these fonts were made with LaTeX/Plain TeX in mind. I don't even
know how I would implement the font options (like mtpfrak, mtpcal, etc).
The font comes with two versions: Type1 and TFM (no afm). I converted from
Type1 to AFM using fontforge, and the fonts script detects the files
but I have no idea how to use them. It seems it doesn't detect the fonts as
part of a family... I don't even know where I could start to make this
work. Maybe I will stick to LaTeX for the time being.

Thank you for your time.

Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Using MTPro2 math Fonts with ConTeXt

2017-03-27 Thread Andres Conrado Montoya
Hello, List.

I am using the MTPro2 complete fonts (provided by the publisher house) for
typesetting some math books in LaTeX this year. I also want to use ConTeXt
to typeset other math books, those that don't come originally in LaTeX.
However, the publisher requires that I use the MTPro2 fonts for math, and
I've tried using the clues presentend in https://mailman.ntg.nl/
pipermail/ntg-context/2013/075938.html to install, but with no avail. Fonts
were placed in "context/tex/texmf-local", preserving folder structure;
"mtxrun --generate && mtxrun --script fonts --reload" was called after.
When that didn't work, tried placing the type1 and tfm folders in my fonts
folder (that is called by OSFONTDIR), and again, reload the fonts, but they
just don't figure in the list provided by "mtxrun --script fonts --list
--all --name --pattern=*". I have not found a way of using this font in
ConTeXt, and I really need it (or will be just LaTeX for now).

Thanks in advance.

Andrés Conrado Montoya
Andi Kú
andresconr...@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org

Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] About Hyphenation

2013-07-24 Thread Andres Conrado Montoya
Thanks, Marco. That seems to work with final hyphens.
Why this does not work instead?: \setpenalties\brokenpenalties{1}{1}
I have tried both, but your solution works better.

Andrés Conrado Montoya
___
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] About Hyphenation

2013-07-24 Thread Andres Conrado Montoya
So, it seems that this configuration worked (more or less), to avoid:
Widows, Orphans, 3 or more consecutive hyphens, and final hyphens.

 \startsetups[grid][correcto]
  \setups[*reset]
\setpenalties\widowpenalties{1}{1}
\setpenalties\clubpenalties{1}{1}
\stopsetups

\doublehyphendemerits=3
\finalhyphendemerits=3
\adjdemerits=1
\brokenpenalty1\relax

Thank you all for your time.

Andrés Conrado Montoya
___
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] About Hyphenation

2013-07-23 Thread Andres Conrado Montoya
Hi List, I am very grateful with you all. Thanks for all the teaching.
Sorry if the message is too long.

I have read in several places that the commands \doublehyphendemerits and
\finalhyphendemerits are not a real way of dealing with the design issue
of too many hyphens in a row and/or avoiding a hyphen at the end of a page.
I have found that \doublehyphendemerits just avoids TWO hyphens in a row,
but not three or four, etc., and \finalhyphendemerits just doesn't work. I
have read the code, the wiki, the mail list, and the manuals, but with no
success yet. I'm working with grid, and using a widow/orphan control macro
found here on this list:


\setupalign[verytolerant,stretch,lesshyphenation,hz,hanging]

 \startsetups[grid][correcto]
  \setups[*reset]
\setpenalties\widowpenalties{1}{1}
\setpenalties\clubpenalties{1}{1}
\setpenalties\brokenpenalties{1}{2}
 \stopsetups

\doublehyphendemerits=2
\finalhyphendemerits=2

\setuplayout
[backspace=10.3ex,
width=62ex,
 topspace=10.3ex,
height=124ex,
header=1em,
headerdistance=1em,
 footer=1em,
footerdistance=2em,
margindistance=1em,
 grid=yes,
setups=correcto]


As a book designer, one of my dreams is migrate all my work to ConTeXt, and
stop using adobe products; I think ConTeXt is a very good design tool.
However, this obstacle is frustrating that dream in part. I know that you
may say this hyphenation issue is a matter of taste! is not important!
but all the publishers I have worked with in the last 15 years have
emphasized that rule over and over again. I'm Colombian, so, I design books
mainly in spanish, and in spanish editions is a very common rule to avoid
more than 2 hyphens in a row. I understand that there are similar rules in
french, and I have read some discussions about it, but mostly the thread
finishes with something similar to use ragged right align and forget
hyphens (see http://www.mail-archive.com/ntg-context@ntg.nl/msg68899.html).

So, questions are:
1. Is there any definitive way of avoiding 2 or more hyphens on a row AND
hyphens at the end of a page?
2. If is not, and it seems that is not (see
http://latex-community.org/know-how/latex/55-latex-general/475-e-tex#line-breaking)
how
do you manage? Do you just let hyphens be? Do you avoid hyphens using
\unhyphenated or \mbox by hand? No problem, if it's the standard solution,
but I think there should be some mechanism to avoid (n+) hyphens on a row,
something like \maxadjhyphens[2]. Is this impossible / too difficult? If it
is, I'm sorry for bothering you. I just really want to work with ConTeXt. I
have done a couple books for myself, to learn, but I want to take this into
production, and this single issue, so insignificant you may see it, is very
important for me, and I'm sure that other designers would find it very
important too.

Thank you all for your time.

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

2013-06-28 Thread Andres Conrado Montoya
I was trying to implement the solution provided by this thread:
http://www.mail-archive.com/ntg-context@ntg.nl/msg51152.html and it
works very well. However, finding a problem related to this
implementation, I found that the output of the new \start ... \stop
versions of the title, section, chapter, subject, etc. commands is
different from the old \title, \chapter, \subject, etc.
As you can see in the following MWE, the new implementation indents
the first paragraph of the given section, by some amount (even
different from the default for paragraphs).

Is this a bug or a new feature that I don't understand?

mtx-context | current version: 2013.06.10 22:51

% START MWE **%

\setuplayout[grid=yes]
\setuppagenumbering
  [alternative=doublesided,location={footer,center}]
\showgrid
\setupindenting[yes,big,next]
\usemodule[lettrine]

\define[2]\SectionCommand
  {\inoutermargin{#2}}

\setuphead
  [title,subject]
  [page=no,
   alternative=text,
   command=\SectionCommand,
   distance=0pt,
   style={\tf\sc},
   before={\blank[line]}]

\starttext

\title{Knuth}
  With title: \input knuth\par

\starttitle[title={Tufte}]
  With starttitle: \input tufte\par
\stoptitle

\subject{Knuth}
  With subject: \input knuth\par

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

\stoptext

% STOP MWE %
___
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-24 Thread Andres Conrado Montoya
Thank you so much, Hans. :) It works great!.

I must agree, however, with Georg's considerations. I am very grateful
for the current solution, but an automatic selection of optical sizes
could be insanely good, from a book designer point of view (I'm a book
designer). Just for the curious, these are some links that go deeper
in the theme of Optical Sizes for Typography:

1. http://www.adobe.com/type/topics/opticalsize.html
2. 
http://graphicdesign.stackexchange.com/questions/8552/should-i-be-concerned-about-optimal-font-size-for-a-particular-font
3. http://ilovetypography.com/2012/04/11/designing-type-systems/
4. Book: Typography Monographs Vol. 2 - Size-specific Adjustments to
Type Designs: An Investigation of the Principles Guiding the Design of
Optical Sizes by Tim Ahrens, MA.
http://markbattypublisher.com/books/typography-monographs-volume-2-size-specific-adjustments-to-type-designs-an-investigation-of-the-principles-guiding-the-design-of-optical-sizes/

Thank you all. :)

Andrés Conrado Montoya
El Andi
andresconr...@gmail.com
http://chiquitico.org
http://twitter.com/conradolandia

Los fines no justifican los medios, porque la medida verdadera de
nuestro carácter está dada por los medios que estamos dispuestos a
utilizar, no por los fines que proclamamos.


“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion
to do something about it. From out there on the moon, international
politics look so petty. You want to grab a politician by the scruff of
the neck and drag him a quarter of a million miles out and say, ‘Look
at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell
___
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] Auto selecting optical sizes for a font

2013-06-21 Thread Andres Conrado Montoya
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.

Here is my example:

%%%
\enableregime[utf-8]
\mainlanguage[es]
\setupcapitals[sc=yes]

\definefontfeature[default][default]
[mode=node,calt=yes,liga=yes,dlig=yes,hlig=yes,ccmp=yes,kern=yes,mark=yes,mkmk=yes,onum=yes,pnum=yes,salt=yes,size=yes,expansion=quality,protrusion=quality]

\definefontfeature[smallcaps][smallcaps]
[mode=node,script=latn,smcp=yes,c2sc=yes,calt=yes,liga=yes,dlig=yes,hlig=yes,ccmp=yes,kern=yes,mark=yes,mkmk=yes,onum=yes,pnum=yes,salt=yes,size=yes,expansion=quality,protrusion=quality]

\starttypescript[serif][ebgaramond]
  \setups[font:fallback:serif]
  \definefontsynonym [EBGaramond-Regular][name:EBGaramond-Regular]
  \definefontsynonym [EBGaramond-Italic] [name:EBGaramond-Italic]
\stoptypescript

\starttypescript[serif][ebgaramond]
  \definefontsynonym [Serif]   [EBGaramond-Regular]
[features=default]
  \definefontsynonym [SerifItalic] [EBGaramond-Italic]
[features=default]
  \definefontsynonym [SerifCaps]   [Serif]
[features=smallcaps]
\stoptypescript

\definetypeface[ebg][rm][serif][ebgaramond][default]
\setupbodyfont[ebg,12pt]
\setupbodyfontenvironment[default][em=italic]

\setupinterlinespace[line=3.2ex]

\setupalign[lesshyphenation,hz,hanging]
\doublehyphendemerits=3
\setupspacing[packed]

\starttext
\showframe
\showgrid

\input tufte
\stoptext
%%%


Thank so much for all your good work and help. :)
___
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] Question about language

2012-10-19 Thread Andres Conrado Montoya
Greetings! I want to contribute to the Spanish translation in the
lang-txt.luahttp://gitorious.org/context/context/blobs/origin/tex/context/base/lang-txt.lua
file.
How do I do that? Thanks!
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___