Showing posts with label table. Show all posts
Showing posts with label table. Show all posts

How to center p column values in a LaTex table?

First we need to use the array package and define a new command P

\usepackage{array}
\newcolumntype{P}[1]{>{\centering\arraybackslash}p{#1}}
Afterwards, we can use the command P instead of p as follows when we define column type in the LaTex table

\begin{table}
  \centering
  \begin{tabular}{|P{2.5cm}|P{2.5cm}|P{2.5cm}|}
    \hline
    Reconstruction strategy & aa          & bb( \%) \\ \hline
    Classic                 & 3342 voxels & 68 \%   \\ \hline
    VC                      & 4296 voxels & 87 \%   \\ \hline
    V m=7                   & 4745 voxels & 96 \%   \\ \hline
  \end{tabular}
  \newline\newline
  \caption{title}\label{tab1}
\end{table}

This will give you the following output:


 

[Source]: https://tex.stackexchange.com/questions/157389/how-to-center-column-values-in-a-table

How to make thicker or thiner lines in LaTex tables?



Sometimes when we are writing articles with LaTex, thicker or thiner lines in the tables provide good and clear view on those tables. For instance, the one from the paper "aschern at SemEval-2020 Task 11: It Takes Three to Tango: RoBERTa, CRF, and Transfer Learning" at SemEval 2020 in the below, where the top and bottom lines are thicker than the middle line.


This can be simply achieved by using the makecell package and the corresponding command below:

First, just declaring we are using the makecell package

\usepackage{makecell} 
Second, we can use Xhline command instead of the hline with the thickness defined

  
\Xhline{2\arrayrulewidth}
\Xhline{1.5pt}  

MySQL - innodb_buffer_pool_size

테이블이 엄청나게 커지면서 실험에 bottleneck이 되었는데 검색하다보니 innodb_buffer_pool_size 요놈 때문인 거 같다. index를 만들었는데도 너무 느렸는데 확인해보니 innodb_buffer_pool_size가 index데이터를 cache하는 설정이다... 서버에 메모리는 빵빵하니 크게 설정해놓으면 놓을 수록 살짝 메모리DB처럼 되간다고 보면 된다고 하네...

The size in bytes of the buffer pool, the memory area where InnoDB caches table and index data. The default value is 128MB.