Tag Info

Hot answers tagged

37

I am using todonotes with enlarged margins. You just enlarge the size of your document and one margin, but you keep the textwidth the same. You need to use the geometry package for that. I actually wrote a blogpost about it. A nice point about todonotes is that they are configurable (you can change the colour & background colour of your notes), that ...


29

You can have a look at the todonotes package. It has some very simple yet quite customizable commands to add notes and stuff to your document. There is also a nice feature called listoftodos that lists all the todo fields that you set in the document. Compare the MWE below: \documentclass{article} \usepackage{todonotes} \begin{document} Some text... ...


21

I use the changes package, which allows authors to mark their changes and makes them colourful and so easier to spot. There's also the latexdiff program which is a bit like running diff except that you can process the output via LaTeX and get a more useful way of displaying the differences, (see also ldiff). One tip if you're using non-LaTeX-specific tools ...


20

One basic possibility using TikZ (process using xelatex): \documentclass{article} \usepackage{xparse} \usepackage{fontspec} \setmainfont{Humor Sans} \usepackage{tikz} \usetikzlibrary{shadows} \usepackage{lipsum} \definecolor{myyellow}{RGB}{242,226,149} \NewDocumentCommand\StickyNote{O{6cm}mO{6cm}}{% \begin{tikzpicture} \node[ drop shadow={ shadow ...


17

As a demonstration, here is an implementation using threeparttable: \documentclass{article} \usepackage{booktabs,caption,fixltx2e} \usepackage[flushleft]{threeparttable} \begin{document} \begin{table} \begin{threeparttable} \caption{Sample ANOVA table} \begin{tabular}{lllll} \toprule Stubhead & \( df \) & \( f \) & \( ...


16

My 2 cents (from experience with my thesis + several papers): even if your coauthors don't use version control, use it alone for your own work. typical workflow: give the .tex to your advisor, tell him to modify the source file directly, and forget about macros to mark differences manually. Whenever you get a revised version back from him, check it in. ...


16

Another option is to use the \caption* command from the caption package: \documentclass{article} \usepackage{caption} \begin{document} \begin{figure} \centering \caption{A figure} \rule{1cm}{1cm}% placeholder for `\includegraphics` \caption*{A note} \end{figure} \end{document} If the notes should use separate different formatting than the one used ...


15

If you use Adobe Reader, then there is also pdfcomment. You can run texdoc pdfcomment in your terminal to read the manual. Like todnotes package, this package tries to emulate the commenting functionality found in some word processors. This sample code is taken from the example.tex file provided with the package and some of the things that it can do. ...


12

If you just want to write between the lines of text, you probably want to use combination of \raisebox and \rlap. \raisebox basically typesets the argument in a box raised, or lowered over the baseline by its given arguments. You however want TeX to make the box of virtually zero width and zero height. This is done using \rlap and arguments to \raisebox ...


12

Yes chemifg is a great tool. But as well as almost every code to picture system the syntax is not trival. Please consider the following example. You can easily see, that chemfig syntax follows a logical and human readable syntax, but will become extremely complex for larger structures. And so far as i can see chemfig is the easiest system for chemical ...


11

Without an actual example of what your table looks like it is difficult to say whether this solution will work for you. But, you could incorporate each portion within a minipage to obtain the tablenotes besides the table. Here is a before and after comparison: Before: After (with minipages): Notes: I have not been able to figure out how to get the ...


11

Git has nifty options to do diffs like you want =) http://idnotfound.wordpress.com/2009/05/09/word-by-word-diffs-in-git/ Also consider this tip to store preamble as a git submodule: http://markelikalderon.com/2008/07/31/keeping-your-latex-preamble-in-a-git-submodule/


10

The easy answer here is, of course, yes - there is always room for improvement. One main observation I can make is the following: Mathmode in LaTeX is not limited to symbols and operators; you are allowed to use letters in math mode as well. For example, consider the difference in style when writing Let A = \{ x $\in$ $\mathbb{Z}$ $\|$ x $\le$ 5 \} ...


10

I'm sure the final answer will be using tikzmarks ;-) For what it's worth, here's a simplistic pure TeX solution based on shuffling around some boxes. Edit: Now with pagebreak enabled. \documentclass{article} \usepackage{color} \newdimen\charwd \charwd=1pt \makeatletter \newbox\@tempboxb \newbox\@tempboxc \newbox\@tempboxd \newskip\@tempskipc ...


9

Main file \documentclass{article} \def\noteref#1#2{\csname noteref#2\endcsname{#1}} \def\noterefSOLVED#1#2#3{} \def\noterefPENDING#1#2#3{% \expandafter\def\csname noteref-#1\endcsname{\marginpar{#3}}} \let\oldlabel\label \def\label#1{% \oldlabel{#1}% \csname noteref-#1\endcsname} \input{\jobname-notes} \begin{document} \section{intro\label{aa}} ...


8

One option using \tikzmark (since some calculations are performed for the bar placement, the code needs three runs to stabilize). The bar admits (multiple) page breaks: \documentclass{article} \usepackage[a5paper,rmargin=4cm]{geometry} \usepackage{atbegshi} \usepackage{refcount} \usepackage{setspace} \usepackage{tikzpagenodes} \usetikzlibrary{calc} ...


8

Another option is the rather new fixmetodonotes package. It is much more lightweight than \todonotes by using \marginpar instead of tikz, but contains many of its features, plus some more: Inline and margin placement Listing all notes through \listofnote Flexible customization Automatic placement of a DRAFT watermark on any page that contains notes (can be ...


8

this differs only slightly from the answer by Sigur, but i think it's worth some small adjustments. \documentclass{article} \usepackage{mathtools} \begin{document} \begingroup \small \[ \displaystyle \underbrace{\left(-\frac{1}{2}\right)^0}_{\substack{\text{1st term,}\\ j = 0}} + \underbrace{\left(-\frac{1}{2}\right)^1}_{\substack{\text{2nd term,}\\ j = ...


8

The floatrow package offers the \floatfoot macro for notes in addition to a float's \caption. \documentclass{article} \usepackage[capposition=top]{floatrow} \begin{document} \begin{figure} % \centering% default with `floatrow` \rule{1cm}{1cm}% placeholder for `\includegraphics` \caption{A figure} \floatfoot{A note} \end{figure} \end{document}


8

You can use the package enumitem and define a list that you can use for notes such as the following: \documentclass{article} \usepackage{enumitem} \newlist{notes}{enumerate}{1} \setlist[notes]{label=Note: ,leftmargin=*} \begin{document} Duis porttitor nisi et orci pellentesque feugiat. Aenean id turpis vel purus tincidunt sodales. Class aptent taciti ...


8

I always have the following three on my slides: %\documentclass[notes]{beamer} %\documentclass[notes=hide]{beamer} \documentclass[notes=only]{beamer} Then I comment or uncomment them according to my needs. As should be clear, the last one prints only notes, whereas the others print everything and no notes respectively.


7

I think the free web-based writeLaTeX is worth mention. With this tool, all authors can share documents, review, comment and edit. Since it is web-based all documents will be accessible across platforms.


7

You could use \setstretch and \parbox inside \colorbox. Here's an example, using even smaller stretch value to make the effect more visible: \documentclass{article} \usepackage[english]{babel} \usepackage{blindtext} \usepackage[svgnames]{xcolor} \usepackage[doublespacing]{setspace} \newcommand{\mymarginnote}[1]{% ...


7

I do not know if I understand you well. Do you have the LaTeX source of the papers you read? If, as it is often my case, you can only have the PDF versions, then what you would need is a tool to annotate those. I use Jarnal and I am quite satisfied with it. I also use it to grade my student's homework, which they usually turn in in PDF.


7

This should get you started. I extended the size of the margin and used \marginpar to place the text in the margin: \documentclass{article} \usepackage{lipsum} \usepackage{xcolor} \usepackage{mdframed} \setlength{\textwidth}{4.0in}% \setlength{\marginparwidth}{2.0in}% \mdfdefinestyle{MyMarginNoteStyle}{ topline=false, bottomline=false, ...


7

You could use the help of mdframed and expecially its options singleextra, firstextra, secondextra and middleextra. The different options allow you to have different styles for a frame that's on a single page and a frame that is broken over two or more pages. When mdframed is used with framemethod=tikz you have access to the corners of a frame. The node on ...


6

ChemFig is a great package but I don't believe that you'll gain much in time if you create your schemes with it rather than with ChemDraw. Once you know you're way around ChemFig you're just as fast or slow with it than with ChemDraw (supposing you know your way around that, too), at least that's my experience. There are other points you should consider: ...


6

I don't know how to do it with threeparttablex, but it seems that the old threeparttable should be sufficient: the former is for longtable and you don't seem to be using longtabu (I'm afraid that one should rewrite threeparttablex for using the longtabu environment). \documentclass{article} \usepackage{booktabs} \usepackage{tabu} \usepackage{threeparttable} ...


6

Try using a more casual specification of document structure like Markdown; personally, I like Emacs' org-mode for taking notes. If you want to convert to Latex later, there are plenty of converters. Pandoc supports many casual document structuring formats: besides Markdown, it supports Restructured Text, which is liked by many, and Textile; it supports ...


6

What about something more similar to the one you are trying to copy, made with mdframed? Code: \documentclass{article} \usepackage[framemethod=TikZ]{mdframed} \usepackage{lipsum} % just for the example \newmdenv[% rightmargin = -10pt, skipabove = 1.2\topskip, rightline = false, topline = false, bottomline = false, ...



Only top voted, non community-wiki answers of a minimum length are eligible