# Tag Info

6


6

You can use TikZ: The code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,calc,matrix,shapes.multipart} \begin{document} \begin{tikzpicture}[ node distance=1cm and 1.5cm, arrow/.style={ ->, >=latex, shorten >= 3pt, shorten <= 3pt, } ] \node[draw,minimum size=3cm,label={270:text}] (rect) {}; ...

6

Here is a straight-forward tikz decorations solution: (i) \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \usetikzlibrary{decorations.markings} \begin{document} % particle decorations borrowed from: Kjell Magne Fauske % http://www.texample.net/tikz/examples/feynman-diagram/ \tikzset{ every ...

5

With two nested \foreach loops for drawing the crossed squares and another two nested \foreach loops for placing the black circles. \documentclass[tikz,border=2pt]{standalone} \begin{document} \begin{tikzpicture}[line width=.2pt] \foreach \x in {1,2,3}{% \foreach \y in {1,2,3}{% \node(p-\x\y) at (\x,\y)[draw,minimum size=1cm]{}; \draw ...

5

Here's another version using nodes and arrows. Output Code \documentclass[margin=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta,shapes.multipart,positioning} \tikzset{ split/.style={rectangle split, rectangle split parts=4, rectangle split horizontal, rectangle split empty part width=4mm}, } \begin{document} ...

5

This requires latex or xelatex since it makes use of PostScript \specials (being a PsTricks package) not available with pdflatex. \documentclass{article} \usepackage{psvectorian} \begin{document} \psvectorian[height=1cm]{102} \end{document} If it should be compiled with pdflatex or lualatex, use the package auto-pst-pdf in addition to provide the ...

4

The chains library offers another possibility, especially convenient when used in conjunction with the quotes and scopes libraries. Nodes on chains are automatically named using the name of the chain and the count of nodes on that chain. Here, I call the chain c1 so the nodes are c1, c2 etc. I also use two branches, c2 and c3. The nodes on branches are ...

3

I'm not sure if this is what you want, but it does achieve your goal. In Plain TeX: \long\def\Boxit#1#2{\vbox{\hrule\hbox{\vrule\vbox spread#1pt{\vfil \hbox spread#1pt{\hfil#2\hfil}\vfil}\vrule}\hrule}} \def\Boxedtext#1#2#3{\Boxit{0}{\vbox to #1{\hsize=#2\vfill\hbox to\hsize{\hfill#3\hfill}\vfill}}} ...

2

Again, as in the related question, we can apply the secondary ODE in z(x) onto the y coordinate of the surface vertices in a post-processing step. Only one curve is plotted onto the surface. Adding more curves of the post-processed primary ODE solutions with modified initial conditions is left as an exercise. Just read the comments to your question and ...

2

You have a lot of trailing spaces which move your image to the right. If you are not sure where to place a % at the line end then do it for every line: \newcommand{\trellis}[4]{% \def \STATES {#1}% \def \PSK {#2}% \def \XDISTANCE {#3}% \def \YDISTANCE {#4}% \FPupn\NGROUPS{\STATES{} \PSK{} div 0 trunc}% ...

2

Using a more simplified example you can see it's the thmmarks option that causes the problem \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage %[thmmarks] {ntheorem} \numberwithin{equation}{section} \newtheorem{mydef}{Definition}[section] \begin{document} \section{First section} \begin{mydef}[Something] ...

2

According to the documentation of ntheorem, section 3.2.1, you should add the option amsmath together with thmmarks if you load the amsmath package: \usepackage[amsmath,thmmarks]{ntheorem} Full example: \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{paralist} ...

2

Your example is missing usepackage{pst-func}. However, this works with up-to-date TL 2015 and xelatex, pdflatex -shell-escape and loading package auto-pst-pdf and also with latex->dvips->ps2pdf \listfiles \documentclass{article} \usepackage{pst-func} \begin{document} \psset{yunit=10cm} \begin{pspicture*}(-4.2,-0.06)(4.1,0.57) ...

2

\begin{psgraph}[axesstyle=frame, Dx=2.5, Oy=-1](0,-1)(0,-1)(20,1){4in}{2in} Important is the first (0,-1) and Oy=-1

2

\pstODEsolve cannot be nested. Fortunately, in the present case, we can work-around the problem, since the requested function z(x) is to be applied as a post-processing step on the second column of the solution of your main ODE. This can be achieved in a two-step procedure. 1) solution of the main ODE without applying z(x) on the second element of the ...

2

The \psLorenz macro uses \listplot, and the points of both plots are in the same order (x-values from left to right). In order to fill the area between both curves, you must reverse one of the curves using the ChangeOrder parameter provided explicitely for this case of filling between two \listplot: \documentclass[pstricks,border=0pt]{standalone} ...

1

use two single fills and, of course, do not use the curve style bezier for a Lorenz curve: \documentclass[pstricks,border=10pt]{standalone} \usepackage{pst-func} \begin{document} \psset{lly=-13mm,llx=-9mm,urx=5mm,ury=5mm}% \psgraph[xAxisLabel={},yAxisLabel={},Dx=20,Dy=0.2, dx=0.2](0,0)(1,1){6cm}{6cm}% ...

1

Put into your preamble: \documentclass{...} \usepackage{etex}

1

the following solution defines a key valuerange=<start>-<stop>, which will be part of the next update of pst-solides3d: \documentclass[border=0pt,10pt,dvipsnames,pstricks]{standalone} \usepackage{amsmath} \usepackage{dashrule} \usepackage{pst-plot}%, pst-math} \usepackage{pst-func} \usepackage{pst-ode} \usepackage{pst-3dplot} ...

1

Without specifying coordinates for pspicture it uses 10cm x 10cm! However, package subfigure is obsolete, usesubfig` instead: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{subfig} \usepackage{pstricks} \begin{document} \begin{figure*} \centering \subfloat[]{% \centering ...

1

There is a missing % at the end of \FPeval \FPeval\itemPosx{10}% There is a trailing space without it. PSTricks macros itself kill all glue but not other macros. What kind of calculations do you need? You have the possibility of PS coordinates like (! whatever do you need) which can calculate any coordinates.

1

As I didn't use pstricks, pst-node, etc. but still experienced the same problem, I found the following answer to provide a fundamental explanation for the observed problem: Tikz and ctable incompatibility, gives error when printing In short, moving the following snippet in front of the remaining packages solved the problem of adobe reader reporting errors ...

Only top voted, non community-wiki answers of a minimum length are eligible