Skip to content
Snippets Groups Projects
  1. 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
  2. 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
  3. Nov 23, 2020
  4. Nov 19, 2020
  5. Oct 04, 2020
  6. Sep 24, 2020
  7. 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
  8. Jul 17, 2020
  9. Jul 08, 2020
  10. Jun 28, 2020
  11. Jun 08, 2020
  12. 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
  13. May 06, 2020
  14. Apr 21, 2020
    • Karl Fogel's avatar
      Avoid false positive in detecting footnote problem · 30c1f0e8
      Karl Fogel authored
      As promised in commit db47b65d.
      30c1f0e8
    • Karl Fogel's avatar
      Say more in error message about handling bug case · db47b65d
      Karl Fogel authored
      Since commit 018499ec, when the bug-detection plugin is enabled
      (e.g. "bugs: True" in the header) then on detecting a bug in the
      document we stop the build, unless in draft mode ("draft: True").
      
      There are thus three ways to fix such a build:
      
        1) Fix whatever the bug is in the document.
        2) Turn on draft mode.
        3) Turn off bug-detection mode.
      
      Since our bug-detection module is not perfect, (1) is not always an
      option because there might not actually be a bug in the document.
      That's what happened in this case: the module's attempt to detect
      proper formatting of footnotes by looking for the leading backslash
      (e.g., "\footnote" instead of "footnote") cries a false positive if
      the document uses "\begin{footnotesize} ... \end{footnotesize}" to set
      the font size.
      
      I'll improve that bug-detection case in a subsequent commit.  In the
      meantime, this commit improves the error message to inform the user
      about possibilities (2) and (3), which are not otherwise obvious.
      db47b65d
  15. Apr 10, 2020
  16. Mar 25, 2020
  17. Jan 21, 2020
    • Karl Fogel's avatar
      Restore section title size hierarchy in contracts · fea7af4e
      Karl Fogel authored
      Before this change, a section would have a small (5pt) title size, but
      then subsections within it would have a larger title size -- I don't
      know exactly what size, because it was some LaTeX default, but it was
      clearly larger than 5pt in any case.
      
      Probably the reason we never noticed this before is that our contracts
      tended not to have subsections.  But then we wrote one that included
      an SOW in the contract, and the SOW's subsections looked all wonky:
      their title lines were larger than those of the containing sections.
      This fixes the problem; I know not whether it introduces new problems.
      fea7af4e
  18. Jan 11, 2020
  19. Jan 09, 2020
  20. Jan 08, 2020
Loading