The standalone bundle allows users to easily place picture environments or other material in own source files and compile these on their own or as part of a main document
14
votes
3answers
507 views
Standalone package creates a page with a fixed width
Recently I found the standalone package. I am using it to create figures and such in external files. But everytime content is created the width of the page seems to be fixed, it does not shrink to the ...
3
votes
1answer
468 views
Is it possible to use the figure environment with the standalone package?
I can not get standalone to work with figures; I get the error Not in outer par mode.
(The figure is in the included file.)
8
votes
1answer
226 views
Avoid paragraph due to trailing empty line in standalone file
Using my standalone class and package it is possible to compile diagrams etc. inside own files stand-alone or as part of a main document. However, a common user error is to keep an empty line between ...
10
votes
3answers
663 views
How to make a standalone document with one equation?
I was surprised to find that standalone package can not compile a document with an equation:
\documentclass{standalone}
\begin{document}
\begin{equation} % not working!
F(V, T) = E(V) + D(T)
...
17
votes
2answers
409 views
How to make a smarter cropping with standalone or preview packages?
The arrow tail at the bottom left corner is not properly cropped.
\documentclass[tikz,border=0pt]{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=3,line width=3pt]
...
8
votes
1answer
2k views
TikZ to non-PDF
How do I tell TikZ to output to a standalone image file? Like JPG, PNG, etc?
Yes, there is a way to output it to PDF, then do a snapshot. But this is for mathematical-visual comparisons, and I need ...
10
votes
3answers
398 views
Standalone producing cropped / truncated formulae
I'm using standalone to produce, well, standalone formulae. However, sometimes they end up being cropped too close and parts get left off. I'm including a sample .tex file and output. What can I do to ...
10
votes
2answers
540 views
Nested standalone files with standalone package
Is it possible to nest files with the standalone package? I have something like the following:
In A.tex:
\documentclass{article}
\usepackage{standalone}
\begin{document}
\input{B}
\end{document}
...
7
votes
1answer
176 views
algorithmicx crashes standalone
I am creating SVG files from different stuff from my LaTeX document. For this, I am using the standalone package followed by pdf2svg.
This compiles:
\documentclass{article}
\usepackage{algorithmicx}
...
6
votes
2answers
578 views
Package incompatibilites: etoolbox, hyperref, and bm, standalone?
I am trying to transition to using the etoolbox package, but seem to have run into some difficulties and they appear related to the hyperref and bm packages which to me seem totally unrelated. The ...
5
votes
1answer
163 views
\documentclass[convert]{standalone} ignores linebreak
I tried to combine this answer Compile a LaTeX document into a PNG image that's as short as possible
with my answer Add column in a table
But the pdflatex -shell-escape table.tex ignores ...
4
votes
1answer
177 views
Corrupted TeXLive2012 installation? (Option clash for currfile)
Background:
As per Manually copy older TeXLive2011 from one Mac to a new Mac, I attempted to get TeXLive2010 and TeXLive2011 (with the latest libraries) on a newer mac. The older releases are not ...
3
votes
1answer
136 views
Use of apacite package with subfiles package or standalone package results in LaTeX Error: Can be used only in preamble
I want to create a multi-file project for my thesis, in which I use separate files for sections. To be able to compile these separate files I tried using the subfiles package and the standalone ...
4
votes
1answer
137 views
How to use the standalone package with emacs
This is a follow-up question from A simpleton's guide to (...)TeX workflow with emacs.
The main answer stated that it is possible to use emacs together with standalone: the question is how?
The ...
3
votes
1answer
442 views
What kind of “magic” does preview package do to produce a tight paper size?
Actually the following method, that looks like reinventing the wheel, has been discarded once I have known the existence of preview package.
% WithoutPreview.tex
\documentclass{article}
...
15
votes
2answers
1k views
The perfect pdfcrop
I need a "perfect" pdfcrop, one that crops exactly to the edge of the figure or text for alignment issues as a graphic in other programs. I'm aware of the standalone package, and have gone through ...
4
votes
1answer
73 views
How to remove the unwanted space on the left side of the following gather*?
\documentclass[preview,border=12pt,varwidth]{standalone}
\usepackage{amsmath}
\begin{document}
\abovedisplayskip=0pt\relax
\begin{gather*}
6x^2-30x+36=0\\
6(x^2-5x+6)=0\\
6(x-2)(x-3)=0\\
x-2=0 \quad ...
3
votes
1answer
67 views
How to preserve the indentation when using standalone or preview?
The following output has no correct paragraph indentation after incorporating standalone documentclass or preview package.
\documentclass[border=12pt,preview]{standalone}
\parindent=12pt% does not ...
6
votes
1answer
236 views
Get {standalone} to ignore blocks of text from \input files (e.g., \begin{spacing} and \maketitle)
I've got a number of separate .tex files that are all \documentclass{article}. I'm inputting these into a \documentclass{book} file as chapters. In the book.tex file, then, I've got inputs like this:
...
5
votes
2answers
545 views
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 ...
4
votes
3answers
2k views
LaTeX math whitespace
when I try to display a math equation with LaTeX, there is always whitespace to the right and left of the math equation. I am trying it with code like this:
\documentclass{standalone}
...
3
votes
2answers
274 views
Detect value of option given to documentclass
I would like to be able to detect if the standalone package was used with [preview=false] or [preview=true]. Not too concerned if this setting was a default or user defined.
Based on How can one ...
2
votes
1answer
127 views
Cannot set pixel density in standalone package for PNG output
I want to output a PNG image with the standalone package. Here is a minimal working example:
\documentclass[preview, convert={density=300}]{standalone}
\begin{document}
Hello world
...
1
vote
2answers
58 views
Standalone multiline logo [duplicate]
I would like to produce through pdflatex an image that shrink-wraps around a logo.
Here is a skeleton file.
\documentclass{standalone}
\begin{document}
line 1
line 2
\end{document}
But this ...
1
vote
0answers
60 views
Standalone package errors when creating table [duplicate]
Possible Duplicate:
Avoid paragraph due to trailing empty line in standalone file
How to make a standalone document with one equation?
Below is a MWE of a table that keeps outputting ...
