Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setting for header proportion #6

Open
dnl-blkv opened this issue Apr 2, 2017 · 1 comment
Open

Add setting for header proportion #6

dnl-blkv opened this issue Apr 2, 2017 · 1 comment

Comments

@dnl-blkv
Copy link
Owner

dnl-blkv commented Apr 2, 2017

How to Reproduce

  1. Type in very long address, contacts or name

What Should Happen

  1. There is a way to adjust header for long address or contacts (or name) by setting the address-to-name-to-contacts width ratio.

What Happens

  1. There is no way to control the address-to-name-to-contacts width ratio and therefore the long address, contacts or name are wrapped
@JorgeCarmo
Copy link

JorgeCarmo commented Sep 9, 2018

I was able to fix it by adding -0.5 before the center tag in the middle column.

Before:

\makeatletter
\newcommand\makeheader{
	\begin{center}
		\begin{tabu} to 1\textwidth { X[l,m] X[2,c,m] X[r,m] }
			\printaddress & \printname & \printcontacts \\
		\end{tabu}	
	\end{center}
	\vspace*{\afterheaderspace}
}
\makeatother

After:

\makeatletter
\newcommand\makeheader{
	\begin{center}
		\begin{tabu} to 1\textwidth { X[l,m] X[2,-0.5c,m] X[r,m] }
			\printaddress & \printname & \printcontacts \\
		\end{tabu}	
	\end{center}
	\vspace*{\afterheaderspace}
}
\makeatother

I'm guessing it depends on the name size but the number before the left/center/right tag defines the size to increase/decrease the columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants