[O] Table formula reference and macro replacement

2017-08-16 Thread Vikas Rawal
The idea is to pick contents of a table cell and use it in a paragraph.

Is it possible to have a macro like {{{remote(NAME-OR-ID,REF)}}} ?

The above does not work, but am I missing something?

Vikas



[O] ox-odt: List items contain body paragraphs, confusing styles

2017-08-16 Thread James Harkins
Hi, haven't been active here for a while (which is a good thing -- it means I 
haven't had any problems worth mentioning!).

Now I have one -- ODT export encodes list items as a list-item containing a 
"text:p":




blah blah




When LibreOffice reads this, it applies indentation settings from the 
Text_20_body paragraph style to the list item. So, for instance, if you're 
writing for a journal that requires a .doc and it also requires paragraphs to 
be first-line indented, it becomes impossible to have hanging bullets in bullet 
lists -- the list outdents the bullet by 0.25" but the paragraph style then 
indents this by 0.5" for a net indent of 0.25".

ask.libreoffice.org says "It is usually preferable to make paragraph styles 
formatting lists independent from bulk text styles"[1] -- i.e., applying the 
same style to a list-item paragraph as to a free-standing paragraph is not 
recommended.

I can guess structurally why this occurs -- I suppose org parses it as a 
list-item node containing a paragraph node, and the paragraph node is encoded 
first, without any knowledge of its context.

I will try to write a filter for this, but this looks like an unexpected 
interaction, so, perhaps a bug.

Thanks,
hjh

[1] 
https://ask.libreoffice.org/en/question/123222/text-body-style-with-intent-affects-bulleted-list-style-as-well/




Re: [O] Using Book class without 'parts' for Org-mode Export

2017-08-16 Thread Tim Cross

also, if you get frustrated by the number of latex_header option lines
you need to add to each file, you can define a new custom entry in
org-latex-classes which contains all those lines. I have a custom one
which has all the latex stuff to set my work logo and a few other latex
'tweaks' to match my employer's document guidelines. To get all these
settings, I just need to add a latex_class option referencing my
definition in org-latex-classes.

BTW I think you are probably better off using latex_header_extra for
some of those definitions. In the past, I've run into problems because
things don't get loaded in the right order - using latex_header_extra
will usually ensure your additional custom settings come after the base
latex_header settings which often load things you may need in your
custom stuff.

Tim

li...@wilkesley.net writes:

> On 2017-08-16 14:44, R Jain wrote:
>> Hi Everyone,
>> 
>> My question is about using Org-mode Export to Latex, but starting with
>> Chapter, then Section, and so on.
>> 
>> I found a solution on Stackexchange [1] but when I add that code to my
>> init file, restart emacs, and add "#+LaTeX_CLASS: book_noparts" to my
>> org file,  it apparently doesn't get read. The exported .tex is an
>> itemized list.
>> 
>> Any help with what I'm doing wrong would be great help. Also, if
>> there's a better way to make custom class files within the org-file
>> I'm working on, please do let me know.
>> 
>> Thanks,
>> RJ
>> 
>> Links:
>> --
>> [1]
>> https://n1.nylas.com/link/7e7b7fc5c641bf88e42b688f208d6c1b7782ff4f8c6d4b77bb3d2eacf574a234/0?redirect=https%3A%2F%2Femacs.stackexchange.com%2Fquestions%2F33318%2Fexport-org-mode-subtrees-at-chapter-level-for-latex
>
> Here is my setup using the koma-book class. This uses H1 as the chapter 
> title. A typical chapter starts with:
>
> ** The Clubroom Project
> #+latex: \chapterauthor{by Mike Anderson}
>
>
> (add-to-list 'org-latex-classes
>'("koma-book"
>   "\\documentclass{scrbook}"
>   ("\\chapter{%s}" . "\\chapter{%s}")
>   ("\\subsection{%s}" . "\\subsection*{%s}")
>   ("\\subsection{%s}" . "\\subsection*{%s}")
>   ("\\paragraph{%s}" . "\\paragraph*{%s}")
>   )
> )
>
>
> In the file to be exported:
>
> #+latex_class: koma-book
> #+LATEX_CLASS_OPTIONS: [a5paper,openany,font 10pt]
> #+latex_header: \makeatletter
> #+latex_header: \newcommand{\chapterauthor}[1]{%
> #+latex_header:   {\parindent0pt\vspace*{-5pt}%
> #+latex_header:   \linespread{1.1}\large\scshape#1%
> #+latex_header:   \par\nobreak\vspace*{35pt}}
> #+latex_header:   \@afterheading%
> #+latex_header: }
> #+latex_header: \makeatother
> #+latex_header: \graphicspath{{../../images/}}
> #+latex_header: \usepackage{hyperref}
> #+latex_header: \usepackage{pdfpages}
> #+latex_header: \hypersetup{
> #+latex_header: colorlinks,
> #+latex_header: citecolor=black,
> #+latex_header: filecolor=black,
> #+latex_header: linkcolor=blue,
> #+latex_header: urlcolor=black
> #+latex_header: }
> #+latex_header: \KOMAoptions{twoside=false}
> #+latex_header: \usepackage{adjustbox}
>
> The first chapter has:
>
> #+latex: 
> \includepdf{/home/ian/Documents/emacs/thecastle/images/frontcover.pdf}
> #+latex: \setcounter{tocdepth}{2}
> #+latex: \tableofcontents
>
> This sets the TOC depthand adds the TOC at the start of the first 
> chapter.
>
> Hope that helps.
>
> Ian.


-- 
Tim Cross



Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Uwe Brauer


   > I do not have matlab, but looking at the code in ob-matlab.el and
   > ob-octave.el, it seems that the usual header args should do:

   > :  :results graphics :file testplot.png

   > and delete the print statement in the last line.

I just tried it, results in an empty png file. 




Re: [O] Firefox extension "Org-capture" stopped working after update

2017-08-16 Thread Adam Porter
Marcin Borkowski  writes:

> the title text says it all.  Anybody can confirm that?  How to configure
> capture in FF now?

Hi Marcin,

I'm not sure if you mean updating Firefox or Org.  But if it's Firefox,
well, Mozilla is killing off XUL extensions, and that probably includes
the Org-Capture extension.  I doubt that it is possible to rewrite it as
a WebExtension.

Firefox 56 is supposed to be the last version that supports XUL
extensions.  After Firefox 57 is released, that leaves you with a few
options:

1.  Try to build and install it as an XUL extension in a Firefox
"developer edition" build.  Supposedly that will remain possible, for a
while at least, but I don't know if they have confirmed that or
documented it.  I expect it would be unsupported, anyway.

2.  Use a ESR release of Firefox, which will keep supporting XUL until
an ESR based on Firefox >= 57 is released.

3.  Dump Firefox.  The bottom line is that they don't care about users
like us anymore.  I've been using Firefox since it was Phoenix beta, but
they aren't interested in retaining loyal users anymore; they just want
to chase Chrome users by making Firefox into Chrome.  (Of course, why
would content Chrome users switch from actual Chrome to Firefox Chrome?
Mozilla doesn't seem to grok this.  I suspect Mozilla will be dead or no
longer developing Firefox within a few years.)

For this option, probably the thing to do is try out Pale Moon.  Its
developers have committed to supporting XUL.  This is not my preferred
option, but I think it's the only viable one for those of us who want to
keep using XUL extensions; I've been using Pentadactyl for years and I
have no desire to give it up.  I hope Pale Moon will be added to
Debian/Ubuntu someday, because I don't want to have to build or install
it manually; but it is probably worth it anyway.

4.  If you continue using Firefox, you can replace most of the
functionality of the Org-Capture extension by using the
org-protocol-capture-html package.  The bookmarklets listed in its
readme let you easily capture pages or parts of pages to Org.

Hope this helps.




Re: [O] Firefox extension "Org-capture" stopped working after update

2017-08-16 Thread Samuel Wales
to the people who write these extensions and org-protocol, i am
grateful.  they are quite helpful as i often cannot type.



Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Berry, Charles

> On Aug 16, 2017, at 11:19 AM, Eric S Fraga  wrote:
> 
> On Wednesday, 16 Aug 2017 at 17:48, Berry, Charles wrote:
> 
> [...]
> 
>> org 9.0.9 and FWIW, I see this
> 
> [...]
> 
>> in org-babel-execute:octave
> 
> But I get the following error message from babel/octave:
> 
> error: invalid call to script /usr/share/octave/4.0.3/m/miscellaneous/ans.m
> error: evaluating argument list element number 1
> 
> Strange.  It looks it is expecting to collect the result from the script
> (ans).  What exactly did you use as the src block header?
> 

To be clear, I do not have either matlab or octave. I just glanced at the code 
and it seemed to do something along the lines of what your posting might have 
done when instead `:results graphics :file my.png' is given.  A critical piece 
is that org-babel-insert-result needs to have a nil result to avoid overwriting 
the file given in `:file my.png' as it seems to do for Neil.  I didn't see how 
that would happen for the example you gave.

Sorry if this was misdirection.

Chuck




Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Eric S Fraga
On Wednesday, 16 Aug 2017 at 17:48, Berry, Charles wrote:

[...]

> org 9.0.9 and FWIW, I see this

[...]

> in org-babel-execute:octave

But I get the following error message from babel/octave:

error: invalid call to script /usr/share/octave/4.0.3/m/miscellaneous/ans.m
error: evaluating argument list element number 1

Strange.  It looks it is expecting to collect the result from the script
(ans).  What exactly did you use as the src block header?

thanks,
eric

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-551-g92e8c8


signature.asc
Description: PGP signature


Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Berry, Charles

> On Aug 16, 2017, at 10:41 AM, Eric S Fraga  wrote:
> 
> On Wednesday, 16 Aug 2017 at 17:25, Berry, Charles wrote:
> 
> [...]
> 
>> I do not have matlab, but looking at the code in ob-matlab.el and
>> ob-octave.el, it seems that the usual header args should do:
>> 
>> :  :results graphics :file testplot.png
> 
> This doesn't work for me, at least for octave.  What version of org are
> you using?
> 

org 9.0.9 and FWIW, I see this

 (gfx-file (ignore-errors (org-babel-graphical-output-file params)))
 (result (org-babel-octave-evaluate
  session
  (if gfx-file
  (mapconcat 'identity
 (list
  "set (0, \"defaultfigurevisible\", \"off\");"
  full-body
  (format "print -dpng %s" gfx-file))
 "\n")
full-body)


in org-babel-execute:octave

Chuck




Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Eric S Fraga
On Wednesday, 16 Aug 2017 at 17:25, Berry, Charles wrote:

[...]

> I do not have matlab, but looking at the code in ob-matlab.el and
> ob-octave.el, it seems that the usual header args should do:
>
> :  :results graphics :file testplot.png

This doesn't work for me, at least for octave.  What version of org are
you using?

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-551-g92e8c8


signature.asc
Description: PGP signature


Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Berry, Charles

> On Aug 15, 2017, at 2:12 AM, Neil Jerram  wrote:
> 
> On 13/08/17 10:33, Uwe Brauer wrote:
>> Hi
>> 
>> I would like to execute some matlab code in org file (using GNU emacs 26
>> and the git version of org mode) and save the result of the plot command
>> in a png file, so I tried
>> 
>> #+begin_src matlab :session :exports both :file testplot.png
>> t=[0:0.1:1];
>> y=sin(t);
>> plot(t,y)
>> print -dpng  testplot.png
>> #+end_src
>> 
>> And also
>> #+begin_src matlab :results output latex :exports results  :file testplot.png
>> t=[0:0.1:1];
>> y=sin(t);
>> plot(t,y)
>> print -dpng  testplot.png
>> #+end_src
>> 

I do not have matlab, but looking at the code in ob-matlab.el and ob-octave.el, 
it seems that the usual header args should do:

:  :results graphics :file testplot.png

and delete the print statement in the last line.

I do not see this documented in (info "(org) results") as it is language 
specific. Following the page that (info "(org) Languages") points to leads to 


`http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-octave-matlab.html

which looks like  it is out-of-date. (Specifically, org-babel-execute:matlab 
calls org-babel-execute:octave which *now* sets the result to nil and places 
the print statement as needed when ~:results graphics~ is specified, but the 
example will fail under the new regime.)

Maybe a link to the Languages worg page should be added in (info "(org) 
results") and (sigh) maybe the worg pages can be updated to include revision 
dates?

HTH,

Chuck




Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Eric S Fraga
On Wednesday, 16 Aug 2017 at 12:33, Uwe Brauer wrote:

[...]

> BTW Eric, thanks for your reply, but a lot of your posts seem to be
> outside the thread, at least when I read them via gnus or thunderbird.
> Not sure who is the culprit.

Does this one thread better?

Thanks,
eric

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-551-g92e8c8


signature.asc
Description: PGP signature


Re: [O] Using Book class without 'parts' for Org-mode Export

2017-08-16 Thread R Jain
Hi Ian,Thanks for the reply. The part which I'm tripping over is:#+latex: \chapterauthor{by Mike Anderson}(add-to-list 'org-latex-classes           '("koma-book"              "\\documentclass{scrbook}"              ("\\chapter{%s}" . "\\chapter{%s}")              ("\\subsection{%s}" . "\\subsection*{%s}")              ("\\subsection{%s}" . "\\subsection*{%s}")              ("\\paragraph{%s}" . "\\paragraph*{%s}")              )	      )Where should I add this definition?My setup is:Main.texwriteup.texWriteup.tex is suppsed to have all the chapters without preamble. Main.tex has the preamble, abstract, \input{writeup}, and bibliography.Thanks,Rishabh
  

On Aug 16 2017, at 12:51 pm, li...@wilkesley.net wrote:


  On 2017-08-16 14:44, R Jain wrote:
> Hi Everyone,
> 
> My question is about using Org-mode Export to Latex, but starting with
> Chapter, then Section, and so on.
> 
> I found a solution on Stackexchange [1] but when I add that code to my
> init file, restart emacs, and add "#+LaTeX_CLASS: book_noparts" to my
> org file,  it apparently doesn't get read. The exported .tex is an
> itemized list.
> 
> Any help with what I'm doing wrong would be great help. Also, if
> there's a better way to make custom class files within the org-file
> I'm working on, please do let me know.
> 
> Thanks,
> RJ
> 
> Links:
> --
> [1]
> https://n1.nylas.com/link/7e7b7fc5c641bf88e42b688f208d6c1b7782ff4f8c6d4b77bb3d2eacf574a234/0?redirect=https%3A%2F%2Femacs.stackexchange.com%2Fquestions%2F33318%2Fexport-org-mode-subtrees-at-chapter-level-for-latex

Here is my setup using the koma-book class. This uses H1 as the chapter 
title. A typical chapter starts with:

** The Clubroom Project
#+latex: \chapterauthor{by Mike Anderson}


(add-to-list 'org-latex-classes
   '("koma-book"
  "\\documentclass{scrbook}"
  ("\\chapter{%s}" . "\\chapter{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
  )
)


In the file to be exported:

#+latex_class: koma-book
#+LATEX_CLASS_OPTIONS: [a5paper,openany,font 10pt]
#+latex_header: \makeatletter
#+latex_header: \newcommand{\chapterauthor}[1]{%
#+latex_header:   {\parindent0pt\vspace*{-5pt}%
#+latex_header:   \linespread{1.1}\large\scshape#1%
#+latex_header:   \par\nobreak\vspace*{35pt}}
#+latex_header:   \@afterheading%
#+latex_header: }
#+latex_header: \makeatother
#+latex_header: \graphicspath{{../../images/}}
#+latex_header: \usepackage{hyperref}
#+latex_header: \usepackage{pdfpages}
#+latex_header: \hypersetup{
#+latex_header: colorlinks,
#+latex_header: citecolor=black,
#+latex_header: filecolor=black,
#+latex_header: linkcolor=blue,
#+latex_header: urlcolor=black
#+latex_header: }
#+latex_header: \KOMAoptions{twoside=false}
#+latex_header: \usepackage{adjustbox}

The first chapter has:

#+latex: 
\includepdf{/home/ian/Documents/emacs/thecastle/images/frontcover.pdf}
#+latex: \setcounter{tocdepth}{2}
#+latex: \tableofcontents

This sets the TOC depthand adds the TOC at the start of the first 
chapter.

Hope that helps.

Ian.


  



Re: [O] Using Book class without 'parts' for Org-mode Export

2017-08-16 Thread lists

On 2017-08-16 14:44, R Jain wrote:

Hi Everyone,

My question is about using Org-mode Export to Latex, but starting with
Chapter, then Section, and so on.

I found a solution on Stackexchange [1] but when I add that code to my
init file, restart emacs, and add "#+LaTeX_CLASS: book_noparts" to my
org file,  it apparently doesn't get read. The exported .tex is an
itemized list.

Any help with what I'm doing wrong would be great help. Also, if
there's a better way to make custom class files within the org-file
I'm working on, please do let me know.

Thanks,
RJ

Links:
--
[1]
https://n1.nylas.com/link/7e7b7fc5c641bf88e42b688f208d6c1b7782ff4f8c6d4b77bb3d2eacf574a234/0?redirect=https%3A%2F%2Femacs.stackexchange.com%2Fquestions%2F33318%2Fexport-org-mode-subtrees-at-chapter-level-for-latex


Here is my setup using the koma-book class. This uses H1 as the chapter 
title. A typical chapter starts with:


** The Clubroom Project
#+latex: \chapterauthor{by Mike Anderson}


(add-to-list 'org-latex-classes
  '("koma-book"
 "\\documentclass{scrbook}"
 ("\\chapter{%s}" . "\\chapter{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}")
 ("\\paragraph{%s}" . "\\paragraph*{%s}")
 )
)


In the file to be exported:

#+latex_class: koma-book
#+LATEX_CLASS_OPTIONS: [a5paper,openany,font 10pt]
#+latex_header: \makeatletter
#+latex_header: \newcommand{\chapterauthor}[1]{%
#+latex_header:   {\parindent0pt\vspace*{-5pt}%
#+latex_header:   \linespread{1.1}\large\scshape#1%
#+latex_header:   \par\nobreak\vspace*{35pt}}
#+latex_header:   \@afterheading%
#+latex_header: }
#+latex_header: \makeatother
#+latex_header: \graphicspath{{../../images/}}
#+latex_header: \usepackage{hyperref}
#+latex_header: \usepackage{pdfpages}
#+latex_header: \hypersetup{
#+latex_header: colorlinks,
#+latex_header: citecolor=black,
#+latex_header: filecolor=black,
#+latex_header: linkcolor=blue,
#+latex_header: urlcolor=black
#+latex_header: }
#+latex_header: \KOMAoptions{twoside=false}
#+latex_header: \usepackage{adjustbox}

The first chapter has:

#+latex: 
\includepdf{/home/ian/Documents/emacs/thecastle/images/frontcover.pdf}

#+latex: \setcounter{tocdepth}{2}
#+latex: \tableofcontents

This sets the TOC depthand adds the TOC at the start of the first 
chapter.


Hope that helps.

Ian.



Re: [O] html export: pre.src support changed?

2017-08-16 Thread Jarmo Hurri

> 2. "pre code" works incorrectly (from my point of view)
> ---
>
> I can get my CSS file to do _something_ with the following change:
>
> pre code
> {
> margin: 0 auto;
> font-size: 0.9vw;
> width: 75em;
> color: white;
> background-color: #102e4e;
> border-radius: 10px;
> }
>
> However, the problem is that this changes only the background of the
> code text, not the entire "window".

Did some further studies. It turns out that in this particular case I
can get the blocks to color correctly by coloring just pre:

pre
{
margin: 0 auto;
font-size: 0.9vw;
width: 75em;
color: white;
background-color: #102e4e;
border-radius: 10px;
}

But I can't be expected to color all preformatted text similarly. Right?
There has to be a way to format the code windows only.

(Unfortunately there is no parent selector in CSS. Otherwise I could
select the pre that have a code descendant.)

Jarmo




[O] html export: pre.src support changed?

2017-08-16 Thread Jarmo Hurri

Greetings.

The following explanation is a bit long, so here is a summary:

1. "pre.src" formatting no longer seems to work in html export
2. "pre code" works, but incorrectly from my point of view.

I am looking for a fix.

Here is the longer explanation

1. pre.src does not work


I used to have a working CSS file for some programming teaching material
exported from Org. Something has changed, because earlier formatting
used pre.src in the following style:

pre.src
{
margin: 0 auto;
font-size: 0.9vw;
width: 75em;
color: white;
background-color: #102e4e;
border-radius: 10px;
}

In particular, background-color controlled the background of the entire
source block "window" in the exported html.

According to the manual, pre.src still controls formatting for source
code blocks:

http://orgmode.org/manual/CSS-support.html

However, when I export the same files right now, pre.src no longer
works. The change in the exported html files is obvious:

old export (pre.src worked)
 ...

new export (pre.src no longer works)
 ...

2. "pre code" works incorrectly (from my point of view)
---

I can get my CSS file to do _something_ with the following change:

pre code
{
margin: 0 auto;
font-size: 0.9vw;
width: 75em;
color: white;
background-color: #102e4e;
border-radius: 10px;
}

However, the problem is that this changes only the background of the
code text, not the entire "window". The effect can be seen here:

old export (code blocks colored correctly):
https://www.syk.fi/ohjelmointi/muuttuja.html

new export (code blocks colored incorrectly);
https://www.syk.fi/ohjelmointi-paivitys/muuttuja.html

How do I fix this? Thanks!

Jarmo




Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Adonay Felipe Nogueira
I think I know why, it seems that some email clients ignore the
"In-Reply-To" field, and just assume that the reply is in regards to a
matching "Subject" field.

Mx. Fraga's email messages *do have* have a "Subject" field, however,
strangely enough, the subject text doesn't appear in Gnus "Summary"
buffer, but the subject does reapear (in the message composition buffer)
if one is replying to the mailing list to his messages.

Also: I'm also using Gnus, but only Mx. Fraga's have this problem so
far. I also have seen other people using Gnus without problems. Don't
worry though, it's not that problematic. I would classify it as minor
because it can be investigated over time.

I *don't* know much about providing email services or hosting, but I
guess that the problem is between the email client and the service
provider of Mx. Fraga's email address.

-- 
- [[https://libreplanet.org/wiki/User:Adfeno]]
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre. Por favor, use o GNU Ring ou o Tox.
- Contato: [[https://libreplanet.org/wiki/User:Adfeno#vCard]]
- Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft
  Office, MP3, MP4, WMA, WMV.
- Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU
  GIMP, Inkscape SVG, JPG, LibreOffice (padrão ODF), OGG, OPUS, PDF
  (apenas sem DRM), PNG, TXT, WEBM.



Re: [O] Firefox extension "Org-capture" stopped working after update

2017-08-16 Thread Oleh Krehel
Same happened to me.

Downgraded Firefox on Ubuntu 16:

apt-cache show firefox | grep Version
sudo apt install firefox=45.0.2+build1-0ubuntu1
sudo apt-mark hold firefox

Next, about:config / xpinstall.signatures.required:=false.

Finally, install 0.3.0.xpi from the website.

There's an alternative addon that installs without a downgrade. But
that one doesn't seem to work.

regards,
Oleh

On Wed, Aug 16, 2017 at 2:58 PM, Marcin Borkowski  wrote:
> Hi all,
>
> the title text says it all.  Anybody can confirm that?  How to configure
> capture in FF now?
>
> TIA,
>
> --
> Marcin Borkowski
>



[O] Using Book class without 'parts' for Org-mode Export

2017-08-16 Thread R Jain
Hi Everyone,My question is about using Org-mode Export to Latex, but starting with Chapter, then Section, and so on.I found a solution on Stackexchange but when I add that code to my init file, restart emacs, and add "#+LaTeX_CLASS: book_noparts" to my org file,  it apparently doesn't get read. The exported .tex is an itemized list. Any help with what I'm doing wrong would be great help. Also, if there's a better way to make custom class files within the org-file I'm working on, please do let me know.Thanks,RJ



Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Eric S Fraga
On Wednesday, 16 Aug 2017 at 12:33, Uwe Brauer wrote:

[...]

> BTW Eric, thanks for your reply, but a lot of your posts seem to be
> outside the thread, at least when I read them via gnus or thunderbird.
> Not sure who is the culprit.
> It makes reading it a bit difficult.

Interesting and apologies.  I'm using gnus and mine seem threaded
fine.  I'll investigate.

-- 
: Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-551-g92e8c8


signature.asc
Description: PGP signature


[O] Firefox extension "Org-capture" stopped working after update

2017-08-16 Thread Marcin Borkowski
Hi all,

the title text says it all.  Anybody can confirm that?  How to configure
capture in FF now?

TIA,

-- 
Marcin Borkowski



Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Uwe Brauer
>>> "Eric" == Eric S Fraga  writes:

   > On Sunday, 13 Aug 2017 at 08:33, Uwe Brauer wrote:
   >> I would like to execute some matlab code in org file (using GNU emacs 26
   >> and the git version of org mode) and save the result of the plot command
   >> in a png file, so I tried

   > [...]

   >> #+begin_src matlab :results output latex :exports results  :file 
testplot.png
   >> t=[0:0.1:1];
   >> y=sin(t);
   >> plot(t,y)
   >> print -dpng  testplot.png 
   >> #+end_src

   > Maybe try with ":results file" instead of "output latex"?  Works for
   > octave (I don't have MATLAB).  That is:

   > #+begin_src matlab :results file :exports results  :file testplot.png
   > ...
   > #+end_src

In that case testplot.png contains zero bytes.

BTW Eric, thanks for your reply, but a lot of your posts seem to be
outside the thread, at least when I read them via gnus or thunderbird.
Not sure who is the culprit.
It makes reading it a bit difficult.




Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Uwe Brauer

   > On 13/08/17 10:33, Uwe Brauer wrote:

   > I guess the problem is that the Matlab line "print -dpng testplot.png"
   > is correctly writing the plot to testplot.png, as you want, but then
   > org-mode is overwriting that file because of the ":file testplot.png".
   > I would try deleting ":file testplot.png".

Yes something like this.


   > The meaning of ":results output" may be a bit language-dependent - I
   > don't know org-mode well enough to be sure about that yet - but in
   > general I would expect it to consist of the standard output of those
   > commands. So, for example, if you type "print -dpng testplot.png" and
   > Matlab responds with "Generated 'testplot.png'", I would expect
   > ":results output" to contain "Generated 'testplot.png'", not the PNG
   > data.

What is confusing me is that the testplot.png case does not always
contain ascii lines but sometimes is classified as corrupted png. (Using
the linux display command, or sometimes just as data using the linux file 
command)

   > Regards - Neil







Re: [O] babel, matlab export plot to png fails

2017-08-16 Thread Uwe Brauer
>>> "John" == John Kitchin  writes:

   > You need to get the contents of the png to get output. Maybe the type
   > command will do that. E.g. Add as the last line:

   > type testplot.png

Thanks but this did not work, neither.


Uwe 




Re: [O] tags-todo error with #+FILETAGS: inheritance

2017-08-16 Thread Julien Cubizolles
Just correcting an error in the title to something more relevant.

> When an entry inherits a tag from a #+FILETAGS: line, all its parents
> get matched by a tags-todo agenda, even when they don't have a todo
> keyword.
>
> Consider the following:
>
> --8<---cut here---start->8---
> (setq org-agenda-files '("/home/wilk/tmp/test-org/test-todo.org"))
> (setq org-agenda-custom-commands
>   (quote (
> ("wt" "Boulot"
>  (
>   (tags-todo "enseignement")
>   )
>  )
> )))
> (org-agenda)
> --8<---cut here---end--->8---
>
>
> with the following test-todo.org :
>
> --8<---cut here---start->8---
> #+FILETAGS: enseignement
> * Contenu
> ** TODO Cours électrocinétique
> --8<---cut here---end--->8---
>
> The agenda called by "org-agenda w t" displays the "Cours
> électrocinétique" (as it should) but also the "Contenu" even though it
> doesn't have a TODO keyword.
>
> The offending commit is:
>
> commit 942b6267a09e167ad3a546e83205601aa5c0704e
> Author: Nicolas Goaziou 
> Date:   Tue Apr 18 11:55:27 2017 +0200
> org-agenda: `tags-todo' command type includes DONE keywords
>
> Julien.