LaTex problem with matrix left alignment on the margin
Align equation left
Convert stored procedure result to model object PostgreSQL create line from points center text in div Variance of the distribution of difference scores \end{abstract} conflicts with arabtext package I am using elsarticle  Everything was find before I used \usepackage{arabtext}.   When I compiled to PDF, I got the following error message.    And if I type "s", everything became fine again but I don't want to type an "s" every time I compile PDF preview.   Please anyone advise.  Thank you very much in advance for your help.  Here is the code  \documentclass[12pt, authoryear]{elsarticle}    % use "amsart" instead of "article" for AMSLaTeX format \usepackage[colorlinks=true,linkcolor=black, citecolor=blue, urlcolor=blue]{hyperref} \usepackage{geometry}                       % See geometry.pdf to learn the layout options. There are lots. \geometry{a4paper}                          % ... or a4paper or a5paper or ...  %\geometry{landscape}                       % Activate for rotated page geometry %\usepackage[parfill]{parskip}          % Activate to begin paragraphs with an empty line rather than an indent \usepackage{graphicx}               % Use pdf, png, jpg, or epsÂ§ with pdflatex; use eps in DVI mode                             % TeX will automatically convert eps --&gt; pdf in pdflatex         \usepackage{amssymb}  \usepackage{amsmath} \usepackage{tipa} \usepackage{arabtex} %SetFonts  %SetFonts   \title{Translating from English to Bahasa Indonesia: Which procedures should be taught to EFL students preparing to be a translator?} \author[mkl]{Mohammad Kholid}  \author[fai]{Faisal Mustafa\corref{cor1}} \ead{faisal.mustafa@unsyiah.ac.id}  \cortext[cor1]{Corresponding author}  \address[mkl]{Syiah Kuala University, Banda Aceh, Indonesia} \address[fai]{Syiah Kuala University, Banda Aceh, Indonesia} \date{}                         % Activate to display a given date or no date  \begin{document} %\section{} %\subsection{}  \begin{frontmatter}  \begin{abstract}   Abstract content is here.  \end{abstract}  \begin{keyword}  translation procedures \sep English to Bahasa Indonesia \sep teaching translation \end{keyword} \end{frontmatter} Can you raise $\pi$ to a real power to make it rational? Creating Indexes on DB with Hibernate @Index Annotation Turn off autocomplete in PhpStorm Is it a good practice to always scale/normalize data for machine learning? example of not surjective isometry on a bounded not closed set. Is there an example of a bounded not closed set $A\subset \mathbb R^n$ for some $n\in \mathbb N$ and an isometry $f:A\rightarrow A$ ($\forall x,y\in A\space;\space d(x,y)=d(f(x),f(y))$ where $d$ is the euclidean metric) such that $f$ isn't surjective? Is there a way to determine which features / variables of the dataset are the most important / dominant within a k-means cluster solution? Why doesn't 'find' show this file? Convert list of ints to one number? I have a list of integers that I would like to convert to one number like:  numList = [1, 2, 3] num = magic(numList)  print num, type(num) &gt;&gt;&gt; 123, &lt;type 'int'&gt;   What is the best way to implement the magic function?  EDIT  I did find , but it seems like there has to be a better way. Combinatorics Question Asking How Many Integer Solutions Given Different Restrictions How many integer solutions of $x_1 + x_2 + x_3 + x_4 = 28$ are there with:  (a) $0 ≤ x_i ≤ 12$?  (b) $−10 ≤ x_i ≤ 20$?  (c) $0 ≤ x_i, x_1 ≤ 6, x_2 ≤ 10, x_3 ≤ 15, x_4 ≤ 21$?  \ \  My attempts (I was really only able to solve part (a) but I would appreciate if you could check my work for this one as well):  (a) First I took the total number of integer solutions with no restrictions: There would be ${28+3\choose 3}$ = ${31\choose 3}$ total solutions with no restrictions.   Then I used the inclusion exclusion principle and knew I would have to subtract [P(A) + P(B) + P(C) + P(D)] where A --> $x_1$ is greater than or equal to 13, ..., D--> $x_4$ is greater than or equal to 13. The probabilities of all these cases would equal ${15+3\choose 3}$ = ${18\choose 3}$ because once we assign 13 to one of the $x_i$ there would be $28 - 13 = 15$ remaining to distribute among the $x_i$ values. We would also need to choose which of the $x_i$ to give the 13 to so we would multiply the ${18\choose 3}$ by ${4\choose 1}$ = ${4\choose 1}{18\choose 3}$  We would then have to add back, since we "oversubtracted", the case in which there is an intersection between two of the $x_i$ or in other words two of the $x_i$ receive 13 or more. P$(A\bigcap B)$ = $28-2(13) = 2$ remaining to distribute among the $x_i$ values. So we would also have to choose which of the $x_i$ to give the 13 to so we would have ${4\choose 2}$ ways to choose them. So there would be ${4\choose 2}{2+3\choose 3}$ = ${4\choose 2}{5\choose 3}$ solutions in this case.   Thus the number of solutions would be: ${31\choose 3} - {4\choose 1}{18\choose 3} + {4\choose 2}{5\choose 3}$.  I'm not sure if this is correct and I'm really stuck on b and c so I would appreciate any help or feedback. Thank you! how to remove frost free outdoor faucet drain valve assembly I've tried unscrewing the part outlined in red below. No dice. Do I just need to remove the whole rod (above the red outline) and replace it?) If so, can anyone point me to instructions for them.  I can't see in there. Worried that I'll pull it out and not be able to put it back in.  (The deeper I go in the plumbing the more things I find that there is no modern fitting-part :)  My new assembly  replaces the parts outlined in red. the new assembly has a female thread. I am HOPING that the thicker part of the pipe (just above the black "collar" stopper)  is screwed onto the pipe above.  However, I cannot unscrew it. There is nothing to get a hold of. It's perfectly round. I've tried dw40, and let it sit for 20 minutes. No love.  I'll try wacking it with a board in the direction along which it moves in when it screws (perpendicular to the threads per [this answer][2]) Hi is it possible to exclude traffic from a certain country in google analytics?  If yes, how do I do it? Determining application path in a Python EXE generated by pyInstaller I have an application that resides in a single .py file.  I've been able to get pyInstaller to bundle it successfully into an EXE for Windows.  The problem is, the application requires a .cfg file that always sits directly beside the application in the same directory.  Normally, I build the path using the following code:  import os config_name = 'myapp.cfg' config_path = os.path.join(sys.path[0], config_name)   However, it seems the sys.path is blank when its called from an EXE generated by pyInstaller.  This same behaviour occurs when you run the python interactive command line and try to fetch sys.path[0].  Is there a more concrete way of getting the path of the currently running application so that I can find files that are relative to it? How to generate a 2D array data structure in tikz? I need to illustrate a 2D array data structure in my document. This is a picture I found on the internet. I want something similar.    I also want to show the memory layout in the illustration. Something like this:   Can someone help me with drawing them in Tikz? Thanks in advance.  MWE  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{matrix,backgrounds}  \begin{document} \begin{tikzpicture}[font=\ttfamily, array/.style={matrix of nodes,nodes={draw, minimum size=7mm, fill=green!30},column sep=-\pgflinewidth, row sep=0.5mm, nodes in empty cells, row 1/.style={nodes={draw=none, fill=none, minimum size=5mm}}, row 1 column 1/.style={nodes={draw}}}]  \matrix[array] (array) { 0 &amp; 1 &amp; 2 &amp; 3 &amp; 4 &amp; 5 &amp; 6 &amp; 7 &amp; 8 &amp; 9\\   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;  \\}; \node[draw, fill=gray, minimum size=4mm] at (array-2-9) (box) {};  \begin{scope}[on background layer] \fill[green!10] (array-1-1.north west) rectangle (array-1-10.south east); \end{scope}  \draw (array-1-1.north)--++(90:3mm) node [above] (first) {First index}; \draw (array-1-10.east)--++(0:3mm) node [right]{Indices}; \node [align=center, anchor=south] at (array-2-9.north west|-first.south) (8) {Element\\ (at index 8)}; \draw (8)--(box); % \end{tikzpicture} \\ \begin{tikzpicture}[font=\ttfamily, array/.style={matrix of nodes,nodes={draw, minimum size=7mm, fill=red!30},column sep=-\pgflinewidth, row sep=0.5mm, nodes in empty cells, row 1/.style={nodes={draw=none, fill=none, minimum size=5mm}}, row 1 column 1/.style={nodes={draw}}}]  \matrix[array] (array) {  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp; \\  &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;  \\}; % \end{tikzpicture} \\ \begin{tikzpicture}[font=\ttfamily, array/.style={matrix of nodes,nodes={draw, minimum size=7mm, fill=blue!30},column sep=-\pgflinewidth, row sep=0.5mm, nodes in empty cells, row 1/.style={nodes={draw=none, fill=none, minimum size=5mm}}, row 1 column 1/.style={nodes={draw}}}]  \matrix[array] (array) {  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp;  &amp; \\  &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;   &amp;  \\}; % \end{tikzpicture} \end{document} Let $F:\mathbb{R^2}\rightarrow \mathbb{R}$ be a function, such as : $$F(x,y)=\begin{cases}        0 &amp; (x,y)=(0,0) \\       \frac{xy}{x^2+y^2} &amp; (x,y)\neq (0,0)    \end{cases}$$      Is $F$ differentiable at $(0,0)$?   My attempt :  Consider the limit, $\lim_{(x,y)\rightarrow (0,0)} F(x,y)$ along the line $y=x$. The limit equals to $\frac{1}{2}$. However, $F(0,0)=0$. Hence $F$ is not continuous at $(0,0)$ which implies that $F$ isn't differentiable as well.  Is this approach okay ? Dynamically adding a form to a Django formset I want to dynamically add new forms to a Django formset, so that when the user clicks an &quot;add&quot; button it runs JavaScript that adds a new form (which is part of the formset) to the page.