Tag Info

Hot answers tagged

10

Your class has too many whitespaces in the redefinition. If you remove them it works as expected: \renewcommand\thetable{\ifnum\c@chapter>\z@\chapfigname.\fi\@arabic\c@table} Even if you typeset it with a protected space, it still inserted a normal space where it could break the line. I have removed all the other whitespaces (personal preference), but ...


10

\documentclass{article} \usepackage[latin]{babel} \begin{document} \sbox0{\indent Nam dui ligula, fringilla a, euismod sodales, sollicitudin vel, wisi. Morbi auctor lorem non justo. Nam lacus libero, pretium at, lobortis vitae, ultricies et, tellus. Donec aliquet, tortor sed accumsan bibendum, erat ligula aliquet magna.} \begin{center} ...


9

An empty line in TeX should never be used just to arrange the source. It is an instruction exactly the same as the command \par which ends a paragraph and starts TeX's line breaking algorithm to split a paragraph into lines. So it is not allowed in display math and it should never be used on the line before display math either, in that position it does not ...


7

Vertical centring of headings is most easily done with tabular and I removed center as it doesn't centre longtables. I reduced the inter column spacing by a bit as your table was slightly too wide for the page. \documentclass{report} \usepackage{booktabs} \usepackage{longtable} \newcommand*{\thead}[1]{% ...


4

The argument to \seqsplit is processed token-by-token, assuming that it's fully expanded. This is not the case when you pass a macro (a single token) as the argument. The following setup redefines \seqsplit to expand its argument before processing it. \documentclass{article} \usepackage{seqsplit} \let\oldseqsplit\seqsplit% Copy \seqsplit ...


4

When people talk about "breaking the document flow" they're generally talking about creating paragraph breaks where there shouldn't be, or other abuses of (La)TeX commands such as \\, \newline, \par, and ~, several of which are listed in the answers to What are the most common mistakes that beginners of (La)TeX and Friends make? and elsewhere on this site. ...


4

You had the #1 #2 #3` in the wrong order, and an unused optional argument. Here I show two forms \nonBranchingRule with three mandatory arguments and \nonBranchingRuleB where the rule argument is optional argument given first, in []. \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...


3

The problem here is that the section title is included inside a TikZ \node with no provisions for text spanning several lines. The problem can be easily solved in a number of ways, perhaps the simpler one is adding a text width=<length> option to the node, as the following simple example demonstrates: \documentclass[10pt, compress]{beamer} ...


3

Since you said images in first column, you can use adjustbox package with export option and align the images at the top. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} %Grafiken \usepackage{booktabs} %Professionelle Tabellen \usepackage[para]{threeparttable} %Tabellen mit Legenden \usepackage{tabularx} %automatische ...


3

Using m-columns To change the spacing, you can use the capabilities of package booktabs. Better would be to make a more generic change. \documentclass[12pt,a4paper,ngerman]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{babel} \usepackage{booktabs} \usepackage[para]{threeparttable} ...


3

This can be set with the makecell package. It allows for line breaks in cells and adding vertical spacing between rows in preamble. Its \thead and \makecell commands also allow for common formatting of cells. I added the caption package to have a correct vertical spacing between caption and table. If adding vertical spacing between rows doesn't work with ...


2

Explicit usage of \selectlanguage in a document should be very rare. In your case the correct command to use is \foreignlanguage: \documentclass{article} \usepackage[T2A,T1]{fontenc} \usepackage[utf8x]{inputenc} \usepackage[slovak,ngerman]{babel} \usepackage{droid} \usepackage{tipa} \usepackage{array,longtable} ...


2

The markup for a paragraph break is a blank line, not \\ : \documentclass{article} \usepackage{parskip} \begin{document} \section{First section} Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum sit amet nibh convallis, interdum dui vitae, ultrices urna. Vestibulum lobortis, mi vitae hendrerit pulvinar, nunc mauris dapibus dui, sed ...


2

\documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{graphicx} %Grafiken \usepackage{booktabs} %Professionelle Tabellen \usepackage[para]{threeparttable} %Tabellen mit Legenden \usepackage{array} \usepackage{ragged2e} \usepackage{tabularx} %automatische Zeilenumbruch ermöglicht ...


2

If you don't mind using expl3: \usepackage{xparse} \ExplSyntaxOn \cs_set_eq:NN \faheem_seqsplit:n \seqsplit \cs_generate_variant:Nn \faheem_seqsplit:n { o } \NewDocumentCommand{\printIDs}{m} { \faheem_seqsplit:o { #1 } } \ExplSyntaxOff and then \printIDs{\ReferencedIDs} will do. This is not much different from Werner's code, but it hides the ...


2

friggeri-cv.cls downloaded at http://www.latextemplates.com/template/friggeri-resume-cv. To have a break in your email address, you can simply add a space in it: \href{mailto:songlin.yang@mail.utoronto.ca}{songlin.yang@ mail.utoronto.ca} MWE: \documentclass[]{friggeri-cv} \addbibresource{bibliography.bib} \begin{document} \header{Songlin}{Yang} ...


1

You can use the extdash-package. It should be loaded as the very last package (even after hyperref and bookmark). It defines unbreakable dashes and dashes so that LaTeX can break the connected words at other places then the hyphen. Use \== for an unbreakable en-dash. \documentclass{article} \begin{filecontents}{test.bib} @BOOK{test, TITLE = ...


1

math is the same as \( or $ and designed for inline math not displays. You want a display environment such as equation or align that will automatically offset the expression with vertical space and not require forced adjustments, for example: \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} ...


1

Don't type long descriptions in a math formula: per poi ottenere $Q:=P(\xi_1)\land\dots\land P(\xi_m)\land P(-\xi_1)\\dots\land P(-\xi_m)=$ ``\textit{uno stato casuale si stabilizza in uno degli stati memorizzati o un suo opposto}''. A questo punto Remove \textit if you don't need italics. Don't use \\ for ending paragraphs either. Note \dots for the ...


1

Another solution with the makecell package, which is designed precisely to choose both vertical and horizontal alignment and a common formatting in cells with the \thead and makecell commands. I also loaded cellspace to have a less tight vertical spacing in tables: \documentclass{report} \usepackage{booktabs} \usepackage{longtable} \usepackage{makecell} ...



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