我想知道如何用虚线绘制简支梁下方的挠度曲线,并附带标签,y = ?
如下所示:
我正在使用该structuralanalysis
包。以下是我迄今为止创建的代码:
\documentclass[11 pt]{article}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage{ae,aecompl}
\usepackage[automark]{scrpage2}
\usepackage[pdftex]{graphicx}
\usepackage[margin=0.99in]{geometry}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{structuralanalysis}
\usepackage{siunitx}
\begin{document}
\begin{center}
\begin{tikzpicture}
\draw[help lines, step =.45]
(0,-3.95) grid(9.115,3.325);
\scaling{.45};
\point{a}{0}{0};
\support{2}{a};
\point{b}{20}{0};
\support{2}{b};
\beam{2}{a}{b}[0][20];
\notation{5}{a}{b}[$\text{w}_{\text{f}} = 19.2 \ \text{kN/m}$][.5][above =
15.5 mm];
\lineload{2}{a}{b}[1.20][1.20][0.0625];
\dimensioning{1}{a}{b}{ -1.125}[\textbf{$\ell = $}];
\notation{1}{a}{Gridline 4}[left = 2.5 mm];
\notation{1}{b}{Gridline 6}[right = 2.5 mm];
\end{tikzpicture}
\end{center}
\end{document}
任何帮助或提示都将不胜感激。
答案1
我认为该包已从structureanalysis重命名为stanli!
2019年TexLive展会
曲线绘制:
\internalforces{a}{b}{0}{0}[-1.5][black];
考试文件:
\documentclass{article}
\usepackage{amsmath}
\usepackage{stanli}
\begin{document}
\begin{center}
\begin{tikzpicture}
\point{a}{0}{0};
\point{ab}{0}{-.2};
\point{b}{4}{0};
\point{c}{2}{.5};
\point{d}{2}{-2};
\beam{2}{a}{b}[0][3];
\beam{3}{c}{d}[0][4];
\internalforces{a}{b}{0}{0}[-1.5][black];
\notation {1}{a}{$x=0$}[left];
\notation {1}{ab}{$y=0$}[below left];
\notation {1}{b}{$x=L$}[right];
\notation {1}{d}{$\theta=0$}[right];
\draw [<->,very thick] (2,-.3)--(2,-1.2)node[left,midway]{$y=?$};
\end{tikzpicture}
\end{center}
\end{document}
答案2
显示的图像使用纯 TikZ 绘制很简单:
\documentclass{beamer}
\usepackage{tikz}
\usetikzlibrary{arrows.meta,
quotes}
\begin{frame}[fragile]
\begin{center}
\begin{tikzpicture}[
block/.style = {align=left, yshift=-\baselineskip},
shorten <>/.style = {shorten <=#1, shorten >=#1},
> = Straight Barb
]
\draw (-3,0) coordinate (a) -- (3,0) coordinate (b)
(a) to [bend right=45] coordinate (c) (b);
\node[block, left] at (a) {$x=0$\\ $y=0$\\ $\Phi=?$};
\node[block, right] at (b) {$x=L$\\ $y=0$\\ $\Phi=?$};
\node[below right] at (c) {$\Phi=0$};
\draw[densely dash dot, shorten <>=-3mm] (c) -- (0,0);
\draw[<->, semithick, shorten <>=1mm] (c) to ["$y=?$"] (0,0);
\end{tikzpicture}
\end{center}
\end{frame}
\end{document}
对于其他解决方案(使用您的代码),您应该提供 MWE(最小工作示例),一个小但完整的文档,我们可以按原样进行测试。
答案3
\documentclass[11 pt]{article}
\usepackage[english]{babel}
\usepackage{tikz}
\usetikzlibrary{arrows.meta, quotes}
\usepackage[latin1]{inputenc}
\usepackage{ae,aecompl}
\usepackage[automark]{scrpage2}
\usepackage[margin=0.99in]{geometry}
\usepackage{xcolor}
\usepackage{listings}
\usepackage{structuralanalysis}
\usepackage{siunitx}
\begin{document}
\begin{center}
\begin{tikzpicture}
\draw[help lines, step =.45]
(0,-3.95) grid(9.115,3.325);
\scaling{.45};
\point{a}{0}{0};
\support{2}{a};
\point{b}{20}{0};
\support{2}{b};
\point{c}{5}{0}
\beam{2}{a}{b}[0][20];
\notation{5}{a}{b}[$\text{w}_{\text{f}} = ? \ \text{kN/m}$][.5][above = 15.5 mm];
\lineload{2}{a}{b}[1.20][1.20][0.0625];
\dimensioning{1}{a}{b}{-1.5}[\textbf{$\ell = $}];
\notation{1}{a}{}[left = 2.5 mm];
\notation{1}{b}{}[right = 2.5 mm];
\draw [densely dashed,color=blue] (0,0) coordinate (a) -- (8.975,0) coordinate (b)
(a) to [bend right=15] coordinate (c) (b);
\draw[<->, semithick] (c) to ["${\Delta} = $"] (4.5,0);
\end{tikzpicture}
\end{center}
\end{document}