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] Text and tree side by side in a framedtext environment

2019-11-18 Thread Andres Conrado
Or maybe try with "paragraphs":
https://wiki.contextgarden.net/Columns#Paragraphs

-- 
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] 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] Strange error updatng LMTX

2019-07-10 Thread Andres Conrado
When updating my LMTX installation today, I got this:

tex error   > tex error on line 179 in file
/home/conrado/Apps/lmtx/tex/texmf-context/tex/context/base/mkiv/strc-flt.mkvi:
! Undefined control sequence

 \c!compressdistance
=\emwidth
\mult_interfaces_get_parameters_item ...2->\if ,#1
  ,\expandafter \mult_interf...
\mult_interfaces_get_parameters_indeed ...tem #1,]
  ,
\setup_float ...es_get_parameters {\??float :}[#1]
  \the \everysetupfloat \fi ...
 \syst_helpers_double_empty_two_nop
\par
l.179


169\c!bottomoffset=\zeropoint,
170\c!freeregion=\v!yes,
171   %\c!local=,
172   %\c!bottombefore=, % e.g. \vfill
173   %\c!bottomafter=,
174   %\c!default=, % default location
175\c!sidethreshold=.5\strutdp, % set to "old" to check with old method
176\c!numbering=\v!yes,
177\c!compress=\v!yes, % when possible pack floats when flushing
178\c!compressdistance=\emwidth]
179 >>
180 \setupfloatframed
181   [\c!frame=\v!off,
182\c!offset=\v!overlay,
183\c!strut=\v!no]
184
185 \appendtoks
186 
\doifelse{\floatparameter\c!compress}\v!yes\settrue\setfalse\c_page_floats_pack_flushed
187 
\d_page_floats_compress_distance\floatparameter\c!compressdistance\relax
188 \to \everysetupfloat
189


The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., '\hobx'), type 'I' and the correct
spelling (e.g., 'I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.

Seems to affect the floats mechanism.

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
___


[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] Typesetting Markdown – Part 5: Interpolation

2019-07-09 Thread Andres Conrado
Thank you. I still don't really understand why can't you have a
"presentational" yaml file and a "content" yaml file (I do it like that...
I have a "variables.yaml" file for content and a "settings.yaml" file for
presentational stuff, and use a "template.context" file with all my mapped
variables within the ConTeXt code, and compile everything using pandoc).
But I guess you want to do it this way. Or maybe I'm not really
understanding your process. It's quite interesting in any case, and I'm
learning a lot. Thanks for sharing.

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] Typesetting Markdown – Part 5: Interpolation

2019-07-08 Thread Andres Conrado
You can do it on the template... you can use a yaml variable to determine
if the toc should be printed or not. Like so:

yaml file:
---
toc: true
...

template file:
%%%
$if(toc)$
\completecontent
$endif$
%%%


Andrés Conrado Montoya
http://chiquitico.org


El lun., 8 jul. 2019 a las 2:52,  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. Re:  Typesetting Markdown – Part 5: Interpolation
>   (Aditya Mahajan)
>2. Re:  Typesetting Markdown – Part 5: Interpolation (Thangalin)
>3. Re:  Typesetting Markdown – Part 5: Interpolation
>   (Aditya Mahajan)
>4. request for \definefontfamily and \definefallbackfamily
>   (Pablo Rodriguez)
>5. Re: crappy names in the fontloader (Hans Hagen)
>6. problems with images, layers and crop marks (Henning Hraban Ramm)
>7. Re: problems with images, layers and crop marks (Hans Hagen)
>
>
> --
>
> Message: 1
> Date: Sun, 7 Jul 2019 10:17:31 -0400 (EDT)
> From: Aditya Mahajan 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context]  Typesetting Markdown – Part 5:
> Interpolation
> Message-ID: 
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> On Sat, 6 Jul 2019, Thangalin wrote:
>
> > Hello again!
> >
> > This part of the series describes how to reference *interpolated* strings
> > inside Markdown documents.
> > https://dave.autonoma.ca/blog/2019/07/06/typesetting-markdown-part-5/
> >
> > There's a section at the end about eliminating the table of contents
> from a
> > reusable document template. I would have preferred using setups, rather
> > than redefining the \completecontent macro, but didn't see an obvious way
> > to do so.
>
> Why not simply omit \compltecontent from the pandoc template?
>
> Aditya
>
>
>
> --
>
> Message: 2
> Date: Sun, 7 Jul 2019 11:58:12 -0700
> From: Thangalin 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context]  Typesetting Markdown – Part 5:
> Interpolation
> Message-ID:
>  g...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Thank you Aditya.
>
> The main.tex file is meant to be reusable for different document styles. By
> removing \completecontent altogether from the main template, it would
> preclude a different document from reusing the main.tex template with a
> table of contents. I'd like the template to be "reusable"; making
> modifications to "main.tex" --- or creating a copy --- would subvert that
> goal.
>
> On Sun, Jul 7, 2019 at 7:17 AM Aditya Mahajan  wrote:
>
> > On Sat, 6 Jul 2019, Thangalin wrote:
> >
> > > Hello again!
> > >
> > > This part of the series describes how to reference *interpolated*
> strings
> > > inside Markdown documents.
> > > https://dave.autonoma.ca/blog/2019/07/06/typesetting-markdown-part-5/
> > >
> > > There's a section at the end about eliminating the table of contents
> > from a
> > > reusable document template. I would have preferred using setups, rather
> > > than redefining the \completecontent macro, but didn't see an obvious
> way
> > > to do so.
> >
> > Why not simply omit \compltecontent from the pandoc template?
> >
> >
> >
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190707/25ca6215/attachment-0001.html
> >
>
> --
>
> Message: 3
> Date: Sun, 7 Jul 2019 15:17:50 -0400 (EDT)
> From: Aditya Mahajan 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context]  Typesetting Markdown – Part 5:
> Interpolation
> Message-ID: 
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
>
> On Sun, 7 Jul 2019, Thangalin wrote:
>
> > Thank you Aditya.
> >
> > The main.tex file is meant to be reusable for different document styles.
> By
> > removing \completecontent altogether from the main template, it would
> > preclude a different document from reusing the main.tex template with a
> > table of contents. I'd like the template to be "reusable"; making
> > modifications to "main.tex" --- or creating a copy --- would subvert that
> > goal.
>
> Pandoc allows that. For example, see line 140 of the default context
> template:
>
> https://github.com/jgm/pandoc-templates/blob/master/default.context
>
> I don't remember the exact command line parameters for pandoc that set
> the toc flag to true.
>
> An equivalent method will be to control this using a ConTeXt mode.
> 

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
___


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

2019-06-25 Thread Andres Conrado
Tank you very much Pablo. I'll try that. They are proper latex fonts, tho,
so I'm no sure that will do. I also have a background i humanities and book
design, but I'm now making math books, go figure. It's very interesting
from a typographic point of view.

Now I'm more interested in seeing what happens with the last code I sent
here, in another message... "Strange behavior in somewhat complex layout"
Maybe nobody noticed it. I hope I can figure that out.
___
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
___


Re: [NTG-context] ntg-context Digest, Vol 180, Issue 23

2019-06-23 Thread Andres Conrado
Thanks, Pablo. I am assuming I need to have Utopia installed in my usual
font folder. I tried with Erewhon (I have otf files for that) and it works.
Thank you.

In a related note, is there any reasonable way to use the latex math font *Math
Times Pro 2* (https://www.pctex.com/mtpro2.html)? I know a latex user who
bought that font and I wonder if I can convince him to get on the ConTeXt
boat.

Andrés Conrado Montoya
http://chiquitico.org


El dom., 23 jun. 2019 a las 5: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. Re: is it useful to use the option "--fonts=all" when running
>   first-setup-sh? (Pablo Rodriguez)
>2. Re: crosswords puzzles (Wolfgang Schuster)
>3. mkii to mkiv - section numbering with minimal example
>   (Duncan Hothersall)
>4. Re: mkii to mkiv - section numbering with minimal example
>   (Hans Hagen)
>
>
> --
>
> Message: 1
> Date: Sat, 22 Jun 2019 12:03:38 +0200
> From: Pablo Rodriguez 
> To: ntg-context@ntg.nl
> Subject: Re: [NTG-context] is it useful to use the option
> "--fonts=all" when running first-setup-sh?
> Message-ID: <9a3757f9-04d5-ae8b-655f-160c9bc91...@gmx.es>
> Content-Type: text/plain; charset=utf-8
>
> On 6/20/19 10:39 PM, Andres Conrado Montoya wrote:
> > 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?
>
> Hi Andrés,
>
> this sample works fine with both MkIV and LMTX (no --fonts=all required):
>
> \definefontfamily[mainface][rm][Utopia]
> \setupbodyfont[mainface]
> \starttext
> \input zapf
> \stoptext
>
> Just in case it helps,
>
> Pablo
> --
> http://www.ousia.tk
>
>
> --
>
> Message: 2
> Date: Sat, 22 Jun 2019 12:05:13 +0200
> From: Wolfgang Schuster 
> To: mailing list for ConTeXt users , DesdeChaves
> 
> Subject: Re: [NTG-context] crosswords puzzles
> Message-ID: 
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> DesdeChaves schrieb am 22.06.2019 um 11:42:
> > Dear sirs,
> >
> > Is there a way to make crosswords  or word puzzles in context?
> > In my hippocampus I have a vague idea that this has already been
> > tried, but I can't find this code anymore.
> AFAIK there are only packages for LaTeX to create crossword but you can
> use natural or extreme tables to create them. For the input Lua can be a
> better choice because you can put your words (or numbers) in a Lua table
> and use a loop to create a table for TeX.
>
> Wolfgang
>
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20190622/ff819017/attachment-0001.html
> >
>
> --
>
> Message: 3
> Date: Sun, 23 Jun 2019 09:26:04 +0100
> From: Duncan Hothersall 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] mkii to mkiv - section numbering with minimal
> example
> Message-ID:
>  t...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Further to my previous query about updating from mkii to mkiv, I have
> solved some of the issues by trial and error but am beginning to identify
> the ones I can't resolve. My first minimal example is below.
>
> I want the sections and subsections not to prefix the part and chapter
> numbering, giving me this output:
>
> Part 1
> Chapter 1.1
> Section 1
> Subsection 1.1
>
> The line that used to achieve this result was
>
> \setupsection[section-3][previousnumber=no]
>
> and there was also
>
> \setuphead[section][partnumber=no,chapternum

[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] \start pagefigure not working as expected

2017-05-25 Thread Andres Conrado
 I think you need to use \insertpages instead. Check this out:
http://wiki.contextgarden.net/Command/insertpages

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] bug with en and em dashes

2017-05-12 Thread Andres Conrado
I confirm the issue in NOT present in my machine (Arch Linux x64). I can
see the dashes as they are supposed to be.

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] Using MTPro2 math Fonts with ConTeXt

2017-03-28 Thread Andres Conrado
Thanks Aditya. I will try to work with this and see where it leads me. Will
report with results as soon as I can.

2017-03-28 3:10 GMT-05:00 :

> You are trying to follow the installation process of opentype/ttf fonts.
> MTPro2 is a type1 font and to use them with luatex, you need to create a
> virtual opentype font. See $TEMXF/tex/context/fonts/mkiv/mdpus-math.lfg
> file for an example.
>



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] 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] startstop, narrower and switchtobodyfont gives strange interlinespace

2017-03-22 Thread Andres Conrado
This works for me, is probably not what you want, but at leat it's
consistent (it uses the interline of the main text).

\definestartstop[passus][
before={\startnarrower},
after={\stopnarrower},
style={\tfxx},
]

\starttext

\subject{It looks OK here:}
\input knuth

\startnarrower
\tfxx \input knuth
\stopnarrower

\subject{It does also here:}

\input knuth

\startpassus
\input knuth
\stoppassus


\stoptext


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] bug in nothyphenated?

2015-09-23 Thread Andres Conrado
2015-09-23 5:00 GMT-05:00 :

> \ConTeXt


This maybe is not very important to you, but, as a designer, I see \ConTeXt
as a logotype, so, it's not supposed to be hyphenated.

Andrés Conrado Montoya
El Andi
andresconr...@gmail.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.

Por favor, evite enviarme documentos adjuntos en formato Word o PowerPoint.
Lea http://www.gnu.org/philosophy/no-word-attachments.es.html

"Naturalmente, la gente normal no desea la guerra, pero al final son los
líderes de una nación quienes determinan su política, y resulta muy
sencillo doblegar a la gente, sea una democracia, una dictadura fascista,
un parlamento o una dictadura comunista. Con voz o sin voz, la gente
siempre podrá entregarse a la voluntad de sus líderes. Es fácil. Lo único
que hay que hacer es decirles que están siendo atacados, y denunciar a los
pacifistas por su falta de patriotismo y exponer el país al peligro.
Funciona igual en todos los países."
---Hermann Goering, en los juicios de Nuremberg.
___
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] Newbie needs help getting started

2015-05-05 Thread Andres Conrado
If you use other TeX distribution (TeXlive, MikTeX), you will have
conflicts because your system doesn't know how to differentiate between
your current TeX distro binaries, and Context's binaries, so, the system
will use different (non-compatible) versions of a lot of things, and will
use the first executables found in the PATH. I have both texlive and
context, but configuring them to work well together, took me a while. I use
a couple of custom .bat files to invoke context's path ONLY when I compile
Context files, but use the defaults for textworks when I complile LaTeX
files.

What I did was:
1. Your same steps 1-3.
2. Created a folder called C:/context/pragmatex/
3. Inside that folder I placed two files: PRAGMATEX.BAT and SETPATH.BAT
(contents below)
4. Add C:\context\pragmatex\ to the PATH variable (so the two mentioned
files can be found by the system)
5. Configure TeXworks:
  5.1. Open TW and go to Edit  Preferences
  5.2  Select Compilation tab
  5.3  In that Window, in the field Location of TeX and related programs
(or something like that, the name can be slightly different. I use the
Spanish version), add (using the button marked +) the folder
C:\context\pragmatex\
  5.4  In the same window, below, select ConTeXt (LuaTeX), and click edit.
  5.5  In Program add C:/context/pragmatex/pragmatex.bat (without
quotes).
  5.6  In Parameters just add $fullname (without quotes) if it's not
already there.

The contents of the two mentioned files (just plain old .bat files, can be
created on notepad):

**
pragmatex.bat
**
@echo off
call C:\context\pragmatex\setpath.bat
context --synctex=zipped --autogenerate %1 --purgeall
**

**
setpath.bat
**
@echo off
C:\context\tex\setuptex.bat C:\context\tex
**

Hope this helps. Is a very crappy setup, but it works for me. You can adapt
it however you like.
___
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] context works, contextjit fails with Junicode

2014-07-02 Thread Andres Conrado
Junicode is a font for medievalists, handles a lot things needed for
analizing old texts. It can handle greek, gothic script, runes, a lot of
marks... Is a very nice font for scholars.
___
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] ConTeXt epub workflow

2014-07-02 Thread Andres Conrado
I've been using a workflow to generate epub + PDF for several books so far,
and in my experience, using Markdown base files is very good: you can
include images, links, etc., and then you can use pandoc (
http://johnmacfarlane.net/pandoc/) to generate both epub and context
source, also you can customize the templates used by pandoc to generate the
context source; that way you can handle the pdf layout; however, you must
remember that epub can't handle mathml; you must include equations as
images, if you have them, and you won't have any real presentational
features: epub is as simple as it can be. Like HTML in the early 90s. But
this way works for me.

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] Force two figures to appear on the same page

2014-04-30 Thread Andres Conrado
Maybe combinations is what you are looking for? It works very well for me.
http://wiki.contextgarden.net/Command/startcombination

Andres
___
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] Force two figures to appear on the same page

2014-04-30 Thread Andres Conrado
I forgot to include a MWE:

%%

\starttext

\setupexternalfigures[location={local, default}]

\startcombination[1*3]

{\externalfigure[cow][height=1cm]} {d}

{\externalfigure[cow][height=1cm]} {e}

{\externalfigure[cow][height=1cm]} {f}

\stopcombination

\stoptext

%


Andres
___
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
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] A very simple macro that does not work...

2013-07-17 Thread Andres Conrado
Hello, list. Also posted this to:
http://tex.stackexchange.com/questions/124494/simple-macro-does-not-work-with-context-why

ConTeXt version: 2013.06.10 22:51

MWE:

%%%
\define[1]\anios{{\tfx \inmagin{#1}}}

\starttext
{\tfx \inmargin{2008-2012}}This is what has been done so far in
this years. % this works...
\anios{2008-2012}This is what has been done so far in this years.
% this doesn't work...
\stoptext


Error message:system   tex  error on line 5 in file
[...]/MWE.tex: Undefined control sequence ...

Any ideas? Maybe is something stupid, but it doesn't work. I have
other `\define` commands in the same file and they work very well.
___
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 last question... please forget it...

2013-07-17 Thread Andres Conrado
I'm so ashamed. I found the typo thanks to marco in tex.sx
Thanks.

Andrés
___
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] PDF-Toc text is wrong for new \start? commands

2013-07-16 Thread Andres Conrado
Have you tried formatting it this way:

\startsection
[title={my fancy section}]

bla
\stopsection

Breaking before closing or after opening the square braces has always
given trouble to me.

Andrés Conrado Montoya
El Andi
andresconr...@gmail.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.

Por favor, evite enviarme documentos adjuntos en formato Word o PowerPoint.
Lea http://www.gnu.org/philosophy/no-word-attachments.es.html

Naturalmente, la gente normal no desea la guerra, pero al final son
los líderes de una nación quienes determinan su política, y resulta
muy sencillo doblegar a la gente, sea una democracia, una dictadura
fascista, un parlamento o una dictadura comunista. Con voz o sin voz,
la gente siempre podrá entregarse a la voluntad de sus líderes. Es
fácil. Lo único que hay que hacer es decirles que están siendo
atacados, y denunciar a los pacifistas por su falta de patriotismo y
exponer el país al peligro. Funciona igual en todos los países.
---Hermann Goering, en los juicios de Nuremberg.


2013/7/16  ntg-context-requ...@ntg.nl:
 Send ntg-context mailing list submissions to
 ntg-context@ntg.nl

 To subscribe or unsubscribe via the World Wide Web, visit
 http://www.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. Some questions about the letter module (Michael Ash)
2. counter in linenote disables hyphenation in body text
   (Pablo Rodr?guez)
3. Re: Table cell spanning multiple columns in tabulate
   (Sietse Brouwer)
4. PDF-Toc text is wrong for new \start? commands (Steffen Kram)
5. Re: PDF-Toc text is wrong for new \start? commands (Steffen Kram)


 --

 Message: 1
 Date: Mon, 15 Jul 2013 12:34:36 -0400
 From: Michael Ash m...@econs.umass.edu
 To: ntg-context@ntg.nl
 Subject: [NTG-context] Some questions about the letter module
 Message-ID:
 caktwfunnw35z4uqnmrwwv-yjuavo7vxeuta2qthzvk4phgi...@mail.gmail.com
 Content-Type: text/plain; charset=iso-8859-1

 Dear all,

 (This is a repeat post. I apologize if that's rude, but I would appreciate
 some assistance with the letter module or a pointer to documentation.
 Thanks.)


 I am using the letter module that came with context.   A sample of a basic
 letter is below; I have put in dummy for the logo and the signature, but
 these are working fine when I include the files.

 I have several questions:

1. to center the footer.
2. to lower the  footer (closer to the bottom of the page)
3. to delete the word Date above the date.
4. to put the date *above *the recipient address (and how in general do
I adjust the vertical space here).
5. to left-justify the date.
6. to control the foldmarks (for US-letter-size paper, omit, etc.)

 I have consulted http://wiki.contextgarden.net/Letter but there are many
 things I don't understand.   What is the meaning  of alternative=example;
 what is the option preset=  in \setuplayer[foot] ?

 Also is there a better way to manage color?  I \definecolor, \startcolor,
 \stopcolor, but maybe there is a better way to indicate that certain
 sections of the letter should be in a color.  Thanks.

 Thank you very much for your guidance.

 Yours,
 Michael








 \usemodule[letter]
 \setuppapersize[letter][letter]
 \definecolor[maroon][h=990033]

 \setuplanguage [en] [date={dd, month, year}]

 \setupletteroptions
 [language=english,
 bodyfont={rm,12pt},
 ]

 % Define logo for the first page
 \defineletterelement[layer][head][example]%
 {\framed[background=logohead,height=25mm,frame=off,align=left]%
 {\externalfigure[dummy]}}

 % We put our logo in the head
 \setupletterlayer[head]
 [alternative=example,
 x=9mm,
 y=10mm
 ]

 \defineletterelement[layer][foot][example]%
 {\startcolor[maroon] \ss  \tfx The University of
 Massachusetts is an Affirmative Action/Equal Opportunity Institution.
 \stopcolor}
\setupletterlayer[foot][
  align=centerbottom,
  alternative=example]

 \setupletter[
 name={Michael Ash},
 dept={Department of Economics},
 building={Thompson Hall},
 street={200 Hicks Way},
 city={Amherst, MA 01003-9277},
 phone={+1-413-545-2590},
 fax={+1-413-545-2921},
 email={m...@econs.umass.edu}
 ]

\defineletterelement[layer][location][example]%
{\setuptabulate[bodyfont=normal]
  \startcolor[maroon]

[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-25 Thread Andres Conrado
Thank you so much Hans, for your answer. I understand how difficult it
is. The goodie file works very well, and I'm perfectly happy with
that. :) Thank you again.

Andrés Conrado Montoya
El Andi
andresconr...@gmail.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.

Por favor, evite enviarme documentos adjuntos en formato Word o PowerPoint.
Lea http://www.gnu.org/philosophy/no-word-attachments.es.html

Naturalmente, la gente normal no desea la guerra, pero al final son
los líderes de una nación quienes determinan su política, y resulta
muy sencillo doblegar a la gente, sea una democracia, una dictadura
fascista, un parlamento o una dictadura comunista. Con voz o sin voz,
la gente siempre podrá entregarse a la voluntad de sus líderes. Es
fácil. Lo único que hay que hacer es decirles que están siendo
atacados, y denunciar a los pacifistas por su falta de patriotismo y
exponer el país al peligro. Funciona igual en todos los países.
---Hermann Goering, en los juicios de Nuremberg.
___
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
___


Re: [NTG-context] ConTeXt to Plaintext

2012-12-02 Thread Andres Conrado
You can use Pandoc (http://johnmacfarlane.net/pandoc/) to convert from
context to multiple output formats, including txt, html, markdown...
even office!
Hope this helps.

Andrés Conrado Montoya
El Andi
andresconr...@gmail.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.

Por favor, evite enviarme documentos adjuntos en formato Word o PowerPoint.
Lea http://www.gnu.org/philosophy/no-word-attachments.es.html

Naturalmente, la gente normal no desea la guerra, pero al final son
los líderes de una nación quienes determinan su política, y resulta
muy sencillo doblegar a la gente, sea una democracia, una dictadura
fascista, un parlamento o una dictadura comunista. Con voz o sin voz,
la gente siempre podrá entregarse a la voluntad de sus líderes. Es
fácil. Lo único que hay que hacer es decirles que están siendo
atacados, y denunciar a los pacifistas por su falta de patriotismo y
exponer el país al peligro. Funciona igual en todos los países.
---Hermann Goering, en los juicios de Nuremberg.


2012/12/2  ntg-context-requ...@ntg.nl:
 ConTeXt to Plaintext
___
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] A problem with autopunctuation

2012-11-03 Thread Andres Conrado
In dont't really know why you think it should render differently.
Everything TeX is supposed to ignore white spaces in math, AFAIK.
If you want a space in math, you need to force it, like this:

\setupmathematics[autopunctuation=yes]

\starttext

$(2,\ 5)$ versus $(2,\ 5)$

\stoptext

Best,

Andrés Conrado Montoya
El Andi
andresconr...@gmail.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.

Por favor, evite enviarme documentos adjuntos en formato Word o PowerPoint.
Lea http://www.gnu.org/philosophy/no-word-attachments.es.html

Naturalmente, la gente normal no desea la guerra, pero al final son los
líderes de una nación quienes determinan su política, y resulta muy
sencillo doblegar a la gente, sea una democracia, una dictadura fascista,
un parlamento o una dictadura comunista. Con voz o sin voz, la gente
siempre podrá entregarse a la voluntad de sus líderes. Es fácil. Lo único
que hay que hacer es decirles que están siendo atacados, y denunciar a los
pacifistas por su falta de patriotismo y exponer el país al peligro.
Funciona igual en todos los países.
---Hermann Goering, en los juicios de Nuremberg.


2012/11/3 ntg-context-requ...@ntg.nl

 Send ntg-context mailing list submissions to
 ntg-context@ntg.nl

 To subscribe or unsubscribe via the World Wide Web, visit
 http://www.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. Re: RFC: path relative to current file. (Andre Caldas)
2. A problem with autopunctuation (Marcin Borkowski)
3. Re: Weird print(\n...) error (Peter M?nster)
4. Re: RFC: path relative to current file. (Sietse Brouwer)


 --

 Message: 1
 Date: Fri, 2 Nov 2012 22:35:29 -0200
 From: Andre Caldas andre.em.cal...@gmail.com
 To: Hans Hagen pra...@wxs.nl
 Cc: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] RFC: path relative to current file.
 Message-ID:
 CADVh14X0wb-2f7uRzb8Jo5jDE9n3ha0iyTLYBPB=vRf=
 dwn...@mail.gmail.com
 Content-Type: text/plain; charset=UTF-8

 Hello!

  It would be REALLY NICE if the functionality of pathrelativetome was
  provided by ConTeXt.
 
  in file-job.lua add around the function 'process':
 
  local function toppath()
  [...]
 
  \component toppath:/subpath/somefile.tex

 Works like a charm, Hans! Sorry I took so long to test...
 I copied file-job.lua from the GIT repository, and changed my tex
 files to use toppath:/path/to/file.

 For example:

 https://bitbucket.org/andrecaldas/math-video-classes/src/b743f22e4f567662ac55c1ac7dc1b6d13362e11d/src/products/assorted.tex?at=default

 Really nice! Thanks!! :-)


 Cheers,
 Andr? Caldas.


 --

 Message: 2
 Date: Sat, 3 Nov 2012 01:45:45 +0100
 From: Marcin Borkowski mb...@wmi.amu.edu.pl
 To: ConTeXt mailing list ntg-context@ntg.nl
 Subject: [NTG-context] A problem with autopunctuation
 Message-ID: 20121103014545.02b8dd5f@aga-netbook
 Content-Type: text/plain; charset=US-ASCII

 If I get it correctly, the following two formulae should render
 differently - and they don't.  What is going on?

 \setupmathematics[autopunctuation=yes]

 \starttext

 $(2,5)$ versus $(2, 5)$

 \stoptext

 Best,

 --
 Marcin Borkowski
 http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
 Adam Mickiewicz University


 --

 Message: 3
 Date: Sat, 03 Nov 2012 08:47:33 +0100
 From: Peter M?nster pmli...@free.fr
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Subject: Re: [NTG-context] Weird print(\n...) error
 Message-ID: 877gq33z6y@micropit.couberia.selfip.net
 Content-Type: text/plain; charset=utf-8

 On Fri, Nov 02 2012, Proch?zka Luk?? wrote:

  print(\nT)

   print(\n .. T)


  Any explanation?

 \nT is an unknown command.

 --
Peter


 --

 Message: 4
 Date: Sat, 3 Nov 2012 11:13:35 +0100
 From: Sietse Brouwer sbbrou...@gmail.com
 To: mailing list for ConTeXt users ntg-context@ntg.nl
 Cc: Hans Hagen pra...@wxs.nl
 Subject: Re: [NTG-context] RFC: path relative to current file.
 Message-ID:
 CAF=
 dkzy9s5uuxfqv5quq1pybtcgglam9rwk-rtd3iaxekp6...@mail.gmail.com
 Content-Type: text/plain; charset=UTF-8

 Andreas wrote:
  It would be REALLY NICE if the functionality of pathrelativetome was
  provided by ConTeXt.

 Hans wrote:
  in file-job.lua add around the function 'process':
 
  local function toppath()
  [...]
 
  

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