* markdown: referencing tables
@ 2013-04-09 19:29 Xenia
2013-04-09 23:02 ` Hans Hagen
2013-04-10 13:39 ` Marco Patzer
0 siblings, 2 replies; 6+ messages in thread
From: Xenia @ 2013-04-09 19:29 UTC (permalink / raw)
To: mailing list for ConTeXt users
Dear context list,
I love simple tables in markdown like this one
\startmarkdown
Right Left Center Default
------- ------ ---------- -------
12 12 12 12
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: markdown: referencing tables
2013-04-09 19:29 markdown: referencing tables Xenia
@ 2013-04-09 23:02 ` Hans Hagen
2013-04-10 12:44 ` Xenia
2013-04-10 13:39 ` Marco Patzer
1 sibling, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2013-04-09 23:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
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 12 12 12
> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: markdown: referencing tables
2013-04-09 23:02 ` Hans Hagen
@ 2013-04-10 12:44 ` Xenia
2013-04-10 13:10 ` Hans Hagen
0 siblings, 1 reply; 6+ messages in thread
From: Xenia @ 2013-04-10 12:44 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
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 12 12 12
>> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: markdown: referencing tables
2013-04-10 12:44 ` Xenia
@ 2013-04-10 13:10 ` Hans Hagen
2013-04-10 17:35 ` Xenia
0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2013-04-10 13:10 UTC (permalink / raw)
To: Xenia; +Cc: mailing list for ConTeXt users
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 12 12 12
>>> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: markdown: referencing tables
2013-04-10 13:10 ` Hans Hagen
@ 2013-04-10 17:35 ` Xenia
0 siblings, 0 replies; 6+ messages in thread
From: Xenia @ 2013-04-10 17:35 UTC (permalink / raw)
To: Hans Hagen; +Cc: mailing list for ConTeXt users
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 12 12 12
>>>> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: markdown: referencing tables
2013-04-09 19:29 markdown: referencing tables Xenia
2013-04-09 23:02 ` Hans Hagen
@ 2013-04-10 13:39 ` Marco Patzer
1 sibling, 0 replies; 6+ messages in thread
From: Marco Patzer @ 2013-04-10 13:39 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1924 bytes --]
On 2013–04–09 Xenia wrote:
> \startmarkdown
> Right Left Center Default
> ------- ------ ---------- -------
> 12 12 12 12
> 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 12 12 12
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
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-04-10 17:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-09 19:29 markdown: referencing tables Xenia
2013-04-09 23:02 ` Hans Hagen
2013-04-10 12:44 ` Xenia
2013-04-10 13:10 ` Hans Hagen
2013-04-10 17:35 ` Xenia
2013-04-10 13:39 ` Marco Patzer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).