emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* export table to html, don't display certain columns
@ 2018-04-04  9:08 Uwe Brauer
  2018-04-04 13:25 ` [SOLVED] (was: export table to html, don't display certain columns) Uwe Brauer
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2018-04-04  9:08 UTC (permalink / raw)
  To: emacs-orgmode

Hi

I know that in radio tables I can skip columns like this

% END RECEIVE ORGTBL firmas \begin{comment} #+ORGTBL: SEND firmas 
orgtbl-to-latex  :skipcols (1) :lend "\\\\ \\hline" :environment 
supertabular 


However how can I achieve that in tables in org file which I want 
to export to html?

Thanks

Uwe Brauer 

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

* [SOLVED] (was: export table to html, don't display certain columns)
  2018-04-04  9:08 export table to html, don't display certain columns Uwe Brauer
@ 2018-04-04 13:25 ` Uwe Brauer
  2018-04-04 13:29   ` [SOLVED] Uwe Brauer
  0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2018-04-04 13:25 UTC (permalink / raw)
  To: emacs-orgmode

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

   > Hi
   > I know that in radio tables I can skip columns like this

   > % END RECEIVE ORGTBL firmas \begin{comment} #+ORGTBL: SEND firmas
   > orgtbl-to-latex  :skipcols (1) :lend "\\\\ \\hline" :environment
   > supertabular 

To answer my own question

| / | /     |     |       | /   |
|   | Name  | Res | Letra | Obs |
|---+-------+-----+-------+-----|
|   | Smith |   0 |       |     |
|   | Jones | 1.4 |       |     |
|   | Bond  | 5.6 | *     |     |

All columns starting with / are ignored when exporting. Sorry for the
noise and the double posting.

Uwe Brauer 

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

* Re: [SOLVED]
  2018-04-04 13:25 ` [SOLVED] (was: export table to html, don't display certain columns) Uwe Brauer
@ 2018-04-04 13:29   ` Uwe Brauer
  0 siblings, 0 replies; 4+ messages in thread
From: Uwe Brauer @ 2018-04-04 13:29 UTC (permalink / raw)
  To: emacs-orgmode




   > To answer my own question

   > | / | /     |     |       | /   |
   > |   | Name  | Res | Letra | Obs |
   > |---+-------+-----+-------+-----|
   > |   | Smith |   0 |       |     |
   > |   | Jones | 1.4 |       |     |
   > |   | Bond  | 5.6 | *     |     |

   > All columns starting with / are ignored when exporting. Sorry for the
   > noise and the double posting.


That is not entirely correct. Someone (I forgot who it was, sorry)
provided me with the following hack


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


That is very useful and I wonder why there is nothing in org vanilla
(but then it might and I did not find it.)

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

* export table to html, don't display certain columns
@ 2018-04-04  9:33 Uwe Brauer
  0 siblings, 0 replies; 4+ messages in thread
From: Uwe Brauer @ 2018-04-04  9:33 UTC (permalink / raw)
  To: emacs-orgmode

Hi

I know that in radio tables I can skip columns like this

% END RECEIVE ORGTBL firmas \begin{comment} #+ORGTBL: SEND firmas 
orgtbl-to-latex  :skipcols (1) :lend "\\\\ \\hline" :environment 
supertabular 


However how can I achieve that in tables in org file which I want 
to export to html?

Thanks

Uwe Brauer 

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

end of thread, other threads:[~2018-04-04 13:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-04  9:08 export table to html, don't display certain columns Uwe Brauer
2018-04-04 13:25 ` [SOLVED] (was: export table to html, don't display certain columns) Uwe Brauer
2018-04-04 13:29   ` [SOLVED] Uwe Brauer
2018-04-04  9:33 export table to html, don't display certain columns Uwe Brauer

Code repositories for project(s) associated with this inbox:

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

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 read-only IMAP folder(s) and NNTP newsgroup(s).