You have some mistakes in your code:
- You are using
\mdfapptodefinestyle
. But the style exampledefault
isn't defined here. So the command fails. To define a style use \mdfdefinestyle
.
- The command
\ExampleText
is defined in my example files but not in your example. So run:
Here are some comments copied from the example file:
- Every
\global
inside the examples is necessary to work with the
package showexpl
.
All examples have the following settings:
\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 non−zero
function of the independent variables alone.
}
Here an example
\documentclass{article}
\usepackage[framemethod=default]{mdframed}
\usepackage{showexpl}
\mdfdefinestyle{exampledefault}{%
rightline=true,innerleftmargin=10,innerrightmargin=10,
frametitlerule=true,frametitlerulecolor=green,
frametitlebackgroundcolor=yellow,
frametitlerulewidth=2pt}
\begin{document}
\begin{mdframed}[style=exampledefault,frametitle={Inhomogeneous linear}]
Some Text
\end{mdframed}
\end{document}
The number of lines in zref-abspage.sty
is 66 in recent versions. In the history I could not find a hint that could explain more than 28 additional lines. What contains line 94 with two lines before and after?
You can recreate the file, if the sources are installed. Make a scratch directory, copy the file zref.dtx there and unpack it, e.g.:
mkdir /tmp/zref-scratch
cd /tmp/zref-scratch
cp /usr/share/texmf-texlive/source/latex/oberdiek/zref.dtx .
tex zref.dtx
This should generate lots of style files with zref-abspage.sty
among them. Note that you need plain TeX, not LaTeX. Otherwise the documentation would be generated.
The two files can be compared:
diff -u /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty zref-abspage.sty
Are there differences?
If yes, what are the differences? The wrong file can then be renamed (for safety and further analysis) and replaced:
sudo mv -i /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage-saved.sty
sudo cp /tmp/zref-scratch/zref-abspage.sty /usr/share/texmf-texlive/tex/latex/oberdiek/zref-abspage.sty
If no, Which version you are using? Look into the file zref-abspage.sty
.
My recommendation would be to install the original TeX Live, "howto"s can be found in the net, e.g.:
The alternative is installing manually updated packages in a local TDS tree (for all users) or in the home texmf tree (~/texmf
) for the current user only. The Ubuntu documentation contains a section about LaTeX.
To identify the local tree you can try:
kpsewhich --expand-var '$TEXMFLOCAL'
The home tree usually is ~/texmf
.
If the package provides a .tds.zip
file, then the installation is easy. As example
I am using my bundle to install in the home texmf tree:
wget http://mirror.ctan.org/install/macros/latex/oberdiek.tds.zip
unzip oberdiek.tds.zip -d ~/texmf
In case of the local texmf tree, texhash
needs to be called:
sudo texhash
Best Answer
You have to pass
framemethod=TikZ
(orframemethod=pstricks
if working withxelatex/latex...
) option to\usepackage{mdframed}
likeWithout any options, the frame is set to
default
in whichroundcorner
is equal to0pt
.Full code: