1

I'm using makebox and tabular with \\ to make empty line. As per my understanding it seems it is bad behaviour to use \\ then how to manage the empty line? Thank you

\documentclass[11pt]{article}

\begin{document}

\noindent \makebox[3cm][l]{Nama} : name\\
\makebox[3cm][l]{NIS} : number code\\
\makebox[3cm][l]{Judul} : title)\\\\
\begin{tabular}{ccc}
\multicolumn{3}{c}{Cilacap, 07 September 2017}                                                                    \\
Menyetujui,                                      &             & Siswa                                            \\
Mentor                                           &             &                                                  \\
                                                 &             &                                                  \\
                                                 &             &                                                  \\
                                                 &             &                                                  \\
(someone) &             & (someone) \\
                                                 &             &                                                  \\
                                                 & Mengetahui, &                                                  \\
someone                               &             & someone                                \\
                                                 &             &                                                  \\
                                                 &             &                                                  \\
                                                 &             &                                                  \\
(\hrulefill) &             & (\hrulefill)
\end{tabular}
\end{document}
  • Either use \\[\baselineskip] instead of ` \\\\ ` or use an empty line for a paragraph break followed e.g. with \medskip – Ulrike Fischer Jul 13 '17 at 13:04
  • using \\[\baselineskip] solved the problems. Thanks – aqb Jul 14 '17 at 1:31
1

By using \null between \\\\ (\\\null\\), this can be avoided.

\documentclass[11pt]{article}

\begin{document}

\noindent \makebox[3cm][l]{Nama} : name\\
\makebox[3cm][l]{NIS} : number code\\
\makebox[3cm][l]{Judul} : title)\\\null\\
\begin{tabular}{ccc}
\multicolumn{3}{c}{Cilacap, 07 September 2017}                                                                    \\
Menyetujui,                                      &             & Siswa                                            \\
Mentor                                           &             &                                                  \\
                                                 &             &                                                  \\
                                                 &             &                                                  \\
                                                 &             &                                                  \\
(someone) &             & (someone) \\
                                                 &             &                                                  \\
                                                 & Mengetahui, &                                                  \\
someone                               &             & someone                                \\
                                                 &             &                                                  \\
                                                 &             &                                                  \\
                                                 &             &                                                  \\
(\hrulefill) &             & (\hrulefill)
\end{tabular}
\end{document}

Hope this helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.