Questions tagged [standalone]

{standalone} is about questions regarding the standalone bundle that allows users to easily place picture environments or other material in separate source files and compile these on their own or as part of a main document.

stan­dalone – Com­pile TeX pic­tures stand-alone or as part of a doc­u­ment

A class and pack­age is pro­vided which al­lows TeX pic­tures or other TeX code to be com­piled stan­dalone or as part of a main doc­u­ment. Spe­cial sup­port for pic­tures with beamer over­lays is also pro­vided.

The pack­age is used in the main doc­u­ment and skips ex­tra pream­bles in sub-files. The class may be used to sim­plify the pream­ble in sub-files. The be­haviour in stan­dalone mode may ad­justed us­ing a con­fig­u­ra­tion file standalone.cfg to re­de­fine the stan­dalone en­vi­ron­ment.

CTAN: http://www.ctan.org/pkg/standalone
TexDoc: http://www.texdoc.net/pkg/standalone
Website: https://bitbucket.org/martin_scharrer/standalone
Code Repository: https://bitbucket.org/martin_scharrer/standalone/src
Bug Tracker: https://bitbucket.org/martin_scharrer/standalone/issues

689 questions
24
votes
2 answers

standalone - Can I specify the font size in the document?

I'd like to define the font size in a standalone document so that it is identical to the one in my "real" big document. I have several standalone-documents. In those, I'd like to implement an option which makes the standalone-documents simply…
henry
  • 6,594
23
votes
3 answers

Multiple pages with standalone

I have a number of figures and I want to create a document with LaTeX such that each page is one of the figures (with the page size equal to the size of the figure). If I…
Joel
  • 2,429
21
votes
1 answer

Problem with option border of class standalone

I tested a MWE given in question Standalone producing cropped / truncated formulae. Following the documentation (page 9) I used the class option border={left right bottom top} with left=right=top=0pt and bottom=20pt (20pt only to show the effect…
Mensch
  • 65,388
20
votes
1 answer

How does standalone crop?

I hope that this is not a duplicate. Consider the MWE \documentclass[tikz]{standalone} \standaloneconfig{border=-3cm 0cm 0cm 0cm} \begin{document} \begin{tikzpicture} \draw(0,-5) grid (10,5); \foreach \X in…
user121799
20
votes
1 answer

Standalone: class vs package

What is the difference between the standalone class vs the package? From what I understand, the usage is different by \documentclass{report} or \usepackage{standalone} respectively. Is the class for the sub files and the package is for the main…
WWLK
  • 303
19
votes
2 answers

Path problem with included file inside of a standalone file

How can I get the current path inside an included standalone file? 1. Theoretical Example: let's assume the following directory structure: main.tex img/ |-standalonefile.tex |-data standalonefile.tex: \documentclass{standalone} \begin{document} …
someonr
  • 8,531
10
votes
2 answers

standalone figure and tabular

I'd like to generate a standalone pdf containing a pgf/tikz image and a tabular. I'm almost getting the desired result but there is a paragraph between the image and the tabular that breaks my layout (I guess it is due to the fact that the empty…
mariosangiorgio
  • 677
  • 2
  • 6
  • 9
6
votes
1 answer

standalone package: reconstruction of the command line

With current version of ImageMagick, ImageMagick 7.0.7-21 Q16 x64 2018-01-06 application filename is long ago magick so the standalone package should be invoked by something like…
Pygmalion
  • 6,387
  • 4
  • 34
  • 68
5
votes
2 answers

Modular and re-usable (tikz) pictures

The (tikz-based) pictures I create are often modular. Therefore it would be ideal to use the same source for different variants of of picture. Ideally this would be based on standalone, since this is what I am already using, and provide a new…
Flow
  • 1,013
5
votes
2 answers

how to use standalone class with option [multi=tcolorbox]?

MWE: ! pdflatex \documentclass[multi=tcolorbox,crop]{standalone} \usepackage{tcolorbox} \usepackage{lipsum} \begin{document} \begin{tcolorbox} \lipsum[1] \end{tcolorbox} \begin{tcolorbox} \lipsum[1-2] \end{tcolorbox} \end{document} I just…
user26992
  • 93
  • 3
5
votes
3 answers

A correct bounding box for a standalone logo

Writing \documentclass{standalone} \usepackage{varwidth} \begin{document} \begin{varwidth}{\linewidth} {\em line 1} {\em line 2} \end{varwidth} \end{document} produces an incorrect bounding box for italics (note that the '2' is clipped): How…
Calaf
  • 1,471
4
votes
1 answer

Prevent figure from being cut in "standalone" class

I'm writing a script to extract LaTeX-generated images and save them as PDF files. I have an issue with too large images. This is my MWE: \documentclass[varwidth]{standalone} \usepackage{amsmath} \begin{document} \setlength{\unitlength}{1cm} …
Gabriele
  • 1,815
4
votes
1 answer

Standalone with package in parent directory

I have three files, the files main.tex and package.sty located in the same folder and a standalone file fig.tex located in a subfolder sub, using a command from package.sty. The problem is that standalone says it cannot build fig.pdf. I use…
3
votes
1 answer

Why standalone is not working

I use standalone, but sometimes it works for me and sometimes not, why it is not working in the below code. \documentclass[tikz,circuitikz]{standalone} \usepackage{xcolor} \definecolor{lava}{rgb}{0.81, 0.06, 0.13} \definecolor{myblue}{rgb}{0.0,…
Diana
  • 1,285
  • 7
  • 12
3
votes
1 answer

producing a png file

Is there a way to produce an image file (png) wihout producing first a pdf file? I'm useing the standalone class \documentclass[preview, border=1pt, convert={outext=.png}]{standalone} I am able to produce a png file with the command: pdflatex…
1
2 3