Skip to main content
horizontal vs vertical
Link
Schweinebacke
  • 26.9k
  • 71
  • 104

Problem aligning text and table horizontallyvertically

replaced http://tex.stackexchange.com/ with https://tex.stackexchange.com/
Source Link

I'm trying to make a page heading using

\documentclass[12pt]{article} \usepackage{sidecap,wasysym,array,caption,graphicx} \usepackage[a4paper,margin=1cm,footskip=.5cm]{geometry} \pagenumbering{gobble} \newcommand\textbox[1]{% \parbox[t]{.333\textwidth}{#1}% } \begin{document} \noindent\textbox{Date: \begin{tabular}[t]{|l|l|l|l|l|l|} \hline & & & & & \\ \hline \end{tabular}} \hfill\textbox{\hfil \textsc{\LARGE Content}\hfil}\textbox{\hfill\LARGE\smiley{}} \end{document} 

enter image description here

in which I'm trying to make a box using a table, to fill in the date. But the box and the text "Date:" don't seem to align. I already tried doing Align text and image on the same line?Align text and image on the same line? but I'm not sure if it is the right way to go about it. How can I align the "Date:" and the table in the same line?

I'm trying to make a page heading using

\documentclass[12pt]{article} \usepackage{sidecap,wasysym,array,caption,graphicx} \usepackage[a4paper,margin=1cm,footskip=.5cm]{geometry} \pagenumbering{gobble} \newcommand\textbox[1]{% \parbox[t]{.333\textwidth}{#1}% } \begin{document} \noindent\textbox{Date: \begin{tabular}[t]{|l|l|l|l|l|l|} \hline & & & & & \\ \hline \end{tabular}} \hfill\textbox{\hfil \textsc{\LARGE Content}\hfil}\textbox{\hfill\LARGE\smiley{}} \end{document} 

enter image description here

in which I'm trying to make a box using a table, to fill in the date. But the box and the text "Date:" don't seem to align. I already tried doing Align text and image on the same line? but I'm not sure if it is the right way to go about it. How can I align the "Date:" and the table in the same line?

I'm trying to make a page heading using

\documentclass[12pt]{article} \usepackage{sidecap,wasysym,array,caption,graphicx} \usepackage[a4paper,margin=1cm,footskip=.5cm]{geometry} \pagenumbering{gobble} \newcommand\textbox[1]{% \parbox[t]{.333\textwidth}{#1}% } \begin{document} \noindent\textbox{Date: \begin{tabular}[t]{|l|l|l|l|l|l|} \hline & & & & & \\ \hline \end{tabular}} \hfill\textbox{\hfil \textsc{\LARGE Content}\hfil}\textbox{\hfill\LARGE\smiley{}} \end{document} 

enter image description here

in which I'm trying to make a box using a table, to fill in the date. But the box and the text "Date:" don't seem to align. I already tried doing Align text and image on the same line? but I'm not sure if it is the right way to go about it. How can I align the "Date:" and the table in the same line?

Source Link

Problem aligning text and table horizontally

I'm trying to make a page heading using

\documentclass[12pt]{article} \usepackage{sidecap,wasysym,array,caption,graphicx} \usepackage[a4paper,margin=1cm,footskip=.5cm]{geometry} \pagenumbering{gobble} \newcommand\textbox[1]{% \parbox[t]{.333\textwidth}{#1}% } \begin{document} \noindent\textbox{Date: \begin{tabular}[t]{|l|l|l|l|l|l|} \hline & & & & & \\ \hline \end{tabular}} \hfill\textbox{\hfil \textsc{\LARGE Content}\hfil}\textbox{\hfill\LARGE\smiley{}} \end{document} 

enter image description here

in which I'm trying to make a box using a table, to fill in the date. But the box and the text "Date:" don't seem to align. I already tried doing Align text and image on the same line? but I'm not sure if it is the right way to go about it. How can I align the "Date:" and the table in the same line?