Re: [O] macro expansion in #+begin_latex

2015-06-14 Thread Robert Klein
Hi, On Sun, 14 Jun 2015 11:14:13 +0200 wero_sacero mail2w...@gmail.com wrote: Thank you for the reply. But I don't think it's a good idea. For example: what can I do if want to put a text like the title of my file in the latex header? is there an other way? I know I can use the \@title

Re: [O] Possible cache problems

2015-06-14 Thread Nicolas Goaziou
Suvayu Ali fatkasuvayu+li...@gmail.com writes: I was trying to edit the attr_latex line for the following table: #+attr_latex: | year | 2012 | 2018 | 2022 | 2028 | 2035 | | γ(°) |7 |4 | 1.3 | 0.9 | 0.6 | Fixed in 182ff104b77d1c4cd03a2749472d9da0c7733116. Thank you. This

Re: [O] macro expansion in #+begin_latex

2015-06-14 Thread Rasmus
wero_sacero mail2w...@gmail.com writes: But I don't think it's a good idea. For example: what can I do if want to put a text like the title of my file in the latex header? is there an other way? How about org-latex-title-command? Title is accessible via %t (Org 8.3). Rasmus -- This

Re: [O] macro expansion in #+begin_latex

2015-06-14 Thread wero_sacero
Thank you for the reply. But I don't think it's a good idea. For example: what can I do if want to put a text like the title of my file in the latex header? is there an other way? I know I can use the \@title function of latex, it works. but I need it also for email, date, etc.. macro would be

[O] Trouble passing variables into shell blocks on windows

2015-06-14 Thread Johan W . Klüwer
I'm having difficulties passing org variables into shell source blocks. This is using Windows 7 and Cygwin with bash shell. For instance, the following #+BEGIN_SRC sh :var x=. ls $x #+END_SRC fails with the error message (as displayed in emacs) ls: cannot access .^M^M : No such file or

Re: [O] Forcing line breaks in src (monospace) examples

2015-06-14 Thread Peter Davis
On 6/14/15 10:44 AM, Peter Davis wrote: #+BEGIN_LaTeX curl -v -X GET -H Authorization:...\, \access_token\: \... http://blah.blah.blah.com/v1/REST_API_STUFF/...; #+END_LaTeX Sorry, that should be: #+BEGIN_LaTeX \tt{curl -v -X GET -H Authorization:...\, \access_token\: \...

Re: [O] Forcing line breaks in src (monospace) examples

2015-06-14 Thread Robert Klein
Hi, On Sun, 14 Jun 2015 10:51:59 -0400 Peter Davis p...@pfdstudio.com wrote: On 6/14/15 10:44 AM, Peter Davis wrote: #+BEGIN_LaTeX curl -v -X GET -H Authorization:...\, \access_token\: \... http://blah.blah.blah.com/v1/REST_API_STUFF/...; #+END_LaTeX Sorry, that should be:

Re: [O] Forcing line breaks in src (monospace) examples

2015-06-14 Thread Peter Davis
Hi, Robert, That helps (it gets rid of the extra first page), but I'm still not getting the line to wrap. Thanks, -pd Robert Klein rokl...@roklein.de writes: Hi Peter, sorry, I have (add-to-list 'org-latex-packages-alist '( listingsutf8)) in my .emacs (utf8 version of listings so I

Re: [O] Forcing line breaks in src (monospace) examples

2015-06-14 Thread Robert Klein
Hi Peter, hmm, yes, you have to tell org to use the listings package. It works when I use this one-line .emacs: (setq org-latex-listings t) and your example file plus `#+LaTeX_HEADER: \usepackage{listings}': --- snip --- #+LaTeX_HEADER: \usepackage{listings} #+LaTeX_HEADER:

Re: [O] Forcing line breaks in src (monospace) examples

2015-06-14 Thread Robert Klein
Hi Peter, sorry, I have (add-to-list 'org-latex-packages-alist '( listingsutf8)) in my .emacs (utf8 version of listings so I can use umlauts). You can also simply put #+LaTeX_HEADER: \usepackage{listings} to the top of the file. (PS: you won't need the xcolor package unless you want

[O] Forcing line breaks in src (monospace) examples

2015-06-14 Thread Peter Davis
I'm writing a document which includes several example commands, which I've wrapped in #+BEGIN_SRC/#+END_SRC. In LaTeX/PDF export, these come out in Courier, as I hoped, but they run off the right edge of the page. For example: #+BEGIN_SRC curl curl -v -X GET -H Authorization:...\,

Re: [O] Forcing line breaks in src (monospace) examples

2015-06-14 Thread Peter Davis
Robert Klein rokl...@roklein.de writes: Hi, On Sun, 14 Jun 2015 10:51:59 -0400 Peter Davis p...@pfdstudio.com wrote: On 6/14/15 10:44 AM, Peter Davis wrote: #+BEGIN_LaTeX curl -v -X GET -H Authorization:...\, \access_token\: \... http://blah.blah.blah.com/v1/REST_API_STUFF/...;

Re: [O] Forcing line breaks in src (monospace) examples

2015-06-14 Thread Peter Davis
FWIW, here's the tex generated from my current test: % Created 2015-06-14 Sun 12:33 \documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fixltx2e} \usepackage{graphicx} \usepackage{longtable} \usepackage{float} \usepackage{wrapfig} \usepackage{rotating}

Re: [O] macro expansion in #+begin_latex

2015-06-14 Thread Charles C. Berry
On Sun, 14 Jun 2015, wero_sacero wrote: Thank you for the reply. But I don't think it's a good idea. For example: what can I do if want to put a text like the title of my file in the latex header? is there an other way? In addition to the suggestions you already have, you can construct the

Re: [O] Add LaTeX to SVG support to org-mode

2015-06-14 Thread Kyle Meyer
Hello, Adam Sneller a...@earth2adam.com wrote: Out of the box, emacs supports two methods for rendering LaTeX previews in orgmode: dvipng and imagemagick. I want to add a third method, using dvisvgm. I have modified the org.el file to add org-create-formula-image-with-dvisvg. To propose and

Re: [O] Forcing line breaks in src (monospace) examples

2015-06-14 Thread Peter Davis
Ah! I wound up adding this: #+LaTeX_HEADER: \renewenvironment{verbatim}{\begin{lstlisting}}{\end{lstlisting}\ignorespacesafterend} but your approach is cleaner. Thanks! -pd On 6/14/15 12:38 PM, Robert Klein wrote: Hi Peter, hmm, yes, you have to tell org to use the listings package. It

[O] clocktables output in hours and minutes only

2015-06-14 Thread Sharon Kimble
Still on about clocktables, how can I have the time output show just in hours.minutes and not in days.hours.minutes please? Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk Debian 8.0, fluxbox 1.3.7, emacs 24.5.50.1 signature.asc Description: PGP

Re: [O] Possible cache problems

2015-06-14 Thread Suvayu Ali
On Sun, Jun 14, 2015 at 02:58:25PM +0200, Nicolas Goaziou wrote: Suvayu Ali fatkasuvayu+li...@gmail.com writes: I was trying to edit the attr_latex line for the following table: #+attr_latex: | year | 2012 | 2018 | 2022 | 2028 | 2035 | | γ(°) |7 |4 | 1.3 | 0.9 | 0.6

[O] How do I specify the font attributes in org - odt exports?

2015-06-14 Thread Kaushal
Hi, I require the ox-odt package and I set this variable to export to doc (MS Word 97) format by default: (setq org-odt-preferred-output-format doc) I have to do this as I need to submit a paper in Word. The export works fine but can someone help me how to write the style ott/xml file so

[O] [PATCH] org-contacts.el: Catch 'nextfile in org-contacts-db

2015-06-14 Thread Philippe Crama
Hi, This is a small patch to catch the 'nextfile thrown by `org-check-agenda-file' in `org-contacts-db'. I don't know how to fix the TODO in the comment myself, sorry. At least, with the patch, the execution doesn't abort anymore. Regards, -- Philippe Crama ===File

Re: [O] Add LaTeX to SVG support to org-mode

2015-06-14 Thread Nicolas Goaziou
Hello, Adam Sneller a...@earth2adam.com writes: Out of the box, emacs supports two methods for rendering LaTeX previews in orgmode: dvipng and imagemagick. I want to add a third method, using dvisvgm. I have modified the org.el file to add org-create-formula-image-with-dvisvg. Everything