Hi Reddy, you could try the resizebox option, here is an example: \begin{table} \centering esizebox{\columnwidth}{!}{% \begin{tabular}{r|lll} \multicolumn{1}{r}{} & \multicolumn{1}{l}{Heading 1} & \multicolumn{1}{l}{Heading 2} & \multicolumn{1}{l}{Heading 3} \\ \cline{2-4} Row 1 & Cell 1,1 & Cell 1,2 & Cell 1,3 \\ Row 2 & Cell 2,1 & Cell 2,2 & Cell 2,3 \end{tabular}% } \end{table} You can see the tabular environment is within the esizebox{X}{Y} environment where X is the width option and Y is the height option. The features in the example set X=\columnwidth which will make the table span the entire width of the page. Y=! will make it so that the height scales with the width so you only need to set one and your original proportions will be kept. Otherwise, you could customize both to your liking e.g. esizebox{3cm}{2cm}. I hope that helps!
Hi TJR . Thanks for making this video. A quick question though. How do you make a table of 4 columns where the first column is single but the other three are multi-columns with two smaller columns within each? I hope the question is clear enough... thanks.
I don't really understand what you mean by "the other three are multi-columns with two smaller columns within each?" Do you mean you want a row that spans the last 3 columns but not the first?
From my understanding you don't need to include any packages for multicolumn. I can run the table (after removing the colors) with only: \documentclass[11pt]{article} \begin{document} \begin{center} \setlength{\tabcolsep}{1cm} enewcommand{\arraystretch}{1.5} \begin{tabular}{|c|c|c|p{3cm}|} \hline \multicolumn{4}{|c|}{Title of the table}\\ \hline \multicolumn{2}{|c|}{Category 1} & \multicolumn{2}{c|}{Category 2} \\ \hline \tiny A & B & C & Longer text here Longer text hereLonger text hereLonger text hereLonger text hereLonger text here \\ \hline E & F & G & H\\ \hline I & J & K & L\\ \hline M & N & O & P\\ \hline \end{tabular} \end{center} \end{document} If this code doesn't work for you then it could be that you don't have the full version of Latex installed.
@@henkyac1006 I am able to compile a document with tikz, and \usepackage{color, colortbl} so it is probably some other issue. Make sure you don't have any other color packages as they typically will clash.
@@Disha_art_diaries Sorry about that, I forgot to mention that \theoremstyle{definition} has to be placed BEFORE the theorems are defined in the preamble. Example: \documentclass{article} \usepackage{amsthm} \theoremstyle{definition} ewtheorem{theorem}{Theorem} \begin{document} \begin{theorem} The text here should be in normal font. \end{theorem} \end{document} Does that work?
Hi, I tried to look into this but it seems very specific to the system and software you are using. I am on Mac so I can't really figure out what needs to be done on Windows. You might be able to find what you are looking for here: tex.stackexchange.com/questions/51632/embedding-sound-files-into-beamer-presentation-with-media9 Best of luck!
I am not sure I totally understand your question. But, to get the definitions to be numbered by section you just have to add the [section] option in the preamble where you create the definition environment. In other words, add this to your preamble: ewtheorem{definition}{Definition}[section] Hope that helps.
As a quick fix, just add \centering to the cell you want the text centered on. EX: \begin{tabular}{c|p{5cm}|c} A & \centering Longggggggggggggggggg centered text& B \end{tabular}
I'm REALLY new to LaTeX. I'm working on a document about a particular topic in math that I'm interested in, and I need a table of values. I know how to format it and make it look how it's supposed to, but it's appearing at the top of the page instead of after the paragraph describing it on that same page. How can I make it appear after that paragraph instead of at the top of the page?
Good question! It is really simple, put your code for the table in between \begin{figure}[h] code for table \end{figure} The h in the bracket is an option that stands for "here" meaning that it will place the figure where it is in the tex file. Other options are t (top of page) and b (bottom of page). Fair warning though, you may have to play around with where the table is actually place in the tex file to get it to show up exactly where you want it. For example, if you place it below a paragraph too close to the end of the page it may show up on the next page etc. Just play around with it and you should find the solution. GOOD LUCK!
Hello Yibrah, could you be more specific? Do you have a functional form or example? If it is just a combination of linear functions it might be best to use look at the network video whereby you can create nodes and connect those nodes with straight lines.
Hi Azmat, Thanks for the question. The simplest answer is to add one of the following commands into the cell whose text size you want to change: \tiny \scriptsize \footnotesize \small \large \Large \huge \Huge this list goes from smallest to biggest text size. There are of course many other ways. Hope that helps!
Hi! Thank you for the very good question. For referencing you want to use the hyperref package as follows: Step 1: Add \usepackage{hyperref} to the preamble (the part before \begin{document}). Step 2: After you have created a theorem environment you can reference the theorem by adding \label{xxx} anywhere between \begin{theorem} and \end{\theorem}. Note that "xxx" can be anything you like and is what will be used to reference the theorem in the text with ef{xxx}. Also NOTE that you will have to compile the document twice to see the reference number. The first time it will show up as "??". Example: \begin{theorem}\label{pythagorus} $$ a^{2}+b^{2}=c^{2} $$ \end{theorem} Theorem ef{pythagorus} is the Pythagorean theorem. In this example I added the label tag to the theorem under the name pythagorus. Then I reference the theorem in the text with ef{pythagorus}. This will show up in the compiled pdf as the number associated with with the Theorem. This works for all theorem environments as well as figures. Finally, note that there is lots of customization you can do here (Google is your friend, try to search for some things). What I am currently using is: \usepackage{hyperref} \hypersetup{ colorlinks, linkcolor={blue}, citecolor={blue!50!black}, urlcolor={blue!80!black} } just add that to the preamble and you will see that it adds some nice features (like being able to click the reference number and jump to the theorem).
Hi Sebastian, you can control node distance in the following way: Step 1: add \usetikzlibrary{positioning} to the preamble (the part before \begin{document}). Step 2: When you make the first node using ode[draw] (n1) at (0,0) {}; you can place a node 3cm next to that node by using the code ode[draw] (n2) [right=2cm of n1] {}; I believe that this is the best solution to your problem whereby you would end up with a code like this \begin{tikzpicture} [node distance=1cm] ode[draw, shape=circle] (n1) at (0,0) {node 1}; ode[draw, shape=circle] (n2) [right=2cm of n1] {node 2}; ode[draw, shape=circle] (n3) [right=3cm of n2] {node 3}; ode[draw, shape=circle] (n4) [below=3cm of n1] {node 4}; \end{tikzpicture} You can further control the distance of all nodes by using the option in the above code [node distance=1cm]. There are many other options to satisfy your request (that is the beauty of LaTex) but this I believe is the simplest. If you have further questions, don't hesitate to ask.
Hi Fatma, I am sorry but I don't not have the time currently to answer this question directly. One hint that might be able to get you started is to look at the code provided in the example of the link below and try to tailor it to your problem: tex.stackexchange.com/questions/427380/tikz-draw-a-3d-intersection-of-planes
The only package you need for this video is tikz. It comes with the full version of Latex for both operating systems. Just put \usepackage{tikz} in your preamble and it should work.
Hi Jiapan. I understand what you mean. If you want the beamer to count slide numbers as opposed to frame numbers just put: \setbeamertemplate{footline}[page number]{} in the preamble of your document. To change back to counting frames you just switch to \setbeamertemplate{footline}[frame number]{} Hope that helps.