I want to do this mdframed model:


Which is the example 6 of the page 21 and 22 of this pdf: http://texdoc.net/texmf-dist/doc/latex/mdframed/mdframed.pdf

My question is if it is correct or not, and if it's correct, which packages are the ones that I need, because I copy it with the blankspaces, putting all packages in the pdf, and it doesn't work (I copied the ExampleText too).

The mistakes that are shown when I compile says:

-Missing number, treated as zero \protect -Illegal unit of measure (pt inserted)

  • 2
    Welcome to TeX.SX! Please help us to help you and add a minimal working example (MWE) that illustrates your problem. It will be much easier for us to reproduce your situation and find out what the issue is when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – onewhaleid Feb 13 '15 at 6:21

Here is the compilable code:

%% the following is commaon for all examples in mdframed manual
An \textit{inhomogeneous linear} differential equation has the form
L[v ] = f,
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.
%%% upto here
\tikz[baseline=(current bounding box.east),outer sep=0pt]
{\strut Theorem~\thetheo};}}
\tikz[baseline=(current bounding box.east),outer sep=0pt]
{\strut Theorem~\thetheo:~#1};}}%

    \begin{theo}[Inhomogeneous Linear]

enter image description here

Compare it with the code you have assembled to see what is missing.

One thing which I forgot to mention and reminded by Karl, is the in −\ht (frametitleaboveskip=\dimexpr−\ht\strutbox\relax to be precise) which is a unicode symbol (U+2212 char, thanks to Karl for the code) which should be minus sign.

  • 1
    Copying and pasting from the manual, there is a \dimexpr−\ht\strutbox\relax with a U+2212 char instead of the minus sign as in the correct \dimexpr-\ht\strutbox\relax. – karlkoeller Feb 13 '15 at 6:37
  • @karlkoeller Err. I totally forgot to mention it after having corrected it. I will add thanks. :-) – user11232 Feb 13 '15 at 6:48
  • sigh. another one-line align. not recommended -- equation is what is recommended here. – barbara beeton Feb 13 '15 at 13:49
  • @barbarabeeton Thank you but it is directed straight to Marco Daniel as it exists that way in mdframed manual. I was just reprodiucing it as OP wants it so. :-) – user11232 Feb 13 '15 at 13:57
  • I have found the mistake: The package [utf8]{inputenc} creates an error with the code. How can I solve this? – iam_agf Feb 14 '15 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.