I want to add remarks at different places in a document, using tcolorbox (which I found a very nice package) and at the end of the document to get a compilation of all the remarks added along the document. Here is my MWE :  \documentclass[french]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath,amssymb,amsbsy,thmtools} % thmtools pour list of theorem \usepackage[a4paper,     vmargin=2cm,     hmargin=2.5cm]{geometry} \usepackage{xcolor} \usepackage[many]{tcolorbox} \usepackage{lipsum} \usepackage{babel}  \renewcommand\familydefault{\sfdefault}  \newtcbtheorem[]{rema}{Remarque}%    {colback=white,colframe=gray!50,fonttitle=\bfseries,    enhanced,    coltitle=gray!75!black,    attach boxed title to top left={xshift=2ex,yshift=-2mm,yshifttext=-1mm},    boxed title style={colframe=red!50,colback=gray!25},    code=\bfseries    }{th}  \title{Comment faire une liste de remarques} \author{} \date{} \begin{document} \maketitle  \vspace{-1cm}  \noindent \section*{Bla} \lipsum[1] \begin{rema}{}{foo} \lipsum[2] \end{rema}  \section*{Bli} \lipsum[3] \begin{rema}{}{bar} \lipsum[4] \end{rema}  \section*{Liste des remarques} %\listofremarks% to be defined %\setcounter{\therema}{0} % not working \begin{rema}{}{foo} \lipsum[2] \end{rema}  \begin{rema}{}{bar} \lipsum[4] \end{rema}  \end{document}   What I would like to get is :  1) preferably some kind of command like `\listofremarks' which could list at the very end of the document all the remarks introduced previously, if this is possible.  2) if not possible, I could eventually add the remarks manually at the end of the document, but I would need to reset the remark counter to 0 and I did not found how to do this (I did not found the name of the counter involved).  I browsed through section 15.Theorem of the tcolorbox manual but did not found a satisfying solution.  EDIT: What I want is not exactly a list, it is a rather an extensive compilation of all the remarks of the document  EDIT2: Title changed (boxes, not list of boxes) and also the question slightly edited for a better explanation of the goal
120894
I am trying to get something similar to \listoftheorems but for tcbtheorems; ideally a list for each specific type of tcbtheorem in case I need to list another type later. There is probably a simple command out there, but I could not find it. And how do I modify the code so that the title of the tcolorbox is listed as well:  List of Questions:   Question 1.1: some question Question 1.2: some other question   I tried adapting the code from  and from  but I could not even make the theorems become part of the list, so I just got an empty list.  \documentclass[a4paper,11pt]{book}  \usepackage{lipsum} \usepackage{amsmath,amssymb} \usepackage[most]{tcolorbox}     \tcbuselibrary{theorems}  \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{lmodern}  \tcbset{     thmbox/.style={         enhanced,         breakable,         sharp corners=all,         fonttitle=\bfseries\normalsize,         fontupper=\normalsize\itshape,         top=0mm,         bottom=0mm,         right=0mm,         colback=white,         colframe=white,         colbacktitle=white,         coltitle=black,         attach boxed title to top left,         boxed title style={empty, size=minimal, bottom=1.5mm},         overlay unbroken ={             \draw (title.south west)--(title.south east);             \draw ([xshift=3.5mm]frame.north west)|-%                   (frame.south east)--(frame.north east);},         overlay first={             \draw (title.south west)--(title.south east);              \draw ([xshift=3.5mm]frame.north west)--  ([xshift=3.5mm]frame.south west);             \draw (frame.north east)--(frame.south east);},         overlay middle={             \draw ([xshift=3.5mm]frame.north west)--([xshift=3.5mm]frame.south west);             \draw (frame.north east)--(frame.south east);},         overlay last={             \draw ([xshift=3.5mm]frame.north west)|-%                   (frame.south east)--(frame.north east);},     }, }  \newtcbtheorem[number within=section]{questionbox}{Question}{thmbox}{qst}  \begin{document} \tcblistof[\section*]{qst}{List of Questions}  \chapter{foo}  \section{bla}  \begin{questionbox}{some question}{} the answer goes here \end{questionbox}  \begin{questionbox}{some other question}{} the answer goes here \end{questionbox}  \end{document}
58636
Note: My hope is that this can become a general resource for "use a list instead" comments. If you have suggestions for improvement, please let me know.    I often see comments such as      This layout should be typeset using a list, not a tabular.   and (my favorite, paraphrasing because I cannot find the exact quotation right now)     If every tabularx with an lX preamble was a list instead, the world would be a better place.   This is all well and good, and I can see the benefits (chiefly: page breaking mid-"row" and without specialty table packages).  A description environment gets close, but it has a fixed left indent that does not depend on the longest item name.  The  at  shows a way to do this using the environ and enumitem packages.    What other methods do you use to achieve this layout? I'd like to avoid manually specifying the longest label (its width, essentially). This is something that tabularx does not require, and I don't want it to be required in the solution to this problem either, if I can avoid it.    Alternatively, what other layouts are recommended for this type of content? Examples of common document elements for which tabularx is used include nomenclature lists and other lists of notation.    MWE  \documentclass{article} \usepackage{tabularx} \usepackage{lipsum} % just for blind texts \newenvironment{mylist} % what else goes here?   {\trivlist}   {\endtrivlist}  \begin{document}  \section{trivlist version} \begin{mylist}   \item[Text 2] \lipsum*[2] \end{mylist}  \section{tabularx version} \noindent \begin{tabularx}{\textwidth}{@{}lX@{}}   Text 2 &amp; \lipsum*[2] \end{tabularx}  \section{description version} \begin{description}   \item[Text 2] \lipsum*[2] \end{description}  \end{document}
1155
Context: I'm doing a poster using tikzposter. Also I'm on ShareLatex, I suspect it might be source of the problem as well.  Problem: I can't add a theorem, this is simply ignored when I compile. Here is a sample:   First:     \documentclass[18pt, a0paper, portrait, noamsthm]{tikzposter} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amsthm}  \usepackage{hyperref} \newtheorem{definition}{Definition} \newtheorem{theorem}{Theorem} \usepackage{tikz-cd} \usepackage{etoolbox} \patchcmd{\thebibliography}{\section*{\refname}}{}{}{} \newcommand{\g}{\mathfrak{g}} \newcommand{\h}{\mathfrak{h}} \renewcommand{\b}{\mathfrak{b}} \newcommand{\N}{\mathcal{N}} \newcommand{\NN}{\tilde{\mathcal{N}}} \newcommand{\C}{\mathbb{C}}  \title{Talk} \author{Nicolas Hemelsoet} \date{\today}   \usetheme{Simple}  \begin{document}  \maketitle  \block{test}{ \begin{theorem} Hi \end{theorem} }  \end{document}   For the first code, I got this answer:      There are no entries found in a list you have created. Make sure you label list entries using the \item command, and that you have not used a list inside a table.   Any help is really appreciated, many thanks in advance !
111936
Is there a way to to do a \todo*{Hello} and not have the note show up in the ToDo and Notes area? Does anyone know how to do that? Or vise versa?  Also, what about in the left side margin instead. I think it would be easier to read and actually more manageable over there, than off to the left side.  \documentclass[a4paper,12pt]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} \title{Notepad}  % Comments and \todo notes package \newcommand{\cmmnt}[1]{} % \cmmnt{} \usepackage[colorinlistoftodos]{todonotes}\setlength{\marginparwidth}{3.5cm}     % \todo{Comment}    % \todo[noline]{}   % \todo[inline]{}     % \todo[color=red!50]{Revision}     % \todo[color=blue!40]{Improve}     % \todo[color=purple!50]{Nice}  \begin{document}     \todo[color=red!50]{Revision} \todo[color=blue!40]{Improve} \todo[color=purple!50]{Nice}  \listoftodos[ToDo's and Notes]  \end{document}
25314
In  I tried to add  for syntax formatting to code blocks quoted from the question. However, it seems they won't be honoured if I write them as a comment in my own part of the post, and if I include the hint in the qutotation as well then I have some ugly empty space before the code block. There should be a way to write these things properly.
112715
MWE:  \documentclass[11pt,a4paper]{article} \usepackage{blindtext} \usepackage{tikz} \usepackage{tkz-euclide} \usetkzobj{all} \usepackage{color}  \begin{document} \begin{center}  \begin{tikzpicture} \tkzDefPoint(0,0){B} \tkzDefPoint(6,0){C} \tkzDefPoint(3,5){A}  \tkzDrawSegment(A,B) \tkzDrawSegment(B,C) \tkzDrawSegment(C,A)  \tkzDefMidPoint(A,B) \tkzGetPoint{D}  \tkzDefMidPoint(B,C) \tkzGetPoint{E}  \tkzDefMidPoint(C,A) \tkzGetPoint{F}  \tkzDefPoint[label={[align=left]above:$A(a,b)$},xshift=00mm](3,5){A} \tkzDefPoint[label={[align=right]left:$B(c,d)$},xshift=00mm](0,0){B} \tkzDefPoint[label={[align=left]right:$C(e,f)$},xshift=00mm](6,0){C}  \tkzLabelPoints[left](D) \tkzLabelPoints[right,below](E) \tkzLabelPoints[right](F)  \tkzDrawSegment(D,E) \tkzDrawSegment(E,F) \tkzDrawSegment(D,F) \end{tikzpicture} \end{center} \end{document}   Question: How can i give the labels (x1,y1), (x2,y2) and (x3,y3) to points D, E and F respectively.
114478
I want to define newcomands to minimize the following code:   \documentclass{beamer}  \usepackage{mathtools,tikz,lmodern, xparse} \usetikzlibrary{shapes.geometric, arrows, matrix, positioning,  shapes.callouts,shadows,shapes,chains, shapes.misc} \tikzset{&gt;=stealth}  \usepackage{amsmath} %For align environement \usepackage{color}% to define the next colors \definecolor{airforceblue}{rgb}{0.36, 0.54, 0.66} \definecolor{alizarin}{rgb}{0.82, 0.1, 0.26} \definecolor{white}{rgb}{1.0, 1.0, 1.0} \definecolor{blue(munsell)}{rgb}{0.0, 0.5, 0.69}  \begin{document}    \begin{frame}{Quantum corrections to gauge interactions}  \begin{align*}   F(\Phi)= \only&lt;1&gt;{\begin{tikzpicture}[remember picture, note/.style={rounded rectangle, fill=blue}]\node[rounded rectangle, draw, fill=blue!20](Alpha){$\alpha$};   \end{tikzpicture}}\only&lt;2-&gt;{\alpha} X  +\only&lt;2&gt;{\begin{tikzpicture}[remember picture, note/.style={rounded rectangle, fill=blue}]\node[rounded rectangle, draw, fill=blue!20](gPhi){$g(\Phi)$};  \end{tikzpicture}}\only&lt;1,3-&gt;{g(\Phi)} \end{align*}  \begin{tikzpicture}[remember picture,   note/.style={rectangle        callout,rounded corners, fill=blue}] \only&lt;1&gt;{\node [note=blue!50, opacity=.5, overlay, callout absolute pointer={(Alpha.south)}] at (4,-0.3) {CommentI};} \only&lt;2&gt;{\node [note=blue!50, opacity=.5, overlay, callout absolute pointer={(gPhi.south)}] at (7,-0.3) {CommentII};}  \end{tikzpicture}  \end{frame}   \end{document}   I tried :    \documentclass{beamer}   \usepackage{mathtools,tikz,lmodern, xparse}   \usetikzlibrary{shapes.geometric, arrows, matrix, positioning, shapes.callouts,shadows,shapes,chains, shapes.misc}  \tikzset{&gt;=stealth}  \usepackage{amsmath} %For align environement \usepackage{color}% to define the next colors \definecolor{airforceblue}{rgb}{0.36, 0.54, 0.66} \definecolor{alizarin}{rgb}{0.82, 0.1, 0.26} \definecolor{white}{rgb}{1.0, 1.0, 1.0} \definecolor{blue(munsell)}{rgb}{0.0, 0.5, 0.69}  \NewDocumentCommand{\rect}{ m m m m m}{\begin{tikzpicture}[remember picture, note/.style={rounded rectangle,rounded corners}] \node[rounded rectangle, draw, fill=#1!#2](#3){#4};\end{tikzpicture}}  \newcommand{\mycallout}[9]{\begin{tikzpicture}[remember picture, note/.style={rectangle callout,rounded corners}] \node [note=#3!#4, opacity=.5, overlay, callout absolute pointer={(#5)}] at (#7,#8) {#9}; \end{tikzpicture}}  \begin{document}    \begin{frame}{Quantum corrections to gauge interactions}  \begin{align*}   F(\Phi)= \only&lt;1&gt;{\rect{blue}{20}{Alpha}{$\alpha$}}\only&lt;2-&gt;{\alpha} X  +\only&lt;2&gt;{\rect{blue}{20}{gPhi}{$g(\Phi)$}}\only&lt;1,3-&gt;{g(\Phi)} \end{align*}  \only&lt;1&gt;{\mycallout{blue}{50}{Alpha.south}{4}{0.3} {CommentI}} \only&lt;2&gt;{\mycallout{blue}{50}{gPhi.south}{7}{-0.3} {CommentII}}  \end{frame}      \end{document}   But it gives me the error File ended while scanning use of \frame.. Another problem, which I want to fix, is the shift of $\alpha$ and ${g(\Phi)}$ due to the tikz box.
19175
Edited to include complete code, as suggested:  Here is what the preamble of my main file looks like:  \documentclass[12pt]{report} \usepackage{epsfig} \usepackage{upmathgrad2}   \usepackage{UPnotations} \usepackage{amssymb, graphicx, amsmath, amsthm} \RequirePackage{graphicx} \RequirePackage{hyperref} \theoremstyle{definition} \newtheorem{thm}{Theorem}[chapter] \newtheorem{defn}[thm]{Definition} \newtheorem{lem}{Lemma}[thm] \newtheorem{cor}{Corollary}[thm] \newtheorem{prop}{Proposition}[thm] \newtheorem{rem}{Remark}[thm] \newtheorem{ill}{Illustration}[thm]   I've been trying to tinker on ways to change the above code however I still get the following numbering:  Chapter 1 1.1 Section A Definition 1.0.1 Theorem 1.0.2 Theorem 1.0.3   The definitions, theorems, lemmas, etc. are numbered continuously as I wanted. However, I wanted to get rid of the 0's. How do I do this?  I tried to use the suggestions in this  however things just got worse.   For example, when I tried:  \newcounter{dummy} \numberwithin{dummy}{section} \newtheorem{defn}{Definition}[dummy] \newtheorem{thm}{Theorem}[dummy]   I got Definition 1.1.0.1 instead.
67618
I'm looking for pretty formatting for warnings, and others for some info or tips.  For the moment, I use the following formatting but maybe someone has one better idea.    To obtain this, I use the following code.  \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[x11names,svgnames]{xcolor} \usepackage{graphicx} \usepackage{fourier-orns} \usepackage[framemethod=tikz]{mdframed} \usetikzlibrary{calc}  \makeatletter % Default settings for warnings     \newcommand{\warningSymbol}{\raisebox{0.8\depth}{\danger}}      \definecolor{warningColorText}{named}{Red3}     \definecolor{warningColorLine}{named}{Red3}     \definecolor{warningColorBack}{named}{LemonChiffon1}     \definecolor{warningColorBackSymbol}{named}{white}  % Inline mode     \newcommand{\warning}[1]{%         \textcolor{warningColorText}{\warningSymbol{}\,#1}%     }  % Block mode     \tikzset{         warningsymbol/.style={             rectangle,             draw  = warningColorText,             fill  = warningColorBackSymbol,             scale = 1,             overlay         }     }      \mdfdefinestyle{warning}{%         hidealllines      = true,         leftline          = true,         skipabove         = 12,         skipbelow         = 12pt,         innertopmargin    = 0.4em,%         innerbottommargin = 0.4em,%         innerrightmargin  = 0.7em,%         rightmargin       = 0.85em,%         innerleftmargin   = 1.1em,%         leftmargin        = 0.85em,%         middlelinewidth   = .2em,%         linecolor         = warningColorLine,%         backgroundcolor   = warningColorBack,%         fontcolor         = warningColorText,%         firstextra        = {             \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)             node[warningsymbol] {\warningSymbol};         },%         secondextra       = {             \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)              node[warningsymbol] {\warningSymbol};         },%         middleextra       = {             \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)              node[warningsymbol] {\warningSymbol};         },%         singleextra       = {             \path let \p1=(P), \p2=(O) in ($(\x2,\y1-4)$)              node[warningsymbol] {\warningSymbol};         },%     }      \newmdenv[style=warning]{@Warning}     \newenvironment{Warning}{\let\warning\relax\begin{@Warning}}{\end{@Warning}} \makeatother  \usepackage{lipsum}  \begin{document}  \warning{IMPORTANT !} \lipsum[1]  \begin{Warning}      \lipsum[1] \end{Warning}  \end{document}
65298
I want to add an appendix (questionnaire etc.) at the end of my thesis after the references. I use the article class and work with LyX: Document -&gt; Start appendix here. But I am not getting it in the TOC.  \documentclass[12pt,english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \setlength{\parskip}{\smallskipamount} \setlength{\parindent}{0pt} \usepackage{color} \definecolor{document_fontcolor}{rgb}{0, 0, 0} \color{document_fontcolor} \usepackage{babel} \usepackage{float} \usepackage{textcomp} \usepackage{pdfpages} \usepackage{tipa} \usepackage{amsmath} \usepackage{graphicx} \usepackage{setspace} \PassOptionsToPackage{normalem}{ulem} \usepackage{ulem} \usepackage[unicode=true,  bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,  breaklinks=false,pdfborder={0 0 0},backref=false,colorlinks=false]  {hyperref}  \makeatletter  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. %% Because html converters don't know tabularnewline \providecommand{\tabularnewline}{\\} %% A simple dot to overcome graphicx limitations \newcommand{\lyxdot}{.}   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \numberwithin{equation}{section}  \@ifundefined{date}{}{\date{}} \@ifundefined{showcaptionsetup}{}{%  \PassOptionsToPackage{caption=false}{subfig}} \usepackage{subfig} \makeatother  \appendix \noindent \begin{center} \textbf{Questionnaire (Case Study 1)} \par\end{center}
72548
I am new in latex. My problem is that I want to make the text in the box italic.  \documentclass[a4paper,12pt,openany]{book} \usepackage{etex} \usepackage[utf8]{inputenc} \usepackage{chngcntr}    \usepackage{fontenc} \usepackage[french]{babel}   \usepackage{amsthm} \usepackage{amsmath} \usepackage{amssymb} \usepackage{amsfonts} \usepackage{color} \usepackage{dsfont}  \usepackage{lastpage}  \usepackage{sectsty} \usepackage[left=2cm,right=2cm,top=2.75cm,bottom=3cm]{geometry} \usepackage[Bjornstrup]{fncychap} \usepackage{hyperref}   \usepackage[T1]{fontenc} \usepackage{amssymb} \usepackage[most]{tcolorbox} \usepackage{cleveref} \newtcbtheorem[auto counter, number within = section]{defn}{Définition}{   colback=green!5,   colframe=green!35!black,   fonttitle=\bfseries, }{t} \begin{document} \begin{defn}{}{} asymptotically uniformly integrable relatively \end{defn} asymptotically uniformly integrable relatively \end{document}   The result :    But, I want the writing inside the Box in the following form:
16160
How can I correct the transition between the background-colors? The MWE:  \documentclass[a4paper]{article} \usepackage[scale=.85]{geometry} \usepackage{tcolorbox,enumitem} \tcbuselibrary{skins,xparse}  \begin{document} \noindent  \begin{tcolorbox}[skin=bicolor,title=Main Title,     colframe=red!75!black,colback=blue!10!white,colbacklower=green!10,width=0.5\linewidth,height=0.5\linewidth]     The upper part. \par ~~~\par ~~~\par ~~~\par ~~~\par ~~~\par ~~~\par ~~~\par ~~~\par ~~~ \tcblower \tcbsubtitle[before skip=\baselineskip]%       {My subtitle}     The lower part.   \end{tcolorbox}   \end{document}   and the result is:    Thanks a lot; Harald
19012
I have a problem with the lstlisting package. I want to define an \newenvironment with one obligatory parameter, which will be the caption name for the lstlisting. I will also have other lstlisting environments, that is why I am trying to define them separately.  I am also having some difficulties with \lstinline command (I set up a \newcommand to gain easier coding), which typesets keywords in normal text. Why can't it be in captions and similar?  I suppose something could be wrong with the preamble, that's why all the packages used are listed.  \documentclass{book} \usepackage[a4paper, top=3cm, bottom=3cm, heightrounded, outer=3cm, inner=3cm, marginparwidth=1.5cm, marginparsep=0.5cm]{geometry}  \usepackage{tocloft} \usepackage{amsmath}  \usepackage{eurosym} \usepackage{url} \usepackage{array} \usepackage{tabularx} \usepackage{multirow}  \usepackage{multicol}  \usepackage{graphics} \usepackage[dvips]{graphicx}  \usepackage{epstopdf}  \usepackage[dvipsnames]{xcolor}  \usepackage{verbatim} \usepackage{fancyvrb}  \usepackage{fancyhdr} \usepackage{paralist}  \usepackage{listings}  \usepackage{pifont}  \usepackage{indentfirst}   \lstset{language=[Visual]Basic, % keywordstyle=\color{blue},commentstyle=\color{ForestGreen},stringstyle=\color{Maroon},% basicstyle=\ttfamily\normalsize, frame=lines, % showspaces=false, showstringspaces=false,% tabsize=4, aboveskip=10pt, belowskip=10pt, % lineskip=2pt, numbers=left, numberstyle=\tiny, stepnumber=1, numbersep=5pt,% numberblanklines=false, % breaklines, breakatwhitespace, prebreak=\_, breakindent=0pt % }  \lstset{morekeywords={Or, Loop, Until, To, As, Single, Module, Double, ByVal}}  \lstset{emph={Console}, emphstyle=\color{Aquamarine}}  \newenvironment{case}[1]{\renewcommand\lstlistingname{Case}% \begin{lstlisting}[caption={#1}]}% {\end{lstlisting}}  \newcommand{\code}[1]{\lstinline[basicstyle=\rmfamily\normalsize, prebreak=, keywordstyle=\ttfamily]{#1}}   \begin{document}  Example with inline, that works: \code{Console, Sub in Module}.  \begin{case}{Hello world} %doesn't work Module Module1     Sub Main()         Console.WriteLine("Hello World!")         Console.ReadKey() End Sub End Module \end{case}  \end{document}   Thank you in advance!
87305
I have a problem, I'm fairly new to LaTeX but I think I got the basics.  My problem is that wants to create a environment that can create a minipage with a background color and some text in it.  I can make this by doing it by hand, but I have a lot of boxes, and to write mostly the same over and over again is to my a bit redundant.  \documentclass[12pt,a4paper]{book}   % Book settings + layout  \usepackage{xcolor}         % Extended colors \usepackage{color}         % Color extended names  %DEFINE ENVIRONMENT BLOCK % Riddle \newenvironment{colbox}[3]{        % Riddle environment   \begin{center}                   % Centering minipage     \colorbox[HTML]{#1} {          % Set's the color of minipage       \begin{minipage}[b]{380px}   % Starts minipage    \textbf{#2}\\ \textit{#3}       % Set's title and starts italic for text   \end{minipage}}                  % End minipage }{\end{center}}                    % End Riddle environment   \begin{document}  \begin{center}     \colorbox[HTML]{F8E0E0}{      \begin{minipage}[c]{380px}       \textbf{Riddle: }\\ \textit{some text here}      \end{minipage}} \end{center}  Some other text  \begin{colbox}{F8E0E0}{Riddle:}   some text here \end{colbox}  Some more text  \begin{colbox}{F8E0E0}{Riddle:}   {some text here} \end{colbox}  \end{document}     As I can see it, the problem is that in my environment colorbox is not ended by the end parameter, and I need to move \end{minipage} the same place, but I can't move it before the \end{colorbox} is moved, is there a way to do this right?  %DEFINE ENVIRONMENT BLOCK % Riddle \newenvironment{colbox}[3]{        % Riddle environment   \begin{center}                   % Centering minipage     \colorbox[HTML]{#1} {          % Set's the color of minipage       \begin{minipage}[b]{380px}   % Starts minipage    \textbf{#2}\\ \textit{#3}       % Set's title and starts italic for text   \end{minipage} }                 % End minipage }{\end{center}}   I can "fix" the out-of-box problem by putting {} on the text like this  \begin{colbox}{F8E0E0}{Riddle:}   {some text here} \end{colbox}   But that's not really what I want.  If it's possible I would like to keep everything in what's default in LaTeX cause I'm not the only one maintaining this document and special packages is not well liked,
52691
I have a sentence like this "पठ् + अ + ति" and I want to add some notes like shown in the attached image. Is there a package for such things or I need to work with Tikz.   Any reference material or help would be appreciated.     ============Edited question based on Solution given by Gonzolo =========== Here is MWE and the output I am getting.   \documentclass{article} \usepackage{fontspec,xltxtra,xunicode} \usepackage{tikz} \usetikzlibrary{shapes.callouts} \setmainfont[Script=Devanagari,AutoFakeBold=3.5]{Sanskrit 2003} \definecolor{myblue}{RGB}{122,175,234}  \newcommand\tikzmark[1]{%   \tikz[remember picture,overlay]\node (#1) {};} \newcommand\MyNote[3][]{% \begin{tikzpicture}[remember picture,overlay] \node[rectangle callout, fill=myblue,text width=2cm,align=center,font=\sffamily\bfseries\color{white},#1] at #2 {#3};  \end{tikzpicture}% }  \begin{document}  पठ् \tikzmark{a}\qquad + अ + \tikzmark{b} ति ।  \MyNote[callout relative pointer={(0,1)}]{([yshift=-1.5cm]a)}{क्रिया को धारण करता है वह धातु है ।} \MyNote[callout relative pointer={(0,1)}]{([yshift=-1.5cm]b)}{"अ \&amp; ति" का कर्ता अर्थ को कह रहा है}  \end{document}
122742
Context: I prepare my scientific documents using LaTeX and compile to a PDF. I often need to seek comments on drafts from collaborators who do not use LaTeX. Most of these collaborators use Windows OS. Assume also that the collaborator does not need to edit the document.  They only need to be able to add comments to the document. Most would be familiar with the commenting system in MS Word, for example. I'd like to be able to give the collaborator some clear instructions about what software and system they should use to comment on the draft.  This should involve free software and an easy to use interface.  Question: What is a good strategy for getting comments on draft documents when the collaborator does not know LaTeX?  Initial thoughts: I know Adobe professional allows you to add comments to a PDF.  However, some collaborators don't have this software and it costs money.  I could send the raw LaTeX to the collaborator. However, given all the markup, the collaborator may find LaTeX source a bit mysterious.  UPDATE: After posting I noticed  to a similar question. Along with a number of other good tips (such as printing and getting paper comments), he mentions jarnal, xournal, and gournal as free cross-platform PDF annotators. I'd be curious to know whether experts have found them adequate for the above mentioned purpose and whether any of them are to be preferred. Others mention FoXIt. And yet others discuss the option of exporting to MS Word or Open Office and using the reviewing system within these programs.
44362
I want to typeset source code with tcolorbox package. How is possible in this package not to create static boxes but rather boxes that adjust according to the width of the code I write both vertically and horizontally? Also I want if a line is too long to break into a new line. Can I do that?