https://github.com/hughparsonage/texcheckr
https://github.com/hughparsonage/texcheckr
bibtex latex r spellcheck
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/hughparsonage/texcheckr
- Owner: HughParsonage
- Created: 2017-04-09T03:12:11.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-05T06:06:20.000Z (over 2 years ago)
- Last Synced: 2025-04-19T06:19:58.542Z (about 1 year ago)
- Topics: bibtex, latex, r, spellcheck
- Language: TeX
- Size: 3.17 MB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.Rmd
Awesome Lists containing this project
README
---
title: TeXCheckR
output:
md_document:
variant: markdown_github
---
Development page for TeXCheckR. See also https://github.com/hughparsonage/grattanReporter
```{r}
# install.packages("TeXCheckR")
library(TeXCheckR)
library(knitr)
library(pander)
library(magrittr)
```
```{r}
eg <- system.file("extdata", "readme.tex", package = "TeXCheckR")
```
```latex
\documentclass{article}
\begin{document}
I'd like an en dash - now.
Quotes need to be entered 'precisely'.
Footnotes can't have spaces before. \footnote{And should be full sentences}
We shouldn't refer to section 1 by typing out the literal cross-reference.
\section{Consitent labels are a good custom}\label{good-customs}
And English spacing dictates sentence spacing HERE. Otherwise the spacing looks strange.
Here the mismatched parentheses are obvious. (But it's not always the case.
We want to avoid this formatting: 10 million payments of $5 would total $50 million.
And \LaTeX{} won't raise an error.
\end{document}
```
```{r, error=TRUE}
check_dashes(eg)
check_quote_marks(eg)
check_footnote_typography(eg)
check_literal_xrefs(eg)
check_labels(eg)
TeXCheckR:::check_sentence_ending_periods(eg)
TeXCheckR:::check_unclosed_parentheses(eg)
check_escapes(eg)
```