Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix citations and travis build #100

Merged

Commits on Jan 11, 2021

  1. Remove pandoc-citeproc install

    Pandoc is not installed including citeproc.
    JamesOwers committed Jan 11, 2021
    Configuration menu
    Copy the full SHA
    b2ae6ee View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2021

  1. Configuration menu
    Copy the full SHA
    c364cc6 View commit details
    Browse the repository at this point in the history
  2. Attempt to fix travis

    JamesOwers committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    c38a945 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cea9645 View commit details
    Browse the repository at this point in the history
  4. Fix miniconda version

    JamesOwers committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    b81cd57 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    53cd717 View commit details
    Browse the repository at this point in the history
  6. Add quickstart

    JamesOwers committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    983ce13 View commit details
    Browse the repository at this point in the history
  7. Add update of tlmgr

    JamesOwers committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    fd7f1c7 View commit details
    Browse the repository at this point in the history
  8. Try sudo

    JamesOwers committed Jan 13, 2021
    Configuration menu
    Copy the full SHA
    f7d34b6 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2021

  1. Try just py3.6

    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    74aff8d View commit details
    Browse the repository at this point in the history
  2. Attempt to test linux too

    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    94e74d3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e467edc View commit details
    Browse the repository at this point in the history
  4. Put them back!

    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    51f32fb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6682ee3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    68dbf75 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2a475a8 View commit details
    Browse the repository at this point in the history
  8. Try to fix make pdf issue

    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    9b491e1 View commit details
    Browse the repository at this point in the history
  9. Check brew is up-to-date

    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    a3fd68a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    8661bf1 View commit details
    Browse the repository at this point in the history
  11. Remove linux build for now

    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    3ab3f33 View commit details
    Browse the repository at this point in the history
  12. Add python versions

    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    edbecbe View commit details
    Browse the repository at this point in the history
  13. Initialise travis with updated homebrew and apt, and installed texlive

    Hopefully this solves some issues and maybe even cuts the build time
    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    c813328 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    e741e2a View commit details
    Browse the repository at this point in the history
  15. Add linux notes

    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    da80c92 View commit details
    Browse the repository at this point in the history
  16. Try removing from path

    This issue suggests we could be using an old install of texlive.
    Conda should be putting pandoc on the path anyway. I wonder how it
    choses what tex version to use.
    https://tex.stackexchange.com/questions/567050/how-can-i-install-l3backend-pdfmode-def
    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    084c900 View commit details
    Browse the repository at this point in the history
  17. Add debug code

    JamesOwers committed Jan 14, 2021
    Configuration menu
    Copy the full SHA
    2107345 View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2021

  1. fix typo

    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    f5470eb View commit details
    Browse the repository at this point in the history
  2. Try to fix mac build error by removing fixltx2e

    This packages is depreciated for modern lex releases (post 2015).
    https://tex.stackexchange.com/questions/287146/how-to-use-fixltx2e-only-when-necessary
    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    43fbc3c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a5d6092 View commit details
    Browse the repository at this point in the history
  4. Try to fix /usr/bin/tlmgr: Initialization failed (in setup_unix_one):

    ```
    $ make install
    bash /home/travis/build/tompollard/phd_thesis_markdown/install_linux.sh
    (running on Debian, switching to user mode!)
    /usr/bin/tlmgr: Initialization failed (in setup_unix_one):
    /usr/bin/tlmgr: could not find a usable xzdec.
    /usr/bin/tlmgr: Please install xzdec and try again.
    tlmgr: Couldn't set up the necessary programs.
    Installation of packages is not supported.
    Please report to texlive@tug.org.
    Use of uninitialized value $r in split at /usr/bin/tlmgr line 3882.
    tlmgr: Cannot find main repository, you have to tag one as main!
    Makefile:37: recipe for target 'install' failed
    make: *** [install] Error 1
    The command "make install" failed and exited with 2 during .
    ```
    
    https://tex.stackexchange.com/questions/180230/kubuntu-texlive-manually-installed-tlmgr-not-working
    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    ace34e5 View commit details
    Browse the repository at this point in the history
  5. Addressing homebrew warning to update path

    You must restart your terminal window for the installation of MacTex CLI tools to take effect.
    Alternatively, Bash and Zsh users can run the command:
      eval "$(/usr/libexec/path_helper)"
    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    3e90af9 View commit details
    Browse the repository at this point in the history
  6. Echo $PATH for debugging

    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    38b262c View commit details
    Browse the repository at this point in the history
  7. Fix if statement

    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    f9b93b5 View commit details
    Browse the repository at this point in the history
  8. Give up on linux...again. And try remove brew update (for speed)

    Linux now stuck on error I recognise from advice:
    
    0.12s$ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
        eval "$(/usr/libexec/path_helper)"
        sudo tlmgr update --self
      elif [ "$TRAVIS_OS_NAME" = "linux" ]; then
        tlmgr init-usertree
        echo on linux we cannot update apt installed texlive c.f.
        echo https://tex.stackexchange.com/questions/551383/cant-run-tex-lives-tlmgr-in-a-github-action
        echo https://tex.stackexchange.com/questions/1092/how-to-install-vanilla-texlive-on-debian-or-ubuntu
      fi
    
    (running on Debian, switching to user mode!)
    tlmgr: action init-usertree returned a warning.
    
    ...
    
    $ make install
    bash /home/travis/build/tompollard/phd_thesis_markdown/install_linux.sh
    (running on Debian, switching to user mode!)
    Unknown directive ...containerchecksum 57a177b65450718631f36bfd8db0f2d1bff788f3bf147137b6412714cc945c7e08832f14f9e7e659adf7e072a91f13a2ea27fe3161cd9b60313bc956f1f543c6... , please fix it! at /usr/share/texlive/tlpkg/TeXLive/TLPOBJ.pm line 210, <$retfh> line 7085.
    Makefile:37: recipe for target 'install' failed
    make: *** [install] Error 25
    The command "make install" failed and exited with 2 during .
    
    https://tex.stackexchange.com/questions/313768/why-getting-this-error-tlmgr-unknown-directive
    
    I think the way forward would be to customise the install of texlive for linux.
    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    85fd9e7 View commit details
    Browse the repository at this point in the history
  9. Don't update brew

    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    fd48143 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    c55298a View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    9d36c36 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4ab3553 View commit details
    Browse the repository at this point in the history
  13. Don't update brew...

    Trying this to compare with previous build
    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    44c175f View commit details
    Browse the repository at this point in the history
  14. Print the tlmgr log

    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    20925b7 View commit details
    Browse the repository at this point in the history
  15. Try updating l3backend too

    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    957f910 View commit details
    Browse the repository at this point in the history
  16. travis needs the homebrew update option set true

    Else we get the following stack:
    ```
    brew
    Installing Homebrew Packages
    6.51s$ rvm $brew_ruby do brew bundle --verbose --global
    /usr/local/bin/brew tap homebrew/bundle
    ==> Tapping homebrew/bundle
    Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle'...
    remote: Enumerating objects: 101, done.
    remote: Counting objects: 100% (101/101), done.
    remote: Compressing objects: 100% (95/95), done.
    remote: Total 101 (delta 4), reused 28 (delta 1), pack-reused 0
    Receiving objects: 100% (101/101), 51.37 KiB | 2.23 MiB/s, done.
    Resolving deltas: 100% (4/4), done.
    Tapped (109 files, 268.1KB).
    Error: Unknown command: bundle
    before_install.1
    0.01s$ echo $PATH
    0.05s$ if [ "$TRAVIS_OS_NAME" = "osx" ]; then
        eval "$(/usr/libexec/path_helper)"
        sudo tlmgr update --self
      elif [ "$TRAVIS_OS_NAME" = "linux" ]; then
        tlmgr init-usertree
        echo MSG FROM JO:
        echo on linux we cannot update apt installed texlive
        echo next steps to fix see commit msg: tompollard@85fd9e7
        echo c.f. https://tex.stackexchange.com/questions/551383/cant-run-tex-lives-tlmgr-in-a-github-action
        echo and https://tex.stackexchange.com/questions/1092/how-to-install-vanilla-texlive-on-debian-or-ubuntu
    
      fi
    
    sudo: tlmgr: command not found
    ```
    JamesOwers committed Jan 15, 2021
    Configuration menu
    Copy the full SHA
    21e54b3 View commit details
    Browse the repository at this point in the history

Commits on Jan 16, 2021

  1. Extended README.md to include Troubleshooting etc.

    Added:
    * Troubleshooting
    * More info to "how does it work"?
    JamesOwers committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    8fd5e92 View commit details
    Browse the repository at this point in the history
  2. Ignore .vscode

    JamesOwers committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    c819cc1 View commit details
    Browse the repository at this point in the history
  3. Dispense with && and make script fail upon error

    Also added comments re updating all
    JamesOwers committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    5defa9d View commit details
    Browse the repository at this point in the history
  4. Updated markdown chapters to include further examples.

    * Section references - chapter 1
      * Uses plain LaTeX \ref{...} to indicate how to refer to each section.
    * Use of URL links - chapter 1
    
    Still todo:
    * footnotes
    * label arbitrary sections like it was an equation (e.g. the code snippet)
    JamesOwers committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    00eeadc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    883f8c1 View commit details
    Browse the repository at this point in the history
  6. Commit img files generated by make html

    I think this makes sense, given that we are tracking both thesis.pdf (a large
    binary file), and thesis.html (a file which refers to these images).
    JamesOwers committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    65b5fe6 View commit details
    Browse the repository at this point in the history
  7. Add the docx binary file

    Debatable whether this is really required. I do it for completeness. I don't
    know if we will be able to track changes the the file i.e. will it stay the same
    if we generate from the same markdown?
    JamesOwers committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    a52566f View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    14a73f1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    1acc541 View commit details
    Browse the repository at this point in the history
  10. Regenerated output

    JamesOwers committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    9dc9cd1 View commit details
    Browse the repository at this point in the history
  11. Add note about latex

    JamesOwers committed Jan 16, 2021
    Configuration menu
    Copy the full SHA
    bc414eb View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9b87737 View commit details
    Browse the repository at this point in the history