# Tag Info

13

\par does not end the effect of \centering, the end of the paragraph is just the place, where TeX uses the values set by \centering. A group can be used to limit the effect of \centering. After the group, the settings before the group are in force again. \begingroup \centering ... \par \endgroup or {\centering ...\par}.

9

The tabular environment really is the simplest way to do this. Here's a solution using regular tabular. You can use it alongside the tabu package without any problem. Arrows are taken from Fancy arrows with TikZ Compatibility with siunitx The cellspace package is used here to get the vertical spacing around the images to be nice. cellspace defines an S ...

3

Do you looking something like this? Edit: document classes as article, report,andbool among many others contain facility for writing verbatim text, i.e. a text as it written by typewriter. It has two forms: \begin{verbatim} text_which_will_appear_in_final_document_as_here (with "_" between words, which otherwise require to be ...

3

The additional space forced between the lines seems problematic. It works better if you change \arraystretch instead. However, this causes the text in the left-most column to be overwritten by the colour of the next row. This can be avoided by setting the text in the next row with the number of rows passed to \multirow given as a negative, rather than ...

3

Define the first column to be a m column like \newcolumntype{O}{>{\small}m{1.6cm}} BTW, why you are using longtabu when just longtable would do the job? Also, there is no support to tabu package as claimed by its author. \documentclass[12pt,a4paper,BCOR5mm]{scrbook} \usepackage{booktabs} \usepackage{multirow} \usepackage{longtable} \usepackage{tabu} ...

2

Wow. Okay I figured it out. In the body of one of the chapters I wanted to move a book title to be all together on the next page. So I wrapped it in a \raggedright{randombooktitle} However it appears that somehow screwed up the formatting in the entire document. It even stopped paragraphs from indenting in different chapters. So this is a new question I ...

2

\documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainlanguage{english} \setotherlanguage{arabic} \newfontfamily\arabicfont[Script=Arabic,Scale=1.2]{Arabic Typesetting} \usepackage{titlesec} \usepackage{lipsum} \titleformat{\section} [block]{\normalfont\bfseries\Large}{\rlap{\thesection}}{0em} ...

2

This solution does not rely on tables. Whether it will work with your template, however: that is anyone's guess. As Alan Munn pointed out, we cannot possibly know. I define two new commands: \imgfraction{<fraction>} takes a single argument which specifies the fraction of the text width to be occupied by the images e.g \imgfraction{.75} or ...

2

\documentclass{article} \usepackage{lipsum} \makeatletter \renewcommand\@makefntext[1]{\raggedright\leftskip=2em\hskip-2em\@makefnmark#1} \makeatother \begin{document} \null\vfill% just for the example \lipsum*[1]\footnote{\lipsum[2]} \end{document} Or, using ragged2e: \documentclass{article} \usepackage{ragged2e} \usepackage{lipsum} ...

2

To stay true to your implementation, you'll have to use some way of specifying the width of the columns that have differing widths-than-headings. Easiest is to make a box where you find the widest element in the column to get the correct width, and set the heading within that box of said width: \documentclass{article} \usepackage{mathtools,calc} ...

1

...to further elaborate on Heiko's answer: A macro provides a means to match some parameter text - this includes the actual macro and it's arguments or "delimiters" - gobbles these up, and replace them with the macro's replacement text - everything inside the outer {..}. This is informally referred to as expansion, where the input stream finds some macro, ...

1

Another option is use the fancyvrb package and the BVerbatim environment: \documentclass{article} \usepackage{fancyvrb} \begin{document Calls to the function \begin{center} \begin{BVerbatim} get_next_random_number(int) \end{BVerbatim} \end{center} should be independent of previous calls, resulting in a Fourier Space distribution with no eigenfrequency. ...

1

Now that I reread the question, you seem to need a numerated list with alphabetical labels and not an itemize; you can do this easily with enumitem, defining a dedicated enumerate-like list with the desired settings: \documentclass{article} \usepackage{enumitem} \newlist{myprose}{enumerate}{1} \setlist[myprose,1]{ leftmargin=0pt, label=(\alph*), ...

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