tex.figure: Export a latex figure from a tex file

Description Usage Arguments Value

View source: R/orgmode_tikz.R

Description

Create a latex figure using a tikz .tex file as the input to the figure. This is useful for placing tikz figures into org-mode files.

Usage

1
2
3
4
5
6
7
8
9
tex.figure(
  inpath,
  fig.float = "t",
  fig.center = TRUE,
  fig.caption = "My figure",
  fig.label = "fig:my_figure",
  is.subfigure = FALSE,
  subfigure.scale = 1
)

Arguments

inpath

Filepath to the location of the tex file

fig.float

Latex figure float modifiers as a string (e.g. "htbp", "!h")

fig.center

Add centering argument to the latex figure block

fig.caption

Latex figure caption

fig.label

Latex figure label for referencing

is.subfigure

Boolean value to create a subfigure instead of normal figure

subfigure.scale

Set width of subfigure if is.subfigure is TRUE

Value

A latex figure as a string


jaypmorgan/orgtikz documentation built on Feb. 12, 2021, 12:36 a.m.