Skip to content
Snippets Groups Projects
  1. Jun 07, 2022
  2. Nov 09, 2021
  3. Nov 05, 2021
  4. Oct 26, 2021
  5. Aug 01, 2021
  6. Jun 03, 2021
    • 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).
      19a5b7a8
    • 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.
      bcb9ded0
  7. May 17, 2021
  8. Mar 19, 2021
    • 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.
      ef921a12
    • 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.
      7649490e
  9. Mar 06, 2021
  10. Mar 03, 2021
  11. Dec 02, 2020
    • 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>
                           \c@*
        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.
      d669a955
  12. Nov 30, 2020
    • 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.
      60ff69f5
    • James Vasile's avatar
      Allow nonpdf-latex · 060dbefd
      James Vasile authored
      060dbefd
  13. Nov 23, 2020
  14. Nov 19, 2020
  15. Oct 04, 2020
  16. Sep 24, 2020
  17. Sep 21, 2020
    • 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.
      180b3292
  18. Jul 17, 2020
  19. Jul 08, 2020
  20. Jun 28, 2020
  21. Jun 08, 2020
  22. May 12, 2020
    • James Vasile's avatar
      Only create venv if we can't satisfy python dependencies · 9995c927
      James Vasile authored
      I don't actually use the venv, and I was tired of it littering.
      Virtual environments are probably best left to the user to configure,
      and not for us to force on the user.  It's still nice to have it as a
      backup, but if the user has a way to satisfy those dependencies
      without our intervention, don't intervene.
      
      There are a few ways to supply the python submodules that aren't in a
      local venv.  One might install systemwide, use direnv, or use a
      centralized venv for all of ots, etc.  I use direnv, but this change
      makes room for any scheme a user might want.  We force our own venv
      only as a last resort.
      9995c927
    • James Vasile's avatar
      Whitespace · 0c07be60
      James Vasile authored
      0c07be60
  23. May 06, 2020
  24. Apr 21, 2020
Loading