The "Introduction to Plasma Physics C17 Lecture Notes", which I'm reading online, set out the following scenario in section 1.1.2:
Consider the electric field due to a 1-D line of charge (see Fig. 1.2). Applying Gauss' theorem to the pillbox shown, we find $$ \int E.ds = 2AE = \rho A dx/\epsilon_0$$
Here is the diagram:
I'm struggling to reconcile this with my understanding of Gauss' law. Looking at the above scenario I would say that the total charge $Q$ is equal to the charge density times the height, $A$ (area in 1 dimension). The total flux is the $E$ times the area at each side, so $2A$. Equating these via Gauss' law gives:
$$\Phi_E = 2AE = Q/\epsilon_0 = \rho A/\epsilon_0$$
This is not the same as the result in the lecture notes ($\rho A dx / \epsilon_0$). Why is the $dx$ relevant here? I have a suspicion that it's to do with my (mis)understanding of the geometry of a "Pillbox", but I'm not sure.