[Tex/LaTex] Beamer: what is purpose of .vrb files

beamer

Recently i work on presentation prepared with Beamer. every time when i made some error in document typing X in editor (WinEdt,) open me file .vrb with frame, where i made error.

That is fine, but not much useful to me. correction done there are not transferred to my document. so i wondering, what is purpose of this file? only to more easy find this frame in document?

edit:

i research again when .vrb file is open. its not caused with some error but when i use "back search" facility of pdf previewer (Sumatra in my case) and click on the shoved slide. if it contain verbatim text, than this open .vrb file and nod return to .tex file, where is code for this frame. otherwise this doesn't happen.

anyway, i'm still curious about how this file displayed in editor can be useful for someone. let me noted, that in .verbis only part of frame code.

Best Answer

The content of the body text of fragile frames gets a special treatment. Instead of processing it multiple times, like normal beamer frames, it is written to a special file, the .vrb (I assume this is short for verbatim?) and read directly from there. This allows you to have code in the frame, which would normally not work with beamer.

Synctex will always link to the file from where the problematic code was read in. For example if there is an error within a package, it will link to the .sty file. This also means that if there is an error within the fragile frame it will link to the .vrb file.

In theory you could use some sed replacement to replace the name of the vrb file with the original tex file in the syntex file (similar what to what ltx2any does to deal with build folders), but this would need some magic to get the line numbers right.