xypic **[r] e **[l]

  • Creatore
    Topic
  • #61508
    Up
    0
    Down
    ::


    Ho un problema col funzionamento di **[r] e **[l] nel pacchetto xypic… Essenzialmente li dovrei poter usare per shiftare laterlamente delle entrate molto lunghe in diagrammi commutativi, ma sembra che la compilazione non “veda” niente…

    `\documentclass[a4paper]{article}
    \usepackage[utf8]{inputenc}
    %\usepackage[italian]{babel}
    \usepackage[T1]{fontenc}
    \usepackage{amsmath}
    \usepackage{amsfonts}
    \usepackage{amssymb}
    \usepackage[all]{xy}
    \begin{document}
    \[
    \xymatrix{**[l]\text{testo molto lungo} & B \\ C & **[r]\text{molto testo lungo}}
    \]
    \end{document}`
    l’output e’ identico a quello che otterrei se non li avessi messi.

    Che succede?

Visualizzazione 7 filoni di risposte
  • Autore
    Risposte
    • #61509
      Up
      0
      Down
      ::

      Ho un problema col funzionamento di **[r] e **[l] nel pacchetto xypic… Essenzialmente li dovrei poter usare per shiftare laterlamente delle entrate molto lunghe in diagrammi commutativi, ma sembra che la compilazione non “veda” niente…

      `\documentclass[a4paper]{article}
      \usepackage[utf8]{inputenc}
      %\usepackage[italian]{babel}
      \usepackage[T1]{fontenc}
      \usepackage{amsmath}
      \usepackage{amsfonts}
      \usepackage{amssymb}
      \usepackage[all]{xy}
      \begin{document}
      \[
      \xymatrix{**[l]\text{testo molto lungo} & B \\ C & **[r]\text{molto testo lungo}}
      \]
      \end{document}`
      l’output e’ identico a quello che otterrei se non li avessi messi.

      Che succede?

      Devi usare *[l]\txt{…}, altrimenti Xy-pic non trova un oggetto (dal suo punto di vista). Un solo asterisco.

      Ciao
      Enrico

    • #61510
      Up
      0
      Down
      ::


      Purtroppo no:
      `! A was supposed to be here.

      \pi
      l.169 …}{v}{\frac{1}{2}(v\otimes 1-Jv\otimes i)}
      I was expecting to see \hbox or \vbox or \copy or \box or
      something like that. `
      Tanto piu’ che sulla documentazione di xypic e’ riportato esattamente **[r] e **[l]… Non capisco…

    • #61511
      Up
      0
      Down
      ::

      Purtroppo no:
      `! A was supposed to be here.

      \pi
      l.169 …}{v}{\frac{1}{2}(v\otimes 1-Jv\otimes i)}
      I was expecting to see \hbox or \vbox or \copy or \box or
      something like that. `
      Tanto piu’ che sulla documentazione di xypic e’ riportato esattamente **[r] e **[l]… Non capisco…

      Esempio, per favore.

      Ciao
      Enrico

    • #61512
      Up
      0
      Down
      ::


      Lo stesso di prima, mettendo un solo asterisco:
      `\documentclass[a4paper]{article}
      \usepackage[utf8]{inputenc}
      %\usepackage[italian]{babel}
      \usepackage[T1]{fontenc}
      \usepackage{amsmath}
      \usepackage{amsfonts}
      \usepackage{amssymb}
      \usepackage[all]{xypic}
      \begin{document}
      \[
      \xymatrix{*[l]\text{testo molto lungo} & B \\ C & *[r]\text{molto testo lungo}}
      \]
      \end{document}`
      Errore che ricevo:
      `! A was supposed to be here.

      \unhbox
      l.11 …} & B \\ C & *[r]\text{molto testo lungo}}
      I was expecting to see \hbox or \vbox or \copy or \box or
      something like that. So you might find something missing in
      your output. But keep trying; you can fix this later.`

    • #61513
      Up
      0
      Down
      ::

      Lo stesso di prima, mettendo un solo asterisco:
      `\documentclass[a4paper]{article}
      \usepackage[utf8]{inputenc}
      %\usepackage[italian]{babel}
      \usepackage[T1]{fontenc}
      \usepackage{amsmath}
      \usepackage{amsfonts}
      \usepackage{amssymb}
      \usepackage[all]{xypic}
      \begin{document}
      \[
      \xymatrix{*[l]\text{testo molto lungo} & B \\ C & *[r]\text{molto testo lungo}}
      \]
      \end{document}`
      Errore che ricevo:
      `! A was supposed to be here.

      \unhbox
      l.11 …} & B \\ C & *[r]\text{molto testo lungo}}
      I was expecting to see \hbox or \vbox or \copy or \box or
      something like that. So you might find something missing in
      your output. But keep trying; you can fix this later.`

      Devi usare \txt, non \text. Leggi bene! 🙂

      Ciao
      Enrico

    • #61514
      Up
      0
      Down
      ::


      Ma il mio problema riguarda dei diagrammi commutativi dove al posto di \text{un testo molto lungo} ci sono cose come
      `A\otimes(B_1\otimes\dots\otimes B_n)`
      Era solo per fare un esempio che ho copiato quel codice… 😀 come oggetto nei diagrammi c’e’ matematica, non testo. Pero’ mi rendo conto che non e’ stato chiarissimo: facciamo che il diagramma che devo disegnare, una volta per tutte, e’

      `\[
      \xymatrix{*[l] A\otimes(B_1\otimes\dots\otimes B_n) & B \\ C & *[r]A\otimes(B_1\otimes\dots\otimes B_n)}
      \]`
      Con un solo asterisco ricevo un messaggio di errore
      `! Forbidden control sequence found while scanning use of \next@.

      \par
      l.11 …*[r] A\otimes(B_1\otimes\dots\otimes B_n)}
      I suspect you have forgotten a `}', causing me
      to read past where you wanted me to stop.
      I'll try to recover; but if the error is serious,
      you'd better type `E' or `X' now and fix your file.
      Runaway argument?`
      e se ne metto due, e’ come non aver usato il comando. 🙁

    • #61515
      Up
      0
      Down
      ::

      Ma il mio problema riguarda dei diagrammi commutativi dove al posto di \text{un testo molto lungo} ci sono cose come
      `A\otimes(B_1\otimes\dots\otimes B_n)`

      Appunto per questo ti chiedevo un esempio. La sfera di cristallo è turbata dal terremoto di ieri, quindi non riesco a vederci troppo bene dentro. 🙂

      Questo però mi pare che faccia ciò che desideri:
      `\[
      \xymatrix{
      *[l]{A\otimes(B_1\otimes\dots\otimes B_n)}
      & B \\ C & *[r]\txt{molto testo lungo}
      }
      \]`
      Con un esempio vero, forse ti si potrebbe dare qualche altra indicazione.

      Ciao
      Enrico

    • #61516
      Up
      0
      Down
      ::


      Perfetto.. 😳

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

Go to top