News for hackers. Stuff that matters.
Re:Ask HN: Examples of reliable software you enjoy using by Analemma_ on Tuesday June 28, 2016 @06:09PM (#11997997)
IME, the most important key to Latex is setting up your environment so you can have a fast turnaround time between writing some markup and seeing what it looks like (essentially, getting a "Latex REPL"). There are a bunch of different ways to do this, you'll have to pick what's best for you. On Macs I tend to use Sublime Text (substitute with your editor of choice) with a macro to invoke pdfTeX; on Windows I use TeXstudio which has live preview support. There are other ways; do whatever's best for you.

The second most important thing I've found for latex is setting up macros. In TextExpander/AHK I have several dozen Latex macros set up, like

  \tbl3 => \begin{tabular}{ l | c | r }
             a & b & c \\
           \end{tabular}
With a bunch of variants for different styles (full borders, etc.), column numbers, etc. Once your macros have become muscle memory, writing Latex speeds up considerably.
Re:Ask HN: Examples of reliable software you enjoy using by majewsky on Wednesday June 29, 2016 @02:40AM (#11999904)
On Linux, I do the following:

  while inotifywait *.tex; do sleep 0.2 && pdflatex main.tex && killall -HUP mupdf; done
This will, when a .tex file is written, wait a moment until all disk IO is done, then run pdflatex and trigger a reload in my PDF viewer (some also do that automatically when the .pdf file is changed).

The only annoyance is that big .tex files (esp. Beamer presentations) may take long to compile, which interrupts the flow. But in that case, it helps to distribute the sources into multiple files and to comment out the source files that are not needed at the moment.

Re:Ask HN: Examples of reliable software you enjoy using by lucb1e on Wednesday June 29, 2016 @06:54AM (#12000749)
inotifywait is fantastic, used it lots of times. Good idea to use it for TeX too!
Re:Ask HN: Examples of reliable software you enjoy using by kurlberg on Sunday July 03, 2016 @08:45AM (#12025842)
For emacs users I strongly recommend whizzytex + advi (at least if you find advi in your repos; it's somewhat painful to build advi on your own.) Almost as good is emacs + auctex - the first C-c C-c compiles the file, the second brings the document up in a dvi previewer with the page "flipped" to whatever you are working on. Both setups allow inverse search - click somewhere in the dvi viewer and your emacs cursor is moved to the corresponding source location.
Re:Ask HN: Examples of reliable software you enjoy using by barsonme on Wednesday June 29, 2016 @01:20AM (#11999651)
Yeah, that makes sense. I'll make sure to do that. It was kind of time-consuming typing out the couple tables I did add.

I used latexmk which watches file(s) for changes and rebuilds with pdflatex. It was nice, but made my laptop run real hot, and inotify never really works very well.

Which ST plugin do you use?

Re:Ask HN: Examples of reliable software you enjoy using by eivarv on Tuesday July 05, 2016 @03:29AM (#12034903)
Not OP, but I've had good experiences with La​Te​XTools[1].

[1]: https://packagecontrol.io/packages/LaTeXTools