Re: [AUCTeX] displaying line numbers > 9999 in TeX Error Overview

2017-05-02 Thread jfbu

Le 2 mai 2017 à 20:56, jfbu  a écrit :

>> 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.
> 
as proof of concept: (xelatex log)

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

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

JF


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] displaying line numbers > 9999 in TeX Error Overview

2017-05-02 Thread jfbu
Hi Mosè,

Le 2 mai 2017 à 20:27, Mosè Giordano  a écrit :

> Hi
> 
> 2017-05-02 19:51 GMT+02:00 jfbu :
>> hi,
>> 
>> this is from  TeX error overview buffer
>> 
>> blender_manual.tex2375 Error   Package inputenc Error: Unicode char 
>> ▸ (U+25B8)
>> blender_manual.tex1... Error   Package inputenc Error: Unicode char 
>> ⏮ (U+23EE)
>> 
>> one sees that line number >= 1 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.


Thanks!

Jean-François
___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] displaying line numbers > 9999 in TeX Error Overview

2017-05-02 Thread Mosè Giordano
Hi

2017-05-02 19:51 GMT+02:00 jfbu :
> hi,
>
> this is from  TeX error overview buffer
>
>  blender_manual.tex2375 Error   Package inputenc Error: Unicode char 
> ▸ (U+25B8)
>  blender_manual.tex1... Error   Package inputenc Error: Unicode char 
> ⏮ (U+23EE)
>
> one sees that line number >= 1 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è

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex