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

9
votes
1answer
741 views

Best practice to include (standalone precompiled) graphics

General understanding I know that several people have asked about how to include plots and graphics (created by tikz and pstricks) into a latex document. What is the best way to include Matlab ...
13
votes
1answer
308 views

TikZ 3.0.0 (release) produces strange shadings if used with XeLaTeX and standalone

I would like to use shadings in my TikZ graphics together with the standalone package and XeLaTeX, but for some reason it is broken if I try with the new 3.0.0 release (download here). Any other ...
2
votes
1answer
140 views

Can the standalone package work with sections?

While I was reading a thread on LaTeX workflows, I came across a comment in http://tex.stackexchange.com/a/22433/32782 which seemed to indicate that there are more than one person who can/could use ...
2
votes
1answer
610 views

How to center a tikz figure in a beamer frame

I was told to use the standalone package, which I use, but it does not seem to center the figure. What options to do I miss? Concretely, here is the main file: \documentclass{beamer} ...
6
votes
2answers
828 views

How do I use QTikZ on a standalone file

My file is quite simple, e.g., \documentclass{article} \usepackage[landscape]{geometry} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (-1.5,0) -- (1.5,0); \draw (0,-1.5) -- ...
2
votes
1answer
192 views

How to scale a tikzpicture in an external file for a beamer slide?

I have this tikz diagram in a separate document. I use the standalone package to include it into my presentation. However, I experience several problems: Setting the included picture size Scaling ...
4
votes
1answer
129 views

How to include a multipage table from an external file

I usually save my tables as standalone PDFs, generated by compiling a standalone document and then include them in the main file via \includegraphics{pdf.name} However, I now have a two-pages table ...
2
votes
0answers
97 views

How to export beamer frames to standalone subfiles_

I try to split a large beamer presentation with the standalone suite. Herein, I do not want to split out parts of slides, for which I understand the beamer class option with the standaloneframe would ...
1
vote
0answers
25 views

standalone: subprambles inverse

When splitting a document with the standalone class and package, the option subpreambles causes the main document to include all the preambles of the sub-files. The other way around is more difficult. ...
11
votes
2answers
256 views

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

How to remove the white space on the left of gather* when using standalone class? [duplicate]

\documentclass[preview,border=12pt,varwidth]{standalone}% change it back to your own document class \usepackage{amsmath} \begin{document} \abovedisplayskip=0pt\relax% remove this line in your ...
2
votes
1answer
294 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
260 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
244 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
219 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
85 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
220 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
135 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
440 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
110 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
268 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
86 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
276 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
141 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
213 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
269 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
372 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
89 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
128 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
114 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
445 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
377 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
190 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
587 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 ...
12
votes
1answer
857 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
235 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
147 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
172 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
243 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
225 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
375 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
109 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
268 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
70 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
140 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
94 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
103 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
177 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 ...