Typesetting in LaTeX

A LaTeX document.
A LaTeX document.

LaTeX pronounced (/la:tech/), is a free typesetting system that allows you to efficiently create articles, books, white papers and other technical documents. Most scientific documents and white papers are built using this typesetting system. LaTeX is the opposite of a Microsoft Word, LibreOffice Writer, and other similar programs. (What You See Is What You Get) editor. The key difference is that format is separated from content. Documents are pre–formatted to a specification that the content follows. LaTeX is a markup language similar to HTML (Hyper Text Markup Language).

The separation of format and content allows for the automation of many parts of a typical document. The table of contents, bibliography, page numbers, footnotes, and references are all auto generated. The document, for lack of better term, is “alive” — a living document that is programmable.

Typesetting isn’t a very useful skill in general, at least in my experience, because most people prefer WYSIWYG editors, but it’s useful in large groups if only to eliminate arguments over formatting, positioning, and other The art of the trivial argument is sometimes called bike–shedding. details. Let’s take a look at my preferred typesetting programs and workflow.

Typesetting Workflow

My preferred workflow for typesetting is a combination of the programs TexWorks and ViM. The LaTeX editor texworks acts as a heads up display and gives a general overview of what’s going on. The magnifying glass, jump to source, and jump to PDF (Portable Document Format) are pretty much the killer features of texworks. Honestly it’s the only reason texworks is in my toolkit.

LaTeX Workflow

The editing action happens in vim while texworks polls and updates its graphical display for both the tex source file and pdf, even when external programs are mutating them. Editing can happen really fast as it’s only necessary to keep the current line number inside my head when inter-operating between each program.

If the sense of position is lost, then the line number becomes a guide, and a jump from tex to pdf or from pdf to tex puts me back into the flow. The desktop windows are tiled to maximize use of the viewport and the recompilation commands below are executed on every manual save in vim.

shell
#!/bin/sh -eu

if ! {
      pdflatex -halt-on-error "$1" \
      || xelatex -halt-on-error "$1";
     }
then cat
fi

Conclusion

That’s all there is to my typesetting work flow. Programs in general tend to be either frustrating or slow, but texworks and vim happen to be one of those nice and rare experiences. Gummi is also another interesting LaTeX editor that is used mainly for quick edits.

30 July 2021 — Written
31 July 2021 — Updated
Thedro Neely — Creator
typesetting-in-latex.md — Article

More Content

Openring

Web Ring

Comments

References

  1. https://thedroneely.com/git/
  2. https://thedroneely.com/
  3. https://thedroneely.com/posts/
  4. https://thedroneely.com/projects/
  5. https://thedroneely.com/about/
  6. https://thedroneely.com/contact/
  7. https://thedroneely.com/abstracts/
  8. https://ko-fi.com/thedroneely
  9. https://thedroneely.com/tags/latex/
  10. https://thedroneely.com/posts/typesetting-in-latex/#isso-thread
  11. https://thedroneely.com/posts/rss.xml
  12. https://thedroneely.com/images/typesetting-in-latex.png
  13. https://www.latex-project.org/
  14. https://en.wikipedia.org/wiki/WYSIWYG
  15. https://en.wikipedia.org/wiki/HTML
  16. https://en.wikipedia.org/wiki/Law_of_triviality
  17. https://thedroneely.com/posts/typesetting-in-latex/#typesetting-workflow
  18. http://www.tug.org/texworks/
  19. https://www.vim.org/
  20. https://thedroneely.com/videos/typesetting-in-latex-workflow.mp4
  21. https://en.wikipedia.org/wiki/Tiling_window_manager
  22. https://thedroneely.com/posts/typesetting-in-latex/#code-block-c2d7b90
  23. https://thedroneely.com/posts/typesetting-in-latex/#conclusion
  24. https://gummi.app/
  25. https://www.thedroneely.com/posts/typesetting-in-latex.md
  26. https://thedroneely.com/posts/finding-that-one-percent/
  27. https://thedroneely.com/projects/personal-portfolio/
  28. https://thedroneely.com/projects/news-aggregator/
  29. https://git.sr.ht/~sircmpwn/openring
  30. https://drewdevault.com/2022/11/12/In-praise-of-Plan-9.html
  31. https://drewdevault.com/
  32. https://mxb.dev/blog/the-indieweb-for-everyone/
  33. https://mxb.dev/
  34. https://www.taniarascia.com/simplifying-drag-and-drop/
  35. https://www.taniarascia.com/
  36. https://thedroneely.com/posts/typesetting-in-latex#isso-thread
  37. https://thedroneely.com/posts/typesetting-in-latex#typesetting-workflow
  38. https://thedroneely.com/posts/typesetting-in-latex#code-block-c2d7b90
  39. https://thedroneely.com/posts/typesetting-in-latex#conclusion
  40. https://thedroneely.com/posts/nixos-pins-and-needles/
  41. https://thedroneely.com/posts/extreme-ssh-hardening/
  42. https://thedroneely.com/posts/trying-out-this-website/
  43. https://thedroneely.com/abstracts/aria-the-animation/
  44. https://thedroneely.com/posts/keeping-up-with-open-source/
  45. https://thedroneely.com/abstracts/the-myth-of-the-rational-voter/
  46. https://drewdevault.com/2022/09/16/Open-source-matters.html
  47. https://mxb.dev/blog/make-free-stuff/
  48. https://thedroneely.com/sitemap.xml
  49. https://thedroneely.com/index.json
  50. https://thedroneely.com/resume/
  51. https://gitlab.com/tdro
  52. https://github.com/tdro
  53. https://codeberg.org/tdro
  54. https://thedroneely.com/analytics
  55. https://thedroneely.com/posts/typesetting-in-latex#
  56. https://creativecommons.org/licenses/by-sa/2.0/
  57. https://thedroneely.com/git/thedroneely/thedroneely.com
  58. https://opensource.org/licenses/GPL-3.0
  59. https://www.thedroneely.com/
  60. https://thedroneely.com/posts/typesetting-in-latex/#