Re: [NTG-context] Unable to resave float

2015-04-25 Thread Hans Hagen

On 4/24/2015 4:22 PM, Aditya Mahajan wrote:

I have a complex document, where I use

\startbackground

\startplacefigure[location={always,none}]
...
\stopplacefigure
...
\stopbackground

(This is for exam solutions and the background is supposed to be a frame
around the solution; the figure is a figure included in the solution).
Occasionally, some of the floats are not placed in the output. For example

$grep float filename.log

gives:

floatblocks  '1' placed
floatblocks  '2' placed
floatblocks  '3' placed
floatblocks  order disturbed
structurefloats  unable to resave float
floatblocks  '5' placed
floatblocks  '6' placed
floatblocks  order disturbed
structurefloats  unable to resave float
floatblocks  '8' placed

So, float 4 and 7 were not saved. It is bit tricky to create a minimal
example, but any idea how I can prevent this. I am using version 2015.04.03


hm, weird ... btw, you can have 'local' as keyword which will store them 
till you call them.



Thanks,
Aditya

___

If your question is of interest to others as well, please add an 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
___



--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] pausing compilation to show a message

2015-04-25 Thread Pablo Rodriguez
On 04/25/2015 08:32 PM, Hans Hagen wrote:
 On 4/24/2015 7:37 PM, Pablo Rodriguez wrote:
 [...]
 Is there a way that I can pause the compilation proccess to show the
 message and that compilation would continue by pressing any key?

 Many thanks for your help,
 
 \wait

Many thanks for your help, Hans.


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

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

Re: [NTG-context] pausing compilation to show a message

2015-04-25 Thread Hans Hagen

On 4/24/2015 9:10 PM, Pablo Rodriguez wrote:

Replying to my own message, I have the following sample:

 \starttext
 \message{Important Warning!!! }
 \message{Have you checked the input text? }
 \executesystemcommand{read -p ...}
 \input zapf
 \stoptext

I’m experiencing two issues with the code above:

How can I show the message only in the first run? Is there any
conditional based on the run number?

How can I insert a new line in \message?


a system mode: \doifmode{*first}{...}


Many thanks for your help,

Pablo


On 04/24/2015 07:37 PM, Pablo Rodriguez wrote:

Dear list,

I have this minimal sample:

\starttext
\writestatus{apples}{oranges}
\message{Have you checked this variable?}
\stoptext

Is there a way that I can pause the compilation proccess to show the
message and that compilation would continue by pressing any key?

Many thanks for your help,


Pablo







--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] pausing compilation to show a message

2015-04-25 Thread Pablo Rodriguez
On 04/25/2015 08:33 PM, Hans Hagen wrote:
 [...]
 How can I show the message only in the first run? Is there any
 conditional based on the run number?
 [...]
 
 a system mode: \doifmode{*first}{...}

Many thanks for your help again, Hans.


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

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

Re: [NTG-context] pausing compilation to show a message

2015-04-25 Thread Hans Hagen

On 4/24/2015 7:37 PM, Pablo Rodriguez wrote:

Dear list,

I have this minimal sample:

\starttext
\writestatus{apples}{oranges}
\message{Have you checked this variable?}
\stoptext

Is there a way that I can pause the compilation proccess to show the
message and that compilation would continue by pressing any key?

Many thanks for your help,


\wait

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Feature request for export: Interactive Notes

2015-04-25 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Pablo,

On Sat, 25 Apr 2015 13:19:47 -0600, Pablo Rodriguez oi...@gmx.es wrote:


 Hmm, what do you mean exactly?



If footnotes in ePub (or XHTML) have no links, how is the user supposed
to handle them?



I must be missing something, because I think footnotes are hardly
accesible in XHTML without links.


I think we're both saying the same thing in different ways: I'm calling it
a missing/needed feature (unless I'm missing something already there);
you're calling it a bug. Either way, it's something emphatically needed
for this workflow to be efficient.

Best wishes
Idris

PS. You can see the outcome of the workflow here:

http://www.walayah.org/blog/shaykh-aḥmad-ibn-zayniddin-al-aḥsaʾi-part-1-life-travels-character-and-charisma

If you examine the page source, you'll see an xhtml div container; that
comes from context. The footnote links I added manually.
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an 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] Feature request for export: Interactive Notes

2015-04-25 Thread Pablo Rodriguez
On 04/25/2015 02:19 PM, Idris Samawi Hamid ادريس سماوي حامد wrote:
 [...]
   Indeed, I plan to present the results of this experiment (porting an
   entire academic article to xhtml and WP) in a future article for one  
   of the TeX journals...

 I’m really interested in reading it. Also because I’m trying to use
 ConTeXt to generate high-quality PDF documents from XHTML files
 generated by pandoc ;-).
 
 Ah, I'll be interested in seeing that workflow as well ;-)

Hi Idris,

I’m working on an article on this topic. But without bibligraphies, I
have never used myself in ConTeXt or in pandoc :-(.

   Now we can of course already export xhtml footnotes from ConTeXt but  
   there will be no interactive links. In the current project, there are 77
   footnotes; I had to add the links manually to get the output to do  
   what we wanted.

 I’m afraid that missing links for footnotes is a bug,
 
 Hmm, what do you mean exactly?

If footnotes in ePub (or XHTML) have no links, how is the user supposed
to handle them?

I must be missing something, because I think footnotes are hardly
accesible in XHTML without links.

 This is why I said that it makes much more sense to export the footnotes  
 as endnotes. At the end of, e.g., a blog post you'll have a section for  
 footnotes/endnotes. In the context source I had to make a derivative  
 version and use something like
 
 \startsubsubject[title=Endnotes]
 \placefootnotes
 \stopsubsubject
 
 [Aside: I wonder if there is a way in ConTeXt to setup \placefootnotes  
 etc. in a mode so that it gets invoked only in the export. Will explore  
 this for the article.]

How about the system mode: \doifmode{*export}{\placefootnotes}?

I discovered this (http://wiki.contextgarden.net/Modes#System_modes)
after the reply from Hans to my own question.

Best,


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

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

Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas

2015-04-25 Thread Hans Hagen

On 4/24/2015 3:05 PM, Christian Prim wrote:

Hi Hans

I don't know if the latest beta already has the new code. But I can
confirm, that there is still a difference between tikz-colors and
context/metafun colors.

TikZ translates c=1,m=1 in (native) RGB, that is b=1, which is in some
way correct.
ConTeXt translates c=1,m=1 in something I couldn't really define
(perhaps sRGB or some other color profile) r=0.183... g=0.191...
b=0.574... or in Web-Hex: #2e3092

or back to cmyk: c=.68, m=.67,k=.43 (which is blue with some key-value
compared to TikZ with k=0)

So I think that TikZ and ConTeXt don't use the same color profile

Hope it could help somewhat to solve my problem.


your example works ok here (with the tikz def file i made last week)

i also made

\setupcolors[cmyk=no]
\setupcolors[rgb=no]
\setupcolors[cmyk=no,rgb=no]
\setupcolors[state=stop]

working (nothing needed in tikz as the code that interfaces to it does 
that) which will be in the next beta


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] widows and orphans in lines

2015-04-25 Thread Pablo Rodriguez
Hans,

I wonder whether this is the right time to implement widows and orphans
in lines.

Sample file:

\setuppapersize[A10]
\setuppagenumbering[location=]
\starttext
\startlines
a line
a line
a line
a line
a line
a line

a line

a line
a line
a line
\stoplines
\stoptext

I’m not in need of this, but I thought you may be interested in checking
this with the new luatex version.

Many thanks for your help,


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

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

Re: [NTG-context] Feature request for export: Interactive Notes

2015-04-25 Thread Idris Samawi Hamid ????? ????? ????

On Sat, 25 Apr 2015 13:19:47 -0600, Pablo Rodriguez oi...@gmx.es wrote:


[Aside: I wonder if there is a way in ConTeXt to setup \placefootnotes
etc. in a mode so that it gets invoked only in the export. Will explore
this for the article.]



How about the system mode: \doifmode{*export}{\placefootnotes}?



I discovered this (http://wiki.contextgarden.net/Modes#System_modes)
after the reply from Hans to my own question.


Ok, thanks Pablo; will explore this as well, especially after I start
writing the journal article.

Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an 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] Problem with margin figures and whitespace in text

2015-04-25 Thread Rik Kabel
I have two problems with figures placed into the left or right margin. 
When the figure is in a group, extra whitespace is inserted between the 
paragraphs that precede and follow the placefigure command. This happens 
for figures placed by startplacefigure/stopplacefigure and tradiitonal 
placefigure commands, and paragraphs placed by 
startparagraph/stopparagraph or marked by par or newlines.


When the figure is not in a group, whitespace called for by 
\setupwhitespace is lost, except when the paragraphs are marked by 
traditional means. That is, whitespace is lost when 
startparagraph/stopparagraph is used.


Interestingly, when that is changed to bpar/epar, the problem for 
ungrouped figures disappears, but as I understand it, bpar/epar is not a 
real substitute for startparagraph/stopparagraph.


There is probably a simple explanation, but it eludes me. I prefer to be 
able to use startparagraph/stopparagraph, and it is sometimes desirable 
to place a figure into a group in order to prevent unique settings from 
leaking out.


The following should demonstrate the problem. Turning on grid setting 
makes it worse. I get the same result with current betas and older versions.


   \useMPlibrary   [dum]
   %\showgrid
   \setuplayout[%grid=yes,
 backspace=151pt,leftmargin=117pt]
   \setupwhitespace[big]
   \define\Paragraph{\startparagraph\input khatt-en\stopparagraph}
   \starttext
   {
  \subject{Start/stop paragraphs and figures}
  \subsubject{Group, extra whitespace}
  \Paragraph
  \Paragraph
  \begingroup
\startplacefigure[location={leftmargin,none}]
  \externalfigure[A]
\stopplacefigure
  \endgroup
  \Paragraph
  \Paragraph
  \subsubject{No group, no whitespace}
  \Paragraph
  \Paragraph
  \startplacefigure[location={leftmargin,none}]
\externalfigure[A]
  \stopplacefigure
  \Paragraph
  \Paragraph
  \Paragraph
   }
  \page
   {
  \subject{Start/stop paragraphs, traditional figures}
  \subsubject{Group, extra whitespace}
  \Paragraph
  \Paragraph
  {\placefigure[leftmargin,none]{}{\externalfigure[A]}}
  \Paragraph
  \Paragraph
  \subsubject{No group, no whitespace}
  \Paragraph
  \Paragraph
  \placefigure[leftmargin,none]{}{\externalfigure[A]}
  \Paragraph
  \Paragraph
  \Paragraph
   }
  \page
   {
  \subject{Traditional paragraphs, start/stop figures}
  \subsubject{Group, extra whitespace}
  \input khatt-en\par
  \input khatt-en\par
  \begingroup% or \bgroup or {
\startplacefigure[location={leftmargin,none}]
  \externalfigure[A]
\stopplacefigure
  \endgroup% or \egroup or }
  \input khatt-en\par
  \input khatt-en\par
  \subsubject{Okay}
  \input khatt-en\par
  \input khatt-en\par
  \startplacefigure[location={leftmargin,none}]
\externalfigure[A]
  \stopplacefigure
  \input khatt-en\par
  \input khatt-en\par
  \input khatt-en\par
   }
  \page
   {
  \subject{Traditional paragraphs, traditional figures}
  \subsubject{Group, extra whitespace}
  \input khatt-en\par
  \input khatt-en\par
  {\placefigure[leftmargin,none]{}{\externalfigure[A]}}
  \input khatt-en\par
  \input khatt-en\par
  \subsubject{Okay}
  \input khatt-en\par
  \input khatt-en\par
  \placefigure[leftmargin,none]{}{\externalfigure[A]}
  \input khatt-en\par
  \input khatt-en\par
  \input khatt-en\par
   }
   \stoptext

--
Rik
___
If your question is of interest to others as well, please add an 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] simple signature boxes

2015-04-25 Thread henman

Thank you for ferreting that out for me.  Your correction is what I needed.
Much obliged.

Henman

On 2015年04月24日 22:40, Thomas A. Schmitz wrote:

On 04/25/2015 07:34 AM, henman wrote:


I now I could use a table to do this but I should also be able to do
this with \framed and \startcombination[ cos * rows ]]


But no matter what order I give to [ n x c ] the result is always a
vertical split and not a horizontal one.
You have to add an empty pair of braces after each part of your 
combination:


\starttext

{ \switchtobodyfont[8pt]
\startcombination[2*1]
   { 
\framed[frame=off,topframe=on,leftframe=on,rulethickness=2pt,width=6cm,

  align={flushleft}]
  { \fillinrules[n=1]{\bf Buyer's Signature: }}  } {}

   { 
\framed[frame=off,topframe=on,leftframe=on,rulethickness=2pt,width=6cm,

  align={flushleft}]
  {  \fillinrules[n=1]{\bf Seller's Signature: } } } {}
\stopcombination
}

\stoptext

That's an easy one to miss...

Thomas
___ 

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

Re: [NTG-context] Feature request for export: Interactive Notes

2015-04-25 Thread Pablo Rodriguez
On 04/25/2015 02:36 AM, Idris Samawi Hamid ادريس   سماوي حامد wrote:
 Dear gang,
 
   I've spent a considerable amount of time over the past month trying to
   master the art of xhtml output. We are close to being able to use ConTeXt
   as a replacement for markdown in, e.g., WordPress.

Hi Idris,

Markdown or pandoc? Markdown is the markup format, pandoc is the tool.

Replacing pandoc with ConTeXt to generate XHTML or ePub files has a
downside.

As far as I know, ConTeXt is much slower for this task. With a sample
from pandoc (http://pandoc.org/epub.html#a-real-book), it takes between
5 and 3 seconds on my computer (depending whether pandoc is loaded in
memory or not).

With pandoc you have also more formats to write to.

   Indeed, I plan topresent the results of this experiment (porting an
   entire academic article to xhtml and WP) in a future article for one of
   the TeX journals...

I’m really interested in reading it. Also because I’m trying to use
ConTeXt to generate high-quality PDF documents from XHTML files
generated by pandoc ;-).

   Now we can of course already export xhtml footnotes from ConTeXt but there
   will be no interactive links. In the current project, there are 77
   footnotes; I had to add the links manually to get the output to do what we
   wanted.

I’m afraid that missing links for footnotes is a bug,

   [Also note that it makes much more sense to export the footnotes as
   endnotes, particularly for long blog posts.]

I think that footnotes are related to pages. You can only have proper
footnotes in a page.

Just in case it might help,


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

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

[NTG-context] \lfloor, \rfloor, \lceil, \rceil vanish with \big, \Big, \bigg, \Bigg and their left and right variants

2015-04-25 Thread Maggyero
MWE:

\starttext
The delimiters are correctly displayed:
\startformula
\left\lfloor \frac{x}{y}\right\rfloor
\stopformula

The delimiters vanish:
\startformula
\Bigl\lfloor \frac{x}{y}\Bigr\rfloor
\stopformula
\stoptext


Maggyero
___
If your question is of interest to others as well, please add an 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] Strike out font

2015-04-25 Thread Wolfgang Schuster

 Am 25.04.2015 um 14:58 schrieb Vya. Y. yatskov...@gmail.com:
 
 Hi,
 
 Please advise me, how to make strikeout font effect? I use latest luatex 
 engine.

Method 1:

\definetextbackground
  [strikethrough]
  [location=text,
   alternative=4,
   background=,
   frame=off,
%  framecolor=black,
%  rulethickness=1pt,
  ]

\starttext

text \strikethrough{text} text

\input ward
\startstrikethrough
\input ward
\stopstrikethrough
\input ward

\stoptext


Method 2:

\definebar
  [strikethrough]
  [method=0,
   offset=0.6,
   continue=yes,
%  rulethickness=0.2,
  ]

\starttext

text \strikethrough{text} text

\input ward
\startbar[strikethrough]
\input ward
\stopbar
\input ward

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

Re: [NTG-context] Feature request for export: Interactive Notes

2015-04-25 Thread Idris Samawi Hamid ادريس سماوي حامد

Hi Pablo,

On Sat, 25 Apr 2015 03:05:07 -0600, Pablo Rodriguez oi...@gmx.es wrote:


On 04/25/2015 02:36 AM, Idris Samawi Hamid ادريس   سماوي حامد wrote:

Dear gang,

  I've spent a considerable amount of time over the past month trying to
  master the art of xhtml output. We are close to being able to use  
ConTeXt

  as a replacement for markdown in, e.g., WordPress.


Hi Idris,

Markdown or pandoc? Markdown is the markup format, pandoc is the tool.


In this case we're talking about markdown qua source. In the WordPress  
case, pandoc of course is not needed: WP can either use md directly or (as  
I prefer) an editor such as MarkdownPad~2 will export the html for you,  
which you can then paste to WP.



Replacing pandoc with ConTeXt to generate XHTML or ePub files has a
downside.

As far as I know, ConTeXt is much slower for this task.


Absolutely, by far. But see below.


With a sample
from pandoc (http://pandoc.org/epub.html#a-real-book), it takes between
5 and 3 seconds on my computer (depending whether pandoc is loaded in
memory or not).


Sure, and as you know I've done an entire small book using pandoc  
(docx-md; then md-epub; md-context-pdf)



With pandoc you have also more formats to write to.


Yes, but the goal here is much narrower: to use ConTeXt as source. Perhaps  
if pandoc supported ConTeXt input I might have gone that route, but I  
don't see that happening anytime soon...


For simple tasks the markdown/pandoc route is excellent. But as the  
typesetting needs become more advanced (e.g., bibliographies), markdown as  
source makes less and less sense. And pandoc export to epub has  
limitations, as you and I have discussed before.


Yes, the ConTeXt route is slower, and the learning curve has been  
considerably longer than I anticipated. But the resulting workflow is  
*much* more flexible for serious academic typesetting and export tasks.



  Indeed, I plan topresent the results of this experiment (porting an
  entire academic article to xhtml and WP) in a future article for one  
of

  the TeX journals...


I’m really interested in reading it. Also because I’m trying to use
ConTeXt to generate high-quality PDF documents from XHTML files
generated by pandoc ;-).


Ah, I'll be interested in seeing that workflow as well ;-)

  Now we can of course already export xhtml footnotes from ConTeXt but  
there

  will be no interactive links. In the current project, there are 77
  footnotes; I had to add the links manually to get the output to do  
what we

  wanted.


I’m afraid that missing links for footnotes is a bug,


Hmm, what do you mean exactly?


  [Also note that it makes much more sense to export the footnotes as
  endnotes, particularly for long blog posts.]


I think that footnotes are related to pages. You can only have proper
footnotes in a page.


This is why I said that it makes much more sense to export the footnotes  
as endnotes. At the end of, e.g., a blog post you'll have a section for  
footnotes/endnotes. In the context source I had to make a derivative  
version and use something like


\startsubsubject[title=Endnotes]
\placefootnotes
\stopsubsubject

[Aside: I wonder if there is a way in ConTeXt to setup \placefootnotes  
etc. in a mode so that it gets invoked only in the export. Will explore  
this for the article.]


Some crude regular expressions helped me to edit ConTeXt's *div.xhtml  
output; with scripting one should be able to do it all automatically. But  
my scripting skill set is limited-to-nonexistent so the part of the task  
that couldn't fit easily into a regex sub I had to do manually.


Best wishes
Idris
--
Idris Samawi Hamid
Professor of Philosophy
Colorado State University
Fort Collins, CO 80523
___
If your question is of interest to others as well, please add an 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] Strike out font

2015-04-25 Thread Vya. Y.
Hi,

Please advise me, how to make strikeout font effect? I use latest luatex
engine.

Regards,
V. Yatskovsky
___
If your question is of interest to others as well, please add an 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
___