Risposte nei forum create
-
AutoreRisposte
-
17 Febbraio 2011 alle 10:44 in risposta a: compilazione dello stesso file su ambiente Win e MAC #56043::
Scusa Gustavo,
ma se nel sorgente c’e` scritto che il font encoding e` utf8, anche se l’editor di windows utilizzasse di default un encoding differente, il documento compilato deve essere corretto, o sbaglio?ovviamente la visualizzazione del sorgente e` dipendente dall’encoding utilizzato dall’editor, ma il documento compilato (il pdf), essendo l’inputenc specificato, deve essere corretto.
Si infatti il file è in UTF8 però se il tuo editor utilizza un altro encoding quando lo apri le lettere accentate e altri caratteri che non corrispondono vengono sostituiti dall’editor stesso (in quanto pensa che l’encoding sia un altro) e quindi ti ritrovi il file modificato e al momento della compilazione verranno processati i nuovi caratteri.
Ciao
Fra
::
Riporto anche io il mio contributo. Queste sono le impostazioni nel fil .emacs in Ubuntu 10.10:
`; lunghezza righe
(setq-default fill-column 72)
; richiede file master
(setq-default TeX-master nil)
; interpretazione logica del sorgente
(setq TeX-parse-self t)
(setq TeX-auto-save t)
; blocca il log e permette di interagire alla presenza di errori
(setq TeX-interactive-mode t)
; Inserimento veloce matematica
(add-hook 'TeX-mode-hook 'LaTeX-math-mode)
; RefTeX
(require 'reftex)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(add-hook 'latex-mode-hook 'turn-on-reftex)
(setq reftex-plug-into-AUCTeX t)
; personalizzazione direttamente da emacs
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(LaTeX-indent-environment-list (quote ((“verbatim” current-indentation) (“verbatim*” current-indentation) (“array”) (“displaymath”) (“eqnarray”) (“eqnarray*”) (“equation”) (“equation*”) (“picture”) (“tabbing”) (“table”) (“table*”) (“tabular”) (“tabular*”) (“description” current-indentation) (“itemize” current-indentation) (“lstlistings” current-indentation))))
'(TeX-PDF-mode t);compilazione con PDFLaTeX
'(TeX-command-list (quote ((“TeX” “%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t” TeX-run-TeX nil (plain-tex-mode texinfo-mode ams-tex-mode) :help “Run plain TeX”) (“LaTeX” “%`%l%(mode)%' %t” TeX-run-interactive nil (latex-mode doctex-mode) :help “Run LaTeX”) (“Makeinfo” “makeinfo %t” TeX-run-interactive nil (texinfo-mode) :help “Run Makeinfo with Info output”) (“Makeinfo HTML” “makeinfo –html %t” TeX-run-compile nil (texinfo-mode) :help “Run Makeinfo with HTML output”) (“AmSTeX” “%(PDF)amstex %`%S%(PDFout)%(mode)%' %t” TeX-run-TeX nil (ams-tex-mode) :help “Run AMSTeX”) (“ConTeXt” “texexec –once –texutil %(execopts)%t” TeX-run-TeX nil (context-mode) :help “Run ConTeXt once”) (“ConTeXt Full” “texexec %(execopts)%t” TeX-run-TeX nil (context-mode) :help “Run ConTeXt until completion”) (“BibTeX” “bibtex %s” TeX-run-BibTeX nil t :help “Run BibTeX”) (“View” “%V” TeX-run-discard-or-function t t :help “Run Viewer”) (“Print” “%p” TeX-run-command t t :help “Print the file”) (“Queue” “%q” TeX-run-background nil t :help “View the printer queue” :visible TeX-queue-command) (“File” “%(o?)dvips %d -o %f ” TeX-run-command t t :help “Generate PostScript file”) (“Index” “makeindex %s” TeX-run-command nil t :help “Create index file”) (“Check” “lacheck %s” TeX-run-compile nil (latex-mode) :help “Check LaTeX file for correctness”) (“Spell” “(TeX-ispell-document \”\”)” TeX-run-function nil t :help “Spell-check the document”) (“Clean” “TeX-clean” TeX-run-function nil t :help “Delete generated intermediate files”) (“Clean All” “(TeX-clean t)” TeX-run-function nil t :help “Delete generated intermediate and output files”) (“Other” “” TeX-run-command t t :help “Run an arbitrary command”))))
'(TeX-debug-bad-boxes t);visualizza numero bad boxes
'(TeX-debug-warnings t);visualizza numero warnings
'(TeX-newline-function (quote newline-and-indent));indenta la nuova linea
'(TeX-show-compilation t)
'(TeX-source-correlate-method (quote synctex));ricerca diretta/inversa
'(TeX-source-correlate-mode t)
'(TeX-source-correlate-start-server t)
'(TeX-view-program-selection (quote (((output-dvi style-pstricks) “dvips and gv”) (output-dvi “xdvi”) (output-pdf “Evince”) (output-html “xdg-open”))))
'(compilation-ask-about-save t)
'(compilation-context-lines nil)
'(compilation-scroll-output (quote first-error))
'(preview-auto-cache-preamble t)
'(preview-inner-environments (quote (“Bmatrix” “Vmatrix” “aligned” “array” “bmatrix” “cases” “gathered” “matrix” “pmatrix” “smallmatrix” “split” “subarray” “vmatrix” “tabular”)))
'(reftex-label-alist (quote ((“lstlisting” 99 “cod:” nil nil (“codice”)) (“\\lstinputlisting[*]{}” 99 “cod:” nil nil (“codice”))))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)`
EDIT: ecco anche le impostazioni per Aquamacs. Preferences.el
`;; This is the Aquamacs Preferences file.
;; Add Emacs-Lisp code here that should be executed whenever
;; you start Aquamacs Emacs. If errors occur, Aquamacs will stop
;; evaluating this file and print errors in the *Messags* buffer.
;; Use this file in place of ~/.emacs (which is loaded as well.);;; direct/inverse search whit skim
;; Starts the Emacs server
(server-start)
;; Auto-raise Emacs on activation
(defun raise-emacs-on-aqua()
(shell-command “osascript -e 'tell application \”Emacs\” to activate' &”))
(add-hook 'server-switch-hook 'raise-emacs-on-aqua)
;; The following only works with AUCTeX loaded
(require 'tex-site)
(add-hook 'TeX-mode-hook
(lambda ()
(add-to-list 'TeX-output-view-style
'(“^pdf$” “.”
“/Applications/Skim.app/Contents/SharedSupport/displayline %n %o %b”)))
);;; Make emacs aware of multi-file projects
(setq-default TeX-master nil)
;;; Columns of 72 character width
(setq-default fill-column 72)
;;; Auto-save and logical interpretation
(setq TeX-parse-self t)
(setq TeX-auto-save t)
;;; Indentation level = 3
(custom-set-variables '(LaTeX-indent-level 3))
;;; Activate math-mode
(add-hook 'LaTeX-mode-hook 'LaTeX-math-mode)
;;; Spell check on startup
(add-hook 'TeX-mode-hook 'flyspell-mode)`
e customizations.el
`(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(LaTeX-command “latex”)
'(LaTeX-indent-level 3)
'(TeX-command-list (quote ((“TeX” “%(PDF)%(tex) %`%S%(PDFout)%(mode)%' %t” TeX-run-TeX nil (plain-tex-mode texinfo-mode ams-tex-mode) :help “Run plain TeX”) (“LaTeX” “%`%l%(mode)%' %t” TeX-run-TeX nil (latex-mode doctex-mode) :help “Run LaTeX”) (“Makeinfo” “makeinfo %t” TeX-run-compile nil (texinfo-mode) :help “Run Makeinfo with Info output”) (“Makeinfo HTML” “makeinfo –html %t” TeX-run-compile nil (texinfo-mode) :help “Run Makeinfo with HTML output”) (“AmSTeX” “%(PDF)amstex %`%S%(PDFout)%(mode)%' %t” TeX-run-TeX nil (ams-tex-mode) :help “Run AMSTeX”) (“ConTeXt” “texexec –once –texutil %(execopts)%t” TeX-run-TeX nil (context-mode) :help “Run ConTeXt once”) (“ConTeXt Full” “texexec %(execopts)%t” TeX-run-TeX nil (context-mode) :help “Run ConTeXt until completion”) (“BibTeX” “bibtex %s” TeX-run-BibTeX nil t :help “Run BibTeX”) (“View” “%V” TeX-run-discard-or-function nil t :help “Run Viewer”) (“Print” “%p” TeX-run-command t t :help “Print the file”) (“Queue” “%q” TeX-run-background nil t :help “View the printer queue” :visible TeX-queue-command) (“File” “%(o?)dvips %d -o %f ” TeX-run-command t t :help “Generate PostScript file”) (“Index” “makeindex %s” TeX-run-command nil t :help “Create index file”) (“Check” “lacheck %s” TeX-run-compile nil (latex-mode) :help “Check LaTeX file for correctness”) (“Spell” “(TeX-ispell-document \”\”)” TeX-run-function nil t :help “Spell-check the document”) (“Clean” “TeX-clean” TeX-run-function nil t :help “Delete generated intermediate files”) (“Clean All” “(TeX-clean t)” TeX-run-function nil t :help “Delete generated intermediate and output files”) (“Other” “” TeX-run-command t t :help “Run an arbitrary command”) (“Jump to PDF” “%V” TeX-run-discard-or-function nil t :help “Run Viewer”))))
'(TeX-debug-warnings t)
'(TeX-newline-function (quote newline-and-indent))
'(TeX-view-program-selection (quote ((output-dvi “open”) (output-pdf-skim-running “Skim”) (output-pdf “Skim”) (output-html “open”))))
'(aquamacs-additional-fontsets nil t)
'(aquamacs-customization-version-id 210 t)
'(aquamacs-tool-bar-user-customization nil t)
'(ns-alternate-modifier nil)
'(ns-right-command-modifier (quote meta))
'(ns-tool-bar-display-mode (quote both) t)
'(ns-tool-bar-size-mode (quote regular) t)
'(visual-line-mode nil t))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(latex-mode-default ((t (:inherit text-mode-default :stipple nil :strike-through nil :underline nil :slant normal :weight normal :height 130 :width normal :family “Monaco”))))
'(text-mode-default ((t (:inherit autoface-default :stipple nil :strike-through nil :underline nil :slant normal :weight normal :height 130 :width normal :family “Monaco”)))))
`
Le ultime righe servono per settare il font Monaco (monospaced) in modalità testo e latex. Spero di essere stato utile.
Ciao a tutti
Fra
::Ciao a tutti,
ho cercato in giro ma non ho trovato nulla. Eppure mi pareva che si fosse già fatto qualcosa di simile a quanto mi serve. Con pgfplots includo delle coordinate da file dat. Ora vorrei adimensionalizzare le coordinate x dividendole tutte per un dato numero o, in altri termini, vorrei che le etichette sull’asse x fossero divise per quel numero. Un mio amico ha un problema analogo in quanto vorrebbe sottrarre alle x uno stesso valore in modo da traslare le curve. È vero che si potrebbe agire sul file dat, ma se possibile, dato che entrambi dovremmo modificare tanti file dat, preferiremmo farlo direttamente da pgfplot.Grazie,
DanieleNon so se ho ben capito cosa vuoi fare però se vuoi dividere le etichette per un determinato numero lo puoi fare dando l’opzione “scaled x ticks=num” (c’è l’analogo anche per y) all’ambiente axis. Ovviamente non è una vera e propria normalizzazione perchè poi il numero scelto appare a destra (o in alto) dell’asse x (y) a moltiplicare. Comunque è spiegato a pagina 183 del manuale di pgfplots.
Ciao
Fra
::Ho utilizzato la classe report con le seguenti opzioni:
`\documentclass[11pt, a4paper,twoside,openright]{report}`
L’opzione openright fa si che ognu nuovo capitolo venga aperto in una pagina di sinistra (dispari). Quando il capitolo precedente finisce in una pagina pari non ci sono problemi. Quando però il capitolo precedente finisce in una pagina dispari, viene aggiunta una pagina vuota (pari), così da far partire il capitolo successivo su una pagina dispari. Il problema è che questa pagina vuota viene numerata automaticamente (e ho visto in un paio di libri scritti in LaTeX che non si fa!). Come faccio a togliere la numerazione da queste pagine che vengono aggiunte automaticamente?!
Grazie
Giusto una precisazione: le pagine dispari sono le pagine destre e non sinistre, altrimenti l’opzione openright non avrebbe molto senso. Il fatto che il margine esterno sia quello più grande è stato detto più e più volte.
Ciao
Fra
::
Grazie mille per le informazioni. A quanto pare non risulta proprio facile e pulita questa installazione quindi valuterò se installare il programma visto che comunque posso utilizzarlo anche sotto ubuntu o windows (che ho installato sul fisso). Potresti spiegarmi meglio questo passaggio?
`..Piuttosto, visto che ti modifica il path di ricerca, cerca di editare il file nascosto con il tuo profilo (~/.profile — attento al punto prima del nome) in modo da spostare i percorsi che cominciano con /opt verso il fondo della lista dei percorsi. `
Non mi è chiaro il path di ricerca di cosa viene modificato.Grazie mille per la disponibilità
Fra
::
Grazie per la risposta. Mi ero imbattuto anche io in quel sito ma i link che suggerisce (da cui sembrerebbe possibile scaricare l’applicazione pronta) sono corrotti. Per quanto riguarda il sito ufficiale intendi che queste istruzioni
`Quickstart
———-If you have a recent Ubuntu (at least 09.04) or Debian system, the
following steps should compile and install Ipe into /usr/local:sudo apt-get install zlib1g-dev libqt4-dev
sudo apt-get install libfreetype6-dev libcairo2-dev
sudo apt-get install liblua5.1-0-dev gsfonts
cd src
make IPEPREFIX=/usr/local IPE_USE_ICONV=-DIPE_USE_ICONV
sudo make install IPEPREFIX=/usr/local
sudo cp ../fontmaps/gsfonts-fontmap.xml \
/usr/local/share/ipe/7.x.y/fontmap.xml
sudo ldconfigWhere 7.x.y has to be replaced by the current Ipe version.
The last line (ldconfig) may not be necessary, but can't hurt either.If you do not have such a system or this doesn't work for you, please
read on!`
vanno bene anche per il mac? Se no, potresti indicarmele più specificatamente (perchè è proprio qui che mi sono perso)?Grazie ancora
Fra
::
Buonasera a tutti.
Riesumo questo topic per chiedere informazioni su come installare Ipe su Mac (sistema operativo Snow Leopard). Ho cercato su internet ma non sono riuscito a trovare delle istruzioni chiare e soprattutto univoche.Ad esempio ho provato tramite MacPort ma non sono riuscito ad installare neanche quest’ultimo.Grazie
Fra
::
Non so se sia di aiuto ma posseggo un’applicazione che permette di disinstallare i programmi e tutti i relativi file. Si chiama AppZapper e quando tento di eliminare TeXShop mi indica, oltre al file di applicazione, altri tre file:
– TeXShop.LSShaderFileList.plist
– TeXShop.plist
– Cache.dbI primi due file si trovano in /Users/nomeutente/Library/Preferences/
Il terzo invece è in /Users/nomeutente/Library/Caches/TeXShop/Prova a cancellare questi e riprovare.
Ciao
Fra
::Tempo fa leggevo (non ricordo dove) di eventuali problemi con alcuni pacchetti aggiornati (mi sembra hyperref). Chi è informato può dirmi se sono stati risolti? Posso aggiornare tranquillamente?
Ciao,
ansys.Se ti riferisci a questo http://www.guit.sssup.it/phpBB2/viewtopic.php?t=9178&highlight=hyperref+errore (o questo http://www.guit.sssup.it/phpbb/viewtopic.php?t=9177) direi che la cosa è stata risolta poco dopo!
Ciao
Fra
::
Cerca e scarica Aquamacs. In pratica è Emacs per Mac già configurato per la scrittura di documenti .tex. Comunque se non lo hai mai utilizzato all’inizio è abbastanza ostico e credo che forse sia meglio utilizzare qualche altro editor (tipo TeXmakerX), anche perchè non credo che ti vincolino anche sulla scelta dell’editor.Ciao
Fra
28 Novembre 2010 alle 22:05 in risposta a: Pagine di dimensioni differenti: possibile con afterpage ? #53112::
Potrebbe avere qualcosa a che fare con questo: http://www.guit.sssup.it/phpbb/viewtopic.php?t=9177Ciao
Fra
-
AutoreRisposte