Latex for a chart anyone?
How do I put up |dw:1387896712769:dw| using latex?
hline and | in an array. There are other methods, but those will work here. \[ \begin{array}{|c|c|c|}\hline a & b & c\\\hline 1 & 2 & 3\\ i & ii & iii \\ \text{un} & \text{du} & \text{tros}\\ \end{array} \] In the {|c|c|c|} part, the | are what makes the column bars and the c stands for center. You can also use r for right or l for left justified columns.
\[ {|~c~|~c~|~c~|} \] ok, but how did you do the chart, can you pliz msg the latex for it, I;ll figure out what to change and how, it would be very helpful
Right click it, Show math as, TeX commands. Then you can see the \(\LaTeX\) code ued to mak it.
`{array}` works in this space ``` \[\large\text{Fundamental Quantities}\\ \begin{array}{|c|c|c|c|} \hline\textbf{Variable} &\textbf{Symbol}&\textbf {SI unit} &\textbf{Dimension} \\ \hline\text{length} &\ell &[\text m] &\sf L \\ \text{time} &t &[\text s] &\sf T \\ \text{mass} &m &[\text{kg}] &\sf M \\ \text{temperature} &T &[\text K] &\sf \Theta \\ \text{amount} &n &[\text{mol}] &\sf N \\ \text{charge} &q &[\text{C}] &\sf Q \\ \text{luminosity} &I &[\text {cd}] &\sf J \\ \hline \end{array}\] ``` \[\large\text{Fundamental Quantities}\\ \begin{array}{|c|c|c|c|} \hline\textbf{Variable} &\textbf{Symbol}&\textbf {SI unit} &\textbf{Dimension} \\ \hline\text{length} &\ell &[\text m] &\sf L \\ \text{time} &t &[\text s] &\sf T \\ \text{mass} &m &[\text{kg}] &\sf M \\ \text{temperature} &T &[\text K] &\sf \Theta \\ \text{amount} &n &[\text{mol}] &\sf N \\ \text{charge} &q &[\text{C}] &\sf Q \\ \text{luminosity} &I &[\text {cd}] &\sf J \\ \hline \end{array}\] However if you are creating a document use float package and `{tabular}`, and `{table}` also use package `{siunitx}` for si units ect ``` \documentclass[a4paper]{article} \usepackage{amsmath} % Mathematics \usepackage[alsoload=hep]{siunitx} % SI units \usepackage{float} % Figures and Tables \begin{document} \begin{table}[h!]\centering \caption{Fundamental Quantities} \begin{tabular}{|c|c|c|c|} \hline\rule{0pt}{3.2ex}\bf Variable &\bf Symbol &\bf SI unit &\bf Dimension\\ \hline\rule{0pt}{3ex} length &$\ell$ &[\metre] &\sf L \\ \rule{0pt}{3ex} time &$t$ &[\second] &\sf T \\ \rule{0pt}{3ex} mass &$m$ &[\kilogram] &\sf M \\ \rule{0pt}{3ex} temperature &$T$ &[\kelvin] &$\sf \Theta$ \\ \rule{0pt}{3ex} moles &$n$ &[\mole] &\sf N \\ \rule{0pt}{3ex} charge &$q$ &[\coulomb] &\sf Q \\ \rule{0pt}{3ex} luminosity &$I$ &[\candela] &\sf J \\ \hline\end{tabular} \end{table} \end{document} ```
I found a much more elegant way of sizing those rows, without all those ugly invisible lines (the `\rule{0pt}{3ex}`s), just put this in your preamble `\renewcommand {\arraystretch}{1.5}` source :The Not So Short Introduction to LATEX2ε ``` \documentclass[a4paper]{article} \usepackage{amsmath} % Mathematics \usepackage[alsoload=hep]{siunitx} % SI units \usepackage{float} % Figures and Tables % Table parameters % \renewcommand {\arraystretch} {1.5} % row height \renewcommand {\tabcolsep} {0.15cm} % column width \begin{document} \begin{table}[h!]\centering \caption{Fundamental Quantities} \begin{tabular}{|c|c|c|c|} \hline \bf Variable &\bf Symbol &\bf SI unit &\bf Dimension \\ \hline length &$\ell$ &[\metre] &\sf L \\ time &$t$ &[\second] &\sf T \\ mass &$m$ &[\kilogram] &\sf M \\ \hline\end{tabular} \end{table} \end{document} ```
\(\Large\sf\rlap{LOLOLOL}\rlap{HUEHUEHUEHUE}\rlap{JEJEJEJEJE}ASHUASHUASHUA\)
Join our real-time social learning platform and learn together with your friends!