ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* New line in cell in Markdown processing? (module t-filter)
@ 2013-11-11 14:36 Xan
  2013-11-11 14:48 ` Xan
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Xan @ 2013-11-11 14:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Is there any way to have a multiline cell in markdown while I run ConTeXt with t-filter module?

This:

| Activitat | Conceptes | idioma | notes |
|:----------|:----------|:-------|:------|
| [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
| [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | funció exponencial | anglès | complicat de calcular (per tempteig). no me surt la resposta teòria de 29 |
| [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | funció exponencial | | |


produces me a very wide table.

Thanks in advance,
Xan.

PS: Please CCme
___________________________________________________________________________________
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] 5+ messages in thread

* Re: New line in cell in Markdown processing? (module t-filter)
  2013-11-11 14:36 New line in cell in Markdown processing? (module t-filter) Xan
@ 2013-11-11 14:48 ` Xan
  2013-11-11 21:41   ` Xan
  2013-11-11 14:48 ` Aditya Mahajan
  2013-11-12 10:49 ` Another problem in Markdown processing Xan
  2 siblings, 1 reply; 5+ messages in thread
From: Xan @ 2013-11-11 14:48 UTC (permalink / raw)
  To: Xan; +Cc: mailing list for ConTeXt users

I know that now:

http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html

On Mon, 11 Nov 2013 15:36:51 +0100
Xan <dxpublica@telefonica.net> ha escrit:

> Hi,
> 
> Is there any way to have a multiline cell in markdown while I run ConTeXt with t-filter module?
> 
> This:
> 
> | Activitat | Conceptes | idioma | notes |
> |:----------|:----------|:-------|:------|
> | [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
> | [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | funció exponencial | anglès | complicat de calcular (per tempteig). no me surt la resposta teòria de 29 |
> | [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | funció exponencial | | |
> 
> 
> produces me a very wide table.
> 
> Thanks in advance,
> Xan.
> 
> PS: Please CCme
___________________________________________________________________________________
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] 5+ messages in thread

* Re: New line in cell in Markdown processing? (module t-filter)
  2013-11-11 14:36 New line in cell in Markdown processing? (module t-filter) Xan
  2013-11-11 14:48 ` Xan
@ 2013-11-11 14:48 ` Aditya Mahajan
  2013-11-12 10:49 ` Another problem in Markdown processing Xan
  2 siblings, 0 replies; 5+ messages in thread
From: Aditya Mahajan @ 2013-11-11 14:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1094 bytes --]

On Mon, 11 Nov 2013, Xan wrote:

> Hi,
>
> Is there any way to have a multiline cell in markdown while I run ConTeXt with t-filter module?

Can you please send a complete minimal example?

> This:
>
> | Activitat | Conceptes | idioma | notes |
> |:----------|:----------|:-------|:------|
> | [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
> | [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | funció exponencial | anglès | complicat de calcular (per tempteig). no me surt la resposta teòria de 29 |
> | [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | funció exponencial | | |
>
>
> produces me a very wide table.

Pandoc uses the old table mechanism for tables. I think that the best way 
forward is to convert a markdown table to a natural table (\bTABLE etc.). 
That will make it much easier to control the layout of the table. But this 
should be raised as a feature request on the pandoc mailing list.

Aditya

[-- 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] 5+ messages in thread

* Re: New line in cell in Markdown processing? (module t-filter)
  2013-11-11 14:48 ` Xan
@ 2013-11-11 21:41   ` Xan
  0 siblings, 0 replies; 5+ messages in thread
From: Xan @ 2013-11-11 21:41 UTC (permalink / raw)
  To: Xan; +Cc: mailing list for ConTeXt users

On Mon, 11 Nov 2013 15:48:21 +0100
Xan <dxpublica@telefonica.net> ha escrit:

> I know that now:
> 
> http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html
> 
> On Mon, 11 Nov 2013 15:36:51 +0100
> Xan <dxpublica@telefonica.net> ha escrit:
> 
> > Hi,
> > 
> > Is there any way to have a multiline cell in markdown while I run ConTeXt with t-filter module?
> > 
> > This:
> > 
> > | Activitat | Conceptes | idioma | notes |
> > |:----------|:----------|:-------|:------|
> > | [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
> > | [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | funció exponencial | anglès | complicat de calcular (per tempteig). no me surt la resposta teòria de 29 |
> > | [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | funció exponencial | | |
> > 
> > 
> > produces me a very wide table.
> > 
> > Thanks in advance,
> > Xan.
> > 
> > PS: Please CCme
> On Mon, 11 Nov 2013, Xan wrote:
> 
> > Hi,
> >
> > Is there any way to have a multiline cell in markdown while I run ConTeXt with t-filter module?
> 
> Can you please send a complete minimal example?

Ofcourse: prova.tex

%% ConTeXt template for exercises
%% ConTeXt MIV

% Mòdul t-filter
\usemodule[filter]

\defineexternalfilter
    [markdown]
    [filtercommand={pandoc -t context -o \externalfilteroutputfile\space \externalfilterinputfile}]



%% el text
\starttext

\title{Funcions i {\em problem-solving activities}}

\processmarkdownfile{./prova.md}

\stoptext


and prova.md:

| Activitat | Conceptes | Idioma |
|:----------|:----------|:------:|
| Foo | Boo | Roo <br/> Soo |
| Foo2 | Boo2 | Roo2  Soo2 |


The <br/> is *ignored*. For having two lines, I have to put blank columns:

| Activitat | Conceptes | Idioma |
|:----------|:----------|:------:|
| Foo | Boo | Roo |
|  |  | Soo |
| Foo2 | Boo2 | Roo2  Soo2 |

If you put a long Roo paragraph, you get a (too much) wider table.

@Aditya: can you report the problem or me? I think you have more tech skill to do that. I agree with you: natural tables are more suitable for conversion. And I think that html and natural tables syntax coincidence makes this process easy.

Thanks for that,
Xan.
> 
> > This:
> >
> > | Activitat | Conceptes | idioma | notes |
> > |:----------|:----------|:-------|:------|
> > | [DM-40](http://mrmeyer.com/threeacts/buckythebadger/). Quantes flexions hauria de fer la mascota? | funció lineal? | anglès | complicat d'entendre |
> > | [DM-33](http://mrmeyer.com/threeacts/dominoskyscraper/). Domino gratacels | funció exponencial | anglès | complicat de calcular (per tempteig). no me surt la resposta teòria de 29 |
> > | [DM-35](http://mrmeyer.com/threeacts/shrinkingdollar/). Encollir un dòlar | funció exponencial | | |
> >
> >
> > produces me a very wide table.
> 
> Pandoc uses the old table mechanism for tables. I think that the best way 
> forward is to convert a markdown table to a natural table (\bTABLE etc.). 
> That will make it much easier to control the layout of the table. But this 
> should be raised as a feature request on the pandoc mailing list.
> 
> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Another problem in Markdown processing
  2013-11-11 14:36 New line in cell in Markdown processing? (module t-filter) Xan
  2013-11-11 14:48 ` Xan
  2013-11-11 14:48 ` Aditya Mahajan
@ 2013-11-12 10:49 ` Xan
  2 siblings, 0 replies; 5+ messages in thread
From: Xan @ 2013-11-12 10:49 UTC (permalink / raw)
  To: Xan; +Cc: mailing list for ConTeXt users

Descriptions fail:

Term 1
  ~ Definition 1
Term 2
  ~ Definition 2a
  ~ Definition 2b

gives you a 

! Undefined control sequence.

system          > tex > error on line 19 in file 98-realitat.md.tex: Undefined control sequence ...

 9     
10     : Domino gratacels \letterbar{} funció exponencial \letterbar{} anglès
11     \letterbar{} complicat de calcular (per tempteig). no me surt la
12     resposta teòria de 29
13     
14     \useURL[url3][http://mrmeyer.com/threeacts/shrinkingdollar/][][DM-35]\from[url3]
15     
16     : Encollir un dòlar \letterbar{} funció exponencial \letterbar{} cap
17     \letterbar{} \letterbar{}
18     
19 >>  \startdescription{Term 1}
20       Definition 1
21     \stopdescription
22     
23     \startdescription{Term 2}
24       Definition 2a
25     
26       Definition 2b
27     \stopdescription
28     
29     \section[gràfica-duna-funció]{Gràfica d'una funció}

l.19 \startdescription
                    {Term 1}
? x



I think it's a bug of pandoc that does not include necessary definitions.

@Aditya, can you confirm that?

Xan
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2013-11-12 10:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-11 14:36 New line in cell in Markdown processing? (module t-filter) Xan
2013-11-11 14:48 ` Xan
2013-11-11 21:41   ` Xan
2013-11-11 14:48 ` Aditya Mahajan
2013-11-12 10:49 ` Another problem in Markdown processing Xan

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).