Include pre-built figures when \overleaftrue is set

This commit is contained in:
Andreas Tsouchlos 2024-01-08 14:00:54 +01:00
parent 3805d927bf
commit 2cab8aa178

View File

@ -27,7 +27,11 @@
\newif\ifoverleaf
%\overleaftrue
%\overleaftrue % When enabled, this option allows the document to be compiled
% on overleaf:
% - common.tex is sourced from a different directory
% - Externalization is disabled
% - Figures are included from pre-build PDFs
%
@ -362,6 +366,10 @@ decoded bits.%
\begin{figure}
\centering
\ifoverleaf
\includegraphics{figs/letter-figure0.pdf}
\else
\begin{tikzpicture}
\begin{axis}[
grid=both,
@ -369,7 +377,7 @@ decoded bits.%
ymode=log,
xmin=1, xmax=8,
ymax=1, ymin=1e-6,
% ytick={1e-0, 1e-2, 1e-4, 1e-6},
% ytick={1e-0, 1e-2, 1e-4, 1e-6},
width=\figwidth,
height=\figheight,
legend pos = south west,
@ -394,6 +402,7 @@ decoded bits.%
\addlegendentry{DFR}
\end{axis}
\end{tikzpicture}
\fi
\caption{FER, DFR, and BER for $\left( 3, 6 \right)$-regular LDPC code with
$n=204, k=102$ \cite[\text{204.33.484}]{mackay}.
@ -427,6 +436,9 @@ optimization process.%
\begin{figure}
\centering
\ifoverleaf
\includegraphics{figs/letter-figure1.pdf}
\else
\begin{tikzpicture}
\begin{axis}[xmin = -1.25, xmax=1.25,
ymin = -1.25, ymax=1.25,
@ -470,9 +482,13 @@ optimization process.%
};
\end{axis}
\end{tikzpicture}
\fi
\vspace{3mm}
\ifoverleaf
\includegraphics{figs/letter-figure2.pdf}
\else
\begin{tikzpicture}
\begin{axis}[xmin = -1.25, xmax=1.25,
ymin = -1.25, ymax=1.25,
@ -513,7 +529,7 @@ optimization process.%
\addlegendentry{$\nabla h\left(\tilde{\boldsymbol{x}}\right)$};
\end{axis}
\end{tikzpicture}
\fi
\caption{Gradients
$\nabla L\left(\boldsymbol{y} \mid \tilde{\boldsymbol{x}}\right)$
and $\nabla h \left( \tilde{\boldsymbol{x}} \right)$ for a repetition
@ -537,6 +553,9 @@ oscillate after a certain number of iterations.%
\begin{figure}
\centering
\ifoverleaf
\includegraphics{figs/letter-figure3.pdf}
\else
\begin{tikzpicture}
\begin{axis}[
grid=both,
@ -567,6 +586,7 @@ oscillate after a certain number of iterations.%
\addlegendentry{$\left(\nabla h\right)_1$}
\end{axis}
\end{tikzpicture}
\fi
\caption{Visualization of component $\left(\tilde{\boldsymbol{x}}\right)_1$
for a decoding operation for a (3,6) regular LDPC code with
@ -595,6 +615,9 @@ the probability that a given component was decoded incorrectly.%
\begin{figure}[H]
\centering
\ifoverleaf
\includegraphics{figs/letter-figure4.pdf}
\else
\begin{tikzpicture}
\begin{axis}[
grid=both,
@ -610,6 +633,7 @@ the probability that a given component was decoded incorrectly.%
table [col sep=comma, y=p_error]{res/p_error.csv};
\end{axis}
\end{tikzpicture}
\fi
\caption{Probability that a component of the estimated codeword
$\hat{\boldsymbol{c}}\in \mathbb{F}_2^n$ is erroneous for a (3,6) regular
@ -683,6 +707,9 @@ Again, these parameters were chosen,%
\begin{figure}
\centering
\ifoverleaf
\includegraphics{figs/letter-figure5.pdf}
\else
\begin{tikzpicture}
\begin{axis}[
grid=both,
@ -727,6 +754,7 @@ Again, these parameters were chosen,%
\addlegendentry{BER, improved};
\end{axis}
\end{tikzpicture}
\fi
\caption{FER and BER of proximal decoding \cite{proximal_paper} and the
improved algorithm for a $\left( 3, 6 \right)$-regular LDPC code with