Trying to make good looking comments to law in Russian
Suppose, I have a Russian text: quotes from law and my comments. And I
want to put the comments in a such way, that:
the reader can easily distinguish comments from the text of the law
it won't distract the attention too much from the main text
Something like this:
What I achieved so far is this:
\documentclass[12pt]{article}
\usepackage[a4paper]{geometry}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\usepackage[T2A]{fontenc}
\setlength{\parindent}{0cm}
\newcommand{\note}[1]{\\\hfill\begin{minipage}{\dimexpr\textwidth-0.5cm}
\begin{itemize}
\item \textbf{\textit{#1}}
\end{itemize}
\xdef\tpd{\the\prevdepth}
\end{minipage}\\
}
\begin{document}
Òåêñò òåêñò òåêñò
\note{Ìîå âàæíîå çàìå÷àíèå}
Òåêñò òåêñò òåêñò
\end{document}
Generating this:
I think, that bold italic it's too distracting.
So, I tried OpenSans font, suggested by egreg here: Why does
\usepackage[T2A]{fontenc} take over?:
\newcommand{\note}[1]{\\\hfill\begin{minipage}{\dimexpr\textwidth-0.5cm}
\begin{itemize}
\item {\fontfamily{fos}\selectfont \footnotesize #1}
\end{itemize}
\xdef\tpd{\the\prevdepth}
\end{minipage}\\
}
This is better, but when I tried to make it italic, it reverted to
computer modern:
\item {\fontfamily{fos}\selectfont \it #1}
How can I generate something, looking like the model text?
No comments:
Post a Comment