I analyse an interview transcript and would like to add plenty of notes in the margin. Sometimes these margin notes will not fit on the current page, and thus I would like them to flow to the next page. The marginfix package is supposed to fix this, but obviosly I have too many marginpars and LaTeX runs out of memory ("LaTeX Error: Too many unprocessed floats.").  I have now searched StackExchange (and Google) in vain; thus I ask the masterminds of LaTeX if a solution is possible?
122041
I want to create a problem booklet consisting of some questions and images on the marginpar. How to make sure the images properly float on the marginpar?  If you carefully see the left image below, you will notice that the most bottom image gets cropped as it is not properly floated.     \documentclass[twoside,12pt]{book} \usepackage[     a4paper,     vmargin=2cm,     outermargin=9cm,     innermargin=2cm,     marginparwidth=7cm,     marginparsep=20pt ]{geometry}  \usepackage{graphicx} \usepackage{marginnote} \usepackage{caption} \usepackage{lipsum}  \newcommand\MarginFig[1]{% \marginpar{\includegraphics[width=\marginparwidth]{example-image-a} \captionof{figure}{#1} \label{#1}}}    \begin{document} \chapter{Higgs Boson} \lipsum[1-3]  \begin{enumerate} \item \MarginFig{1} \MarginFig{2} \MarginFig{3} \lipsum[1-2]  \item \MarginFig{4} \MarginFig{5} \MarginFig{6} \lipsum[1-2]  \item  \MarginFig{7} \MarginFig{8} \MarginFig{9} \lipsum[1-2]  \end{enumerate} \end{document}   This question is a continuation of .  Edit 3  Bonus questions (without prizes): Among the permutation of  \MarginFig{n}, \MarginFig{n+1}, \MarginFig{n+2}, and \lipsum[1-2], which one will produce the best floating?
100677
I am working with the article class.  I have four authors. Unfortunately, they are just a tiny bit too wide to fit on one line. (I'm talking less than a quarter inch from the margins I had set.) How can I do one of the two following things:   Decrease the space between the authors, just a little bit Make the page temporarily wider around the title   I've tried \newgeometry/\restoregeometry, but that clears the page at the commands. I've tried changepage's adjustwidth, but that makes latex output one extra page at the beginning.
27338
I type fast enough that for most things it's not a pain, but I have a few big stacks of old course notes I'd like in LaTeX which I'm dreading having to go through. So, I'm just wondering what the best solution for handwriting -> LaTeX is so far, if any.
32169
I'm trying to use \marginpar to annotate the line where a piece of data occurs in the text. That means, I want them in the precise line where they are declared, there will frequently be more than one in the line, and I don't know in advance how many (may change when I modify the text or change the layout). The problem is that when more than one \marginpar is used, they are pushed down vertically. Ideally, I'd wish for concatenation (with whitespace and/or a comma inbetween). I looked if the marginnote and marginfix packages, but they don't do what I want (however, it's very possible that I didn't find the right configuration arguments). This feels like something that might have been solved before, but I couldn't find it, so please point me in the right direction.  I want this:  A pendulum of length $5\,\rm cm$\marginpar{$l$} and mass $10\,\rm g$\marginpar{$m$} is displaced by $6^\circ$\marginpar{$\phi$} and released. Calculate the momentum in the equilibrium position.   to produce "l, m" in the first line margin and "φ" in the second, if the linebreak occurs  inbetween, but "l, m, φ" in the first line, if there is no linebreak (depending on the layout).  Don't pay attention to the rest of the markup, it's a stub to make the point.
50000
Do you know a TeX editor where one can increase the line spacing/change the line spacing in preferences?  LibreOffice Writer could do the trick provided it did not prepend 0xfeff to files encoded in UTF-8, which prevents LaTeX engines from working.  I'm happy with VIm. It's just that I like writing prose in a double-spaced environment.
17588
Is it possible to get rid of the function folding margin on Notepad++? It seems like the sort of thing that should be in the prefs but I'm not seeing it anywhere.
118659
I would like to set up memoir so that when I use \footnote{foo}, foo is displayed in the margin with the proper label and preferably break over pages.  There is an option \footnotesinmargin which gives almost exactly what I need, only justified. I want it to use ragged2e and change alignment based on even/odd page so that the margin note is always flushed towards the main text area and allows hyphenation on the side of the edge.  \documentclass[12pt, draft]{memoir} \footnotesinmargin \usepackage{polyglossia} \setmainlanguage{english} \usepackage{fontspec} \defaultfontfeatures{Ligatures=TeX} \setmainfont[Ligatures=TeX,Numbers=OldStyle]{Minion Pro} \usepackage{kantlipsum}  \begin{document} \kant[1]\footnote{\kant[1]} \kant[2]\footnote{\kant[2]} \kant[3-5] \end{document}   Possible partial work-around  I have remembered a nice thesis based upon the Classic thesis template and found the  which indeed contains a possible solution:  \usepackage{marginnote} \usepackage{ragged2e} \newcommand{\sidemark}[1]{#1.{\:}}  \newcommand{\marginelement}[2][0]{%   \marginnote{%     \strictpagechecktrue     \checkoddpage     \ifoddpage%       \RaggedRight\footnotesize%     \else%       \RaggedLeft\footnotesize%     \fi%     #2%   }[#1\onelineskip]% }%  \newcommand{\sidenote}[2][0]{%   \footnotemark%   \ignorespaces%   \marginelement[#1]{%     \sidemark{\thefootnote}%     \ignorespaces#2%   }%   \unskip% }%   Nevertheless, I would still prefer a memoir-specific solution with the re-definition of footnotes when used with the option \footnotesinmargin mainly for the sake of portability. This work-around also does not work with hyperref (there is no hypertext connection) and does not break over pages automatically.
18616
I have a LaTeX document that is automatically generated and then inserted as part of my own larger document with \input. This other document has a description environment for examples, one item for each. The problem is that some of them are very long and run out of the paper margins. Here's an example,  \begin{description}  \item[{\texttt{bp\_genbank\_ref\_extractor --transcripts=accession '"homo sapiens"[organism] AND H2B'}}] \mbox{}  Search Entrez gene with the query \texttt{'"homo sapiens"[organism] AND H2B'}, and save their transcripts sequences. Note that default value of \textbf{--limit} may only extract some of the hits.   \item[{\texttt{bp\_genbank\_ref\_extractor --transcripts=accession --proteins=accession --format=fasta '"homo sapiens"[organism] AND H2B' '"homo sapiens"[organism] AND MCPH1'}}] \mbox{}   Is there a way to force them to wrap around without changing the file? Something I can do before calling \input? The text there will run for several pages and is a section of the appendixes (I'm using the memoir class).  This document is generated automatically from the POD documentation of a perl script using pod2latex.
31582
I've read that—unless I know a lot about typesetting—I shouldn't change the margins of a LaTeX document. The default margin size of the article class is really big and it feels like a lot of space is waste. Thanks to the geometry package, it is simple to change the margins, but I'm not sure if I should.  Can someone tell me why the default margin size is so big? Also, why shouldn't I change the margin size?
72226
I am writing a journal paper which is roughly 15 pages long. Out of this journal paper, I would also like to make a conference version which should be 5 pages long.   My question is: Is it possible to only work with one latex file and produce two pdf of different length?   For example, can I select a text and specify that it goes to the long version only?
65308
On some pages of my document LaTeX introduces a lot of spacing between my headline/paragraphs (around 5 times more than usual).  What is the reason for this and how can I avoid it? It seems it is trying to fill the page until the next chapter starts.
86594
Are there any best practices for how long to make your lines in your source file?  I'm also interested if there are best practices for it if there aren't any LaTeX-specific best practices.  I originally typed my LaTeX files like I was in Word:    each paragraph on its own line.   However, I eventually found that to be rather cumbersome and so I switched to one sentence per line (around the same time I moved from Dropbox to git).   That was large improvement for me.  Since I tend to write long sentences and like my footnotes, I tried an experiment in a file:    break lines after commas as well as after periods.   So far, it seems that this method would require a good bit of manual clean-up, since it produces some very short lines and there are still overly-long lines in the file.   What methods have you found to be the best for keeping your source's line lengths reasonable?
772
I'm writing a document which contains a lot of big figures and tables. Usually I use [htb] for the float position, however, when the float occupies an entire page, it's placed in the next page, O.K!, but when I continue writing, the float jumps to the last page, E. G.:  \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{blindtext} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \blindtext \begin{table}[htb] \centering \caption{Example table} \begin{tabularx}{\textwidth}{X} \toprule \blindtext \blindtext \blindtext\\ \bottomrule \end{tabularx} \end{table} \Blindtext \end{document}      Why the table is placed in the last page intead of the second page and continues the text in the last page? how can I avoid this?
66023
One of the problems that I have read that people say about LaTeX is it isn't very good for quick note taking.  Has anyone used LaTeX for quick note taking? If so what template have you used? And how have you setup your system so it is relatively easy to make quick notes?  EDIT In response to some of the comments, I am currently using vim as my editor. Which I am very proficient in using.
31730
I'm trying to typeset my thesis with the tufte-book document class, and I'm having an issue with the margins. There is a rule (beyond my control) that all my text and figures must remain within margins that are at least 1 inch wide. I quite like the style of putting figures and notes in the margin (that's why I'm using the tufte-book class), but when I place things in the large margin on the right, they are liable to end up less than one inch from the edge of the page. Is there a way to force a minimum "real margin" that even margin notes and figures won't intrude on?
54132
I'm trying to add sample code to my document. It seems that the listing is left aligned with the margin, and the numbers go outside it. How should I align the number, instead of the code? Here is my latex code:  \documentclass[a4paper,10pt]{article} \usepackage[utf8x]{inputenc} \usepackage{listings}  %opening \title{} \author{}  \begin{document} Some dummy text. Some dummy text. Some dummy text. Some dummy text. \begin{figure} \begin{minipage}[b]{0.4\linewidth} \begin{lstlisting}[language=C, %frame=single, basicstyle=\footnotesize\ttfamily, numbers=left,stepnumber=1, morekeywords={assert} ] void test(int x, int y){   if(x &gt; 5){     x++;     if (x &lt; 3)        x--;     else        y = x;   }   assert (x &lt; 10 ); } \end{lstlisting} \caption{A simple example} \end{minipage}  %another minipage goes here  \end{figure}  \end{document}   Thank you.
5721
Sometimes the margins need to be changed for a particular page, paragraph, or other section of text.  For example, if I'm writing a letter and want the left margin to be almost at the right side of the page for the four lines of my address, or if I am combining prose with poetry and want the poems to be indented relative to the rest of the work.  What is the best way to change both left and right margins on the fly?