1. 20 Jan, 2023 1 commit
    • Karl Fogel's avatar
      Switch to not removing refs by default · 320680fb
      Karl Fogel authored
      Before this change, refs would be stripped from documents by default
      (even documents, such as invoices, that don't normally have any
      explicit YAML head).  After this change, refs are not stripped by
      default, but if you put "remove-refs: TRUE" in the YAML head then they
      will be, and you can optionally customize the regex with "ref-regex".
      Note also that it's "ref-regex" now instead of "ref_regex".  This is
      because some editors (cough Emacs cough) render unescaped underscores
      in a jarring and distracting way in LaTeX documents, including even
      underscores in YAML frontmatter.  A better fix would be to teach Emacs
      how to recognize when it's in a non-LaTeX section of a mostly-LaTeX
      document, but that's a bit more yak than I have time to shave today.
  2. 11 Oct, 2022 1 commit
  3. 19 Sep, 2022 10 commits
  4. 01 Aug, 2022 1 commit
  5. 07 Jul, 2022 1 commit
  6. 27 Jun, 2022 1 commit
  7. 16 Jun, 2022 1 commit
  8. 07 Jun, 2022 1 commit
  9. 09 Nov, 2021 1 commit
  10. 05 Nov, 2021 1 commit
  11. 26 Oct, 2021 1 commit
  12. 01 Aug, 2021 1 commit
  13. 03 Jun, 2021 2 commits
    • Karl Fogel's avatar
      Further formatting improvements to invoices · 19a5b7a8
      Karl Fogel authored
      Make "hour" and "hours" align on the right, which visually implies a
      vertical line between the hours column and the charges column.  This
      in turn makes right-aligning the charges column even more attractive
      than it already was, so do that too (though it was probably a good
      idea before and we just hadn't gotten around to doing it until now).
    • Karl Fogel's avatar
      Do singular/plural conditional in \timeentry hours · bcb9ded0
      Karl Fogel authored
      Persuading LaTeX (or rather, TeX) to vary its output based on singular
      vs plural turned out to be a major research project.  But now we've
      finally done it, so we can just sit back and let the profits roll in.
  14. 17 May, 2021 1 commit
  15. 19 Mar, 2021 2 commits
    • Karl Fogel's avatar
      Simplify generation of YAML block comment in PDF · ef921a12
      Karl Fogel authored
      Since the OTS_DOCTOOLS_DIR environment variable is required now, use
      that instead of Python's '__file__' variable to get values for the
      YAML block comment that we put at the end of each PDF.
      Note that the two other uses of '__file__' in this code base, in
      'pipeline/pipeline.py' and 'pipeline/plugins/65_bugs.py', stay as they
      are: for what they're doing, '__file__' is appropriate.
    • Karl Fogel's avatar
      Stop doing the "symlink to rev-labeled PDF" trick · 7649490e
      Karl Fogel authored
      Before now, building "foo.pdf" would instead build "foo-rREVNUM.pdf"
      (where REVNUM is determined by 'get_revision') and symlink "foo.pdf"
      to that.  Although this had its uses, it also would occasionally cause
      problems, primarily accidentally copying the symlink to somewhere else
      and ending up with a broken symlink at the destination.  After
      discussing it yesterday, James and I decided to switch to the simpler
      "just build foo.pdf" method, and that's what this commit does.
  16. 06 Mar, 2021 1 commit
  17. 03 Mar, 2021 1 commit
  18. 02 Dec, 2020 1 commit
    • Karl Fogel's avatar
      Use 'enumitem' package instead of 'enumerate' · d669a955
      Karl Fogel authored
      The former supersedes the latter, and has more options, so we should
      use it.  But the proxemitae cause for this change is that I wanted to
      use lower-case Roman letters as item markers instead of numbers.  Now,
      you might think it would work to just put "\usepackage{enumitem}" at
      the top of the doc and then use "\begin{enumerate}[label=\alph*)]",
      but no, that gets an error:
        ! Missing number, treated as zero.
        <to be read again>
        l.394 \begin{enumerate}[label=\alph*)]
        !  ==> Fatal error occurred, no output PDF file produced!
      The reason for this is that the two packages are incompatible.  With
      'enumerate' already loaded, if you load 'enumitem' and then try to
      take advantage of the feature for which you brought in 'enumitem' in
      the first place, you'll get the above error.
      This change should not break any of our older documents, since both
      packages work fine for plain old enumerations or lists, and until now
      that's all we could do -- we obviously weren't using the list-item
      styling feature that 'enumitem' makes possible.  I also spot-checked
      several of OTS's more complex documents to make sure they still build.
  19. 30 Nov, 2020 2 commits
    • Karl Fogel's avatar
      Put date at a better height over hrule · 60ff69f5
      Karl Fogel authored
      Adjust where the date sits under the signature, so that the date isn't
      squashed down such that it touches the hrule line underneath it.
      Context: I actually made this change on November 3rd, as part of
      building a contract document that day.  However, I forgot to push the
      change then, and later it was in the way when I needed to pull from
      upstream.  Rather than create a merge commit, I just saved the patch
      and re-applied it.  So if you're at OTS and you're wondering about the
      motivation for this change, look for a contract build on 2020-11-03.
    • James Vasile's avatar
      Allow nonpdf-latex · 060dbefd
      James Vasile authored
  20. 23 Nov, 2020 3 commits
  21. 19 Nov, 2020 1 commit
  22. 04 Oct, 2020 2 commits
  23. 24 Sep, 2020 1 commit
  24. 21 Sep, 2020 1 commit
    • Karl Fogel's avatar
      Use ${PYBIN} instead of raw "python" · 180b3292
      Karl Fogel authored
      At least right now there is a moment in Debian 'testing' in which
      there is no 'python' command, only 'python3'.  Since we are already
      explicitly finding 'python3' for PYBIN anyway, just use that.
  25. 17 Jul, 2020 1 commit