From 3e0f1341502c14bed132ea369e817117e6a01788 Mon Sep 17 00:00:00 2001 From: Dominique Orban Date: Sat, 11 Nov 2023 15:39:02 -0800 Subject: [PATCH 1/2] ltex workflow --- .github/workflows/ltex.yml | 38 ++++++++++++++++++++++++++++++++++ paper/ltex.json | 42 ++++++++++++++++++++++++++++++++++++++ paper/report.tex | 4 ++-- 3 files changed, 82 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ltex.yml create mode 100644 paper/ltex.json diff --git a/.github/workflows/ltex.yml b/.github/workflows/ltex.yml new file mode 100644 index 0000000..77e1d5c --- /dev/null +++ b/.github/workflows/ltex.yml @@ -0,0 +1,38 @@ +name: ltex + +on: + pull_request: + branches: + - master + - main + +jobs: + build: + runs-on: macos-latest + steps: + - name: Checking out repository + uses: actions/checkout@v4 + - name: Install ltex-ls + run: | + brew install ltex-ls + # - name: Setup tmate session + # uses: mxschmitt/action-tmate@v3 + - name: Run ltex-ls + id: run-ltex-ls + run: | + unset JAVA_HOME + ltex-cli --client-configuration=paper/ltex.json paper | tee ltex-cli.log + - name: Build comment + id: build-comment + uses: actions/github-script@v6 + with: + github-token: ${{ github.token }} + result-encoding: string + script: | + const fs = require('fs'); + return "
\nltex output\n\n```\n" + fs.readFileSync("${{ github.workspace }}/ltex-cli.log", "utf8").toString() + "\n```\n
"; + - name: Comment in PR + uses: thollander/actions-comment-pull-request@v2 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + message: ${{ steps.build-comment.outputs.result }} diff --git a/paper/ltex.json b/paper/ltex.json new file mode 100644 index 0000000..6beb16f --- /dev/null +++ b/paper/ltex.json @@ -0,0 +1,42 @@ +{ + "ltex.language": "en-US", + "ltex.dictionary": { + "en-US": [ + "Coimbra", + "GERAD", + "MAGI", + "NSERC", + "Polytechnique", + "TikZ", + "adaptively", + "boundedness", + "componentwise", + "Fréchet", + "linesearch", + "lsc", + "nonconvex", + "nonconvexity", + "nonnegative", + "nonpositive", + "Nonsmooth", + "nonsmooth", + "optimality", + "Powell-symmetric-Broyden", + "prox-bounded", + "pseudonorm", + "pseudonorms", + "regularizer", + "regularizers", + "roundoff", + "steplength", + "steplengths", + "subdifferential", + "subdifferentials", + "subproblem", + "subproblems", + "thresholding", + ] + }, + "ltex.additionalRules.enablePickyRules": true, + "ltex.additionalRules.motherTongue": "fr" +} diff --git a/paper/report.tex b/paper/report.tex index 7e0fcae..5f6f875 100644 --- a/paper/report.tex +++ b/paper/report.tex @@ -22,11 +22,11 @@ \title{\papertitle} \author{% Author One\footnote{% - GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montr\'eal. E-mail: \href{mailto:geoffroy.leconte@polymtl.ca}{geoffroy.leconte@polymtl.ca}. + GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montréal. E-mail: \href{mailto:geoffroy.leconte@polymtl.ca}{geoffroy.leconte@polymtl.ca}. } \and Dominique Orban\footnote{% - GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montr\'eal. E-mail: \href{mailto:dominique.orban@gerad.ca}{dominique.orban@gerad.ca}. + GERAD and Department of Mathematics and Industrial Engineering, Polytechnique Montréal. E-mail: \href{mailto:dominique.orban@gerad.ca}{dominique.orban@gerad.ca}. } \thanks{Research supported by an NSERC Discovery grant.} } From 018bdf10cb7b522eb81d366b4a113975a37791de Mon Sep 17 00:00:00 2001 From: Dominique Orban Date: Sat, 11 Nov 2023 16:44:14 -0800 Subject: [PATCH 2/2] fix typos and disable linting abbrv.bib --- paper/abbrv.bib | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/paper/abbrv.bib b/paper/abbrv.bib index 07c1b04..c3da3a9 100644 --- a/paper/abbrv.bib +++ b/paper/abbrv.bib @@ -1,3 +1,5 @@ +% LTeX: enabled=false + @string{acta = {Acta Numer.}} @string{acha = {Appl. Comput. Harmon. A.}} @string{aor = {Annals of Operations Research}} @@ -177,7 +179,7 @@ @string{npl-address @string{nwu = {Department of Electrical Engineering and Computer Science, Northwestern University}} @string{nwu-address = {Evanston, Illinois, USA}} -@string{otc = {Optimization Technology Center, Argonnne National Laboratory}} +@string{otc = {Optimization Technology Center, Argonne National Laboratory}} @string{otc-address = {Argonne, Illinois, USA}} @string{ral = {Rutherford Appleton Laboratory}} @@ -190,4 +192,4 @@ @string{stanford @string{stanford-address = {Stanford, California, USA}} @string{unicamp = {Department of Applied Mathematics, IMECC-UNICAMP}} -@string{unicamp-address = {Campinas, Brasil}} +@string{unicamp-address = {Campinas, Brazil}}