[O] Emacs sagmentation fault error on a big org-mode file movement

2017-12-15 Thread numbch...@gmail.com
I have a big org-mode file which is overview at startup. When I navigate
around with [C-v] and [M-v]. The Emacs crashed.

Here is the output from command-line:
```
Fatal error 11: Segmentation fault
Backtrace:
emacs[0x51195e]
emacs[0x4f739a]
emacs[0x50fe3e]
emacs[0x510058]
emacs[0x5100dc]
/usr/lib/libpthread.so.0(+0x11da0)[0x7fcb1cdcada0]
emacs[0x4caa74]
emacs[0x45b2b5]
emacs[0x4613e9]
emacs[0x41eb42]
emacs[0x42087c]
emacs[0x42157a]
emacs[0x421567]
emacs[0x421567]
emacs[0x42351d]
emacs[0x458015]
emacs[0x501893]
emacs[0x50465a]
emacs[0x5061dc]
emacs[0x56c85e]
emacs[0x4f7754]
emacs[0x56c7cd]
emacs[0x4f76eb]
emacs[0x4fc313]
emacs[0x4fc636]
emacs[0x41b302]
/usr/lib/libc.so.6(__libc_start_main+0xea)[0x7fcb1bf30f4a]
emacs[0x41c01a]
[1]17259 segmentation fault (core dumped)  emacs --debug-init
```
Is there a way to debug this?
I know it is not possible to invoke edebug on anything internal Emacs.
So is there any system (Linux)  solution?
Like system process dump or traceback.

I'm using latest version `master` branch source code Org-mode.
Emacs is from compiled `master` branch  source code too.

[stardiviner] GPG key ID: 47C32433
IRC(freeenode): stardiviner Twitter:  @numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 2433
Blog: http://stardiviner.github.io/


Re: [O] export entities inside code/verbatim markup?

2017-12-15 Thread Matt Price
On Fri, Dec 15, 2017 at 11:28 AM, Eric S Fraga  wrote:

> On Friday, 15 Dec 2017 at 16:19, Kaushal Modi wrote:
> > I believe that Matt wants to render the entities inside the verbatim/code
> > markup.
>
> Ah, I did completely misunderstand his question!   Thanks.
>
> > To do what you want, I would unleash the power of C-x 8 RET.
>
> I like your suggestion of adding bindings to the C-x 8 map.  In general,
> however, I find using the tex input method works really well, allowing
> me to simply type \to when I want a right arrow.  The whole input method
> mechanism in Emacs is fantastic.
>
> Anyway, sorry Matt for misunderstanding your question.
>

oops sorry I tried to send that last email earlier.  I think my question
was unclear.  And thank you Kaushal! i might even define an abbrev to
replace \rarr with the unicode arrow.


> eric
>
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b
>


Re: [O] export entities inside code/verbatim markup?

2017-12-15 Thread Matt Price
On Fri, Dec 15, 2017 at 10:48 AM, Eric S Fraga  wrote:

> On Friday, 15 Dec 2017 at 10:40, Matt Price wrote:
> > Of particular value in both Chrome and Firefox is the "Javascript
> > Consoles," accessible from the developer tools: ~Tools \rarr Web
> Developer
> > \rarr Console~ or ~Menu \rarr More Tools \rarr Developer \rarr Console~
> >
> > test.html (excluding head, postamble, etc):
> >
> > Of particular value in both Chrome and Firefox is
> > the Javascript Consoles, accessible from the developer
> > tools: Tools \rarr Web Developer \rarr Console or
> > Menu \rarr More Tools \rarr Developer \rarr
> > Console
>
> So what is the problem?  The text in ~...~ markup *is* being exported to
> HTML.  What did you expect to see instead?  I am confused and maybe
> misunderstood what you were asking.
>
>
ah, I meant, the \rarr entities are not exported as html arrow entities,
but instead as plain text, \rarr. My question was poorly phrased, I think.
And yes, I think this is the expected result. It's just that I would like
to process the entities on export.

> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b
>


Re: [O] Error with git-fetch from org repo

2017-12-15 Thread Nick Dokos
Alex Branham  writes:

> Hello -
>
> I've been trying to git fetch from the org repo
> (git://orgmode.org/org-mode.git) today and keep getting this error:
>
> Fetching origin
> fatal: read error: Connection reset by peer
> error: Could not fetch origin
>
> Has anyone else had problems connecting?
>

Yes, it's still giving that error.

-- 
Nick




[O] Error with git-fetch from org repo

2017-12-15 Thread Alex Branham
Hello -

I've been trying to git fetch from the org repo
(git://orgmode.org/org-mode.git) today and keep getting this error:

Fetching origin
fatal: read error: Connection reset by peer
error: Could not fetch origin

Has anyone else had problems connecting?

Thanks,
Alex



[O] bug#29722: issues with some function declarations

2017-12-15 Thread Nicolas Goaziou
Glenn Morris  writes:

> Thanks. I think that will have introduced a compilation warning:
>
>  In end of data:
>  org-duration.el:448:1:Warning: the function 'org-trim' is not known to
>  be defined.

Indeed! Also fixed. Thank you.

Regards,





Re: [O] Lists with bullets and checkboxes in beamer

2017-12-15 Thread Nicolas Goaziou
Hello,

Eric S Fraga  writes:

> On Tuesday, 12 Dec 2017 at 17:24, Ken Mankoff wrote:
>> Hi List,
>>
>> I have some lists with checkboxes like this:
>>
>> + [X] Foo
>> + [ ] Bar
>>
>>
>> When I export these to Beamer, I get both a bullet and a [] box. The
>> bullet is redundant and adds noise to the slide. Is there a way to not
>> have the bullet when checkboxes are present?
>
> I've had a look at the code, which seems to be in ox-latex, and I cannot
> understand why beamer export acts differently to LaTeX.  Something to do
> with the :tag property but I really don't understand it.  Maybe somebody
> else can have a look (org-latex-item in ox-latex.el, approximately line
> 2182 and following).

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



[O] bug#29722: issues with some function declarations

2017-12-15 Thread Glenn Morris

Thanks. I think that will have introduced a compilation warning:

 In end of data:
 org-duration.el:448:1:Warning: the function 'org-trim' is not known to
 be defined.





Re: [O] Can export the files with bibliography only to LaTeX

2017-12-15 Thread Tim Cross

The saddest part of this message is the last line about your publishers
also requiring word doc! A long time since I had to deal with
publishers, but at least they use to require Latex (albeit often with
weird *.sty files!).

After 17 years working in an 'admin' area of a University, I got to the
end of my tether and resigned 3 weeks ago. A big part of this was due to
the extent the administrative arm is now dictating direction and a
feeling the tail is now wagging the dog. Too much of what is being
required is based on making the administration 'efficient' rather than
focusing on making teaching, learning and research effective.

Good news is 7 days after finishing, I got a new position within a
research centre where my role is 100% technical, I'm free to use
whatever 'tool' I want provided I produce the final outcome i.e. good
looking presentations and documents (all org and Latex!) and solid
technical solutions.

Like others who have replied, Pandoc was my 'goto' solution for dealing
with administration. It is an incredibly powerful tool and worth some
time investment IMO.

Tim

Melleus  writes:

> Eric S Fraga  writes:
>
>> On Thursday, 14 Dec 2017 at 10:11, Adonay Felipe Nogueira wrote:
>>> Indeed, Pandoc is a way out ;)
>>>
>>> I just would advise against converting from LaTeX to Word DOC.
>>
>> [...]
>>
>>> Relying on these formats such as DOC and DOCX only serve to
>>> make people more dependent on the non-free software behind these.
>>
>> I am sympathetic to these views but unfortunately it's not always
>> possible.  My university, for instance, requires me to prepare exam
>> scripts in DOC (hence my related email a few minutes ago... my yearly
>> task of preparing scripts is upon me).  I hate it but I have no choice.
>
> Yes, to take the choise away from customer is very powerful business
> strategy. And a very destructive one either, as many bright minds are
> wasted on creating products that could not compete if not only those
> artificial "standards" supported not by logical reasoning, but by
> interests of the most powerful players.
>
> So I need to adopt DOC/DOCX in my workflow somehow. It is required by my
> university and by my publishers also.


-- 
Tim Cross



[O] bug#29722: issues with some function declarations

2017-12-15 Thread Nicolas Goaziou
Hello,

Glenn Morris  writes:

> Package: org-mode
> Severity: minor
>
> "make check-declare" reports the following issues:
>
> org/org-compat.el:40:Warning (check-declare): said 'org-table-end' was defined
> in unknown file: Malformed declaration
> org/org-footnote.el:48:Warning (check-declare): said 'org-fill-paragraph' was
> defined in org/org.el: arglist mismatch
> org/org-compat.el:35:Warning (check-declare): said 'org-at-table.el-p' was
> defined in org/org.el: arglist mismatch
> org/ob-core.el:77:Warning (check-declare): said 'org-number-sequence' was
> defined in org/org-compat.el: obsolete alias
> org/ob-core.el:85:Warning (check-declare): said 'org-src-coderef-format' was
> defined in org/org-src.el: arglist mismatch
> org/org-duration.el:54:Warning (check-declare): said 'org-trim' was defined in
> org/org-trim.el: file not found

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou





[O] Confusing org-cycle invocation when cursor is in invisible text

2017-12-15 Thread Ruy Exel
I feel this issue might have already been raised here but after
researching it I could not find anything relevant.  So please ignore
this message and excuse me if I am returning to something already
discussed in this group.


Consider the following simple tree structure

-

* Trees
** Pine
It is a conifer
** Oak
Place cursor here ->
It belongs to the genus Quercus

-

If you place the cursor where indicated (i.e. after the sentence
"Place cursor here ->" above) and press  (org-shifttab),
your buffer will show

* Trees...

with the cursor placed on the first of the three dots.  If you then go
to the kitchen to prepare a coffee and come back, you will probably
not going to remember where the cursor was before the visibility went
to the OVERVIEW state.  Suppose you then decide to expand your tree by
pressing  (org-cycle) without having changed cursor position.  In
this case your buffer will turn to

* Trees...
** Oak
Place cursor here ->
It belongs to the genus Quercus

and you might then be led to thinking that your header "Trees" has
only one sub-header, namely "Oak".  Yes I know that the three dots
after "Trees" is meant to indicate that there is still some hidden
text but, given that your intention was to expand "Trees" and that you
pressed the correct key for this purpose you might (incorrectly) feel
assured that you achieved the appropriate goal and hence not pay due
attention to the three dots.

The point I want to raise is that I believe users should not be
required to remember the position of the cursor when it falls inside
hiddent text.  Even more so, the state of the system at any given time
should not depend on said position.

Thus, after the first press of , above, the cursor should
go by default to the beginning (maybe the end) of the hidden text.

By the way, this behavior is already adopted when text becomes hidden
due to a call to org-table-toggle-column-width.

Regards,
Ruy



Re: [O] advice please: best way to export to DOC(X) with maths

2017-12-15 Thread Grant Rettke
Write it in Org. Export to Pandoc file pandoc-A.

Export Pandoc file pandoc-A to Word file word-A. Send that to your
peers for review.

Export Word file word-A to Pandoc file pandoc-B.

Get the Word from your peers, the file with changes from their review,
word-C. Export it to pandoc-C

Do a diff between pandoc-B and pandoc-C. Integrate the results into
your original Org file.
Sincerely,

Grant Rettke

(accidentally replied off list)
Sincerely,

Grant Rettke


On Fri, Dec 15, 2017 at 8:54 AM, Tim O'Callaghan  wrote:
> Does anyone know of a good round trip/review workflow for word documents?
> I'm interested in generating documents and processing feedback/comments,
> especially with word document tracking.
>
> On 15 December 2017 at 14:30, Eric S Fraga  wrote:
>>
>> On Friday, 15 Dec 2017 at 13:58, Fabrice Popineau wrote:
>> > The best way  is probably to generate a PDF with LaTeX
>> > and to open it with MS-Word. Yes, it can do that, and the math import
>> > is quite good (for what I have seen, at least as good as any other
>> > alternative option).
>>
>> Interesting.  I don't use MS Word (I'm on Linux on all of my systems)
>> but may ask somebody to check this out for me.  LibreOffice almost works
>> importing the PDF generated via LaTeX but not quite.  OneDrive (web
>> interface) doesn't quite work either.
>>
>> But pandoc is handling most of what I need.
>>
>> thanks,
>> eric
>>
>> --
>> Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b
>
>



[O] bug#29722: issues with some function declarations

2017-12-15 Thread Glenn Morris
Package: org-mode
Severity: minor

"make check-declare" reports the following issues:

org/org-compat.el:40:Warning (check-declare): said 'org-table-end' was defined
in unknown file: Malformed declaration
org/org-footnote.el:48:Warning (check-declare): said 'org-fill-paragraph' was
defined in org/org.el: arglist mismatch
org/org-compat.el:35:Warning (check-declare): said 'org-at-table.el-p' was
defined in org/org.el: arglist mismatch
org/ob-core.el:77:Warning (check-declare): said 'org-number-sequence' was
defined in org/org-compat.el: obsolete alias
org/ob-core.el:85:Warning (check-declare): said 'org-src-coderef-format' was
defined in org/org-src.el: arglist mismatch
org/org-duration.el:54:Warning (check-declare): said 'org-trim' was defined in
org/org-trim.el: file not found





Re: [O] advice please: best way to export to DOC(X) with maths

2017-12-15 Thread Adonay Felipe Nogueira
A few weeks ago I made a suggestion similar to what you want, see [1].

[1] 
.

2017-12-15T15:54:06+0100 Tim O'Callaghan wrote:
> Does anyone know of a good round trip/review workflow for word documents? 
> I'm interested in generating documents and processing feedback/comments,
> especially with word document tracking.

-- 
- https://libreplanet.org/wiki/User:Adfeno
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre. Por favor, veja formas de se comunicar
  instantaneamente comigo no endereço abaixo.
- 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] Poll: new keybinding for org-insert-structure-template?

2017-12-15 Thread Eric Abrahamsen
Rasmus  writes:

> Kaushal Modi  writes:
>
>> On Fri, Dec 15, 2017 at 6:23 AM Rasmus  wrote:
>>
>>> The only way it’s "bad" is in the sense it limits the flexibility of
>>> snippets, like ">> I can no longer have "> May be have "
> I wouldn’t really like that.
>
>> I missed this in the original conversation, but in the cases where plain
>> source/export blocks are inserted, does the point move to where the
>> language/backend needs to be typed?
>
> When using Org Tempo an extra space is always inserted.  It probably
> should only do it with blocks that support arguments, actually.  ATM I
> don’t think spaces are inserted when using
> ‘org-insert-structure-template’, but I they’ll probably be consistent
> eventually.

I think the idea was that for src and export blocks, where you're likely
to be adding additional parameters, point is moved to the end of the
#+begin line. Actually I think that's what happens now.




[O] Strange, issue when I hit word wrap limit.

2017-12-15 Thread Richard Fieldsend
Dear Gurus,
I have an odd issue with org-mode, which I'm hoping people can help with.

Background:

I recently decided to declare Emacs bankruptcy, and started building a
fresh new Emacs.

To do this I pulled a copy of the source from github, built it and then
started on my initialisation files.  As much as possible I have been using
built in customisations or I have also built the extensions from github
code.

I keep a folder in home called 'emacsLisp' which I populate with .emacs and
a group of subject based files (emacsLatex.el, emacsExperimental.el etc)
which I link in from .emacs.  I then have a soft link to .emacs in the home
folder.

The latest thing I have added in has been org-mode, and as before, I have
pulled it from source and built it using 'make autoloads'

On my home laptop org-mode works as expected (I have a minimal
installation, using org-bullets and it timestamp when a todo is completed,
but I haven't gone hog wild yet).

However, with the same code on my work computer when I am writing text in
org-mode and the cursor reaches the end of the line and should wrap I get
an error that flashes up in the buffer at the foot of the screen.

The error message reads:

org-element--cache-find: avl-tree--dummyroot accessing a non-avl-tree-

Google has failed to find an answer.

I have tried installing org-mode from the package manager on my work
computer, but the problem persists.

Any thoughts  gratefully received

Richard
--


Re: [O] export entities inside code/verbatim markup?

2017-12-15 Thread Eric S Fraga
On Friday, 15 Dec 2017 at 16:19, Kaushal Modi wrote:
> I believe that Matt wants to render the entities inside the verbatim/code
> markup.

Ah, I did completely misunderstand his question!   Thanks.

> To do what you want, I would unleash the power of C-x 8 RET.

I like your suggestion of adding bindings to the C-x 8 map.  In general,
however, I find using the tex input method works really well, allowing
me to simply type \to when I want a right arrow.  The whole input method
mechanism in Emacs is fantastic.

Anyway, sorry Matt for misunderstanding your question.

eric

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b


signature.asc
Description: PGP signature


Re: [O] export entities inside code/verbatim markup?

2017-12-15 Thread Kaushal Modi
On Fri, Dec 15, 2017 at 10:49 AM Eric S Fraga  wrote:

> On Friday, 15 Dec 2017 at 10:40, Matt Price wrote:
> > tools: Tools \rarr Web Developer \rarr Console or
>
> So what is the problem?  The text in ~...~ markup *is* being exported to
> HTML.  What did you expect to see instead?  I am confused and maybe
> misunderstood what you were asking.
>

I believe that Matt wants to render the entities inside the verbatim/code
markup.

@Matt: Verbatim/markup blocks simply keep everything inside.. verbatim.
Because then how would some literally print \rarr if they wanted too..
Example: What if someone wanted to export: "Type ~\rarr~ to export \rarr".
It would be highly confusing if entities got interpreted in verbatim too :)

To do what you want, I would unleash the power of C-x 8 RET.

If you want to include the right arrow in the verbatim blocks, instead of
typing "\rarr", do C-x 8 RET, type "right arrow" and hit return again..
\rarr will be inserted in the buffer.. I mean → will be inserted literally.

I like inserting verbatim arrows too. So after I got tired of C-x 8 RET
"right arrow", I just bound the  key binding in the C-x 8 map to
directly insert .

=
(use-package iso-transl
  :defer 10
  :config
  (progn
;; Add custom bindings to "C-x 8" map
(dolist (binding
 '(
   ;; 
   ;; arrows
   ("" . [?→]) ; rightwards arrow
   (""  . [?←]) ; leftwards arrow
   ("". [?↑]) ; upwards arrow
   (""  . [?↓]) ; downwards arrow
   ;; 
   ))
  (define-key iso-transl-ctl-x-8-map (kbd (car binding)) (cdr
binding)
=

With the above code, I just do C-x 8  to insert →.

Full code:
https://github.com/kaushalmodi/.emacs.d/blob/master/setup-files/setup-unicode.el

Hope that helps.
-- 

Kaushal Modi


Re: [O] export entities inside code/verbatim markup?

2017-12-15 Thread Eric S Fraga
On Friday, 15 Dec 2017 at 10:40, Matt Price wrote:
> Of particular value in both Chrome and Firefox is the "Javascript
> Consoles," accessible from the developer tools: ~Tools \rarr Web Developer
> \rarr Console~ or ~Menu \rarr More Tools \rarr Developer \rarr Console~
>
> test.html (excluding head, postamble, etc):
>
> Of particular value in both Chrome and Firefox is
> the Javascript Consoles, accessible from the developer
> tools: Tools \rarr Web Developer \rarr Console or
> Menu \rarr More Tools \rarr Developer \rarr
> Console

So what is the problem?  The text in ~...~ markup *is* being exported to
HTML.  What did you expect to see instead?  I am confused and maybe
misunderstood what you were asking.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b


signature.asc
Description: PGP signature


Re: [O] export entities inside code/verbatim markup?

2017-12-15 Thread Matt Price
On Fri, Dec 15, 2017 at 10:03 AM, Eric S Fraga  wrote:

> On Friday, 15 Dec 2017 at 09:52, Matt Price wrote:
> > IIUC, org does not by default export entities contained inside ~code~ and
> > =verbatim= markup.
>
> it does for me...  what happens when you try?  can you post a small
> example?
>
>
test.org:

Of particular value in both Chrome and Firefox is the "Javascript
Consoles," accessible from the developer tools: ~Tools \rarr Web Developer
\rarr Console~ or ~Menu \rarr More Tools \rarr Developer \rarr Console~

test.html (excluding head, postamble, etc):

Of particular value in both Chrome and Firefox is
the Javascript Consoles, accessible from the developer
tools: Tools \rarr Web Developer \rarr Console or
Menu \rarr More Tools \rarr Developer \rarr
Console


org-export-filter-entity-functions is nil
org-export-with-entities is t

org release_9.1.4-206-g4b80c6
emacs 27.0.50

I guess there may be other parts of my setup which are screwed up, but am
not sure where else to look?

> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b
>


Re: [O] export entities inside code/verbatim markup?

2017-12-15 Thread Eric S Fraga
On Friday, 15 Dec 2017 at 09:52, Matt Price wrote:
> IIUC, org does not by default export entities contained inside ~code~ and
> =verbatim= markup.

it does for me...  what happens when you try?  can you post a small
example?

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b


signature.asc
Description: PGP signature


Re: [O] export entities inside code/verbatim markup?

2017-12-15 Thread Matt Price
On Fri, Dec 15, 2017 at 9:52 AM, Matt Price  wrote:

> IIUC, org does not by default export entities contained inside ~code~ and
> =verbatim= markup. Is there any way to get around that? I have lots of
> markup like this:
>
> ~Tools \rarr Web Developer \rarr Console~
>
> in various help texts. If there's a way to push this out to markdown or
> HTML I'd be very grateful to learn of it! Should I maybe be advising
> org-md-verbatim, for instance? Or am I just misusing hte markup here?
>
> Thank you all!
>

meant to say, you can find an example of why I use that markup here:

https://digitalhistory.github.io/dh-website/tools/setup/#web-browser

(thanks to Kaushal for ox-hugo, which makes this possible! site and deploy
are still WIP though!)

matt
>


Re: [O] advice please: best way to export to DOC(X) with maths

2017-12-15 Thread Tim O'Callaghan
Does anyone know of a good round trip/review workflow for word documents?
I'm interested in generating documents and processing feedback/comments,
especially with word document tracking.

On 15 December 2017 at 14:30, Eric S Fraga  wrote:

> On Friday, 15 Dec 2017 at 13:58, Fabrice Popineau wrote:
> > The best way  is probably to generate a PDF with LaTeX
> > and to open it with MS-Word. Yes, it can do that, and the math import
> > is quite good (for what I have seen, at least as good as any other
> > alternative option).
>
> Interesting.  I don't use MS Word (I'm on Linux on all of my systems)
> but may ask somebody to check this out for me.  LibreOffice almost works
> importing the PDF generated via LaTeX but not quite.  OneDrive (web
> interface) doesn't quite work either.
>
> But pandoc is handling most of what I need.
>
> thanks,
> eric
>
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b
>


[O] export entities inside code/verbatim markup?

2017-12-15 Thread Matt Price
IIUC, org does not by default export entities contained inside ~code~ and
=verbatim= markup. Is there any way to get around that? I have lots of
markup like this:

~Tools \rarr Web Developer \rarr Console~

in various help texts. If there's a way to push this out to markdown or
HTML I'd be very grateful to learn of it! Should I maybe be advising
org-md-verbatim, for instance? Or am I just misusing hte markup here?

Thank you all!
matt


Re: [O] advice please: best way to export to DOC(X) with maths

2017-12-15 Thread Eric S Fraga
On Friday, 15 Dec 2017 at 13:58, Fabrice Popineau wrote:
> The best way  is probably to generate a PDF with LaTeX
> and to open it with MS-Word. Yes, it can do that, and the math import
> is quite good (for what I have seen, at least as good as any other
> alternative option).

Interesting.  I don't use MS Word (I'm on Linux on all of my systems)
but may ask somebody to check this out for me.  LibreOffice almost works
importing the PDF generated via LaTeX but not quite.  OneDrive (web
interface) doesn't quite work either.

But pandoc is handling most of what I need.

thanks,
eric

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b


signature.asc
Description: PGP signature


Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-15 Thread Kaushal Modi
On Fri, Dec 15, 2017 at 6:23 AM Rasmus  wrote:

> The only way it’s "bad" is in the sense it limits the flexibility of
> snippets, like " I can no longer have "

Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-15 Thread Rasmus
Kaushal Modi  writes:

> On Fri, Dec 15, 2017 at 6:23 AM Rasmus  wrote:
>
>> The only way it’s "bad" is in the sense it limits the flexibility of
>> snippets, like "> I can no longer have "
>
> May be have " I missed this in the original conversation, but in the cases where plain
> source/export blocks are inserted, does the point move to where the
> language/backend needs to be typed?

When using Org Tempo an extra space is always inserted.  It probably
should only do it with blocks that support arguments, actually.  ATM I
don’t think spaces are inserted when using
‘org-insert-structure-template’, but I they’ll probably be consistent
eventually.

Rasmus

-- 
To err is human. To screw up 10⁶ times per second, you need a computer



Re: [O] advice please: best way to export to DOC(X) with maths

2017-12-15 Thread Fabrice Popineau
The best way  is probably to generate a PDF with LaTeX
and to open it with MS-Word. Yes, it can do that, and the math import
is quite good (for what I have seen, at least as good as any other
alternative option).

Fabrice

2017-12-14 13:18 GMT+01:00 Eric S Fraga :

> Hello,
>
> almost all the writing I do that is intended to be exported will be
> exported to LaTeX.  However, every now and again I need to export to
> DOC/DOCX.
>
> My query is: what is the best way (i.e. the state of the art) currently
> in org to export to DOC/DOCX for text that has equations?  I have both
> inline maths, e.g. \(i \in [0,n]\) and displayed equations.  Is there a
> route that will convert these to something Word et al. can process
> directly, other than images?  Maybe via pandoc?
>
> Thanks,
> eric
>
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.1.3-168-g7455f4
>



-- 
Fabrice Popineau
-
SUPELEC
Département Informatique
3, rue Joliot Curie
91192 Gif/Yvette Cedex
Tel direct : +33 (0) 169851950
Standard : +33 (0) 169851212
--


Re: [O] advice please: best way to export to DOC(X) with maths

2017-12-15 Thread Eric S Fraga
On Friday, 15 Dec 2017 at 03:20, ed...@openmail.cc wrote:

[...]

> I only know how to do a rough approximation by means of pandoc:
>
> #+BEGIN_SRC bash
>pandoc -f org+smart my-original.org -t docx+smart -o my-output.docx
> #+END_SRC

What version of pandoc are you using?  My Debian (testing) has pandoc
1.19.2.4 and it does not seem to recognise the +smart bits...

But, in any case, pandoc (without the smart bits) does seem to do a
reasonable job and creates proper maths entities.  This is good enough
for me!  My once a year pain is relieved.  :-)

Thanks,
eric

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b


signature.asc
Description: PGP signature


Re: [O] Can export the files with bibliography only to LaTeX

2017-12-15 Thread Eric S Fraga
On Friday, 15 Dec 2017 at 03:18, ed...@openmail.cc wrote:
> I'm on the same boat: when your advisor "kindly" asks you to write
> everything in DOC{,X}. But it's a boat that is sinking, and let's hope
> sooner than later.

Funnily enough, at least I can require my PhD students to write in LaTeX
(usually via LyX initially but sometimes even emacs+org).  Initially,
some are quite unhappy and even more so when I say absolutely no to any
PowerPoint (they have to use beamer instead).

Later, however, they actually come and thank me for having made them use
LaTeX when they see what some of their colleagues have to go through in
preparing their final PhD thesis in Word... (with references, equations,
especially equations, etc.)

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b


signature.asc
Description: PGP signature


Re: [O] Can export the files with bibliography only to LaTeX

2017-12-15 Thread Eric S Fraga
On Thursday, 14 Dec 2017 at 14:09, Adonay Felipe Nogueira wrote:
> Interesting...
>
> Is this really a requirement? Did you actually asked which formats they
> support? Perhaps with careful negotiation, you might come up with good
> outcomes. For example: support for sending your work as PDF, TXT or
> HTML.

yeah, believe me, I have tried.  It's been an on-going battle for years
now.  I finally gave up arguing.  Tilting at windmills can finally get
tiring.

For some parts of the bureaucracy, only Microsoft products exist.  As a
computer scientist by birth (;-)), the lack of progress dismays me but
there you are.

Thanks in any case!

eric

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b


signature.asc
Description: PGP signature


Re: [O] LaTeX (not Beamer) export options

2017-12-15 Thread Eric S Fraga
On Thursday, 14 Dec 2017 at 18:05, Ken Mankoff wrote:
> Hi Org List,
>
> Is there an easy way to specify #+LATEX_HEADER options that will not
> be used when exporting to Beamer? I can do the opposite
> -#+BEAMER_HEADER lines are not exported to LaTeX. But I have some
> LaTeX config options that are getting in the way when exporting to
> Beamer.

Hopefully somebody else will answer with a proper org solution but, in
the absence of anything else, you could wrap the LaTeX code in the
latex_header with an \if looking for something that is unique to beamer
and only include the code if not beamer.  Something along the lines of

#+latex_header: \ifx\frametitle\undefined\usepackage{somepackage}\fi

which seems to work.  \usepackage{somepackage} is what you actually want
when not using beamer.  Replace with your own stuff.  You can make it
more readable by doing:

# only for LaTeX and not beamer
#+latex_header: \ifx\frametitle\undefined
#+latex_header: \usepackage{somepackage}
#+latex_header: \usepackage{another}
#+latex_header: \fi


HTH,
eric

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.1.4-214-ge8b71b


signature.asc
Description: PGP signature


Re: [O] Can export the files with bibliography only to LaTeX

2017-12-15 Thread Melleus
Eric S Fraga  writes:

> On Thursday, 14 Dec 2017 at 10:11, Adonay Felipe Nogueira wrote:
>> Indeed, Pandoc is a way out ;)
>>
>> I just would advise against converting from LaTeX to Word DOC.
>
> [...]
>
>> Relying on these formats such as DOC and DOCX only serve to
>> make people more dependent on the non-free software behind these.
>
> I am sympathetic to these views but unfortunately it's not always
> possible.  My university, for instance, requires me to prepare exam
> scripts in DOC (hence my related email a few minutes ago... my yearly
> task of preparing scripts is upon me).  I hate it but I have no choice.

Yes, to take the choise away from customer is very powerful business
strategy. And a very destructive one either, as many bright minds are
wasted on creating products that could not compete if not only those
artificial "standards" supported not by logical reasoning, but by
interests of the most powerful players.

So I need to adopt DOC/DOCX in my workflow somehow. It is required by my
university and by my publishers also.




Re: [O] Can export the files with bibliography only to LaTeX

2017-12-15 Thread Melleus
Thank you, Alan,

I also thought that org-ref is an easy way out. But it didn't work for
me out of the box (for html and txt export) unfortunately. And it is a
pretty good piece of software anyway, I must admit. Which I would miss
if I didn't run into this issue with exporting.

Regards,
Anatoly.




Re: [O] Poll: new keybinding for org-insert-structure-template?

2017-12-15 Thread Rasmus
Eric Abrahamsen  writes:

> That's not so bad, is it?

The only way it’s "bad" is in the sense it limits the flexibility of
snippets, like "

Re: [O] Referencing TODO items

2017-12-15 Thread Michael Welle
Hello,

Paulo Matos  writes:

> On 14/12/17 17:57, Michael Welle wrote:
>> it is from org-id.
>
> Can't seem to find org-id on melpa or org mode contrib page.
> http://orgmode.org/worg/org-contrib/
>
> can you please point me to where i can find it?
org-id should be part of the org package as well as of the
org-plus-contrib package.

Regards
hmw



Re: [O] Referencing TODO items

2017-12-15 Thread Paulo Matos


On 14/12/17 17:57, Michael Welle wrote:
> it is from org-id.

Can't seem to find org-id on melpa or org mode contrib page.
http://orgmode.org/worg/org-contrib/

can you please point me to where i can find it?

-- 
Paulo Matos