oscar

Risposte nei forum create

Stai visualizzando 5 risposte – dal 1 al 5 (di 5 totali)
  • Autore
    Risposte
  • in risposta a: LyX – Errore LateX: option clash for packge graphicx #70765
    Up
    0
    Down
    ::


    Scusa Claudio, sono un po’ addormentato perchè son sveglio dalle 4 e non ho ben compreso cosa devo fare di preciso.
    Cmq può darsi che LyX possa essere usato meglio, io ho preso dei template già pronti per non perdere tempo a configurare tutto da 0 quando ho cominciato 😛
    Cmq grazie dell’aiuto che mi hai dato, almeno ho la coscienza a posto per averle tentate tutte 🙂

    in risposta a: LyX – Errore LateX: option clash for packge graphicx #70763
    Up
    0
    Down
    ::


    Già fatto, ma senza risultato, come dicevo sopra mi con a dare l’errore di clash. Provo a postarti qui il contenuto del file LyX relativo al file principale, e più in basso il contenuto del file appendice.lyx. Magari ci possono aiutare… se invece risolvere il problema impone di investire troppo tempo, non farti problemi a dirmelo e incollo il pdf come immagini eps. Il frontespizio contiene solo testo e un’immagine eps, quindi non credo occorra postare anche il sorgente lyx di quel file (se tolgo il frontespizio ho lo stesso problema per i capitoli interni della tesi, quindi il problema è proprio l’appendice9.

    Tesi.lyx (main file):
    `
    #LyX 1.6.7 created this file. For more info see http://www.lyx.org/
    \lyxformat 345
    \begin_document
    \begin_header
    \textclass book
    \begin_preamble
    \usepackage{pdfpages}
    \usepackage{hyperref}
    \usepackage{color}
    \usepackage{multicol}
    \usepackage{url}
    \usepackage{fancyhdr}
    \usepackage{listings}
    \usepackage{babel}
    \usepackage{ae,aecompl}

    \RequirePackage[dvipsnames]{xcolor} % [dvipsnames]
    \definecolor{halfgray}{gray}{0.55} % chapter numbers will be semi transparent .5 .55 .6 .0
    \definecolor{webgreen}{rgb}{0,.5,0}
    \definecolor{webbrown}{rgb}{.6,0,0}
    \definecolor{Maroon}{cmyk}{0, 0.87, 0.68, 0.32}
    \definecolor{RoyalBlue}{cmyk}{1, 0.50, 0, 0}
    \definecolor{Black}{cmyk}{0, 0, 0, 0}

    \hypersetup{
    colorlinks=true, linktocpage=true, pdfstartpage=3, pdfstartview=FitV,%
    breaklinks=true, pdfpagemode=UseNone, pageanchor=true, pdfpagemode=UseOutlines,%
    plainpages=false, bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,%
    hypertexnames=true, pdfhighlight=/O,%hyperfootnotes=true,%nesting=true,%frenchlinks,%
    urlcolor=webbrown, linkcolor=RoyalBlue, citecolor=webgreen, %pagecolor=RoyalBlue,%
    pdftitle = {Tesi di $NOME $COGNOME},
    pdfsubject = {Tesi di $TIPO_LAUREA},
    pdfkeywords = {$ELENCO_PAROLE_CHIAVE_SEPARATE_DA_VIRGOLE},
    pdfauthor = {$NOME $COGNOME},
    pdfcreator = {\LaTeX\ with package \flqq hyperref\frqq},
    pdfproducer = {pdfeTeX-0.\the\pdftexversion\pdftexrevision},
    plainpages=false,
    pdfpagelabels
    }
    \end_preamble
    \use_default_options false
    \language italian
    \inputencoding auto
    \font_roman default
    \font_sans default
    \font_typewriter default
    \font_default_family rmdefault
    \font_sc false
    \font_osf false
    \font_sf_scale 100
    \font_tt_scale 100

    \graphics pdftex
    \float_placement h
    \paperfontsize 12
    \spacing onehalf
    \use_hyperref true
    \pdf_bookmarks true
    \pdf_bookmarksnumbered false
    \pdf_bookmarksopen false
    \pdf_bookmarksopenlevel 1
    \pdf_breaklinks true
    \pdf_pdfborder false
    \pdf_colorlinks true
    \pdf_backref false
    \pdf_pdfusetitle true
    \papersize a4paper
    \use_geometry true
    \use_amsmath 1
    \use_esint 0
    \cite_engine natbib_numerical
    \use_bibtopic false
    \paperorientation portrait
    \leftmargin 2.5cm
    \topmargin 2cm
    \rightmargin 3cm
    \bottommargin 2.5cm
    \headsep 0.5cm
    \secnumdepth 2
    \tocdepth 2
    \paragraph_separation indent
    \defskip medskip
    \quotes_language swedish
    \papercolumns 1
    \papersides 1
    \paperpagestyle headings
    \tracking_changes false
    \output_changes false
    \author “”
    \author “”
    \end_header

    \begin_body

    \begin_layout Standard
    \begin_inset ERT
    status collapsed

    \begin_layout Plain Layout

    \backslash
    begin{frontmatter}
    \end_layout

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset CommandInset include
    LatexCommand input
    filename “frontpage.lyx”

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset CommandInset include
    LatexCommand input
    filename “indici.lyx”

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset ERT
    status collapsed

    \begin_layout Plain Layout

    \backslash
    end{frontmatter}
    \end_layout

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset ERT
    status collapsed

    \begin_layout Plain Layout

    \backslash
    begin{mainmatter}
    \end_layout

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset CommandInset include
    LatexCommand input
    filename “introduzione.lyx”

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset CommandInset include
    LatexCommand input
    filename “appendice.lyx”

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset CommandInset include
    LatexCommand input
    filename “ringraziamenti.lyx”

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset ERT
    status collapsed

    \begin_layout Plain Layout

    \backslash
    end{mainmatter}
    \end_layout

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset ERT
    status collapsed

    \begin_layout Plain Layout

    \backslash
    begin{backmatter}
    \end_layout

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset CommandInset include
    LatexCommand input
    filename “bibliografia.lyx”

    \end_inset

    \end_layout

    \begin_layout Standard
    \begin_inset ERT
    status open

    \begin_layout Plain Layout

    \backslash
    end{backmatter}
    \end_layout

    \end_inset

    \end_layout

    \begin_layout Standard

    \end_layout

    \end_body
    \end_document
    `

    ed il file appendice.lyx:
    `
    #LyX 1.6.7 created this file. For more info see http://www.lyx.org/
    \lyxformat 345
    \begin_document
    \begin_header
    \textclass book
    \begin_preamble
    \usepackage[null]{pdfpages}
    \end_preamble
    \options a4
    \use_default_options false
    \language italian
    \inputencoding auto
    \font_roman default
    \font_sans default
    \font_typewriter default
    \font_default_family default
    \font_sc false
    \font_osf false
    \font_sf_scale 100
    \font_tt_scale 100

    \graphics default
    \paperfontsize 12
    \spacing single
    \use_hyperref false
    \papersize a4paper
    \use_geometry false
    \use_amsmath 1
    \use_esint 0
    \cite_engine natbib_numerical
    \use_bibtopic false
    \paperorientation portrait
    \secnumdepth 3
    \tocdepth 3
    \paragraph_separation skip
    \defskip medskip
    \quotes_language swedish
    \papercolumns 1
    \papersides 1
    \paperpagestyle empty
    \tracking_changes false
    \output_changes false
    \author “”
    \author “”
    \end_header

    \begin_body

    \begin_layout Chapter
    \start_of_appendix
    Appendice
    \end_layout

    \begin_layout Standard
    \begin_inset External
    template PDFPages
    filename Immagini/questionario.pdf
    extra LaTeX “pages={1-4}”
    scale 70

    \end_inset

    \end_layout

    \end_body
    \end_document
    `

    Al momento ho rimesso il pdf attraverso lyx con Inserisci – File – Materiale esterno – Pagine PDF (così ritorna il problema options clash, ma l’appendice singolarmente presa si vede)

    in risposta a: LyX – Errore LateX: option clash for packge graphicx #70761
    Up
    0
    Down
    ::


    Buongiorno OldCladio e grazie ancora della disponibilità.
    Dunque, ho fatto diversi tentativi per capire quale fosse il problema di base, probabilmente usando Inserisci – File – Materiale esterno – Pagine PDF, mi carica in automatico il package pdfpages. Allora ho eliminato il risultato che proponeva lui e ho fatto direttamente il richiamo con \includepdf e le varie opzioni. Poi sono tornato nel main file (ossia tesi.lyx) ed ho aggiunto come prima riga \usepackage[null]{pdfpages} come da te suggerito. Ora compila correttamente, in Appendice ci sono le 4 pagine destinate al file PDF che volevo importare, ma sono completamente vuote. Ho provato a togliere l’opzione null, però mi dà il seguente errore di compilazione:
    `
    pdfTex error:
    !pdfTeX error: pdflatex (file Immagini/questionario.pdf): cannot find image fil
    `

    (questionario.pdf è il file che voglio importare in appendice)
    eppure il file questionario.pdf c’è, tant’è che appunto con il l’argomento null di cui sopra l’errore non lo dava.
    Inizio a capire perchè sconsigli LyX, inizio a detestarlo pure io, tra l’altro mi è rimasto solo oggi per fare le modifiche alla tesi 🙁

    in risposta a: LyX – Errore LateX: option clash for packge graphicx #70759
    Up
    0
    Down
    ::


    Ho appena provato ad esportare il file appendix.lyx in LateX (pdflatex), e nel file ottenuto dentro c’erano queste 2 righe (vabbè, una è di commento):
    `
    %% A simple dot to overcome graphicx limitations
    \newcommand{\lyxdot}{.}
    `

    altri riferimenti a graphicx o graphics non ne ho trovati.

    in risposta a: LyX – Errore LateX: option clash for packge graphicx #70758
    Up
    0
    Down
    ::


    Grazie OldClaudio per la risposta.
    Ammetto che non ho fatto molte ricerche prima di scegliere LyX in passato, ma mi sembrava il metodo più semplice per scrivere documenti di buona qualità senza dover conoscere a fondo LateX. Finora mi ero sempre trovato bene per le varie relazioni che ho fatto e anche con la tesi era filato tutto liscio fino ad oggi (e in pratica fino alla fine).
    Purtroppo LyX non sembra lasciare log dopo la compilazione, però mentre tenta di costruire il documento, oltre all’errore citato nell’oggetto mi viene fornito questo suggerimento:
    `
    \usepackage
    {setspace}
    The package graphicx has already been loaded with options:
    []
    There has now been an attempt to load it with options
    [pdftex]
    Adding the global options:
    ,pdftex
    to your \documentclass declaration may fix this.
    Try typing to proceed.

    `

    Ho pensato di cercare una stringa del tipo /usepackage{graphicx} all’interno del file lyx, aprendolo con un editor di testo, ma non c’è. Forse è proprio pdfpages a caricare graphicx?
    Perchè se elimino solo il comando di caricamento del pdf, il problema si “risolve”, ovvero la tesi viene compilata correttamente e per intero, con ovviamente l’appendice vuota.
    L’alternativa sarebbe fotografare il pdf e caricarlo come immagine, ma mi pare una soluzione proprio sporca…

Stai visualizzando 5 risposte – dal 1 al 5 (di 5 totali)

Go to top