emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Problem with src blocks line numbers when generating PDF output usin


From: P-O Gustafsson
Subject: [O] Problem with src blocks line numbers when generating PDF output using latex listings.
Date: Thu, 14 Jan 2016 18:21:56 -0000

Hello,

I ran into what I think is a bug in ox-latex.el. I tried to generate a PDF document that contains the source code for two files. The first file is split into two src block snippets and I used the switches '-n' and '+n' to have the line numbering starting in the first snippet and continue over to the second snippet. For the third snippet I used the '-n' switch and I expected the line numbering for snippet three to start a 1, but it continued with the line numbering sequence from snippet two. The line numbering behaved as I expected when I generated HTML output, so I had a look in ox-latex.el. I solved the problem by deleting the code on line 2800, but that might not be the best solution which is why I thought I'd report it so that someone who knows the code can take look.

org-version: 8.3.3

Configuration:
(add-to-list 'org-latex-packages-alist '("" "listings"))
(add-to-list 'org-latex-packages-alist '("" "color"))
(setq org-latex-listings t)

Workaround: I deleted the code on line 2800 in ox-latex.el

File              Line                       Code
ox-latex.el    2800                      ((zerop num-start) '(("numbers" "left")))

Best regards
Per

reply via email to

[Prev in Thread] Current Thread [Next in Thread]