Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am often using a "mdframed" package to frame my paragraphs or important statements. I usualy do it like this (MWE):

\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[framemethod=TikZ]{mdframed}
\mdfdefinestyle{opombe}{%
    font=\footnotesize,
    linecolor=orange,
    outerlinewidth=1pt,
    roundcorner=5pt,
    innertopmargin=5pt,
    innerbottommargin=5pt,
    innerrightmargin=10pt,
    innerleftmargin=10pt,
    backgroundcolor=orange}

\begin{document}

\begin{mdframed}[style=opombe]
some text
\end{mdframed}

How can I apply same style to \frame{some text}?

\end{document}

I would like to use the same profile for \frame{} (provided in MWE). What are my options here? I need this frame to be in line with text and not a paragraph like (like mdframed environment). Is it possible to edit mdframed to be in line with text?

share|improve this question
    
Does the question help: tex.stackexchange.com/questions/48734/… –  Marco Daniel Nov 21 '13 at 17:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.