3
votes
0answers
62 views

How to automatically optimize the PDF output of TiKZ externalize?

I use pgfplots with externalization for generating plots in my document. For heavy plots the output PDF for a figure can grow to few hundred KB. I used Adobe Acrobat to optimize the PDFs which ...
6
votes
0answers
142 views

Different color

I use the following code to generate a plot \documentclass{article} \usepackage{xcolor} % colorize your documents \usepackage{graphicx} % and use graphics \usepackage{tikz,pgfplots} % ...
2
votes
2answers
103 views

pdflatex problem

I just use latex to grid a pdf file. the code like follow \documentclass[ letterpaper, 10pt]{article} \usepackage{tikz} \usepackage{pdfpages} \newcommand\su[1]{ \begin{tikzpicture}[overlay,remember ...
0
votes
1answer
95 views

Clean way to plot a sequence of 3D objects from file

I want to plot a sequence of cones using tikz. My cones have arbitary coordinates that I calculated beforehand. For n cones, I have the coordinates of n+1 circles, each as a tuple of (depth, center, ...
1
vote
0answers
58 views

PGFplot shrinks after I add it the main TeX document with standalone package. What should I do?

I would like to ask question concerning usage of PGFplots package (LaTeX). I have this problems: after inserting tex file using standalone package in my main document, part of pgfplot shrinks and font ...
11
votes
2answers
206 views

Remove small kink in tikz picture

I have made this graphic using tikz: Sourcecode: \documentclass[]{scrartcl} \usepackage{tikz} \usetikzlibrary{shapes, arrows, calc, positioning, fit, external} \begin{document} ...
8
votes
2answers
350 views

How to Generate Random Variables then Use in Calculations in pdflatex

I'm basically trying to create multiple versions of a worksheet, each with different values for the variables in each question. To do this I'm defining random variables, then each time I compile the ...
5
votes
1answer
172 views

Lualatex, Pdflatex fail with \externalize

Here is my problem: I have a 100+ page document with ~100 tikz plots. Some plots contain 9000+ points, and compiling them with pdflatex -shell-escape (or whatever main_memory_size) fails. I can ...
1
vote
1answer
335 views

tikz externalization using lualatex over pdflatex

I am trying to externalize tikz plots using lualatex while encapsulating the whole tex file with pdflatex. I still couldn't figure out why this method is not working. I am using miktex and texstudio. ...
1
vote
1answer
183 views

Error: Sorry, the system call 'pdflatex -shell-escape -halt-on-error '

I am trying to use TikzEdt tool to generate some graphs....It was working very nicelly, until I tried the extended mode, and from that instance, it is reporting an error. Here is the preamble ...
5
votes
1answer
139 views

Coons patches in pgfplots

The current method of drawing Coons patches in pgfplots requires four cubic B├ęzier curves along with point meta values for each corner point. This closely follows the format used in the PDF ...
2
votes
1answer
327 views

How do you break long lines in pgfgantt?

I am drawing a gantt chart using the pgfgantt package. I have some text in nodes that I would like to break down into multilines, but it doesn't seem to work. I made a simple example like so: ...
2
votes
1answer
198 views

tikz setting font size to pts

I'm using tikz to create color boxes containing text. However I haven't been able to set font size within these boxes using pts. I found a snippet in this question that defines a Boxed command: ...
3
votes
1answer
139 views

TikZ & External: figure re-created for no apparent reason

I'm having an issue where only one out of multiple figures is recreated despite the use of the tikz/external library. I've created a MWE which shows the same effect with only two figures. Below is my ...
10
votes
0answers
65 views

Why does compiling TikZ with latex-dvips-ps2pdf produce a much much bigger PDF than with pdflatex? [duplicate]

The following MWE simulates the problem. Compile it with pdflatex -shell-escape. \documentclass[preview,varwidth,border=12pt]{standalone} \usepackage{filecontents} \begin{filecontents*}{common.tex} ...
4
votes
1answer
127 views

Why does pstricks have an effect on tikz' draw opacity when used within beamer?

\documentclass{beamer} %\documentclass{article} \usepackage{pstricks} \usepackage{tikz} \usetikzlibrary{chains} \begin{document} \begin{frame}{} \begin{tikzpicture}[start chain] ...
4
votes
1answer
122 views

tree-dvips Alternative for Linguistics Document with pdftex

I'm attempting to find a way of linking two objects in avm.sty together. The result I want is exactly that specified here: http://www.essex.ac.uk/linguistics/external/clmt/latex4ling/avms/#4 I'm ...
1
vote
1answer
333 views

Using “latex” to externalize tikz graphics wont work

I am lost in tex! I try to run a tay example, which you can find here: EXAMPLE If I run it, using pdflatex -src -interaction=nonstopmode -shell-escape faster-latex-part2.tex everything works fine, ...
4
votes
0answers
303 views

PGFPlots pattern bug [closed]

I tried to compile the example in How to combine fill and pattern in a pgfplot bar plot? to answer the question here PGFplots ybar patterns not showing and the pattern doesn't appear when I use ...
3
votes
0answers
138 views

pgfplots — Patterns are not displaying correctly in PDF version 1.4 [closed]

I am using this method to plot a pattern in-between two curves. If I save the file as PDF version 1.5 everything looks great. Unfortunately the journal that I am submitting the paper to requires PDF ...
3
votes
2answers
367 views

Plotting floating point data with pgfplots

Is there a binary file structure supported by pgfplots to allow floating point numbers to be loaded and plotted? I understand the time taken to convert floating point data to a text file is small, ...
4
votes
1answer
240 views

Why does pasting the contents of a tikz file into my main file compile properly but not when using \input

If I place the contents of my tikz picture in my main.tex file it works like a charm using \usepgfplotslibrary{external} \tikzexternalize and subsequently: pdflatex --enable-shell ...
2
votes
0answers
58 views

Where to put Latex generic commands? [duplicate]

Using more and more Latex I reach a point where I don't want to copy/paste anymore the new "generic" commands I created. As an example, I have generic commands to create Tikz pictures. These commands ...
3
votes
1answer
875 views

Conflict between TikZ with decorations.text library, caption and booktabs packages and progressbar theme [duplicate]

Possible Duplicate: No room for a new \dimen I obtain an error when using simultaneously the above 4 elements. When removing one of them (which I do not wish), the output is fine. ...
7
votes
1answer
723 views

pgfplots: reduce tick density

I am using matlab2tikz to produce plots in latex. The default tick settings produce very dense ticks, making the axes look ugly. I know that I can use something like /pgfplots/xtick={0, 1, ... 3} ...
71
votes
1answer
3k views

pgf-Tikz QR code generator

I am looking for a Tikz QR code generator. I am aware of pst-barcode as well as several "local" programs, a luatex solution and web services to do this. Nevertheless, if at all possible, I would much ...
2
votes
0answers
240 views

TikZ arrows do not draw with pdflatex [closed]

I am using the answer from Arrow between parts of equation in LaTeX. \documentclass{article} \usepackage{tikz} \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};} ...
2
votes
1answer
331 views

Using ps2pdf colour and fonts change when TikZ picture added on beamer slide

When compiled with LaTeX + dvi2ps + ps2pdf the pdf output of the below MWE shows a strange behaviour: On the first slide (without TikZ picture) fonts and colours are slightly different from the ones ...
4
votes
1answer
3k views

Option clash when using graphicx and tikz packages

The following code fails Option clash for package graphicx, it seems to be an incompatibility between the package graphicx (when the option pdftex is used) and the package tikz. ...
11
votes
2answers
4k views

Increasing TeX's main memory

I have a plot with a lot of measurement datapoints. I exported this plot from Matlab2tikz. When I wanted to compile this, it said that the memory was exceeded. Now I found this, How to expand TeX's ...
15
votes
2answers
3k views

pgfplot: plotting a large dataset

I try to plot a dataset which is large using pgfplots. Since I'm aware of problems with large files, I used the external mode. I additionally increased main_memory from 3000000 to 6000000. It crashes ...
7
votes
1answer
1k views

tikz: plotting a one column file [closed]

I use tikz/pgf to plot plots with data from a file. This works perfectly fine if I have at least to columns in the file that I can choose from. However, I have a rather huge file with just one column. ...
3
votes
1answer
1k views

GraphViz and LaTeX; gives blank PDF

I've tried 4 different .sty files (most of which didn't work, some of which gave me errors on rendered page). Now trying with the dot2texi package, which is giving me a blank PDF. I have tried ...
3
votes
2answers
586 views

using grid from Tikz in Texmaker

I use Tikz for creating figures. But there is a problem. If I use for example \begin{tikzpicture} \draw[->] (0,0)--(10,0); \draw[->] (0,0)--(0,10); \draw[help lines] (-0.1,-0.1) grid (9.9,9.9); ...
17
votes
5answers
715 views

How to black out a figure for confidential reasons?

I have a document, that contains critical parts. Now two documents should be generated. One version that is "balcked out" and one version that is all readable. For pure text I found some hints using ...
5
votes
1answer
367 views

Wrong positioning of images inside tikzpicture with XeLaTeX

Consider following code: \tikzstyle{box}=[draw, fill=brown!40, text width=7em, text centered, minimum height=7em, rounded corners] \tikzstyle{usb}=[draw, fill=blue!40, text width=3em, ...
4
votes
1answer
335 views

Embed text in pgfplots or tikz generated pdf files

I generate data plots in my LaTeX documentation using a combination of TikZ and pgfplots. Many of the plots are generated using script files which can also include the raw data if data is being ...
5
votes
1answer
2k views

Rotate a PGF figure, and being able to center it

I have a figure, created in MS Visio, a PDF figure. I have added text to the figure using qtix. The code is pasted below: \begin{tikzpicture}[scale=0.30] ...
34
votes
2answers
3k views

How can I draw an arc from point A -> B on a 3D sphere in TikZ?

I'm basing myself on http://www.texample.net/tikz/examples/spherical-and-cartesian-grids/ and now I need to add a arc from point P to Q. What I was able to get so far: ...
9
votes
1answer
916 views

How to use shading in TikZ when rotating the picture?

I have the following problem: I want to draw a rectangle and around it, there should be some smooth fading to the background (white). I found the shading technique of tikz quite interesting. The ...
4
votes
1answer
1k views

Drawing a Cube Using Tikz

I'm trying to simply use the example of a cube provided here \begin{tikzpicture}[ back line/.style={densely dotted}, cross line/.style={preaction={draw=white, -, line width=6pt}}] \matrix (m) ...
14
votes
6answers
7k views

How to export matlab figures to (pdf) LaTeX?

I am writing a student thesis in LaTeX and need to import several figures created in Matlab. I found some programs to do this task: matfig2pgf matlab2tikz fig2texPS The problem is that using one ...
10
votes
2answers
3k views

Precompiled preamble with TikZ/Externalize

I'm using the externalize capability of TikZ (external library) to speed up compilation of my TikZ pictures (as explained in Script to automate externalizing tikz graphics). In addition, I would like ...
7
votes
4answers
3k views

Customizing pdfLaTeX for a particular file with AUCTeX?

I'm trying to use the TikZ 'external' library, available as of PGF 2.10. This requires running pdfLaTeX with the option -shell-escape. I usually run pdfLaTeX from AUCTeX with the option ...
2
votes
2answers
3k views

How to use PDFlatex with Tikz package?

I have to make a presentation run by PDFlatex. But I want to draw a picture in it with the Tikz package. How can I manage this?
3
votes
2answers
581 views

Source specials for PDF?

Normally I write my LaTeX with Emacs/AUCTeX viewing in xdvi, which has the very nice "source specials" feature that I can hit a key command in Emacs to jump to the current location in the output dvi ...
2
votes
2answers
327 views

Meaningful error messages when using latex instead of pdflatex

When I have TikZ images or I include .png graphics, I need to use pdflatex instead of plain vanilla latex. (That is, I need to use pdflatex all the time, rather than just when I want to produce the ...