'Cat.Storage/SubCat.Latex'에 해당되는 글 2건

  1. 2016.02.16 [Latex] Table Setting (arrystretch, tabcolsep, hskip)
  2. 2016.02.15 [Latex] Local Font Change


This code contains many options related to tabular. 


\arraystretch sets the space between each row. 

\tabcolsep sets the space between each column. 

\hskip sets the space for specific column.

\hline inserts new black line. 

\multicolumn makes possible to write down something into multiple column. 


\colorbox{lightgray}{

\renewcommand{\arraystretch}{1.0}

\renewcommand\tabcolsep{2pt}

\begin{tabular}{l l @{\hskip 1pt}l}


\hline

EGLSurface & eglCreatePbufferSurface (& EGLDisplay display,\\

& & EGLConfig config,\\

& & const EGLint *attribList) \\

\hline

display & \multicolumn{2}{l}{specifies the EGL display connection} \\

config & \multicolumn{2}{l}{specifies the configuration} \\

attribList & \multicolumn{2}{l}{specifies the list of pixel buffer attributes; may be NULL} \\

\end{tabular}


}




'Cat.Storage > SubCat.Latex' 카테고리의 다른 글

[Latex] Local Font Change  (0) 2016.02.15
Posted by Cat.IanKang
,


This posting shows the way to change the font 'Times' to 'Helvetica' in local. (not global setting)


First,  load package. 


\usepackage[scaled=1.0]{helvet} 


If you do not want to change the size of font, use below. 


\usepackage {helvet} 




Then, use following command. 


\fontfamily{phv}\selectfont{} 


(ex. \fontfamily{phv}\selectfont{Some thing you want to talk about} )



I use above example into algorithm box. Followings are sample code and its result.


\usepackage{algorithm}

\usepackage{algpseudocode}

\usepackage[scaled=1.0]{helvet} 



\floatname{algorithm}{\large sample code}

\begin{algorithm}[htb]

 

\caption{Overall procedure}

 

\label{alg:Algorithm}

 

\begin{algorithmic}[1]

\fontfamily{phv}\selectfont{}

\State \#version 300 es \hspace{0.5cm} // This indicates SL version 3.0.

\State

\State uniform mat4 worldViewProjection; \hspace{0.5cm} // 4x4 matrix

\State

\State layout(location = 0) in vec3 position;

 

\State layout(location = 1) in vec3 normal;

 

\State layout(location = 2) in vec2 texCoord;

\State

\State out vec3 v\_normal;

 

\State out vec2 v\_texCoord;

\State

\State void main() \{

 

\State \hspace{0.2cm} gl\_Position = worldViewProjection * vec4(position, 1.0);

 

\State \hspace{0.2cm} v\_normal = normal;

 

\State \hspace{0.2cm} v\_texCoord = texCoord;

 

\State \}

 

 

\end{algorithmic}

 

\end{algorithm} 




'Cat.Storage > SubCat.Latex' 카테고리의 다른 글

[Latex] Table Setting (arrystretch, tabcolsep, hskip)  (0) 2016.02.16
Posted by Cat.IanKang
,