GeneralLongtable and PDF metainfo problem

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
bmn
Posts: 3
Joined: Wed Aug 08, 2007 5:46 pm

Longtable and PDF metainfo problem

Post by bmn »

Hi there!
I have started to build a TeXniC project for a c.v. "template". I managed to solve all problems I encountered - more or less elegantly - except two:

1. I would like to enter author, title and subject etc information in the main .tex file so that this is written as meta information to the PDF upon generating it. I have tried \author, \pdfauthor and \pdfinfo, none of that seems to work.

2. This might be a tough one:
The way I built this project is that I have one .sty file which contains the following (only the relevant stuff):

Code: Select all

\usepackage{fullpage}
\usepackage{longtable}
\renewcommand\section{\@startsection {section}{1}{\z@}
    {-3.5ex \@plus -1ex \@minus -.2ex}
    {2.3ex \@plus.2ex}

\newenvironment{envtable}[1]

\begin{longtable}
      {@{} p{.23\textwidth} | @{\hskip .02\textwidth} p{.30\textwidth} | @{\hskip .02\textwidth} p{.35\textwidth} }}
  {\end{longtable}\vskip 0.5cm}
So an environment "envtable" containing a longtable is defined. Now I have a main .tex file in which I load packages, refer to the .sty and then I write the actual text, for example:

Code: Select all

\begin{envtable}{tablename}
first column & second column & third column
\end{envtable}
Now the thing is that in the resulting PDF file the text in the tables appears like it would in MS Word with the setting "justified" instead of "aligned left". The result are ugly big spaces between some words and TeXniC also reports 4 underfull boxes. I have tried -lots- of things to make this go away :D The standard parameter for flushed-left text in longtables, manually flush-left in the .tex, trying to see if the problem is caused by bad hyphenation and some more. I simply can't get it to work.

I would greatly appreciate any help with these two problems. Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Longtable and PDF metainfo problem

Post by localghost »

At first, i may remark that such completely different problems should be posted in two separate threads.

For the first problem there is the simple answer to take a look at the documentation of the hyperref package.
bmn
Posts: 3
Joined: Wed Aug 08, 2007 5:46 pm

Re: Longtable and PDF metainfo problem

Post by bmn »

Thanks, apparently I did use the right commands but with wrong syntax....
The PDF problem is solved now. Since there is only the longtables issue left I don't think it is necessary to start another thread. :mrgreen:
bmn
Posts: 3
Joined: Wed Aug 08, 2007 5:46 pm

Re: Longtable and PDF metainfo problem

Post by bmn »

No suggestions?
Post Reply