Re: [O] LaTeX export filter

2018-03-27 Thread Vikas Rawal
> 
> 
> 
>> 
>>> (while (string-match
>>> "\\(<\\([0-9]+\\)cid\\([0-9]+\\)?>[[:blank:]]*\\([^&]+\\)\\)" row)
>> 
>> Could it be that you need to change the last + to *?
>> Haven't tried it, mind you.
>> -- 
> 
> That does not change the result. Still pick only two.
> 
> Vikas
> 




Re: [O] LaTeX export filter

2018-03-27 Thread Vikas Rawal
> 
>> 
>> 
>>> 
 (while (string-match
"\\(<\\([0-9]+\\)cid\\([0-9]+\\)?>[[:blank:]]*\\([^&]+\\)\\)" row)
>>> 
>>> Could it be that you need to change the last + to *?
>>> Haven't tried it, mind you.
>>> -- 
>> 
> 
> The problem is in this part of the code:
> 
> (while (string-match "& \\| " row 0)
>   (setq row (replace-match "" nil nil row))
>   (decf start))
> 
> If I comment it, I get three \cmidrule latex commands, but with  and \\
> 
> Somehow, the above lines replace more than just  and \\.
> 
> Vikas
> 




[O] problems with attach after moving files

2018-03-27 Thread kevinbanjo
hi, I moved my org and data/ files to another machine and now when I go to
open an attachment I can't do it with org-attach open. I can however hit
enter on the heading like a link and it opens dired which then allows me to
select it. Any idea why this no longer works?


Re: [O] folding columns/rows in tables

2018-03-27 Thread Julien Cubizolles
Nicolas Goaziou  writes:

> Hello,
>
> Julien Cubizolles  writes:
>
>> I have some long tables with wide cells that are not easy to scroll
>> through. It would be convenient to fold some columns or rows. Has
>> someone managed it ?
>
> This is `C-c ' in master (for columns).

That is so great ! Thanks a lot, I must have missed it in the
changelogs.

Regards,

Julien.




Re: [O] folding columns/rows in tables

2018-03-27 Thread Nicolas Goaziou
Hello,

Julien Cubizolles  writes:

> I have some long tables with wide cells that are not easy to scroll
> through. It would be convenient to fold some columns or rows. Has
> someone managed it ?

This is `C-c ' in master (for columns).

Regards,

-- 
Nicolas Goaziou



Re: [O] preview embedded latex fragments error with my settings

2018-03-27 Thread Alan Schmitt
According to the log, you need to configure the export to use xelatex.

The error using xelatex is at this point, where it seems you should not
use math-mode:

l.86 $\LaTeX
$

Do you have this in your code? Did you try removing the enclosing $?

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2018-02: 408.35, 2017-02: 406.42


signature.asc
Description: PGP signature


[O] folding columns/rows in tables

2018-03-27 Thread Julien Cubizolles
I have some long tables with wide cells that are not easy to scroll
through. It would be convenient to fold some columns or rows. Has
someone managed it ?

Julien.




Re: [O] preview embedded latex fragments error with my settings

2018-03-27 Thread stardiviner

After run command, got error outputthe following output:

(I'm trying to make those settings buffer-local and can be toggled by a 
minor mode, so this can be separate with default setting, and enabled 
when needed)



#+begin_src shell :eval no
latex /tmp/orgtexhCLnu9.tex
#+end_src

#+RESULTS:
: This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Arch 
Linux) (preloaded format=latex)

:  restricted \write18 enabled.
: entering extended mode
: (./orgtexRknCCm.tex
: LaTeX2e <2017-04-15>
: Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
: (/usr/share/texmf-dist/tex/latex/base/article.cls
: Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
: (/usr/share/texmf-dist/tex/latex/base/size10.clo))
: (/usr/share/texmf-dist/tex/latex/graphics/color.sty
: (/usr/share/texmf-dist/tex/latex/graphics-cfg/color.cfg)
: (/usr/share/texmf-dist/tex/latex/graphics-def/dvips.def)
: (/usr/share/texmf-dist/tex/latex/graphics/dvipsnam.def))
: (/usr/share/texmf-dist/tex/latex/geometry/geometry.sty
: (/usr/share/texmf-dist/tex/latex/graphics/keyval.sty)
: (/usr/share/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
: (/usr/share/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
: (/usr/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
: (/usr/share/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty)
: (/usr/share/texmf-dist/tex/latex/fncychap/fncychap.sty)
: (/usr/share/texmf-dist/tex/latex/graphics/rotating.sty
: (/usr/share/texmf-dist/tex/latex/graphics/graphicx.sty
: (/usr/share/texmf-dist/tex/latex/graphics/graphics.sty
: (/usr/share/texmf-dist/tex/latex/graphics/trig.sty)
: (/usr/share/texmf-dist/tex/latex/graphics-cfg/graphics.cfg)))
: (/usr/share/texmf-dist/tex/latex/base/ifthen.sty))
: (/usr/share/texmf-dist/tex/latex/capt-of/capt-of.sty)
: (/usr/share/texmf-dist/tex/latex/amsfonts/amssymb.sty
: (/usr/share/texmf-dist/tex/latex/amsfonts/amsfonts.sty))
: (/usr/share/texmf-dist/tex/generic/ulem/ulem.sty)
: (/usr/share/texmf-dist/tex/latex/wrapfig/wrapfig.sty)
: (/usr/share/texmf-dist/tex/latex/oberdiek/grffile.sty
: (/usr/share/texmf-dist/tex/latex/oberdiek/kvoptions.sty
: (/usr/share/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)
: (/usr/share/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
: (/usr/share/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
: (/usr/share/texmf-dist/tex/generic/oberdiek/etexcmds.sty
: (/usr/share/texmf-dist/tex/generic/oberdiek/ifluatex.sty
: (/usr/share/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty))
: (/usr/share/texmf-dist/tex/latex/booktabs/booktabs.sty)
: (/usr/share/texmf-dist/tex/latex/tools/tabularx.sty
: (/usr/share/texmf-dist/tex/latex/tools/array.sty))
: (/usr/share/texmf-dist/tex/latex/amsmath/amsmath.sty
: For additional information on amsmath, use the `?' option.
: (/usr/share/texmf-dist/tex/latex/amsmath/amstext.sty
: (/usr/share/texmf-dist/tex/latex/amsmath/amsgen.sty))
: (/usr/share/texmf-dist/tex/latex/amsmath/amsbsy.sty)
: (/usr/share/texmf-dist/tex/latex/amsmath/amsopn.sty))
: (/usr/share/texmf-dist/tex/latex/base/textcomp.sty
: (/usr/share/texmf-dist/tex/latex/base/ts1enc.def))
: (/usr/share/texmf-dist/tex/latex/tools/longtable.sty)
: (/usr/share/texmf-dist/tex/latex/float/float.sty)
: (/usr/share/texmf-dist/tex/xelatex/xunicode/xunicode.sty
:
: ! LaTeX Error: *** this package currently works only with XeTeX ***
:  You are not using XeTeX, so we are exiting cleanly!
:  Continuing may lead to 'unavailable font metrics' errors!
: .
:
: See the LaTeX manual or LaTeX Companion for explanation.
: Type  H   for immediate help.
:  ...
:
: l.113 ...sname\relax\expandafter\notXeTeXformat\fi
:
: ?
: ) (/usr/share/texmf-dist/tex/latex/tools/indentfirst.sty)
: (/usr/share/texmf-dist/tex/latex/xcolor/xcolor.sty
: (/usr/share/texmf-dist/tex/latex/graphics-cfg/color.cfg))
: (/usr/share/texmf-dist/tex/latex/fontspec/fontspec.sty
: (/usr/share/texmf-dist/tex/latex/l3packages/xparse/xparse.sty
: (/usr/share/texmf-dist/tex/latex/l3kernel/expl3.sty
: (/usr/share/texmf-dist/tex/latex/l3kernel/expl3-code.tex)
: (/usr/share/texmf-dist/tex/latex/l3kernel/l3dvips.def)))
:
: 
: !
: ! Fatal fontspec error: "cannot-use-pdftex"
: !
: ! The fontspec package requires either XeTeX or LuaTeX.
: !
: ! You must change your typesetting engine to, e.g., "xelatex" or
: ! "lualatex"instead of "latex" or "pdflatex".
: !
: ! See the fontspec documentation for further information.
: !
: ! For immediate help type H <


After I change compile command to:

$ xelatex -8bit --shell-escape  -interaction=nonstopmode orgtexRknCCm.tex

I got error(too long, so I put it in attachment)

This is XeTeX, Version 3.14159265-2.6-0.8 (TeX Live 2017/Arch Linux) (preloaded format=xelatex 2018.3.5)  27 MAR 2018 18:11
entering extended mode
 \write18 enabled.
 %&-line parsing enabled.
**orgtexRknCCm.tex
(./orgtexRknCCm.tex
LaTeX2e <2017-04-15>
Babel <3.18> and hyphenation patterns for 84 language(s) loaded.
(/usr/share/texmf-dist/tex/latex/base/article.cls

[O] [SOLVED] let org-git-link.el suport Magit related buffers

2018-03-27 Thread stardiviner

Thanks for your suggestion. This is great.


On 03/27/2018 02:04 PM, Daniel Kraus wrote:

Hi!

stardiviner  writes:


I hope can combine Org-mode links with Magit through `org-git-link.el`.
[...]
Is there anyone want to or can implement this?

There is https://github.com/magit/orgit

Cheers,
   Daniel




Re: [O] #+bind options ignored during async export

2018-03-27 Thread Julien Cubizolles
Nicolas Goaziou  writes:

> Hello,
>
> Julien Cubizolles  writes:

> I don't think it is related. Maybe `org-export-allow-bind-keywords' is
> nil in your async configuration.

You're right, it was nil. When it is set, #+BIND: works as
expected. Thanks.

Julien.




Re: [O] Temporary delay like --2d does not work correctly.

2018-03-27 Thread hhkg
Things got good on my side with 9.1.9 in org-plus-contrib-20180327.

Thanks a lot for your great help, Nicolas!

Thanks,
hhkg

On Tue, Mar 27, 2018 at 5:51 AM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote:

> Hello, h...@protonmail.com writes: > Hi, > > With the latest release, --2d 
> not work correctly. > Use the test case in 
> http://lists.gnu.org/archive/html/emacs-orgmode/2013-02/msg00554.html > > * 
> TODO 1a > SCHEDULED: <2018-02-24 Sat +1m --2d> > * TODO 2a > SCHEDULED: 
> <2018-03-24 Sat +1m --2d> > * TODO 1b > SCHEDULED: <2018-02-25 Sun +1m --2d> 
> > * TODO 2b > SCHEDULED: <2018-03-25 Sun +1m --2d> > * TODO 1c > SCHEDULED: 
> <2018-02-26 Mon +1m --2d> > * TODO 2c > SCHEDULED: <2018-03-26 Mon +1m --2d> 
> > > In the agenda of today ([2018-03-26 Mon]) shows 1a 2a 1b 2b 1c, > but 1a 
> 2a 1b 1c are expected. > > Please help fix it. Fixed. Thank you. Regards, -- 
> Nicolas Goaziou

Re: [O] preview embedded latex fragments error with my settings

2018-03-27 Thread Alan Schmitt
On 2018-03-27 08:57, stardiviner  writes:

> I have divsvgm program on my arch linuxsystem. And "/tmp/orgtexhClnu9.dvi" 
> does
> not exist, it is not produced. Only "/tmp/orgtexhClnu9.tex" and
> "/tmp/orgtexhClnu9.log" two file.

What does the log file say? There will probably be a hint about what is
wrong. (The fact that it is there suggests latex started running, but
did not produce the dvi file.)

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2018-02: 408.35, 2017-02: 406.42


signature.asc
Description: PGP signature


Re: [O] [PATCH] support insert link without write result to :file link

2018-03-27 Thread Nicolas Goaziou
Hello,

stardiviner  writes:

> I added this patch to handle posted question case.
>
> This will improve Org-mode links with org-babel resulta lot. Make
> Org-mode can insert link as user want at many places.
>
> Hope can be merged.

Thank you.

However, before thinking about merging it, it requires documentation and
tests. You also need to update `org-babel-common-header-args-w-values'.

Also, there are still failing tests from the last change to :results
behaviour in master, if you ever have time to look into it.

Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH v2 0/3] org-sbe fixes

2018-03-27 Thread Nicolas Goaziou
Hello,

Vladimir Panteleev  writes:

> On 2018-03-26 21:42, Nicolas Goaziou wrote:
>> I'm talking about call_foo() syntax. I see no fundamental difference
>> between (org-sbe-v2 "func" ...) and call_func(...).
>
> Sorry, how do you invoke call_func from lisp, or a table formula?

I'm not sure there is a real use-case for the first case. Remember you
can chain source blocks.

The second is the reason why I'm suggesting to move org-sbe-vs to
"org-table.el".

Regards,

-- 
Nicolas Goaziou



Re: [O] let org-git-link.el suport Magit related buffers

2018-03-27 Thread Daniel Kraus
Hi!

stardiviner  writes:

> I hope can combine Org-mode links with Magit through `org-git-link.el`.
> [...]
> Is there anyone want to or can implement this?

There is https://github.com/magit/orgit

Cheers,
  Daniel