Risposte nei forum create
-
AutoreRisposte
-
::
Grazie per i consigli. Ho installato aspell e il dizionario di inglese qui: http://aspell.net/win32/. La versione è datata e a 32 bit, ma non ho saputo fare altro. Quindi, nel mio file .emacs ho inserito:`
(add-to-list 'exec-path “C:/Program Files (x86)/Aspell/bin/”)(setq ispell-program-name “aspell”)
(setq ispell-personal-dictionary “C:/path/to/your/.ispell”)
(require 'ispell)
(global-set-key (kbd ““) 'ispell-word)
(global-set-key (kbd “C-“) 'flyspell-mode)
`Sembra funzionare. Per usare il correttore ho seguito le indicazioni che ho trovato qui: https://www.emacswiki.org/emacs/FlySpell .
Grazie a tutti.
Ciao,
davide
P.S. Ho trovato una versione di Emacs per Android. Peccato, però, che Emacs sia concepito per la tastiera di un vero pc. Da cui tutti i comandi che richiedono l’uso contemporaneo di Ctrl, o Esc e qualcos’altro. Impossibile al cellulare.
1 Agosto 2017 alle 10:59 in risposta a: come ridurre il numero dei dati in un grafico [risolto] #111070::
Quindi, il grafico di due mesi sarebbe questo:`
\documentclass[12pt]{amsart}
\usepackage{latexsym,amssymb}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{pgfplots}
\pgfplotsset{width=10cm, compat=1.9}
\usepackage{tikz}\begin{document}
\section{Sezione}
\pgfplotsset{width=16cm,compat=1.9}\begin{figure}[!h]
\begin{tikzpicture}[rotate=90]
\begin{axis}[
title={\textsc{Titolo}},
xlabel={coordinata-$x$},
ylabel={coordinata-$y$},
xmin=1, xmax=56,
ymin=0, ymax=10,
xtick={1,7,14,21,28,35,42,49,56},
ytick={0,1,2,3,4,5,6,7,8,9,10},
legend pos=north west,
ymajorgrids=true,
grid style=dashed,
]\addplot[gray,
%color=green,
mark=*,
mark options={black},
]
coordinates {
(1,6)(2,7)(3,8)(4,7)(5,7)(6,10)(7,8)(8,6)(9,9)(10,6)(11,7)(12,2)(13,2)(14,2)(15,4)(16,9)(17,7)(18,7)(19,2)(20,2)(21,8)(22,4)(23,2)(24,2)(25,2)(26,2)(27,4)(28,7)(29,5)(30,10)(31,8)(32,7)(33,4)(34,6)(35,8)(36,4)(37,5)(38,10)(39,9)(40,2)(41,2)(42,2)(43,2)(44,2)(45,2)(46,9)(47,2)(48,7)(49,2)(50,2)(51,9)(52,7)(53,2)(54,2)(55,2)(56,2)
};
\end{axis}
\end{tikzpicture}
\caption{\mbox{}}
\end{figure}\end{document}
`
Grazie. Un altro problema risolto.
Ciao,
davide
1 Agosto 2017 alle 7:04 in risposta a: come ridurre il numero dei dati in un grafico [risolto] #111068::
Ok. Ecco il mwe:`
\documentclass[12pt]{amsart}
\usepackage{latexsym,amssymb}
\usepackage[italian]{babel}
\usepackage[T1]{fontenc}
\usepackage{times}
\usepackage{pgfplots}
\pgfplotsset{width=10cm, compat=1.9}
\usepackage{tikz}\begin{document}
\section{Sezione}
\pgfplotsset{width=16cm,compat=1.9}\begin{figure}[!h]
\begin{tikzpicture}[rotate=90]
\begin{axis}[
title={\textsc{Titolo}},
xlabel={coordinata-$x$},
ylabel={coordinata-$y$},
xmin=1, xmax=28,
ymin=0, ymax=10,
xtick={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28},
ytick={0,1,2,3,4,5,6,7,8,9,10},
legend pos=north west,
ymajorgrids=true,
grid style=dashed,
]\addplot[gray,
%color=green,
mark=*,
mark options={black},
]
coordinates {
(1,5)(2,10)(3,8)(4,7)(5,4)(6,6)(7,8)(8,4)(9,5)(10,10)(11,9)(12,2)(13,2)(14,2)(15,2)(16,2)(17,2)(18,9)(19,2)(20,7)(21,2)(22,2)(23,9)(24,7)(25,2)(26,2)(27,2)(28,2)
};
\end{axis}
\end{tikzpicture}
\caption{\mbox{}}
\end{figure}\end{document}
`
Per il momento va bene. Si tratta di un grafico che registra un valore per ogni giorno. Queste sono le prime quattro settimane. Fra un mese, dovrò aggiungere altre quattro settimane di valori. Certo, posso scalare il grafico, ma sarebbe illeggibile. Posso diminuire la grandezza del grafico, ma già adesso le coordinate x sono molto attaccate (quelle a due cifre), se rimpicciolisco cosa diventa? Posso fare due grafici, ma vorrei avere un colpo d’occhio su tutto. Per questo, ho domandato come posso diminuire i dati. Magari con qualche algoritmo o una rappresentazione diversa.
Adesso, spero di essere stato chiaro.
Grazie. Ciao,
davide
::
Non funziona. Semplicemente, al posto di essere allineate verticalmente, la figura in basso è più spostata. Ho risolto con questo codice:`
\documentclass[12pt]{article}
\usepackage{xcolor,colortbl}
\usepackage{tabulary}
\usepackage{pgfplots}
\usepackage{tikz}
\usepackage{ctable}
\usepackage{floatrow}\begin{document}
\begin{center}
\begin{figure}
\begin{floatrow}
\pgfplotsset{width=7cm, compat=1.9}
\ffigbox{
\begin{tikzpicture}
\hspace{-3mm}
\begin{axis}[
title={\textsc{Prima figura}},
xlabel={coordinata-$x$},
ylabel={coordinata-$y$},
xmin=1, xmax=4,
ymin=0, ymax=10,
xtick={1,2,3,4},
ytick={0,1,2,3,4,5,6,7,8,9,10},
legend pos=north west,
ymajorgrids=true,
grid style=dashed,
]\addplot[gray,
mark=*,
mark options={black},
]
coordinates {
(1,7.5)(2,4.8)(3,5.5)(4,3.2)
};
\end{axis}
\end{tikzpicture}}{\caption{}}
\hspace{12pt}
\ffigbox{
\begin{tikzpicture}
\begin{axis}[
title={\textsc{Seconda figura}},
xlabel={coordinata-$x$},
ylabel={coordinata-$y$},
xmin=1, xmax=4,
ymin=0, ymax=10,
xtick={1,2,3,4},
ytick={0,1,2,3,4,5,6,7,8,9,10},
legend pos=north west,
ymajorgrids=true,
grid style=dashed,
]\addplot[gray,
mark=*,
mark options={black},
]
coordinates {
(1,6.8)(2,4.8)(3,3.7)(4,3.7)
};
\end{axis}
\end{tikzpicture}}{\caption{}}
\end{floatrow}
\end{figure}
\end{center}\end{document}
Grazie in ogni caso. Spero di essere stato d'aiuto a qualcuno.
Ciao,
davide
`
::
Ho provato anche con il percorso completo. Niente.Ecco il mio file .emacs. Magari ci sono errori:
`
;;(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.
;; '(send-mail-function (quote smtpmail-send-it))
;; '(smtpmail-smtp-server “smtp.gmail.com”)
;;'(smtpmail-smtp-service 587))
;;(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.
;;);;(setq default-directory “C:/Users/utente/”)
;;(load-theme 'abyss t)
;;(load-theme 'hydandata-light t)
;;(load-theme 'mustard t)
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.;;(setq debug-on-error t)
;;(require 'package)
;;(package-initialize)
;;(setq package-user-dir “~/.emacs.d/elpa2”)
(package-initialize)
(load-theme 'blackboard t)
;;(load-theme 'borland-blue t)
;;(load-theme 'blue-mood t)
(custom-theme-set-faces
'blackboard
'(font-latex-italic-face ((t (:slant italic :foreground “dodger blue”))))
'(bold ((t (:weight bold)))))
'(italic ((t (:slant italic :foreground “dodger blue”))))
'(emphasize ((t (:slant italic :foreground “red”))))(cd “C:/Users/utente”)
(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.
'(doc-view-continuous t)
'(doc-view-ghostscript-program “gswin64c” t)
'(package-archives
(quote
((“melpa” . “http://melpa.org/packages”😉
(“gnu” . “http://elpa.gnu.org/packages/”))))
'(package-selected-packages
(quote
(use-package-chords pdf-tools yapfify use-package latex-preview-pane auctex)))
'(send-mail-function (quote smtpmail-send-it))
'(smtpmail-smtp-server “smtp.gmail.com”)
'(smtpmail-smtp-service 587))
(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.
)(setq TeX-PDF-mode t)
(setq TeX-source-correlate-mode t)
(setq TeX-source-correlate-method 'synctex)
(setq TeX-view-program-list
'((“Sumatra PDF” (“\”C:/Program Files/SumatraPDF/SumatraPDF.exe\” -reuse-instance” (mode-io-correlate ” -forward-search %b %n “) ” %o”))))
(setq TeX-view-program-selection
'(((output-dvi style-pstricks)
“dvips and start”)
(output-dvi “Dviout”)
(output-pdf “Sumatra PDF”)
(output-html “start”)))(setq doc-view-ghostscript-program “gswin64c”)
;;(setq auto-mode-alist (cons '(“\\.latex$” . latex-mode) auto-mode-alist))
(defun my-latex-mode ()
(visual-line-mode +1)1
(assq-delete-all 'output-pdf TeX-view-program-selection)
(add-to-list 'TeX-view-program-selection '(output-pdf “Sumatra PDF”)))(add-hook 'LaTeX-mode-hook 'my-latex-mode)
(set-default 'preview-scale-function 2)
(defun update-org-latex-fragment-scale ()
(let ((text-scale-factor (expt text-scale-mode-step text-scale-mode-amount)))
(plist-put org-format-latex-options :scale (* 2.3 text-scale-factor)))
)
(add-hook 'text-scale-mode-hook 'update-org-latex-fragment-scale)(add-hook 'LaTeX-mode-hook 'latex-preview-pane-mode)
;;(latex-preview-pane-enable)
(setq doc-view-ghostscript-program “C:/Program Files/gs/gs9.21/bin/gswin64.exe”)
(package-initialize)
`Grazie. Ciao,
davide
-
AutoreRisposte