- Questo topic ha 3 risposte, 3 partecipanti ed è stato aggiornato l'ultima volta 9 anni, 9 mesi fa da .
-
Topic
-
ciao a tutti, sto tentando di fare una tabella in cui una colonna sia su “due righe” e l’altra su “tre righe”. Le due righe di sx devono essere centrate sulle tre di dx. Allo scopo sto provando ad usare `multirow`, ma usando il comando `\\` come da pacchetto `multirow` ottengo un messaggio di errore. Allego un codice minimo.`\documentclass[a4paper,10pt]{article} % Default font size and paper size
\usepackage{multirow}
\usepackage{fontspec} % For loading fonts
\defaultfontfeatures{Mapping=tex-text}
\setmainfont[SmallCapsFont = Fontin SmallCaps]{Fontin} % Main document font\usepackage{xunicode,xltxtra,url,parskip} % Formatting packages
\usepackage[usenames,dvipsnames]{xcolor} % Required for specifying custom colors
%\usepackage[big]{layaureo} % Margin formatting of the A4 page, an alternative to layaureo can be
% To reduce the height of the top margin uncomment: \addtolength{\voffset}{-1.3cm}\usepackage{fullpage}
\usepackage{hyperref} % Required for adding links and customizing them
\definecolor{linkcolour}{rgb}{0,0.2,0.6} % Link color
\hypersetup{colorlinks,breaklinks,urlcolor=linkcolour,linkcolor=linkcolour} % Set link colors throughout the document\usepackage{titlesec} % Used to customize the \section command
\titleformat{\section}{\Large\scshape\raggedright}{}{0em}{}[\titlerule] % Text formatting of sections
\titlespacing{\section}{0pt}{3pt}{3pt} % Spacing around sections\usepackage{ragged2e}
\usepackage{booktabs}
\usepackage{collcell}
\newcommand*{\movedown}[1]{%
\smash{\raisebox{-1ex}{#1}}}
\newcolumntype{q}{>{\collectcell\movedown}r<{\endcollectcell}} % (for "quotient") \begin{document} \pagestyle{empty} % Removes page numbering \font\fb=''[cmr10]'' % Change the font of the \LaTeX command under the skills section \begin{tabular}{ll p{12.25cm}} & \multirow{3}*{\textsc{December} 2016 - \textsc{September} 2012 } & \large{\textbf{Ph.D. in Chemical Sciences and Engineering}} \\ & & University of Paperopoli; \\ & & Laboratory of Qui Quo Qua \\ & & \\ \end{tabular} \end{document}` cambiando la linea `& \multirow{3}*{\textsc{December} 2016 - \textsc{September} 2012 } & \large{\textbf{Ph.D. in Chemical Sciences and Engineering}} \\` con `& \multirow{3}*{\textsc{December} 2016 - \\ \textsc{September} 2012 } & \large{\textbf{Ph.D. in Chemical Sciences and Engineering}} \\` che dovrebbe stampare December 2016 September 2012 su due righe differenti ottengo l’errore.Soluzioni?
Grazie,
Davide
- Devi essere connesso per rispondere a questo topic.