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

learn more… | top users | synonyms

15
votes
3answers
1k 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 ...
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} ...
11
votes
2answers
820 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}​ ...
6
votes
1answer
419 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
1k 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 ...
3
votes
2answers
437 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 ...
3
votes
1answer
527 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} ...
1
vote
1answer
65 views

Why is there a gap on the right side of child image imported from within the main input file?

Child input file % Child.tex \documentclass{standalone} \usepackage{pstricks} \pagecolor{yellow} \setlength\PreviewBorder{0pt} \begin{document} \begin{pspicture}(4,3) \psframe[linecolor=red](4,3) ...
5
votes
1answer
715 views

Why does tikz neither draw nor externalize my picture?

I'm trying to generate a gif from a tikz picture, using tikz's external library. Ultimately, my plan is to Convert a picture to gif write a node style that converts the nodes' coordinates to pixel ...
8
votes
1answer
282 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 ...
6
votes
2answers
904 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 ...
3
votes
1answer
178 views

How make Standalone with Subpreambles respect group?

I am trying to use the subpreambles option with the standalone package. My main file is: \documentclass[subpreambles]{standalone} \usepackage{standalone} \newtoks{\MyToken} \MyToken={MainFile} ...
5
votes
1answer
976 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.)
1
vote
0answers
598 views

Problem with \usepackage{standalone} in standalone file in new TeX Live distribution [closed]

I have ONE standard file that I use in ALL my files including the standalone files. This method was working fine until today, when I updated my texlive distribution using sudo /usr/texbin/tlmgr update ...
13
votes
1answer
3k 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 ...