Home › Category Archives › packages

Why does TexStudio stop working when I put \usepackage{graphicx}?

I am writing a .tex document in TexStudio.

When I have to insert an image I am using

\begin{figure}
\centering
\includegraphics[width=0.9]{./...}
\caption{...}
\label{...}
\end{figure}

And, to support \includegraphics, I am doing

\usepackage{graphicx}

But just after putting that, I am having error like

Missing \begin{document}. m
Missing $ inserted ...previous=i;a.selectedItem=h},1)}false!==a._
Misplaced alignment tab character & ...1)}false!==a._trigger("select",c,{item:h})&
Misplaced alignment tab character & ...)}false!==a._trigger("select",c,{item:h})&&
Extra }, or forgotten $ ....element.val();a.close(c);a.selectedItem=h}
Misplaced alignment tab character & ...r:function(){a.menu.element.is(":visible")&
Misplaced alignment tab character & ...:function(){a.menu.element.is(":visible")&&
Misplaced alignment tab character & ...t.is(":visible")&&a.element.val()!==a.term&
Misplaced alignment tab character & ....is(":visible")&&a.element.val()!==a.term&&
Extra }, or forgotten $ ...ent.val()!==a.term&&a.element.val(a.term)}}
Misplaced alignment tab character & ...left:0}).hide().data("menu");d.fn.bgiframe&
Misplaced alignment tab character & ...eft:0}).hide().data("menu");d.fn.bgiframe&&
Extra }, or forgotten $ ....fn.bgiframe&&this.menu.element.bgiframe()}
Misplaced alignment tab character & ...tOption.apply(this,arguments);a==="source"&
Misplaced alignment tab character & ...Option.apply(this,arguments);a==="source"&&
Misplaced alignment tab character & ...ement[0].ownerDocument)[0]);a==="disabled"&
Misplaced alignment tab character & ...ment[0].ownerDocument)[0]);a==="disabled"&&
Misplaced alignment tab character & ...nt[0].ownerDocument)[0]);a==="disabled"&&b&
Misplaced alignment tab character & ...t[0].ownerDocument)[0]);a==="disabled"&&b&&
Misplaced alignment tab character & ...rDocument)[0]);a==="disabled"&&b&&this.xhr&
Misplaced alignment tab character & ...Document)[0]);a==="disabled"&&b&&this.xhr&&
Misplaced alignment tab character & ...ons.source;this.source=function(c,f){a.xhr&
Misplaced alignment tab character & ...ns.source;this.source=function(c,f){a.xhr&&
Misplaced alignment tab character & ...s:function(h){this.autocompleteRequest===e&
Misplaced alignment tab character & ...:function(h){this.autocompleteRequest===e&&
Misplaced alignment tab character & ...or:function(){this.autocompleteRequest===e&
Misplaced alignment tab character & ...r:function(){this.autocompleteRequest===e&&
Misplaced alignment tab character & ...onse:function(a){if(!this.options.disabled&
Misplaced alignment tab character & ...nse:function(a){if(!this.options.disabled&&
Misplaced alignment tab character & ...e:function(a){if(!this.options.disabled&&a&
Misplaced alignment tab character & ...:function(a){if(!this.options.disabled&&a&&
Misplaced alignment tab character & this.element.val()&
Misplaced alignment tab character & this.element.val()&&
Misplaced alignment tab character & ...Item})},_normalize:function(a){if(a.length&
Misplaced alignment tab character & ...tem})},_normalize:function(a){if(a.length&&
Misplaced alignment tab character & ...malize:function(a){if(a.length&&a[0].label&
Misplaced alignment tab character & ...alize:function(a){if(a.length&&a[0].label&&
Misplaced alignment tab character & ...lement.is(":visible"))if(this.menu.first()&
Misplaced alignment tab character & ...ement.is(":visible"))if(this.menu.first()&&
Misplaced alignment tab character & ...t()&&/^previous/.test(a)||this.menu.last()&
Misplaced alignment tab character & ...()&&/^previous/.test(a)||this.menu.last()&&
Extra }, or forgotten $ ...idget:function(){return this.menu.element}}
Missing } inserted ...peRegex:function(a){return a.replace(/[-[\]
Too many }'s ...peRegex:function(a){return a.replace(/[-[\]
\begin{document} ended by \end{trivlist}. ...peRegex:function(a){return a.replace(/[-[\]
Extra \endgroup ...peRegex:function(a){return a.replace(/[-[\]
Missing $ inserted ...tion(a){return a.replace(/[-[\]{}()*+?.,\\^
Missing { inserted ...ion(a){return a.replace(/[-[\]{}()*+?.,\\^$
Missing } inserted ...ion(a){return a.replace(/[-[\]{}()*+?.,\\^$
You can't use `macro parameter character #' in horizontal mode ...n(a){return a.replace(/[-[\]{}()*+?.,\\^$|#
..........................................

Can anyone please help??