Re: [NTG-context] latest beta (october 18th): likely bug in \mirror

2018-11-24 Thread Hans Hagen

On 11/23/2018 1:31 PM, mf wrote:

A much simpler example:

\starttext

\ConTeXt\ version: \contextversion.

A paragraph with a mirrored \mirror{word} inside.

Another paragraph.

\stoptext

i'll send you a fix

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

Re: [NTG-context] xtable First row missing in document

2018-11-24 Thread Christopher Bock
When I remove the split from the xtable the file is compiling anymore. 

See attached MWE.

 

I narrowed the problem down to the command "\setupinteraction[state=start]".
Without it, there is no error shown.

 

Error Log:   I have no idea what the error message means. 


--

Underfull \hbox (badness 1) detected at line 1

[]

 

tex error   > tex error on line 1 in file Z:/asdf/mwe.tex: ! Missing
number, treated as zero

 



{

\strc_floats_place_packaged_boxes_indeed ...bute {

  \doifelsemainfloatbody
\cu...

\strc_floats_finish_placement ...e_packaged_boxes

  \dotagregisterfloat
\asked...

\syst_boxes_with_next_box ...mand {\box \nextbox }

  \egroup \ifconditional
\so...

\tabl_split_direct_loop_body ...splitafterresult }

  \global \settrue
\usesamef...

\syst_helpers_loop_yes ...helpers_recurse_content

  \endofloop

...

l.137 \stopxtable

 

 

1 >>  \setupexternalfigures[location={local,global,default}]

2

3 \setupinteraction[state=start]

4

5 \setuplayout

6 [edge=1mm,

7 edgedistance=1mm,

8 margin=15mm,

9 margindistance=1mm,

10 top=6mm,

11 topdistance=1mm,

 

 

? mtx-context | fatal error: return code: 100

 

 

Thanks

Chris

 

Von: Wolfgang Schuster  
Gesendet: Samstag, 24. November 2018 10:59
An: mailing list for ConTeXt users ; Christopher Bock

Betreff: Re: [NTG-context] xtable First row missing in document

 

Christopher Bock schrieb am 23.11.18 um 16:14:



Hi all,

 

I think I found another bug in xtable (or placetable). 

 

The last table in the MWE is not showing the first row (the header row).


Remove the split setting (\startxtable[split=yes]) from the tables because
the "split" keyword
(\placetable[split]) from the float is enough to beak your tables across
pages.

What happens with \startxtable[split=yes] is that ConTeXt changes the number
of lines
it reserves on the current page before the break which isn't enough to fit
the first line
of the table together with the caption and the header.

Wolfgang



mwe.tex
Description: Binary data
___
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] custom environment for geographical pictures; new head or special float?

2018-11-24 Thread Damien Thiriet
Hello,

When creating my geography presentations, I often need to show so-called
« croquis », that are outlines of maps or landscapes. A typical slide
with croquis looks like this:

---
  title
---
 outline
  (a MP graphic)
---
   key to symbols
   (natural table)
---

All this is enclosed into a makeup to reduce margins.
I am now automating this and wonder what should be the best way to do
it.

* creating a head style at subsection level was my first thought, 
  but on the semantical point of view, it is not the best one, 
  since other slides are not considered as subsubsections.
  If I stick to this, should I use subsubsection as a default which it's
  derived from.
* creating a float would be better, since this is a float. Would there
  be a way to insert automatically key to symbols under the metapost
  graphic? 

Thanks,

Damien Thiriet

___
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] Completecontent has problems with chapter in table

2018-11-24 Thread Wolfgang Schuster


Huseyin Özoguz schrieb am 23.11.18 um 09:13:

Hi Wolfgang,

thank you. I work currently with version 2015.04.15 01:44

Can I safely update without any major changes, so all my projects 
(hundrets of books, working in a publishing house) can be compiled as 
usual? Maybe my issue of the chapter in table and the toc is solved in 
the newest update as you say.


You should keep a copy of your current installation for your existing books.

When you use the installation from the ConTeXt garden you can have 
multiple installations without problems.


BTW: What if your goal with the \chapter in the table because this 
creates a wrong value for the chapter counter. If your goal is to put 
a frame around the chapter you can use the framedtext environment 
which doesn’t lead to a wrong chapter number. 


No, its not the frame, but the design. That was only a min-example to 
reproduce my problem. The original table in my current project looks 
like this:


\setupTABLE[c][each][align={high},frame=off]
\bTABLE
\bTR \bTD \externalfigure[path/image.jpg][height=2cm] \eTD \bTD 
\vskip-4\lineheight

\chapter{chapter title}
\eTD \eTR
\eTABLE

So I have a chapter with a image on the left. I dont need chapter 
numbers in this particular project, but anyhow: Is there a better way 
to achieve my result without using tables?


Where exactly should the image appear in the output?

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
___

Re: [NTG-context] Which commands to use to show setups?

2018-11-24 Thread Wolfgang Schuster



Tommaso Gordini schrieb am 24.11.18 um 11:45:

Hello, list.

In my ConTeXt guide, I need to show the syntax of ConTeXt commands.

Below I paste a MWE showing the different possible commands, but I do 
not know if there are others.
I see, however, that the result is different depending on the command 
used.


Do you have any advice to give to me? Which of the commands in the 
code should I use in a guide? Or better: do they have to be used 
according to needs?


Are there other commands of this kind?


\usemodule[setups]

\starttext

When you describe a command, e.g. 
\type{\startdescription{\cmdbasicsetup[...]} ... \stopdescription}:


\startbuffer [basicsetup]
\cmdbasicsetup [startxtable]
\stopbuffer

\typebuffer [basicsetup]
\getbuffer  [basicsetup]

When you show the syntax of a command without the options:

\startbuffer [shortsetup]
\cmdshortsetup [startxtable]
\stopbuffer

\typebuffer [shortsetup]
\getbuffer  [shortsetup]

When you show the syntax of a command with the options:

\startbuffer [fullsetup]
\cmdfullsetup [startxtable]
\stopbuffer

\typebuffer [fullsetup]
\getbuffer  [fullsetup]

When you want to show the name of a command (similar to \tex{type}):

\startbuffer [internal]
\cmdinternal {startxtable}
\stopbuffer

\typebuffer [internal]
\getbuffer  [internal]

When you want to show the syntax of a command as a float:

\startbuffer [showdefinition]
\showdefinition [startxtable]
\stopbuffer

\typebuffer [showdefinition]
\getbuffer  [showdefinition]

When you want to refer to the definition:

\startbuffer [definition]
\definition [startxtable]
%\definition [startxtable,startembeddedxtable]
\stopbuffer

\typebuffer [definition]
\getbuffer  [definition]

\page

When you have a generated command (e.g. \tex {placefigure}):

\startbuffer [instance]
\cmdbasicsetupinstance {placefloat} {figure}
\cmdshortsetupinstance {placefloat} {figure}
\cmdfullsetupinstance  {placefloat} {figure}
\stopbuffer

\typebuffer [instance]
\getbuffer  [instance]

\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Which commands to use to show setups?

2018-11-24 Thread Tommaso Gordini
Hello, list.

In my ConTeXt guide, I need to show the syntax of ConTeXt commands.

Below I paste a MWE showing the different possible commands, but I do not
know if there are others.
I see, however, that the result is different depending on the command used.

Do you have any advice to give to me? Which of the commands in the code
should I use in a guide? Or better: do they have to be used according to
needs?

Are there other commands of this kind?

Thank you in advance
Tommy

\usemodule[x-setups-basics]

\loadsetups[context-en]


\starttext


\showsetup[centerline]


\showsetup[starttyping:instance]


\showsetup[starttyping:instance:typing]


\cmdfullsetup{section:instance}


\cmdfullsetup{section:instance:chapter}


\cmdfullsetup{section:instance:ownnumber:chapter}


\cmdfullsetup{section:instance}


\cmdfullsetup{section:instance:chapter}


\cmdfullsetup{section:instance:ownnumber:chapter}


\showrootvalues[head]


\showinstancevalues[head][chapter]


\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] xtable First row missing in document

2018-11-24 Thread Wolfgang Schuster

Christopher Bock schrieb am 23.11.18 um 16:14:


Hi all,

I think I found another bug in xtable (or placetable).

The last table in the MWE is not showing the first row (the header row).



Remove the split setting (\startxtable[split=yes]) from the tables 
because the "split" keyword
(\placetable[split]) from the float is enough to beak your tables across 
pages.


What happens with \startxtable[split=yes] is that ConTeXt changes the 
number of lines
it reserves on the current page before the break which isn’t enough to 
fit the first line

of the table together with the caption and the header.

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
___