formattazione tabella

  • Creatore
    Topic
  • #78777
    Up
    0
    Down
    ::


    Salve,

    mi servirebbe un aiuto per la seguente tabella (di cui alego codice):
    `\begin{sidewaystable}[hp]
    \caption{Scheme of the historical phases of colorimetry, vision stages, visual fields with reference to CIE standard systems}
    \label{tab1}
    \centering
    \begin{tabular}{llp{0.2\columnwidth}p{0.2\columnwidth}p{0.2\columnwidth}} \\\toprule
    & & \multicolumn{3}{c}{\textbf{Historic evolvement}} \\\cmidrule{3-5}
    & \multirow{5}*{ } & 1\textsuperscript{st} historic phase & 2\textsuperscript{nd} historic phase & 3\textsuperscript{rd} historic phase\\
    & & \emph{“colour appearance”} & \emph{“colour difference”} & \emph{“colour appearance”}\\[2ex]
    & & 1\textsuperscript{st} vision stage & 2\textsuperscript{nd} vision stage & 3\textsuperscript{rd} vision stage\\
    & & \emph{transduction} & \emph{adaptation} & \\[2ex]
    & & psychophysic system & psychometric system & \dots \\\cmidrule{2-5}
    \multirow{2}*{field of view} & \multirow{2}*{foveal vision} & CIE 1931 std observer & CIELUV/LAB systems & CIECAM Retinex \\
    & &\textsc{Judd-Vos} observer \\[2ex]
    & extra-foveal vision & CIE1 964 supplemental observer & CIELUV/LAB systems & \dots \\\bottomrule
    \end{tabular}
    \end{sidewaystable}`
    [attachment=448]tabella1.tex[/attachment]

    1) come fare per spostare il campo “field of view” a metà tra “foveal vision” ed “extra-foveal vision”? Non riesco ad annidare i \multirow
    2) come centrare i contenuti delle colonne?
    3) come centrare l’intera tabella nella pagina?

    Grazie per il vostro immancabile supporto!

    Cordiali saluti
    *-Arekhnames–*:-)

    Attachments:
    You must be logged in to view attached files.
Visualizzazione 5 filoni di risposte
  • Autore
    Risposte
    • #78778
      OldClaudio
      Partecipante
        Up
        0
        Down
        ::


        Tanto nella non è, come tabella, ma se proprio insisti devi caricare il pacchetto array e definire, per tua comodità un nuovo tipo di colonna (incidentalmente è del tutto inutile che alleghi un file tex identico a ciò che si trova nel riquadro del codice, senza che sia un esempio minimo compilabile; questo vuol dire che, scaricato il file e salvatolo con un nome (se occorresse), esso deve essere subito compilabile senza bisogno di andare a cercare in giro i pacchetti che potresti avere usato)
        Io di do il codice completo compilabile:`\documentclass{book}
        \usepackage{rotating,booktabs, multirow,array}

        \newcolumntype{P}[1]{>{\centering}p{#1}}

        \begin{document}
        \begin{sidewaystable}[hp]
        \caption{Scheme of the historical phases of colorimetry, vision stages, visual fields with reference to CIE standard systems}
        \label{tab1}
        \centering
        \begin{tabular}{llP{0.2\columnwidth}P{0.2\columnwidth}P{0.2\columnwidth}}\toprule
        \multirow{12}*{field of view} & & \multicolumn{3}{c}{\textbf{Historic evolvement}} \\\cmidrule{3-5}
        & \multirow{5}*{ } & 1\textsuperscript{st} historic phase & 2\textsuperscript{nd} historic phase & 3\textsuperscript{rd} historic phase\tabularnewline
        & & \emph{“colour appearance”} & \emph{“colour difference”} & \emph{“colour appearance”}\tabularnewline[2ex]
        & & 1\textsuperscript{st} vision stage & 2\textsuperscript{nd} vision stage & 3\textsuperscript{rd} vision stage\tabularnewline
        & & \emph{transduction} & \emph{adaptation} & \tabularnewline[2ex]
        & & psychophysic system & psychometric system & \dots \tabularnewline\cmidrule{2-5}
        & \multirow{2}*{foveal vision} & CIE 1931 std observer & CIELUV/LAB systems & CIECAM Retinex \tabularnewline
        & &\textsc{Judd-Vos} observer \tabularnewline[2ex]
        & extra-foveal vision & CIE1 964 supplemental observer & CIELUV/LAB systems & \dots \tabularnewline\bottomrule
        \end{tabular}
        \end{sidewaystable}
        \end{document}`

        Le colonne p hanno il contenuto centrato (ma l’effetto non è carino; l’ho fatto lo stesso per mostrati come si fa) i fine riga sono sostituiti con \tabularnewline, pratica normale quando si specifica un tipo di composizione diverso da quello giustificato dai due lati; è mostrato come si definisce un nuova colonna con parametro, adatta al tuo caso; è tolta la riga vuota prima di \toprule; se vuoi dello spazio, metticelo esplicitamente oppure usa il pacchetto caption e configura le didascalie delle tabelle come oggetti da mettere sopra la tabella. Infine, come vedi la tabella è centrata nella pagina senza bisogno di fare nulla; a te non viene centrata?

        Il parametro di posizionamento h te l’ho lasciato, ma è ovvio che non ci sta a fare nulla, una tabella da girare di solito è a piena altezza, o comunque piuttosto larga, quindi “qui” (here) non ci sta proprio.

      • #78779
        Up
        0
        Down
        ::


        Grazie OldClaudio. Ho modificato il codice (preambolo) come suggerito (in realtà mi mancava solo \newcolumntype).
        In realtà sembra che non funzioni perfettamente, pertanto allego risultato in .pdf e mio preambolo.
        \documentclass[]{dukedissertation}
        %\documentclass[economy,twoside,bind]{dukedissertation}
        % Use the second for a single-spaced copy suitable for duplex printing
        % and binding.

        % Other useful options (there are more options documented in Chapter 2):
        % * draft — don’t actually include images, print a black bar on overful
        % hboxes
        % * MS — Format for a Master’s Thesis. No UMI abstract page, some
        % textual changes to title page.

        % Useful packages for dissertation writing:
        \usepackage{amsmath, amssymb, amsfonts, amsthm}
        \usepackage{graphicx}
        \usepackage{natbib}
        \usepackage{color}
        \usepackage{bm}
        \usepackage{subfigure}
        \usepackage{mathabx}
        \usepackage{multirow}
        \usepackage{setspace}
        % pacchetto array aggiunto da Andrea
        \usepackage{array}
        % pacchetto rotating aggiunto da Andrea
        \usepackage{rotating}
        % pacchetto booktabs aggiunto da Andrea
        \usepackage{booktabs}
        %pacchetto caption aggiunto da Andrea
        \usepackage{caption}
        \captionsetup{tableposition=top, figureposition=bottom, font=small}
        % pacchetto bmpsize aggiunto da Andrea
        \usepackage{bmpsize}
        % pacchetto indentfirst aggiunto da Andrea
        \usepackage{indentfirst}
        % pacchetto microtype aggiunto da Andrea
        \usepackage{microtype}
        % pacchetto quoting aggiunto da Andrea
        \usepackage{quoting}
        \quotingsetup{font=small}
        % pacchetto siunitx aggiunto da Andrea
        \usepackage{siunitx}
        % pacchetto tabularx aggiunto da Andrea
        \usepackage{tabularx}
        % \usepackage{cite} % If you include this, hyperlink cites will
        % break. It’s nice to use this package if your bibstyle
        % sorts entries by order-of-use, rather than
        % alphabetically (as plain does).

        %Theorem, Lemma, etc. environments
        \newtheorem{theorem}{Theorem}%[section]
        \newtheorem{lemma}[theorem]{Lemma}
        \newtheorem{proposition}[theorem]{Proposition}
        \newtheorem{corollary}[theorem]{Corollary}
        \newtheorem{result}[theorem]{Result}

        % Personal commands and abbreviations.
        %Define and personal commands here
        %\newcommand{\api}{\textsuperscript{}}
        \newcolumntype{P}[1]{>{\centering}p{#1}}

        %Graphics Path to find your pictures
        \graphicspath{{./Pictures/}}
        _________________________________________-
        Dove sarà l’errore?
        Grazie ancora
        °-Arekhnames-°
        [attachment=449]tabella1.pdf[/attachment]

        Attachments:
        You must be logged in to view attached files.
      • #78780
        OldClaudio
        Partecipante
          Up
          0
          Down
          ::


          L’errore è stato mio, di interpretazione delle tue richieste. Prova questo codice:`\documentclass{book}
          \usepackage{rotating,booktabs, multirow,array}

          \newcolumntype{P}[1]{>{\centering}p{#1}}

          \begin{document}
          \begin{sidewaystable}[hp]
          \caption{Scheme of the historical phases of colorimetry, vision stages, visual fields with reference to CIE standard systems}
          \label{tab1}
          \centering
          \begin{tabular}{llP{0.2\columnwidth}P{0.2\columnwidth}P{0.2\columnwidth}}\toprule
          & & \multicolumn{3}{c}{\textbf{Historic evolvement}} \\\cmidrule{3-5}
          & \multirow{5}*{ } & 1\textsuperscript{st} historic phase & 2\textsuperscript{nd} historic phase & 3\textsuperscript{rd} historic phase\tabularnewline
          & & \emph{“colour appearance”} & \emph{“colour difference”} & \emph{“colour appearance”}\tabularnewline[2ex]
          & & 1\textsuperscript{st} vision stage & 2\textsuperscript{nd} vision stage & 3\textsuperscript{rd} vision stage\tabularnewline
          & & \emph{transduction} & \emph{adaptation} & \tabularnewline[2ex]
          & & psychophysic system & psychometric system & \dots \tabularnewline\cmidrule{2-5}
          \multirow{4}*{field of view\rule{0pt}{3ex}}& \multirow{2}*{foveal vision} & CIE 1931 std observer & CIELUV/LAB systems & CIECAM Retinex \tabularnewline
          & &\textsc{Judd-Vos} observer \tabularnewline[2ex]
          & extra-foveal vision & CIE1 964 supplemental observer & CIELUV/LAB systems & \dots \tabularnewline\bottomrule
          \end{tabular}
          \end{sidewaystable}
          \end{document}` Nel [tt]\rule{0pt}{3ex}[/tt] aggiusta il coefficiente 3 con opportuni decimali in più o in meno.

        • #78781
          Up
          0
          Down
          ::


          Grazie tantissimo!

          Tuttavia, non riesco assolutamente ad avere la tabella al centro pagina!

          Boh, chissà!!

          –°Arekhnames°–

        • #78782
          OldClaudio
          Partecipante
            Up
            0
            Down
            ::


            Il file che ti ho mandato compila e mette a centro pagina
            [attachment=450]tabella1.pdf[/attachment]

            Attachments:
            You must be logged in to view attached files.
          • #78783
            Up
            0
            Down
            ::


            Grazie mille ancora!!!!

            °—Arekhnames—°

        Visualizzazione 5 filoni di risposte
        • Devi essere connesso per rispondere a questo topic.

        Go to top