[NTG-context] Becoming a TeX/ConTeXt poweruser

2016-10-16 Thread Jamie Macbeth
Hello,

I was fed up with LaTeX, and became a newbie user of ConTeXt, and I think it's 
great and I really agree with the philosophy.

However, I also have to agree with some of what has been said about the lack of 
good documentation for those learning ConTeXt.  I've built a couple of simple 
documents using ConTeXt, but I'm having trouble customizing to get some 
functionality that I used to get from LaTeX packages, and to customize things 
to fix issues that I had with LaTeX.  I typeset technical papers and books with 
complex diagrams (e.g. xypic), charts and tables, tables embedded in tables, 
images inside tables, among other things.  I'm hoping to become a poweruser of 
TeX through ConTeXt and LuaTeX.

>From what I've read on this list so far, knowledgeable members of the 
>community say that the key functionality to ConTeXt is in the "core".  I would 
>like to become a power user of TeX/LuaTex/ConTeXt by learning ConTeXt from the 
>ground up and understanding the core at the source code level.  I think this 
>will make me skilled at rolling my own styles and fixing issues on my own as I 
>encounter them.

I'm an experienced software engineer with some knowledge of TeX (on the level 
of Knuth's "The TeXbook") and I'm happy to learn Lua.  I want to actually read 
and understand the mkiv core source code and, just to start, understand how 
simple directives (for example \startitemize ... \stopitemize), are compiled 
from end to end and where their macro source code comes from (In this example I 
think it's in tex/texmf-context/tex/context/base/mkiv/typo-itm.mkiv but I'm not 
positive).

I know that \startitemize ...\stopitemize is very customizable, but I would 
like to learn ConTeXt by learning how I could, for example, build the itemize 
environment myself from scratch.  Can someone give me pointers on the best 
place to start?  Then I can learn the code on my own (and not be a pest on this 
list :) ).

___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \definebodyfont not working for \typesetbuffer

2016-10-16 Thread Pablo Rodriguez
On 10/16/2016 08:16 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 16. Oktober 2016 um 20:07
>> [...]
>> Neither does it work now.
> 
> Use \definebodyfontenvironment[17pt].

Many thanks for your fast reply, Wolfgang.

It works as expected.


Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] mathsf / mathversions in context

2016-10-16 Thread Wolfgang Schuster

Csikos Bela 
14. Oktober 2016 um 16:56
Wolfgang Schuster írta:


I would like to set up Tex Gyre Adventor sans serif
font as my math font (even if it doesn't havemath symbols). I have
two questions related to this problem.

1. In latex I can specify
math font versions, define a specific font as math serif / normal,
another as mathsans serif etc.
(http://milde.users.sourceforge.net/LUCR/Math/math-font-selection.xhtml).
Is this possiblein context, and if yes, how?

ConTeXt doesn’t use the same style switches as LaTeX.


Thanks. Is there a way to change font family locally in math mode?
For example how can I use serif if sans serif is the default math font?
It depends what you want to achieve, for string you can use \text{...} 
which uses the text font.

3. You can use the font fallback mechanism to replace certain character
in the math font with characters from a text font.

\definefontfamily [mathfont] [rm] [Tex Gyre Bonum]
\definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor]
[preset=math:lowercaseitalic]
\definefallbackfamily [mathfont] [mm] [Tex Gyre Adventor]
[tf=style:italic,range=0x068,offset=0x0210E]% Planck constant
\definefontfamily [mathfont] [mm] [Tex Gyre Pagella Math]

\setupbodyfont[mathfont,10pt]



I played a lot with these setups and have questions.
I use this font setting:

\definefontfamily [docuf] [rm] [TeX Gyre Bonum]
\definefontfamily [docuf] [ss] [TeX Gyre Adventor]
\definefontfamily [docuf] [tt] [Latin Modern Mono] [features=none]

\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:uppercasenormal]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:uppercasebold]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:uppercaseitalic]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:uppercasebolditalic]%,scale=.6]

\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:lowercasenormal]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:lowercasebold]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:lowercaseitalic]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:lowercasebolditalic]%,scale=.6]

\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:digitsnormal]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:digitsbold]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:digitsitalic]%,scale=.6]
\definefallbackfamily [docuf] [mm] [Tex Gyre Adventor] 
[preset=math:digitsbolditalic]%,scale=.6]

\definefontfamily [docuf] [mm] [TeX Gyre Pagella Math]

\setupbodyfont[docuf,24pt]

1. If I want to use a scale factor is it possible the give the scale factor by 
using
the preset a,b,c,d,x,xx values? Or I must specify the scale factors as numbers?

Only numbers are possible.

2. Scaling occurs compared to which font in the definition list?

3. I found that if I write \definefontfamily [docuf] [mm] [TeX Gyre Pagella 
Math]
before \definefallbackfamily lines, the latter have no effect. Is this normal?
Shouldn't the order of definition lines be indifferent?
The fallbackfamily settings are applied to a typeface and the 
\definefontfamily commands creates
the typeface, without \definefontfamily the fallbacks are never used 
because there is no font which

can use the settings.

4. If I write a paragraph with different font size, how can I scale the 
embedded math
too automatically? For example if I write

\placefigure[here]{Figure title}{\ss\tfxx
A B C D \math{E~F~G~}}

A B C D is typeset with small fonts but E F G not; it will be huge compared to
A B C D. I can't manually scale the math part because it is inserted here
by chemfig module and I can't redefine how it typesets fonts.
The x and xx perform not the same scaling as a, b etc. but you can 
define your

own sizes which behave the same way as a etc.

\definefontsize[m]
\definefontsize[n]

\definebodyfontenvironment[default][m=0.8,n=0.9]

\starttext

{\tfm This paragraph contains text and $math$.}

{\tfn This paragraph contains text and $math$.}

This paragraph contains text and $math$.

{\tfa This paragraph contains text and $math$.}

{\tfb This paragraph contains text and $math$.}

\stoptext

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

Re: [NTG-context] \definebodyfont not working for \typesetbuffer

2016-10-16 Thread Wolfgang Schuster

Pablo Rodriguez 
16. Oktober 2016 um 20:07

Wolfgang,

I did it before sending the message and it didn’t work.

\startbuffer[buffer:inside]
\definebodyfont[17pt]
\definefontfamily[mainface][rm][TeX Gyre Pagella]
\setupbodyfont[mainface, 17pt]
\starttext
\input zapf
\stoptext
\stopbuffer
\starttext
\typesetbuffer[buffer:inside]
\stoptext

Neither does it work now.

Use \definebodyfontenvironment[17pt].

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

Re: [NTG-context] \definebodyfont not working for \typesetbuffer

2016-10-16 Thread Pablo Rodriguez
On 10/16/2016 07:59 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 16. Oktober 2016 um 19:56
>> [...]
>> As suggested by Wolfgang, \definebodyfont should work. It worked then
>> (https://mailman.ntg.nl/pipermail/ntg-context/2016/085260.html), but it
>> doesn’t work with latest beta from 2016.10.14 17:19.
>>
>> Could you confirm whether it is a bug or I am missing something?
> 
> You have to put the command in the buffer because \typesetbuffer saves
> the content in a external file and which is then processed as separate
> document which doesn’t use settings from the main document.

Wolfgang,

I did it before sending the message and it didn’t work.

\startbuffer[buffer:inside]
\definebodyfont[17pt]
\definefontfamily[mainface][rm][TeX Gyre Pagella]
\setupbodyfont[mainface, 17pt]
\starttext
\input zapf
\stoptext
\stopbuffer
\starttext
\typesetbuffer[buffer:inside]
\stoptext

Neither does it work now.

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-16 Thread Saša Janiška
Russell Urquhart  writes:

> but why couldn't you do:
>
> AsciiDoc => DocBook => Pandoc => reveal.js

Because, as I’m told, only {txt,md} => reveal.js routes are currently
supported in Pandoc.

> It worked for me, here was my source:

That worked, is a bit twisted in comparison with the wiki example:

This\footnote(Or that\footnote{Or possibly even the other.}, if you
prefer.} is a sentence with a footnote.

which does not.


Sincerely,
Gour

-- 
The senses, the mind and the intelligence are the sitting places
of this lust. Through them lust covers the real knowledge of the
living entity and bewilders him.

___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \definebodyfont not working for \typesetbuffer

2016-10-16 Thread Wolfgang Schuster

Pablo Rodriguez 
16. Oktober 2016 um 19:56
Dear list,

I have the following sample:

\definebodyfont[17pt]
\startbuffer[buffer:inside]
\definefontfamily[mainface][rm][TeX Gyre Pagella]
\setupbodyfont[mainface, 17pt]
\starttext
\input zapf
\stoptext
\stopbuffer
\starttext
\typesetbuffer[buffer:inside]
\stoptext

As suggested by Wolfgang, \definebodyfont should work. It worked then
(https://mailman.ntg.nl/pipermail/ntg-context/2016/085260.html), but it
doesn’t work with latest beta from 2016.10.14 17:19.

Could you confirm whether it is a bug or I am missing something?

You have to put the command in the buffer because \typesetbuffer saves
the content in a external file and which is then processed as separate
document which doesn’t use settings from the main document.

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

[NTG-context] \definebodyfont not working for \typesetbuffer

2016-10-16 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\definebodyfont[17pt]
\startbuffer[buffer:inside]
\definefontfamily[mainface][rm][TeX Gyre Pagella]
\setupbodyfont[mainface, 17pt]
\starttext
\input zapf
\stoptext
\stopbuffer
\starttext
\typesetbuffer[buffer:inside]
\stoptext

As suggested by Wolfgang, \definebodyfont should work. It worked then
(https://mailman.ntg.nl/pipermail/ntg-context/2016/085260.html), but it
doesn’t work with latest beta from 2016.10.14 17:19.

Could you confirm whether it is a bug or I am missing something?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Footnotes in footnotes

2016-10-16 Thread Saša Janiška
Otared Kavian  writes:

> Indeed the example you sent does not work as expected, but as far as I
> remember for nested footnotes one can use the following construction

It’s a bit convoluted, but, well…

Otoh, it’s interesting to note that in my static-site-generator which
uses Go’s Blackfriday markdown processor which does support some
extensions, one can use nested footnotes.


Sincerely,
Gour

-- 
A person is considered still further advanced when he regards honest
well-wishers, affectionate benefactors, the neutral, mediators, the envious,
friends and enemies, the pious and the sinners all with an equal mind.

___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-16 Thread Russell Urquhart
On Sun, Oct 16, 2016 at 05:29:10PM +0200, Saša Janiška wrote:
> Yeah, I kmow about using e.g. AsciiDoc(tor)’s docbook5 backend to export
> to DocBook which can be used as input format in Pandoc, but the problem
> is if I would liek to e.g. use Pandoc to create e.g. reveal.js
> presentation, then AsciiDoc input is of no help, since one can only do:
> 
> {txt,md} --> Pandoc --> reveal.js

but why couldn't you do:

AsciiDoc => DocBook => Pandoc => reveal.js

Albeit, an extra step?


> 
> > IMO, if you are debating on learning Context, i think that would be a
> > good use of your time.
> 
> I also believe the same, although, interestingly,
> footnotes-withing-footnote does not work with MkIV. :-)
> 

It worked for me, here was my source:

I've reached a stage in my life where, and perhaps its older age, but certain 
things mean more. As I said, the printed word, says so much. 
\footnote {As opposed to sad songs.
\note [footej]}
\footnotetext [footej] {Sorry Elton.\note [footdes]}
\footnotetext [footdes] {Elton John, and probably Bernie Taupin, are credited 
with the song, "Sad Songs Say So Much".\note [footdesmore]
 \footnotetext [footdesmore] {This song was also used as a commercial...  so 
much for artistic integrity. 

fwiw,



Russ
___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnotes in footnotes

2016-10-16 Thread Otared Kavian
Hi Jose Luis,

Indeed the example you sent does not work as expected, but as far as I remember 
for nested footnotes one can use the following construction (I found this 
exmaple in my archives…):

 begin nested-footnotes.tex
\starttext

This\footnote{Or that\note[footB], if you prefer.}%
\footnotetext[footB]{Or possibly even the other\note[footC].}%
\footnotetext[footC]{It could be something entirely different.}
is a sentence with nested footnotes.

\stoptext
 end nested-footnotes.tex

Best regards: OK

> On 31 Aug 2016, at 22:39, Jose Luis Arellano  wrote:
> 
> Dear list,
> I want to report a possible bug (I think), when one try to put a footnote 
> into another footnote, here is MWE (from wiki):
> 
> \starttext
> This\footnote{Or that\footnote{Or possibly even the other.}, if you prefer.} 
> is a sentence with a footnote.
> \stoptext
> 
> As you can see, the second footnote is not placed in the page.
> 
> Thanks.
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-16 Thread Saša Janiška
Hans Hagen  writes:

> (These projects need pdf and html, all kind of products from
> one source or collection of sources).

Forgot to ask, whether for those products that require pdf and html, do
you work with the tex (context) sources or xml?

If the answer is ’context’, I’d like to know more aobut since it would
make me safe that I can easily do ConTeXt --> HTML and then covnert via
pandoc to plethora of formats for different purposes?


Sincerely,
Gour

-- 
As the ignorant perform their duties with attachment to results,
the learned may similarly act, but without attachment, for the
sake of leading people on the right path.

___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-16 Thread Saša Janiška
Russell Urquhart  writes:

> While Pandoc does NOT input asciidoc, i use Asciidoc FX, as a
> previewer, and it also exports out to html, pdf, and i think you can
> get it to export to DocBook.

Yeah, I kmow about using e.g. AsciiDoc(tor)’s docbook5 backend to export
to DocBook which can be used as input format in Pandoc, but the problem
is if I would liek to e.g. use Pandoc to create e.g. reveal.js
presentation, then AsciiDoc input is of no help, since one can only do:

{txt,md} --> Pandoc --> reveal.js

> IMO, if you are debating on learning Context, i think that would be a
> good use of your time.

I also believe the same, although, interestingly,
footnotes-withing-footnote does not work with MkIV. :-)


Sincerely,
Gour

-- 
What is night for all beings is the time of awakening
for the self-controlled; and the time of awakening for
all beings is night for the introspective sage.

___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-16 Thread Russell Urquhart
On Sun, Oct 16, 2016 at 12:33:49PM +0200, Saša Janiška wrote:
> Russell Urquhart  writes:
> 
> I do not (atm) have need for complex tables. Moreover, I’ve learnt that
> atm. Asciidoc is not supported input format for creating presentations
> with Pandoc…

While Pandoc does NOT input asciidoc, i use Asciidoc FX, as a previewer, and it 
also exports out to html, pdf, and i think you can get it to export to DocBook.

With DocBook, or html, you could take those into Pandoc and out to whatever you 
want. Kind of an extra step. But as i use Asciidoc FX all the time anyway, not 
that big of an extra step.


> …which practically means that I can just use markdown for my ligth
> writing (web stuff, small online articles etc.) and use ConTeXt for
> everything else where quality is required.

Yes, or, as i said above, use Asciidoc and Asciidoc FX, and then convert that 
to html, and then take that to Pandoc.

> 
> Otoh, learning ConTeXt is going to be useful not only for presentations,
> but only for real book project which might arrive in the future…

IMO, if you are debating on learning Context, i think that would be a good use 
of your time. 

fyi,



Russ
___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Footnotes in footnotes

2016-10-16 Thread Saša Janiška
Jose Luis Arellano  writes:

> Dear list,
> I want to report a possible bug (I think), when one try to put a
> footnote into another footnote, here is MWE (from wiki):
>
> \starttext
> This\footnote{Or that\footnote{Or possibly even the other.}, if you
> prefer.} is a sentence with a footnote.
> \stoptext
>

While testing/evaluating different options/markups, the topic of using
“footnote within footnote” has appeared and I’ve tried to test it in the
ConTeXt, but, strangely-enoug, I can confirm that it does not work here
as reported by Jose.

Here is the console output:

$ context footnotetst.tex 

mtx-context | run 1: luatex 
--fmt="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en"
 --jobname="footnotetst" 
--lua="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=1 --c:fulljobname="./footnotetst.tex" 
--c:input="./footnotetst.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian) 
 system commands enabled.
open source > 1 > 1 > /usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv

ConTeXt  ver: 2016.05.17 19:20 MKIV current  fmt: 2016.5.28  int: 
english/english

system  > 'cont-new.mkiv' loaded
open source > 2 > 2 > /usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv
close source> 2 > 2 > /usr/share/texmf/tex/context/base/mkiv/cont-new.mkiv
system  > files > jobname 'footnotetst', input './footnotetst', result 
'footnotetst'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > 2 > 3 > /home/gour/prj/hugo/footnotetst.tex
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
structure   > sectioning > section @ level 3 : 0.0.1 -> Footnote test
backend > xmp > using file 
'/usr/share/texmf/tex/context/base/mkiv/lpdf-pdx.xml'
pages   > flushing realpage 1, userpage 1
close source> 2 > 3 > /home/gour/prj/hugo/footnotetst.tex
close source> 1 > 3 > /usr/share/texmf/tex/context/base/mkiv/cont-yes.mkiv

mkiv lua stats  > used config file: 
/usr/share/texmf/web2c/texmfcnf.lua;/usr/share/texlive/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: readable: 
'/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442' | 
readable+writable: 
'/home/gour/.texlive2016/texmf-var/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442'
mkiv lua stats  > resource resolver: loadtime 0.059 seconds, 0 scans with 
scantime 0.000 seconds, 0 shared scans, 12 found files, scanned paths: 
mkiv lua stats  > stored bytecode data: 387 modules (0.270 sec), 82 tables 
(0.009 sec), 469 chunks (0.279 sec)
mkiv lua stats  > traced context: maxstack: 1175, freed: 0, unreachable: 1175
mkiv lua stats  > cleaned up reserved nodes: 47 nodes, 9 lists of 444
mkiv lua stats  > node memory usage: 13 glue, 2 penalty, 41 attribute, 38 
glue_spec, 12 attribute_list, 2 temp
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances 
(re)created, 87 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 278 direct, 250 indirect, 528 total
mkiv lua stats  > randomizer: resumed with value 0.47685763401764
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > interactive elements: 0 references, 1 destinations
mkiv lua stats  > result saved in file: footnotetst.pdf, compresslevel 3, 
objectcompresslevel 3
mkiv lua stats  > loaded fonts: 5 files: latinmodern-math.otf, 
lmroman10-regular.otf, lmroman12-regular.otf, lmroman6-regular.otf, 
lmroman8-regular.otf
mkiv lua stats  > font engine: otf 3.020, afm 1.512, tfm 1.000, 11 instances, 4 
shared in backend, 0 common vectors, 4 common hashes, load time 0.239 seconds 
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: usr
mkiv lua stats  > luatex banner: this is luatex, version 0.95.0 (tex live 
2016/debian)
mkiv lua stats  > control sequences: 43857 of 65536 + 10
mkiv lua stats  > lua properties: engine: lua, used memory: 86 MB (ctx: 86 MB), 
hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.636 seconds, 1 processed pages, 1 shipped pages, 
1.572 pages/second

mtx-context | run 2: luatex 
--fmt="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en"
 --jobname="footnotetst" 
--lua="/var/lib/texmf/luatex-cache/context/b47c3d3cee7cb6c86268d0595268c442/formats/luatex/cont-en.lui"
 --no-parse-first-line --c:currentrun=2 --c:fulljobname="./footnotetst.tex" 
--c:input="./footnotetst.tex" --c:kindofrun=2 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version 0.95.0 (TeX Live 2016/Debian) 
 system commands enabled.
open source > 1 > 1 > /us

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-16 Thread Alan BRASLAU
On Sun, 16 Oct 2016 12:25:39 +0200
Saša Janiška  wrote:

> > then start making your own ... such styles are rather simple and not
> > much coding in the document source is needed .. just develop your
> > own look and feel after a while  
> 
> It’s clear you’re not into JS-powered hype for presentations. ;)

Pfluff (Tufte, 2004) is best left to PowerPointers.

Alan
___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-16 Thread Saša Janiška
Hans Hagen  writes:

> actually, some styles use layers and js to step through them .. very
> efficient and minimal javascript

But that’s more like helpers, right?

Still, wonder how portable is that in different PDF viewers?


Sincerely,
Gour

-- 
In this endeavor there is no loss or diminution,
and a little advancement on this path can protect
one from the most dangerous type of fear.

___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-16 Thread Hans Hagen

On 10/16/2016 12:25 PM, Saša Janiška wrote:

Hans Hagen  writes:


just look at the presentation styles in the distribuition. Many of
them you can just process to get an example


Will do.


then start making your own ... such styles are rather simple and not
much coding in the document source is needed .. just develop your own
look and feel after a while


It’s clear you’re not into JS-powered hype for presentations. ;)


actually, some styles use layers and js to step through them .. very 
efficient and minimal javascript


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

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-16 Thread Saša Janiška
Russell Urquhart  writes:

> I had first started looking at Markdown, but then came to Asciidoc,
> as, imo, Asciidoc is a superset of Markdown. In my previous job, and
> some in my current job, there is a need to have tables that have cells
> that go across multiple rows and/or columns. Asciidoc supports
> this. 

It seems that some thing are more clear now…

I do not (atm) have need for complex tables. Moreover, I’ve learnt that
atm. Asciidoc is not supported input format for creating presentations
with Pandoc…

> With that said, when i want or need to have a fine typeset type
> book/manual, something that might requrie extensive footnotes,
> indexes, specialized page layouts, auto cross references, etc. AND i
> could not get that from Asciidoc, then i would create my source in
> either Context, Docbook, or LaTex. (I haven't used LaTex very much
> myself, but i know people who swear by it.)

…which practically means that I can just use markdown for my ligth
writing (web stuff, small online articles etc.) and use ConTeXt for
everything else where quality is required.

Of course, there is also possibility to just use

markdown --> Pandoc --> reveal.js

which can look as low-hanging fruit, but, based on my observation,
everything around Javascript stuff is almost always hyped and
short-lived, iow. today reveal.js is “in”, but that can quickly change
tomorrow.

Otoh, learning ConTeXt is going to be useful not only for presentations,
but only for real book project which might arrive in the future…


Sincerely,
Gour

-- 
One who works in devotion, who is a pure soul, and who controls
his mind and senses is dear to everyone, and everyone is dear to
him. Though always working, such a man is never entangled.

___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Asciidoc --> ConTeXt for presentations

2016-10-16 Thread Saša Janiška
Hans Hagen  writes:

> just look at the presentation styles in the distribuition. Many of
> them you can just process to get an example

Will do.

> then start making your own ... such styles are rather simple and not
> much coding in the document source is needed .. just develop your own
> look and feel after a while

It’s clear you’re not into JS-powered hype for presentations. ;)


Sincerely,
Gour

-- 
Therefore, without being attached to the fruits of activities,
one should act as a matter of duty, for by working without
attachment one attains the Supreme.

___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Issue with \blank halfline and title heads

2016-10-16 Thread josephcanedo
Dear list,

I would like to have a chapter title consisting of 1 line, halfline spacing, 
another set of lines, and another halfline spacing (I use grid=both but same 
issue with grid=yes), but I fail to acheive this. I give a simple MWE that 
shows wanted effect (without heading) which works all fine, followed by sample 
chapter which shows that ‘E’ is above the grid base line (added \showgrid to 
make it visible). Do I need to put the title content in some box ?

Thanks a lot for any hint,
Best regards

Joseph

\showgrid\showstruts
\setuplayout[grid=both]

\definehead[Chapter][subsection]
\setuphead[Chapter][number=no, align=center, style=\tf, before={\blank[none]}, 
after={\blank[none]}, grid=both]

\starttext
\startalignment[center]
\strut E\blank[halfline]A\strut\blank[halfline]
\stopalignment

Paragraph text.

\blank[line]

\startChapter[title={\strut E\blank[halfline]A\strut\blank[halfline]}]

Paragraph text.

\stopChapter
\stoptext
___
If your question is of interest to others as well, please add an 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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___