Adjustbox e Bibtex

  • Creatore
    Topic
  • #118225
    Up
    0
    Down
    ::


    Buonasera , premetto che non ho mai utilizzato questo forum, spero di aver messo la richiesta nella parte giusta. Ho un problema con adjustbox e Bibtex. In pratica il codice funzionava tutto normale fino a quando non ho provato a mettere due immagini affiancate.
    Lì sono iniziati i problemi

    This is BibTeX, Version 0.99d (MiKTeX 2.9.7050 64-bit) The top-level auxiliary file: Tesi_Vane.aux A level-1 auxiliary file: chapter_tex_files/Inscription.aux A level-1 auxiliary file: chapter_tex_files/Acknowledgements.aux I found no \bibdata command—while reading file Tesi_Vane.aux I found no \bibstyle command—while reading file Tesi_Vane.aux (There were 2 error messages)

    questo è l’errore che magicamente appare solo quando è presente questa altra linea di codice

    `
    \begin{figure*}
    \begin{adjustbox}{max width=1.2\linewidth,center}
    \centering
    \subfigure[SVM map for the pulse signals]{\label{fig:SVMmapPulse}\includegraphics[width=0.6\textwidth]{../images/chapter_4/MapSVMpulse.eps}}%
    \subfigure[SVM map for the step signals]{\label{fig:SVMmapStep}\includegraphics[width=0.6\textwidth]{../images/chapter_4/MapSVMstep.eps}}%
    \end{adjustbox}
    \caption{Confrontation between Pulse and Step}
    \end{figure*}
    \end{document}
    `

    qui metto tutta l’impostazione che ho nella tesi,

    `
    \documentclass[a4paper,oneside,12pt,titlepage]{book}
    \frontmatter

    %%%%%%%%%%%%%%%%%%%% USEFUL PACKAGES – add or remove based on needs %%%%%%%%%%%%%%%%%%%%
    \usepackage[]{algorithm2e} % needed to write algorithms
    \usepackage{verbatim} % used to display LaTeX commands instead of having them executed
    \usepackage{rotating} % used to rotate graphical objects in landscape
    %\usepackage{subfig} % used to plot subfigures
    \usepackage{subfigure}
    \usepackage{anyfontsize} % used to modify the fontsize of a text
    \usepackage{siunitx} % a comprehensive SI unit package
    \usepackage{eurosym} % Euro € symbol
    \usepackage{multirow} % create tables with multirows
    \usepackage{amsmath} % provides a handful of options for displaying equations
    \usepackage{amsthm} % defines theorem-like environments
    \usepackage{amssymb} % needed for several fonts for use in math­e­mat­ics
    \usepackage{epstopdf} % convert *.eps files into *.pdf ones
    \usepackage[numbers]{natbib} % im­ple­ments both au­thor-year and num­bered ref­er­ences
    \usepackage{amsfonts} % defines the type of letters used when defining sets
    \usepackage{graphicx} % used to include figures
    \usepackage[dvips]{epsfig} % an extention of the previous package
    \usepackage[export]{adjustbox} % pro­vides sev­eral macros to ad­just boxed con­tent (e.g., shrinking a table)
    \usepackage{xcolor} % pro­vides easy driver-in­de­pen­dent ac­cess to sev­eral kinds of color tints, shades, tones, and mixes of ar­bi­trary col­ors
    \usepackage[italian,english]{babel} % man­ages cul­tur­ally-de­ter­mined ty­po­graph­i­cal rules for different lan­guages
    \usepackage[utf8]{inputenc} % trans­lates var­i­ous stan­dard and other in­put en­cod­ings into LATEX
    \usepackage[T1]{fontenc} % in order to se­lect the font en­cod­ings
    \usepackage{bm} % to write formulas in bold
    \usepackage{fancyhdr} % used to con­struct­ing head­ers and foot­ers
    \usepackage{a4} % defines the a4 dimensions
    \usepackage{frontespizio} % creates an aux­il­iary TEX file to be type­set on its own and the re­sult is au­to­mat­i­cally in­cluded at the next run
    \usepackage{hyperref} % creates hyperlinks within the document
    \usepackage{float} % defines floating objects
    \usepackage{appendix} % defines the appendix style
    \usepackage{afterpage} % creates blank pages
    \usepackage{colortbl}
    \usepackage{textcomp}
    \usepackage{mathptmx}
    \setlength{\intextsep}{3mm}

    %%%%%%%%%%%%%%%%%%%% USER DEFINED COMMANDS – add or remove based on needs %%%%%%%%%%%%%%%%%%%%
    %% Defining quotes – whenever you need to quote something, use command \quotes{Quoted Text}
    \newcommand{\quotes}[1]{“#1''}
    \newcommand*\xbar[1]{%
    \hbox{%
    \vbox{%
    \hrule height 0.5pt % The actual bar
    \kern0.5ex% % Distance between bar and symbol
    \hbox{%
    \kern-0.1em% % Shortening on the left side
    \ensuremath{#1}%
    \kern-0.1em% % Shortening on the right side
    }%
    }%
    }%
    }

    %% Defining atan in mathmode – use command \atan{Argument} to express the inverse tangent
    \makeatletter
    \DeclareRobustCommand{\atan}{%
    \operatorname{atan}%
    \@ifnextchar2{_}{}%
    }
    \makeatother

    %% Defining euro in mathmode – use command \euro whenever you need the symbol €
    \DeclareSIUnit{\pers}{pers}
    \DeclareSIUnit{\EUR}{\text{\euro}}
    \sisetup{
    per-mode = fraction,
    inter-unit-product = \ensuremath{{}\cdot{}},
    }

    %% Defining blank page – use this command when you want a blank page in the document
    \newcommand\blankpage{%
    \null
    \thispagestyle{empty}%
    \addtocounter{page}{-1}%
    \newpage}

    %% Defining new styles (do not remove or move from here!)
    \theoremstyle{plain}
    \newtheorem{teorema}{Teorema}
    \theoremstyle{definition}
    \newtheorem{definizione}{Definizione}
    \graphicspath{{images/}}
    \DeclareGraphicsExtensions{.ps,.eps}

    %% Defining a new environment for the inscription (do not remove or move from here!)
    \newenvironment{dedication}
    {\clearpage % we want a new page
    \thispagestyle{empty} % no header and footer
    \vspace*{\stretch{1}} % some space at the top
    \itshape % the text is in italics
    \raggedleft % flush to the right margin
    }
    {\par % end the paragraph
    \vspace{\stretch{3}} % space at bottom is three times that at the top
    \clearpage % finish off the page
    }

    %%%%%%%%%%%%%%%%%%%% GRAPHICAL TEMPLATE %%%%%%%%%%%%%%%%%%%%
    %% Definition of the margins (do not remove or move from here!)
    \setlength{\oddsidemargin} {1.5 cm}
    \setlength{\evensidemargin} {1.5 cm}
    \addtolength{\oddsidemargin} {-0.8 cm}
    \addtolength{\evensidemargin} {-0.8 cm}
    %% Definition of spacing (do not remove or move from here!)
    \linespread{1.5}
    `

    cosa c’è che non va? Ho provato a usare altri pacchetti invece di subfigure ma finisce che le due immagini che voglio mettere vengano troppo piccole e non centrate.

    Premetto inoltre che se non faccio andare bibtex ma solo pdflatex , funziona senza problemi e mi stampa i grafici come vorrei. Uso Textmaker con Miktek . Grazie mille a tutti in anticipo.

Visualizzazione 6 filoni di risposte
  • Autore
    Risposte
    • #118226
      robitex
      Amministratore del forum
        Up
        0
        Down
        ::

        Nigmur” post=118679Buonasera , premetto che non ho mai utilizzato questo forum, spero di aver messo la richiesta nella parte giusta. Ho un problema con adjustbox e Bibtex. In pratica il codice funzionava tutto normale fino a quando non ho provato a mettere due immagini affiancate.
        Lì sono iniziati i problemi

        This is BibTeX, Version 0.99d (MiKTeX 2.9.7050 64-bit) The top-level auxiliary file: Tesi_Vane.aux A level-1 auxiliary file: chapter_tex_files/Inscription.aux A level-1 auxiliary file: chapter_tex_files/Acknowledgements.aux I found no \bibdata command—while reading file Tesi_Vane.aux I found no \bibstyle command—while reading file Tesi_Vane.aux (There were 2 error messages)

        questo è l’errore che magicamente appare solo quando è presente questa altra linea di codice

        `
        \begin{figure*}
        \begin{adjustbox}{max width=1.2\linewidth,center}
        \centering
        \subfigure[SVM map for the pulse signals]{\label{fig:SVMmapPulse}\includegraphics[width=0.6\textwidth]{../images/chapter_4/MapSVMpulse.eps}}%
        \subfigure[SVM map for the step signals]{\label{fig:SVMmapStep}\includegraphics[width=0.6\textwidth]{../images/chapter_4/MapSVMstep.eps}}%
        \end{adjustbox}
        \caption{Confrontation between Pulse and Step}
        \end{figure*}
        \end{document}
        `

        qui metto tutta l’impostazione che ho nella tesi,

        `
        \documentclass[a4paper,oneside,12pt,titlepage]{book}
        \frontmatter

        %%%%%%%%%%%%%%%%%%%% USEFUL PACKAGES – add or remove based on needs %%%%%%%%%%%%%%%%%%%%
        \usepackage[]{algorithm2e} % needed to write algorithms
        \usepackage{verbatim} % used to display LaTeX commands instead of having them executed
        \usepackage{rotating} % used to rotate graphical objects in landscape
        %\usepackage{subfig} % used to plot subfigures
        \usepackage{subfigure}
        \usepackage{anyfontsize} % used to modify the fontsize of a text
        \usepackage{siunitx} % a comprehensive SI unit package
        \usepackage{eurosym} % Euro € symbol
        \usepackage{multirow} % create tables with multirows
        \usepackage{amsmath} % provides a handful of options for displaying equations
        \usepackage{amsthm} % defines theorem-like environments
        \usepackage{amssymb} % needed for several fonts for use in math­e­mat­ics
        \usepackage{epstopdf} % convert *.eps files into *.pdf ones
        \usepackage[numbers]{natbib} % im­ple­ments both au­thor-year and num­bered ref­er­ences
        \usepackage{amsfonts} % defines the type of letters used when defining sets
        \usepackage{graphicx} % used to include figures
        \usepackage[dvips]{epsfig} % an extention of the previous package
        \usepackage[export]{adjustbox} % pro­vides sev­eral macros to ad­just boxed con­tent (e.g., shrinking a table)
        \usepackage{xcolor} % pro­vides easy driver-in­de­pen­dent ac­cess to sev­eral kinds of color tints, shades, tones, and mixes of ar­bi­trary col­ors
        \usepackage[italian,english]{babel} % man­ages cul­tur­ally-de­ter­mined ty­po­graph­i­cal rules for different lan­guages
        \usepackage[utf8]{inputenc} % trans­lates var­i­ous stan­dard and other in­put en­cod­ings into LATEX
        \usepackage[T1]{fontenc} % in order to se­lect the font en­cod­ings
        \usepackage{bm} % to write formulas in bold
        \usepackage{fancyhdr} % used to con­struct­ing head­ers and foot­ers
        \usepackage{a4} % defines the a4 dimensions
        \usepackage{frontespizio} % creates an aux­il­iary TEX file to be type­set on its own and the re­sult is au­to­mat­i­cally in­cluded at the next run
        \usepackage{hyperref} % creates hyperlinks within the document
        \usepackage{float} % defines floating objects
        \usepackage{appendix} % defines the appendix style
        \usepackage{afterpage} % creates blank pages
        \usepackage{colortbl}
        \usepackage{textcomp}
        \usepackage{mathptmx}
        \setlength{\intextsep}{3mm}

        %%%%%%%%%%%%%%%%%%%% USER DEFINED COMMANDS – add or remove based on needs %%%%%%%%%%%%%%%%%%%%
        %% Defining quotes – whenever you need to quote something, use command \quotes{Quoted Text}
        \newcommand{\quotes}[1]{“#1''}
        \newcommand*\xbar[1]{%
        \hbox{%
        \vbox{%
        \hrule height 0.5pt % The actual bar
        \kern0.5ex% % Distance between bar and symbol
        \hbox{%
        \kern-0.1em% % Shortening on the left side
        \ensuremath{#1}%
        \kern-0.1em% % Shortening on the right side
        }%
        }%
        }%
        }

        %% Defining atan in mathmode – use command \atan{Argument} to express the inverse tangent
        \makeatletter
        \DeclareRobustCommand{\atan}{%
        \operatorname{atan}%
        \@ifnextchar2{_}{}%
        }
        \makeatother

        %% Defining euro in mathmode – use command \euro whenever you need the symbol €
        \DeclareSIUnit{\pers}{pers}
        \DeclareSIUnit{\EUR}{\text{\euro}}
        \sisetup{
        per-mode = fraction,
        inter-unit-product = \ensuremath{{}\cdot{}},
        }

        %% Defining blank page – use this command when you want a blank page in the document
        \newcommand\blankpage{%
        \null
        \thispagestyle{empty}%
        \addtocounter{page}{-1}%
        \newpage}

        %% Defining new styles (do not remove or move from here!)
        \theoremstyle{plain}
        \newtheorem{teorema}{Teorema}
        \theoremstyle{definition}
        \newtheorem{definizione}{Definizione}
        \graphicspath{{images/}}
        \DeclareGraphicsExtensions{.ps,.eps}

        %% Defining a new environment for the inscription (do not remove or move from here!)
        \newenvironment{dedication}
        {\clearpage % we want a new page
        \thispagestyle{empty} % no header and footer
        \vspace*{\stretch{1}} % some space at the top
        \itshape % the text is in italics
        \raggedleft % flush to the right margin
        }
        {\par % end the paragraph
        \vspace{\stretch{3}} % space at bottom is three times that at the top
        \clearpage % finish off the page
        }

        %%%%%%%%%%%%%%%%%%%% GRAPHICAL TEMPLATE %%%%%%%%%%%%%%%%%%%%
        %% Definition of the margins (do not remove or move from here!)
        \setlength{\oddsidemargin} {1.5 cm}
        \setlength{\evensidemargin} {1.5 cm}
        \addtolength{\oddsidemargin} {-0.8 cm}
        \addtolength{\evensidemargin} {-0.8 cm}
        %% Definition of spacing (do not remove or move from here!)
        \linespread{1.5}
        `

        cosa c’è che non va? Ho provato a usare altri pacchetti invece di subfigure ma finisce che le due immagini che voglio mettere vengano troppo piccole e non centrate.

        Premetto inoltre che se non faccio andare bibtex ma solo pdflatex , funziona senza problemi e mi stampa i grafici come vorrei. Uso Textmaker con Miktek . Grazie mille a tutti in anticipo.

        Ciao.
        Benvenuta sul forum.
        Prova a cancellare tutti i file ausiliari .aux e ricompilare.
        Potrebbe funzionare. In fondo per la mia esperienza, non vedo collegamenti tra bibtex e il pacchetto adjustbox. Potrebbe essere qualcos’altro, per esempio una compilazione non terminata che ha lasciato i file aux con informazioni errate.
        R.

      • #118227
        Up
        0
        Down
        ::


        Mmm ho provato a cancellare tutti i file ausiliari anche riaprendo e chiudendo Textmaker ma nulla da fare, l’errore persiste fintanto che esiste quel pezzo di codice con la doppia immagine usando adjustbox

      • #118228
        samiel
        Partecipante
          Up
          0
          Down
          ::


          Ci sono diverse altre cose strane nel tuo preambolo,
          cito solo quelle che ho visto a una considerazione sommaria.

          • i pacchetti per la codifica vanno messi per primi
          • \frontmatter non ha nessun senso dove lo hai messo tu
          • amsfonts carica anche amssymb
          • carichi 2 volte il formato a4
          • per le citazioni hai gli ambienti quote e quotation; non ti vanno bene?
          • le pagine bianche all’interno del testo contribuiscono cmq ad aumentare il numero delle pagine

          m

        • #118229
          Up
          0
          Down
          ::

          samiel” post=118682Ci sono diverse altre cose strane nel tuo preambolo,
          cito solo quelle che ho visto a una considerazione sommaria.

          • i pacchetti per la codifica vanno messi per primi
          • \frontmatter non ha nessun senso dove lo hai messo tu
          • amsfonts carica anche amssymb
          • carichi 2 volte il formato a4
          • per le citazioni hai gli ambienti quote e quotation; non ti vanno bene?
          • le pagine bianche all’interno del testo contribuiscono cmq ad aumentare il numero delle pagine

          m

          Quali sono i pacchetti per la codifica?
          \frontmatter l’ho tolto
          non vedo dove c’è il caricamento di a4 la seconda volta
          per le citazioni in realtà sto usando solo \cite , non sto usando quote quello che ho una sorta di template che mi ha passato un mio amico
          del numero di pagine non mi importa e le pagine bianche che ci sono devono rimanere per richiesta di tesi della mia università

          Detto questo, siccome funzionava tutto tranquillamente prima di provare a mettere due immagini affiancate , non penso sia così errato. Vorrei solo capire come fare a mettere due cavolo di immagini affiancate senza che siano minuscole come nel caso dell’utilizzo del comando \minipage e senza che mi venga sto errore di Bibtex un po’ “a caso”

        • #118230
          samiel
          Partecipante
            Up
            0
            Down
            ::


            se non sai nemmeno quali sono i pacchetti per la codifica e ti acconti del fatto che

            Detto questo, siccome funzionava tutto tranquillamente prima di provare a mettere due immagini affiancate , non penso sia così errato.

            forse stai sbagliando a usare LaTeX… ci sono Word e LibreOffice

            m

          • #118231
            Up
            0
            Down
            ::

            samiel” post=118684se non sai nemmeno quali sono i pacchetti per la codifica e ti acconti del fatto che

            Detto questo, siccome funzionava tutto tranquillamente prima di provare a mettere due immagini affiancate , non penso sia così errato.

            forse stai sbagliando a usare LaTeX… ci sono Word e LibreOffice

            m

            Questo commento conferma il mio pensiero sulla tua arroganza. Detto questo, non me n’è mai fregato molto della teoria dietro a un qualsiasi linguaggio di programmazione. Word lo lascio a te visto che oramai la mia tesi è finita in latex. Grazie e arrivederci

          • #118232
            robitex
            Amministratore del forum
              Up
              0
              Down
              ::


              Capisco che a volte si può essere un po’ nervosi ma, come dice il regolamento del forum, “non vi insultate” 🙂
              R.

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

          Go to top