Re: [NTG-context] markdown: referencing tables

2013-04-10 Thread Xenia
On 10.04.2013 01:02, Hans Hagen wrote:
 On 4/9/2013 9:29 PM, Xenia wrote:
 Dear context list,

 I love simple tables in markdown like this one

 \startmarkdown
Right Left Center Default
 --- -- --   ---
   12 121212
  123 123   123  123
1 1  1 1

 Table:  Demonstration of simple table syntax.
 \stopmarkdown

 Is there a way to reference this table?
 With \starttabulate (\stoptabulate) tables can be referenced with
 \placetable, but \placetable just creates another (empty) table in case
 of a markdown table.
 
 Also if you put {} around the code? or use
 
 \startplacetable{xx}
 ...
 \stopplacetable

No this creates no caption and a second (empty) table with the right
caption.

___
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] markdown: referencing tables

2013-04-10 Thread Hans Hagen

On 4/10/2013 2:44 PM, Xenia wrote:

On 10.04.2013 01:02, Hans Hagen wrote:

On 4/9/2013 9:29 PM, Xenia wrote:

Dear context list,

I love simple tables in markdown like this one

\startmarkdown
Right Left Center Default
--- -- --   ---
   12 121212
  123 123   123  123
1 1  1 1

Table:  Demonstration of simple table syntax.
\stopmarkdown

Is there a way to reference this table?
With \starttabulate (\stoptabulate) tables can be referenced with
\placetable, but \placetable just creates another (empty) table in case
of a markdown table.


Also if you put {} around the code? or use

\startplacetable{xx}
...
\stopplacetable


No this creates no caption and a second (empty) table with the right
caption.


and what about:

\startbuffer
\startmarkdown
...
\stopmarkdown
\stopbuffer

\placetable{whatever}{\getbuffer}

-
  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] markdown: referencing tables

2013-04-10 Thread Marco Patzer
On 2013–04–09 Xenia wrote:

 \startmarkdown
   Right Left Center Default
 --- -- --   ---
  12 121212
 123 123   123  123
   1 1  1 1
 
 Table:  Demonstration of simple table syntax.
 \stopmarkdown
 
 Is there a way to reference this table?

I might get you wrong here, but I think this is a markdown/pandoc
issue. Look at the ConTeXt code generated for section references:

  %%% section.markdown 
  Whatever
  

  See [section](#whatever)
  %

  %%% section.tex %
  \section[whatever]{Whatever}

  See \in{section}{}[whatever]
  %

Now compare this with the code generated for tables on the other
hand:

  %%% table.markdown %%
Right Left Center Default
  --- -- --   ---
   12 121212
  123 123   123  123
1 1  1 1

  Table: Caption

  See [table](#caption)
  %

  %%% table.tex %%%
  \placetable[here]{Caption}
  \starttable[|r|l|c|l|]
  \HL
  \NC Right
  \NC Left
  \NC Center
  \NC Default
  \NC\AR
  \HL
  \NC 12
  \NC 12
  \NC 12
  \NC 12
  \NC\AR
  \NC 123
  \NC 123
  \NC 123
  \NC 123
  \NC\AR
  \NC 1
  \NC 1
  \NC 1
  \NC 1
  \NC\AR
  \HL
  \stoptable

  See \in{table}{}[caption]
  %

As you can see, no reference is created. I don't even know if
references are supported in markdown in the same way section
references are. If this is actually supposed to work, then I assume
a bug in the pandoc context output filter.

Marco


signature.asc
Description: Digital signature
___
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] markdown: referencing tables

2013-04-10 Thread Xenia
On 10.04.2013 15:10, Hans Hagen wrote:
 On 4/10/2013 2:44 PM, Xenia wrote:
 On 10.04.2013 01:02, Hans Hagen wrote:
 On 4/9/2013 9:29 PM, Xenia wrote:
 Dear context list,

 I love simple tables in markdown like this one

 \startmarkdown
 Right Left Center Default
 --- -- --   ---
12 121212
   123 123   123  123
 1 1  1 1

 Table:  Demonstration of simple table syntax.
 \stopmarkdown

 Is there a way to reference this table?
 With \starttabulate (\stoptabulate) tables can be referenced with
 \placetable, but \placetable just creates another (empty) table in case
 of a markdown table.

 Also if you put {} around the code? or use

 \startplacetable{xx}
 ...
 \stopplacetable

 No this creates no caption and a second (empty) table with the right
 caption.
 
 and what about:
 
 \startbuffer
 \startmarkdown
 ...
 \stopmarkdown
 \stopbuffer
 
 \placetable{whatever}{\getbuffer}

Unfortunately not. Marco might be right and this is a markdown issue …

___
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] markdown: referencing tables

2013-04-09 Thread Xenia
Dear context list,

I love simple tables in markdown like this one

\startmarkdown
  Right Left Center Default
--- -- --   ---
 12 121212
123 123   123  123
  1 1  1 1

Table:  Demonstration of simple table syntax.
\stopmarkdown

Is there a way to reference this table?
With \starttabulate (\stoptabulate) tables can be referenced with
\placetable, but \placetable just creates another (empty) table in case
of a markdown table.

Thanks,
Xenia
___
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] markdown: referencing tables

2013-04-09 Thread Hans Hagen

On 4/9/2013 9:29 PM, Xenia wrote:

Dear context list,

I love simple tables in markdown like this one

\startmarkdown
   Right Left Center Default
--- -- --   ---
  12 121212
 123 123   123  123
   1 1  1 1

Table:  Demonstration of simple table syntax.
\stopmarkdown

Is there a way to reference this table?
With \starttabulate (\stoptabulate) tables can be referenced with
\placetable, but \placetable just creates another (empty) table in case
of a markdown table.


Also if you put {} around the code? or use

\startplacetable{xx}
...
\stopplacetable

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