I have a very particular problem. I wrote my PhD in a certain style but now the publishing agency asked me to use their stylesheet. Since applying it, one of the problems I got is that the edges of my tables don't close anymore :

enter image description here

When I use \begin{tabularx}, the tables look fine, but in this case, I need to use \begin{tabular} so I can specify that each column can be max. 3.4mm (otherwise the table goes over the edge of the page with no linebreak happening).

Here the code :

  \usepackage[main=french,italian, spanish, portuguese, latin, greek]{babel}


    \textbf{Suffixe en graphie classique} & \textbf{Suffixe en graphie phonématique} & \textbf{Nombre de lexèmes}\\
    \textit{-\={a}tus} & */-\textquotesingle{}at-u/ & 22 \\
    \textit{-bilis} & */\textquotesingle{}-βil-e/ & 8 \\
    \textit{-ium} & */\textquotesingle{}-i-u/ & 53 \\
    \textit{-ivus} & */\textquotesingle{}-iβ-u/ & 7 \\
    \textit{-m\u{e}ntum} & */-\textquotesingle{}mɛnt-u/ & 27 \\ 
    \textit{-or(e)} & */-\textquotesingle{}or-e/ & 70 \\
    \textit{-\={o}ria}/\textit{-\={o}rium}/\textit{-\={o}rius}  &    */-\textquotesingle{}ori-a/ / */-\textquotesingle{}ori-u/ & 44 \\
    \textit{-\={u}ra} & */-\textquotesingle{}ur-a/ & 54\\
   \captionof{table}{Nomenclature IV}\label{nomenclature4}

I guess it must be due to the .sty file I have to use, because in a simple layout it works fine. The only thing about tabular I could find is the following :

     \TX@find@endtabularxa\csname end\TX@\endcsname
    {\@spaces Table Width\@spaces Column Width\@spaces X Columns}%
           \global\advance\TX@cols\@ne\NC@find p{\TX@col@width}}}%
    \csname tabular*\expandafter\endcsname\expandafter\TX@target
   \csname endtabular*\endcsname}%

Here you can see the full .sty file : dgruyter.sty

Can anyone help?

  • 1
    don't post disconnected fragments, (and mostly the source of tabularx which you are not using) post a small but complete document that people can run to see the problem, then it should be easy to debug and help. – David Carlisle Feb 15 at 19:36
  • the heavy top and bottom rule, and the side rules are not from the code you show. – David Carlisle Feb 15 at 19:37
  • Hope now it's clearer... – Bianca Mertens Feb 15 at 19:56
  • Oh that style:( Line 24 completely breaks latex (I reported it to them years ago but it still seems to be the same...) – David Carlisle Feb 15 at 19:58
  • 1
    Try issuing \baretabulars in the preamble after \usepackage{dgruyter}. (Fished out from memory, can't test now.) – campa Feb 15 at 20:02

\baretabulars in the preamble after \usepackage{dgruyter} works perfectly to make the tables look as they should be.

| improve this answer | |
  • 1
    @Sebastiano This is an answer to the question. dgruyter.sty redefines tabular but provides \baretabulars to restore LaTeX's original definitions. – campa Feb 15 at 21:09
  • @campa Can I restore my flag? Excuse me for my mistake. I have removed my delete. I hope that the answer not will delete. – Sebastiano Feb 15 at 21:11
  • 2
    @Sebastiano Nothing to be sorry about. I know it only because I've had to do with this sorry style before :-) – campa Feb 15 at 21:13
  • @campa I reiterate my apology also with another method :-) – Sebastiano Feb 15 at 21:18

Does the publisher require the vertical lines, and the horizontal lines between rows?

I ask because the .sty file uses the booktabs package which is designed to work without any vertical lines.

The documentation is here, or here for the French version. It contains a long essay about why you shouldn't use vertical lines in tables, and why it makes no attempt to make them join up. If the publisher has used the booktabs package, this suggests to me that they don't want verrical lines.

| improve this answer | |

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.