Changes

Jump to navigation Jump to search
1,227 bytes added ,  14:43, 8 June 2020
m
no edit summary
The only problem is that when using context instead of texexec the paragraph after a blank is not seen as a first paragraph:<texcode>\setupindenting[yes,medium,next] \starttext \input knuth \blank \input knuth \stoptext</texcode><context source=yes>
\setupindenting[yes,medium,next]
\input knuth
 
% because texexec gives different output as context
\setupindenting[yes,medium,first]
\blank
This can be solved in the following way:
<context source=yestexcode>
\setupindenting[yes,medium,next]
\myblank
 
\input knuth
 
\stoptext
</texcode>
<context>
\setupindenting[yes,medium,next]
 
\starttext
 
\input knuth
 
\blank
 
\input knuth
 
\stoptext
</context>
 
 
We have the same problem with a flowchart:
<context source=yes>
\runMPgraphicsfalse
\usemodule[chart]
 
\setupindenting[yes,medium,next]
 
\startFLOWchart[test]
\startFLOWcell
\location {1,1}
\name {start}
\shape {loop}
\text {Start}
\stopFLOWcell
\stopFLOWchart
 
\starttext
 
\input knuth
 
\FLOWchart[test]
 
\input knuth
 
\stoptext
</context>
 
 
This can be solved in the following way:
<context source=yes>
\runMPgraphicsfalse
\usemodule[chart]
 
\setupindenting[yes,medium,next]
 
\definefloat[flowchart][default=force,indentnext=no]
\setupcaption[flowchart][number=none]
 
\startFLOWchart[test]
\startFLOWcell
\location {1,1}
\name {start}
\shape {loop}
\text {Start}
\stopFLOWcell
\stopFLOWchart
 
\starttext
 
\input knuth
 
\placeflowchart{}{\FLOWchart[test]}
\input knuth
\stoptext
</context>
 
[[Category:Basics]]

Navigation menu