Edit: Someone else recently posted about something similar, but there were no solutions. I posted this because I cannot yet comment or upvote that other thread, and want to give more context to the issue!  I made a 2-column resume in Indesign, with different text frames for each different title/heading/collection of bullet points. When I highlight or select the text on the Adobe PDF I've exported (no changes in settings), it selects everything out of order.   I blurred out the text bc it's not necessary, but in the picture below I clicked &amp; dragged over just the red highlighted part, and it highlighted those other parts, too. That's the problem I'm having.    Copy &amp; pasting the whole document to a Google Doc causes everything to be out of order, as well.  Currently, the PDF has the following:   Text threading  Putting each text layer in order of desired highlighting order (top to bottom, left to right) Grouping text by layer per column   I found a couple other people with a similar problem, but no solution was found. Not sure if anyone knows how to fix this or has experienced this same thing.  Thank you!
122102
When highlighting text in a PDF exported from InDesign, the highlight doesn't select the text in the right order. How can I fix this?
17627
I am trying to import an Excel CSV into InDesign Data Merge. Everytime I try to export the csv, it appears in Data Merge as only one field, with fields separated by semicolons, although in Excel I have multiple, comma separated fields.  I've done this plenty of times and have never experienced this problem. I have checked the language and regional settings on my laptop and these are set as comma separated. I've tried to use a txt file version, but Indesign won't accept it. I am now very much stuck! any suggestions?
73392
As you can see from the image below, I have an issue with the text alignment of extra long chapter names. How can I fix it so that the text will not go further left than the start of the chapter name? That is, I don't want any text to be underneath the "Appendix A" part.  I added that red line just to show how I'd like it aligned, if possible.    Here's my MWE:  \documentclass{book} \let\cleardoublepage\clearpage  \RequirePackage{titletoc} \RequirePackage{tikz} \RequirePackage[explicit]{titlesec} \RequirePackage{DejaVuSansCondensed} \RequirePackage[normalem]{ulem} \RequirePackage[   left=2.25in,   right=0.75in,   top=1.25in,   bottom=1.25in,   marginparwidth=1.75in,   marginparsep=.25in,   asymmetric]{geometry}  \renewcommand*\familydefault{\sfdefault} % Set default font  %%% Table of Contents ---------------------------------------------------------- \setcounter{tocdepth}{1} % Show only Chapters and Sections  %%% Change font/color/layout of TOC \makeatletter \titlecontents{chapter}[-2em] {\color{cyan}\bfseries\LARGE\addvspace{3mm}} {\makebox[4.4em][r]{\@chapapp}\contentslabel{-0.25em}\hspace{1.9em}} {} {\hspace{3em}\contentspage} \g@addto@macro{\appendix}{%   \addtocontents{toc}{\protect\renewcommand*{\protect\@chapapp}{\protect\appendixname}}% } \makeatother  \titlecontents{section}[5.3em] {\color{cyan}\large\itshape\addvspace{3mm}} {\contentslabel{0em}\hspace{3.2em}} {} {\hspace{3em}\contentspage} [\addvspace{0mm}]  %%% Chapter Header ---------------------------------------------------------- \makeatletter \titleformat{\chapter}   {\normalfont\sffamily\Huge\scshape}   {}{0pt}   {\thispagestyle{empty}    % Remove page number on new chapters   %\setcounter{definition}{0}   \begin{tikzpicture}[remember picture,overlay]     \node[yshift=-3cm] at (current page.north west)       {\begin{tikzpicture}[remember picture, overlay]         \draw[fill=cyan] (0,-1) rectangle           (25cm,3cm);         \draw[fill=cyan] (0,-24) rectangle           (25cm,-25cm);         \ifttl@label% &lt;---------------------- Added condition on \ifttl@label           \node[anchor=west,xshift=.21\paperwidth,yshift=-.01\paperheight,rectangle]               {\color{white}\LARGE \MakeUppercase{\@chapapp} \Huge\thechapter};         \fi% &lt;------------------------------- end condition on \ifttl@label        \end{tikzpicture}       };    \end{tikzpicture}\endgraf   \vskip-.7cm   \color{cyan}\Huge\raggedright\leftskip-1cm    \noindent\MakeUppercase{#1}\endgraf   } \makeatother  \titlespacing*{\chapter}{0pt}{10pt}{0pt}{}  \titleformat{\section}{\color{cyan}\itshape\LARGE}{\llap{\thesection} #1}{1em}{}[\titleline{\color{cyan}\titlerule[1pt]}] \titleformat{\subsection}{\color{cyan}\normalfont\large}{\; #1}{1em}{}  \begin{document}   \tableofcontents   \chapter{Turing Machines}     \section{The Turing Machine}     \section{Variations of the Turing Machine}       %\subsection{Non-deterministic Turing Machines}     \section{The Church-Turing Thesis}   \chapter{Decidability}     \section{The Universal Turing Machine}    \appendix   \chapter{ON COMPUTABLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHEIDUNGSPROBLEM} \end{document}
55981
I need to get thousands of snippets of text from PDFs to a spreadsheet. They are short, seldom more than 2-3 rows, but each line break creates a new cell, and I have to repair that manually, which costs lots of time.   Because I have so many of them, using the "paste into Word and do a find-and-replace" workaround is just too time-wasting for me. Is there a way to have the line break disappear on copy? Maybe there is a viewer which offers a special copy mode for this, or has a plugin?   The documents are scientific articles. The text arrangement is quite linear. You can assume that the text I'm copying is not inside a table or a float, and not rotated or anything. (If such a thing happens, I think I'll deal with it manually). The text is frequently set in two columns, but I have no trouble marking just the text I need from its column. I don't need to preserve any special formatting. I'm willing to try a solution which removes all unprintable characters, for example. The texts are in English, it is OK if the solution only works in ASCII/strips all non-alphanumeric ASCII of the copied text.   I have a very strong preference for a solution which will work on Linux, possibly some kind of Okular plugin. But if there happens to be a Windows-only solution, I want to hear about it too. I have a license for a somewhat recent Acrobat Pro on the Windows machine.
99824
I need to write a text just in this format   \documentclass[twocolumn]{article}.   But I need to switch between single column and double column several times in the same page, without jumping to a new page every time I switch the format. Is this possible without using any package like  \usepackage{multicol} ?
16718
Possible Duplicate:          My LaTeX document is acting strangely. Here is a simplified version of it:  \documentclass{article}  \begin{document}  \tableofcontents \newpage  \addcontentsline{toc}{part}{A Part of My Document} \include{includedfile}  \end{document}   And in includedfile.tex:  \section{My Section Title} Quack.   Clearly, in the table of contents, the heading for the part should precede the one for the section, but it doesn't! What's wrong?
20741
A picture is worth a thousand macros:    I don't blame LaTeX for having difficulty in formatting this entry.   What can I do, however, to alleviate the effects and avoid the Word-like indentation?   A related question suggested by the site is  which indeed produces a better aligned entry:   While I like the sane alignment, I'm not not very happy with the switch to a monospaced font (while it works in the regular text, in bibliographical entries it attracts too much attention and takes too much space).  Any other suggestions?  The entry for the above test bibitem is:  \begin{thebibliography}  \bibitem{anything-here} "Lorem Ipsum Society, \emph{dolor sit amet, consectetur}, May 2010 retrieved on Oct 16, 2010 from http://www.lorem-ipsum.com/whatever-here/about\%20something/here\%20takes/space\%20in\%20a\%20long/url\%20foobar.aspx   \end{thebibliography}
95478
I'm writing a set of course notes that has an appendix containing many activities.   I do not wish the activities to be shown in the Table of Contents, but I do wish them to be numbered. Here is the solution I was using:  In the preamble:  \newcommand{\activity}[2]{\bgroup\let\addcontentsline=\nocontentsline#1{#2}\egroup}   and now my "activity" starts out with:  \newpage \activity\section{A Fun Educational Activity}   There is only one problem. The activity starts out indented, as opposed to not indented, as a section should be.   How do I make my activity start out without an indent?  I realize I could simply add \noindent but it seems to me that there should be a more elegant solution.
67179
I like to print my drafts with big fonts and small margins (i do this in memoir style in a single chapter), but the \include comand creates a page break. Is there a way to avoid this and have section after section continuously?
30056
Done Major Edit, to make the question clear.  Removing the last chapter line works. But keeping it makes latex go crazy. It prints numbers till 65536.. and errors: ** ERROR ** Page number 65536l too large!    MikTex, XeLatex, PdfLatex (endures a few more section, but then, the same error).  Drilling down, I have found that the problem is because of mdframed, specially usetwoside option. The error also seems to be a result of the following warnings:    The log is here:   \documentclass{book} \usepackage{xcolor} \usepackage{mdframed} \usepackage{titletoc} \usepackage{etoolbox}   \definecolor{secnum}{RGB}{13,151,225} \definecolor{ptcbackground}{RGB}{212,237,252} \definecolor{ptctitle}{RGB}{0,177,235}  \pretocmd{\tableofcontents}{\begin{mdframed}[backgroundcolor=ptcbackground,hidealllines=true]}{}{} \apptocmd{\tableofcontents}{\end{mdframed}}{}{} \patchcmd{\tableofcontents}{\contentsname}{\color{ptctitle}\contentsname}{}{}  \setcounter{tocdepth}{1}  \titlecontents{section}   [4em]{\sffamily}   {\color{secnum}\contentslabel{2.3em}\normalcolor}{}   {\titlerule*[1000pc]{.}\contentspage\\\hspace*{-3em}\vspace*{2pt}%     \color{white}\rule{\dimexpr\textwidth-20pt\relax}{1pt}}  \titlecontents{lsection}   [5.8em]{\sffamily}   {\color{secnum}\contentslabel{2.3em}\normalcolor}{}   {\titlerule*[1000pc]{.}\contentspage\\\hspace*{-5.8em}\vspace*{2pt}%     \color{white}\rule{\dimexpr\textwidth-15.5pt\relax}{1pt}}  \makeatletter \renewcommand*\l@chapter[2]{%   \ifnum \c@tocdepth &gt;\m@ne     \addpenalty{-\@highpenalty}%     \vskip 1.0em \@plus\p@     \setlength\@tempdima{1.5em}%     \begingroup       \parindent \z@ \rightskip \@pnumwidth       \parfillskip -\@pnumwidth       \leavevmode       \advance\leftskip\@tempdima       \hskip -\leftskip       \colorbox{ptctitle}{\strut%         \makebox[\dimexpr\textwidth-2\fboxsep-7pt\relax][l]{%           \color{white}\bfseries\sffamily#1%           \nobreak\hfill\nobreak\hb@xt@\@pnumwidth{\hss #2}}}\par\smallskip       \penalty\@highpenalty     \endgroup   \fi} \makeatother \newcommand\PartialToC{% \startcontents[chapters]% \begin{mdframed}[backgroundcolor=ptcbackground,hidealllines=true] \printcontents[chapters]{l}{1}{\colorbox{ptctitle}{%   \parbox[t]{\dimexpr\textwidth-2\fboxsep\relax}{%     \strut\color{white}\bfseries\sffamily\makebox[5em]{%       Chapter~\thechapter\hfill}Contents}}\vskip5pt} \end{mdframed}% }  \begin{document}  \tableofcontents  \chapter{Chapter One} \PartialToC \section{Section One One} \section{Section One Two} \section{Section One Three} \section{Section One Four}  \stopcontents[chapters] \chapter{Chapter Two} \PartialToC \section{Section Two One} \section{Section Two Two} \section{Section Two Three}  \stopcontents[chapters] \chapter{Chapter Three} \PartialToC \section{Section Three One} \section{Section Three Two} \section{Section Three Three} \section{Section Three Four} \section{Section Three Five} \stopcontents[chapters]  \chapter{Chapter Three}  \end{document}
117316
I have a lot of my figures in floats, and LaTeX puts them on good places in the pdf. But for my students it would be great if I could produce a second pdf-version of the same text, without the figures in the text, and all the figures in a separate document.  Why?   figures are in colour, so students can print these figures on a better quality printer. Also, while studying, it is for some students more comfortable to have the figures separate to the text, because I often refer to a figure that appears a few pages earlier then the second or third reference in the text. Of course, the numbering (like "fig. 2.1") should be kept unchanged, so the numbering in both versions of the document stays the same.   I tried using endfloat, pushing all the floats to the end, but then all the numbers start with the number of the last chapter (e.g. 2.1, where it orig. was 1.1). In the example below, the "first version" (which is OK) is produced: the figures are placed in the text by LaTeX, and this placement is fine.  I'm trying to make the second version, just by uncommenting the two lines that are commented in the example. Then you'll see that figures in fact are pushed to the end as desired, but numbers change (undesired, because different from first version).  \documentclass[a4paper,oneside,dutch]{book}   %\usepackage[nomarkers, nolists]{endfloat} %these two lines should be uncommented %\renewcommand{\efloatseparator}{\mbox{}} %these two lines should be uncommented  \begin{document} \chapter{first chapter} \section{first section} Some text referring to this figure, with a number that shows the figure belongs to chapter one: fig.~\ref{fig: 050}. \begin{figure} \begin{centering} {\fboxsep 14pt\fbox{}} \par\end{centering} \caption{\label{fig: 050}figure in chapter one} \end{figure} \section{second section\label{sec:Graad-van-hyperstaticiteit}} Some other text referring to another figure int the same chapter: fig.~\ref{fig: 052} \begin{figure} \begin{centering} {\fboxsep 14pt\fbox{}} \par\end{centering} \caption{\label{fig: 052}another figure in chapter one} \end{figure} \chapter{second chapter} Some text in chapter two, so referring to a fig. with numbering that shows the figure is part of chapter two: fig.~\ref{fig: 054}. \begin{figure} \begin{centering} {\fboxsep 14pt\fbox{}} \par\end{centering} \caption{\label{fig: 054}this figure belongs to chapter two} \end{figure} \end{document}   Is there a workaround? Or another simple way to achieve this? I've had a suggestion to use "preview", but this doesn't seem to solve my problem as a whole... Or is it wishfull thinking to be able to produce the two desired versions?
53354
\documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \begin{document} % ... \[ \begin{array}{ccccc} x(1) &amp; = &amp; \frac{x(0)}{1} &amp; = &amp; x(0)\\ x(2) &amp; = &amp; \frac{x(1)}{2} &amp; = &amp; \frac{x(0)}{2}\\ x(3) &amp; = &amp; \frac{x(2)}{3} &amp; = &amp; \frac{x(0)}{2.3}\\ x(4) &amp; = &amp; \frac{x(3)}{4} &amp; = &amp; \frac{x(0)}{4!}\\  &amp;  &amp;  &amp;  &amp; \vdots\\ x(n) &amp; = &amp; \frac{x(n-1)}{n} &amp; = &amp; \frac{x(0)}{n!} \end{array} \] % ... \end{document}   Because of the fractions in the array cells, array elements are vertically too close to each other, they are literally touching to each other. Also the horizontal spacing is too much as you see in the image (screen shot from the output PDF file).  How do I make these cell-spacings look better?
41225
Some people have asked about how to add multiple paragraphs (when \intertext and \shortintertext no longer work), a fix was proposed by Peter Grill :  He wrote:     My first thought was to hack apart the result of an align and dole   out the lines one-by-one wherever you want them. Alas, align   produces a list of considerable complexity and it is not worth the   effort to unravel it (if that's even possible).      So I made my own alignment environment that, as far as I can tell,   does what you'd want align* to do but produces a very simple list.   My macro \ALineAgain then picks that list apart and drops the lines   one at a time wherever you ask.      Because the lines are not printed where the alignment is actually   given, it makes no sense to have an AlignAgain*; it never prints   equation numbers. Instead, the \ALineAgain macro takes a star that   suppresses the addition of an equation number.   The problem with this code is that the equation numbers seem to be messed up once you try referencing them. Below, I've added only a few lines to Peter's code (notably: \numberwithin{equation}{section}, two section commands, and then a single line at the very end that attempts to reference the two equations).   Rather than printing (1.1) and (1.2), it prints (1.1) and (1.1). There seems to be something wrong with the equations portion of the code. Can anybody spot the problem?   \documentclass{article} % \usepackage{showframe} \usepackage{amsmath}  \numberwithin{equation}{section}  % It's like {align}, but simple! \newenvironment{SimpleAlign} {%  \let\\=\cr  \tabskip 0pt plus 1fil\relax  \halign\bgroup   &amp;\hfil$\displaystyle ##$\tabskip 0pt\relax   &amp;$\displaystyle {}##$\hfil\tabskip 0pt plus 1fil\relax\cr } {%  \crcr\egroup }  % Saves its contents typeset like SimpleAlign.  You can give it a name. \newenvironment{AlignAgain}[1][AlignBox] {%  \expandafter\let\expandafter\AlignAgainBox\csname #1\endcsname  \setbox\AlignAgainBox=\vbox\bgroup\SimpleAlign } {%  \endSimpleAlign\egroup  \ReBox\AlignAgainBox } \newbox\AlignBox  % Prints the lines from {AlignAgain} one-by-one, with or without equation numbers as starred.  If you named the {AlignAgain}, use it here. \makeatletter \newcommand\ALineAgain{%  \@ifstar   {\AlignAgainStartrue\@ALineAgain}   {\AlignAgainStarfalse\@ALineAgain}% } \newcommand\@ALineAgain[1][AlignBox]{%  \expandafter\let\expandafter\AlignAgainBox\csname #1\endcsname  \begin{equation*}   \PutFirstBox\ifAlignAgainStar\AlignAgainBox  \end{equation*} } \makeatother \newif\ifAlignAgainStar  % Reboxes a box in the format: {[1][2]...[n]} -&gt; {[1]{[2]{...}[n]}} % {...} = \hbox \newcommand{\ReBox}[1] {%  % To enter internal vertical mode, where \lastbox is valid  \setbox0=\vbox{%   \unvbox#1\relax   \global\setbox#1=\hbox{\hbox{}}   \loop    \unskip    %\box0 is the box currently at the end of #1    \setbox0=\lastbox   \ifvoid0\relax   \else    \global\setbox#1=\hbox{\box0\box#1}%   \repeat  }% }  % Puts the first box in a nested-box list into the display, saving the rest back in #1 % Optionally places an equation number \newcommand{\PutFirstBox}[2]{%  \hbox to \displaywidth{%   \unhbox#2\relax   \global\setbox#2=\lastbox   \setbox0=\lastbox   \unhbox0%   #1\else\refstepcounter{equation}\llap{(\theequation)}\fi  }% }  \begin{document}  \section{First section} \subsection{A subsection} Hello \begin{AlignAgain}  a &amp;= b &amp; c &amp;= d \label{firsteqn} \\  f(x) &amp;= g(x) &amp; h(x) &amp;= e^{-1/x^2} \label{myeqn} \\ \end{AlignAgain}  This is a paragraph with a lot of redundant words whose only purpose is to extend it onto a new line or two so it's dramatic when I display this equation: \ALineAgain and then follow it with a bunch more text.  And also a new paragraph, just for good measure.  I wonder if the two equations will line up?  I sure hope so! \ALineAgain This is sort of fun.   Can we reference equations by section? Try (\ref{firsteqn}) and (\ref{myeqn}).  \end{document}
24736
I'm new to latex, I'm thankful if someone can give me an example script to customize TOC that looks like  Chapter 1.XXXXXX                                                            (1-15)  1.1 Introduction 1.2 xxxxxxxx 1.3 xxxxxxxxxx 1.4 xxxxxxx ...............  Chapter 2.xxxxxxx  2.1 xxxxx ......                                                           (16-30)  because the (default) TOC appears to be very large for my book, since it arranges the section name row-by-row.
31007
Help!!!  I don't know quite what happened, I was getting frustrated, trying to somehow escape the backticks inside the code formatting. I clicked the edit button too many times, and then the above happened. Perhaps I clicked it to fast, I don't know, but I then got lots of boxes.    Edit:  Based on a test case below, the problem is simply caused by pressing edit while you still have an edit box open. They all go away when you press cancel anywhere once. This makes it much easier to reproduce, and, while not very important, perhaps still something to be fixed.  Note on the pattern:  When you click the first time, you get one box, as normal. When you click again, you get one extra empty box at the top, and another normal box above that. At each click, one empty box is added per existing normal boxes, plus one normal box. What is going on?
63356
I have a two-column document.  Figure 1 I would like in-line with the text followed by a figure* on the bottom of that same page.  When I put the two figures in order and bunch them as close as possible (below each other), the figure* gets pushed to the bottom of the NEXT page.  But if I move the figure* higher in the document I get the right placement but the wrong ordering of the captions.  Any ideas to fix?  \documentclass{vgtc}     \usepackage{float}  Figure \ref{fig:1} displays .....     \begin{figure}[H]    \centering   \includegraphics[width=0.6\columnwidth]{Figure1.eps}   \caption{\label{fig:1} View.} \end{figure}  \begin{figure*}[bh]    \centering   \includegraphics[width=\textwidth]{Figure2.eps}   \caption{\label{fig:2} Use case.} \end{figure*}
90512
I have a one-page InDesign document with 50+ layers. Each layer contains a single logo file, and I need to export the document to a PDF with one layer turned on per page. Ideally, I'd like to export to individual PDF documents, but it would be okay to export to a multi-page PDF as well, and break the PDF into single pages later if needed.