How can I use the mathematical symbols like alpha, beta, implies and many more symbols in the tex file?
[Tex/LaTex] Using mathematical symbols alpha, beta, implies in latex
math-modesymbols
Related Solutions
To put a math symbol next to the lines which connect boxes, I haven't modified your foreach
ing but just added some nodes with the appropriate positioning.
I used the feature $<node>!<n>!<another node>$
where <n>
is a number between 0
and 1
which indicates at what point between <node>
and <another node>
you want to position your object (for example, .5
= half way).
To circle more lines together, I've used a fit
with an ellipse shape.
\documentclass[border=2mm]{standalone}
\usepackage{amsbsy}% I've used \boldsymbol{...} to avoid the warning Command \boldmath invalid in math mode
\usepackage{circuitikz} % already load tikz
\usetikzlibrary{chains,fit,positioning, calc, shapes.geometric}
\begin{document}
% Version 3
\begin{tikzpicture}[%
node distance = 20mm and 5mm,
start chain = going right,
block/.style = {draw, minimum height=20mm, font=\boldmath, minimum width=5mm,on chain}]
% upper blocks
\node (ht1) [block,draw=none] {$\hphantom{\boldsymbol{(TH)^+}}$};
\node (y1) [block,right=22mm of ht1] {$T_{1}$};
\node (adc1) [block] {ADC};
% lower blocks
\node (ht2) [block,draw=none,below=of ht1] {$\hphantom{\boldsymbol{(TH)^+}}$};
\node (y2) [block,right=22mm of ht2] {$T_{k}$};
\node (adc2) [block] {ADC};
% common input nodes
\node (in2) [draw,inner sep=0pt, fit=(ht1) (ht2),label=center:$\boldsymbol{(TH)^+}$] {};
% top blocks
\node (cpu) [above=5mm of in2] {CPU};
\node (rf) [above=5mm of y1] {RF-chain};
\draw[densely dotted] ([xshift=11mm] cpu.north -| in2.east) coordinate (in3)
-- (in3 |- in2.south);
% lines between blocks
\foreach \y in {-0.75, -0.25, 0.25, 0.75}
{
% 8 input lines
\draw ([yshift=\y cm +2 cm] in2.west)--++(180:1cm);
\draw ([yshift=\y cm -2 cm] in2.west)--++(180:1cm);
}
% 2 lines between other blocks
\foreach \j in {1, 2}
{
\foreach \y in {-0.25, 0.25, 0.75, -0.75}
{
\foreach \i [remember=\i as \lasti (initially y\j)] in { adc\j}
\draw ([yshift= \y cm ]\lasti.east)--([yshift=\y cm]\i.west);
\draw (-1,-1.9) circle [radius=0.7pt,yshift=-0 cm -\y cm];
\draw (2.5,-1.9) circle [radius=0.7pt,yshift=-0 cm -\y cm];
\draw ([yshift=-0 cm -\y cm] adc\j.east)--++([xshift=1.5cm] 0:1+1.5*\y) node[antenna] {};
}
\foreach \y in {-0.25, 0.25}
{
\foreach \i [remember=\i as \lasti (initially ht\j)] in { y\j}
\draw ([yshift= \y cm ]\lasti.east) -- ([yshift=\y cm]\i.west);
}
}
% Examples of math symbols next to the lines that connect boxes
\node[below=1ex of $(in2.north east)!.15!(y1.north west)$]{$Y_{1}$};
\node[below=8.5ex of $(in2.north east)!.35!(y1.north west)$]{$Y_{2}$};
\node[above=8.5ex of $(in2.south east)!.65!(y2.south west)$]{$Y_{3}$};
\node[above=1ex of $(in2.south east)!.85!(y2.south west)$]{$Y_{k}$};
% Examples of circle which circles more lines together:
% - example with a simple label
\coordinate[below left=3ex and 1.5em of in2.north west](c1);
\coordinate[above left=9.5ex and 1.5em of in2.west](c2);
\node[fit=(c1)(c2), ellipse, draw, label={$S^{(m)}$}] {};
% - example with a line from the label to the node:
\coordinate[below left=9ex and 1.5em of in2.west](c3);
\coordinate[above left=3ex and 1.5em of in2.south west](c4);
\node[fit=(c3)(c4), ellipse, draw, label={[name=C,label distance=3em]-70:$S^{(p)}$}] (A) {};
\draw (A) -- ($(A.south)-(0,3ex)$) -- (C);
\end{tikzpicture}
\end{document}
Your syntax of use \huge
and Greek letters is wrong. Try this:
\documentclass{beamer}
\begin{document}
\begin{frame}
\frametitle{{\huge $\alpha$} and {\huge $\beta$} diversities}
I want to study {\huge $\alpha$} and {\huge $\beta$} diversities, and I want $\alpha$ and $\beta$ to be bigger...
\end{frame}
\end{document}
Best Answer
LaTeX needs to know beforehand that the subsequent text does indeed contain mathematical elements. This is because LaTeX typesets maths notation differently from normal text. Therefore, special environments have been declared for this purpose.
Greek letters are commonly used in mathematics, and they are very easy to type in math mode. You just have to type the name of the letter after a backslash: if the first letter is lowercase, you will get a lowercase Greek letter, if the first letter is uppercase (and only the first letter), then you will get an uppercase letter. Note that some uppercase Greek letters look like Latin ones, so they are not provided by LaTeX (e.g. uppercase Alpha and Beta are just "A" and "B" respectively). Lowercase epsilon, theta, kappa, phi, pi, rho, and sigma are provided in two different versions. The alternate, or variant, version is created by adding "var" before the name of the letter:
\alpha
,A
,\beta
,B
,\gamma
,\Gamma
,\pi
,\Pi
,\phi
,\varphi
,\Phi
See more in: http://en.wikibooks.org/wiki/LaTeX/Mathematics