[O] include a specific PDF page to org beamer

2014-11-22 Thread Zhihao Ding
Hi there, I was wondering if there is a way to import a specific PDF page in org beamer? I tried the following ways but neither 1 or 2 worked and I had to retreat to 3, which is a pain as it requires those extra lines for each link. 1. [[file:~/path/to/myfigure.pdf::10]] 2. #+ATTR_LATEX:

[O] shrink latex table to fit beamer slide

2014-12-05 Thread Zhihao Ding
Dear Org experts, I am trying to fit a slightly wide latex table into a beamer slide in org. Below is my current solution and I was wondering if anyone can offer some advice on improving it. #+begin_scriptsize #+ATTR_LATEX: :align p{1cm} p{0.5cm} p{1cm} | | |

Re: [O] shrink latex table to fit beamer slide

2014-12-05 Thread Zhihao Ding
Dec 2014, at 13:12, Andreas Leha andreas.l...@med.uni-goettingen.de wrote: Hi Zhihao, Zhihao Ding zhihao.d...@imm.ox.ac.uk writes: Dear Org experts, I am trying to fit a slightly wide latex table into a beamer slide in org. Below is my current solution and I was wondering

Re: [O] shrink latex table to fit beamer slide

2014-12-06 Thread Zhihao Ding
Dec 2014, at 11:04, Eric S Fraga e.fr...@ucl.ac.uk wrote: On Friday, 5 Dec 2014 at 14:39, Zhihao Ding wrote: Thanks a lot Andreas. Is there a way to globally shrink/resize table for latex export without having Beamer allows for shrinking of a whole frame to ensure it fits: --8

[O] latex options

2015-03-30 Thread Zhihao Ding
Dear Org experts, I was wondering if anyone could advise on this simple problem. My toy org file, shown as below, contains 3 projects. I’d like to export beamer PDFs for individual projects from time to time, but the pain is that I always need to modify the header options (title,

Re: [O] latex options

2015-03-30 Thread Zhihao Ding
On 30 Mar 2015, at 11:32, Andreas Leha andreas.l...@med.uni-goettingen.de wrote: Hi Zhihao, Zhihao Ding zhihao.d...@imm.ox.ac.uk writes: Dear Org experts, I was wondering if anyone could advise on this simple problem. My toy org file, shown as below, contains 3 projects. I’d like

Re: [O] navigate between source code blocks

2015-04-29 Thread Zhihao Ding
Thanks very much Oleh. Best, Zhihao On 28 Apr 2015, at 08:22, Oleh Krehel ohwoeo...@gmail.com wrote: Hi Zhihao, I’ve got a simple question: how to speed up jumping between code blocks? You might be interested in https://github.com/abo-abo/worf. It allows you to traverse anything

[O] navigate between source code blocks

2015-04-27 Thread Zhihao Ding
Dear Org experts, I’ve got a simple question: how to speed up jumping between code blocks? My org file grows larger every day with more and more source code blocks. I find myself spending increasing amount of time finding the right code blocks to go to. Could anyone suggest a method to

Re: [O] navigate between source code blocks

2015-05-01 Thread Zhihao Ding
Thank guys. Wolf is new to me and I am trying it now, it already feels very attractive! This increases my navigation efficiency quite a bit! Zhihao On 30 Apr 2015, at 18:25, Oleh Krehel ohwoeo...@gmail.com wrote: Leo Ufimtsev lufim...@redhat.com writes: Worf I think is a bit on the vi

Re: [O] position figures side by side in PDF output

2015-05-21 Thread Zhihao Ding
Thanks a lot Andreas and Rasmus! The solution using the subcaption package works best for me. Best, Zhihao On 20 May 2015, at 22:03, Andreas Leha andreas.l...@med.uni-goettingen.de wrote: Hi Zhihao, Rasmus ras...@gmx.us writes: Hi Zhihao, Zhihao Ding zhihao.d...@imm.ox.ac.uk

[O] position figures side by side in PDF output

2015-05-20 Thread Zhihao Ding
Hi there, Could anyone give me some advice on how to position figures side by side in PDF output? I am trying to write a report, while my figures were all originally produced individually. I’d like to put them, mostly two, sometimes three, side by side sharing a same caption and label.

Re: [O] resize table in latex

2015-06-02 Thread Zhihao Ding
, 2015 at 10:51:24AM +, Zhihao Ding wrote: Hi there, I am trying to find a way to automatically resize tables in the latex output. When doing slides in beamer, I use this to resize tables to fit in a frame #+LaTeX: \scriptsize{\resizebox{\textwidth

[O] resize table in latex

2015-06-01 Thread Zhihao Ding
Hi there, I am trying to find a way to automatically resize tables in the latex output. When doing slides in beamer, I use this to resize tables to fit in a frame #+LaTeX: \scriptsize{\resizebox{\textwidth}{!}{ | . | . | #+LaTeX: }} While when writing reports, I use the

Re: [O] resize table in latex

2015-06-02 Thread Zhihao Ding
, at 10:06, Suvayu Ali fatkasuvayu+li...@gmail.com wrote: On Tue, Jun 02, 2015 at 08:43:07AM +, Zhihao Ding wrote: Thanks very much for your reply. The proposed method in this reply won’t work. It needs to be in the following structure where this line “\scriptsize{\resizebox

[O] float control in org

2015-05-22 Thread Zhihao Ding
Hi there, Could I ask for some advice on using the latex float package in org mode? I’d like to have some control on the positions of the figures, tables, code blocks etc. Currently I am doing it using latex entirely, just for my code blocks, as below #+BEGIN_LaTeX

Re: [O] float control in org

2015-05-22 Thread Zhihao Ding
Thanks a lot Rasmus. Zhihao On 22 May 2015, at 11:07, Rasmus ras...@gmx.us wrote: Zhihao Ding zhihao.d...@imm.ox.ac.uk writes: Hi there, Could I ask for some advice on using the latex float package in org mode? I’d like to have some control on the positions of the figures, tables

[O] remote R session

2015-08-11 Thread Zhihao Ding
Hi there, I was wondering how to automatically fire up a remote R session when editing source code in babel source code block? I'd like to have everything on server and be able to play with it including making plots. Currently I do tangle to a file on server first and then use tramp to access it.

Re: [O] problem with beamer slides

2015-08-06 Thread Zhihao Ding
I have solved this problem. It's a problem with latex not org. Thanks for replying to this. Cheers, Zhihao On 6 August 2015 at 13:20, Zhihao Ding zhihao.d...@gmail.com wrote: I export the subtree, below is the org, and after that is the latex === * projects :PROPERTIES: :header-args

[O] problem with beamer slides

2015-08-06 Thread Zhihao Ding
: H:3 toc:nil *:t ^:nil :t It just gets to subsubsection and then stop. Any idea how to fix this? Thanks a lot! -- Regards, Zhihao Ding

Re: [O] problem with beamer slides

2015-08-06 Thread Zhihao Ding
} \subsection{Test} \label{sec-1-1} \subsubsection{Slide} \label{sec-1-1-1} \begin{itemize} \item item \end{itemize} % Emacs 24.4.1 (Org mode 8.2.10) \end{document} On 6 August 2015 at 12:27, Eric S Fraga e.fr...@ucl.ac.uk wrote: On Thursday, 6 Aug 2015 at 12:15, Zhihao Ding wrote: Hi guys, I had

[O] environmental variables in links in org

2015-11-05 Thread Zhihao Ding
Hi guys, Is it a good idea to use environment variables in the links referenced in a org file? e.g. [[$mydata/myfigure.pdf]] If so how to achieve this? Many thanks, Zhihao

[O] compile latex on remote server

2015-09-07 Thread Zhihao Ding
Dear org experts, I'm working on an org file on a remote server using tramp. Often I need to export beamer slides from it. I realised that it has problems with the file paths, which currently are local with respect to the server. I thus had to first export a tex file, which worked fine over

Re: [O] compile latex on remote server

2015-09-07 Thread Zhihao Ding
On 7 September 2015 at 14:14, Loris Bennett <loris.benn...@fu-berlin.de> wrote: > Hi Zhihao, > > Zhihao Ding <zhihao.d...@gmail.com> writes: > > > Dear org experts, > > > > I'm working on an org file on a remote server using tramp. Often I need > to > > e

Re: [O] compile latex on remote server

2015-09-07 Thread Zhihao Ding
My emacs session is local and I am using tramp to open the org file on the remote server. Then when I tried to export it to latex and compile I get that error messages. Cheers, Zhihao On 7 September 2015 at 14:39, Loris Bennett <loris.benn...@fu-berlin.de> wrote: > Hi Zhihao, > &

[O] :EXPORT tags in property drawer not recognised in org 8.3

2015-09-29 Thread Zhihao Ding
Dear Org experts, I am having some problems with exporting in org 8.3.1. I've been using :PROPERTIES to control export of a heading, e.g. :PROPERTIES: :EXPORT_LaTeX_HEADER+: \usepackage{array} :EXPORT_LaTeX_HEADER+: \usepackage{tikz} :EXPORT_LATEX_HEADER+: \usepackage{geometry} :EXPORT_TITLE:

Re: [O] :EXPORT tags in property drawer not recognised in org 8.3

2015-10-05 Thread Zhihao Ding
September 2015 at 21:54, Rasmus <ras...@gmx.us> wrote: > Hi Zhihao, > > Zhihao Ding <zhihao.d...@gmail.com> writes: > > > Dear Org experts, > > > > I am having some problems with exporting in org 8.3.1. I've been using > > :PROPERTIES to contr

Re: [O] can't get table output when running r babel

2018-08-09 Thread Zhihao Ding
error. Thanks again, Zhihao On Thu, Aug 9, 2018 at 6:32 AM Robert Klein wrote: > On Wed, 8 Aug 2018 16:10:10 +0100 > Zhihao Ding wrote: > > > Hi there, > > > > I can't seem to get a table output from running this toy example: > > > >#+HEADE

[O] can't get table output when running r babel

2018-08-08 Thread Zhihao Ding
Hi there, I can't seem to get a table output from running this toy example: #+HEADER: :results value #+BEGIN_SRC R data <- data.frame(list(a=c(1,2,3), b=c(4,5,6))) data #+END_SRC #+RESULTS: The problem seems to be org-babel-insert-result: Wrong type argument:

[O] insert evaluation results in place

2018-03-28 Thread Zhihao Ding
Hi there, I was wondering if anyone could share an example for referencing the results of a source code block in place. For example, a source code block could be defined as below #+HEADER: n_value #+HEADER: :results value #+HEADER: :noweb yes #+BEGIN_SRC R n_value=10 n_value

Re: [O] insert evaluation results in place

2018-03-28 Thread Zhihao Ding
Thank you! Zhihao On Wed, Mar 28, 2018 at 4:28 PM Berry, Charles <ccbe...@ucsd.edu> wrote: > > > > On Mar 28, 2018, at 7:42 AM, Zhihao Ding <zhihao.d...@gmail.com> wrote: > > > > I was wondering if anyone could share an example for referencing the >