Aligning equations in IEEEtran
up vote
2
down vote
favorite
My output PDF should look like
Instead, it looks like
Can you help me? I'm showing just the second page, as the first page of my pdf and the reference pdf are identical. Here I show my code. Thanks in advance!
documentclass[a4paper, 10pt, conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{hyperref}
usepackage{amsmath}
usepackage[ruled,vlined]{algorithm2e}
SetKw{KwVar}{Variables:}
begin{document}
title{A Sample LaTeX Article}
author{Antonio Justicia Ruiz\Universidad de Málaga, Escuela de Ingenierías Industriales\29071-Málaga, Spain}
date{today}
maketitle
begin{abstract}
This a sample document that reviews some aspects of LaTeX to practice with them for a Master subjectfootnote{textit{"Escritura y Comunicación de Publicaciones de Investigación en Ingeniería"}}.
end{abstract}
section{Introduction}
LaTeX{} is a markup language designed and implemented by textbf{Leslie Lamport}, based on textbf{Donald E. Knuth’s} typesetting language TeX{}. The notation in the source file may appear somewhat challenging, but the compiled document is certainly a pleasing rendering of the text.
TeX{} comes with a set of fonts called Computer Modern (CM). Additional fonts designed for use in mathematics are provide by the American Mathematical Society (AMS). TeX{} is expandable, that is, additional commands can be defined in terms of more basic ones. One of the best known expansions of TeX{} is LaTeX{} (see Fig. ref{fig:example}. Add-on features for LATEX are known as packages. Dozens of these are pre-installed and can be used immediately.
An article is divided into textit{logical units}, including various sections and subsections, and a bibliography. This is specified by the document class. Once all the units have been typed, LaTeX{} controls the textit{placement} and textit{formating} of these elements. LaTeX{} automatically numbers the sections and equations in your article, and builds the cross-references. If any change is made to the article, it automatically renumbers its various parts and rebuilds the cross-references.
LaTeX{} commands, as a rule, start with a backslash (textbackslash). textit{Environments} are used to format blocks of text in a document. Each textit{comment} line begins with %. LaTeX{} will ignore everything on the line after the % character.
section{Examples}
subsection{Table}
Table ref{Tab:mydata} shows some common extensions related with LaTeX{} files.
begin{table}[h]
centering
caption{Common file extensions in LaTeX{}.} label{Tab:mydata}
begin{tabular}{c|l}
Extension & File \
hline
texttt{.tex} & input \
texttt{.pdf} & output\
texttt{.aux} & auxiliary\
texttt{.cls} & document class\
texttt{.bib} & references\
texttt{.bst} & bibliography style\
end{tabular}
end{table}
begin{figure}[b!]
centering % Center figure
includegraphics[width= 0.7columnwidth]{figure.pdf}
caption{LaTeX{} foundation.}
label{fig:example}
end{figure}
subsection{List}
The same information contained in ref{Tab:mydata} can be found in the following list:
begin{itemize}
item texttt{.text} is the input text file.
item texttt{.pdf} is the output file.
item texttt{.aux} refers to an auxiliary file for the compiler.
item texttt{.cls} defines a document class file.
item texttt{.bib} contains the references of the document.
item texttt{.bst} defines the style for the biography.end{itemize}
subsection{References}
Next, some examples on how to cite works from a journal cite{Rieger:2010}, a conference cite{Scaramuzza:2007}, a book cite{Thrun:2005}, a chapter of a book cite{Ollero:1997} and a web page cite{IAIS:2013} can be found.
section*{Acknowledgements}
This work was not supported by any research project.
bibliographystyle{IEEEtran}
bibliography{BIBLIOGRAFIA.bib}
section*{Appendix}
begin{equation} label{eq:1}
(sI-A)^{-1}=frac{textrm{adjoint(}sI-Atextrm{)}}{lvert sI-A rvert} Rightarrow G(s)=frac{C,textrm{adjoint(}sI-Atextrm{)}B+Dlvert sI-A rvert}{lvert sI-A rvert}end{equation}
This appendix presents equations eqref{eq:1} to eqref{eq:6} and the algorithm ref{alg:1}.
begin{equation} label{eq:2} left( begin{array}{ccc}
G_{11}(s) & cdots & G_{1p}(s)\
vdots & ddots & vdots\
G_{m1}(s) & cdots & G_{mp}(s)
end{array} right) left( begin{array}{c}
U_{1}(s)\
vdots\
U_{p}(s)
end{array} right), end{equation}
begin{equation} label{eq:3}
x(t)=e^{At}x(0)+e^{At}int_0^1 e^{-Atau},B,u,(tau),dtau,
end{equation}
begin{equation} label{eq:4}
x(k+1)=x(k)Rightarrow begin{cases}
x_{1e}=-0.116r,\
x_{2e}=y_{e}=0.142r, end{cases}
end{equation}
begin{equation} label{eq:5}
(sI-A)^{-1}=frac{sumlimits_{i=0}^{n-1}(A_is^i)}{P_{alpha}(s)},
end{equation}
begin{align} label{eq:6}
E[v(t_{1})v^{T}(t_2)]=Rdelta(t_1,t_2),&quad E[v(t_{1})w^{T}(t_2)]=0, nonumber \
E[w(t_{1})w^{T}(t_2)]=Qdelta(t_1,t_2),&quad E[w(t_{1})v^{T}(t_2)]=0,
end{align}
begin{algorithm} label{alg:1}
% SetAlgoLined
DontPrintSemicolon
KwIn{$L, sigma$}
KwVar{$M, I, R$}\
Initialize $M leftarrow -1 $ % Matrix of size $i^{max}_xcdot i^{max}_y$\
$Rleftarrow{} %$ List of removed cubes\
Sort List $L$ in increasing order of indices $I$\
Access to the first index $I$ of $L$.\
Repeat{I==NULL;}{
$(i_x,i_y,y_zt)leftarrow I$;\
If{$M(i_x,i_y)=-1$}{
$M(i_x,i_y)=i_z$;
}
ElseIf{$(i_z-M(i_x,i_y))geqsigma$}{
$Rleftarrow{R,I} %$ Let the cube collapse;
Else{}{
$M(i_x,i_y)=i_z$;
}
}
Access to the next index $I$ of $L$
}
KwResult{Sorted list $R$ with cubes from overhangs}
caption{The collapsible cubes algorithm}
end{algorithm}
end{document}
formatting ieeetran
New contributor
add a comment |
up vote
2
down vote
favorite
My output PDF should look like
Instead, it looks like
Can you help me? I'm showing just the second page, as the first page of my pdf and the reference pdf are identical. Here I show my code. Thanks in advance!
documentclass[a4paper, 10pt, conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{hyperref}
usepackage{amsmath}
usepackage[ruled,vlined]{algorithm2e}
SetKw{KwVar}{Variables:}
begin{document}
title{A Sample LaTeX Article}
author{Antonio Justicia Ruiz\Universidad de Málaga, Escuela de Ingenierías Industriales\29071-Málaga, Spain}
date{today}
maketitle
begin{abstract}
This a sample document that reviews some aspects of LaTeX to practice with them for a Master subjectfootnote{textit{"Escritura y Comunicación de Publicaciones de Investigación en Ingeniería"}}.
end{abstract}
section{Introduction}
LaTeX{} is a markup language designed and implemented by textbf{Leslie Lamport}, based on textbf{Donald E. Knuth’s} typesetting language TeX{}. The notation in the source file may appear somewhat challenging, but the compiled document is certainly a pleasing rendering of the text.
TeX{} comes with a set of fonts called Computer Modern (CM). Additional fonts designed for use in mathematics are provide by the American Mathematical Society (AMS). TeX{} is expandable, that is, additional commands can be defined in terms of more basic ones. One of the best known expansions of TeX{} is LaTeX{} (see Fig. ref{fig:example}. Add-on features for LATEX are known as packages. Dozens of these are pre-installed and can be used immediately.
An article is divided into textit{logical units}, including various sections and subsections, and a bibliography. This is specified by the document class. Once all the units have been typed, LaTeX{} controls the textit{placement} and textit{formating} of these elements. LaTeX{} automatically numbers the sections and equations in your article, and builds the cross-references. If any change is made to the article, it automatically renumbers its various parts and rebuilds the cross-references.
LaTeX{} commands, as a rule, start with a backslash (textbackslash). textit{Environments} are used to format blocks of text in a document. Each textit{comment} line begins with %. LaTeX{} will ignore everything on the line after the % character.
section{Examples}
subsection{Table}
Table ref{Tab:mydata} shows some common extensions related with LaTeX{} files.
begin{table}[h]
centering
caption{Common file extensions in LaTeX{}.} label{Tab:mydata}
begin{tabular}{c|l}
Extension & File \
hline
texttt{.tex} & input \
texttt{.pdf} & output\
texttt{.aux} & auxiliary\
texttt{.cls} & document class\
texttt{.bib} & references\
texttt{.bst} & bibliography style\
end{tabular}
end{table}
begin{figure}[b!]
centering % Center figure
includegraphics[width= 0.7columnwidth]{figure.pdf}
caption{LaTeX{} foundation.}
label{fig:example}
end{figure}
subsection{List}
The same information contained in ref{Tab:mydata} can be found in the following list:
begin{itemize}
item texttt{.text} is the input text file.
item texttt{.pdf} is the output file.
item texttt{.aux} refers to an auxiliary file for the compiler.
item texttt{.cls} defines a document class file.
item texttt{.bib} contains the references of the document.
item texttt{.bst} defines the style for the biography.end{itemize}
subsection{References}
Next, some examples on how to cite works from a journal cite{Rieger:2010}, a conference cite{Scaramuzza:2007}, a book cite{Thrun:2005}, a chapter of a book cite{Ollero:1997} and a web page cite{IAIS:2013} can be found.
section*{Acknowledgements}
This work was not supported by any research project.
bibliographystyle{IEEEtran}
bibliography{BIBLIOGRAFIA.bib}
section*{Appendix}
begin{equation} label{eq:1}
(sI-A)^{-1}=frac{textrm{adjoint(}sI-Atextrm{)}}{lvert sI-A rvert} Rightarrow G(s)=frac{C,textrm{adjoint(}sI-Atextrm{)}B+Dlvert sI-A rvert}{lvert sI-A rvert}end{equation}
This appendix presents equations eqref{eq:1} to eqref{eq:6} and the algorithm ref{alg:1}.
begin{equation} label{eq:2} left( begin{array}{ccc}
G_{11}(s) & cdots & G_{1p}(s)\
vdots & ddots & vdots\
G_{m1}(s) & cdots & G_{mp}(s)
end{array} right) left( begin{array}{c}
U_{1}(s)\
vdots\
U_{p}(s)
end{array} right), end{equation}
begin{equation} label{eq:3}
x(t)=e^{At}x(0)+e^{At}int_0^1 e^{-Atau},B,u,(tau),dtau,
end{equation}
begin{equation} label{eq:4}
x(k+1)=x(k)Rightarrow begin{cases}
x_{1e}=-0.116r,\
x_{2e}=y_{e}=0.142r, end{cases}
end{equation}
begin{equation} label{eq:5}
(sI-A)^{-1}=frac{sumlimits_{i=0}^{n-1}(A_is^i)}{P_{alpha}(s)},
end{equation}
begin{align} label{eq:6}
E[v(t_{1})v^{T}(t_2)]=Rdelta(t_1,t_2),&quad E[v(t_{1})w^{T}(t_2)]=0, nonumber \
E[w(t_{1})w^{T}(t_2)]=Qdelta(t_1,t_2),&quad E[w(t_{1})v^{T}(t_2)]=0,
end{align}
begin{algorithm} label{alg:1}
% SetAlgoLined
DontPrintSemicolon
KwIn{$L, sigma$}
KwVar{$M, I, R$}\
Initialize $M leftarrow -1 $ % Matrix of size $i^{max}_xcdot i^{max}_y$\
$Rleftarrow{} %$ List of removed cubes\
Sort List $L$ in increasing order of indices $I$\
Access to the first index $I$ of $L$.\
Repeat{I==NULL;}{
$(i_x,i_y,y_zt)leftarrow I$;\
If{$M(i_x,i_y)=-1$}{
$M(i_x,i_y)=i_z$;
}
ElseIf{$(i_z-M(i_x,i_y))geqsigma$}{
$Rleftarrow{R,I} %$ Let the cube collapse;
Else{}{
$M(i_x,i_y)=i_z$;
}
}
Access to the next index $I$ of $L$
}
KwResult{Sorted list $R$ with cubes from overhangs}
caption{The collapsible cubes algorithm}
end{algorithm}
end{document}
formatting ieeetran
New contributor
1
Welcome to TeX.SE.
– Mico
10 hours ago
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
My output PDF should look like
Instead, it looks like
Can you help me? I'm showing just the second page, as the first page of my pdf and the reference pdf are identical. Here I show my code. Thanks in advance!
documentclass[a4paper, 10pt, conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{hyperref}
usepackage{amsmath}
usepackage[ruled,vlined]{algorithm2e}
SetKw{KwVar}{Variables:}
begin{document}
title{A Sample LaTeX Article}
author{Antonio Justicia Ruiz\Universidad de Málaga, Escuela de Ingenierías Industriales\29071-Málaga, Spain}
date{today}
maketitle
begin{abstract}
This a sample document that reviews some aspects of LaTeX to practice with them for a Master subjectfootnote{textit{"Escritura y Comunicación de Publicaciones de Investigación en Ingeniería"}}.
end{abstract}
section{Introduction}
LaTeX{} is a markup language designed and implemented by textbf{Leslie Lamport}, based on textbf{Donald E. Knuth’s} typesetting language TeX{}. The notation in the source file may appear somewhat challenging, but the compiled document is certainly a pleasing rendering of the text.
TeX{} comes with a set of fonts called Computer Modern (CM). Additional fonts designed for use in mathematics are provide by the American Mathematical Society (AMS). TeX{} is expandable, that is, additional commands can be defined in terms of more basic ones. One of the best known expansions of TeX{} is LaTeX{} (see Fig. ref{fig:example}. Add-on features for LATEX are known as packages. Dozens of these are pre-installed and can be used immediately.
An article is divided into textit{logical units}, including various sections and subsections, and a bibliography. This is specified by the document class. Once all the units have been typed, LaTeX{} controls the textit{placement} and textit{formating} of these elements. LaTeX{} automatically numbers the sections and equations in your article, and builds the cross-references. If any change is made to the article, it automatically renumbers its various parts and rebuilds the cross-references.
LaTeX{} commands, as a rule, start with a backslash (textbackslash). textit{Environments} are used to format blocks of text in a document. Each textit{comment} line begins with %. LaTeX{} will ignore everything on the line after the % character.
section{Examples}
subsection{Table}
Table ref{Tab:mydata} shows some common extensions related with LaTeX{} files.
begin{table}[h]
centering
caption{Common file extensions in LaTeX{}.} label{Tab:mydata}
begin{tabular}{c|l}
Extension & File \
hline
texttt{.tex} & input \
texttt{.pdf} & output\
texttt{.aux} & auxiliary\
texttt{.cls} & document class\
texttt{.bib} & references\
texttt{.bst} & bibliography style\
end{tabular}
end{table}
begin{figure}[b!]
centering % Center figure
includegraphics[width= 0.7columnwidth]{figure.pdf}
caption{LaTeX{} foundation.}
label{fig:example}
end{figure}
subsection{List}
The same information contained in ref{Tab:mydata} can be found in the following list:
begin{itemize}
item texttt{.text} is the input text file.
item texttt{.pdf} is the output file.
item texttt{.aux} refers to an auxiliary file for the compiler.
item texttt{.cls} defines a document class file.
item texttt{.bib} contains the references of the document.
item texttt{.bst} defines the style for the biography.end{itemize}
subsection{References}
Next, some examples on how to cite works from a journal cite{Rieger:2010}, a conference cite{Scaramuzza:2007}, a book cite{Thrun:2005}, a chapter of a book cite{Ollero:1997} and a web page cite{IAIS:2013} can be found.
section*{Acknowledgements}
This work was not supported by any research project.
bibliographystyle{IEEEtran}
bibliography{BIBLIOGRAFIA.bib}
section*{Appendix}
begin{equation} label{eq:1}
(sI-A)^{-1}=frac{textrm{adjoint(}sI-Atextrm{)}}{lvert sI-A rvert} Rightarrow G(s)=frac{C,textrm{adjoint(}sI-Atextrm{)}B+Dlvert sI-A rvert}{lvert sI-A rvert}end{equation}
This appendix presents equations eqref{eq:1} to eqref{eq:6} and the algorithm ref{alg:1}.
begin{equation} label{eq:2} left( begin{array}{ccc}
G_{11}(s) & cdots & G_{1p}(s)\
vdots & ddots & vdots\
G_{m1}(s) & cdots & G_{mp}(s)
end{array} right) left( begin{array}{c}
U_{1}(s)\
vdots\
U_{p}(s)
end{array} right), end{equation}
begin{equation} label{eq:3}
x(t)=e^{At}x(0)+e^{At}int_0^1 e^{-Atau},B,u,(tau),dtau,
end{equation}
begin{equation} label{eq:4}
x(k+1)=x(k)Rightarrow begin{cases}
x_{1e}=-0.116r,\
x_{2e}=y_{e}=0.142r, end{cases}
end{equation}
begin{equation} label{eq:5}
(sI-A)^{-1}=frac{sumlimits_{i=0}^{n-1}(A_is^i)}{P_{alpha}(s)},
end{equation}
begin{align} label{eq:6}
E[v(t_{1})v^{T}(t_2)]=Rdelta(t_1,t_2),&quad E[v(t_{1})w^{T}(t_2)]=0, nonumber \
E[w(t_{1})w^{T}(t_2)]=Qdelta(t_1,t_2),&quad E[w(t_{1})v^{T}(t_2)]=0,
end{align}
begin{algorithm} label{alg:1}
% SetAlgoLined
DontPrintSemicolon
KwIn{$L, sigma$}
KwVar{$M, I, R$}\
Initialize $M leftarrow -1 $ % Matrix of size $i^{max}_xcdot i^{max}_y$\
$Rleftarrow{} %$ List of removed cubes\
Sort List $L$ in increasing order of indices $I$\
Access to the first index $I$ of $L$.\
Repeat{I==NULL;}{
$(i_x,i_y,y_zt)leftarrow I$;\
If{$M(i_x,i_y)=-1$}{
$M(i_x,i_y)=i_z$;
}
ElseIf{$(i_z-M(i_x,i_y))geqsigma$}{
$Rleftarrow{R,I} %$ Let the cube collapse;
Else{}{
$M(i_x,i_y)=i_z$;
}
}
Access to the next index $I$ of $L$
}
KwResult{Sorted list $R$ with cubes from overhangs}
caption{The collapsible cubes algorithm}
end{algorithm}
end{document}
formatting ieeetran
New contributor
My output PDF should look like
Instead, it looks like
Can you help me? I'm showing just the second page, as the first page of my pdf and the reference pdf are identical. Here I show my code. Thanks in advance!
documentclass[a4paper, 10pt, conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{hyperref}
usepackage{amsmath}
usepackage[ruled,vlined]{algorithm2e}
SetKw{KwVar}{Variables:}
begin{document}
title{A Sample LaTeX Article}
author{Antonio Justicia Ruiz\Universidad de Málaga, Escuela de Ingenierías Industriales\29071-Málaga, Spain}
date{today}
maketitle
begin{abstract}
This a sample document that reviews some aspects of LaTeX to practice with them for a Master subjectfootnote{textit{"Escritura y Comunicación de Publicaciones de Investigación en Ingeniería"}}.
end{abstract}
section{Introduction}
LaTeX{} is a markup language designed and implemented by textbf{Leslie Lamport}, based on textbf{Donald E. Knuth’s} typesetting language TeX{}. The notation in the source file may appear somewhat challenging, but the compiled document is certainly a pleasing rendering of the text.
TeX{} comes with a set of fonts called Computer Modern (CM). Additional fonts designed for use in mathematics are provide by the American Mathematical Society (AMS). TeX{} is expandable, that is, additional commands can be defined in terms of more basic ones. One of the best known expansions of TeX{} is LaTeX{} (see Fig. ref{fig:example}. Add-on features for LATEX are known as packages. Dozens of these are pre-installed and can be used immediately.
An article is divided into textit{logical units}, including various sections and subsections, and a bibliography. This is specified by the document class. Once all the units have been typed, LaTeX{} controls the textit{placement} and textit{formating} of these elements. LaTeX{} automatically numbers the sections and equations in your article, and builds the cross-references. If any change is made to the article, it automatically renumbers its various parts and rebuilds the cross-references.
LaTeX{} commands, as a rule, start with a backslash (textbackslash). textit{Environments} are used to format blocks of text in a document. Each textit{comment} line begins with %. LaTeX{} will ignore everything on the line after the % character.
section{Examples}
subsection{Table}
Table ref{Tab:mydata} shows some common extensions related with LaTeX{} files.
begin{table}[h]
centering
caption{Common file extensions in LaTeX{}.} label{Tab:mydata}
begin{tabular}{c|l}
Extension & File \
hline
texttt{.tex} & input \
texttt{.pdf} & output\
texttt{.aux} & auxiliary\
texttt{.cls} & document class\
texttt{.bib} & references\
texttt{.bst} & bibliography style\
end{tabular}
end{table}
begin{figure}[b!]
centering % Center figure
includegraphics[width= 0.7columnwidth]{figure.pdf}
caption{LaTeX{} foundation.}
label{fig:example}
end{figure}
subsection{List}
The same information contained in ref{Tab:mydata} can be found in the following list:
begin{itemize}
item texttt{.text} is the input text file.
item texttt{.pdf} is the output file.
item texttt{.aux} refers to an auxiliary file for the compiler.
item texttt{.cls} defines a document class file.
item texttt{.bib} contains the references of the document.
item texttt{.bst} defines the style for the biography.end{itemize}
subsection{References}
Next, some examples on how to cite works from a journal cite{Rieger:2010}, a conference cite{Scaramuzza:2007}, a book cite{Thrun:2005}, a chapter of a book cite{Ollero:1997} and a web page cite{IAIS:2013} can be found.
section*{Acknowledgements}
This work was not supported by any research project.
bibliographystyle{IEEEtran}
bibliography{BIBLIOGRAFIA.bib}
section*{Appendix}
begin{equation} label{eq:1}
(sI-A)^{-1}=frac{textrm{adjoint(}sI-Atextrm{)}}{lvert sI-A rvert} Rightarrow G(s)=frac{C,textrm{adjoint(}sI-Atextrm{)}B+Dlvert sI-A rvert}{lvert sI-A rvert}end{equation}
This appendix presents equations eqref{eq:1} to eqref{eq:6} and the algorithm ref{alg:1}.
begin{equation} label{eq:2} left( begin{array}{ccc}
G_{11}(s) & cdots & G_{1p}(s)\
vdots & ddots & vdots\
G_{m1}(s) & cdots & G_{mp}(s)
end{array} right) left( begin{array}{c}
U_{1}(s)\
vdots\
U_{p}(s)
end{array} right), end{equation}
begin{equation} label{eq:3}
x(t)=e^{At}x(0)+e^{At}int_0^1 e^{-Atau},B,u,(tau),dtau,
end{equation}
begin{equation} label{eq:4}
x(k+1)=x(k)Rightarrow begin{cases}
x_{1e}=-0.116r,\
x_{2e}=y_{e}=0.142r, end{cases}
end{equation}
begin{equation} label{eq:5}
(sI-A)^{-1}=frac{sumlimits_{i=0}^{n-1}(A_is^i)}{P_{alpha}(s)},
end{equation}
begin{align} label{eq:6}
E[v(t_{1})v^{T}(t_2)]=Rdelta(t_1,t_2),&quad E[v(t_{1})w^{T}(t_2)]=0, nonumber \
E[w(t_{1})w^{T}(t_2)]=Qdelta(t_1,t_2),&quad E[w(t_{1})v^{T}(t_2)]=0,
end{align}
begin{algorithm} label{alg:1}
% SetAlgoLined
DontPrintSemicolon
KwIn{$L, sigma$}
KwVar{$M, I, R$}\
Initialize $M leftarrow -1 $ % Matrix of size $i^{max}_xcdot i^{max}_y$\
$Rleftarrow{} %$ List of removed cubes\
Sort List $L$ in increasing order of indices $I$\
Access to the first index $I$ of $L$.\
Repeat{I==NULL;}{
$(i_x,i_y,y_zt)leftarrow I$;\
If{$M(i_x,i_y)=-1$}{
$M(i_x,i_y)=i_z$;
}
ElseIf{$(i_z-M(i_x,i_y))geqsigma$}{
$Rleftarrow{R,I} %$ Let the cube collapse;
Else{}{
$M(i_x,i_y)=i_z$;
}
}
Access to the next index $I$ of $L$
}
KwResult{Sorted list $R$ with cubes from overhangs}
caption{The collapsible cubes algorithm}
end{algorithm}
end{document}
formatting ieeetran
formatting ieeetran
New contributor
New contributor
edited 17 mins ago
siracusa
4,92511228
4,92511228
New contributor
asked 10 hours ago
AntonioJR
111
111
New contributor
New contributor
1
Welcome to TeX.SE.
– Mico
10 hours ago
add a comment |
1
Welcome to TeX.SE.
– Mico
10 hours ago
1
1
Welcome to TeX.SE.
– Mico
10 hours ago
Welcome to TeX.SE.
– Mico
10 hours ago
add a comment |
2 Answers
2
active
oldest
votes
up vote
0
down vote
Your document uses a two-column layout. I'm afraid I don't understand why the equation should span both columns. I'd use a gathered
environment to introduce a line-break, to allow the material to fit inside one column.
documentclass[a4paper,10pt,conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathtools}
DeclareMathOperator{adjoint}{adjoint}
DeclarePairedDelimiter{abs}{lvert}{rvert}
begin{document}
hrule % just to illustrate width of textblock
section*{Appendix}
begin{equation} label{eq:1}
begin{gathered}
(sI-A)^{-1}=frac{adjoint(sI-A)}{abs{sI-A}} \
Rightarrow G(s)=frac{Cadjoint(sI-A)B+Dabs{sI-A}}{abs{sI-A}}
end{gathered}
end{equation}
hrule % just to illustrate width of textblock
end{document}
add a comment |
up vote
0
down vote
Perhaps, the following two packages may help you. The strip
environment from the cuted
package allows you to write the formula in two columns. And the flushend
package will allow you to balance the columns so that the algorithm is placed in the second column.
documentclass[a4paper, 10pt, conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{hyperref}
usepackage{amsmath}
usepackage[ruled,vlined]{algorithm2e}
usepackage{cuted}
usepackage{flushend}
SetKw{KwVar}{Variables:}
begin{document}
title{A Sample LaTeX Article}
author{Antonio Justicia Ruiz\Universidad de Málaga, Escuela de Ingenierías Industriales\29071-Málaga, Spain}
date{today}
maketitle
begin{abstract}
This a sample document that reviews some aspects of LaTeX to practice with them for a Master subjectfootnote{textit{"Escritura y Comunicación de Publicaciones de Investigación en Ingeniería"}}.
end{abstract}
section{Introduction}
LaTeX{} is a markup language designed and implemented by textbf{Leslie Lamport}, based on textbf{Donald E. Knuth’s} typesetting language TeX{}. The notation in the source file may appear somewhat challenging, but the compiled document is certainly a pleasing rendering of the text.
TeX{} comes with a set of fonts called Computer Modern (CM). Additional fonts designed for use in mathematics are provide by the American Mathematical Society (AMS). TeX{} is expandable, that is, additional commands can be defined in terms of more basic ones. One of the best known expansions of TeX{} is LaTeX{} (see Fig. ref{fig:example}. Add-on features for LATEX are known as packages. Dozens of these are pre-installed and can be used immediately.
An article is divided into textit{logical units}, including various sections and subsections, and a bibliography. This is specified by the document class. Once all the units have been typed, LaTeX{} controls the textit{placement} and textit{formating} of these elements. LaTeX{} automatically numbers the sections and equations in your article, and builds the cross-references. If any change is made to the article, it automatically renumbers its various parts and rebuilds the cross-references.
LaTeX{} commands, as a rule, start with a backslash (textbackslash). textit{Environments} are used to format blocks of text in a document. Each textit{comment} line begins with %. LaTeX{} will ignore everything on the line after the % character.
section{Examples}
subsection{Table}
Table ref{Tab:mydata} shows some common extensions related with LaTeX{} files.
begin{table}[h]
centering
caption{Common file extensions in LaTeX{}.} label{Tab:mydata}
begin{tabular}{c|l}
Extension & File \
hline
texttt{.tex} & input \
texttt{.pdf} & output\
texttt{.aux} & auxiliary\
texttt{.cls} & document class\
texttt{.bib} & references\
texttt{.bst} & bibliography style\
end{tabular}
end{table}
begin{figure}[b!]
centering % Center figure
%includegraphics[width= 0.7columnwidth]{figure.pdf}
caption{LaTeX{} foundation.}
label{fig:example}
end{figure}
subsection{List}
The same information contained in ref{Tab:mydata} can be found in the following list:
begin{itemize}
item texttt{.text} is the input text file.
item texttt{.pdf} is the output file.
item texttt{.aux} refers to an auxiliary file for the compiler.
item texttt{.cls} defines a document class file.
item texttt{.bib} contains the references of the document.
item texttt{.bst} defines the style for the biography.end{itemize}
subsection{References}
Next, some examples on how to cite works from a journal cite{Rieger:2010}, a conference cite{Scaramuzza:2007}, a book cite{Thrun:2005}, a chapter of a book cite{Ollero:1997} and a web page cite{IAIS:2013} can be found.
section*{Acknowledgements}
This work was not supported by any research project.
bibliographystyle{IEEEtran}
%bibliography{BIBLIOGRAFIA.bib}
pagebreak
begin{strip}
begin{equation} label{eq:1}
(sI-A)^{-1}=frac{textrm{adjoint(}sI-Atextrm{)}}{lvert sI-A rvert} Rightarrow G(s)=frac{C,textrm{adjoint(}sI-Atextrm{)}B+Dlvert sI-A rvert}{lvert sI-A rvert}
end{equation}
end{strip}
section*{Appendix}
This appendix presents equations eqref{eq:1} to eqref{eq:6} and the algorithm ref{alg:1}.
begin{equation} label{eq:2} left( begin{array}{ccc}
G_{11}(s) & cdots & G_{1p}(s)\
vdots & ddots & vdots\
G_{m1}(s) & cdots & G_{mp}(s)
end{array} right) left( begin{array}{c}
U_{1}(s)\
vdots\
U_{p}(s)
end{array} right), end{equation}
begin{equation} label{eq:3}
x(t)=e^{At}x(0)+e^{At}int_0^1 e^{-Atau},B,u,(tau),dtau,
end{equation}
begin{equation} label{eq:4}
x(k+1)=x(k)Rightarrow begin{cases}
x_{1e}=-0.116r,\
x_{2e}=y_{e}=0.142r, end{cases}
end{equation}
begin{equation} label{eq:5}
(sI-A)^{-1}=frac{sumlimits_{i=0}^{n-1}(A_is^i)}{P_{alpha}(s)},
end{equation}
begin{align} label{eq:6}
E[v(t_{1})v^{T}(t_2)]=Rdelta(t_1,t_2),&quad E[v(t_{1})w^{T}(t_2)]=0, nonumber \
E[w(t_{1})w^{T}(t_2)]=Qdelta(t_1,t_2),&quad E[w(t_{1})v^{T}(t_2)]=0,
end{align}
break
begin{algorithm} label{alg:1}
% SetAlgoLined
DontPrintSemicolon
KwIn{$L, sigma$}
KwVar{$M, I, R$}\
Initialize $M leftarrow -1 $ % Matrix of size $i^{max}_xcdot i^{max}_y$\
$Rleftarrow{} %$ List of removed cubes\
Sort List $L$ in increasing order of indices $I$\
Access to the first index $I$ of $L$.\
Repeat{I==NULL;}{
$(i_x,i_y,y_zt)leftarrow I$;\
If{$M(i_x,i_y)=-1$}{
$M(i_x,i_y)=i_z$;
}
ElseIf{$(i_z-M(i_x,i_y))geqsigma$}{
$Rleftarrow{R,I} %$ Let the cube collapse;
Else{}{
$M(i_x,i_y)=i_z$;
}
}
Access to the next index $I$ of $L$
}
KwResult{Sorted list $R$ with cubes from overhangs}
caption{The collapsible cubes algorithm}
end{algorithm}
end{document}
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
AntonioJR is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464888%2faligning-equations-in-ieeetran%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Your document uses a two-column layout. I'm afraid I don't understand why the equation should span both columns. I'd use a gathered
environment to introduce a line-break, to allow the material to fit inside one column.
documentclass[a4paper,10pt,conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathtools}
DeclareMathOperator{adjoint}{adjoint}
DeclarePairedDelimiter{abs}{lvert}{rvert}
begin{document}
hrule % just to illustrate width of textblock
section*{Appendix}
begin{equation} label{eq:1}
begin{gathered}
(sI-A)^{-1}=frac{adjoint(sI-A)}{abs{sI-A}} \
Rightarrow G(s)=frac{Cadjoint(sI-A)B+Dabs{sI-A}}{abs{sI-A}}
end{gathered}
end{equation}
hrule % just to illustrate width of textblock
end{document}
add a comment |
up vote
0
down vote
Your document uses a two-column layout. I'm afraid I don't understand why the equation should span both columns. I'd use a gathered
environment to introduce a line-break, to allow the material to fit inside one column.
documentclass[a4paper,10pt,conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathtools}
DeclareMathOperator{adjoint}{adjoint}
DeclarePairedDelimiter{abs}{lvert}{rvert}
begin{document}
hrule % just to illustrate width of textblock
section*{Appendix}
begin{equation} label{eq:1}
begin{gathered}
(sI-A)^{-1}=frac{adjoint(sI-A)}{abs{sI-A}} \
Rightarrow G(s)=frac{Cadjoint(sI-A)B+Dabs{sI-A}}{abs{sI-A}}
end{gathered}
end{equation}
hrule % just to illustrate width of textblock
end{document}
add a comment |
up vote
0
down vote
up vote
0
down vote
Your document uses a two-column layout. I'm afraid I don't understand why the equation should span both columns. I'd use a gathered
environment to introduce a line-break, to allow the material to fit inside one column.
documentclass[a4paper,10pt,conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathtools}
DeclareMathOperator{adjoint}{adjoint}
DeclarePairedDelimiter{abs}{lvert}{rvert}
begin{document}
hrule % just to illustrate width of textblock
section*{Appendix}
begin{equation} label{eq:1}
begin{gathered}
(sI-A)^{-1}=frac{adjoint(sI-A)}{abs{sI-A}} \
Rightarrow G(s)=frac{Cadjoint(sI-A)B+Dabs{sI-A}}{abs{sI-A}}
end{gathered}
end{equation}
hrule % just to illustrate width of textblock
end{document}
Your document uses a two-column layout. I'm afraid I don't understand why the equation should span both columns. I'd use a gathered
environment to introduce a line-break, to allow the material to fit inside one column.
documentclass[a4paper,10pt,conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{mathtools}
DeclareMathOperator{adjoint}{adjoint}
DeclarePairedDelimiter{abs}{lvert}{rvert}
begin{document}
hrule % just to illustrate width of textblock
section*{Appendix}
begin{equation} label{eq:1}
begin{gathered}
(sI-A)^{-1}=frac{adjoint(sI-A)}{abs{sI-A}} \
Rightarrow G(s)=frac{Cadjoint(sI-A)B+Dabs{sI-A}}{abs{sI-A}}
end{gathered}
end{equation}
hrule % just to illustrate width of textblock
end{document}
answered 10 hours ago
Mico
272k30369756
272k30369756
add a comment |
add a comment |
up vote
0
down vote
Perhaps, the following two packages may help you. The strip
environment from the cuted
package allows you to write the formula in two columns. And the flushend
package will allow you to balance the columns so that the algorithm is placed in the second column.
documentclass[a4paper, 10pt, conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{hyperref}
usepackage{amsmath}
usepackage[ruled,vlined]{algorithm2e}
usepackage{cuted}
usepackage{flushend}
SetKw{KwVar}{Variables:}
begin{document}
title{A Sample LaTeX Article}
author{Antonio Justicia Ruiz\Universidad de Málaga, Escuela de Ingenierías Industriales\29071-Málaga, Spain}
date{today}
maketitle
begin{abstract}
This a sample document that reviews some aspects of LaTeX to practice with them for a Master subjectfootnote{textit{"Escritura y Comunicación de Publicaciones de Investigación en Ingeniería"}}.
end{abstract}
section{Introduction}
LaTeX{} is a markup language designed and implemented by textbf{Leslie Lamport}, based on textbf{Donald E. Knuth’s} typesetting language TeX{}. The notation in the source file may appear somewhat challenging, but the compiled document is certainly a pleasing rendering of the text.
TeX{} comes with a set of fonts called Computer Modern (CM). Additional fonts designed for use in mathematics are provide by the American Mathematical Society (AMS). TeX{} is expandable, that is, additional commands can be defined in terms of more basic ones. One of the best known expansions of TeX{} is LaTeX{} (see Fig. ref{fig:example}. Add-on features for LATEX are known as packages. Dozens of these are pre-installed and can be used immediately.
An article is divided into textit{logical units}, including various sections and subsections, and a bibliography. This is specified by the document class. Once all the units have been typed, LaTeX{} controls the textit{placement} and textit{formating} of these elements. LaTeX{} automatically numbers the sections and equations in your article, and builds the cross-references. If any change is made to the article, it automatically renumbers its various parts and rebuilds the cross-references.
LaTeX{} commands, as a rule, start with a backslash (textbackslash). textit{Environments} are used to format blocks of text in a document. Each textit{comment} line begins with %. LaTeX{} will ignore everything on the line after the % character.
section{Examples}
subsection{Table}
Table ref{Tab:mydata} shows some common extensions related with LaTeX{} files.
begin{table}[h]
centering
caption{Common file extensions in LaTeX{}.} label{Tab:mydata}
begin{tabular}{c|l}
Extension & File \
hline
texttt{.tex} & input \
texttt{.pdf} & output\
texttt{.aux} & auxiliary\
texttt{.cls} & document class\
texttt{.bib} & references\
texttt{.bst} & bibliography style\
end{tabular}
end{table}
begin{figure}[b!]
centering % Center figure
%includegraphics[width= 0.7columnwidth]{figure.pdf}
caption{LaTeX{} foundation.}
label{fig:example}
end{figure}
subsection{List}
The same information contained in ref{Tab:mydata} can be found in the following list:
begin{itemize}
item texttt{.text} is the input text file.
item texttt{.pdf} is the output file.
item texttt{.aux} refers to an auxiliary file for the compiler.
item texttt{.cls} defines a document class file.
item texttt{.bib} contains the references of the document.
item texttt{.bst} defines the style for the biography.end{itemize}
subsection{References}
Next, some examples on how to cite works from a journal cite{Rieger:2010}, a conference cite{Scaramuzza:2007}, a book cite{Thrun:2005}, a chapter of a book cite{Ollero:1997} and a web page cite{IAIS:2013} can be found.
section*{Acknowledgements}
This work was not supported by any research project.
bibliographystyle{IEEEtran}
%bibliography{BIBLIOGRAFIA.bib}
pagebreak
begin{strip}
begin{equation} label{eq:1}
(sI-A)^{-1}=frac{textrm{adjoint(}sI-Atextrm{)}}{lvert sI-A rvert} Rightarrow G(s)=frac{C,textrm{adjoint(}sI-Atextrm{)}B+Dlvert sI-A rvert}{lvert sI-A rvert}
end{equation}
end{strip}
section*{Appendix}
This appendix presents equations eqref{eq:1} to eqref{eq:6} and the algorithm ref{alg:1}.
begin{equation} label{eq:2} left( begin{array}{ccc}
G_{11}(s) & cdots & G_{1p}(s)\
vdots & ddots & vdots\
G_{m1}(s) & cdots & G_{mp}(s)
end{array} right) left( begin{array}{c}
U_{1}(s)\
vdots\
U_{p}(s)
end{array} right), end{equation}
begin{equation} label{eq:3}
x(t)=e^{At}x(0)+e^{At}int_0^1 e^{-Atau},B,u,(tau),dtau,
end{equation}
begin{equation} label{eq:4}
x(k+1)=x(k)Rightarrow begin{cases}
x_{1e}=-0.116r,\
x_{2e}=y_{e}=0.142r, end{cases}
end{equation}
begin{equation} label{eq:5}
(sI-A)^{-1}=frac{sumlimits_{i=0}^{n-1}(A_is^i)}{P_{alpha}(s)},
end{equation}
begin{align} label{eq:6}
E[v(t_{1})v^{T}(t_2)]=Rdelta(t_1,t_2),&quad E[v(t_{1})w^{T}(t_2)]=0, nonumber \
E[w(t_{1})w^{T}(t_2)]=Qdelta(t_1,t_2),&quad E[w(t_{1})v^{T}(t_2)]=0,
end{align}
break
begin{algorithm} label{alg:1}
% SetAlgoLined
DontPrintSemicolon
KwIn{$L, sigma$}
KwVar{$M, I, R$}\
Initialize $M leftarrow -1 $ % Matrix of size $i^{max}_xcdot i^{max}_y$\
$Rleftarrow{} %$ List of removed cubes\
Sort List $L$ in increasing order of indices $I$\
Access to the first index $I$ of $L$.\
Repeat{I==NULL;}{
$(i_x,i_y,y_zt)leftarrow I$;\
If{$M(i_x,i_y)=-1$}{
$M(i_x,i_y)=i_z$;
}
ElseIf{$(i_z-M(i_x,i_y))geqsigma$}{
$Rleftarrow{R,I} %$ Let the cube collapse;
Else{}{
$M(i_x,i_y)=i_z$;
}
}
Access to the next index $I$ of $L$
}
KwResult{Sorted list $R$ with cubes from overhangs}
caption{The collapsible cubes algorithm}
end{algorithm}
end{document}
add a comment |
up vote
0
down vote
Perhaps, the following two packages may help you. The strip
environment from the cuted
package allows you to write the formula in two columns. And the flushend
package will allow you to balance the columns so that the algorithm is placed in the second column.
documentclass[a4paper, 10pt, conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{hyperref}
usepackage{amsmath}
usepackage[ruled,vlined]{algorithm2e}
usepackage{cuted}
usepackage{flushend}
SetKw{KwVar}{Variables:}
begin{document}
title{A Sample LaTeX Article}
author{Antonio Justicia Ruiz\Universidad de Málaga, Escuela de Ingenierías Industriales\29071-Málaga, Spain}
date{today}
maketitle
begin{abstract}
This a sample document that reviews some aspects of LaTeX to practice with them for a Master subjectfootnote{textit{"Escritura y Comunicación de Publicaciones de Investigación en Ingeniería"}}.
end{abstract}
section{Introduction}
LaTeX{} is a markup language designed and implemented by textbf{Leslie Lamport}, based on textbf{Donald E. Knuth’s} typesetting language TeX{}. The notation in the source file may appear somewhat challenging, but the compiled document is certainly a pleasing rendering of the text.
TeX{} comes with a set of fonts called Computer Modern (CM). Additional fonts designed for use in mathematics are provide by the American Mathematical Society (AMS). TeX{} is expandable, that is, additional commands can be defined in terms of more basic ones. One of the best known expansions of TeX{} is LaTeX{} (see Fig. ref{fig:example}. Add-on features for LATEX are known as packages. Dozens of these are pre-installed and can be used immediately.
An article is divided into textit{logical units}, including various sections and subsections, and a bibliography. This is specified by the document class. Once all the units have been typed, LaTeX{} controls the textit{placement} and textit{formating} of these elements. LaTeX{} automatically numbers the sections and equations in your article, and builds the cross-references. If any change is made to the article, it automatically renumbers its various parts and rebuilds the cross-references.
LaTeX{} commands, as a rule, start with a backslash (textbackslash). textit{Environments} are used to format blocks of text in a document. Each textit{comment} line begins with %. LaTeX{} will ignore everything on the line after the % character.
section{Examples}
subsection{Table}
Table ref{Tab:mydata} shows some common extensions related with LaTeX{} files.
begin{table}[h]
centering
caption{Common file extensions in LaTeX{}.} label{Tab:mydata}
begin{tabular}{c|l}
Extension & File \
hline
texttt{.tex} & input \
texttt{.pdf} & output\
texttt{.aux} & auxiliary\
texttt{.cls} & document class\
texttt{.bib} & references\
texttt{.bst} & bibliography style\
end{tabular}
end{table}
begin{figure}[b!]
centering % Center figure
%includegraphics[width= 0.7columnwidth]{figure.pdf}
caption{LaTeX{} foundation.}
label{fig:example}
end{figure}
subsection{List}
The same information contained in ref{Tab:mydata} can be found in the following list:
begin{itemize}
item texttt{.text} is the input text file.
item texttt{.pdf} is the output file.
item texttt{.aux} refers to an auxiliary file for the compiler.
item texttt{.cls} defines a document class file.
item texttt{.bib} contains the references of the document.
item texttt{.bst} defines the style for the biography.end{itemize}
subsection{References}
Next, some examples on how to cite works from a journal cite{Rieger:2010}, a conference cite{Scaramuzza:2007}, a book cite{Thrun:2005}, a chapter of a book cite{Ollero:1997} and a web page cite{IAIS:2013} can be found.
section*{Acknowledgements}
This work was not supported by any research project.
bibliographystyle{IEEEtran}
%bibliography{BIBLIOGRAFIA.bib}
pagebreak
begin{strip}
begin{equation} label{eq:1}
(sI-A)^{-1}=frac{textrm{adjoint(}sI-Atextrm{)}}{lvert sI-A rvert} Rightarrow G(s)=frac{C,textrm{adjoint(}sI-Atextrm{)}B+Dlvert sI-A rvert}{lvert sI-A rvert}
end{equation}
end{strip}
section*{Appendix}
This appendix presents equations eqref{eq:1} to eqref{eq:6} and the algorithm ref{alg:1}.
begin{equation} label{eq:2} left( begin{array}{ccc}
G_{11}(s) & cdots & G_{1p}(s)\
vdots & ddots & vdots\
G_{m1}(s) & cdots & G_{mp}(s)
end{array} right) left( begin{array}{c}
U_{1}(s)\
vdots\
U_{p}(s)
end{array} right), end{equation}
begin{equation} label{eq:3}
x(t)=e^{At}x(0)+e^{At}int_0^1 e^{-Atau},B,u,(tau),dtau,
end{equation}
begin{equation} label{eq:4}
x(k+1)=x(k)Rightarrow begin{cases}
x_{1e}=-0.116r,\
x_{2e}=y_{e}=0.142r, end{cases}
end{equation}
begin{equation} label{eq:5}
(sI-A)^{-1}=frac{sumlimits_{i=0}^{n-1}(A_is^i)}{P_{alpha}(s)},
end{equation}
begin{align} label{eq:6}
E[v(t_{1})v^{T}(t_2)]=Rdelta(t_1,t_2),&quad E[v(t_{1})w^{T}(t_2)]=0, nonumber \
E[w(t_{1})w^{T}(t_2)]=Qdelta(t_1,t_2),&quad E[w(t_{1})v^{T}(t_2)]=0,
end{align}
break
begin{algorithm} label{alg:1}
% SetAlgoLined
DontPrintSemicolon
KwIn{$L, sigma$}
KwVar{$M, I, R$}\
Initialize $M leftarrow -1 $ % Matrix of size $i^{max}_xcdot i^{max}_y$\
$Rleftarrow{} %$ List of removed cubes\
Sort List $L$ in increasing order of indices $I$\
Access to the first index $I$ of $L$.\
Repeat{I==NULL;}{
$(i_x,i_y,y_zt)leftarrow I$;\
If{$M(i_x,i_y)=-1$}{
$M(i_x,i_y)=i_z$;
}
ElseIf{$(i_z-M(i_x,i_y))geqsigma$}{
$Rleftarrow{R,I} %$ Let the cube collapse;
Else{}{
$M(i_x,i_y)=i_z$;
}
}
Access to the next index $I$ of $L$
}
KwResult{Sorted list $R$ with cubes from overhangs}
caption{The collapsible cubes algorithm}
end{algorithm}
end{document}
add a comment |
up vote
0
down vote
up vote
0
down vote
Perhaps, the following two packages may help you. The strip
environment from the cuted
package allows you to write the formula in two columns. And the flushend
package will allow you to balance the columns so that the algorithm is placed in the second column.
documentclass[a4paper, 10pt, conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{hyperref}
usepackage{amsmath}
usepackage[ruled,vlined]{algorithm2e}
usepackage{cuted}
usepackage{flushend}
SetKw{KwVar}{Variables:}
begin{document}
title{A Sample LaTeX Article}
author{Antonio Justicia Ruiz\Universidad de Málaga, Escuela de Ingenierías Industriales\29071-Málaga, Spain}
date{today}
maketitle
begin{abstract}
This a sample document that reviews some aspects of LaTeX to practice with them for a Master subjectfootnote{textit{"Escritura y Comunicación de Publicaciones de Investigación en Ingeniería"}}.
end{abstract}
section{Introduction}
LaTeX{} is a markup language designed and implemented by textbf{Leslie Lamport}, based on textbf{Donald E. Knuth’s} typesetting language TeX{}. The notation in the source file may appear somewhat challenging, but the compiled document is certainly a pleasing rendering of the text.
TeX{} comes with a set of fonts called Computer Modern (CM). Additional fonts designed for use in mathematics are provide by the American Mathematical Society (AMS). TeX{} is expandable, that is, additional commands can be defined in terms of more basic ones. One of the best known expansions of TeX{} is LaTeX{} (see Fig. ref{fig:example}. Add-on features for LATEX are known as packages. Dozens of these are pre-installed and can be used immediately.
An article is divided into textit{logical units}, including various sections and subsections, and a bibliography. This is specified by the document class. Once all the units have been typed, LaTeX{} controls the textit{placement} and textit{formating} of these elements. LaTeX{} automatically numbers the sections and equations in your article, and builds the cross-references. If any change is made to the article, it automatically renumbers its various parts and rebuilds the cross-references.
LaTeX{} commands, as a rule, start with a backslash (textbackslash). textit{Environments} are used to format blocks of text in a document. Each textit{comment} line begins with %. LaTeX{} will ignore everything on the line after the % character.
section{Examples}
subsection{Table}
Table ref{Tab:mydata} shows some common extensions related with LaTeX{} files.
begin{table}[h]
centering
caption{Common file extensions in LaTeX{}.} label{Tab:mydata}
begin{tabular}{c|l}
Extension & File \
hline
texttt{.tex} & input \
texttt{.pdf} & output\
texttt{.aux} & auxiliary\
texttt{.cls} & document class\
texttt{.bib} & references\
texttt{.bst} & bibliography style\
end{tabular}
end{table}
begin{figure}[b!]
centering % Center figure
%includegraphics[width= 0.7columnwidth]{figure.pdf}
caption{LaTeX{} foundation.}
label{fig:example}
end{figure}
subsection{List}
The same information contained in ref{Tab:mydata} can be found in the following list:
begin{itemize}
item texttt{.text} is the input text file.
item texttt{.pdf} is the output file.
item texttt{.aux} refers to an auxiliary file for the compiler.
item texttt{.cls} defines a document class file.
item texttt{.bib} contains the references of the document.
item texttt{.bst} defines the style for the biography.end{itemize}
subsection{References}
Next, some examples on how to cite works from a journal cite{Rieger:2010}, a conference cite{Scaramuzza:2007}, a book cite{Thrun:2005}, a chapter of a book cite{Ollero:1997} and a web page cite{IAIS:2013} can be found.
section*{Acknowledgements}
This work was not supported by any research project.
bibliographystyle{IEEEtran}
%bibliography{BIBLIOGRAFIA.bib}
pagebreak
begin{strip}
begin{equation} label{eq:1}
(sI-A)^{-1}=frac{textrm{adjoint(}sI-Atextrm{)}}{lvert sI-A rvert} Rightarrow G(s)=frac{C,textrm{adjoint(}sI-Atextrm{)}B+Dlvert sI-A rvert}{lvert sI-A rvert}
end{equation}
end{strip}
section*{Appendix}
This appendix presents equations eqref{eq:1} to eqref{eq:6} and the algorithm ref{alg:1}.
begin{equation} label{eq:2} left( begin{array}{ccc}
G_{11}(s) & cdots & G_{1p}(s)\
vdots & ddots & vdots\
G_{m1}(s) & cdots & G_{mp}(s)
end{array} right) left( begin{array}{c}
U_{1}(s)\
vdots\
U_{p}(s)
end{array} right), end{equation}
begin{equation} label{eq:3}
x(t)=e^{At}x(0)+e^{At}int_0^1 e^{-Atau},B,u,(tau),dtau,
end{equation}
begin{equation} label{eq:4}
x(k+1)=x(k)Rightarrow begin{cases}
x_{1e}=-0.116r,\
x_{2e}=y_{e}=0.142r, end{cases}
end{equation}
begin{equation} label{eq:5}
(sI-A)^{-1}=frac{sumlimits_{i=0}^{n-1}(A_is^i)}{P_{alpha}(s)},
end{equation}
begin{align} label{eq:6}
E[v(t_{1})v^{T}(t_2)]=Rdelta(t_1,t_2),&quad E[v(t_{1})w^{T}(t_2)]=0, nonumber \
E[w(t_{1})w^{T}(t_2)]=Qdelta(t_1,t_2),&quad E[w(t_{1})v^{T}(t_2)]=0,
end{align}
break
begin{algorithm} label{alg:1}
% SetAlgoLined
DontPrintSemicolon
KwIn{$L, sigma$}
KwVar{$M, I, R$}\
Initialize $M leftarrow -1 $ % Matrix of size $i^{max}_xcdot i^{max}_y$\
$Rleftarrow{} %$ List of removed cubes\
Sort List $L$ in increasing order of indices $I$\
Access to the first index $I$ of $L$.\
Repeat{I==NULL;}{
$(i_x,i_y,y_zt)leftarrow I$;\
If{$M(i_x,i_y)=-1$}{
$M(i_x,i_y)=i_z$;
}
ElseIf{$(i_z-M(i_x,i_y))geqsigma$}{
$Rleftarrow{R,I} %$ Let the cube collapse;
Else{}{
$M(i_x,i_y)=i_z$;
}
}
Access to the next index $I$ of $L$
}
KwResult{Sorted list $R$ with cubes from overhangs}
caption{The collapsible cubes algorithm}
end{algorithm}
end{document}
Perhaps, the following two packages may help you. The strip
environment from the cuted
package allows you to write the formula in two columns. And the flushend
package will allow you to balance the columns so that the algorithm is placed in the second column.
documentclass[a4paper, 10pt, conference]{IEEEtran}
usepackage[utf8]{inputenc}
usepackage{graphicx}
usepackage{hyperref}
usepackage{amsmath}
usepackage[ruled,vlined]{algorithm2e}
usepackage{cuted}
usepackage{flushend}
SetKw{KwVar}{Variables:}
begin{document}
title{A Sample LaTeX Article}
author{Antonio Justicia Ruiz\Universidad de Málaga, Escuela de Ingenierías Industriales\29071-Málaga, Spain}
date{today}
maketitle
begin{abstract}
This a sample document that reviews some aspects of LaTeX to practice with them for a Master subjectfootnote{textit{"Escritura y Comunicación de Publicaciones de Investigación en Ingeniería"}}.
end{abstract}
section{Introduction}
LaTeX{} is a markup language designed and implemented by textbf{Leslie Lamport}, based on textbf{Donald E. Knuth’s} typesetting language TeX{}. The notation in the source file may appear somewhat challenging, but the compiled document is certainly a pleasing rendering of the text.
TeX{} comes with a set of fonts called Computer Modern (CM). Additional fonts designed for use in mathematics are provide by the American Mathematical Society (AMS). TeX{} is expandable, that is, additional commands can be defined in terms of more basic ones. One of the best known expansions of TeX{} is LaTeX{} (see Fig. ref{fig:example}. Add-on features for LATEX are known as packages. Dozens of these are pre-installed and can be used immediately.
An article is divided into textit{logical units}, including various sections and subsections, and a bibliography. This is specified by the document class. Once all the units have been typed, LaTeX{} controls the textit{placement} and textit{formating} of these elements. LaTeX{} automatically numbers the sections and equations in your article, and builds the cross-references. If any change is made to the article, it automatically renumbers its various parts and rebuilds the cross-references.
LaTeX{} commands, as a rule, start with a backslash (textbackslash). textit{Environments} are used to format blocks of text in a document. Each textit{comment} line begins with %. LaTeX{} will ignore everything on the line after the % character.
section{Examples}
subsection{Table}
Table ref{Tab:mydata} shows some common extensions related with LaTeX{} files.
begin{table}[h]
centering
caption{Common file extensions in LaTeX{}.} label{Tab:mydata}
begin{tabular}{c|l}
Extension & File \
hline
texttt{.tex} & input \
texttt{.pdf} & output\
texttt{.aux} & auxiliary\
texttt{.cls} & document class\
texttt{.bib} & references\
texttt{.bst} & bibliography style\
end{tabular}
end{table}
begin{figure}[b!]
centering % Center figure
%includegraphics[width= 0.7columnwidth]{figure.pdf}
caption{LaTeX{} foundation.}
label{fig:example}
end{figure}
subsection{List}
The same information contained in ref{Tab:mydata} can be found in the following list:
begin{itemize}
item texttt{.text} is the input text file.
item texttt{.pdf} is the output file.
item texttt{.aux} refers to an auxiliary file for the compiler.
item texttt{.cls} defines a document class file.
item texttt{.bib} contains the references of the document.
item texttt{.bst} defines the style for the biography.end{itemize}
subsection{References}
Next, some examples on how to cite works from a journal cite{Rieger:2010}, a conference cite{Scaramuzza:2007}, a book cite{Thrun:2005}, a chapter of a book cite{Ollero:1997} and a web page cite{IAIS:2013} can be found.
section*{Acknowledgements}
This work was not supported by any research project.
bibliographystyle{IEEEtran}
%bibliography{BIBLIOGRAFIA.bib}
pagebreak
begin{strip}
begin{equation} label{eq:1}
(sI-A)^{-1}=frac{textrm{adjoint(}sI-Atextrm{)}}{lvert sI-A rvert} Rightarrow G(s)=frac{C,textrm{adjoint(}sI-Atextrm{)}B+Dlvert sI-A rvert}{lvert sI-A rvert}
end{equation}
end{strip}
section*{Appendix}
This appendix presents equations eqref{eq:1} to eqref{eq:6} and the algorithm ref{alg:1}.
begin{equation} label{eq:2} left( begin{array}{ccc}
G_{11}(s) & cdots & G_{1p}(s)\
vdots & ddots & vdots\
G_{m1}(s) & cdots & G_{mp}(s)
end{array} right) left( begin{array}{c}
U_{1}(s)\
vdots\
U_{p}(s)
end{array} right), end{equation}
begin{equation} label{eq:3}
x(t)=e^{At}x(0)+e^{At}int_0^1 e^{-Atau},B,u,(tau),dtau,
end{equation}
begin{equation} label{eq:4}
x(k+1)=x(k)Rightarrow begin{cases}
x_{1e}=-0.116r,\
x_{2e}=y_{e}=0.142r, end{cases}
end{equation}
begin{equation} label{eq:5}
(sI-A)^{-1}=frac{sumlimits_{i=0}^{n-1}(A_is^i)}{P_{alpha}(s)},
end{equation}
begin{align} label{eq:6}
E[v(t_{1})v^{T}(t_2)]=Rdelta(t_1,t_2),&quad E[v(t_{1})w^{T}(t_2)]=0, nonumber \
E[w(t_{1})w^{T}(t_2)]=Qdelta(t_1,t_2),&quad E[w(t_{1})v^{T}(t_2)]=0,
end{align}
break
begin{algorithm} label{alg:1}
% SetAlgoLined
DontPrintSemicolon
KwIn{$L, sigma$}
KwVar{$M, I, R$}\
Initialize $M leftarrow -1 $ % Matrix of size $i^{max}_xcdot i^{max}_y$\
$Rleftarrow{} %$ List of removed cubes\
Sort List $L$ in increasing order of indices $I$\
Access to the first index $I$ of $L$.\
Repeat{I==NULL;}{
$(i_x,i_y,y_zt)leftarrow I$;\
If{$M(i_x,i_y)=-1$}{
$M(i_x,i_y)=i_z$;
}
ElseIf{$(i_z-M(i_x,i_y))geqsigma$}{
$Rleftarrow{R,I} %$ Let the cube collapse;
Else{}{
$M(i_x,i_y)=i_z$;
}
}
Access to the next index $I$ of $L$
}
KwResult{Sorted list $R$ with cubes from overhangs}
caption{The collapsible cubes algorithm}
end{algorithm}
end{document}
answered 9 hours ago
Vladimir
1462
1462
add a comment |
add a comment |
AntonioJR is a new contributor. Be nice, and check out our Code of Conduct.
AntonioJR is a new contributor. Be nice, and check out our Code of Conduct.
AntonioJR is a new contributor. Be nice, and check out our Code of Conduct.
AntonioJR is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464888%2faligning-equations-in-ieeetran%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Welcome to TeX.SE.
– Mico
10 hours ago