all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* tables, comment in one line, export to html
@ 2016-04-19 11:08 Uwe Brauer
       [not found] ` <6pkhucxunh.ln2@news.c0t0d0s0.de>
  2016-04-26 16:25 ` Michael Brand
  0 siblings, 2 replies; 18+ messages in thread
From: Uwe Brauer @ 2016-04-19 11:08 UTC (permalink / raw)
  To: emacs-orgmode

Hello

I would like to have a table entry in which the last colum contains
comments which I don't want to export to html.

Like this

| Joe Smith      |  7 | 25 |  5 |    |  37 |       | #+begin_comment from group B B #+end_comment |

But this does not work. So how can I achieve it?

thanks

Uwe Brauer 

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

* Re: tables, comment in one line, export to html
       [not found] ` <6pkhucxunh.ln2@news.c0t0d0s0.de>
@ 2016-04-19 13:40   ` Uwe Brauer
  2016-04-19 13:42   ` Uwe Brauer
  1 sibling, 0 replies; 18+ messages in thread
From: Uwe Brauer @ 2016-04-19 13:40 UTC (permalink / raw)
  To: emacs-orgmode

>>> "Michael" == Michael Welle <mwe012008@gmx.net> writes:

   > Hello,
   > Uwe Brauer <oub@mat.ucm.es> writes:

   >> Hello
   >> 
   >> I would like to have a table entry in which the last colum contains
   >> comments which I don't want to export to html.
   >> 
   >> Like this
   >> 
   >> | Joe Smith | 7 | 25 | 5 | | 37 | | #+begin_comment from group B B
   >> #+end_comment |
   >> 
   >> But this does not work. So how can I achieve it?
   > one way to achieve that would be:

   > * Table example

   > ** Exported table

   > #+BEGIN_HTML
   > <!-- BEGIN RECEIVE ORGTBL table_name -->
   > #+END_HTML

   > #+BEGIN_HTML
   > <!-- END RECEIVE ORGTBL table_name -->
   > #+END_HTML


   > ** Internal table						   :noexport:

   > #+ORGTBL: SEND table_name orgtbl-to-html :skipcols (3)
   > | 3 | 3 | void |

   > | 4 | 4 | foo  |
   > | 5 | 5 | bar  |

Thanks but this is supposed to work in a org mode buffer? Does not work
for me. Also I wanted to export the whole file not just a part of it in
the file. It seems that you are in a HTML buffer and use orgtbl radio
tables?

That I do in latex files but not in HTML files, they are just for me too
ugly to edit them directly.

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

* Re: tables, comment in one line, export to html
       [not found] ` <6pkhucxunh.ln2@news.c0t0d0s0.de>
  2016-04-19 13:40   ` Uwe Brauer
@ 2016-04-19 13:42   ` Uwe Brauer
  1 sibling, 0 replies; 18+ messages in thread
From: Uwe Brauer @ 2016-04-19 13:42 UTC (permalink / raw)
  To: emacs-orgmode


   > Hello,
   > Uwe Brauer <oub@mat.ucm.es> writes:

   > one way to achieve that would be:

   > * Table example

   > ** Exported table

   > #+BEGIN_HTML
   > <!-- BEGIN RECEIVE ORGTBL table_name -->
   > #+END_HTML

   > #+BEGIN_HTML
   > <!-- END RECEIVE ORGTBL table_name -->
   > #+END_HTML


   > ** Internal table						   :noexport:

   > #+ORGTBL: SEND table_name orgtbl-to-html :skipcols (3)
   > | 3 | 3 | void |

   > | 4 | 4 | foo  |
   > | 5 | 5 | bar  |


   > Sort of, at least. I hope there are better ways.

Correction to my reply: it works, but it generates html code which I
have then to insert into a HTML file. I prefer directly to import the
whole org file. Can that be achieved?

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

* Re: tables, comment in one line, export to html
       [not found] <55d89bd56ed0429d8029b34af3a8f866@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2016-04-19 17:01 ` Eric S Fraga
       [not found] ` <caa61e02395342579726b84d3cbca9e0@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  1 sibling, 0 replies; 18+ messages in thread
From: Eric S Fraga @ 2016-04-19 17:01 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode

On Tuesday, 19 Apr 2016 at 11:08, Uwe Brauer wrote:
> Hello
>
> I would like to have a table entry in which the last colum contains
> comments which I don't want to export to html.
>
> Like this
>
> | Joe Smith | 7 | 25 | 5 | | 37 | | #+begin_comment from group B B
> #+end_comment |

How about inline html: @@html:<! from group B B >@@
?

(untested)
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa

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

* Re: tables, comment in one line, export to html
       [not found] ` <caa61e02395342579726b84d3cbca9e0@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2016-04-19 19:02   ` Eric S Fraga
  2016-04-19 19:54     ` Uwe Brauer
       [not found]     ` <5fe8d3fe10224e88baac3f6665607e4d@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  0 siblings, 2 replies; 18+ messages in thread
From: Eric S Fraga @ 2016-04-19 19:02 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode

On Tuesday, 19 Apr 2016 at 17:01, Fraga, Eric wrote:
> How about inline html: @@html:<! from group B B >@@

Sorry, I mistyped the HTML comment enclosure...  this should be

@@html:<!-- from group B B -->@@

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-739-g789412

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

* Re: tables, comment in one line, export to html
  2016-04-19 19:02   ` Eric S Fraga
@ 2016-04-19 19:54     ` Uwe Brauer
       [not found]     ` <5fe8d3fe10224e88baac3f6665607e4d@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
  1 sibling, 0 replies; 18+ messages in thread
From: Uwe Brauer @ 2016-04-19 19:54 UTC (permalink / raw)
  To: emacs-orgmode

>>> "Eric" == Eric S Fraga <e.fraga@ucl.ac.uk> writes:

    > On Tuesday, 19 Apr 2016 at 17:01, Fraga, Eric wrote:
    >> How about inline html: @@html:<! from group B B >@@

    > Sorry, I mistyped the HTML comment enclosure...  this should be

    > @@html:<!-- from group B B -->@@

Cool, thanks very much I tried out

| name  | result | @@html:<!-- Comment group B B -->@@ 
| Smith |     10 | @@html:<!-- from group B B -->@@    

Which does almost all I want, it inserts an empty third column, but I
presume this cannot be changed?

Anyhow this solution is sufficient for me, but if you know how to get
rid of that third column, I would be even more grateful! Thanks again

Uwe 

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

* Re: tables, comment in one line, export to html
       [not found]     ` <5fe8d3fe10224e88baac3f6665607e4d@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
@ 2016-04-20  7:38       ` Eric S Fraga
  0 siblings, 0 replies; 18+ messages in thread
From: Eric S Fraga @ 2016-04-20  7:38 UTC (permalink / raw)
  To: emacs-orgmode

On Tuesday, 19 Apr 2016 at 19:54, Uwe Brauer wrote:
> Cool, thanks very much I tried out
>
> | name  | result | @@html:<!-- Comment group B B -->@@ 
> | Smith |     10 | @@html:<!-- from group B B -->@@    
>
> Which does almost all I want, it inserts an empty third column, but I
> presume this cannot be changed?

Without real hackery, not unless you want the comment construct to be
part of the previous column in org?  I.e. move the | before the @@ to
the end of the line.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa

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

* Re: tables, comment in one line, export to html
  2016-04-19 11:08 tables, comment in one line, export to html Uwe Brauer
       [not found] ` <6pkhucxunh.ln2@news.c0t0d0s0.de>
@ 2016-04-26 16:25 ` Michael Brand
  2016-04-26 16:49   ` Uwe Brauer
  1 sibling, 1 reply; 18+ messages in thread
From: Michael Brand @ 2016-04-26 16:25 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode

Hi Uwe

On Tue, Apr 19, 2016 at 1:08 PM, Uwe Brauer <oub@mat.ucm.es> wrote:

> I would like to have a table entry in which the last colum contains
> comments which I don't want to export to html.
>
> Like this
>
> | Joe Smith      |  7 | 25 |  5 |    |  37 |       | #+begin_comment from group B B #+end_comment |
>
> But this does not work. So how can I achieve it?

I have the same need now and just hacked something simple together to
export

    | / | /  |    | <r> |
    |   | 1n | 2y |  3y |

    | / | <r> | /  |    |
    |   |  1y | 2n | 3y |

    | /  | <r> | /  |
    | 1y |  2y | 3n |

    | / | /  | /  | <r> | /  | /  | /  |
    |   | 1n | 2n |  3y | 4n | 5n | 6n |

    | / | <r> | <l> | <r> | <l> | <r> | <l> |
    | / |   / | /   |   / |     |   / | /   |
    |   |  1n | 2n  |  3n | 4y  |  5n | 6n  |

    # Same result with a less useful notation:
    | / | <r> | <l> | <r> | <l> | <r> | <l> |
    | / |   / | /   |     |     |   / | /   |
    | / |     | /   |   / |     |     |     |
    |   |  1n | 2n  |  3n | 4y  |  5n | 6n  |

    # Deletion must not get trapped with this:
    | / | <r> | <l> | <r> | <l> | <r> | <l> |
    | / |     |     |     |     |     |     |
    |   |   / | /   |   / |     |     |     |
    |   |  1y | 2y  |  3y | 4y  |  5y | 6y  |

as e. g. ASCII to

    :  2y  3y
    :
    :  1y  3y
    :
    :  1y  2y
    :
    :  3y
    :
    :  4y
    :
    :  4y
    :
    :   /  /    /
    :  1y  2y  3y  4y  5y  6y

with

    (add-hook 'org-export-before-processing-hook
              'f-ox-filter-table-column-del)
    (defun f-ox-filter-table-column-del (back-end)
      "Delete the columns $2 to $> marked as \"/\" on a row with \"/\" in $1.
    If you want a non-empty column $1 to be deleted make it $2 by
    inserting an empty column before or rearrange column order in
    some other way. Make sure \"/\" is in $1 again after that."
      (while (re-search-forward
              "^[ \t]*| +/ +|\\(.*?|\\)?? +\\(/\\) +|" nil t)
        (goto-char (match-beginning 2))
        (org-table-delete-column)
        (beginning-of-line)))

Michael

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

* Re: tables, comment in one line, export to html
  2016-04-26 16:25 ` Michael Brand
@ 2016-04-26 16:49   ` Uwe Brauer
  2016-04-26 16:55     ` Tory S. Anderson
  0 siblings, 1 reply; 18+ messages in thread
From: Uwe Brauer @ 2016-04-26 16:49 UTC (permalink / raw)
  To: Michael Brand; +Cc: Uwe Brauer, emacs-orgmode


    > Hi Uwe
    > On Tue, Apr 19, 2016 at 1:08 PM, Uwe Brauer <oub@mat.ucm.es> wrote:


    > I have the same need now and just hacked something simple together to
    > export

    >     | / | /  |    | <r> |
    >     |   | 1n | 2y |  3y |

Great!! thanks, I just tested it. So all columns having a / header are
ignored, at least for html and latex export. This is really great.
Thanks again. I'd say that code should be somehow included in mainstream
orgmode, if you don't mind?

regards

Uwe

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

* Re: tables, comment in one line, export to html
  2016-04-26 16:49   ` Uwe Brauer
@ 2016-04-26 16:55     ` Tory S. Anderson
  2016-04-26 19:14       ` Nicolas Goaziou
  0 siblings, 1 reply; 18+ messages in thread
From: Tory S. Anderson @ 2016-04-26 16:55 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: Michael Brand, emacs-orgmode

Second the suggestion to make | / | columns ignored for export in 
mainstream orgmode. 

Uwe Brauer <oub@mat.ucm.es> writes:

>     > Hi Uwe
>     > On Tue, Apr 19, 2016 at 1:08 PM, Uwe Brauer 
>     > <oub@mat.ucm.es> wrote:
>
>
>     > I have the same need now and just hacked something simple 
>     > together to
>     > export
>
>     >     | / | /  |    | <r> |
>     >     |   | 1n | 2y |  3y |
>
> Great!! thanks, I just tested it. So all columns having a / 
> header are
> ignored, at least for html and latex export. This is really 
> great.
> Thanks again. I'd say that code should be somehow included in 
> mainstream
> orgmode, if you don't mind?
>
> regards
>
> Uwe
>
>
>

-- 
Tory S. Anderson
Computational Cognitive Narratologist & Application Developer
http://toryanderson.com

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

* Re: tables, comment in one line, export to html
  2016-04-26 16:55     ` Tory S. Anderson
@ 2016-04-26 19:14       ` Nicolas Goaziou
  2016-04-26 20:56         ` Michael Brand
  0 siblings, 1 reply; 18+ messages in thread
From: Nicolas Goaziou @ 2016-04-26 19:14 UTC (permalink / raw)
  To: Tory S. Anderson; +Cc: Uwe Brauer, Michael Brand, emacs-orgmode

Hello,

torys.anderson@gmail.com (Tory S. Anderson) writes:

> Second the suggestion to make | / | columns ignored for export in
> mainstream orgmode. 
>
> Uwe Brauer <oub@mat.ucm.es> writes:
>
>>     > Hi Uwe
>>     > On Tue, Apr 19, 2016 at 1:08 PM, Uwe Brauer     >
>> <oub@mat.ucm.es> wrote:
>>
>>
>>     > I have the same need now and just hacked something simple
>> > together to
>>     > export
>>
>>     >     | / | /  |    | <r> |
>>     >     |   | 1n | 2y |  3y |
>>
>> Great!! thanks, I just tested it. So all columns having a / header
>> are
>> ignored, at least for html and latex export. This is really great.
>> Thanks again. I'd say that code should be somehow included in
>> mainstream
>> orgmode, if you don't mind?

It sounds good, as long as it is clear this markers is for export
consumption only, and has no special effect when using the spreadsheet.

I suggest to use # or <#> instead of / so as to refer to "comment" (but
still use / as the marker for the first column).

The removal could be done in a function like
`org-export--delete-commented-rows' (see `org-export--delete-comments'
in "ox.el").

This would also require documenting it in the manual and providing
tests.

Does anyone feel like doing that?

Regards,

-- 
Nicolas Goaziou

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

* Re: tables, comment in one line, export to html
  2016-04-26 19:14       ` Nicolas Goaziou
@ 2016-04-26 20:56         ` Michael Brand
  2016-04-26 21:10           ` Nicolas Goaziou
  0 siblings, 1 reply; 18+ messages in thread
From: Michael Brand @ 2016-04-26 20:56 UTC (permalink / raw)
  To: Tory S. Anderson, Uwe Brauer, Michael Brand, emacs-orgmode

Hi

On Tue, Apr 26, 2016 at 9:14 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

> It sounds good, as long as it is clear this markers is for export
> consumption only, and has no special effect when using the spreadsheet.
>
> I suggest to use # or <#> instead of / so as to refer to "comment" (but
> still use / as the marker for the first column).

# in non-first columns to mean noexport of the column has the
disadvantage of possible confusion with # in the first column where it
means special effect for recalculation when using the spreadsheet. As
I understand your first paragraph you want to avoid such confusion.

/ in non-first columns to mean noexport of the column as I did before
has the disadvantage of possible confusion with / in the first column
where it means noexport of the row.

<#> I find a bit too near to <5>, <, > or <>.

% or ; used for comments in LaTeX or Emacs Lisp I would find a good
space saving single character alternative. Why not % as this would not
be the first time that Org borrowed some syntax elements from LaTeX?
The glyph has also similarities to / that has a similar meaning.

> The removal could be done in a function like
> `org-export--delete-commented-rows' (see `org-export--delete-comments'
> in "ox.el").

And just to mention if someone wants to start: The non-greediness I
did before is not necessary and could be omitted for better
readability:
old: "^[ \t]*| +/ +|\\(.*?|\\)?? +\\(/\\) +|"
new: "^[ \t]*| +/ +|\\(.*|\\)? +\\(%\\) +|"

> This would also require documenting it in the manual and providing
> tests.

And a change note.

> Does anyone feel like doing that?

Let me see. If anyone wants to beat me please go ahead.

Michael

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

* Re: tables, comment in one line, export to html
  2016-04-26 20:56         ` Michael Brand
@ 2016-04-26 21:10           ` Nicolas Goaziou
  2016-04-27  5:56             ` Michael Brand
  0 siblings, 1 reply; 18+ messages in thread
From: Nicolas Goaziou @ 2016-04-26 21:10 UTC (permalink / raw)
  To: Michael Brand; +Cc: Uwe Brauer, emacs-orgmode, Tory S. Anderson

Hello,

Michael Brand <michael.ch.brand@gmail.com> writes:

> # in non-first columns to mean noexport of the column has the
> disadvantage of possible confusion with # in the first column where it
> means special effect for recalculation when using the spreadsheet. As
> I understand your first paragraph you want to avoid such confusion.

I don't think there is a possible confusion if the manual makes it
clear.

> <#> I find a bit too near to <5>, <, > or <>.

That was exactly the point, since those all apply to columns, unlike to
rows special markers. IOW, so far, columns syntax systematically uses <
or > (or both).

> % or ; used for comments in LaTeX or Emacs Lisp I would find a good
> space saving single character alternative. Why not % as this would not
> be the first time that Org borrowed some syntax elements from LaTeX?

Org comment syntax is related to #, not % or ;. I'd rather have similar
things look similar.


Regards,

-- 
Nicolas Goaziou

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

* Re: tables, comment in one line, export to html
  2016-04-26 21:10           ` Nicolas Goaziou
@ 2016-04-27  5:56             ` Michael Brand
  2016-04-27  8:04               ` Nicolas Goaziou
  0 siblings, 1 reply; 18+ messages in thread
From: Michael Brand @ 2016-04-27  5:56 UTC (permalink / raw)
  To: Michael Brand, Tory S. Anderson, Uwe Brauer, emacs-orgmode

Hi

On Tue, Apr 26, 2016 at 11:10 PM, Nicolas Goaziou
<mail@nicolasgoaziou.fr> wrote:

> Michael Brand <michael.ch.brand@gmail.com> writes:

>> # in non-first columns to mean noexport of the column has the
>> disadvantage of possible confusion with # in the first column where it
>> means special effect for recalculation when using the spreadsheet. As
>> I understand your first paragraph you want to avoid such confusion.
>
> I don't think there is a possible confusion if the manual makes it
> clear.
>
>> <#> I find a bit too near to <5>, <, > or <>.
>
> That was exactly the point, since those all apply to columns, unlike to
> rows special markers. IOW, so far, columns syntax systematically uses <
> or > (or both).
>
>> % or ; used for comments in LaTeX or Emacs Lisp I would find a good
>> space saving single character alternative. Why not % as this would not
>> be the first time that Org borrowed some syntax elements from LaTeX?
>
> Org comment syntax is related to #, not % or ;. I'd rather have similar
> things look similar.

To have similar things look similar and make it clear in the manual I
suggest to change the long existing

  ~/~
     Do not export this line.  Useful for lines that contain the
     narrowing `<N>' markers or column group markers.

  Finally, just to whet your appetite [...]

to

  ~/~
     Do not export this row or column.  In the first column ~/~ means
     do not export this row which is useful for rows that contain the
     narrowing ~<N>~ markers, column group markers or markers to not
     export a column.  In all other columns ~/~ means do not export
     this column if also the first column is marked with ~/~.  When
     the first column should not be exported move its content other
     than markers into an other column.

  When more than one marker is needed in a column put each in an own
  row with ~/~ in the first column.

  Finally, just to wet your appetite [...]

Michael

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

* Re: tables, comment in one line, export to html
  2016-04-27  5:56             ` Michael Brand
@ 2016-04-27  8:04               ` Nicolas Goaziou
  2016-04-27  8:19                 ` Nicolas Goaziou
  0 siblings, 1 reply; 18+ messages in thread
From: Nicolas Goaziou @ 2016-04-27  8:04 UTC (permalink / raw)
  To: Michael Brand; +Cc: Uwe Brauer, emacs-orgmode, Tory S. Anderson

Hello,

Michael Brand <michael.ch.brand@gmail.com> writes:

> To have similar things look similar and make it clear in the manual I
> suggest to change the long existing
>
>   ~/~
>      Do not export this line.  Useful for lines that contain the
>      narrowing `<N>' markers or column group markers.
>
>   Finally, just to whet your appetite [...]
>
> to
>
>   ~/~
>      Do not export this row or column.  In the first column ~/~ means
>      do not export this row which is useful for rows that contain the
>      narrowing ~<N>~ markers, column group markers or markers to not
>      export a column.  In all other columns ~/~ means do not export
>      this column if also the first column is marked with ~/~.  When
>      the first column should not be exported move its content other
>      than markers into an other column.
>
>   When more than one marker is needed in a column put each in an own
>   row with ~/~ in the first column.
>
>   Finally, just to wet your appetite [...]

You are talking about section "3.5 The spreadsheet". I don't think this
feature is directly related to spreadsheet capabilities.

Actually, / in first column is described earlier in the manual, in "3.3
Column groups". Besides, there is a similar feature described in "3.2
Column width and alignment", about lines containing only alignment
cookies:

     Lines which only contain these formatting cookies will be removed
  automatically when exporting the document.

IMO, a better change would be to merge 3.2 and 3.3 as "Column
operations" or some such, and add "<#>" as a way to ignore columns upon
exporting. This way, everything related to columns is packed in the same
subsection, and every column markup uses < or >. Moreover, there is no
possible confusion with # markup from spreadsheet.

WDYT?

Regards,

-- 
Nicolas Goaziou

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

* Re: tables, comment in one line, export to html
  2016-04-27  8:04               ` Nicolas Goaziou
@ 2016-04-27  8:19                 ` Nicolas Goaziou
  2016-04-27 10:18                   ` Michael Brand
  0 siblings, 1 reply; 18+ messages in thread
From: Nicolas Goaziou @ 2016-04-27  8:19 UTC (permalink / raw)
  To: Michael Brand; +Cc: Uwe Brauer, emacs-orgmode, Tory S. Anderson

Completing myself,

> IMO, a better change would be to merge 3.2 and 3.3 as "Column
> operations" or some such, and add "<#>" as a way to ignore columns upon
> exporting. This way, everything related to columns is packed in the same
> subsection, and every column markup uses < or >. Moreover, there is no
> possible confusion with # markup from spreadsheet.

Another advantage about this is that there is no need for "/" in the
first column, much like alignments cookies. It makes it simpler to
ignore the first column.

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

* Re: tables, comment in one line, export to html
  2016-04-27  8:19                 ` Nicolas Goaziou
@ 2016-04-27 10:18                   ` Michael Brand
  2016-04-27 11:45                     ` Nicolas Goaziou
  0 siblings, 1 reply; 18+ messages in thread
From: Michael Brand @ 2016-04-27 10:18 UTC (permalink / raw)
  To: Tory S. Anderson, Uwe Brauer, emacs-orgmode

Hi Nicolas

I agree, together all the below makes sense. Some comments added.

Nicolas Goaziou <mail@nicolasgoaziou.fr> wrote:

> You are talking about section "3.5 The spreadsheet". I don't think this
> feature is directly related to spreadsheet capabilities.
>
> Actually, / in first column is described earlier in the manual, in "3.3
> Column groups". Besides, there is a similar feature described in "3.2
> Column width and alignment", about lines containing only alignment
> cookies:
>
>      Lines which only contain these formatting cookies will be removed
>   automatically when exporting the document.

<#> will have to be considered for removal of the line too.

> IMO, a better change would be to merge 3.2 and 3.3 as "Column
> operations" or some such, and add "<#>" as a way to ignore columns upon
> exporting. This way, everything related to columns is packed in the same
> subsection, and every column markup uses < or >. Moreover, there is no
> possible confusion with # markup from spreadsheet.
>
> WDYT?

> Another advantage about this is that there is no need for "/" in the
> first column, much like alignments cookies.

<#> will have to be fontified like <5> as org-formula (name and
description of the face are not precise) wich is the easiest part of
the change. Shouldn't < and > in a table be fontified too?

> It makes it simpler to ignore the first column.

Michael

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

* Re: tables, comment in one line, export to html
  2016-04-27 10:18                   ` Michael Brand
@ 2016-04-27 11:45                     ` Nicolas Goaziou
  0 siblings, 0 replies; 18+ messages in thread
From: Nicolas Goaziou @ 2016-04-27 11:45 UTC (permalink / raw)
  To: Michael Brand; +Cc: Uwe Brauer, emacs-orgmode, Tory S. Anderson

Michael Brand <michael.ch.brand@gmail.com> writes:

> <#> will have to be considered for removal of the line too.

Yes, it is really the same as alignment/width cookies. BTW, it should be
possible to merge them together. E.g., one could write <r10#> for
a right aligned 10 characters large column not meant to be exported.

This probably requires some slight changes in org-table.el.

> <#> will have to be fontified like <5> as org-formula (name and
> description of the face are not precise) wich is the easiest part of
> the change. Shouldn't < and > in a table be fontified too?

They should, as long as the first field is "/", unlike to
alignment/width cookies. I wouldn't bother too much though, since
fontification needs to be rewritten using the parser, once the latter
get a more robust cache, that is.

Regards,

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

end of thread, other threads:[~2016-04-27 11:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-19 11:08 tables, comment in one line, export to html Uwe Brauer
     [not found] ` <6pkhucxunh.ln2@news.c0t0d0s0.de>
2016-04-19 13:40   ` Uwe Brauer
2016-04-19 13:42   ` Uwe Brauer
2016-04-26 16:25 ` Michael Brand
2016-04-26 16:49   ` Uwe Brauer
2016-04-26 16:55     ` Tory S. Anderson
2016-04-26 19:14       ` Nicolas Goaziou
2016-04-26 20:56         ` Michael Brand
2016-04-26 21:10           ` Nicolas Goaziou
2016-04-27  5:56             ` Michael Brand
2016-04-27  8:04               ` Nicolas Goaziou
2016-04-27  8:19                 ` Nicolas Goaziou
2016-04-27 10:18                   ` Michael Brand
2016-04-27 11:45                     ` Nicolas Goaziou
     [not found] <55d89bd56ed0429d8029b34af3a8f866@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-04-19 17:01 ` Eric S Fraga
     [not found] ` <caa61e02395342579726b84d3cbca9e0@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-04-19 19:02   ` Eric S Fraga
2016-04-19 19:54     ` Uwe Brauer
     [not found]     ` <5fe8d3fe10224e88baac3f6665607e4d@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2016-04-20  7:38       ` Eric S Fraga

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.