Paul Stansell | 19 May 2013 13:18
Picon
Gravatar

#+ATTR_LaTeX no longer honoured

Hello,

I've noticed that #+ATTR_LaTeX seems to be no longer honoured (I'm
using release_8.0.3-133-ga5872)

This is demonstrated for the attached org file.  It's the exact
example from http://orgmode.org/manual/Images-in-LaTeX-export.html.

I expect the exported latex file (C-c C-e l l) to contain something like

  \includegraphics[width=5cm,angle=90]{./dummy.png}

but I instead it contains

  \includegraphics[width=.9\linewidth]{./dummy.png}

Thanks,

Paul

PS. I'm using Emacs 24.2.1 and I tested with the minimal org-mode
set-up from http://orgmode.org/manual/Feedback.html.
Attachment (attr_latex.org): application/octet-stream, 230 bytes
Feng Shu | 19 May 2013 03:03
Picon

Can't preview latex fragment


The error is like this:

Creating image...1
let: Symbol's value as variable is void: org-export--default-title
--

-- 

Omid | 18 May 2013 23:36
Picon

Re: How to get BibTeX to work with Org mode LaTeX export?

Hi Jay,

Thanks for your suggestion, and thank you to all for your help. With a minor modification (changing "--clean" to "--build=local", since otherwise texi2dvi does not see my other included files unless I use "-I") it does solve the problem, except for the efficiency, as Nick pointed out.
I think the only alternative would be to call a Makefile through a lisp function in this variable.
For some reason, Org export to LaTeX (and full compilation) feels a little sluggish to me; the export to LaTeX (.org => .tex) part must be quick and the rest of compilation doesn't much have to do with Org. I could probably use only one invocation of "texi2dvi --pdf --clean --verbose --batch %f" and treat the PDF as a draft and then every once in while do a full compilation.

Do you, or anyone else, have any comments or any other suggestions for speeding things up?

--
Omid


On Sat, May 18, 2013 at 5:36 AM, Jay Kerns <gjkernsysu <at> gmail.com> wrote:
Hi Omid,

On Sat, May 18, 2013 at 4:40 AM, Omid <omidlink <at> gmail.com> wrote:
> - The \bibliographystyle and \bibliography commands are at the end of the
> document.
> - The question is about how to get Org mode to do the whole job, as there is
> a command for it which is supposed to do exactly that but it doesn't.
>

Have you tried (something like) the following in your init file?

(setq org-latex-pdf-process (quote ("texi2dvi --pdf --clean --verbose
--batch %f" "bibtex %b" "texi2dvi --pdf --clean --verbose --batch %f"
"texi2dvi --pdf --clean --verbose --batch %f")))

You can read more about this variable (and customize it) with

C-h v org-latex-pdf-process RET

I hope this helps,

--
Jay

Laurent | 18 May 2013 20:57
Picon
Gravatar

Alignment of text and checkboxes

Hi,

assume I have something like this in my org file:

- [ ] This is task.
- [ ] This is a task on a very long line.
- [ ] This is another task.

If I place my cursor at the beginning of the second point and apply fill-
paragrap, I get this:

- [ ] This is task.
- [ ] This is a task on a very
  long line.
- [ ] This is another task.

Is it possible to get the following?

- [ ] This is task.
- [ ] This is a task on a very
      long line.
- [ ] This is another task.

I want the lines to align at the text and not at the checkbox.

Regards,
Laurent

Nick Dokos | 18 May 2013 16:37
Picon

Re: How to get BibTeX to work with Org mode LaTeX export?

Jay Kerns <gjkernsysu <at> gmail.com> writes:

>> - The question is about how to get Org mode to do the whole job, as there is
>> a command for it which is supposed to do exactly that but it doesn't.
>>
>
> Have you tried (something like) the following in your init file?
>
> (setq org-latex-pdf-process (quote ("texi2dvi --pdf --clean --verbose
> --batch %f" "bibtex %b" "texi2dvi --pdf --clean --verbose --batch %f"
> "texi2dvi --pdf --clean --verbose --batch %f")))
>
> You can read more about this variable (and customize it) with
>
> C-h v org-latex-pdf-process RET
>
> I hope this helps,

If texi2dvi works, then there is no need for a three-element list: just
the first invocation of texi2dvi should be enough to do the job.

If texi2dvi does *not* work, then a three-element list is necessary (but
not necessarily sufficient): an invocation of pdflatex, followed by
bibtex, followed by (at least) another invocation of pdflatex (followed
by more invocations of pdflatex if there are still complaints).

--

-- 
Nick

Juan Reyero | 18 May 2013 12:25
Picon
Gravatar

Moving org-jekyll to org-mode 8.0

Greetings,

Org-jekyll is a simple way to export jekyll blog posts from org-mode.  Docs:

http://juanreyero.com/open/org-jekyll/index.html

Code:

https://github.com/juanre/org-jekyll

I have merged Jianing Yang's patch for 8.0 compatibility in
org-jekyll, done some more small updates, and set as master.  I have
left an org-mode-7 branch with the old code just in case.

Best regards,

jm
--

-- 
http://greaterskies.com
http://juanreyero.com

Omid | 18 May 2013 09:09
Picon

How to get BibTeX to work with Org mode LaTeX export?

I have posted a question to tex.stackexchange.com on "How to get BibTeX to work with Org mode LaTeX export?" Here is a link to it: http://tex.stackexchange.com/questions/114864/how-to-get-bibtex-to-work-with-org-mode-latex-export. I thought this mailing list might be the best place to ask for help about it. Thanks in advance for your time.

For ease of reference, here is the question again:

I am trying to get Emacs (24.3.1), Org-mode (8.0.3, from ELPA) and BibTeX (from TeX Live 2012) to work together. I have followed the instructions under the Bibliography section in http://orgmode.org/worg/org-tutorials/org-latex-export.html but after exporting the document to LaTeX, compiling to PDF, and opening the result (with key sequence C-c C-e l o in the latest Org mode) I see a question mark instead of a citation (i.e., [?]) which means that the reference was not resolved by LaTeX. In fact, checking the Org PDF LaTeX Output buffer, I see the following warning:

LaTeX Warning: Citation `Tappert77' on page 3 undefined on input line 43.

No file org-bib-test.bbl.
[3] (.//org-bib-test.aux)

LaTeX Warning: There were undefined references.

It looked to me that probably Org-mode was looking for a .bib file with the same base name as the .org file but renaming the .bib file and updating the \bibliography line did not solve the problem.

Here are two minimal .org and .bib files that together can be used to reproduce the behavior described above:

org-bib-test.org

* Tests
** Test1 slide
   - This is test1 \cite{Tappert77}.

\bibliographystyle{plain}
\bibliography{org-bib-test-refs}

The following, using #+LATEX_HEADER, gives the same result:

org-bib-test.org

#+LATEX_HEADER: \bibliographystyle{plain}
#+LATEX_HEADER: \bibliography{org-bib-test-refs}

* Tests
** Test1 slide
   - This is test1 \cite{Tappert77}.

org-bib-test-refs.bib

<at> incollection {Tappert77,
AUTHOR = {Tappert, Fred D.},
TITLE = {The parabolic approximation method},
BOOKTITLE = {Wave propagation and underwater acoustics ({W}orkshop,
              {M}ystic, {C}onn., 1974)},
PAGES = {224--287. Lecture Notes in Phys., Vol. 70},
PUBLISHER = {Springer},
ADDRESS = {Berlin},
YEAR = {1977},
MRCLASS = {76.41 (86.41)},
}

Currently I am using the following ugly hack to get the references resolved: I generate the .bbl file from the .bib file (using a minimal .tex file) and then I \include the resulting .bbl file directly in my .org file. This is rather cumbersome and of course requires that I regenerate the .bbl file every time I make a change to the .bib file. Although this process can be automated in Emacs by writing a lisp function to encapsulate these actions, I'd rather solve the problem than streamline a hack.

I have checked the .tex file generated by Org mode. It does have the following necessary lines exported in it:

\bibliographystyle{plain}
\bibliography{org-bib-test-refs}

-Omid
Marcin Borkowski | 18 May 2013 00:52
Picon
Favicon

Org-mode v8 broke my workflow

Hi list,

can't resist;): http://xkcd.com/1172/

I have this at the end of my .emacs:

(setq inhibit-splash-screen t)
(org-agenda-list)
(delete-window)

The point is that I want agenda to appear as the only thing when I
start Emacs.  However, sometimes I start it e.g. when delivering a
presentation; I don't want all the people to look at my overdue todo
items;), so I used to press q while Emacs was starting (which takes
quite a while on my netbook).  This used to bury the agenda so that
*scratch* was visible.  Now, instead of *scratch*, one of my agenda
org files appears.  What do I do to restore the previous behavior?
(Really, that setup worked for me;).)

Best,

--

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University

Uwe Brauer | 17 May 2013 22:49
Picon
Favicon

odt import

Hello

I just found in wikipedia 
http://en.wikipedia.org/wiki/Org-mode

Claiming there are tools to import _from_ ODT.

Is this true? I have never seen anything like this.

Uwe Brauer 

Manfred Lotz | 17 May 2013 22:18
Picon
Favicon

Tbl: precision for cells

I have a table like this

| Item                     |    F1  |       F2 |       F3 |
|--------------------------+--------+----------+----------|
| w                        | 579.12 | 110.0328 | 689.1528 |
| x                        |   28.8 |    5.472 |   34.272 |
| y                        |   13.2 |    2.508 |   15.708 |
| z                        |    24. |     4.56 |    28.56 |
|--------------------------+--------+----------+----------|
| Sum                      | 513.12 |  97.4928 | 610.6128 |

As the numeric fields are currency fields could I specify somehow for
the whole table that there are exactly 2 decimals after the dot?

So that I have this:
| Item                     |    F1  |       F2 |       F3 |
|--------------------------+--------+----------+----------|
| w                        | 579.12 |   110.03 |   689.15 |
| x                        |  28.80 |     5.47 |    34.27 |
| y                        |  13.20 |     2.51 |    15.71 |
| z                        |  24.00 |     4.56 |    28.56 |
|--------------------------+--------+----------+----------|
| Sum                      | 513.12 |    97.49 |   610.61 |

--

-- 
Thanks,
Manfred

Kelvin Hu | 17 May 2013 16:49
Picon
Gravatar

Bug: html quoting tags are transformed after exporting [8.0.2 (8.0.2-10-g3e1d83-elpa <at> d:/SDTs/Emacs/lisp/org/)]

Hi all,

First of all, I am really appreciate your good work - org mode.

Currently I meet something wrong when I am trying to export an org
buffer into html, as org manual
described(http://orgmode.org/org.html#Quoting-HTML-tags), html tags
quoted with " <at> " should be exported as tags, but not transformed to
"&lt;" and "&gt;". Now assume we have following contents:

- <at> <a href="somewhere">some text <at> </a>

then I do exporting with following code(executed in that org buffer):

(org-export-as 'html nil nil t nil)

the output is:

<ul class="org-ul">
<li> <at> &lt;a href="somewhere"&gt;some text <at> &lt;/a&gt;
</li>
</ul>

As you see, the quoted tag "<a>" is exported as transformed but not
original html tag.

Hope my description is not ambiguous, and it can do a little help for
you to fix this issue.

Thanks & Regards,
Kelvin


Emacs  : GNU Emacs 24.3.1 (i386-mingw-nt6.1.7601)
 of 2013-03-18 on MARVIN
Package: Org-mode version 8.0.2 (8.0.2-10-g3e1d83-elpa <at> d:/SDTs/Emacs/lisp/org/)


Gmane