- Questo topic ha 12 risposte, 4 partecipanti ed è stato aggiornato l'ultima volta 14 anni, 3 mesi fa da
cfiandra.
-
CreatoreTopic
-
17 Maggio 2012 alle 15:05 #73823
-
CreatoreTopic
-
AutoreRisposte
-
-
17 Maggio 2012 alle 15:22 #73824
-
17 Maggio 2012 alle 15:25 #73825::
Noisemaker” post=73003Buon Giorno!
sono nuovo… volevo saper come si fa ad ottenere un risultato come questo
cioè “bordare un teorema”
grazie!
noisemaker
Non ho visto l’immagine, ma il mio consiglio è di usare il pacchetto mdframed. Trovi la pagina ufficiale del pacchetto a questo indirizzo web.
Ciao
Claudio
-
17 Maggio 2012 alle 15:49 #73826::
Io l’immagine l’ho vista (si tratta di copiare la riga del link e incollarla nell capmo degli url di un qualsisi browser; strano che la riga non fosse blu e il testo usato come ancora per l’url).È microscopica e ingrandendola il testo si sfuma completamante lasciando delle striature grigie al posto delle parole. Tutta via si capisce che cosa vorrebbe ottenere @noisemaker. vorrebbe mettere nel bordo fouri della giustezza un filetto nero o colorato abbastanza evidente per richiamare il teorema.So che c’è un pacchetto per fare queste cose.
@cfiandra, non credo che mdframed serva allo scopo, o forse si? puoi confermarlo?
-
17 Maggio 2012 alle 16:53 #73827::
OldClaudio” post=73011 @cfiandra, non credo che mdframed serva allo scopo, o forse si? puoi confermarlo?
Dunque, non avevo mai provato in prima persona ad usare mdframed, ma avevo sfogliato la documentazione e mi sembra che sia proprio il pacchetto indicato. Ho realizzato l’esempio per riprodurre un filetto allineato a sinistra, ma sono onesto dicendo che qualche problemino ad usare il pacchetto l’ho avuto 😀 (nonostante carichi showexpl come richiesto dalla documentazione di questo esempio ricevo errore sulla linea in cui si imposta \global 😕 ).
Tornando all’esempio, ho adattato il codice per non avere il problema (basta impostare le opzioni desiderate nell’ambiente mdframed nello stesso modo con cui si fa con TikZ):
`
\documentclass{report}
\usepackage{showexpl}
\usepackage[framemethod=Tikz]{mdframed}\newcommand\ExampleText{%
An \textit{inhomogeneous linear} differential equation
has the form
\begin{center}
L[v ] = f,
\end{center}\noindent
where $L$ is a linear differential operator, $v$ is
the dependent variable, and $f$ is a given non−zero
function of the independent variables alone.
}\begin{document}
\begin{mdframed}[topline=false,rightline=false,bottomline=false,outerlinewidth=2pt]
\ExampleText
\end{mdframed}\end{document}
`
si ottiene:[attachment=294]Immagine_2012-05-17.jpg[/attachment]
Ciao
Claudio
Attachments:
You must be logged in to view attached files. -
17 Maggio 2012 alle 20:36 #73828
-
18 Maggio 2012 alle 6:01 #73829::
…non capisco perche non mi funziona questo codice, mi pare di aver seguito le vostre indicazioni…. ma niente[code]\newcounter{theo}[section]
\newenvironment{theo}[1][]{%
\stepcounter{theo}%
\ifstrempty{#1}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=blue!20]
{\strut Theorem~\thetheo};}}
}%
{\mdfsetup{%
frametitle={%
\tikz[baseline=(current bounding box.east),outer sep=0pt]
\node[anchor=east,rectangle,fill=blue!20]
{\strut Theorem~\thetheo:~#1};}}%
}%
\mdfsetup{innertopmargin=10pt,linecolor=blue!20,%
linewidth=2pt,topline=true,
frametitleaboveskip=\dimexpr
-
18 Maggio 2012 alle 6:03 #73830::
Noisemaker” post=73036…non capisco perche non mi funziona questo codice, mi pare di aver seguito le vostre indicazioni…. ma niente
\documentclass{report}
\usepackage{showexpl}
\usepackage[framemethod=Tikz]{mdframed}\mdfsetup{skipabove=\topskip,skipbelow=\topskip}
\newrobustcmd\ExampleText{%
An \textit{inhomogeneous linear} differential equation
has the form
\begin{align}
L[v ] = f,
\end{align}
where $L$ is a linear differential operator, $v$ is
the dependent variable, and $f$ is a given nonDipende da quale distribuzione hai… come sempre meglio una TeXLive completa! Comunque sarebbe meglio se tu mostrassi l’errore del log piuttosto che il codice. 🙂
Ciao
Claudio
-
18 Maggio 2012 alle 6:04 #73831::
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (Web2C 2011)
restricted \write18 enabled.
entering extended mode
(./senza-nome-3.tex
LaTeX2e <2011/06/27>
Babeland hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2011-07-01, ngerman-x-2011-07-01, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, galician, german, ngerman, swissgerman, monogreek, greek, hungarian,
icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, marathi, or
iya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, kurmanji,
lao, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk, pol
ish, portuguese, romanian, russian, sanskrit, serbian, serbianc, slovak, sloven
ian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, welsh, loaded
.
(c:/texlive/2011/texmf-dist/tex/latex/base/report.cls
Document Class: report 2007/10/19 v1.4h Standard LaTeX document class
(c:/texlive/2011/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2011/texmf-dist/tex/latex/showexpl/showexpl.sty
(c:/texlive/2011/texmf-dist/tex/latex/listings/listings.sty
(c:/texlive/2011/texmf-dist/tex/latex/graphics/keyval.sty)
(c:/texlive/2011/texmf-dist/tex/latex/listings/lstmisc.sty)
(c:/texlive/2011/texmf-dist/tex/latex/listings/listings.cfg))
(c:/texlive/2011/texmf-dist/tex/latex/tools/calc.sty)
(c:/texlive/2011/texmf-dist/tex/latex/base/ifthen.sty)
(c:/texlive/2011/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/texlive/2011/texmf-dist/tex/latex/graphics/graphics.sty
(c:/texlive/2011/texmf-dist/tex/latex/graphics/trig.sty)
(c:/texlive/2011/texmf-dist/tex/latex/latexconfig/graphics.cfg)
(c:/texlive/2011/texmf-dist/tex/latex/pdftex-def/pdftex.def
(c:/texlive/2011/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(c:/texlive/2011/texmf-dist/tex/generic/oberdiek/ltxcmds.sty))))
(c:/texlive/2011/texmf-dist/tex/latex/varwidth/varwidth.sty)
(c:/texlive/2011/texmf-dist/tex/latex/listings/lstmisc.sty))
(c:/texlive/2011/texmf-dist/tex/latex/mdframed/mdframed.sty
(c:/texlive/2011/texmf-dist/tex/latex/oberdiek/kvoptions.sty
(c:/texlive/2011/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty
(c:/texlive/2011/texmf-dist/tex/generic/oberdiek/etexcmds.sty
(c:/texlive/2011/texmf-dist/tex/generic/oberdiek/ifluatex.sty))))
(c:/texlive/2011/texmf-dist/tex/latex/etex-pkg/etex.sty)
(c:/texlive/2011/texmf-dist/tex/latex/graphics/color.sty
(c:/texlive/2011/texmf-dist/tex/latex/latexconfig/color.cfg))
(c:/texlive/2011/texmf-dist/tex/latex/etoolbox/etoolbox.sty)
(c:/texlive/2011/texmf-dist/tex/latex/oberdiek/zref-abspage.sty
(c:/texlive/2011/texmf-dist/tex/latex/oberdiek/zref-base.sty
(c:/texlive/2011/texmf-dist/tex/generic/oberdiek/kvdefinekeys.sty)
(c:/texlive/2011/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty
(c:/texlive/2011/texmf-dist/tex/generic/oberdiek/ifpdf.sty))
(c:/texlive/2011/texmf-dist/tex/latex/oberdiek/auxhook.sty))
(c:/texlive/2011/texmf-dist/tex/generic/oberdiek/atbegshi.sty))
(c:/texlive/2011/texmf-dist/tex/latex/pgf/frontendlayer/tikz.sty
(c:/texlive/2011/texmf-dist/tex/latex/pgf/basiclayer/pgf.sty
(c:/texlive/2011/texmf-dist/tex/latex/pgf/utilities/pgfrcs.sty
(c:/texlive/2011/texmf-dist/tex/generic/pgf/utilities/pgfutil-common.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/utilities/pgfutil-latex.def
(c:/texlive/2011/texmf-dist/tex/latex/ms/everyshi.sty))
(c:/texlive/2011/texmf-dist/tex/generic/pgf/utilities/pgfrcs.code.tex))
(c:/texlive/2011/texmf-dist/tex/latex/pgf/basiclayer/pgfcore.sty
(c:/texlive/2011/texmf-dist/tex/latex/pgf/systemlayer/pgfsys.sty
(c:/texlive/2011/texmf-dist/tex/generic/pgf/systemlayer/pgfsys.code.tex
(c:/texlive/2011/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex
(c:/texlive/2011/texmf-dist/tex/generic/pgf/utilities/pgfkeysfiltered.code.tex)
) (c:/texlive/2011/texmf-dist/tex/generic/pgf/systemlayer/pgf.cfg)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-pdftex.def
(c:/texlive/2011/texmf-dist/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def))
)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/systemlayer/pgfsyssoftpath.code.tex
)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/systemlayer/pgfsysprotocol.code.tex
)) (c:/texlive/2011/texmf-dist/tex/latex/xcolor/xcolor.sty
(c:/texlive/2011/texmf-dist/tex/latex/latexconfig/color.cfg))
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcore.code.tex
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmath.code.tex
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathcalc.code.tex
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathutil.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathparser.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.code.tex
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.basic.code.te
x)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.trigonometric
.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.random.code.t
ex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.comparison.co
de.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.base.code.tex
)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.round.code.te
x)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathfunctions.misc.code.tex
))) (c:/texlive/2011/texmf-dist/tex/generic/pgf/math/pgfmathfloat.code.tex))
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathconstruct.cod
e.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathusage.code.te
x)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcorescopes.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcoregraphicstate.code
.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransformations.c
ode.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcorequick.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreobjects.code.tex)(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepathprocessing.co
de.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcorearrows.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreshade.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreimage.code.tex
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcoreexternal.code.tex
))
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcorelayers.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcoretransparency.code
.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepatterns.code.tex
)))
(c:/texlive/2011/texmf-dist/tex/generic/pgf/modules/pgfmoduleshapes.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/modules/pgfmoduleplot.code.tex)
(c:/texlive/2011/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-0-65.st
y)
(c:/texlive/2011/texmf-dist/tex/latex/pgf/compatibility/pgfcomp-version-1-18.st
y)) (c:/texlive/2011/texmf-dist/tex/latex/pgf/utilities/pgffor.sty
(c:/texlive/2011/texmf-dist/tex/latex/pgf/utilities/pgfkeys.sty
(c:/texlive/2011/texmf-dist/tex/generic/pgf/utilities/pgfkeys.code.tex))
(c:/texlive/2011/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex))
(c:/texlive/2011/texmf-dist/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex
(c:/texlive/2011/texmf-dist/tex/generic/pgf/libraries/pgflibraryplothandlers.co
de.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/modules/pgfmodulematrix.code.tex)
(c:/texlive/2011/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzli
brarytopaths.code.tex)))
(c:/texlive/2011/texmf-dist/tex/latex/mdframed/md-frame-1.mdf))
(./senza-nome-3.aux) (c:/texlive/2011/texmf-dist/tex/context/base/supp-pdf.mkii[Loading MPS to PDF converter (version 2006.09.02).]
) (c:/texlive/2011/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(c:/texlive/2011/texmf-dist/tex/latex/oberdiek/grfext.sty)
(c:/texlive/2011/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
ABD: EveryShipout initializing macros! Package keyval Error: frametitleaboveskip undefined.
See the keyval package documentation for explanation.
Type Hfor immediate help.
…l.39 \begin{theo}[Inhomogeneous Linear]
?
-
18 Maggio 2012 alle 12:03 #73832
-
20 Maggio 2012 alle 4:53 #73833
-
20 Maggio 2012 alle 6:29 #73834
-
20 Maggio 2012 alle 8:10 #73835::
Noisemaker” post=73163si l’esempio postato funziona, quello che ho postato io successivamente, non bva invece!
Ok! 🙂
Quindi, scusa, ma non capisco quale sia il problema ad usare il pacchetto: dopo aver personalizzato l’ambiente, inserisci il tuo teorema. Nel tuo codice, mi pare tu stia cercando di creare un’ambiente per inserire il teorema con la personalizzazione di mdframed: la cosa non mi pare assolutamente necessaria. Come dicevo non conosco bene il pacchetto, ma scommetterei che nella documentazione ci sia già la risposta al tuo tipo di problema.
Ciao
Claudio
-
-
AutoreRisposte
- Devi essere connesso per rispondere a questo topic.