Tag Info

New answers tagged

4

This is my try using Tikz. It was quite a work, but the code should be substantially shorter and easier to understand. Changes and implementations: Used a foreach command to draw the little diagonal lines. One line instead of all of those you had to write. In order to make the connector shape, I tweaked Jake's solution fixing the thickness and so on. Set ...


1

You could take advantage of the loop construct in tikz: \foreach \k in {0.5,1.0,...,8.5} { \draw[-,thick] (\k,-5) -- (\k-0.5,-5.5); }


3

You can use several plotting packages, some of them very sophisticated. My package xpicture is specially designed for mathematical plottings. Try this code: \documentclass{standalone} \usepackage{xpicture} \begin{document} \newlpoly{\p}{-5}{3} % Defines y=-5+3x \renewcommand{\Pictlabelsep}{0.2} \setlength{\unitlength}{.75cm} ...


1

If instead of a node you accept a non automatically drawn line ... \documnentclass{article} \usepackage{tikz} \usetikzlibrary{fit,chains, calc} \begin{document} \begin{tikzpicture}[node distance=2cm] \node(s1) {$y_1$}; \node(s2) [right of = s1] {$y_2$}; \node(s3) [right of = s2]{$y_{3}$}; \node(s4) [right of = s3]{$y_4$}; \node(s5) [right of ...


2

A version in Metapost, to show a couple of useful features. prologues := 3; outputtemplate := "%j%c.eps"; beginfig(1); path xx, yy; xx = (left--right) scaled 5cm; yy = xx rotated 90; draw xx; draw yy; defaultfont := "qx-qtmr-sc"; label.bot("Authority", point 0 of yy); label.top("Freedom", point 1 of yy); label.lft("Equality" infont defaultfont ...


5

Here's an attempt from the procrastination team in Metapost. It actually turned out to be quite an nice diagram to draw; you just need to specify ell and theta and the radius of the screen as a proportion of ell and the program calculates the other angle required, using a combination of sind, angle and the Pythagorean subtraction operator +-+. I was not ...


4

Well here's most of what your diagram demonstrates. I've added a few comments throughout that hopefully help you understand better what I've done. I've heavily used the calc library. I've also used the patterns library to get the dots inside the side rectangle. \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} ...


1

For the sake of completeness, here is a MetaPost version of AboAmmar's figure (same labels bar one, slightly different triangle). Since MetaPost is now part of LuaTeX, I've included my code in a LuaLaTeX program, but it could have been created and executed independently. NB: the following code needs the latest version of the luamplib package (2.10.1), ...


6

What you are looking for is the tkz-euclide package. Look at the following example: \documentclass[10pt]{standalone} \usepackage{tkz-euclide} \usetikzlibrary{angles,positioning,quotes,decorations.markings} \begin{document} \begin{tikzpicture} \path (135:3) coordinate (A) (45:4) coordinate (B) (0:0) coordinate (C); \draw (A) -- (B) node [at start, ...


0

Please post your code in compilable form so that we don't need to guess which key belongs to which library. For this problem, trim <left/right> keys accept dimensions. \documentclass{article} \usepackage{kantlipsum} \usepackage{tikz} \usetikzlibrary{positioning,arrows,shapes.arrows} \begin{document} \kant[1] \begin{tikzpicture}[ inner sep=7pt,node ...



Top 50 recent answers are included