# Tag Info

## Hot answers tagged paracol

8

This is the revised version of my first answer. It requires tcolorbox with version 2.80 (2014/03/31). To get an equivalent to the figure* environment for tcolorbox, you have to use the float* option instead of the float option. The width of the tcolorbox has to be adapted also, e.g. width=\textwidth. If you want to have also the star analogon, you can use ...

8

\documentclass[a4paper]{article} \usepackage{polyglossia} \usepackage{xcolor} \usepackage{paracol} \usepackage{duckuments} \backgroundcolor{c(1pt,0pt)(1pt,0pt)}[rgb]{0.85,0.95,1} \newcommand*{\myrule}{\noindent\hfil\rule{0.8\textwidth}{.4pt}\hfil} \begin{document} \myrule \begin{paracol}{2} \sloppy \switchcolumn[0]* \...

7

I'd suggest not using paracol but instead setting up the geometry such that your main body width is a bit smaller, headings are printed into the left margin, and the references, remarks, etc. are put into the right margin via marginnote: \documentclass[11pt,a4paper,numbers=noenddot]{scrartcl} \usepackage[english]{babel} \usepackage{marginnote} \usepackage{...

6

\sloppy or, as shown below, the sloppypar environment, fixes the problem. See, for example, How to relax the horizontal spacing rules for one line?. A multi-column document places added constraints on satisfying column alignments, whcih can be difficult for TeX to satisfy. Another option would be {\raggedright\begin{paracol}{2}...\end{paracol}}. \...

6

First I fixed the line-breaking problem with \sloppy (SOP for narrow columns). Next I used \globalcounter{section} to fix the section numbers. Finally I erased the top part of the line between the columns with white-out. \documentclass[11pt, a4paper]{article} \usepackage{paracol,lipsum} \usepackage{xcolor} \globalcounter{section} \begin{document} \...

5

You can define the \columnratio that you want. \documentclass{article} \usepackage{paracol} \usepackage{lipsum} \usepackage{lmodern} \begin{document} \begin{paracol}{2} \lipsum[2] \switchcolumn \lipsum[2] \end{paracol} \columnratio{0.6} \begin{paracol}{2} \lipsum[2] \switchcolumn \lipsum[2] \end{paracol} \columnratio{0.4} \begin{paracol}{2} \lipsum[2] \...

5

I'm Hiroshi Nakashima, the author of paracol. I got a message from Marcus today to know an embarrassing change in double-float processing had been made in the latest LaTeX implementation after its stable work for about 30 years to make my paracol unable to work with it. Fortunately, I could make a quick fix of the problem to have paracol v1.32 to be ...

4

You can use the package parcolumns instead of paracol. The corresponding parcolumns environment seems to be not affected by that strange behavior. Note that the usage of parcolumns is very similar to paracol, so you shouldn't have any difficulty to switch to it. Here is your MWE modified with parcolumns: \documentclass{book} \usepackage{lipsum} \...

4

The documentation for the package does not make this very clear, but it seems that you need to enclose all of the environments it describes inside a paracol one: \documentclass{article} \usepackage{paracol} \begin{document} \begin{paracol}{2} \begin{leftcolumn*} \subsection{% Environments \texttt{leftcolumn} and\\ \texttt{rightcolumn}} The environments |...

4

Maybe you are more satisfied with the following layout: \documentclass[11pt,a4paper,numbers=noenddot]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage[left=2cm, right=1cm]{geometry} \usepackage{paracol} \setcolumnwidth{3.5cm,9.1cm,5cm} \setlength{\columnsep}{0.2cm} \usepackage{lipsum} \usepackage[...

3

You have two possibilities: declare to be using the fake language hyphenation rules nohyphenation set \hyphenpenalty to 10000, which disallows hyphenation except at explicit hyphens In the code below I changed the font for the Chinese part; adding a definition for \languageshorthands is needed only if you follow method 1. Once you have decided for a ...

3

After some research I found an easy solution: \usepackage{everypage} \AddEverypageHook{\setcounter{footnote}{0}} % resets footnote counter on every page MWE \documentclass{article} \usepackage{paracol} \footnotelayout{m} \usepackage{everypage} \AddEverypageHook{\setcounter{footnote}{0}} \usepackage{blindtext} \begin{document} \blindtext{1} \begin{...

3

There are two issues in your setting. The Arabic glyphs in Times New Roman (at least on my machine) live well above the baseline. With the scaling factor you're using, the glyphs are too high (or deep) for the standard baseline skip, so \lineskip is used between them. If I enlarge the baseline skip, alignment is good; the \checkrule command is just for ...

3

The text on the left hand side is not displaced but written with white color. The reason is a color stack problem resulting from vsplitting. pdflatex and xelatex seem to have a different color implementation. I changed the placing of text colors for tcolorbox with the recent version 3.12 (2014/07/29). This version was tested with MiKTeX. The following test ...

3

Here is a solution. Note that for leftcolumn we need to use \switchcolumn and \flushpage for rightcolumn. No clearpage used so floats at the end of chapter may cause problem. \documentclass[10pt,a4paper,parskip]{scrreprt} \usepackage{mwe}% just for the example \usepackage{paracol} \usepackage{etoolbox} \makeatletter \patchcmd\scr@startchapter{\if@...

3

Here's a semi-automatic way to do it. It's semi-automatic because in some environments you will need to change the font manually. The paracol package is very complex, and provides no hooks to set the font on a per-column basis. This code works automatically for the following environments: simple environment using \switchcolumn {leftcolumm} and {...

3

Solved the problem. \documentclass{scrbook} \usepackage{paracol} \usepackage{lipsum,marginnote} \usepackage{changepage}\strictpagecheck \usepackage[many]{tcolorbox} \usepackage{tikz} \usetikzlibrary{arrows,decorations.pathreplacing,tikzmark} \tikzset{remember picture} \newtcolorbox{leftcol}[1]{%\begin{tcbdecor}{<note>}<text>\end{tcbdecor} ...

3

The answers are to add a custom strut and also sloppy in \newenvironment{translation}. \newenvironment{interlinear}% {\begin{leftcolumn*}\begin{hebrew}\exdisplay\begingl}% {\endgl\xe\end{hebrew}\end{leftcolumn*}} \newenvironment{translation}% {\begin{rightcolumn}\small\noindent\ignorespaces\mystrut\sloppy} {\end{rightcolumn}} \newcommand{\...

3

pdftex does warn you pdfTeX warning: pdflatex: pop empty color page stack 0 If you change the definition to \makeatletter \def\zzz{% \long\def\sectionlinesformat##1##2##3##4{% \@hangfrom {\hskip ##2##3}{\textcolor{red}{##4}}}} \makeatother \addtokomafont{subparagraph}{\zzz} then the red stays in the heading, without any warnings that the stack is ...

3

This shows how to do the overlay trick. \documentclass{article} \usepackage{paracol} \usepackage{amsthm} \newtheorem{sats}{Sats} \newtheorem{theorem}[sats]{Theorem} \newcommand{\singlecol}[2][0]% #1 = column (0=left) to wind up in (optional), #2 = text to appear as if in a signel column {\switchcolumn[0]* \noindent\rlap{\parbox{\textwidth}{#2}} \...

3

As Section 7.2 of paracol's manual says, \switchcolumn in an enumerate environment (and other relatives) causes problems such as you're facing, when the environment is included in paracol. One simple solution is to make paracol included in enumerate as described in 7.1. That is, the following will give you a good result. \begin{paraccol}{2} \...

3

Similar to Leandaris' solution, except that I used the url package to break the url and measured the width of the subsection title (presumably the largest one). The biggest problem was that \raggedright wouldn't confine itself to one column. Note: if you want the first paragraph after the subsection to be indented, add \everypar{} to the column preamble. ...

2

with mdframed we can put a breakable box without causing shift of text in the left column \usepackage{lipsum} \usepackage{mdframed} \usepackage{paracol} \usepackage{xcolor} \begin{document} \begin{paracol}{2} \begin{rightcolumn} \lipsum[1-2] \begin{mdframed}[backgroundcolor=red!10] \lipsum[1] \end{mdframed} \end{rightcolumn} \begin{leftcolumn} \lipsum \...

2

This seems not to be possible with paracol, because the paracol env can't be nested. But the parallel package does it: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage[table]{xcolor} \usepackage{lipsum,parallel, framed} \newcommand\LR[2]{\begin{Parallel}[v]{0.35\textwidth}{0.55\textwidth} \ParallelLText{#1}% \ParallelRText{% ...

2

Use can try the following: \everypar{\hangindent1cm\hangafter1} Assuming that the indentation is required for all the paragraphs!

2

The task is in the form: there is given input (the set of \contentslines) and we need to create macros for reading this input and for creating desired output. I show typical plain TeX solution. You can see that the code is compact and simple. Only, what you need, is to know the \hbox / \vbox arithmetic at TeX primitive level. No external packages are needed (...

2

This is not an all-automatic solution, but it seems to work: \documentclass[10pt,a4paper]{article} \usepackage[utf8x]{inputenc} \usepackage{ucs} \usepackage[T1]{fontenc} \usepackage{paracol, calc, blindtext} \globalcounter{enumi} \newcommand{\switchenum}{\setcounter{enumi}{\theenumi-1}\switchcolumn} \begin{document} \vspace{2cm} Some text. \begin{...

2

One can create a 3 column paracol using \setcoumnwidth with the first column acting as a spacer. I didn't have much luck trying to adjust the gaps between columns, so I just included \columnsep in the calculations. \documentclass[parskip=full,showframe]{scrartcl} \usepackage{blindtext} \usepackage{paracol} \newlength{\tempwidth} \begin{document} \...

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