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

2
votes
1answer
230 views

! Package pgfkeys Error | compiling a standalone picture as \includestandalone{fig}

I have two tikz pictures in external files (fig1.tex and fig2.tex): fig1.tex \documentclass[a4paper,class=minimal,border=0pt]{standalone} \usepackage{tikz} \usetikzlibrary{plotmarks} ...
9
votes
1answer
228 views

Standalone package advanced conversion options inside LaTeX source file

I want to use the conversion options of the standalone package to produce a PNG image file from a LaTeX source file. The package documentation lists two tables with options for conversion. The normal ...
10
votes
2answers
203 views

I'm using the standalone package. How can I get regular paragraph breaks?

I'm using the standalone class to render images for individual math problems that will be displayed in an app, so the cropping functionality is essential. However, the package seems to destroy ...
3
votes
1answer
184 views

How to align standalone TikZ pictures horizontally?

Today I discovered the existence of this wonderful package called "standalone". I really love it because I have a lot of pictures in Tikz code and some of them have a very long code and it's very ...
1
vote
1answer
81 views

How to check if my child document is being loaded by parent document when using standalone?

When I use standalone package to load a child .tex file into a main.tex file, then parts of the title and table of content heading Contents still shows up in the main document. The problem is that I ...
4
votes
2answers
174 views

Table with caption too wide for standalone package document

I am trying to output a wide table with a caption using the standalone package. When I do the following without a caption, I get nice output: \documentclass{standalone} \usepackage{caption} ...
4
votes
1answer
126 views

TikZ, standalone and circuite.ee.IEC, strange bounding box

I'm using standalone to create PDF output of a tikzpicture. But I run into a problem when I use the circuit library. Here's a mwe that shows that simply adding the line ...
4
votes
1answer
334 views

Why does standalone not detect the TikZ crop correctly?

This small example \documentclass{standalone} \usepackage{xltxtra,textcomp,graphicx,color,tikz} \usepackage[absolute,overlay]{textpos} \begin{document} \begin{tikzpicture} \clip (0,0) rectangle ...
3
votes
1answer
100 views

Using pst-barcode, fontspec and standalone at the same time?

I am trying to generate a series of labels using TikZ and the standalone document class. Normally, this works fine, but this time I want to use a system font and to include a barcode. Below is an ...
3
votes
0answers
240 views

What does “File stack underflow!” mean?

I am getting two times the error: Package currfile Warning: File stack underflow! on input line xxx. I am not explicitly loading currfile, but standalone seems to do. I am getting this warning ...
2
votes
1answer
83 views

Table too wide for page in standalone file?

My goal is to create a standalone TeX file containing tabulated figures. No matter what value I set for image width, the resulting table is always too wide for the page. Here is a MWE: ...
3
votes
0answers
237 views

standalone problem [closed]

I need to get some equations in .png. Looking for the solution on the web I found that the standalone documentclass should do the job using the convert option. My code is the following: ...
5
votes
1answer
120 views

standalone not working properly with PStricks?

I'm using Vaucanson-G to render automata (I also use TikZ, but here, I want Vaucanson-G). Because it uses PStricks although I want to compile with pdflatex, I have put all my automata in separated ...
5
votes
1answer
181 views

Newpage between tikzpictures

I'm trying to draw in tikz. The aim is to create a document with a first page with the title and other infos. Each of the other page is a wiremap a of type of cable. I use python to generate the tex ...
1
vote
1answer
259 views

ConTeXt Standalone installation problem under Debian GNU/Linux

I am trying to install ConTexT Standalone under LMDE, a Debian GNU/Linux operating system. I followed the system-wide installation instructions step-by-step without any problem. Except for the final ...
1
vote
1answer
337 views

A question on tikz/pgf externalization, standalone, and includeonly for compiling large document

I have a goal to build an efficient compiling environment to build large documents. The requirements are these: Use tikz/pgf to draw many figures; Use \includeonly to build only a portion of the ...
3
votes
1answer
80 views

How to get a tight output when using pst-tree package and standalone class?

\documentclass[preview,border=3pt,varwidth]{standalone} \usepackage{pst-tree} \psset{levelsep=2,treesep=-2,angleA=90,angleB=-90,arm=12pt} \def\psedge#1#2{\ncangle{#2}{#1}} \begin{document} ...
5
votes
1answer
125 views

How to use subcaption with standalone

I tried to \input in my main document file a standalone section, which uses the subcaption package. The standalone file compiles just fine. But when I try to compile the main document I get an ...
6
votes
1answer
112 views

Generate an image with minimum space around it

I'm using this solution to generate images: \ifdefined\formula \else \def\formula{E = m c^2} \fi \documentclass[border=2pt]{standalone} \usepackage{amsmath} \usepackage{varwidth} \begin{document} ...
6
votes
1answer
364 views

Problems with \pgfplotstableread and relative paths

I have this folder structure in my project: main.tex mystyle.sty tex mytex.tex img myimg.tex dat mydat.dat And the following files: main.tex: \documentclass{scrartcl} \usepackage{mystyle} ...
6
votes
1answer
317 views

What's causing extra white space to the left of my standalone TikZ image?

I have extra whitespace to the left of a TikZ image produced in a standalone environment: I don't know why this is occurring. I thought perhaps the left projector bounding box, but the right ...
3
votes
1answer
183 views

I am having an issue with an included standalone TikZ picture

I am not sure if code will do much good here. I have included many standalone TikZ pictures but this pictures is the only one to act differently. Here is the picture in compiled from the standalone ...
6
votes
1answer
1k views

How do I include and scale on-image-TikZ-drawings made by the standalone class?

I am building several on image TikZ drawings. In detail: I am having PDFs of technical drawings, I crop the white margins, overlay nodes and some arrows and compile them. The result should give me a ...
3
votes
1answer
514 views

TikZ: compiling a standalone picture

I am not sure if this is recreate-able through a MWE. Whenever I compile a standalone TikZ picture, it compiles all my standalone figures in the same folder. I am using Ubuntu 13.04 and Emacs with ...
11
votes
1answer
779 views

Compiling a main document with many TikZ subfiles efficiently

What would be the most efficient way to compile a document of the article class with many TikZ subfiles? In the main document, I have added \usepackage{standalone} and then \includestandalone for the ...
4
votes
1answer
154 views

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 ...
2
votes
1answer
135 views

Why doesn't standalone accept my build={} package option?

I frequently use standalone to incorporate tikz images in my documents. I have some really large tikz plots which I would like to include in my beamer presentation, but I am getting "Tex capacity ...
5
votes
1answer
156 views

Legend position in standalone pgfplot moves when plot is used in document

The following mwe shows that the legend position in a pgfplot changes when the standalone version is scaled in a document that includes it. Standalone: From driver: (I changed the sizes to ...
5
votes
1answer
198 views

Including .tex files that need a different style file than the main text

EDIT: Substantial edit of the original version has been done to clarify the question. Background I've written two small python package manuals with sphinx (http://sphinx-doc.org/) a program that ...
4
votes
1answer
208 views

Shifted hyperlink with includestandalone

I have a problem with includestandalone and a tikz-grafic with a hyperref. My MWE: I define a image as picture.tex: %Save as picture.tex \documentclass[tikz]{standalone} \usepackage{hyperref} ...
21
votes
1answer
370 views

How can I make a standalone document loading siunitx work?

I've got a standalone document that uses siunitx: % subdocument.tex \documentclass{standalone} \usepackage{siunitx} \begin{document} \SI{10}{\kilo\newton} \end{document} I'd like to include this ...
4
votes
1answer
106 views

Making a series of child TeX files and including them as “chapters” in a parent file?

I want to build a big PDF of multiple TeX files which will all have the same preamble. They'll have \newcommand and \renewcommand as well as \usepackage and \documentclass because each file should be ...
5
votes
3answers
235 views

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 ...
1
vote
0answers
69 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 ...
0
votes
0answers
270 views

Figure in standalone documentclass [duplicate]

I am using the document class:\documentclass{standalone}. However, I am unable to use the commands \begin{figure} and \end{figure}. What package do I need to include to be able to use the commands ...
0
votes
1answer
133 views

How to prevent unwanted cropping in a tikz picture? [duplicate]

I am trying to make a series of engineering drawings with TikZ for an industrial catalogue. I would like to get only the drawings. The following MWE crops the bottom of the picture, and I would like ...
1
vote
2answers
90 views

O does not fit standalone class [duplicate]

Why are the top and bottom of the O cut off when I use the standalone class without any larger symbols? \documentclass{standalone}% \begin{document}% O% \end{document}%
5
votes
2answers
97 views

Empty space in standalone document with textopo

The question is related to similar issues with standalone package: lots of empty space is added in addition to the desired figure. However, this time no empty paragraphs in source code. My MWE: ...
7
votes
1answer
168 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 ...
6
votes
1answer
120 views

How to remove the white space on the top of the following table?

How to remove the white space on the top of the following table? \documentclass[preview,border=0pt,varwidth]{standalone} \usepackage[table]{xcolor} \usepackage{array} \usepackage{longtable} ...
1
vote
1answer
99 views

Indentation and page colors with standalone

Question I want to create a page whose size is cropped to the size of the content on the page. I also want to be able to have indented paragraphs and to set the color of text and background. Is there ...
3
votes
2answers
198 views

Difference with standalone and preview? [duplicate]

I have a table, but for cleanliness (I'll use the figure in a paper and in talks), I'd like to compile to a single PDF and include it with includegraphics instead of having the table rendered within ...
4
votes
1answer
235 views

Text decoration is trimmed off with standalone package

I am decorating an arc with text as shown in this MWE using the standalone class: \documentclass[10pt,class=article]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.text} ...
7
votes
1answer
581 views

Including pictures in subdirectories with standalone package

After using standalone package extensively, I ran into one problem, which I cannot solve. The problem is that I need to include a TikZ picture in main files subdirectory. What is more I want to build ...
4
votes
2answers
621 views

using standalone with algorithmicx or algorithm2e

I am trying to compile a standalone file containing pseudocode created with the algorithmicx package. According to algorithmicx crashes standalone it should work with the preview option set for ...
5
votes
1answer
214 views

How to eliminate spacing in tikzpicture?

It seems that, when using Tikz, nodes and/or the tikzpicture environment add space around a drawing. An example is shown in the following MWE, where a simple square is drawn three times. First it is ...
2
votes
1answer
151 views

Standalone - \newlabel being written to .log instead of .aux

In my compiled document, which consists of many sub-documents using standalone, I have one sub-document in which the Figure references are undefined - they show up as ??. No MWE I've tried can ...
2
votes
0answers
179 views

Parallel make with standalone package

This question is a LaTeX question, although it might actually be resolved by changing the build procedure of the document instead of the document itself. I have a document that includes a bunch of ...
2
votes
1answer
216 views

Trouble setting background color using Standalone's convert command

I'm creating PNGs directly from LaTeX using the xelatex, the standalone document class and the convert option of standalone. I have ImageMagick installed, and it all works fine. The only issue is ...
4
votes
1answer
217 views

standalonetrue / standalonefalse?

You can use \standalonefalse to specify the parent document for which all sub-documents should be considered sub-documents, I think. Is it possible to re-enable standalone with something like ...