![테이블이 코드로 표시된 텍스트 지점에 위치하지 않습니다.](https://rvso.com/image/328819/%ED%85%8C%EC%9D%B4%EB%B8%94%EC%9D%B4%20%EC%BD%94%EB%93%9C%EB%A1%9C%20%ED%91%9C%EC%8B%9C%EB%90%9C%20%ED%85%8D%EC%8A%A4%ED%8A%B8%20%EC%A7%80%EC%A0%90%EC%97%90%20%EC%9C%84%EC%B9%98%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
저는 라텍스를 처음 접했습니다. 제가 논문을 쓰고 있는데 이런 상황이 생겼습니다.
texttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttexttext**:**
\begin{table}[h]
\begin{center}
\noindent\begin{tabular}{|c|c|c|}
\hline
\rowcolor{gray!50}
\bfseries Specifiche Tecniche & \bfseries Bluetooth BR & \bfseries Bletooth Low Energy \\
\hline
Frequenza & Tra $2400$ e $2483.5$ MHz & Tra $2400$ e $2483.5$ MHz \\
\hline
Data Channel & $79$ & $37$ \\
\hline
Advertising Channel & $32$ & $3$ \\
\hline
Criptaggio & $64/128 bit$ & AES $128$ bit \\
\hline
Range & $100$ m & $> 100$m \\
\hline
Throughput & $0.7-2.1$ Mbit/s & $< 0.3$ Mbit/s \\
\hline
Latenza di Connessione & $ \approx 100$ ms & $6$ ms \\
\hline
Tempo minimo di invio dati & $100$ ms & $3$ ms \\
\hline
Potenza di consumo & $1$ W & Tra $0.01$ a $0.5$ W \\
\hline
Picco di corrente & $22-40$ mA & $10-30$ mA \\
\hline
\end{tabular}
\caption[Differenze tra Bluetooth BR \& Bluetooth 4.0]{Differenze tra Bluetooth BR \& Bluetooth 4.0}
\label{tab:my_label}
\end{center}
\end{table} \\
othertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertextothertext.
문제는 컴파일러가 이 테이블을 다음 페이지의 시작 부분에 배치한다는 것입니다.
(PS: 영어가 서툴러서 죄송합니다)
답변1
테이블 형식 자료를 "부동"(LaTeX라는 단어 의미)하는 것을 원하지 않는 경우 와 같은 부동 환경에 넣지 마십시오 table
. LaTeX의 부동 소수점 배치 알고리즘을 사용하는 방법을 배우십시오. 대부분 매우 좋습니다. 꼭 필요한 경우 [h!]
위치 지정자를 제공하세요. 표가 여전히 페이지에 맞지 않으면 해당 페이지에 표를 넣을 공간이 충분하지 않은 것일 수 있습니다.
두 가지 추가 제안이 있습니다.
표 형식 자료에서 모든 수직선과 대부분의 수평선을 생략하고
booktabs
패키지의 선 그리기 매크로를 사용하여 나머지 수평선을 그립니다.패키지의
\num
및 매크로를 사용하여 각각 스칼라 숫자와 단위 숫자를 나타냅니다.\SI
siunitx
이러한 조정 결과는 다음 스크린샷에 표시됩니다.
\documentclass{article}
\usepackage{booktabs}
\usepackage[table]{xcolor}
\usepackage[binary-units,per-mode=symbol]{siunitx}
\usepackage[italian]{babel}
\begin{document}
\begin{table}[h!]
\renewcommand\arraystretch{1.1}
\setlength\tabcolsep{5pt} % default: 6pt
\centering % not '\begin{center}...\end{center}'
\begin{tabular}{lcc}
\rowcolor{gray!30}
\bfseries Specifiche Tecniche & \bfseries Bluetooth BR & \bfseries Bluetooth Low Energy \\
\addlinespace
Frequenza & \num{2400}--\SI{2483.5}{\mega\hertz} & \num{2400}--\SI{2483.5}{\mega\hertz} \\
Data Channel & 79 & 37 \\
Advertising Channel & 32 & 3 \\
Criptaggio & \SI{64/128}{\bit} & AES \SI{128}{\bit} \\
Range & \SI{100}{\meter} & ${}>\SI{100}{\meter}$ \\
Throughput & \num{0.7}--\SI{2.1}{\mega\bit\per\second} & ${}< 0.3$ Mbit/s \\
Latenza di Connessione & ${}\approx \SI{100}{\milli\second}$ & \SI{6}{\milli\second} \\
Tempo minimo di invio dati & \SI{100}{\milli\second} & \SI{3}{\milli\second} \\
Potenza di consumo & \SI{1}{\watt} & \num{0.01}--\SI{0.5}{\watt} \\
Picco di corrente & \num{22}--\SI{40}{\milli\ampere} & \num{10}--\SI{30}{\milli\ampere} \\
\bottomrule
\end{tabular}
\caption[Differenze tra Bluetooth BR e Bluetooth 4.0]{Differenze tra Bluetooth BR e Bluetooth 4.0}
\label{tab:my_label}
\end{table}
\end{document}
답변2
[해결] sharelatex 가이드님 덕분에https://it.sharelatex.com/learn/Positioning_images_and_tables- 섹션 포지셔닝 테이블 h 대신 매개변수 H를 사용했습니다! 미코가 제안한 것. 이를 위해 내 새 코드는 다음과 같습니다.
\begin{table}[H]
\centering
\begin{tabular}{|c|c|c|}
\hline
\rowcolor{gray!50}
\bfseries Specifiche Tecniche & \bfseries Bluetooth BR & \bfseries Bletooth Low Energy \\
\hline
Frequenza & Tra $2400$ e $2483.5$ MHz & Tra $2400$ e $2483.5$ MHz \\
\hline
Data Channel & $79$ & $37$ \\
\hline
Advertising Channel & $32$ & $3$ \\
\hline
Criptaggio & $64/128 bit$ & AES $128$ bit \\
\hline
Range & $100$ m & $> 100$m \\
\hline
Throughput & $0.7-2.1$ Mbit/s & $< 0.3$ Mbit/s \\
\hline
Latenza di Connessione & $ \approx 100$ ms & $6$ ms \\
\hline
Tempo minimo di invio dati & $100$ ms & $3$ ms \\
\hline
Potenza di consumo & $1$ W & Tra $0.01$ a $0.5$ W \\
\hline
Picco di corrente & $22-40$ mA & $10-30$ mA \\
\hline
\end{tabular}
\caption[Differenze tra Bluetooth BR \& Bluetooth 4.0]{Differenze tra Bluetooth BR \& Bluetooth 4.0}
\label{tab:my_label}
\end{table}
안부 인사와 모두 감사합니다