[O] How can I trigger org-redisplay-inline-images automatically when '[[..]]' is shown as a link.

2017-09-14 Thread Amos Bird
#+OPTIONS: latex:t toc:nil H:3 Hi, I usually paste images into emacs buffer. I'd like org mode automatically show those images instead of manually trigger it with org-redisplay-inline-images. regards, Amos

[O] speed up exporting to pdf

2017-09-15 Thread Amos Bird
#+OPTIONS: latex:t toc:nil H:3 Hi, When doing org to pdf exportation of my 2 pages demo org file, it takes nearly 10 seconds. How can I speed it up? regards, Amos

Re: [O] How can I trigger org-redisplay-inline-images automatically when '[[..]]' is shown as a link.

2017-09-15 Thread Amos Bird
#+OPTIONS: latex:t toc:nil H:3 Hi Nicolas, Um, ok. I think I'll switch to manual trigger then. How can I make ctrl-c ctrl-c toggle current image display when in image context? Nicolas Goaziou writes: > Hello, > > Amos Bird writes: > >> I usually paste images into ema

[O] evaluate cpp snippet in org babel with default includes and customized entry point

2017-09-16 Thread Amos Bird
nt target) { } }; #+END_SRC #+RESULTS: I need to add default headers and pass arguments to the entry class. -- Amos Bird amosb...@gmail.com

Re: [O] evaluate cpp snippet in org babel with default includes and customized entry point

2017-09-16 Thread Amos Bird
return result; > } > }; > > vector nums = {2, 7, 11, 15}; > int target = 9; > > int main() > { > Solution solution; > for (int x : solution.twoSum(nums,target)) > cout< } > > #+END_SRC > > #+RESULTS: > | 0 | > | 1 | > > >

Re: [O] evaluate cpp snippet in org babel with default includes and customized entry point

2017-09-16 Thread Amos Bird
ning. > > > #+BEGIN_SRC C++ :includes > std::cout<<"hello"; > #+END_SRC > > #+RESULTS: > : hello > > > On 16/09/2017 10:37, Amos Bird wrote: >> >> Thanks Thierry, >> >> But I'd like to hide all those includes and the main function. I'm not sure >> if >> it's possible. >> >> -- Amos Bird amosb...@gmail.com

Re: [O] evaluate cpp snippet in org babel with default includes and customized entry point

2017-09-16 Thread Amos Bird
e hidden. > > On 16/09/2017 10:58, Amos Bird wrote: > > Ok, i get the idea. So how can I customized the default code expansion so > that it can directly evaluate this > > class Solution { > public: > vector twoSum(vector& nums, int target) { > > } > }; -- Amos Bird amosb...@gmail.com

[O] Org latex pdf syncing

2017-09-17 Thread Amos Bird
#+OPTIONS: latex:t toc:nil H:3 Hi, Is there a way to support pdf syncing when exporting and opening pdf in org mode? regards, -- Amos Bird amosb...@gmail.com

Re: [O] Org latex pdf syncing

2017-09-17 Thread Amos Bird
rry the shortness) -- Amos Bird amosb...@gmail.com

[O] Make org-open-at-point always open pdf files outside emacs

2017-09-17 Thread Amos Bird
E INS DEL Cons-cell: Choice: Value Menu Extension: \.pdf\' Choice: Value Menu Command: zathura %s #+END_EXAMPLE But it doesn't work. regards, -- Amos Bird amosb...@gmail.com

[O] What is the best way to show inline math formulas in org mode?

2017-09-18 Thread Amos Bird
#+OPTIONS: latex:t toc:nil H:3 Hi, I found that there are ways to write formulas in mathjax or latex in org-mode. But how can I view them inlinely? Currently I just copy and paste formula images which seems not the right way. regards, -- Amos Bird amosb...@gmail.com

Re: [O] What is the best way to show inline math formulas in org mode?

2017-09-18 Thread Amos Bird
lease adjust ‘dvipng’ part of ‘org-preview-latex-process-alist’. #+END_EXAMPLE regards, Nicolas Goaziou writes: > Hello, > > Amos Bird writes: > >> I found that there are ways to write formulas in mathjax or latex in >> org-mode. But how can I view >> them inline

Re: [O] What is the best way to show inline math formulas in org mode?

2017-09-18 Thread Amos Bird
dvisvgm doesn't work either but imagemagick does. Thanks! Nicolas Goaziou writes: > Amos Bird writes: > >> Thanks Nicolas. That's cool. But I couldn't get it working. >> >> I tried this simple equation >> >> >> \begin{equation} >&g

Re: [O] What is the best way to show inline math formulas in org mode?

2017-09-18 Thread Amos Bird
Um, does this formula image look correct? I feel it's a bit small and subrendered. [[file:/home/amos/Pictures/Screenshots/img-2017-09-18-210416.png]] Nicolas Goaziou writes: > Amos Bird writes: > >> Thanks Nicolas. That's cool. But I couldn't get it working

Re: [O] What is the best way to show inline math formulas in org mode?

2017-09-18 Thread Amos Bird
#+OPTIONS: latex:t toc:nil H:3 Hi, Hmm, seems org-mime is broken again... I have an fine working latex env. Though I don't know what a decent inline formula looks like :) regards, Nicolas Goaziou writes: > Hello, > > Amos Bird writes: > >> Um, does this formula ima

[O] make org-capture honor org-blank-before-new-entry settings

2017-09-18 Thread Amos Bird
#+BEGIN_EXAMPLE * Work [0/4] - [ ] test1 - [ ] test2 - [ ] test3 - [ ] captured * Life [0/3] #+END_EXAMPLE regards, -- Amos Bird amosb...@gmail.com

Re: [O] make org-capture honor org-blank-before-new-entry settings

2017-09-18 Thread Amos Bird
#+OPTIONS: latex:t toc:nil H:3 Ah, just found these two properties #+BEGIN_EXAMPLE [X] Key: :empty-lines-before 1 [X] Key: :empty-lines-after 1 #+END_EXAMPLE Amos Bird writes: > #+OPTIONS: latex:t toc:nil H:3 > > Hi, > > I'm starting to use org-capture to create to

[O] use %A to prompt for plain text when there is not file

2017-09-19 Thread Amos Bird
#+OPTIONS: latex:t toc:nil H:3 Hi, I'm currently using this template, #+BEGIN_EXAMPLE * %A [/] - [ ] %? #+END_EXAMPLE However when capturing in a non-file buffer, %A generates nothing. I'd like to have a plain text inserted instead. What can I do? regards, -- Amos Bird amosb...@gmail.com

Re: [O] use %A to prompt for plain text when there is not file

2017-09-20 Thread Amos Bird
Um, but I'd like to use this template for both cases. When inside a temporary, don't generate a link, but plain text instead, while in a file buffer, generate the link as usual. regards, Nicolas Goaziou writes: > Amos Bird writes: > >> when in a file backed buffer,

Re: [O] use %A to prompt for plain text when there is not file

2017-09-20 Thread Amos Bird
the above "some description" is inputed via prompting user. regards, Nicolas Goaziou writes: > Hello, > > Amos Bird writes: > >> I'm currently using this template, >> #+BEGINEXAMPLE >> >> 1 %A [/] >> >> * [ ] %? >> >&

[O] How can I make table not be exported with markup transformation?

2017-09-25 Thread Amos Bird
#+OPTIONS: latex:t toc:nil H:3 Hi, I have a table like this #+BEGIN_EXAMPLE | foo | bar | | a_b | c*d*e| #+END_EXAMPLE -- Amos Bird amosb...@gmail.com

[O] Disable fontification when exporting tables

2017-09-27 Thread Amos Bird
); | 1.27 | 0.13 | | Q1 | SELECT DayOfWeek, count(*) AS c FROM ontime WHERE Year >= 2000 AND Year <= 2008 GROUP BY DayOfWeek ORDER BY c DESC; | 1.23 | 0.21 | regards, -- Amos Bird amosb...@gmail.com

Re: [O] Disable fontification when exporting tables

2017-09-28 Thread Amos Bird
tried that but it still doesn't export cleanly. > - use \star instead of * Yeah, this is a valid option but it's a bit unconvenient regards, Nicolas Goaziou writes: > Hello, > > Amos Bird writes: > >> How can I disable fontifications when exporting th

Re: [O] Disable fontification when exporting tables

2017-09-29 Thread Amos Bird
{} and * to \asc{} but it doesn't look well in the Org buffer. I did turn on org-toggle-pretty-entities but it changes the appearance of other subtrees which I don't want to. #+END_EXAMPLE regards, Nicolas Goaziou writes: > Hello, > > Amos Bird writes: > >> I&

Re: [O] Allow more export options to be controlled per-subtree

2017-09-29 Thread Amos Bird
PM Nicolas Goaziou > wrote: > >> >> By the way, it is already possible to prevent emphasis in a subtree >> export: >> >> * Subtree >> :PROPERTIES: >> :EXPORT_OPTIONS: *:nil >> :END: >> -- Amos Bird amosb...@gmail.com

Re: [O] Disable fontification when exporting tables

2017-09-30 Thread Amos Bird
e verbatim markup. Is there a way to specify the whole column to be verbatim? regards, Nicolas Goaziou writes: > Hello, > > Amos Bird writes: > >>> - what ar

Re: [O] Disable fontification when exporting tables

2017-09-30 Thread Amos Bird
#+OPTIONS: latex:t toc:nil H:3 Thanks! Nicolas Goaziou writes: > Amos Bird writes: > >> | QueryID | SQL Text >> >> | Query Tim

[O] org-export and open odt files always opened in emacs

2017-10-09 Thread Amos Bird
Greetings! I'm trying to export and open odt files outside emacs. I've set #+BEGIN_SRC elisp (setq org-file-apps `(("\\.org$" . emacs) ("\\.cpp$" . emacs) (t . ,(cond (IS-MAC "open -R \"%s\"") (IS-LINUX "xdg-open \"%s\"") #+END_SRC However expo