latex


Maths
https://www.codecogs.com/latex/eqneditor.php

$\sum_{2}^{1}x$

or

\begin{equation*}
 \sum_{2}^{1}x
\end{equation*}

or

\begin{equation}
 \sum_{2}^{1}x
\end{equation}



Table:
https://www.tablesgenerator.com/ 



Tex studio language check spelling lib

Download this file:
https://drive.google.com/file/d/1PA6tS12_3FYayYXlAwGAvV4ijoa5sCcN/view?usp=sharing

  1. In TeXstudio preference, under Spell Checking Dictionary, change the directory to the folder you put your dictionary in
  2. reset TeXstudio.
  3. You are all set!



Figure:
%%%% %%%%%%%%%% figure %%%%%%
\begin{figure*}[t]
\begin{center}
\includegraphics[scale=0.74]{****.pdf}
\caption{cccccccccc}
\label{eeeeeee}
\end{center}
\end{figure*}


 %%%% %%%%%%%%%% Two-column style: three figures in row %%%%%%
 \begin{figure*}[!h]
     \centering
     \begin{minipage}{0.75\columnwidth}
         \includegraphics[width=1\linewidth,height=0.21\textheight]{fig1.pdf}
         \caption{fig1}
         \label{fig1}
     \end{minipage}
     \hfill
     \begin{minipage}{0.67\columnwidth}
         \includegraphics[width=1\linewidth,height=0.21\textheight]{fig2.pdf}
         \caption{fig2}
         \label{fig2}
     \end{minipage}
     \hfill
     \begin{minipage}{0.6\columnwidth}
         \includegraphics[width=1\linewidth,height=0.21\textheight]{fig3.pdf}
         \caption{fig3}
         \label{fig3}
     \end{minipage}
 \end{figure*}
 %%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 

 %%%% %%%%%%%%%% Two-column style: 3 sub-figures in row (two columns) %%%%%%
\begin{figure*}[ht]
    \centering
    \subcaptionbox{sub figure1}[.3\linewidth][c]{
        \includegraphics[width=.3\linewidth]{fig1.pdf}}
    \subcaptionbox{
sub figure2}[.3\linewidth][c]{
        \includegraphics[width=.3\linewidth]{fig2.pdf}}
    \subcaptionbox{
sub figure3}[.3\linewidth][c]{
        \includegraphics[width=.3\linewidth]{fig3.pdf}}
    \caption{fig}
    \label{fig}    
\end{figure*} 

 %%%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%



 %%%% %%%%%%%%%% Two-column style: 2 sub-figures in row (one column) %%%%%%

\begin{figure}[!h]
    \centering
    \subcaptionbox{fig1}[.48\linewidth][c]{%
        \includegraphics[width=.48\linewidth]{fig1.pdf}}\quad
    \subcaptionbox{fig2}[.48\linewidth][c]{%
        \includegraphics[width=.48\linewidth]{
fig2.pdf}}\quad
    \caption{fig}
    \label{kpss-trend}
\end{figure}





Matlab: generate figures


clc,clear,close all

y1 = randn(1,10);
y2 = randn(1,10);


plot(y1,'--*r', 'lineWidth', 1, 'MarkerSize',20)
hold on
plot(y2,'--ob', 'lineWidth', 1, 'MarkerSize',20)

ylabel('Random values')
legend(['y1'], ['y2'])
xlabel('id')
grid on
box on

set(gca, 'FontSize',32)

savefig('src.fig');
h1 =openfig('src.fig');
set(h1,'Units','Inches');
pos = get(h1,'Position');
set(h1,'PaperPositionMode','Auto','PaperUnits','Inches','PaperSize',[pos(3), pos(4)]);
saveas(h1,'src.pdf');




pbaspect([10 3 2])

set(gcf, 'Units', 'Normalized', 'OuterPosition', [0, 0.04, 1, 0.96]);



t1 = ['C1: Meent {    }'  ];

t2= ['C2: Log-normal {  }'];

t3= ' C3: Weibull';

legend_texts = {t1, t2, t3};

[lgd, icons, plots, txt] =  legend([h3,h1,h2], legend_texts ,'FontSize',28, 'Orientation','horizontal')


No comments: