Tag Info

New answers tagged

1

In this particular case, you can definitely save the value to use again. AFter your call to \pgfmathparse you can do something like \pgfmathparse{atan2(\y,\x)} \xdef\aaa{\pgfmathresult} Or as in your case \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \noindent \begin{tikzpicture} \node (A) at (0,0){}; \node (J) at ...


1

So I've gone ahead and developed and absolutely awful workaround. Namely placing the various nodes on an invisible layer to get their height and width, and then placing them again on the actual canvas. It is worth noting that if you're using recursion in your macros, this will take exponential time relative to the depth of your recursion. I'm posting ...


2

When you say \lstset{ language=<whatever>, } TeX doesn't expand any macro in <whatever> and listings compares what it got with the known list of languages. In the case <whatever> is \ME@language, it is not in the list. However, if you do \begingroup\edef\x{\endgroup\noexpand\lstset{language={\ME@language}}}\x TeX will eventually ...


3

How's this \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{calc,positioning} \tikzset{ every edge/.append style = {thick}% commenting this solves the problem } \begin{document} \begin{frame} \begin{tikzpicture} \node (table) {}; \foreach \i in {1,...,5}{ \pgfmathsetmacro\myresult{int(mod(\i*72+18,360))} \node[] at ...


0

I have used the comments from the question linked to by @Jason to edit to code in order to solve the problem. The code below resolves the problem with pgf , but leaves some white space at the blank node, where the branches almost connects. Using the command below locally to the specific forest environment instead of the whole document you can still use ...


3

As you're loading xparse, it would be better to use the full power of expl3 for doing that business in a simpler fashion. \makeatletter \ExplSyntaxOn % some helper / wrapper commands around \pgfplacenodelater % #1 = identifier for nodes to be placed later % #2 = elements to be placed \DeclareDocumentCommand \@placenodelater {r() +m}{ ...


2

In the absence of MWE.. you need this rather paradoxical bit begin{axis}[ tick label style={/pgf/number format/assume math mode=true},%<=== here ]


6

With pgfplots \documentclass[13pt,a4paper,headlines=6,headinclude=true]{scrartcl} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{axis}[axis lines=middle,xmin=-7,xmax=17,ymin=-1.5,ymax=1.5,xlabel=$\scriptstyle x$,ylabel=$\scriptstyle y$,tick label style={font=\tiny},legend style={font=\tiny,legend pos=outer ...


4

Just in case you'd be interested, it's also easy with pst-plot: \documentclass[12pt, svgnames,x11names, pdf]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{nccmath} \usepackage{lmodern} \usepackage{pst-plot} \begin{document} \def\F{1/(x^2-7*x-30)} \def\G{1/(x-1)} \footnotesize\everymath{\scriptstyle} \psset{xunit=0.6, ...



Top 50 recent answers are included