Update PDF-View after LaTeX compilati

PDF-view buffer not updated even if TeX-revert-document-buffer...
Jun 28, 2019 19:45
Hope you have a good weekend too!
Jun 28, 2019 19:45
Thanks for all your help. I really appreciate it! I'll try looking into your two suggestions when I have more time.
Jun 28, 2019 19:39
I also unfortunately need to go in the next couple of minutes, but I really appreciate all that you've done to help me so far.
Jun 28, 2019 19:38
I stepped through all parts of pdf-view-revert-buffer both having run C-c C-l and having not run C-c C-l, but I didn't see any differences.
Jun 28, 2019 19:35
Okay, I'm now inside the defun for pdf-view-revert-buffer.
Jun 28, 2019 19:28
Oddly, it has the same value in both cases: #<buffer cp_tp_proposed_experiment_design.pdf>
Jun 28, 2019 19:26
I enter the defun in either case. And in both cases, the value for file is correct. However, when I've pressed C-c C-l, the PDF buffer doesn't revert. When I haven't pressed C-c C-l, it does revert.
Jun 28, 2019 19:23
I just tried it again with the debugger active, and even when the debugger is active, if I press C-c C-l, then it doesn't work. But if I don't press C-c C-l, then it does work.
Jun 28, 2019 19:20
Yes, I think I've discovered what the issue is. This might be a bug in AUCTeX. It works, so long as I do not press C-c C-l to display the results of the compilation. If I do press C-c C-l to see the results, then it will not automatically revert the PDF buffer.
Jun 28, 2019 19:11
It switches to the buffer with the PDF. Though this time the buffer seems to have actually reverted for me ... In the past, it has not, and I don't think I've done anything differently.
Jun 28, 2019 19:06
That returns pdf-view-mode.
Jun 28, 2019 19:03
Yes, buf is set to #<buffer cp_tp_proposed_experiment_design.pdf>. I'm now about to execute the (with-current-buffer buf line.
Jun 28, 2019 18:59
Sorry, I don't mean to make the chat complicated for you. But thank you. I really appreciate your help with this!
Jun 28, 2019 18:58
That returns the correct file path to the PDF document.
Jun 28, 2019 18:57
Sorry, just to clarify, should I be typing just "file" in the minibuffer and then hitting <RET>, or should I be typing "input file" in the minibuffer and then hitting <RET>?
Jun 28, 2019 18:53
Yes, the point is at the beginning of the first line with code inside the defun. That line has the following code: (let ((buf (find-buffer-visiting file)))
Jun 28, 2019 18:49
Okay, I've done that, and I just ran adamliter-TeX-make, which opened tex-buf.el at line 1014, which is the first line of TeX-revert-document-buffer. What should I do next?
Jun 28, 2019 18:43
No, I haven't. I'm still pretty new to Emacs and elisp. How do I debug TeX-revert-document-buffer?
Jun 28, 2019 18:41
Hi @Tobias, thanks for your help with this question.
 
Aug 10, 2018 19:46
@PauloCereda Lol, I also don't know anything about Java, so it's probably me ... But thanks! I'll update the issue sometime today with more info on the other options to knit().
Aug 10, 2018 19:42
@PauloCereda Thanks! That works. I should have asked you sooner. 😔😜
Aug 10, 2018 19:37
@PauloCereda No rush to respond. Take your time! I know you're busy.
Aug 10, 2018 19:37
@PauloCereda I procrastinated ... ðŸĪŠ github.com/cereda/arara/issues/112
Aug 10, 2018 17:10
@PauloCereda Okay, sounds good. Perhaps I'll send you an email this weekend. I have some other stuff I need to work on today. Thanks for the quick discussion though! ðŸĶ†
Aug 10, 2018 17:06
@PauloCereda Would it look roughly like this? (I'm just now starting to look at the `arara` 4.0 docs 😊):

% arara: pdflatex: { files: [ getBasename(currentFile) + '.tex' ] }

I'm not sure how you're supposed to do string concatenation.
Aug 10, 2018 17:00
@PauloCereda Or is it possible to inject the correct file name into the (pdf|xe|lua)latex invocation using getBasename and the files parameter?
Aug 10, 2018 16:54
@PauloCereda Yes, I think so. But then one will also (I think?) need custom (pdf|xe|lua)latex rules that only use the file base name and not the file name, since the standard workflow with knitr is to edit a .Rnw file, compile the .Rnw file to a .tex file with knitr, and then compile the .tex file to PDF with a LaTeX engine.
Aug 10, 2018 16:21
@PauloCereda I think I might have some time this weekend where I can help. I can try to look back through my emails with you, too. I'm pretty sure you already had a working knitr rule with arara 4.0 at some point in time ...
Aug 10, 2018 16:16
Aug 8, 2018 16:10
@JosephWright Yeah, that makes sense. Thanks for the info and discussion! 😊
Aug 8, 2018 16:06
(With the caveat, of course, that people should update to the latest version. But I find that many new LaTeX users don't often do that ...)
Aug 8, 2018 16:00
Then I could show people who view the tutorial which versions of TeX Live they can expect the examples to work with.
Aug 8, 2018 16:00
@JosephWright Thanks for the info. I think you could in principle do the same thing with Docker and just run tlmgr update in the Docker container before compiling or testing anything. There's probably no good reason to (dis)prefer this, though. But I was thinking about Docker because I'm considering building out some images for recent versions of TeX Live in order to test example code for a LaTeX tutorial that I have.
Aug 8, 2018 14:22
@PauloCereda Hahah, that's a great picture. I'm good. In a hurry, too. I'm trying to get a lot of stuff done before classes start back up again for me ...
Aug 8, 2018 14:15
Hi @PauloCereda! ðŸĶ† How's it going? Congrats again on the arara release. 🙃
Aug 8, 2018 14:15
@samcarter Thanks! This looks really helpful.
Aug 8, 2018 14:00
And thanks @samcarter. That link is helpful. I've come across a few other one-off Docker images like that, but I was hoping to find a set of images for at least the last few versions of TeX Live, too. But I'll probably use the one you linked to and some of the others I've found for inspiration when making images for a couple of the recent versions of TeX Live.
Aug 8, 2018 13:58
Thanks @egreg.
Aug 8, 2018 13:52
Does anyone know if there are canonical/official Docker images for (past and) present TeX Live versions? (Maybe @egreg, @DavidCarlisle, @JosephWright, or others would know?) I didn't see anything from a quick google search, but maybe I missed something? 🙃
Sep 23, 2017 13:52
@PauloCereda 😊🎉
Sep 23, 2017 12:41
@PauloCereda And yes! I've been following the development of it a bit, and I'm excited for it to be released. :)
Sep 23, 2017 12:41
@PauloCereda Good luck with the thesis! I'm sure you'll get it finished. :)
Sep 23, 2017 12:07
@PauloCereda Sounds like politics ... lol. Anyway, how are things going for you? Is your thesis going well? :)
Sep 23, 2017 12:00
@PauloCereda lol. :) You seem to be in disagreement with yourself! :P
Sep 23, 2017 11:55
@JosephWright Interesting. Thanks for the reply. That's good to know! :)
Sep 23, 2017 02:25
@AlanMunn Feel free to weigh in if you have further thoughts or suggestions for them (or if you think anything I said is wrong :P).
Sep 23, 2017 02:24
@AlanMunn I ended up saying something here: github.com/langsci/latex/issues/50
Sep 23, 2017 01:59
I want to make sure I have this right before I say something that is wrong. :)
Sep 23, 2017 01:59
When one submits a package to CTAN, not all of the files have to go into the same directory in the TeX Directory Structure, correct?
Sep 23, 2017 01:26
@AlanMunn And thanks for saying that about the testing. Hopefully it won't take too long. It'd be nice to try to wrap this project up.