Skip to content

Commit

Permalink
use auto cell width for colophon by using tabularx. Closes: #1252
Browse files Browse the repository at this point in the history
  • Loading branch information
kmuto committed Jan 18, 2019
1 parent dea5020 commit ebe79e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions templates/latex/review-jlreq/review-base.sty
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@
\rule[8pt]{\textwidth}{1pt} \\
{\noindent\review@pubhistories}

\begin{tabular}{p{3em}p{\dimexpr\textwidth-6em}}
\begin{tabularx}{\dimexpr\textwidth-0.5em}{lX}
\review@colophonnames
\end{tabular}
\end{tabularx}
 \\
\rule[0pt]{\textwidth}{1pt} \\
\ifdefined\review@rights
Expand Down
1 change: 1 addition & 0 deletions templates/latex/review-jlreq/review-jlreq.cls
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ cls]
\RequirePackage{tcolorbox}
\tcbuselibrary{xparse,hooks,skins,breakable}
\RequirePackage{ulem}
\RequirePackage{tabularx}

\def\recls@tmp{luatex}
\RequirePackage[\recls@driver, \if@pdfhyperlink\else draft,\fi
Expand Down
5 changes: 3 additions & 2 deletions templates/latex/review-jsbook/review-base.sty
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
\RequirePackage{amssymb}
\RequirePackage{amsthm}
\RequirePackage{bm}
\RequirePackage{tabularx}

%% if you use @<u>{} (underline), use jumoline.sty
\IfFileExists{jumoline.sty}{
Expand Down Expand Up @@ -418,9 +419,9 @@
\rule[8pt]{\textwidth}{1pt} \\
{\noindent\review@pubhistories}

\begin{tabular}{p{3em}p{\dimexpr\textwidth-6em}}
\begin{tabularx}{\dimexpr\textwidth-0.5em}{lX}
\review@colophonnames
\end{tabular}
\end{tabularx}
 \\
\rule[0pt]{\textwidth}{1pt} \\
\ifdefined\review@rights
Expand Down

0 comments on commit ebe79e3

Please sign in to comment.