# Tag Info

58

Leyla Akhmadeeva and I made several experiments trying to determine whether typesetting niceties influence reading speed and comprehension. Some of them are described here: Towards evidence-based typography: First results Do Serifs Help in Comprehension of Printed Text? An Experiment with Cyrillic Readers (supplementary materials, data) Towards ...

8

Use any of the line-break-able display math environments offered by amsmath. Below I've used alignat, but you could manage with gather or align as well: \documentclass{beamer} \usepackage{amsmath,amssymb} \newcommand{\mythickertimes}{\boldsymbol{\times}} \begin{document} \begin{frame} \frametitle{Householder Transformation} \begin{alignat*}{3} ...

6

luainputenc doesn't define a conversion for U+2011 (NON-BREAKING HYPHEN); you can do it yourself: \documentclass{article} \usepackage[utf8]{luainputenc} \DeclareUnicodeCharacter{2011}{\mbox{-}} \begin{document} Åsa‑Nisse \end{document}

5

Use of luainputenc is deprecated. The documentation of luainputenc itself says: Input encoding management for LuaTEX, needed only for compatibility with old documents. For new documents, using UTF-8 encoding and Unicode fonts is strongly recommended. You’ve been warned! UTF-8 support works out of the box with lualatex and fontspec if your files are ...

5

\documentclass[twocolumn]{article} \begin{document} \begin{center} \refstepcounter{equation}$f=a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c+d+e+f+a+b+c$\\ \hspace*{\fill}(\theequation) \end{center} \end{document}

5

There are many better solutions. Some short sugestions for a start. More characters in a line is one of the simplest solutions. You should have 60 characters in a line as the starting point. More than, say, 70 can deeply improve the appearance of a paragraph. If you can tolerate occasional too long spaces, \sloppy solves most of the problems. \sloppy means ...

5

Using the enumitem package you can define a custom alignment of the label so that it takes the full line width: Notes: The showframe package was used just to show the page margins. It is not needed in your actual use case. Code: \documentclass{article} \usepackage{enumitem} \usepackage{showframe} ...

4

Two things. First, use marginnote as it does better job. Second, move \MarginText{Some Margin Text B} inside \item. \item \MarginText{Some Margin Text B} Lorem ipsum .... If it is put outside (like you did), it is anchored in the upper line. Further, \footnotesize{#1} should be \footnotesize#1. Full code: \documentclass{scrartcl} ...

4

To accommodate for line-breaks inside verbatim, use the verbatim environment: \documentclass{article} \setlength{\parindent}{0pt}% For this example \begin{document} \verb|<TITLE> * </TITLE>| \begin{verbatim} <TITLE> * </TITLE> \end{verbatim} {\ttfamily% <TITLE> * </TITLE> } \end{document} Also see, as reference, ...

4

You can either specify two line breaks with \\~\\ or specify the height of the break (for example, for a 2-inch break) \\[2in] You can use this form to define the height of the break to be actually two lines \\[2\baselineskip] See this example: https://www.writelatex.com/read/wtyxrnxxvxhj

4

To answer your more limited question about line numbers. The venerable EDMAC is usually good at these things. \input edmac \hsize=3in \firstlinenum=1 \linenumincrement=1 \beginnumbering \pstart Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud ...

3

You can set the width of the second column using a p column, so that it stays inside the margin: \documentclass{article} \usepackage{array} \begin{document} \section{Technical Skills} \begin{tabular}{@{}l@{ : }p{.75\textwidth}} \textbf{IDE/Tools} & STS, Eclipse, WindowBuilder, NetBeans, Jasper Studio, iReport, QBrowser, IBM Rational Rose \end{tabular} ...

3

You can define a longequation environment: \documentclass[twocolumn]{article} \usepackage{lipsum} % just for the example \newenvironment{longequation} {$$\begin{minipage}{.9\columnwidth}} {\end{minipage}$$} \begin{document} Equation \ref{eq1}. \lipsum*[2] \begin{longequation}\label{eq1} ...

3


3


2

Here's an example based on one of your other questions: \documentclass[paper=6in:9in,10pt,twoside,pagesize=pdftex,openright]{scrbook} \usepackage{kantlipsum} \begin{document} \kant[1-20] \end{document} This gives me 2 overfull boxes (for 10 pages of text). And this is a text with its fair share of bizarre Kantian terminology which is probably not the ...

2

The equation environment is not designed for line-breaking. For this purpose exist the environments multline, gather, align, etc (and their starred versions) provided by the amsmath package. (There also exists the eqnarray of LaTeX but it isn't recommended). For your example you should use the enumerate environment (and if you want something more ...

2

You should not use that \\ too much. Typically, you should not use it at all in normal text. You have to decide, where a new paragraph starts (blank line in code) and where it shouldn't (no blank line or a %). A new paragraph will always get that indent (in front of "Define the size...") to make that new paragraph visible. If you do not want that in this ...

2

After quite a few unsuccessful efforts, I decided that the only solution would be to change to bigfoot. I have adjusted a hybrid combination of para and plain options by defining a new command for the footnotes which utilizes the \footnote+ command of the bigfoot package: \usepackage[para]{bigfoot} \DeclareNewFootnote[para]{A} \renewcommand{\thefootnoteA}{} ...

2

I am not sure if this is the desired feature: The action (run/open) can be done using \href{run:url}{some text} and the the text as a url can be obtained using \nolinkurl{urlcontent} \documentclass[10pt]{article} \usepackage{a4,graphicx} \usepackage[hyphens]{url} \usepackage[colorlinks,breaklinks=true]{hyperref} \begin{document} ...

2

You can break this using literate turning the - into a discretionary: \lstset{literate={-}{{-\allowbreak}}{1} } or allowing breaks at -, 0 and 1 \lstset{literate={-}{{-\allowbreak}}{1} {0}{{0\allowbreak}}{1} {1}{{1\allowbreak}}{1} } You can allow breaks for other numbers if you so wish by extending the pattern. The format is {character ...

2

You can make a trial setting , see if you have any over large boxes, then if so loop through character by character adding \penalty0 and re-set. \documentclass{article} \usepackage[utf8]{inputenc} \makeatletter \def\foo#1{% \setbox0\vbox{% \global\let\foonext\foohyph \hbadness\maxdimen \hfuzz\maxdimen #1\par \loop \unskip\unpenalty\unskip\unpenalty ...

1

something like this but it is still squeezed, perhaps set it landscape? I removed the diaghead as I couldn't get it to fit in any reasonable way, perhaps the table caption could be adjusted so that the column/row label isn't needed. The usual advice here is to use booktabs and avoid vertical rules, but hard to suggest that layout if you really have so many ...

1

If you want to use the maximum of your page width, you could use an X-column of the package tabularx here. The only thing you have to do is to put the longest description text, \textbf{IDE/Tools}: in your case, into the \settowidth command. % arara: pdflatex \documentclass{article} \usepackage{lmodern} % scalable version of your font (for microtype) ...

1

Load the package microtype and that's already all you need. If not, you will have to decide which breaking-point you want to allow and add it (e.g. ASP"-.NET). I would not break after the dot: A dot at the end of a line always looks like the end of a sentence and ".NET" is kind of a fix expression which should stick together. When your document is finished ...

1

Here the options you have rewording the sentence adding \allowbreak at appropriate points in the formula, e.g. P(x,\allowbreak y,\allowbreak z) = q displaying the equation without a number using the package microtype to give more flexibility to spacing in the paragraph increasing \emergencystretch for the paraagraph: {\emergencystretch=1.5em .... \par} ...

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