Yes, this has been asked before but I can't find an answer. I've been experimenting with LaTeX on overleaf for around 3 months and I still can't get the hang of inserting images. Just let me plonk that shit down, why do I have to add five different modifiers and fiddle for two hours with pixel measurements to make something just fit on the page properly. Is there any way to automatically resize images, everything I try to insert is too large, so it gets off or gets its own page, which looks terrible It's always in the wrong position too, never where I insert it in the source code? What am I missing? I don't think I've ever been this frustrated working with something before besides coding. I know this is more of a rant than a question. If I wanted to plonk stuff down I'd just use a word, but I wanna make it work. If it's just one image it's fine, but inserting 5 or more images shouldn't take hours, should it? If someone decides to answer this, thank you! I'm not really expecting an answer, I'll probably get banned for having violated some rule  I haven't read about because this is too ranty or something. Clarification: I just wanted to get it out, but let's say I'm starting with the basic: \begin{figure}     \centering     \includegraphics{images/image.jpg}     \caption{Caption}     \label{fig:my_label} \end{figure}  What do I have to do to accomplish these things: 1-I want the image to appear where I put it in the code, not on the next page. 2-The image should be as wide as a line of text. I tried doing this: \begin{figure}[h!]     \centering     \includegraphics[width=\textwidth]{Agrobacteria.PNG}     \caption{Genomen van \cite{tzfira_agrobacterium-mediated_2006}}     \label{fig:my_label} \end{figure}  And it worked, but only on this one picture, when I try to copy the code and place it somewhere else the image moves to the next page or section.
I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code:  \begin{figure}[ht] \begin{center} \advance\leftskip-3cm \advance\rightskip-3cm \includegraphics[keepaspectratio=true,scale=0.6]{slike/visina8} \caption{} \label{visina8} \end{center}\end{figure}   to place my figures. How can I tell latex I REALLY want the figure in that specific place, no matter how much whitespace will be left?
I have a pretty simple table that needs to span multiple pages. This seems like a job for either the / package or the  package.   The voting on the answers to this  suggest that longtable is the preferred package, yet xtab is much newer and has been revised since that question was asked.  What are the differences between xtab and longtable and when is one preferable to the other? Can we re-request features that were declined a sufficient while ago? Deploying Qt 5 App on Windows How to show that $K\leq S_4$ is a normal subgroup? Let $K=\{(1),(1,2),(3,4),(2,4),(1,4),(2,3)\}$ is a subgrope of $S_4$, we want to show that it is a normal subgroup.  I know that i have to examine the condition of normality in $S_4$ i.e. for all $g\in S_4, g^{-1}Kg=K$. I think this takes times or I am missing something near. Please give me the right hint. Thank you.  Edit: $K = \{(1),(12)(34),(13)(24),(14)(23)\}.$ How can I repair a ceiling fan that hums, but doesn't turn? Same gravatar is displayed for different users in stackexchange.com filters Same gravatar is displayed for different users in the stackexchange.com , under the Top Network Askers in the right side bar.   The red circled image's source (&lt;img src=) are from   https://www.gravatar.com/avatar/?s=18&amp;d=identicon&amp;r=PG&amp;s=30                                ^   Seems the gravatar id is missing here in the image source.  For an example from the list, the user  gravatar id should be    https://www.gravatar.com/avatar/66c66c4d97a7bc3859a85253f003e1fb?s=18&amp;d=identicon&amp;r=PG&amp;s=30   but it is mapped with   https://www.gravatar.com/avatar/?s=18&amp;d=identicon&amp;r=PG&amp;s=30   which caused the display issue. What do I say to make a new line when using voice recognition? I've found I can make punctuation happen by saying "comma", or "period", but I can't find the word for new line.  I tried "paragraph", and "line break", but it just prints those words. I wish to remove Ubuntu and I'm not quite sure how. I know it has something to do with partitions. I have 3 partitions. 1. OS [683 GB]  2. Recovery [14 GB] 3. Ubuntu 12.04 LTS (E:)  I know it says Ubuntu but when I installed Ubuntu I think I put 14 gigabytes for it so I think its the recovery one but I'm not sure. I could have sworn I put more than 700 megabytes for it.  I have googled this and I can't seem to find an answer. Any help would be nice. how do I get my code to use the value of the $HOME variable? I'm trying to put together a generic script that will check the existence of several key directories for various users on different servers. Additionally, I want to leverage each user's $HOME variable.  For eg, let's say this were true:   on server 1: jdoe's home is /home/jdoe  on server 2: jdoe's home is /opt/jdoe2 server 3 hasn't been built yet; we won't know where they build his $HOME until the server is built. on server 4: mysql's home is /opt/home/mysql   This is what I have for my important directories (ordered from most to least impt):  $ cat mylist.txt $HOME/most_impt_dir1 $HOME/most_impt_dir2 $HOME/most_impt_dir3 $HOME/misc $HOME/junk   ...I want to find the most impt dir owned by this user.   Here's what I'm trying:  for i in `cat mylist.txt` do    if [[ -O $i ]] &amp;&amp; [[ -d $i ]]; then     echo "found it: $i"     break   else     echo "$i is not it."   fi  done   The above code does not work for anything in my list because it is literally checking for dirs beginning with $HOME. How do I get my code to use the value of the user's $HOME variable? How do I help my third-grader focus on homework? My child just entered third grade, and the homework load is much higher this year, with a lot of writing and math drills. It is all work that she can do easily, but it's causing the whole family a lot of pain, because she's have a really hard time just sitting down and doing it — asking many questions about things she clearly actually knows, and getting distracted by the smallest thing going on around her. (Setting up a special quiet area isn't helping, because the distractions could be her pencil or a sudden burst of word association based on something in the lesson.)  So, a page of writing and a couple of pages of math which could be done in fifteen minutes total is taking an hour and a half. She can easily explain the reasoning behind the math problems, but when it comes to writing down what she just said, it's like pulling teeth. She'll slowly write a word, sounding it out in slow motion as she writes each word. And she'll say that she doesn't understand a question, but when she actually gets her mind pointed at it, she can write a great answer. And she's clearly picking up the concepts in class; I have no doubt that she actually understands, which is part of our frustration.  My wife feels like she's just wanting attention, but I think it's more about our daughter's own ability to focus. We both feel that sitting down and working painfully through each question isn't really helping her. That works, but my wife feels like it's just rewarding the behavior, and I feel like it's not really helping her learn any better focus on her own, which, you know, she'll need in actual life. And, we're happy to spend child with our kid, this pretty much the opposite of quality time.  Neither rewards or consequences seem to have any effect, and nor do charts. All of those things basically just seem to add another layer of complication, distraction, and misery. What else can we do? Can we use media9 to show a video on a PDF but the video is not embedded to the PDF? I have video tutorials that I want to show in my presentation with beamer class. I don't want the video files get embedded to the PDF because they will make the PDF size very very huge.  If you know how the videos can be played on the HTML with a reference rather than embedding the video file to the HTML file, I want something like this to be applied to my PDF presentation. I just want to reference the video URL from my PDF presentation.   Shortly speaking, can we use media9 to show a video on a PDF but the video is not embedded to the PDF?  Uploading those videos to a web server might be difficult for me because internet connection is very slow and sometimes not available in the presentation room. :-) Better than premium Is there something higher (better) than the word premium, or does it mean the best? Also, is there something in between premium and deluxe?  Graphically: Does any word fit here? > Premium > Does any word fit here? > Deluxe Can I run the python interpreter without generating the compiled .pyc files? How to change file extension at runtime in Java How to evaluate the integral $\int \sqrt{1+\sin(x)} dx$ To find:  $$\int \sqrt{1+\sin(x)} dx$$  What I  tried:  I put $\tan(\frac{x}{2}) = t$, using which I got it to:  $$I = 2\int \dfrac{1+t}{(1+t^2)^{\frac{3}{2}}}dt$$  Now I am badly stuck. There seems no way to approach this one. Please give a hint. Also, can we initially to some manipulations on the original integral to make it easy? Thank you. I have a table with a varchar(max) column that stores text ~4-10KB in size. Data is just being added - never modified, it is a log. My problem is that a table grows too large in size - I would like to keep about 1000000 rows in this table.   I am limited to SQL Server Express and hit the limit on database size. Compression is not available in SQL Server Express and I afraid that Filestream may not be appropriate and the number of files would be too big.   What is the best solution in this case? 'Some index files failed to download' while updating Change the word "Chapter" to something else I am using fancyhdr. With that, using the command  \renewcommand{\chaptername}{Lecture}   has no effect. How can I change the name "Chapter" into something else? Collection of clopen sets form a base for a countable completely regular space I have $X$ as a countable, Tychonoff space, and I want to show that the collection of clopen subset of $X$ form a base for the topology on $X$.  Can I first just define a base $\mathscr{B}$ of X, let $x\in X$ and $E \subset X$ is closed such that $x\notin E$. So $x\in X-E$, which is open.   I also noticed that the interval $[0,1]$ is uncountable. Can I define a function $f: X\to [0,1]$, then f is onto. Do I need to show that $f$ continuous next? E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) I'm trying to run this command in the terminal:  sudo apt install software-properties-common   This is the error message I get:  E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)   E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend),     is another process using it?