Hi I am trying to insert an image in a document and have the width of the image be the same as the width of the text.   I have included the following and cannot seem to get the display command to work.  \usepackage{graphics}   I am trying to display image using   \includegraphics[width=\textwidth]{my-image}   I receive the following error message:  width=\textwidth ]{my-image}  ! Paragraph ended before \Gin@iii was complete. &lt;to be read again&gt;                     \par
I'm trying to insert a figure into my LaTeX file using the following syntax:  \begin{figure}   \centering   \includegraphics [width=3in]{fig1.png}   \caption{Calculation of shortest path betweenness}   \label{Fig.3:Shortest path betweenness} \end{figure}   It worked for me before but this time I'm getting the following error:   LaTeX Error: \begin{figure} on input line xxx ended by \end{document}   Also, hovering over the red cross symbol indicating error in Eclipse, I see this message    paragraph ended before Gin@iii was completed.   It's obvious that I have the \end{figure} to end my \begin{figure} so I don't understand how I still get that error.  Can someone please tell me what the problem is?  Edit: Add more details for debugging. The problem went away if I remove '[width=3in]'. Here is the detail error:  pdflatex&gt; Runaway argument? pdflatex&gt; width=3in]{fig1.png} \caption {Caption} \label {Fig.1}  pdflatex&gt; ! Paragraph ended before \Gin@iii was complete. pdflatex&gt; &lt;to be read again&gt;  pdflatex&gt;                    \par  pdflatex&gt; l.40  pdflatex&gt;        pdflatex&gt;  pdflatex&gt; Underfull \vbox (badness 10000) has occurred while \output is active pdflatex&gt; (./document.bbl pdflatex&gt;  pdflatex&gt; Package natbib Warning: Empty `thebibliography' environment on input line 3.   Added sample code:  \documentclass[10pt,psfig,letterpaper,twocolumn]{article} \usepackage{geometry} \usepackage{graphics} \usepackage{setspace} \usepackage{natbib} \usepackage{verbatim} \usepackage[scaled=0.9]{helvet} \singlespacing \paperwidth 8.5in \paperheight 11in \oddsidemargin 0in \headsep 1.3cm  \geometry{left=0.75in,top=0.75in,right=0.75in,bottom=1in} \textwidth 7in  \textheight 9.25in \columnsep 0.4in \footskip 0in  \renewcommand{\bibname}{REFERENCE} \pagestyle{empty}  \begin{document} \bibliographystyle{acm}   \title{\fontfamily{phv}\selectfont{\huge{\bfseries{Title here}}}} \author{ {\fontfamily{ptm}\selectfont{\large{\bfseries{author name}}}}\thanks{contact info }}  \maketitle \thispagestyle{empty}  \section*{\fontfamily{phv}\selectfont{\normalsize{\bfseries{Section name}}}}  \begin{figure} \centering \includegraphics[width=3in]{fig1.png} \caption{Caption} \label{Fig.1} \end{figure}  \pagebreak[4] \vspace*{5.52in} \bibliography{ref} \end{document}
I am trying to add a list into an another nested list before adding values of a list to nested list it is getting the correct value but after adding i am getting (already output) in debug log when i checked.    public List&lt;String&gt; fieldName {get;set;}  public List&lt;List&lt;String&gt;&gt; fileValuesXML; // To get the field values of xml  for(Dom.XMLNode child : SalesforceObjecet.getChildElements()) {                        objecetName = child.getText();             system.debug('Object Name in XML field  ' + objecetName );              for(Dom.XMLNode subchild : child.getChildElements())              {                 system.debug('Sub child ' + subchild.getText() );                 for(Dom.XMLNode subchildfield : subchild.getChildElements())                 {                     system.debug('Sub child Field ' + subchildfield );                     fName  = subchildfield.getText();                     fieldName.add(fName);                     //fileValuesXML.add(fieldName);                     //system.debug('Filed Name in XML field  ' + fieldName);                 }                  system.debug('Filed Name before affing to filevalueXML  ' + fieldName);                                     fileValuesXML.add(fieldName);                 fieldName.clear();                 system.debug('Filed Name after affing to filevalueXML  ' + fileValuesXML);             }    }    I am getting values in debug log as:     Filed Name before affing to filevalueXML  (AccountSource, field3)   Filed Name after affing to filevalueXML  ((), (already output),   (already output)) Defining the Product of Ideals Modify all bash commands through a program before executing them I am trying to create a program which require such feature. The flow will be like:   User enter a bash command User hit the enter My script will get command, current directory,.. as variables. Program can optionally modify the command. Modified command will get executed normally.   Is there any way to do this?  Note: I need this for my personal use, I am not going to distribute this program. How do I find the caller of a method using stacktrace or reflection? I need to find the caller of a method. Is it possible using stacktrace or reflection? How to configure splash screen after plymouth I have configured my splash screen for plymouth - and it works perfectly. I've also configured the display manager (I'm using gdm). In between these two I get a very brief splash screen - a kind of swirl of multi-coloured ubuntu like colours. Where does this splash screen get set, and how do I change it?  Edit: Here is a video of my boot sequence, showing the screen in question: Can't use my sprint key and jump at the same time Ok, so I do a lot of sprint jumping in minecraft because I pvp a ton everyday and every once in a while it won't allow me to do both at the same time. I set ctrl to my sprint key so when I want to sprint I hold ctrl. If I hold ctrl and space it won't let me jump. If I double tap w I can sprint and jump at the same time. Does anybody know why it does this? It's not something to do with my keyboard because it's just fine. It's done this a couple of times and it's quite annoying. I would like to use the same pipe for different applications, like in:  cat my_file | {   cmd1   cmd2   cmd3 }   Cmd1 should consume part of the input. Cmd2 should consume another part and so on.  However, each cmd eats more of the input then it read really needs due buffering.  For example:  yes | nl | {    head -n 10 &gt; /dev/null   cat  } | head -n 10   Outputs from line 912 instead of line 11.  Tee is not a good option, because each command is supposed to consume part of the stdin.   Is there a simple way to get this working? Simple programs with tutorials for beginners in graphic design? Prove inequality $n<3^n$ using mathematical induction Prove that $n&lt;3^n$ where $n \in \mathbb N$,  when $ n=1 $, I have proved it's true. And assumed when $n = p$ , $p&lt;3^p$ is true. Can any body help me in showing that it is true for $n =p+1$ How can I convert a hex string to a byte array? Thesis chapter headings, any suggestions? I've found a thesis with really beautiful chapter headings that I would like to use. What package am I going to need and how would I go about creating a heading that looks like the one below. Also, if you have or know of any nice headings do please share! Include external subtitles while converting video with FFmpeg Is it possible to use subtitles from an external file while converting a video with FFmpeg? The file extension of the subtitles is .stl or .vob. In his first lesson (transcripted in "Tips on Physics"), Feynman talks about math for physicists in a very cool and practical way. And at the end of the section he talks something like "so the first thing to do is to learn to learn derivative, integral and algebra" (I don't know how much precise I'm being because I've read it in Portuguese). I would to know if there is some book that deals with math as Feynman did it in this lesson (respecting formalities, but teaching how to use the practical rules)? Also, someone have any recommendations for algebra book (college level)? Implicit conversion issue in a ternary condition Calculating $\lim_{x\to0} \left\lfloor\frac{x^2}{\sin x \tan x}\right\rfloor$ What's the term in music, where the singer uses words without meaning? I've been searching for the word, which is used for describing parts of lyrics, where the singer sings for example the whole refrain only using words of syllables without any meaning. Maybe you could help? (here's one song with that type of refrain: ) If $\sum a_n b_n <\infty$ for all $(b_n)\in \ell^2$ then $(a_n) \in \ell^2$ I'm trying to prove the following:     If $(a_n)$ is a sequence of positive numbers such that $\sum_{n=1}^\infty a_n b_n&lt;\infty$ for all sequences of positive numbers $(b_n)$ such that $\sum_{n=1}^\infty b_n^2&lt;\infty$, then $\sum_{n=1}^\infty a_n^2 &lt;\infty$.   The context here is functional analysis homework, in the subject of Hilbert spaces.  Here's what I've thought:  Let $f=(a_n)&gt;0$. Then the problem reads: if $\int f\overline{g}&lt;\infty$ for all $g&gt;0,g\in \ell^2$, then $f\in \ell^2$. This brings the problem into the realm of $\ell^p$ spaces.  I know the inner product is defined only in $\ell^2$, but it's sort of like saying: if $\langle f,g\rangle &lt;\infty$ for all $g&gt;0,g\in \ell^2$ then $f\in \ell^2$.  I read this as: "to check a positive sequence is in $\ell^2$, just check its inner product with any positive sequence in $\ell^2$ is finite, then you're done", which I find nice, but I can't prove it :P  From there, I don't know what else to do. I thought of Hölder's inequality which in this context states: $$\sum_{n=1}^\infty a_nb_n \leq \left( \sum_{n=1}^\infty a_n^2 \right)^{1/2} \left( \sum_{n=1}^\infty b_n^2 \right)^{1/2}$$  but it's not useful here. Copy material to another object? I saw a video where the person copied a material from one object to another (Cycles).  How can I accomplish this? How can I move or force a program installation to another location, even when unsupported? I have an SSD as my main Windows drive, with a 640GB 2.5" HDD, partitioned to store programs and user settings, and also to act as backup (it's the only thing I had lying around at the time of building my PC).  The problem is that whenever I install a program, it installs to C:\Program Files [(x86 for the 32 bit programs]\, although I have changed the environment variables. This wouldn't normally be an issue, however every installation program points its shortcut to my 640GB HDD.  The root layout of both drives:   To clarify:   Program files get installed to C:\ Program shortcuts are always pointed to Z:\, my 640GB HDD   Modifying the relevant environment variables doesn't do anything, I looked at , but however it only talks about modifying the registry and environment variables, which I have already done so.  I install to the Z:\ drive if the installation program lets me change the installation path, but however the installation programs sometimes don't let me change this.  Is there a way that I can force every program to install to the relevant location on Z:\, but at the same time move any programs currently installed to the new location? Perhaps I'm missing something here?  My target is to have every program installed on Z:/, with only the core Windows operating system on C:/.  Found ; would it be appropriate to use in my case? I would be able to move the entire Program Files (and its x86 version) to Z:\, without impacting on the performance.* What does 100Ohm @ 100MHz exactly mean in ferrite beads? I am trying to understand the parameters of ferrite beads and having trouble in understanding the impedance vs frequency parameter.   What does 100Ohm at 100MHz exactly mean? Does it mean that the bead will provide impedance of 100Ohm for frequencies in the 100MHz region (depending on its graph)?  I do understand that bead is highly resistive at higher frequencies.  Any help will be appreciable.