Re: macro con parametro

#10983
Up
0
Down
::


avete ragione, purtroppo posso inseririvi il file log, perché dalla finestra di texmaker mi dice sono che c’é stato un errore ma niente altro

Log file
`This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded format=latex 2006.10.26) 30 OCT 2006 15:57
entering extended mode
**prova_macro.tex
(prova_macro.tex
LaTeX2e <2003/12/01>
Babel and hyphenation patterns for english, dumylang, nohyphenation, ge
rman, ngerman, french, loaded.
(C:\!Log_max\MikTex\tex\latex\base\article.cls
Document Class: article 2004/02/16 v1.4f Standard LaTeX document class
(C:\!Log_max\MikTex\tex\latex\base\size12.clo
File: size12.clo 2004/02/16 v1.4f Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(C:\!Log_max\MikTex\tex\latex\geometry\geometry.sty
Package: geometry 2002/07/08 v3.2 Page Geometry

(C:\!Log_max\MikTex\tex\latex\graphics\keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV@toks@=\toks14
)
\Gm@cnth=\count87
\Gm@cntv=\count88
\c@Gm@tempcnt=\count89
\Gm@bindingoffset=\dimen103
\Gm@wd@mp=\dimen104
\Gm@odd@mp=\dimen105
\Gm@even@mp=\dimen106
\Gm@dimlist=\toks15

(C:\!Log_max\MikTex\tex\latex\geometry\geometry.cfg))
(C:\!Log_max\MikTex\tex\latex\base\inputenc.sty
Package: inputenc 2004/02/05 v1.0d Input encoding file

(C:\!Log_max\MikTex\tex\latex\base\latin1.def
File: latin1.def 2004/02/05 v1.0d Input encoding file
))
(C:\!Log_max\MikTex\tex\latex\lm\lmodern.sty
Package: lmodern 2005/02/28
)
(C:\!Log_max\MikTex\tex\latex\graphics\graphicx.sty
Package: graphicx 1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)

(C:\!Log_max\MikTex\tex\latex\graphics\graphics.sty
Package: graphics 2001/07/07 v1.0n Standard LaTeX Graphics (DPC,SPQR)

(C:\!Log_max\MikTex\tex\latex\graphics\trig.sty
Package: trig 1999/03/16 v1.09 sin cos tan (DPC)
)
(C:\!Log_max\MikTex\tex\latex\00miktex\graphics.cfg
File: graphics.cfg 2003/03/12 v1.1 MiKTeX 'graphics' configuration
)
Package graphics Info: Driver file: pdftex.def on input line 80.

(C:\!Log_max\MikTex\tex\latex\graphics\pdftex.def
File: pdftex.def 2005/06/20 v0.03m graphics/color for pdftex
\Gread@gobject=\count90
))
\Gin@req@height=\dimen107
\Gin@req@width=\dimen108
)
(C:\!Log_max\MikTex\tex\latex\fancyhdr\fancyhdr.sty
\fancy@headwidth=\skip43
\f@ncyO@elh=\skip44
\f@ncyO@erh=\skip45
\f@ncyO@olh=\skip46
\f@ncyO@orh=\skip47
\f@ncyO@elf=\skip48
\f@ncyO@erf=\skip49
\f@ncyO@olf=\skip50
\f@ncyO@orf=\skip51
)
(C:\!Log_max\MikTex\tex\latex\hyperref\hyperref.sty
Package: hyperref 2003/11/30 v6.74m Hypertext links for LaTeX
\@linkdim=\dimen109
\Hy@linkcounter=\count91
\Hy@pagecounter=\count92

(C:\!Log_max\MikTex\tex\latex\hyperref\pd1enc.def
File: pd1enc.def 2003/11/30 v6.74m Hyperref: PDFDocEncoding definition (HO)
)
(C:\!Log_max\MikTex\tex\latex\00miktex\hyperref.cfg
File: hyperref.cfg 2003/03/08 v1.0 MiKTeX 'hyperref' configuration
)
Package hyperref Info: Hyper figures OFF on input line 1880.
Package hyperref Info: Link nesting OFF on input line 1885.
Package hyperref Info: Hyper index ON on input line 1888.
Package hyperref Info: Plain pages ON on input line 1893.
Package hyperref Info: Backreferencing OFF on input line 1900.

Implicit mode ON; LaTeX internals redefined
Package hyperref Info: Bookmarks ON on input line 2004.
(C:\!Log_max\MikTex\tex\latex\ltxmisc\url.sty
\Urlmuskip=\muskip10
Package: url 2005/06/27 ver 3.2 Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 2143.
\Fld@menulength=\count93
\Field@Width=\dimen110
\Fld@charsize=\dimen111
\Choice@toks=\toks16
\Field@toks=\toks17
Package hyperref Info: Hyper figures OFF on input line 2618.
Package hyperref Info: Link nesting OFF on input line 2623.
Package hyperref Info: Hyper index ON on input line 2626.
Package hyperref Info: backreferencing OFF on input line 2633.
Package hyperref Info: Link coloring OFF on input line 2638.
\c@Item=\count94
\c@Hfootnote=\count95
)
*hyperref using default driver hpdftex*
(C:\!Log_max\MikTex\tex\latex\hyperref\hpdftex.def
File: hpdftex.def 2003/11/30 v6.74m Hyperref driver for pdfTeX

(C:\!Log_max\MikTex\tex\latex\psnfss\pifont.sty
Package: pifont 2005/04/12 PSNFSS-v9.2a Pi font support (SPQR)
LaTeX Font Info: Try loading font information for U+pzd on input line 63.

(C:\!Log_max\MikTex\tex\latex\psnfss\upzd.fd
File: upzd.fd 2001/06/04 font definitions for U/pzd.
)
LaTeX Font Info: Try loading font information for U+psy on input line 64.

(C:\!Log_max\MikTex\tex\latex\psnfss\upsy.fd
File: upsy.fd 2001/06/04 font definitions for U/psy.
))
\Fld@listcount=\count96
\@outlinefile=\write3
)
Package hyperref Info: Option `colorlinks' set `true' on input line 7.

! Illegal parameter number in definition of \temp@a.

1
l.13 \fancyhead[L]{Plan #1}

You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.

! Illegal parameter number in definition of \f@ncyelh.

1
l.13 \fancyhead[L]{Plan #1}

You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.

! Illegal parameter number in definition of \temp@a.

1
l.13 \fancyhead[L]{Plan #1}

You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.

! Illegal parameter number in definition of \f@ncyolh.

1
l.13 \fancyhead[L]{Plan #1}

You meant to type ## instead of #, right?
Or maybe a } was forgotten somewhere earlier, and things
are all screwed up? I'm going to assume that you meant ##.

(prova_macro.aux)
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 21.
LaTeX Font Info: … okay on input line 21.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 21.
LaTeX Font Info: … okay on input line 21.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 21.
LaTeX Font Info: … okay on input line 21.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 21.
LaTeX Font Info: … okay on input line 21.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 21.
LaTeX Font Info: … okay on input line 21.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 21.
LaTeX Font Info: … okay on input line 21.
LaTeX Font Info: Checking defaults for PD1/pdf/m/n on input line 21.
LaTeX Font Info: … okay on input line 21.
LaTeX Font Info: Try loading font information for OT1+lmr on input line 21.
LaTeX Font Info: No file OT1lmr.fd. on input line 21.

LaTeX Font Warning: Font shape `OT1/lmr/m/n' undefined
(Font) using `OT1/cmr/m/n' instead on input line 21.

——————– Geometry parameters
paper: a4paper
landscape: true
twocolumn: —
twoside: —
asymmetric: —
h-parts: 71.13188pt, 702.78308pt, 71.13188pt
v-parts: 42.67912pt, 512.14963pt, 42.67912pt
hmarginratio: —
vmarginratio: —
lines: —
heightrounded: —
bindingoffset: 0.0pt
truedimen: —
includehead: —
includefoot: —
includemp: —
driver: pdftex
——————– Page layout dimensions and switches
\paperwidth 845.04684pt
\paperheight 597.50787pt
\textwidth 702.78308pt
\textheight 512.14963pt
\oddsidemargin -1.1381pt
\evensidemargin -1.1381pt
\topmargin -66.59087pt
\headheight 42.67912pt
\headsep 22.76228pt
\footskip 30.0pt
\marginparwidth 35.0pt
\marginparsep 10.0pt
\columnsep 10.0pt
\skip\footins 10.8pt plus 4.0pt minus 2.0pt
\hoffset 0.0pt
\voffset 0.0pt
\mag 1000

(1in=72.27pt, 1cm=28.45pt)
———————–
(C:\!Log_max\MikTex\tex\context\base\supp-pdf.tex
(C:\!Log_max\MikTex\tex\context\base\supp-mis.tex
loading : Context Support Macros / Miscellaneous (2004.10.26)
\protectiondepth=\count97
\scratchcounter=\count98
\scratchtoks=\toks18
\scratchdimen=\dimen112
\scratchskip=\skip52
\scratchmuskip=\muskip11
\scratchbox=\box26
\scratchread=\read1
\scratchwrite=\write4
\zeropoint=\dimen113
\onepoint=\dimen114
\onebasepoint=\dimen115
\minusone=\count99
\thousandpoint=\dimen116
\onerealpoint=\dimen117
\emptytoks=\toks19
\nextbox=\box27
\nextdepth=\dimen118
\everyline=\toks20
\!!counta=\count100
\!!countb=\count101
\recursecounter=\count102
)
loading : Context Support Macros / PDF (2004.03.26)
\nofMPsegments=\count103
\nofMParguments=\count104
\MPscratchCnt=\count105
\MPscratchDim=\dimen119
\MPnumerator=\count106
\everyMPtoPDFconversion=\toks21
) (C:\!Log_max\MikTex\tex\latex\graphics\color.sty
Package: color 1999/02/16 v1.0i Standard LaTeX Color (DPC)
LaTeX Info: Redefining \color on input line 71.

(C:\!Log_max\MikTex\tex\latex\00miktex\color.cfg
File: color.cfg 2003/03/08 v1.0 MiKTeX 'color' configuration
)
Package color Info: Driver file: pdftex.def on input line 125.
)
Package hyperref Info: Link coloring ON on input line 21.

(C:\!Log_max\MikTex\tex\latex\hyperref\nameref.sty
Package: nameref 2003/12/03 v2.21 Cross-referencing by name of section
\c@section@level=\count107
)
LaTeX Info: Redefining \ref on input line 21.
LaTeX Info: Redefining \pageref on input line 21.
(prova_macro.out)
(prova_macro.out)
<"H:/Hotels & Convention Centers/BS Base Audiovisuel/PLANS_EVENTS_JPG/"SEPCO_UN IFA_RC_161106_1006_31.jpg, id=7, 1294.8375pt x 934.49126pt>
File: “H:/Hotels & Convention Centers/BS Base Audiovisuel/PLANS_EVENTS_JPG/”SEP
CO_UNIFA_RC_161106_1006_31.jpg Graphic file (type jpg)

! LaTeX Error: Command \img already defined.
Or name \end… illegal, see p.192 of the manual.

See the LaTeX manual or LaTeX Companion for explanation.
Type H for immediate help.

l.33 …nd{\img}{\begingroup\catcode`\_=12 \doimg}

Your command was ignored.
Type I to replace it with another command,
or
to continue without it.

File: “H:/Hotels & Convention Centers/BS Base Audiovisuel/PLANS_EVENTS_JPG/”SEP
CO_UNIFA_RC_161106_1006_31.jpg Graphic file (type jpg)


! You can't use `macro parameter character #' in horizontal mode.
\f@ncyolh ->Plan ##
1\strut
l.45 \end{document}

Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.


File: Logo_DBS.jpg Graphic file (type jpg)
[1{psfonts.map} ]
! You can't use `macro parameter character #' in horizontal mode.
\f@ncyolh ->Plan ##
1\strut
l.45 \end{document}

Sorry, but I'm not programmed to handle this case;
I'll just pretend that you didn't ask for it.
If you're in the wrong mode, you might be able to
return to the right one by typing `I}' or `I$' or `I\par'.

File: Logo_DBS.jpg Graphic file (type jpg)
[2] (prova_macro.aux)

LaTeX Font Warning: Some font shapes were not available, defaults substituted.

)
Here is how much of TeX's memory you used:
3192 strings out of 95515
41629 string characters out of 1189208
95021 words of memory out of 1098292
6173 multiletter control sequences out of 60000
4628 words of font info for 17 fonts, out of 1000000 for 2000
14 hyphenation exceptions out of 4999
29i,15n,43p,228b,347s stack positions out of 5000i,500n,10000p,200000b,32768s
PDF statistics:
21 PDF objects out of 300000
4 named destinations out of 300000
27 words of extra memory for PDF output out of 65536

Output written on prova_macro.pdf (2 pages, 440642 bytes).[code]
`

speriamo bene [/code]

Go to top