I have been making an assignment for my class in landscape form using long table. It is turning to be larger than the page, so I used the adjustwidth package to move the margins, but it only moves the long table on the last page as shown.
Here is the code
\documentclass[a4paper]{article}
\usepackage{tikz,caption,chngpage,pdflscape,amsmath,circuitikz,longtable,lipsum}
\usetikzlibrary{circuits.logic.US,circuits.logic.IEC,fit}
\newcommand\addvmargin[1]{
\node[fit=(current bounding box),inner ysep=#1,inner xsep=0]{};
}
\begin{document}
\pagenumbering{gobble}
\begin{landscape}
\begin{center}
\begin{adjustwidth}{-1.5in}{-1.5in}
\setlength\LTleft{1pt}
\setlength\LTright{1pt}
\setlength{\LTpre}{1pt}
\setlength{\LTpost}{1pt}
\begin{longtable}{@{\extracolsep{\fill}}c|c|c|c|c@{}}
%\caption{Different Amplifiers}
\setlength{\tabcolsep}{5mm}
\def\arraystretch{1.25}
S.No. & Configuration & Circuit Diagram & Output Equation & Applications
\\ \hline
1 & Differential Amplifier &
\begin{tikzpicture} [transform shape,baseline=0,scale=0.75] \draw
(0,0) node[op amp] (opamp) {$A$}
(opamp.-) node[left] {} to [open,v<=$v_{id}$]
(opamp.+) node[left] {}
(opamp.out) node[right] {}
(opamp.up) --++ (0,0.5) node[vcc] {$+V_{cc}$}
(opamp.down) --++ (0,-0.5) node[vee] {$-V_{ee}$}
(opamp.-) to [short] ++(-2.5,0) to [short] ++(0,-1) to [R=$R_{in_2}$]
++(0,-2) to [sV=$V_{in_2}$] ++(0,-1) to node[ground] {} ++(0,-0.5)
(opamp.+) to [short] ++(-0.5,0) to [R=$R_{in_1}$]
++(0,-2) to [sV=$V_{in_1}$] ++(0,-1) to node[ground] {} ++(0,-0.5)
(opamp.out) --++(1,0) --++(0,-1) to [R=$R_l$]
++(0,-2.5) to node[ground] {} ++(0,-0.5)
(opamp.out) --++(1,0) to[short,-o] ++(0.5,0) node[]{} node[right]{$v_{out}$}
;
\addvmargin{1mm}
\end{tikzpicture} & $\begin{aligned}[t]
v_{out}&=A*(v_{id})\\ v_{id}&= v_+ - v_-
\end{aligned}$ & \lipsum[1]\\
\hline
2 & Inverting Amplifier &
\begin{tikzpicture} [transform shape,baseline=0,scale=0.75] \draw
(0,0) node[op amp] (opamp) {$A$}
(opamp.up) --++ (0,0.5) node[vcc] {$+V_{cc}$}
(opamp.down) --++ (0,-0.5) node[vee] {$-V_{ee}$}
(opamp.-) --++(-2.5,0) --++(0,-1) to node[ground] {} ++(0,-0.5)
(opamp.+) --++(-0.5,0) to [R=$R_{in}$]
++(0,-2) to [sV=$V_{in}$] ++(0,-1) to node[ground] {} ++(0,-0.5)
(opamp.out) --++(1,0) --++(0,-1) to [R=$R_l$]
++(0,-2.5) to node[ground] {} ++(0,-0.5)
(opamp.out) to[open] ++(1,0) to[short,-o] ++(0.5,0) node[]{} node[right]{$v_{out}$}
;
\end{tikzpicture} &$v_{out} \approx -A*v_{in}$ & \lipsum[1] \\ \hline
3 & Non-Inverting Amplifier &
\begin{tikzpicture} [transform shape,baseline=0,scale=0.75] \draw
(0,0) node[op amp] (opamp) {$A$}
(opamp.up) --++ (0,0.5) node[vcc] {$+V_{cc}$}
(opamp.down) --++ (0,-0.5) node[vee] {$-V_{ee}$}
(opamp.+) --++(-0.5,0) --++(0,-1) to node[ground] {} ++(0,-0.5)
(opamp.-) --++(-2.5,0) to [R=$R_{in}$]
++(0,-2) to [sV=$V_{in}$] ++(0,-1) to node[ground] {} ++(0,-0.5)
(opamp.out) --++(1,0) --++(0,-0.5) to [R=$R_l$]
++(0,-1.5) to node[ground] {} ++(0,-0.5)
(opamp.out) to[open] ++(1,0) to[short,-o] ++(0.5,0) node[]{} node[right]{$v_{out}$}
;
\end{tikzpicture} & $v_{out} \approx A*v_{in}$ & \lipsum[1] \\
\end{longtable}
\end{adjustwidth}
\end{center}
\end{landscape}
\end{document}
Sorry for the unindented code. I just want to know how to make the Table fit the page. Also could tell me how to put the circuits in another file and include them in the text. Thanks in advance.




longtableccolumns are single line, you want at least the last column to have linebreaking so make itp{3cm}or whatever width you want. – David Carlisle Aug 11 '17 at 12:47longtablein acenterenvironment` it doesn't centre it it just adds spurious vertical space – David Carlisle Aug 11 '17 at 12:48\begin{adjustwidth}{-1.5in}{-1.5in} \setlength\LTleft{1pt} \setlength\LTright{1pt} \setlength{\LTpre}{1pt} \setlength{\LTpost}{1pt}– David Carlisle Aug 11 '17 at 12:59