Risposte nei forum create
-
AutoreRisposte
-
::
Perchè in realtà devo inserire i caption, e spesso usare doppie figure. Quello che in realtà voglio fare è questo
`\begin{esempio}{Esempio}
TESTO\begin{figure}[htbp]
\centering
\includegraphics[width=35mm]{fig1.jpg}%
\qquad\qquad
\includegraphics[width=45mm]{fig2.jpg}
\caption{Didascalia}\label{fig1}
\end{figure}
\end{esempio}`Avevo cercato di fare l’esempio minimo compatibile 🙂
::
Problemino: all’interno dell’esempio sono impossibilitato ad inserire figure (utilizzando il comando \includegraphics).L’errore è il seguente:
`! LaTeX Error: Not in outer par mode.See the LaTeX manual or LaTeX Companion for explanation.
Type Hfor immediate help.
…l.21 \begin{figure}[htbp]
? H
You've lost some text. Try typingto proceed.
If that doesn't work, type Xto quit.` Il codice è il seguente
`\begin{esempio}{Esempio}
Testo vario
\begin{figure}[htbp] %Questa è la linea 21
\includegraphics[width=35mm]{storiachimica/struttura_grafite.jpg}%
\end{figure}
\end{esempio}`C’è possibilità di bypassare il problema in qualche modo?[
::
Grazie mille per la risposta 🙂 ho provato ad inserire nel preambolo quello che mi dai dato, ma ottengo questo errore`! LaTeX Error: Option clash for package graphicx.
See the LaTeX manual or LaTeX Companion for explanation.
Type Hfor immediate help.
…l.148 `
Non riesco però a capire a cosa si riferisca, ho provato ad escludere porzioni di codice per verificare se andasse in conflitto con qualcosa nel documento, ma niente. Inoltre il mio file .tex principale non ci arriva 148 linee, quindi nella mia ignoranza suppongo sia un qualche problema del pacchetto graphicx…Premendo H mi da
`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 typingto proceed.`
Ho provato ad inserire “,pdflatex” in documentclass ma nulla…
::
La chiamata del pacchetto è scritta bene (copiata dalla guida).In ogni caso è questa
`\usepackage{chemtimes}`Ecco il log
`! LaTeX Error: File `chmst-ps.sty' not found.
Type X to quit orto proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
l.68 \fi
*** (cannot \read from terminal in nonstop modes)
Here is how much of TeX's memory you used:
4522 strings out of 495261
61996 string characters out of 3180071
335790 words of memory out of 3000000
7699 multiletter control sequences out of 15000+200000
3940 words of font info for 15 fonts, out of 3000000 for 9000
14 hyphenation exceptions out of 8191
38i,1n,48p,228b,47s stack positions out of 5000i,500n,10000p,200000b,50000s
! ==> Fatal error occurred, no output PDF file produced!`
::
Eccolo (se ho capito cosa si intende per esempio minimo compatibile)`\documentclass[italian]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}\usepackage{xymtex}%XyMTeX (PostScript-compatible mode)
\usepackage{chemtimes}\title{Documento di esempio}
\mathversion{chem}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
% Definizione di Molecole %
% %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Molecolona
\def\cyandyereleaser{%
\bzdrv{1==OH;5==CH$_{3}$;4==OC$_{16}$H$_{33}$;%
2==\ryl(4==NH–SO$_{2}$){4==\bzdrh{1==(yl);2==OCH$_{2}$CH$_{2}$OCH$_{3}$;%
5==\ryl(2==NH–SO$_{2}$){4==\bzdrh{1==(yl);%
5==\ryl(2==SO$_{2}$–NH){4==\naphdrh{1==(yl);5==OH;%
8==\lyl(4==N=N){4==\bzdrh{4==(yl);1==NO$_{2}$;5==SO$_{2}$CH$_{3}$}}}}}}}}}}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Fine definizione molecole %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\begin{document}
\maketitle
\cyandyereleaser
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?
\cyandyereleaser
Il carbonio (C) \'e l'elemento avente numero atomico Z=6, ed appartiene al IV A gruppo della tavola periodica; per queste ragioni il carbonio possiede 4 elettroni di valenza sufficientemente vicini al nucleo dell'atomo quindi il carbonio \'e capace di formare solo legami covalenti di tipo omopolare (ad esempio il legame C\sbond C ) o molto poco polari (come il legame H\sbond C ).
La possibilit\'a di effettuare legami omopolari con altri atomi di carbonio permette a quest'ultimo di fomare catene di lunghezza teoricamente infinita. Tali catene possono essere lineari, ramificate o cicliche.
%Fine del Documento
\end{document}`
::
Allora, lato positivo: con l’ultimo comando che mi hai dato funziona.Ti riporto l’output del comando che mi hai detto di digitare
`$ sudo sudo -V
Sudo version 1.7.0Sudoers path: /etc/sudoers
Authentication methods: 'pam'
Syslog facility if syslog is being used for logging: authpriv
Syslog priority to use when user authenticates successfully: notice
Syslog priority to use when user authenticates unsuccessfully: alert
Send mail if the user is not in sudoers
Use a separate timestamp for each user/tty combo
Lecture user the first time they run sudo
Require users to authenticate by default
Root may run sudo
Allow some information gathering to give useful error messages
Require fully-qualified hostnames in the sudoers file
Visudo will honor the EDITOR environment variable
Set the LOGNAME and USER environment variables
Length at which to wrap log file lines (0 for no wrap): 80
Authentication timestamp timeout: 15 minutes
Password prompt timeout: 0 minutes
Number of tries to enter a password: 3
Umask to use or 0777 to use user's: 022
Path to mail program: /usr/sbin/sendmail
Flags for mail program: -t
Address to send mail to: root
Subject line for mail messages: *** SECURITY information for %h ***
Incorrect password message: Sorry, try again.
Path to authentication timestamp dir: /var/run/sudo
Default password prompt: [sudo] password for %p:
Default user to run commands as: root
Value to override user's $PATH with: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
Path to the editor for use by visudo: /usr/bin/editor
When to require a password for 'list' pseudocommand: any
When to require a password for 'verify' pseudocommand: all
File containing dummy exec functions: /usr/lib/sudo/sudo_noexec.so
File descriptors >= 3 will be closed before executing a command
Reset the environment to a default set of variables
Environment variables to check for sanity:
TERM
LINGUAS
LC_*
LANGUAGE
LANG
COLORTERM
Environment variables to remove:
RUBYOPT
RUBYLIB
PYTHONINSPECT
PYTHONPATH
PYTHONHOME
TMPPREFIX
ZDOTDIR
READNULLCMD
NULLCMD
FPATH
PERL5DB
PERL5OPT
PERL5LIB
PERLLIB
PERLIO_DEBUG
JAVA_TOOL_OPTIONS
SHELLOPTS
GLOBIGNORE
PS4
BASH_ENV
ENV
TERMCAP
TERMPATH
TERMINFO_DIRS
TERMINFO
_RLD*
LD_*
PATH_LOCALE
NLSPATH
HOSTALIASES
RES_OPTIONS
LOCALDOMAIN
PS4
SHELLOPTS
CDPATH
IFS
Environment variables to preserve:
http_proxy
XAUTHORIZATION
XAUTHORITY
TZ
PS2
PS1
PATH
MAIL
LS_COLORS
KRB5CCNAME
HOSTNAME
HOME
DISPLAY
COLORS
Locale to use while parsing sudoers: C
Local IP address and netmask pairs:
192.168.0.2 / 255.255.255.0
fe80::222:faff:fe4c:df8e / ffff:ffff:ffff:ffff::
`
-
AutoreRisposte
