Re: [O] org-cell in org-table with a list or a new paragraph

2019-08-05 Thread John Kitchin
There does not seem to be a beautiful approach, but you can do this:

#+attr_latex:  :align |l|l|
#+caption: caption
| Description| properties

|
|+--|
| Some variable as a value of 0 or 1 | @@latex:
\begin{minipage}[t]{0.4\textwidth}\begin{itemize} \item 0 is true \item 1
is false\end{itemize}\end{minipage}@@ |
|+--|

The way the website you referenced is organized, it looks like you want a
table, but I guess those tables are generated right? If so, what are they
generated from? The majority of the entries look like single
sentence/paragraphs, with only a few that look like there are items. Maybe
it isn't too bad to just write those in sentence form.

John

---
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



On Mon, Aug 5, 2019 at 3:06 PM flow  wrote:

> Hi Eric
>
> As far as I know a table is what I want and what I need. I guess maybe
> there can be something build without a table but finally I need a table/tsv.
>
> This is what I am working with, it's full of tables:
> https://oeg-upm.github.io/transmodel-cq/
>
> Some of them need to have more than a paragraph, sometimes two, sometimes
> a list of items...
>
> El lun, 05-08-2019 a las 13:27 +, Fraga, Eric escribió:
>
> On Monday,  5 Aug 2019 at 14:13, flow wrote:
>
> I was wondering if I can get a new line inside the cell of a table in
>
> Orgmode to be rendered as new paragraph or as a list.
>
>
> I don't think that is possible.  What is it you actually wish to
>
> achieve?  Maybe a table is not the right approach.
>
>


Re: [O] org-cell in org-table with a list or a new paragraph

2019-08-05 Thread flow
Hi Eric

As far as I know a table is what I want and what I need.  I guess maybe
there can be something build without a table but finally I need a
table/tsv.

This is what I am working with, it's full of tables:
https://oeg-upm.github.io/transmodel-cq/

Some of them need to have more than a paragraph, sometimes two,
sometimes a list of items...

El lun, 05-08-2019 a las 13:27 +, Fraga, Eric escribió:
> On Monday,  5 Aug 2019 at 14:13, flow wrote:
> > I was wondering if I can get a new line inside the cell of a table in
> > Orgmode to be rendered as new paragraph or as a list.
> 
> I don't think that is possible.  What is it you actually wish to
> achieve?  Maybe a table is not the right approach.


[O] Use CUSTOM_ID for outline-containers during HTML export

2019-08-05 Thread Yann Esposito (yogsototh)
Hello,

I would like to submit a simple patch that could make the HTML exporter closer 
to reproductible build.
I have given a bit more information in my commit below.


From 5d59d1e0b10430830aff77c17be1d37bb9e898bc Mon Sep 17 00:00:00 2001
From: "Yann Esposito (Yogsototh)" 
Date: Mon, 5 Aug 2019 15:20:25 +0200
Subject: [PATCH] Use CUSTOM_ID for outline-containers

When exporting HTML the exporter generate ids for references.
Unfortunately those id are not stable in the sense that
exporting twice generate two different set of ids.

Using CUSTOM_ID one could already use have fixed anchors in the
generated HTML. So for example we could share URL with
...index.html#my-section-id and it will be the same URL even if
we export the HTML again.

Unfortunately, this CUSTOM_ID is not used for the outline ids.
And thus if we expose the html in a git repository for example.
Each export will generate a big diff that "pollute" the diff
because it will show changes for all org items while most of them
could still be unchanged.

With this PR, HTML export will use CUSTOM_ID for both the headers id
and the org outline ids. For Items without CUSTOM_ID the behavior will
stay identical as before.

n.b.: I've create a private package to generate meaningful CUSTOM_ID.
https://gitlab.esy.fun/yogsototh/org-auto-id

For my use case, it would be really preferable that those generated
ids use the content of org item.

p.s: if for some reason this patch might break some usage.
I would like to at least be able to provide an option
to disable the generation of those outline-container div.
---
 lisp/ox-html.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 757006321..8056adc91 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -2634,8 +2634,7 @@ holding contextual information."
   (first-content (car (org-element-contents headline
   (format "<%s id=\"%s\" class=\"%s\">%s%s\n"
   (org-html--container headline info)
-  (concat "outline-container-"
- (org-export-get-reference headline info))
+  (format "outline-container-%s" id)
   (concat (format "outline-%d" level)
   (and extra-class " ")
   extra-class)
--
2.16.3


signature.asc
Description: Message signed with OpenPGP


[O] org-cell in org-table with a list or a new paragraph

2019-08-05 Thread flow
Dear orgmoders

I was wondering if I can get a new line inside the cell of a table in
Orgmode to be rendered as new paragraph or as a list.

Best!


Re: [O] Latex single dollar math delimiter question

2019-08-05 Thread Fraga, Eric
On Monday,  5 Aug 2019 at 11:58, Jarmo Hurri wrote:

[...]

> Since the equation in my example contains no line breaks, is directly
> attached with no whitespace in between the equation and the dollar
> signs, and the closing '$' is followed by whitespace, I would expect
> math delimiter behaviour.
>
> Removing all whitespace, that is, $z=a+ib,$ does not help.

I can confirm this.  What does work, however, is if you remove the ","
that is within the $...$ delimiters.  Simply move the , to after the
second $.

You might wish to file a bug report.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-399-g4e6222



Re: [O] Latex single dollar math delimiter question

2019-08-05 Thread Nicolas Goaziou
Hello,

Jarmo Hurri  writes:

> Based on the manual I would have expected math delimiters. Referring
> again to the manual: "single ‘$’ characters are only recognized as math
> delimiters if the enclosed text contains at most two line breaks, is
> directly attached to the ‘$’ characters with no whitespace in between,
> and if the closing ‘$’ is followed by whitespace, punctuation or a
> dash."
>
> Since the equation in my example contains no line breaks, is directly
> attached with no whitespace in between the equation and the dollar
> signs, and the closing '$' is followed by whitespace, I would expect
> math delimiter behaviour.

The manual is inaccurate. Here is the current check for $ math
delimiters:

(and (not (memq (char-after (1+ (point)))
'(?\s ?\t ?\n ?, ?. ?\;)))
 (search-forward "$" nil t 2)
 (not (memq (char-before (match-beginning 0))
'(?\s ?\t ?\n ?, ?.)))
 (looking-at-p
  "\\(\\s.\\|\\s-\\|\\s(\\|\\s)\\|\\s\"\\|'\\|$\\)"))

See also: 
https://orgmode.org/worg/dev/org-syntax.html#Entities_and_LaTeX_Fragments

I don't know if there's a way to express it in a non-boring way in the
manual.

Regards,

-- 
Nicolas Goaziou



Re: [O] Latex single dollar math delimiter question

2019-08-05 Thread Jarmo Hurri
"Fraga, Eric"  writes:

> On Sunday,  4 Aug 2019 at 08:31, Jarmo Hurri wrote:
>> Can someone explain why the single '$' characters below are not
>> recognized as math delimiters?
>>
>> a /complex number/ $z = a + ib,$ where
>
> What are you expecting?  What happens if you export the file to PDF?

Sorry, I assumed incorrectly that my question was self-explanatory. When
I export the file to PDF, the dollar characters are not regonized as
math delimiters.

Based on the manual I would have expected math delimiters. Referring
again to the manual: "single ‘$’ characters are only recognized as math
delimiters if the enclosed text contains at most two line breaks, is
directly attached to the ‘$’ characters with no whitespace in between,
and if the closing ‘$’ is followed by whitespace, punctuation or a
dash."

Since the equation in my example contains no line breaks, is directly
attached with no whitespace in between the equation and the dollar
signs, and the closing '$' is followed by whitespace, I would expect
math delimiter behaviour.

Removing all whitespace, that is, $z=a+ib,$ does not help.

> By the way, you might be interested in the following configuration
> snippet which makes org insert \(\) when you type a single $ (and a $
> if you type 2 of them in a row).

That is a nice little tool.

I have gotten used to writing '\(' and '\)' instead of '$' for a long
time. I was doing it for the millionth time and decided to take a look
at what the manual says. Hence this post.

Hope this clarifies my question.

Jarmo