15

I suggest you mix-and-match. For truly arbitrary yet still technical drawings (even complex ones) like parts of an aircraft and mechanical components, I would suggest Google SketchUp. As a taste of drawing a model jet, consider viewing a quick YouTube video. You can also use parts of already-created models from the 3D Warehouse: You can even scale up to ...


15

I just want to give you another idea, another point of view: do you want the best for LaTeX or for your document? If you want a very good typography in your document, you should use also in tables, images etc. only one font optimal in the same font size. So you should use programs like matlab or gnuplot. The can run inside LaTeX and use the LaTeX fonts. ...


14

Using the tikz-dimline package will get you: \documentclass[tikz,border=2mm]{standalone} \usepackage{tikz-dimline}\pgfplotsset{compat=newest} \begin{document} \begin{tikzpicture}[] \path (0,0) coordinate (A) (4,0) coordinate (B) (12,0) coordinate (C) (16,0) coordinate (D) (0,2) coordinate (E) ...


14

Even after 5 years it still seems that there isn't a ready out of the box solution. So I decided to create my own. It's based on the TikZ circuit library and it allows the creation of new type of circuit diagram, based on the symbols and rules as described in the norm ISO 14617. I tried to keep the same structure and conventions as the 'circuit ee' library. ...


14

Since I could not include further detail in my comment, I post it in this section. The tikz library structuralanalysis provides some basic structural stuff which can be usefull to create hinges, supports, beams etc. This library provides 10 different commands \point, \beam,\support,\hinge,\load or \lineload and \temperature, \internalforces,\dimensioning,\...


11

One option is to define a command for this symbol taking it, for example, from the circuits.ee.IEC library (I wasn't sure if this symbol should be ord, rel, bin, so I opted for bin; also, there was no information about size or baseline position, but all these attributes can easily be adjusted): \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \...


9

Instead of rolling your own code for typesetting the numbers using the \num macro, you can just use the S column type that's provided by siunitx (note that you need to additionally use the string type keyword). That also allows you to use the table-format alignment options: \documentclass[border=5mm]{standalone} \usepackage{siunitx} \usepackage{...


9

You need to create the enclosing path in one go then it can clip the pattern lines properly. \documentclass[tikz]{standalone} \usetikzlibrary{decorations.pathmorphing,positioning,decorations.pathreplacing,patterns} \begin{document} \begin{tikzpicture}[pencildraw/.style={ decoration={random steps,segment length=4pt, amplitude=0.8pt}}] \draw[pattern = ...


8

You can combine existing symbols. \documentclass{article} \usepackage{amsmath,amssymb} \usepackage{graphicx} \makeatletter \newcommand*\curveplus{% \mathbin{\rotatebox[origin=c]{90}{$\m@th\curvearrowleft$}+}} \newcommand*\rightplus{% \mathpalette\@rightplus\relax} \newcommand*\@rightplus[1]{% \mathbin{\vcenter{\hbox{$\m@th\overset{#1+}{\to}$}}}} \...


7

If you're talking about the circle with the m in it, it is not behind the rod, but it isn't filled either -- it consists of a black circle with the letter m in it. Add fill=white to the node settings. \documentclass{scrartcl} \usepackage{stanli} \begin{document} \begin{tikzpicture} %the points \point{above}{0}{5}; \point{above_middle}{0}{4}; ...


6

This is now easy as pie with circuitikz v0.6 (released in 2016): \documentclass[preview]{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz} \draw (1,2.5) to[short] (1,2); \draw[color=blue] (1,2) to[short] (0,2) to[damper] (0,0) to[short] (1,0); \draw[color=...


5

Ok, I think I got most of it - except, now there is an "exponentiation roundtrip" which causes rounding errors (see pic below); if anyone knows how to avoid it that, please post an answer. It is those 500.12e-3 and 499.97 xtick values that show the rounding errors; the problem here is that the \tick variable here is logarithm'd (actually, ln'd), so I have ...


5

Not sure if this is the syntax but works: \documentclass{scrartcl} \usepackage{stanli} \usetikzlibrary{ angles, quotes } \begin{document} \begin{tikzpicture} %the points \point{right above}{3}{1.5}; \point{above}{1}{2}; \point{below}{0}{0}; %the hairline \draw (above) -- (...


5

LaTeX will not run external applications (for security reasons) unless you allow this by using the option --shell-escape. \immediate\write18{...} is such a call to an external application. See e.g. https://tex.stackexchange.com/a/236648/2388 how to add the option to the texmaker call. I would also suggest to move boxdims.sty and the m4 files to your ...


4

I have the same problem, here is my partial solution for a flowsheet that I need to reproduce. I know it's completely unfinished, but I hope this will help you. It only has 2 equipments and doesn't has any control loop or valve, but as you can see in the code, the images are loaded as external file so you can add more. I also know that you can draw a circle ...


4

I came across this looking for something else http://www.texample.net/tikz/examples/area/electrical-engineering/ Edit: Code for a Tikz valve is available from a link at http://old.nabble.com/Overflow-when-designing-a-shape-to31589669.html#a31589669 but from the webpage it seems the author had some problems with this, so some work may be required. You may ...


4

I was facing a similar problem, except that I wanted to have SI prefixes. I adapted your code to that. Might not be the cleanest solution, but works so far. I also added a rounding capability so that the corrupted values can be fixed (by losing decimal precision of course) \documentclass{article} \usepackage{tikz,amsmath, amssymb,bm,color,pgfkeys,siunitx,...


4

Also in plain Metapost, with all the parameters at the top... prologues:=3; outputtemplate:="%j%c.eps"; beginfig(1); c = 280; t = 120; h = 30; path box[]; box1 = unitsquare xscaled 1/2(c-t) yscaled h; box2 = unitsquare xscaled t yscaled h shifted point 1 of box1; box3 = box1 shifted point 1 of box2; fill box1 withcolor 0.8[red+green,white]; draw box1; ...


4

I don't know the stanli package. So this is a suggestion to draw those lines in a way to make them look reasonable. Here I'm using polar coordinates to make the lines end along a circle, and the radius is shortened more and more for each line to account for the bend. The code: \documentclass{scrartcl} \usepackage{stanli} \usetikzlibrary{decorations....


3

If you want MathJax-friendly solutions, you need to accept either verbosity or approximations. First, the approximate solutions, which are pretty compact (and some were given in @HenriMenke's original answer): Positive counter-clockwise moment: \overset{\curvearrowleft}{+} Positive rightward horizontal force: \overset{+}{\rightarrow} Positive upward ...


3

I'm not sure what you want, but I would make the following changes on general principles. BTW, do you really want to use $...$ instead of \textit{...}? \documentclass{article} \usepackage{pgf,amsmath,tikz} \usetikzlibrary{positioning} \newcommand*\RF[3]% #1=(not in diagram), #2=a, #3=c {\bgroup% use local registers 0-2 \dimendef\XWidth=0 \dimendef\...


3

Here is a simple semi-automatic solution using TiKZ: \documentclass[tikz,border=2pt]{standalone} \usetikzlibrary{arrows,positioning,calc} \begin{document} \sffamily \newcommand{\Dline}[4]{% \path ($(#1)!#4!90:(#2)$)coordinate(a) ($(#2)!#4!-90:(#1)$)coordinate(b); \draw[|<->|,shorten <=-.5\pgflinewidth,shorten >=-.5\pgflinewidth] (a)--node[fill=...


3

Here is a pstricks solution, with a comparatively short code: I define three frame nodes, and connect them in varrious ways: \documentclass[11pt, a4paper, x11names]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{pst-node} \begin{document} \sffamily \psset{arrowinset=0.0, fillstyle=solid,}% \begin{pspicture}(-0.1,-2)(8.1,1.6)% \...


3

Draw two arcs as in a normal tikzpicture. \documentclass[border=0.4cm]{standalone} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \usepackage{circuitikz} \begin{document} \begin{circuitikz}[american voltages,cute inductors] \draw (0,3) to [V,l_=$\frac{1}{s}$](0,0) (4,3) node[label={above:$\text{V}_{x}$}] {} to [R,*-*, l^=$1$] (4,0) node[...


3

As it stands, it only works in \displaystyle, but that can be fixed, if it need work in the smaller math styles. \documentclass{article} \usepackage{rotating,stackengine} \newcommand\swcross{\mathbin{\mkern-5mu\rotatebox[origin=c]{-45}{% \ensurestackMath{\stackengine{.07ex}{\downarrow}{-\mkern-10mu-} {O}{c}{F}{F}{L}}}\mkern-5mu}} \begin{document} \...


2

More or less two years ago, I ran into the same issue: need to draw chemical process flow diagrams and no LaTeX tools to do it. Like Jelle Spijker did, I ended up writing my own TikZ extension. Though the serious development started about half a year ago, I was not able to go public until this week, but now the package is available on CTAN. The ones who are ...


2

Here is an example of an author-year style french bibliography. The autolang=other option allows to have strings translated for the language of a bibliographic item, if it has a langid= field. \documentclass[12pt,german, english,french]{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{csquotes}% recommended in ...


2

angle radius changes, surprisingly, the radius of the angle. Less obviously, angle eccentricity affects the placement of the label relative to the line marking the angle. \documentclass{scrartcl} \usepackage{stanli} \usetikzlibrary{angles, quotes} \begin{document} \begin{tikzpicture} %the points \point{begin}{0}{0}; \point{end}{5}{0}; %...


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