Document Layout and Configuration
Section breaks are initiated by blank lines in the source file. To manage column layouts, utilize the multicol package or set the document class option to twocolumn. For specific page margins, the anysize package allows customizing top, bottom, left, and right spacing.
Mathematical Expression Syntax
Inline mathematics should be enclosed in single dollar signs $, while display equations use double dollar signs $$ or environments. Subscripts and superscripts are denoted by _ and ^, respectively. Complex subscripts must be wrapped in curly braces {} to maintain clarity.
% Inline variables
Value: $\mathit{x}_{sub}$ vs $x_{sub}$
\textit{$N$} indicates text within math mode for consistency.
Spacing commands include \quad for medium gaps and \qquad for wider separation. Line breaks within formulas require specific handling, often using \\ followed by spaces if indentation is needed.
Advanced Equation Alignment
For multi-line equations with alignment points, use the split environment inside equation. The align* environment provides automatic numbering control without explicit labels.
\begin{equation}\label{eq:simple}
\begin{split}
& \mathit{Var}_1 = 1 \\
& \mathit{Var}_2 = 2 \\
\end{split}
\end{equation}
To create unnumbered systems of equations, wrap an array environment in \left\{ and \right..
$$
\left\{
\begin{array}{c}
a_1 + b_1 = c_1 \\
a_2 + b_2 = c_2 \\
\end{array}
\right.
$$
Labels placed inside equation tags can sometimes cause issues during format conversion; ensure consistency when exporting documents.
Matrix and Vector Representation
Vectors use the \vec command. Matrices are constructed using matrix, bmatrix, or pmatrix environments. Large delimiters like parentheses should match the height of the content using \left( and \right).
\begin{equation}
U = \vec{R} + j\vec{N}
= \begin{bmatrix}
r_1 + jN_1 \\
r_2 + jN_2 \\
\vdots \\
\end{bmatrix}
\tag{15}
\end{equation}
Roman numerals are generated via \romannumeral macros (e.g., \uppercase{\romannumeral20}).
Image and Float Management
To force image placement at a specific location, load the float package and specify the [H] parameter. Images spanning both columns in two-column formats should use the figure* environment.
Subfigures allow multiple images on a single line using subcaption.
\begin{figure*}[ht]
\centering
\begin{subfigure}[b]{0.48\linewidth}
\includegraphics[width=\linewidth]{model_a.png}
\caption{Model A configuration}
\end{subfigure}
\hfill
\begin{subfigure}[b]{0.48\linewidth}
\includegraphics[width=\linewidth]{model_b.png}
\caption{Model B configuration}
\end{subfigure}
\end{figure*}
For landscape tables that occupy full width, wrap content in sidewaystable provided by the rotating package.
Table Construction Techniques
Basic tables rely on tabular within table floats. Column specifications define widths and alignments (|, p{}, c). Merging cells horizontally uses \multicolumn and vertically uses \multirow (requires multirow package).
When dealing with double-column layouts, use table* to span across both columns. Ensure float options like [!htbp] are applied correctly, though they may not function identically within star-ed environments.
\begin{table*}[htbp]
\centering
\caption{System Parameter Comparison}
\begin{tabular}{|c|p{3cm}|c|}
\hline
Index & Description & Value \\
\hline
1 & Node Count & 50 \\
2 & Frequency & 5GHz \\
\hline
\end{tabular}
\end{table*}
Diagonal cell headers can be achieved using the diagbox command.
Styling and Cross-References
Text formatting such as bold or color requires packages like color or xcolor. Custom colors are defined using RGB values [0,1]. Hyperlinks and references are managed via hyperref; ensure chapter linking targets are correctly defined.
\textcolor{red}{Important Warning}
\href{https://example.com}{External Link}
Custom environments simplify repetitive code blocks, such as defining a new theorem or specific calculation block using \newenvironment.