emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* tikz and org-mode to export into html and odt
@ 2019-09-19 13:58 Joseph Vidal-Rosset
  2019-09-22 12:35 ` Fraga, Eric
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph Vidal-Rosset @ 2019-09-19 13:58 UTC (permalink / raw)
  To: Liste-emacs-orgmode@gnu.org

Hello,

I have a source org file that uses tikz (and venndiagram.sty based on
tikz). No problem to export into .tex, but the export into odt and
html fails.

OpenDocument export failed: Wrong type argument: listp, 71

(One more time, I'm working for a publisher who do not knows LaTeX....
No comment.)

I need help, if possible.

Best wishes,

Jo.

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

* Re: tikz and org-mode to export into html and odt
  2019-09-19 13:58 tikz and org-mode to export into html and odt Joseph Vidal-Rosset
@ 2019-09-22 12:35 ` Fraga, Eric
  2019-09-23 11:30   ` Joseph Vidal-Rosset
  0 siblings, 1 reply; 6+ messages in thread
From: Fraga, Eric @ 2019-09-22 12:35 UTC (permalink / raw)
  To: Joseph Vidal-Rosset; +Cc: Liste-emacs-orgmode@gnu.org

On Thursday, 19 Sep 2019 at 15:58, Joseph Vidal-Rosset wrote:
> I have a source org file that uses tikz (and venndiagram.sty based on
> tikz). No problem to export into .tex, but the export into odt and
> html fails.
>
> OpenDocument export failed: Wrong type argument: listp, 71

Could you give a minimal example that fails?

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d

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

* Re: tikz and org-mode to export into html and odt
  2019-09-22 12:35 ` Fraga, Eric
@ 2019-09-23 11:30   ` Joseph Vidal-Rosset
  2019-09-23 14:33     ` Fraga, Eric
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph Vidal-Rosset @ 2019-09-23 11:30 UTC (permalink / raw)
  To: Fraga, Eric; +Cc: Liste-emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2306 bytes --]

Le dim. 22  sept. 2019 à 12:35:30 , "Fraga,  Eric" <e.fraga@ucl.ac.uk> a
envoyé ce message:
> On Thursday, 19 Sep 2019 at 15:58, Joseph Vidal-Rosset wrote:
>> I have a source org file that uses tikz (and venndiagram.sty based on
>> tikz). No problem to export into .tex, but the export into odt and
>> html fails.
>>
>> OpenDocument export failed: Wrong type argument: listp, 71
>
> Could you give a minimal example that fails?

Yes, of  course, and sorry for  the delay of  my reply, I just  saw your
reply few hours ago. 

Here  is the  code of  minimal-example.org and  I attach  the file.  The
export into latex work, but it fails  both to export into odt as well as
html.

Best wishes,

Jo.
---------

#+OPTIONS: ':t 
#+OPTIONS: tex:t
#+LaTeX_HEADER: \usepackage{venndiagram2}
#+OPTIONS: tex:imagemagick
 # #+HTML_MATHJAX:               align:"center"               mathml:t
 # path:"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMM"
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="gongorg.css"/>
#+TITLE:A minimal example
#+AUTHOR: Joseph Vidal-Rosset
#+OPTIONS: toc:2
#+OPTIONS: author:t date:t email:t
#+CSL_STYLE: ieee.csl<

#+BEGIN_src  latex  
\begin{venndiagram2sets}
[tikzoptions={scale=1.6,thick},labelA={$JTB$},labelB={$K$},labelOnlyA={$q$},labelOnlyAB={$p$},showframe={false}] 
\fillOnlyB
\end{venndiagram2sets}
#+END_src

 
#+BEGIN_src  latex  
\begin{table}[htbp] 
\caption{Légende} \label{tableone}
\begin{venndiagram3sets}[tikzoptions={scale=2.8,thick},labelOnlyA={\AxiomC{$Gj$}\noLine\UnaryInfC{$\vdots$}\DisplayProof},labelOnlyB={},labelOnlyC={\AxiomC{}\noLine\UnaryInfC{}\noLine\UnaryInfC{$\lnot Gj, Gs, Ps$}\DisplayProof},
labelOnlyAC={$\infer*{\scriptsize{\exists x(Gx\land Px)}}{}$},labelOnlyAB={\AxiomC{$Pj$}\noLine\UnaryInfC{$\vdots$}\noLine\UnaryInfC{}\DisplayProof},labelOnlyBC={},labelABC={},
labelNotABC={},overlap={1.1cm},showframe={false}, labelA={$J$},labelB={$K$},labelC={$N$}]
\setpostvennhook
{
\draw[<-] (labelA) -- ++(135:0.5cm) node[above] {$J$ = S \dots};
\draw[<-] (labelB) -- ++(45:0.3cm) node[above] {$K$ = S' \dots};
\draw[<-] (labelC) -- ++(-90:0.5cm) node[below] {$N$ = S''  \dots};
}
\fillOnlyB ; \fillBCapC
\end{venndiagram3sets}
\end{table}
#+END_src 


[-- Attachment #2: minimal-example.org --]
[-- Type: text/x-org, Size: 1576 bytes --]

#+OPTIONS: ':t 
#+OPTIONS: tex:t
#+LaTeX_HEADER: \usepackage{venndiagram2}
#+OPTIONS: tex:imagemagick
 # #+HTML_MATHJAX:               align:"center"               mathml:t
 # path:"http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMM"
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="gongorg.css"/>
#+TITLE:A minimal example
#+AUTHOR: Joseph Vidal-Rosset
#+OPTIONS: toc:2
#+OPTIONS: author:t date:t email:t
#+CSL_STYLE: ieee.csl<


#+BEGIN_src  latex  
\begin{venndiagram2sets}
[tikzoptions={scale=1.6,thick},labelA={$JTB$},labelB={$K$},labelOnlyA={$q$},labelOnlyAB={$p$},showframe={false}] 
\fillOnlyB
\end{venndiagram2sets}
#+END_src

 

#+BEGIN_src  latex  
\begin{table}[htbp] 
\caption{Légende} \label{tableone}
\begin{venndiagram3sets}[tikzoptions={scale=2.8,thick},labelOnlyA={\AxiomC{$Gj$}\noLine\UnaryInfC{$\vdots$}\DisplayProof},labelOnlyB={},labelOnlyC={\AxiomC{}\noLine\UnaryInfC{}\noLine\UnaryInfC{$\lnot Gj, Gs, Ps$}\DisplayProof},
labelOnlyAC={$\infer*{\scriptsize{\exists x(Gx\land Px)}}{}$},labelOnlyAB={\AxiomC{$Pj$}\noLine\UnaryInfC{$\vdots$}\noLine\UnaryInfC{}\DisplayProof},labelOnlyBC={},labelABC={},
labelNotABC={},overlap={1.1cm},showframe={false}, labelA={$J$},labelB={$K$},labelC={$N$}]
\setpostvennhook
{
\draw[<-] (labelA) -- ++(135:0.5cm) node[above] {$J$ = S \dots};
\draw[<-] (labelB) -- ++(45:0.3cm) node[above] {$K$ = S' \dots};
\draw[<-] (labelC) -- ++(-90:0.5cm) node[below] {$N$ = S''  \dots};
}
\fillOnlyB ; \fillBCapC
\end{venndiagram3sets}
\end{table}
#+END_src 

[-- Attachment #3: Type: text/plain, Size: 13 bytes --]


-- 
Joseph 

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

* Re: tikz and org-mode to export into html and odt
  2019-09-23 11:30   ` Joseph Vidal-Rosset
@ 2019-09-23 14:33     ` Fraga, Eric
  2019-09-23 17:03       ` Joseph Vidal-Rosset
  0 siblings, 1 reply; 6+ messages in thread
From: Fraga, Eric @ 2019-09-23 14:33 UTC (permalink / raw)
  To: Joseph Vidal-Rosset; +Cc: Liste-emacs-orgmode@gnu.org

On Monday, 23 Sep 2019 at 13:30, Joseph Vidal-Rosset wrote:
> Here  is the  code of  minimal-example.org and  I attach  the file.  The
> export into latex work, but it fails  both to export into odt as well as
> html.

Can you create a smaller example, i.e. one with just a single tikz
diagram and specifically one that does have other dependencies?  I don't
have venndiagram2 as a LaTeX package...

Or, maybe the problem is that you need to tell org to use the
venndiagram2 package when creating images from the LaTeX?  Maybe
customizing org-latex-packages-alist or related variables will
help.  For instance, as I use the mhchem package for chemical formulas,
I have

  (add-to-list 'org-latex-packages-alist '("version=3" "mhchem"))

in my Emacs org mode customization.

-- 
: Professor Eric S Fraga, http://www.homepages.ucl.ac.uk/~ucecesf
: PGP/GPG key: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
: Use plain text email when possible: https://useplaintext.email/

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

* Re: tikz and org-mode to export into html and odt
  2019-09-23 14:33     ` Fraga, Eric
@ 2019-09-23 17:03       ` Joseph Vidal-Rosset
  2019-09-23 17:13         ` Fraga, Eric
  0 siblings, 1 reply; 6+ messages in thread
From: Joseph Vidal-Rosset @ 2019-09-23 17:03 UTC (permalink / raw)
  To: Fraga, Eric; +Cc: Liste-emacs-orgmode@gnu.org

Again, you helped me a lot Eric. I am very thankful to you.

The solution is to delete the lines :  #+BEGIN_src  latex     ... #+END_src
and to adde \begin{table}  ... \end{table}  for each tikz-picture  and
it works for html and also for odt !

Many thanks !

Best wishes

Jo.

Le lun. 23 sept. 2019 à 16:33, Fraga, Eric <e.fraga@ucl.ac.uk> a écrit :
>
> On Monday, 23 Sep 2019 at 13:30, Joseph Vidal-Rosset wrote:
> > Here  is the  code of  minimal-example.org and  I attach  the file.  The
> > export into latex work, but it fails  both to export into odt as well as
> > html.
>
> Can you create a smaller example, i.e. one with just a single tikz
> diagram and specifically one that does have other dependencies?  I don't
> have venndiagram2 as a LaTeX package...
>
> Or, maybe the problem is that you need to tell org to use the
> venndiagram2 package when creating images from the LaTeX?  Maybe
> customizing org-latex-packages-alist or related variables will
> help.  For instance, as I use the mhchem package for chemical formulas,
> I have
>
>   (add-to-list 'org-latex-packages-alist '("version=3" "mhchem"))
>
> in my Emacs org mode customization.
>
> --
> : Professor Eric S Fraga, http://www.homepages.ucl.ac.uk/~ucecesf
> : PGP/GPG key: 8F5C 279D 3907 E14A 5C29  570D C891 93D8 FFFC F67D
> : Use plain text email when possible: https://useplaintext.email/

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

* Re: tikz and org-mode to export into html and odt
  2019-09-23 17:03       ` Joseph Vidal-Rosset
@ 2019-09-23 17:13         ` Fraga, Eric
  0 siblings, 0 replies; 6+ messages in thread
From: Fraga, Eric @ 2019-09-23 17:13 UTC (permalink / raw)
  To: Joseph Vidal-Rosset; +Cc: Liste-emacs-orgmode@gnu.org

On Monday, 23 Sep 2019 at 19:03, Joseph Vidal-Rosset wrote:
> Again, you helped me a lot Eric. I am very thankful to you.
>
> The solution is to delete the lines :  #+BEGIN_src  latex     ... #+END_src
> and to adde \begin{table}  ... \end{table}  for each tikz-picture  and
> it works for html and also for odt !

Ah, that makes sense.  I'm not sure I helped but I'm glad you got it working.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d

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

end of thread, other threads:[~2019-09-23 17:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-19 13:58 tikz and org-mode to export into html and odt Joseph Vidal-Rosset
2019-09-22 12:35 ` Fraga, Eric
2019-09-23 11:30   ` Joseph Vidal-Rosset
2019-09-23 14:33     ` Fraga, Eric
2019-09-23 17:03       ` Joseph Vidal-Rosset
2019-09-23 17:13         ` Fraga, Eric

Code repositories for project(s) associated with this public 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).