Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yonicd/texsnippets

Common boilerplate TeX commands as RStudio snippets
https://github.com/yonicd/texsnippets

Last synced: 28 days ago
JSON representation

Common boilerplate TeX commands as RStudio snippets

Awesome Lists containing this project

README

        

# texsnippets

Add `RStudio` snippets for boilerplate TeX commands

## Installation

```r
remotes::install_github('yonicd/texsnippets')
```

## Setup

To set up the snippets in RStudio run (after running it you must restart the Rstudio IDE)

```r
texsnippets::use_texsnippets()
```

If you already have texsnippets installed the package will check against the current package snippet definitions to see if your installation is out of date on you computer. If it is you will get a message on package load to run:

```r
texsnippets::update_texsnippets()
```

## Usage

All snippets have a ts (texsnippets) prefix. Write `'ts'` in the `RStudio` source editor and press `tab` button.

## Examples

### Boiler plate snippets

![](readme_gifs/example.gif)

### Snippets that wrap around lines of text

![](readme_gifs/smart_snippet.gif)

### Single Lines
```
ts_{caption}
ts_{label}
ts_{usepackage}
ts_{usepackage}[options]
```

### Begin\End

```
ts_{abstract}
ts_{alltt}
ts_{array}{cols}
ts_{array}[pos]{cols}
ts_{bmatrix}
ts_{Bmatrix}
ts_{center}
ts_{description}
ts_{description}\item
ts_{displaymath}
ts_{document}
ts_{enumerate}\item
ts_{equation}
ts_{eqnarray}
ts_{figure}
ts_{figure}[placement]
ts_{figure*}
ts_{figure*}[placement]
ts_{filecontents}
ts_{filecontents*}
ts_{flushleft}
ts_{flushright}
ts_{footnotesize}
ts_{Huge}
ts_{huge}
ts_{itemize}
ts_{itemize}\item
ts_{LARGE}
ts_{Large}
ts_{large}
ts_{list}{label}{spacing}
ts_{lrbox}
ts_{math}
ts_{matrix}
ts_{minipage}[position]{width}
ts_{minipage}{width}
ts_{normalsize}
ts_{picture}(width,height)
ts_{picture}(width,height)(xoffset,yoffset)
ts_{pmatrix}
ts_{quotation}
ts_{quote}
ts_{scriptsize}
ts_{small}
ts_{tabbing}
ts_{table*}
ts_{table*}[placement]
ts_{table}
ts_{table}[placement]
ts_{tabular}{cols}
ts_{tabular}[pos]{cols}
ts_{tabular*}{width}[pos]{cols}
ts_{tabular*}{width}{cols}
ts_{thebibliography}{widestlabel}
ts_{theindex}
ts_{theorem}
ts_{theorem}[optional]
ts_{tiny}
ts_{titlepage}
ts_{trivlist}
ts_{verbatim}
ts_{verbatim*}
ts_{Vmatrix}
ts_{vmatrix}
ts_{verse}
```

### Wizards

Templates of combinations of commands

```
ts_wizard_{table}

\begin{table}
\label{label}
\caption{caption}
\begin{tabular}

\end{tabular}
\end{table}

ts_wizard_{table}[placement]{width}[pos]{cols}

\begin{table}[placement]
\label{label}
\caption{caption}
\begin{tabular}{width}[pos]{cols}

\end{tabular}
\end{table}

ts_wizard_{table}[placement]

\begin{table}[placement]
\label{label}
\caption{caption}
\begin{tabular}

\end{tabular}
\end{table}

ts_wizard_{table}{width}[pos]{cols}

\begin{table}
\label{label}
\caption{caption}
\begin{tabular}{width}[pos]{cols}

\end{tabular}
\end{table}

```

This project is released with a [Contributor Code of Conduct](CONDUCT.md). By participating in this project you agree to abide by its terms.