Page LayoutCreating tables in a certain subsection

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
vitruvius
Posts: 1
Joined: Fri May 30, 2014 10:22 pm

Creating tables in a certain subsection

Post by vitruvius »

Hello, I am quite new to Latex and have a problem. I have a subsection(RS-232) which has some text, an image and a table. But the table appears in the next subsection(RS-485). I have a felling that this happens because there is no enough room for the table, so it continues with some piece of text and on the new page, it generates my table, but in another subsection.

So, I tried to add \newpage command just before the table and before the next subsection(RS-485), but it did not work.

Code: Select all

%%%%%%%%%%%%% RS-232 %%%%%%%%%%%%%
\newpage
\subsection{RS-232}
This board converts TIA/EIA-232-F inputs to 5-V TTL/CMOS levels. Both two channels on Max-232 are available. Also, two LEDs are connected to both channels in order to show whether transmit (LED is bright) or receive mode is selected. There are some pin headers connected to Max-232 which allow us to measure or monitor the signals on oscilloscope. We can either send the data from Max-232 to RS-232, or we can make a short circuit between RS-232 pin numbers 2 and 3 to perform a loop-back test with using the jumper. In addition, there are 4 pin headers which are connected to ground and distributed on the board, let someone to connect a component to the board.\\

\underline{Handshaking}: We are doing a handshake/flow control. This allows us:\\

\begin{enumerate}
 \item Our instrument could be stopped sending data by the computer, when the PC is not ready.
 \item Our instrument could prevent the PC from sending data when the instrument is not ready.
\end{enumerate}

\begin{figure}[htbp]
\begin{center}
\includegraphics[scale =0.5]{Sch_RS-232.png}
\caption{RS-232 Schematic Design}
\label{Sch_232}
\end{center}
\end{figure}

\newpage
\begin{table}[ht] 
\caption{Component list of RS-232 Board}
\centering
\begin{tabular}{c c c} % centered columns (4 columns) 
\hline\hline %inserts double horizontal lines 
Name & Description & Value \\ [0.5ex] % inserts table heading 
\hline % inserts single horizontal line 
IC3 & Max-232 & - \\
232-Vcc & Input voltage & 5V \\
232-GND & Ground input & 0V \\
RS-232 & RS-232 (SUB-D 9 Pin) Connector & - \\
C3 & Charge-Pump Capacitor & 1\textmu F \\
C4 & Charge-Pump Capacitor & 1\textmu F \\
C5 & Charge-Pump Capacitor & 1\textmu F \\
C6 & Charge-Pump Capacitor & 1\textmu F \\
C7 & Filter capacitor & 50μF \\
RLED1	 & Resistance for LED1 & 470\textOmega \\
RLED2 & Resistance for LED2 & 470\textOmega \\
LED1 & LED for first channel (Bright when transmitting) & - \\
LED2 & LED for second channel (Bright when transmitting) & - \\
JP2 & Jumper & - \\
MAX232-7 & Pin header for Max-232 pin no. 7 & - \\
MAX232-8 & Pin header for Max-232 pin no. 8 & - \\
MAX232-9 & Pin header for Max-232 pin no. 9 & - \\
MAX232-10 & Pin header for Max-232 pin no. 10 & - \\
MAX232-11 & Pin header for Max-232 pin no. 11 & - \\
MAX232-12 & Pin header for Max-232 pin no. 12 & - \\
232-GND1 & Additional pin header connected to ground & - \\
232-GND2 & Additional pin header connected to ground & - \\
232-GND3 & Additional pin header connected to ground & - \\
232-GND4 & Additional pin header connected to ground & - \\  [1ex] % [1ex] adds vertical space 
\hline %inserts single line 
\end{tabular} 
\label{table:Comp_232} % is used to refer this table in the text 
\end{table} 

%%%%%%%%%%%%% RS-485 %%%%%%%%%%%%%
\newpage
\subsection{RS-485}
We are using max-487 component for Rs-485 communication. Max-487 has one driver and one receiver, and also can transmit data up to 2.5 Mbps. It is designed for half-duplex applications, which means we cannot receive and transmit data at the same time. User can terminate the transmission line by using the jumper (JP3) which is connected to a 120\textOmega \ resistance. The user can also get connected to the board via a SUB-D connector, or can connect 3 cables to corresponding pin headers. A pull-up resistor is connected to Receive Output (RO) pin of Max-487. We connected a pull-up resistor to Receiver Output Enable (RE) pin, which makes RO high impedance when RE is high. There is a pull-down resistor connected to Driver Output Enable (DE) pin, in order to make driver outputs high impedance. Also, a pull-up resistor is connected to Max-487 pin no. 4, which is Driver Input (DI), to force output A high and output B low. Similarly to RS-232 board, there are some pin headers connected to Max-487 which let user to measure or monitor some signals on oscilloscope. If the user wants to connect a component to the board, this could be done by using one of 4 pin headers which are distributed on the board and connected to ground.\\
Thank you.
Baris

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Creating tables in a certain subsection

Post by Johannes_B »

To give a good and helful answer, a minimal working example would be helpful.

Just for now: a cleardoublepage or \floatbarrier provided by placeins might be helpful.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply