Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.5%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Parse LaTeX Code
Basic Info
- Host: GitHub
- Owner: dmurdoch
- License: gpl-2.0
- Language: C
- Default Branch: main
- Homepage: https://dmurdoch.github.io/parseLatex/
- Size: 2.09 MB
Statistics
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 3
Created over 1 year ago
· Last pushed 12 months ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# parseLatex
[](https://github.com/dmurdoch/parseLatex/actions/workflows/R-CMD-check.yaml)
[](https://CRAN.R-project.org/package=parseLatex)
The goal of `parseLatex` is to provide a parser for a subset of
LaTeX syntax that is more complete than what is handled by the
`tools::parseLatex()` parser.
Perhaps some day it will handle all LaTeX inputs, but that's not
likely. For now, I'm aiming to handle anything that `knitr::kable()`
and the `kableExtra` functions will produce, plus related code.
A website describing the current state is here: https://dmurdoch.github.io/parseLatex/ .
## Installation
You can install the development version of parseLatex from [GitHub](https://github.com/) with:
``` r
# install.packages("pak")
pak::pak("dmurdoch/parseLatex")
```
## Example
This is a basic example.
```{r example}
library(parseLatex)
library(kableExtra)
latex <- kbl(mtcars[1:2, 1:2], format = "latex")
cat(latex)
parsed <- parseLatex(latex)
# This is a blank followed by a table; drop the blank
table <- parsed[[find_env(parsed, "tabular")]]
# Get the alignment options from the content
brace_options(get_contents(table))
tableCell(table, 2,2) # The title counts!
tableCell(table, 2,2) <- "Changed!"
table
```
## To-do list
- Possibly add class for table objects, and implement
indexing and subsetting on that class.
- See what `kableExtra` does with tables, and try to make that
easier.
- Do something with math environments?
Owner
- Login: dmurdoch
- Kind: user
- Repositories: 199
- Profile: https://github.com/dmurdoch
GitHub Events
Total
- Create event: 8
- Issues event: 4
- Release event: 2
- Watch event: 3
- Delete event: 2
- Issue comment event: 10
- Push event: 167
- Pull request event: 8
- Fork event: 1
Last Year
- Create event: 8
- Issues event: 4
- Release event: 2
- Watch event: 3
- Delete event: 2
- Issue comment event: 10
- Push event: 167
- Pull request event: 8
- Fork event: 1
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 3
- Total pull requests: 7
- Average time to close issues: about 6 hours
- Average time to close pull requests: about 6 hours
- Total issue authors: 2
- Total pull request authors: 2
- Average comments per issue: 2.0
- Average comments per pull request: 1.0
- Merged pull requests: 7
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 3
- Pull requests: 7
- Average time to close issues: about 6 hours
- Average time to close pull requests: about 6 hours
- Issue authors: 2
- Pull request authors: 2
- Average comments per issue: 2.0
- Average comments per pull request: 1.0
- Merged pull requests: 7
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- tyner (2)
- eddelbuettel (1)
Pull Request Authors
- dmurdoch (5)
- eddelbuettel (2)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 233 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 3
- Total maintainers: 1
cran.r-project.org: parseLatex
Parse 'LaTeX' Code
- Homepage: https://github.com/dmurdoch/parseLatex
- Documentation: http://cran.r-project.org/web/packages/parseLatex/parseLatex.pdf
- License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
-
Latest release: 0.4.1
published about 1 year ago
Rankings
Dependent packages count: 27.2%
Dependent repos count: 33.5%
Average: 49.2%
Downloads: 86.9%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- tools * imports
- utils * imports
- kableExtra * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v4 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite