Discussion:
[AUCTeX] displaying line numbers > 9999 in TeX Error Overview
jfbu
2017-05-02 17:51:35 UTC
Permalink
hi,

this is from TeX error overview buffer

blender_manual.tex 2375 Error Package inputenc Error: Unicode char ▸ (U+25B8)
blender_manual.tex 1... Error Package inputenc Error: Unicode char ⏮ (U+23EE)

one sees that line number >= 10000 gets displayed as 1...

the jump to the file and to the log work fine, but I wanted to copy paste to help the author of the document and this makes it more difficult

this document has 111915 lines (whoosh...) and has errors all the way to the end (of the above type, of the type of using svg or gif image files, of various perhaps a missing \item (that's wrapfig fault) and, sadly some dimension too large error (due to gigantic jpeg files).

It would be nice to get the 5 digits line numbers in TeX Error Overview...

Is there a way to configure AUCTeX to display them ?

best

Jean-François
Mosè Giordano
2017-05-02 18:27:59 UTC
Permalink
Hi
Post by jfbu
hi,
this is from TeX error overview buffer
blender_manual.tex 2375 Error Package inputenc Error: Unicode char ▸ (U+25B8)
blender_manual.tex 1... Error Package inputenc Error: Unicode char ⏮ (U+23EE)
one sees that line number >= 10000 gets displayed as 1...
the jump to the file and to the log work fine, but I wanted to copy paste to help the author of the document and this makes it more difficult
this document has 111915 lines (whoosh...) and has errors all the way to the end (of the above type, of the type of using svg or gif image files, of various perhaps a missing \item (that's wrapfig fault) and, sadly some dimension too large error (due to gigantic jpeg files).
It would be nice to get the 5 digits line numbers in TeX Error Overview...
Is there a way to configure AUCTeX to display them ?
Not super-easy, but yes, it's possible with a few Elisp lines:

--8<---------------cut here---------------start------------->8---
(add-hook
'TeX-error-overview-mode-hook
(lambda ()
(setq tabulated-list-format [("File" 25 nil)
("Line" 5 nil :right-align t)
("Type" 7 nil)
("Message" 0 nil)]
tabulated-list-padding 1
tabulated-list-entries TeX-error-overview-list-entries)
(tabulated-list-init-header)
(tabulated-list-print)))
--8<---------------cut here---------------end--------------->8---

You can set the width of each column by adjusting the number after the
column name.

Bye,
Mosè
jfbu
2017-05-02 18:56:47 UTC
Permalink
Hi Mosè,
Post by Mosè Giordano
Hi
Post by jfbu
hi,
this is from TeX error overview buffer
blender_manual.tex 2375 Error Package inputenc Error: Unicode char ▸ (U+25B8)
blender_manual.tex 1... Error Package inputenc Error: Unicode char ⏮ (U+23EE)
one sees that line number >= 10000 gets displayed as 1...
the jump to the file and to the log work fine, but I wanted to copy paste to help the author of the document and this makes it more difficult
this document has 111915 lines (whoosh...) and has errors all the way to the end (of the above type, of the type of using svg or gif image files, of various perhaps a missing \item (that's wrapfig fault) and, sadly some dimension too large error (due to gigantic jpeg files).
It would be nice to get the 5 digits line numbers in TeX Error Overview...
Is there a way to configure AUCTeX to display them ?
--8<---------------cut here---------------start------------->8---
(add-hook
'TeX-error-overview-mode-hook
(lambda ()
(setq tabulated-list-format [("File" 25 nil)
("Line" 5 nil :right-align t)
("Type" 7 nil)
("Message" 0 nil)]
tabulated-list-padding 1
tabulated-list-entries TeX-error-overview-list-entries)
(tabulated-list-init-header)
(tabulated-list-print)))
--8<---------------cut here---------------end--------------->8---
You can set the width of each column by adjusting the number after the
column name.
Thanks!

Jean-François
jfbu
2017-05-02 19:52:44 UTC
Permalink
Post by Mosè Giordano
--8<---------------cut here---------------start------------->8---
(add-hook
'TeX-error-overview-mode-hook
(lambda ()
(setq tabulated-list-format [("File" 25 nil)
("Line" 5 nil :right-align t)
("Type" 7 nil)
("Message" 0 nil)]
tabulated-list-padding 1
tabulated-list-entries TeX-error-overview-list-entries)
(tabulated-list-init-header)
(tabulated-list-print)))
--8<---------------cut here---------------end--------------->8---
You can set the width of each column by adjusting the number after the
column name.
as proof of concept: (xelatex log)

blender_manual.tex 94102 Error Unable to load picture or PDF file 'render_freestyle_svg-export_pallet.svg'.
blender_manual.tex 94603 Error Unable to load picture or PDF file 'multiview_workflow_6.gif'.
blender_manual.tex 94603 Error Package graphics Error: Division by 0.
blender_manual.tex 94603 Error Unable to load picture or PDF file 'multiview_workflow_6.gif'.

I almost needed ("Line" 6 nil :right-align t), phew !

JF

Loading...